/* =======================================
   Health 页面布局及卡片（响应式）
   ======================================= */
   .container.health-page {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 15px;
    display: flex;
    gap: 30px;           /* 左右列间距 */
    flex-wrap: wrap;
}

.health-content {
    flex: 7;
    min-width: 300px;    /* 小屏幕最小宽度 */
}

/* 每个健康分类板块（外层卡片） */
.health-category {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;  /* 外卡片上下间距 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.health-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* 分类标题 */
.health-category .category-title {
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #ff5722;
    padding-left: 12px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 卡片列表容器 */
.category-posts-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;           /* 内卡片水平间距 */
}

/* =======================================
   Health Post 卡片（内层卡片）
   ======================================= */
.health-post {
    flex: 1 1 calc(50% - 20px); /* 默认每行 2 个卡片 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; 
    margin-bottom: 20px; /* ⚠️ 内卡片上下间距 */
}

/* 鼠标悬停效果 */
.health-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* 标题 */
.health-post .post-title {
    font-size: 18px;
    margin-bottom: 12px;
}

/* 缩略图左浮动 */
.health-post .post-thumbnail {
    float: left;
    width: 40%; /* 图片占 40% 宽度 */
    margin-right: 15px;
    margin-bottom: 10px;
}

/* 内容文字环绕图片 */
.health-post .post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
}

/* 卡片 meta 在下方清除浮动 */
.health-post .post-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    gap: 10px;
    clear: both; 
}

.health-post .post-meta i {
    color: #ff5722;
    margin-right: 5px;
}

/* 显示更多 / 折叠按钮 */
.health-category .article-toggle {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: flex-end; 
}

.health-category .btn {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.25s;
}

.health-category .show-more-btn {
    background: #ff5722;
    color: white;
}

.health-category .show-more-btn:hover {
    background: #e64a19;
}

.health-category .collapse-btn {
    background: #607d8b;
    color: white;
}

.health-category .collapse-btn:hover {
    background: #455a64;
}

.health-category .hidden {
    display: none !important;
}

/* ========================
   响应式调整
   ======================== */
@media screen and (max-width: 992px) {
    .health-post {
        flex: 1 1 100%; /* 平板每行 1 个，图片在上方 */
    }
    .health-post .post-thumbnail {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .health-post {
        flex: 1 1 100%; /* 手机每行 1 个 */
    }
}

@media screen and (max-width: 480px) {
    .container.health-page {
        padding: 20px 10px; /* 手机端左右内边距 */
    }
    .health-category .category-title {
        font-size: 18px;
    }
}
