/* ============================================================
   病理学学习网页 — 全局样式
   主色调：深红棕 (#7c2d12 → #b91c1c)
   区别于解剖学深紫蓝 (#1e3a8a) 和生理学青蓝 (#0c4a6e)
   ============================================================ */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色：深红棕 —— 警示感/疾病感 */
    --primary:       #b91c1c;
    --primary-light: #fee2e2;
    --primary-dark:  #7c2d12;
    /* 辅助色 */
    --accent:        #059669;   /* 绿色，用于"正常/健康"对比 */
    --accent-light:  #d1fae5;
    --warning:       #d97706;   /* 橙色，用于风险/慢性过程 */
    --warning-light: #fef3c7;
    --danger:        #991b1b;   /* 深红，用于严重/危急状态 */
    --danger-light:  #fef2f2;
    --purple:        #7c3aed;
    --purple-light:  #ede9fe;
    --teal:          #0f766e;
    --teal-light:    #ccfbf1;
    --cyan:          #0891b2;
    --cyan-light:    #e0f2fe;
    /* 灰度 */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* 通用 */
    --radius:    12px;
    --shadow:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
                 "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.8;
    color: var(--gray-800);
    background: var(--gray-50);
}

/* ===================================================
   顶部导航
   =================================================== */
.top-nav {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.top-nav .logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav .logo:hover { opacity: 0.9; }
.top-nav .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}
.top-nav .nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ===================================================
   面包屑
   =================================================== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===================================================
   页面标题区
   =================================================== */
.page-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}
.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 700px;
}
.page-hero .chapter-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===================================================
   主内容区布局
   =================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}
.main-content.full-width {
    grid-template-columns: 1fr;
}
.content-body { min-width: 0; }
.content-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    scroll-margin-top: 72px;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.8rem 0 0.8rem;
}
.content-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1.2rem 0 0.5rem;
}
.content-body p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}
.content-body ul,
.content-body ol {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--gray-700);
}
.content-body li { margin-bottom: 0.4rem; }

/* ===================================================
   右侧目录栏
   =================================================== */
.sidebar {
    position: sticky;
    top: 80px;
}
.sidebar-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-card .toc-list {
    list-style: none;
    padding: 0;
}
.sidebar-card .toc-list li { margin-bottom: 2px; }
.sidebar-card .toc-list a {
    display: block;
    padding: 6px 10px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sidebar-card .toc-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* ===================================================
   通用卡片
   =================================================== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card h3 { margin-top: 0; }

/* ===================================================
   章节网格与章节卡片（首页用）
   =================================================== */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.chapter-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
    display: block;
}
.chapter-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.chapter-card .ch-num {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.chapter-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.chapter-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}
.chapter-card .tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 8px;
}
/* 三阶段颜色 */
.chapter-card.phase-1 { border-left-color: var(--primary); }
.chapter-card.phase-1 .ch-num { background: var(--primary); }
.chapter-card.phase-2 { border-left-color: var(--warning); }
.chapter-card.phase-2 .ch-num { background: var(--warning); }
.chapter-card.phase-3 { border-left-color: var(--purple); }
.chapter-card.phase-3 .ch-num { background: var(--purple); }

/* ===================================================
   知识卡片（info-box 系列）
   =================================================== */
.info-box {
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}
.info-box.blue   { background: var(--cyan-light);    border-left: 4px solid var(--cyan); }
.info-box.green  { background: var(--accent-light);  border-left: 4px solid var(--accent); }
.info-box.yellow { background: var(--warning-light); border-left: 4px solid var(--warning); }
.info-box.red    { background: var(--primary-light); border-left: 4px solid var(--primary); }
.info-box.purple { background: var(--purple-light);  border-left: 4px solid var(--purple); }
.info-box.teal   { background: var(--teal-light);    border-left: 4px solid var(--teal); }
.info-box .box-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-box p { margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }

