/* ========== 基础重置与变量 ========== */
:root {
    --primary: #2E7D9A;       /* 宁静蓝 - 主色 */
    --primary-dark: #1B5E77;
    --primary-light: #E8F4FA;
    --accent: #5BAF7A;        /* 生命绿 - 辅助 */
    --warm: #F0A050;          /* 温暖橙 - 点缀 */
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #FFFFFF;
    --bg-alt: #F6FAFB;
    --border: #E8EEF0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(46,125,154,0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }.logo a.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a5d7a;
    text-decoration: none;
    letter-spacing: 1px;
}
.logo .logo-divider {
    margin: 0 12px;
    color: #ccc;
    font-weight: 300;
}
/* ========== 顶部信息条 ========== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.top-bar a { color: #fff; font-weight: 600; }

/* ========== 导航 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo img { height: 42px; }
.nav ul { display: flex; gap: 4px; }
.nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all .3s;
}
.nav a:hover, .nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.btn-consult {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.btn-consult:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }

/* ========== Banner ========== */
.banner { padding: 60px 0; overflow: hidden; }
.banner-content { display: flex; align-items: center; gap: 40px; }
.banner-text { flex: 1; }
.banner-text h1 { font-size: 2.4rem; color: var(--primary-dark); margin-bottom: 12px; }
.banner-text p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 24px; }
.banner-img { flex: 0 0 420px; }
.banner-img img { border-radius: var(--radius); }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white-outline { border: 2px solid #fff; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ========== 统计条 ========== */
.stats-bar { background: var(--primary); color: #fff; padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item strong { font-size: 1.8rem; display: block; }
.stat-item span { font-size: 13px; opacity: .85; }

/* ========== 通用Section ========== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 15px; }

/* ========== 科室卡片 ========== */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dept-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all .3s;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.dept-card i { font-size: 2.4rem; color: var(--primary); margin-bottom: 12px; }
.dept-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.dept-card p { font-size: 13px; color: var(--text-muted); }

/* ========== 医生卡片 ========== */
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .3s;
}
.doctor-card:hover { transform: translateY(-4px); }
.doctor-avatar { height: 220px; overflow: hidden; }
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 1rem; margin: 12px 0 4px; }
.doctor-title { font-size: 13px; color: var(--primary); }
.doctor-card p { font-size: 13px; color: var(--text-muted); padding: 8px 12px 16px; }

/* ========== 文章列表 ========== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    transition: all .3s;
}
.article-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.article-thumb { flex: 0 0 180px; border-radius: 8px; overflow: hidden; }
.article-thumb img { width: 100%; height: 120px; object-fit: cover; }
.article-info { flex: 1; }
.article-info h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.5; }
.article-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-date, .article-meta span { font-size: 12px; color: var(--text-muted); margin-right: 16px; }

/* ========== 就诊流程 ========== */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step-item { text-align: center; padding: 20px 8px; }
.step-num {
    display: inline-flex;
    width: 48px; height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.step-item h4 { font-size: 15px; margin-bottom: 4px; }
.step-item p { font-size: 12px; color: var(--text-muted); }

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 56px 0;
}
.cta-section h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-section p { opacity: .9; margin-bottom: 24px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== 内容页布局 ========== */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.detail-title { font-size: 1.5rem; margin-bottom: 12px; }
.detail-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.detail-meta span { margin-right: 20px; }
.detail-body { font-size: 15px; line-height: 1.9; }
.detail-body img { border-radius: 8px; margin: 16px 0; }
.detail-body p { margin-bottom: 16px; }
.article-nav { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-light); }
.article-nav p { margin-bottom: 6px; }

/* ========== 侧栏 ========== */
.sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.sidebar-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar-list a:hover { color: var(--primary); }
.cta-box { background: var(--primary-light); text-align: center; }
.cta-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ========== 面包屑 ========== */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-muted); background: var(--bg-alt); }
.breadcrumb a { color: var(--primary); }

/* ========== 分页 ========== */
.pagination { text-align: center; margin-top: 32px; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}
.pagination .active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 页脚 ========== */
.footer { background: #1A2E35; color: rgba(255,255,255,.8); padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; text-align: center; font-size: 12px; opacity: .7; }
.disclaimer { margin-top: 6px; font-style: italic; }

/* ========== 移动端浮动按钮 ========== */
.float-actions {
    position: fixed;
    bottom: 20px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.float-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}
.float-btn span { font-size: 10px; }
.float-btn.primary { background: var(--primary); color: #fff; }

/* ============================================
   响应式 - 平板 (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .doctor-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-img { display: none; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================
   响应式 - 手机 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .top-bar .top-time { display: none; }
    
    /* 导航折叠 */
    .nav-toggle { display: block; }
    .nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .nav.active { max-height: 400px; }
    .nav ul { flex-direction: column; padding: 12px; }
    .nav a { display: block; padding: 12px 16px; }
    .btn-consult { display: none; }
    
    /* Banner */
    .banner { padding: 32px 0; }
    .banner-text h1 { font-size: 1.6rem; }
    .banner-btns { display: flex; flex-direction: column; gap: 10px; }
    .banner-btns .btn { text-align: center; }
    
    /* 统计 */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item strong { font-size: 1.4rem; }
    
    /* 卡片单列 */
    .dept-grid, .doctor-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 0; }
    .step-item { display: flex; align-items: center; text-align: left; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
    .step-num { margin-bottom: 0; flex-shrink: 0; }
    
    /* 文章列表 */
    .article-item { flex-direction: column; }
    .article-thumb { flex: none; width: 100%; }
    .article-thumb img { height: 180px; }
    
    /* 侧栏 */
    .sidebar { grid-template-columns: 1fr; }
    
    /* 页脚 */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .section { padding: 36px 0; }
    .section-header h2 { font-size: 1.4rem; }
}

/* ============================================
   响应式 - 小屏手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header-inner { height: 56px; }
    .logo img { height: 34px; }
    .banner-text h1 { font-size: 1.3rem; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { width: 100%; text-align: center; }
}