/* ==========================================
   首页内容页共享样式 (main.css)
   专业医师团队 / 健康科普 等 iframe 内容页
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #eef3fa;
    background-image: radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.08), transparent 40%);
    color: #333;
    min-height: 100vh;
}

.content-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= 页面头部 ================= */
.page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.page-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #26314a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-head h2 i {
    color: #2563eb;
}

.page-head p {
    font-size: 13px;
    color: #93a0b8;
}

/* ================= 团队横幅 ================= */
.team-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    border-radius: 18px;
    padding: 28px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28);
}

.team-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-banner-text p {
    font-size: 14px;
    opacity: 0.85;
}

.team-banner-stats {
    display: flex;
    gap: 36px;
    flex-shrink: 0;
}

.banner-stat {
    text-align: center;
}

.banner-stat-num {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ================= 区块标题 ================= */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.section-title h3 {
    font-size: 17px;
    font-weight: 600;
    color: #26314a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h3 i {
    color: #2563eb;
    font-size: 15px;
}

/* ================= 医师卡片 ================= */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.doctor-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 99, 240, 0.12);
}

.doctor-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5efff;
    background: #e8f1ff;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
    margin-bottom: 6px;
}

.doctor-title {
    font-size: 13px;
    color: #2563eb;
    margin-bottom: 10px;
    font-weight: 500;
}

.doctor-desc {
    font-size: 12px;
    color: #93a0b8;
    line-height: 1.6;
    margin-bottom: 14px;
}

.doctor-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 500;
}

.btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    margin-top: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-consult:active {
    transform: translateY(0);
}

.btn-consult i {
    font-size: 13px;
}

/* ================= 分页 ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #e3eaf5;
    border-radius: 10px;
    background: #fff;
    color: #5a6478;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.page-btn:hover:not(:disabled):not(.active) {
    color: #2563eb;
    border-color: #2563eb;
}

.page-btn.active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================= 科普分类 ================= */
.cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-pill {
    padding: 6px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3eaf5;
    color: #5a6478;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-pill:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.cat-pill.active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ================= 文章列表 ================= */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 99, 240, 0.12);
}

.article-img {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.article-card:hover .article-img img {
    transform: scale(1.08);
}

.article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-cat {
    align-self: flex-start;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cat-green { color: #10b981; background: #e8f9f1; }
.cat-blue { color: #2563eb; background: #eaf1ff; }
.cat-orange { color: #f59e0b; background: #fef5e5; }
.cat-purple { color: #8b5cf6; background: #f3edff; }

.article-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-summary {
    font-size: 13px;
    color: #93a0b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: #a4b0c6;
}

.article-meta i {
    margin-right: 3px;
    color: #2563eb;
}

/* ================= 响应式 ================= */
@media (max-width: 900px) {
    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-banner-stats {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .content-page {
        padding: 16px;
    }

    .doctor-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-card {
        flex-direction: column;
    }

    .article-img {
        width: 100%;
        height: 160px;
    }

    .page-head {
        flex-direction: column;
    }
}

/* ================= 超小屏移动端适配 (480px 以下) ================= */
@media (max-width: 480px) {
    .content-page {
        padding: 12px;
        gap: 14px;
    }
    .doctor-grid {
        grid-template-columns: 1fr;
    }
    .doctor-card {
        padding: 18px 14px;
    }
    .team-banner {
        padding: 20px 16px;
    }
    .team-banner-text h3 {
        font-size: 17px;
    }
    .team-banner-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .banner-stat-num {
        font-size: 20px;
    }
    .article-img {
        height: 140px;
    }
    .article-body h4 {
        font-size: 15px;
    }
    .cat-pill {
        padding: 5px 14px;
        font-size: 12px;
    }
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .page-head h2 {
        font-size: 18px;
    }
}