/* ===================================================
   对比表格
   =================================================== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.compare-table th {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}
.compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }

/* ===================================================
   流程步骤（简单横排）
   =================================================== */
.flow-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0;
}
.flow-step {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.flow-arrow {
    color: var(--gray-400);
    font-size: 1.2rem;
}

/* ===================================================
   数据统计格
   =================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-item {
    background: white;
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-item .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.stat-item .label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ===================================================
   章节底部导航
   =================================================== */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    gap: 1rem;
}
.chapter-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s;
    max-width: 48%;
}
.chapter-nav a:hover {
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
}
.chapter-nav a.next { margin-left: auto; }
.chapter-nav .nav-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    display: block;
}

/* ===================================================
   页脚
   =================================================== */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    margin-top: 2rem;
}
.site-footer a {
    color: #fca5a5;
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ===================================================
   生活案例框
   =================================================== */
.life-example {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
    position: relative;
}
.life-example::before {
    content: "💡 生活案例";
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--warning);
    display: block;
    margin-bottom: 6px;
}

/* ===================================================
   个人案例框（用户亲身经历）
   =================================================== */
.personal-case {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}
.personal-case::before {
    content: "👤 你的亲身经历";
    font-weight: 700;
    font-size: 0.85rem;
    color: #065f46;
    display: block;
    margin-bottom: 8px;
}
.personal-case p,
.personal-case li { color: #064e3b; }

/* ===================================================
   关键概念框
   =================================================== */
.key-concept {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
}
.key-concept::before {
    content: "🔑 核心概念";
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
}

/* ===================================================
   误区提示（常见误区模块用）
   =================================================== */
.misconception {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
}
.misconception .myth {
    color: var(--primary);
    font-weight: 700;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.misconception .truth {
    color: var(--accent);
    font-weight: 700;
    display: block;
    font-size: 0.95rem;
}

/* ===================================================
   CS 类比框（深色暗红风格）
   =================================================== */
.cs-analogy {
    background: linear-gradient(135deg, #1c0a0a 0%, #7c2d12 100%);
    color: #fde8e8;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.cs-analogy::before {
    content: '💻';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 4rem;
    opacity: 0.12;
}
.cs-analogy .cs-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f87171;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cs-analogy p,
.cs-analogy li { color: #fca5a5; margin-bottom: 0.4rem; }
.cs-analogy strong { color: #fde8e8; }
.cs-analogy code {
    background: rgba(255,255,255,0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #f87171;
}
.cs-analogy ul,
.cs-analogy ol {
    margin-left: 1.4rem;
    margin-top: 0.3rem;
}

/* ===================================================
   流程图系统（病理进展链）
   =================================================== */
.flow-diagram {
    background: #fff1f2;
    border: 2px solid #fecaca;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.flow-diagram .fd-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 线性调节链 */
.fd-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    row-gap: 10px;
}

/* 节点 */
.fd-node {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid transparent;
    line-height: 1.4;
    text-align: center;
}
.fd-node.fn-start   { background: #fee2e2; color: #7c2d12; border-color: #f87171; }
.fd-node.fn-default { background: #fff1f2; color: #b91c1c; border-color: #fca5a5; }
.fd-node.fn-result  { background: #fef2f2; color: #991b1b; border-color: #f87171; }
.fd-node.fn-alert   { background: #7c2d12; color: #fee2e2; border-color: #b91c1c; }
.fd-node.fn-organ   { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.fd-node.fn-hormone { background: #fef3c7; color: #92400e; border-color: #fbbf24; }
.fd-node.fn-normal  { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.fd-node.fn-damage  { background: #450a0a; color: #fecaca; border-color: #991b1b; }

/* 箭头 */
.fd-arrow {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 700;
    padding: 0 2px;
}
.fd-arrow.inhibit  { color: var(--accent); }
.fd-arrow.feedback { color: var(--purple); }

/* 负反馈回路盒子 */
.fd-loop-box {
    background: white;
    border: 2px solid #fecaca;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.2rem;
    margin: 1rem 0;
    position: relative;
}
.fd-loop-badge {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.fd-loop-badge.positive { background: #991b1b; }

.fd-loop-feedback-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fee2e2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.87rem;
    color: #991b1b;
    border-left: 3px solid var(--primary);
}
.fd-loop-feedback-row .fb-label {
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===================================================
   机制框（深色暗红）
   =================================================== */
.mechanism-box {
    background: linear-gradient(135deg, #1c0a0a 0%, #450a0a 100%);
    color: #fde8e8;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.mechanism-box::before {
    content: '⚙️';
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 4rem;
    opacity: 0.1;
}
.mechanism-box .mb-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f87171;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mechanism-box p,
.mechanism-box li { color: #fca5a5; margin-bottom: 0.4rem; }
.mechanism-box strong { color: #fde8e8; }
.mechanism-box code {
    background: rgba(255,255,255,0.12);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #f87171;
    font-family: "Consolas", "Monaco", monospace;
}
.mechanism-box ul { margin-left: 1.4rem; margin-top: 0.3rem; }
.mechanism-box .mb-formula {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin: 0.8rem 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.92rem;
    color: #f87171;
    text-align: center;
}

/* ===================================================
   正常值/数据卡片
   =================================================== */
.data-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}
.data-card .dc-label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 0.95rem;
    min-width: 120px;
}
.data-card .dc-range { flex: 1; }
.data-card .dc-normal {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 6px;
}
.data-card .dc-abnormal {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 6px;
}
.data-card .dc-note {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 4px;
}
.data-card .dc-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* ===================================================
   章节导读框（模块1：📌 承接导读）
   =================================================== */
.chapter-intro {
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    margin: 0 0 2.5rem 0;
}
.chapter-intro .ci-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.chapter-intro .ci-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}
.chapter-intro .ci-phase {
    font-size: 0.82rem;
    color: var(--primary-dark);
    font-weight: 600;
}
.chapter-intro h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    margin-top: 0;
}
.chapter-intro .ci-physio-link {
    font-size: 0.85rem;
    color: var(--gray-600);
    background: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-300);
}
.chapter-intro .ci-physio-link strong { color: var(--primary-dark); }
.chapter-intro .intro-hooks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.8rem;
}
.chapter-intro .intro-hooks li {
    background: white;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    color: var(--gray-700);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow);
}
.chapter-intro .intro-hooks li::before {
    content: "❓ ";
}

/* ===================================================
   FAQ 模块
   =================================================== */
.faq-section { margin: 1.5rem 0; }
.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.faq-q {
    background: var(--gray-50);
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}
.faq-q::before { content: 'Q: '; color: var(--primary); }
.faq-a {
    padding: 0.8rem 1.2rem;
    color: var(--gray-700);
}
.faq-a::before { content: 'A: '; color: var(--accent); font-weight: 700; }

/* ===================================================
   图示占位框
   =================================================== */
.diagram-box {
    background: white;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===================================================
   首页专属内容区组件
   =================================================== */
.home-section { margin: 2.8rem 0; }
.home-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}
.home-section-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--gray-900);
    border: none;
    padding: 0;
    display: inline;
}
.section-sub {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* 阶段标签 */
.phase-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem;
    letter-spacing: 0.02em;
}
.phase-red    { background: #fee2e2; color: #991b1b; }
.phase-orange { background: #ffedd5; color: #9a3412; }
.phase-purple { background: #ede9fe; color: #5b21b6; }

/* 工具横条网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.tool-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.tool-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.tool-desc { font-size: 0.8rem; opacity: 0.75; }

.tool-teal   { background: #f0fdfa; border-color: #99f6e4; color: #115e59 !important; }
.tool-amber  { background: #fffbeb; border-color: #fde68a; color: #92400e !important; }
.tool-orange { background: #fff7ed; border-color: #fed7aa; color: #9a3412 !important; }
.tool-purple { background: #faf5ff; border-color: #d8b4fe; color: #6b21a8 !important; }
.tool-red    { background: #fff1f2; border-color: #fecaca; color: #991b1b !important; }

.tool-teal:hover   { background: #ccfbf1; border-color: #2dd4bf; }
.tool-amber:hover  { background: #fef3c7; border-color: #fbbf24; }
.tool-orange:hover { background: #ffedd5; border-color: #fb923c; }
.tool-purple:hover { background: #f3e8ff; border-color: #c084fc; }
.tool-red:hover    { background: #fee2e2; border-color: #f87171; }

/* ===================================================
   ★ 新增：四问框架（核心机制展示）
   =================================================== */
.four-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1.5rem 0;
}
.fq-item {
    background: white;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
}
.fq-item.fq-what    { border-top-color: #0891b2; }
.fq-item.fq-why     { border-top-color: var(--warning); }
.fq-item.fq-matter  { border-top-color: var(--primary); }
.fq-item.fq-action  { border-top-color: var(--accent); }

.fq-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}
.fq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.fq-item.fq-what   .fq-num { background: #e0f2fe; color: #0c4a6e; }
.fq-item.fq-why    .fq-num { background: #fef3c7; color: #92400e; }
.fq-item.fq-matter .fq-num { background: #fee2e2; color: #991b1b; }
.fq-item.fq-action .fq-num { background: #d1fae5; color: #065f46; }

.fq-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gray-800);
}
.fq-content {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}
.fq-content p { margin-bottom: 0.4rem; }
.fq-content p:last-child { margin-bottom: 0; }

/* ===================================================
   ★ 新增：疾病进展流程图
   =================================================== */
.disease-flow {
    background: white;
    border: 2px solid #fecaca;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.disease-flow .df-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.df-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    row-gap: 10px;
}
.df-node {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid transparent;
    line-height: 1.4;
    text-align: center;
}
.df-node.df-cause     { background: #fef3c7; color: #92400e; border-color: #fbbf24; }
.df-node.df-mechanism { background: #fee2e2; color: #991b1b; border-color: #f87171; }
.df-node.df-result    { background: #450a0a; color: #fecaca; border-color: #b91c1c; }
.df-node.df-outcome   { background: #f5f3ff; color: #5b21b6; border-color: #c4b5fd; }
.df-node.df-protect   { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }

.df-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    padding: 0 2px;
}

/* ===================================================
   ★ 新增：正常 vs 病理对比框
   =================================================== */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 1.5rem 0;
}
.cb-normal,
.cb-path {
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}
.cb-normal {
    background: #f0fdf4;
    border-top: 3px solid #22c55e;
}
.cb-path {
    background: #fff1f2;
    border-top: 3px solid var(--primary);
}
.cb-label {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}
.cb-normal .cb-label { color: #166534; }
.cb-path   .cb-label { color: #991b1b; }
.cb-content {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray-700);
}
.cb-content ul {
    margin-left: 1.2rem;
    margin-top: 0.3rem;
}

/* ===================================================
   ★ 新增：风险程度指示条
   =================================================== */
.risk-meter {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}
.rm-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 60px;
}
.rm-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.rm-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.rm-fill.low      { background: #22c55e; }
.rm-fill.medium   { background: #f59e0b; }
.rm-fill.high     { background: #ef4444; }
.rm-fill.critical { background: #7c2d12; }

.rm-level {
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}
.rm-level.low      { color: #166534; }
.rm-level.medium   { color: #92400e; }
.rm-level.high     { color: #991b1b; }
.rm-level.critical { color: #7c2d12; }

/* ===================================================
   ★ 新增：临床警示框
   =================================================== */
.warning-box {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}
.warning-box::before {
    content: "⚠️ 临床警示";
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
}
.warning-box p { color: #7c2d12; margin-bottom: 0.4rem; }
.warning-box p:last-child { margin-bottom: 0; }
.warning-box strong { color: #991b1b; }

/* ===================================================
   ★ 新增：认知扩展框（模块4）
   =================================================== */
.cognitive-expand {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #ede9fe;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.cognitive-expand::before {
    content: '🌍';
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 4rem;
    opacity: 0.15;
}
.cognitive-expand .ce-title {
    font-weight: 700;
    font-size: 1rem;
    color: #c4b5fd;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cognitive-expand p,
.cognitive-expand li { color: #ddd6fe; margin-bottom: 0.4rem; }
.cognitive-expand strong { color: #f3f0ff; }
.cognitive-expand ul { margin-left: 1.4rem; margin-top: 0.3rem; }

/* ===================================================
   ★ 新增：理解临床框（模块5）
   =================================================== */
.clinical-logic {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}
.clinical-logic::before {
    content: "💊 理解临床";
    font-weight: 700;
    font-size: 0.85rem;
    color: #065f46;
    display: block;
    margin-bottom: 8px;
}
.clinical-logic p { color: #064e3b; margin-bottom: 0.5rem; }
.clinical-logic p:last-child { margin-bottom: 0; }
.clinical-logic strong { color: #022c22; }
.clinical-logic .cl-item {
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-left: 3px solid #10b981;
    font-size: 0.88rem;
    color: #064e3b;
}
.clinical-logic .cl-item:last-child { margin-bottom: 0; }

/* ===================================================
   ★ 新增：疾病关联网（模块7）
   =================================================== */
.disease-network {
    background: white;
    border: 2px solid #fecaca;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.disease-network .dn-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dn-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}
.dn-item:last-child { margin-bottom: 0; }
.dn-from {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.dn-arrow {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.dn-to { color: var(--gray-700); flex: 1; }
.dn-to strong { color: var(--gray-900); }

/* ===================================================
   导航系统：下拉菜单 / 汉堡按钮 / 侧边栏 / FAB
   =================================================== */

/* 下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}
.nav-arrow {
    font-size: 0.65em;
    transition: transform 0.2s;
    display: inline-block;
}
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
    padding: 16px;
    z-index: 1000;
    gap: 12px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.chapters-menu { min-width: 680px; }
.tools-menu    { min-width: 200px; }

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid white;
}

.dropdown-group { flex: 1; min-width: 0; }
.dropdown-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px 6px;
}
.nav-dropdown-menu a {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    color: #334155 !important;
    font-size: 0.84rem;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover  { background: #fff1f2; color: var(--primary) !important; }
.nav-dropdown-menu a.active { background: #fee2e2; color: var(--primary-dark) !important; font-weight: 600; }

/* 汉堡按钮 */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* 遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

/* 侧边栏 */
.nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1200;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 32px rgba(0,0,0,0.2);
}
.nav-sidebar.open { right: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background: linear-gradient(135deg, #7c2d12, #b91c1c);
    color: white;
    font-weight: 600;
    font-size: 0.92rem;
    position: sticky;
    top: 0;
    z-index: 1;
}
.sidebar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
    border-radius: 4px;
}
.sidebar-close:hover { color: white; background: rgba(255,255,255,0.15); }

.sidebar-body { padding: 8px 0 32px; }

.sidebar-section {
    padding: 12px 20px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.sidebar-link {
    display: block;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.88rem;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.sidebar-link:hover  { background: #fff1f2; color: var(--primary); border-left-color: #fecaca; }
.sidebar-link.active { background: #fee2e2; color: var(--primary-dark); border-left-color: var(--primary); font-weight: 600; }

/* FAB 返回首页 */
.fab-home {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #7c2d12);
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(185,28,28,0.45);
    z-index: 900;
    transition: all 0.22s;
}
.fab-home:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 28px rgba(185,28,28,0.6);
}
.fab-home::after {
    content: '返回首页';
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fab-home:hover::after { opacity: 1; }

/* ===================================================
   首页英雄区（深红棕渐变）
   =================================================== */
.index-hero {
    background: linear-gradient(135deg, #2d0707 0%, #7c2d12 55%, #b91c1c 100%);
    padding: 64px 24px 52px;
    position: relative;
    overflow: hidden;
}
.index-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.index-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.index-hero-badge {
    display: inline-block;
    background: rgba(248,113,113,0.15);
    border: 1px solid rgba(248,113,113,0.3);
    color: #f87171;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.index-hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.index-hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 36px;
}
.index-hero-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 8px;
    margin-bottom: 32px;
    gap: 0;
}
.ihs-item { text-align: center; padding: 0 24px; }
.ihs-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.ihs-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #f87171;
    line-height: 1;
}
.ihs-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 4px;
}
.index-hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hero-btn-primary {
    background: #b91c1c;
    color: white !important;
    text-decoration: none !important;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(185,28,28,0.5);
}
.hero-btn-primary:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(185,28,28,0.65);
}
.hero-btn-outline {
    background: rgba(255,255,255,0.08);
    color: white !important;
    text-decoration: none !important;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.22);
    transition: all 0.2s;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.index-hero-organs {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.index-hero-organs span {
    font-size: 1.8rem;
    opacity: 0.6;
    display: inline-block;
    transition: all 0.3s;
    cursor: default;
    animation: organFloat 3s ease-in-out infinite;
}
.index-hero-organs span:nth-child(1) { animation-delay: 0s; }
.index-hero-organs span:nth-child(2) { animation-delay: 0.35s; }
.index-hero-organs span:nth-child(3) { animation-delay: 0.7s; }
.index-hero-organs span:nth-child(4) { animation-delay: 1.05s; }
.index-hero-organs span:nth-child(5) { animation-delay: 1.4s; }
.index-hero-organs span:nth-child(6) { animation-delay: 1.75s; }
.index-hero-organs span:nth-child(7) { animation-delay: 2.1s; }
.index-hero-organs span:nth-child(8) { animation-delay: 2.45s; }
.index-hero-organs span:hover { opacity: 1; transform: scale(1.35) translateY(-5px); }

@keyframes organFloat {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50%       { opacity: 0.85; transform: translateY(-6px); }
}

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .sidebar { display: none; }
    .page-hero { padding: 1.5rem 1rem 0.5rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .breadcrumb { padding: 0.8rem 1rem 0; }
    .top-nav-inner { padding: 0 1rem; }
    .top-nav .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-nav { flex-direction: column; }
    .chapter-nav a { max-width: 100%; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-steps { justify-content: center; }
    .fd-chain { row-gap: 10px; }
    .df-chain { row-gap: 10px; }
    .tools-grid { grid-template-columns: 1fr; }
    .home-section-header { flex-direction: column; gap: 2px; }
    .four-questions { grid-template-columns: 1fr; }
    .comparison-box { grid-template-columns: 1fr; }

    .index-hero { padding: 44px 20px 40px; }
    .index-hero-title { font-size: 2.4rem; }
    .index-hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
    .index-hero-stats { padding: 16px 4px; }
    .ihs-item { padding: 0 14px; }
    .ihs-num { font-size: 1.7rem; }

    .fab-home { bottom: 20px; right: 16px; width: 44px; height: 44px; font-size: 1.15rem; }
    .fab-home::after { display: none; }
    .data-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .chapters-menu { min-width: unset; }
    .risk-meter { flex-direction: column; align-items: flex-start; }
    .rm-bar { width: 100%; }
}

/* ===================================================
   打印样式
   =================================================== */
@media print {
    .top-nav, .sidebar, .chapter-nav, .site-footer, .fab-home { display: none; }
    .main-content { grid-template-columns: 1fr; }
    body { background: white; }
    .cs-analogy, .mechanism-box { background: #fff1f2 !important; color: #7c2d12 !important; }
    .cognitive-expand { background: #faf5ff !important; color: #4c1d95 !important; }
}
