:root {
    /* ---- MD3 转接层 ----
       presentation 原本只有 --pres-primary 一个变量，其余颜色散落在 1460 行里。
       这里把高频裸值提升为具名变量并指向 MD3 令牌，再批量替换选择器里的裸值。
       页面跟随系统 / 应用主题（theme-md3.js 写入 data-md3-theme）。 */
    --pres-primary: var(--md3-primary);
    --pres-bg: var(--md3-background);              /* 原 #171b1d */
    --pres-on-bg: var(--md3-on-surface);           /* 原 #e6e3dc 主文字 */
    --pres-muted: var(--md3-on-surface-variant);   /* 原 #aaa/#999/#888 次文字 */
    --pres-outline: var(--md3-outline-variant);    /* 原 #ccc/#bbb 描边与弱文字 */
    --pres-surface: var(--md3-surface-container-low); /* 卡片底 */

    /* 玻璃层：深色下用白色低透明度，浅色下翻转为黑色低透明度 */
    --pres-glass-02: rgba(255, 255, 255, 0.02);
    --pres-glass-03: rgba(255, 255, 255, 0.03);
    --pres-glass-04: rgba(255, 255, 255, 0.04);
    --pres-glass-05: rgba(255, 255, 255, 0.05);
    --pres-glass-06: rgba(255, 255, 255, 0.06);
    --pres-glass-07: rgba(255, 255, 255, 0.07);
    --pres-glass-08: rgba(255, 255, 255, 0.08);
    --pres-glass-10: rgba(255, 255, 255, 0.1);
    --pres-glass-12: rgba(255, 255, 255, 0.12);
    --pres-glass-15: rgba(255, 255, 255, 0.15);
    --pres-shade-15: rgba(0, 0, 0, 0.15);
    --pres-shade-20: rgba(0, 0, 0, 0.2);
    --pres-shade-30: rgba(0, 0, 0, 0.3);
    --pres-shade-75: rgba(0, 0, 0, 0.75);

    /* 圆角梯度：原 tokens.css 与 MD3 形状体系同值（4/8/12），直接转接 */
    --radius-sm: var(--md3-shape-extra-small);
    --radius-md: var(--md3-shape-small);
    --radius-lg: var(--md3-shape-medium);

    /* 学科色：与 promo / 主应用一致的业务扩展色，MD3 无对应角色 */
    --pres-physics: #4A90D9;
    --pres-chemistry: #48A9A6;
    --pres-biology: #7CB342;
}

:root[data-md3-theme="light"] {
    --pres-glass-02: rgba(15, 23, 20, 0.02);
    --pres-glass-03: rgba(15, 23, 20, 0.03);
    --pres-glass-04: rgba(15, 23, 20, 0.04);
    --pres-glass-05: rgba(15, 23, 20, 0.05);
    --pres-glass-06: rgba(15, 23, 20, 0.06);
    --pres-glass-07: rgba(15, 23, 20, 0.07);
    --pres-glass-08: rgba(15, 23, 20, 0.08);
    --pres-glass-10: rgba(15, 23, 20, 0.1);
    --pres-glass-12: rgba(15, 23, 20, 0.12);
    --pres-glass-15: rgba(15, 23, 20, 0.15);
    --pres-shade-15: rgba(15, 23, 20, 0.05);
    --pres-shade-20: rgba(15, 23, 20, 0.05);
    --pres-shade-30: rgba(15, 23, 20, 0.07);
    --pres-shade-75: rgba(15, 23, 20, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: MiSans, "Microsoft YaHei", sans-serif;
    background: var(--pres-bg);
    min-height: 100vh;
    color: var(--pres-on-bg);
    overflow: hidden;
}

.presentation {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 50px 70px;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.slide.active {
    display: flex;
    opacity: 1;
}

.slide-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.slide-content.cover {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.badge {
    background: var(--pres-primary);
    color: var(--md3-on-primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: inline-block;
    z-index: 1;
    position: relative;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--pres-on-bg);
    z-index: 1;
    position: relative;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--pres-muted);
    margin-bottom: 40px;
    z-index: 1;
    position: relative;
}

.stats-row {
    display: flex;
    gap: 50px;
    margin-bottom: 35px;
    z-index: 1;
    position: relative;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pres-primary);
}

.number-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pres-primary);
}

.label {
    font-size: 0.9rem;
    color: var(--pres-muted);
}

.subject-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    z-index: 1;
    position: relative;
}

.subject {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-icon { font-size: 1.3rem; }

.subject.physics { background: rgba(74,144,217,0.3); border: 1px solid var(--pres-physics); }
.subject.chemistry { background: rgba(72,169,166,0.3); border: 1px solid var(--pres-chemistry); }
.subject.biology { background: rgba(124,179,66,0.3); border: 1px solid var(--pres-biology); }

/* Visual Preview Row */
.visual-preview-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    z-index: 1;
    position: relative;
}

.mini-demo {
    background: var(--pres-glass-06);
    border: 1px solid var(--pres-glass-12);
    border-radius: var(--radius-lg);
    padding: 15px;
    text-align: center;
    min-width: 150px;
}

.mini-demo span:last-child {
    display: block;
    font-size: 0.8rem;
    color: var(--pres-muted);
    margin-top: 8px;
}

.mini-equation {
    font-family: 'Times New Roman', serif;
    font-size: 0.85rem;
    color: var(--pres-chemistry);
    padding: 5px 0;
}

/* Slide 2: Enhanced Intro */
.intro-content-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
}

.highlight-box-enhanced {
    background: rgba(102,126,234,0.08);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 25px;
}

.intro-text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--pres-outline);
    margin-bottom: 15px;
}

.intro-text-large strong { color: var(--pres-primary); }

.intro-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(102,126,234,0.2);
    color: var(--md3-primary);
    padding: 5px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
}

.workflow-diagram {
    background: var(--pres-glass-04);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.workflow-diagram h4 { margin-bottom: 16px; color: var(--pres-on-bg); font-size: 1.05rem; }

.workflow-steps {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-step {
    background: var(--pres-glass-07);
    border: 1px solid var(--pres-glass-10);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    min-width: 90px;
}

.wf-icon { font-size: 1.6rem; margin-bottom: 6px; }
.wf-label { font-weight: 600; font-size: 0.9rem; color: var(--pres-on-bg); }
.wf-desc { font-size: 0.75rem; color: var(--pres-muted); margin-top: 4px; }

.wf-arrow { color: var(--pres-primary); font-size: 1.3rem; font-weight: bold; }

.feature-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card-enhanced {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-card-enhanced.featured {
    border-color: rgba(102,126,234,0.4);
    background: rgba(102,126,234,0.08);
}

.fci {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.physics-bg { background: rgba(74,144,217,0.2); }
.chemistry-bg { background: rgba(72,169,166,0.2); }
.biology-bg { background: rgba(124,179,66,0.2); }
.highlight-bg { background: rgba(102,126,234,0.3); }

.feature-card-enhanced h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--pres-on-bg); }
.feature-card-enhanced p { font-size: 0.85rem; color: var(--pres-muted); line-height: 1.5; }

.fc-stats {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.fc-stats span {
    background: var(--pres-glass-08);
    padding: 3px 10px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--pres-muted);
}

/* Slide 3: Physics Tools Enhanced */
.tools-showcase-enhanced {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tool-detail-card-enhanced {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tool-header-enhanced {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: rgba(74,144,217,0.1);
    border-bottom: 1px solid rgba(74,144,217,0.2);
}

.physics-header { background: rgba(74,144,217,0.1); border-bottom-color: rgba(74,144,217,0.2); }

.tool-icon-lg { font-size: 2.2rem; }
.tool-header-enhanced h3 { font-size: 1.4rem; color: var(--pres-on-bg); }
.tool-subtitle { font-size: 0.9rem; color: var(--pres-muted); margin-top: 3px; }

.tool-body-enhanced {
    display: flex;
    gap: 30px;
    padding: 25px;
}

.tool-body-enhanced.reverse-layout {
    flex-direction: row-reverse;
}

.tool-demo-panel { flex: 1; min-width: 0; }
.tool-features-list { flex: 1; }

/* Calculator Mockup */
.calculator-mockup {
    background: #1e1e2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--pres-glass-10);
}

.mockup-title-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #2d2d3d;
    border-bottom: 1px solid var(--pres-glass-05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title { font-size: 0.8rem; color: var(--pres-muted); margin-left: 8px; }

.mockup-content { padding: 18px; }

.calc-display {
    background: var(--pres-shade-30);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
}

.formula-input {
    font-family: 'Times New Roman', serif;
    font-size: 1.8rem;
    color: var(--pres-on-bg);
    margin-bottom: 5px;
}

.calc-result {
    font-size: 1.2rem;
    color: var(--pres-primary);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--pres-outline);
}

.input-group input {
    background: var(--pres-glass-08);
    border: 1px solid var(--pres-glass-15);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    color: var(--pres-on-bg);
    font-size: 0.9rem;
    width: 80px;
}

.calc-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-calc {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.voice-btn { background: rgba(74,144,217,0.2); color: var(--pres-physics); border: 1px solid var(--pres-physics); }
.btn-calc.primary { background: var(--pres-primary); color: var(--md3-on-primary); }

.calc-steps {
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
    padding: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--pres-outline);
}

.step-num {
    width: 22px;
    height: 22px;
    background: rgba(102,126,234,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--pres-primary);
    font-weight: 600;
}

.step-item.highlight-step { color: var(--pres-biology); }

.tool-features-list ul { list-style: none; }
.tool-features-list li {
    padding: 8px 0;
    color: var(--pres-outline);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--pres-glass-04);
}
.tool-features-list li strong { color: var(--pres-primary); }

.supported-formulas { margin-top: 18px; }
.supported-formulas h5 { font-size: 0.9rem; color: var(--pres-muted); margin-bottom: 10px; }

.formula-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.formula-tags span {
    background: rgba(74,144,217,0.15);
    color: var(--pres-physics);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
}

/* Projectile Demo Enhanced */
.projectile-demo-enhanced {
    background: var(--pres-shade-30);
    border-radius: var(--radius-lg);
    padding: 15px;
}

.projectile-demo-enhanced canvas {
    width: 100%;
    border-radius: var(--radius-md);
    background: #0a1525;
}

.projectile-controls {
    margin-top: 12px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--pres-muted);
}

.control-row input[type="range"] {
    flex: 1;
    accent-color: var(--pres-physics);
}

.data-readout {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.data-item {
    flex: 1;
    background: var(--pres-glass-05);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.data-label { display: block; font-size: 0.75rem; color: var(--pres-muted); }
.data-value { display: block; font-size: 1rem; color: var(--pres-physics); font-weight: 600; margin-top: 4px; }

.physics-scenarios { margin-top: 18px; }
.physics-scenarios h5 { font-size: 0.9rem; color: var(--pres-muted); margin-bottom: 10px; }

.scenario-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--pres-glass-05);
    border: 1px solid var(--pres-glass-10);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--pres-muted);
    cursor: pointer;
}

.sc-card.active {
    border-color: var(--pres-physics);
    color: var(--pres-physics);
    background: rgba(74,144,217,0.1);
}

/* Slide 4: Chemistry Tools Grid */
.tools-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.tool-tile {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, opacity 0.3s, box-shadow 0.3s;
    position: relative;
}

.tool-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(72,169,166,0.4);
}

.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 12px;
}

.chemistry-gradient {
    background: rgba(72,169,166,0.3);
}

.tool-tile h4 { font-size: 0.95rem; color: var(--pres-on-bg); margin-bottom: 6px; }
.tool-tile p { font-size: 0.78rem; color: var(--pres-muted); line-height: 1.4; }

.tile-example {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pres-glass-05);
}

.tile-example code {
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    color: var(--pres-chemistry);
    background: rgba(72,169,166,0.1);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.tile-example .balanced { color: var(--pres-biology); background: rgba(124,179,66,0.1); }
.tile-example .arrow { color: var(--pres-primary); margin: 0 6px; }

.quiz-type {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--pres-chemistry);
    background: rgba(72,169,166,0.1);
    padding: 3px 10px;
    border-radius: var(--radius-md);
    margin: 2px;
}

.safety-items { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.safe { color: #27ae60; font-size: 0.78rem; }
.danger { color: #e74c3c; font-size: 0.78rem; }

.electrochem-demo svg { width: 100%; max-width: 150px; }

.org-chain {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.72rem;
}

.org-chain span {
    color: var(--pres-chemistry);
    font-family: 'Times New Roman', serif;
}

.tool-tile.featured-tile { border-color: rgba(102,126,234,0.4); }
.tool-tile.gd-badge { position: relative; }

.gd-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #E74C3C;
    color: var(--pres-on-bg);
    padding: 2px 10px;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Slide 5: Process Analyzer */
.process-analyzer-demo {
    display: flex;
    gap: 35px;
}

.pa-left { flex: 1; }
.pa-right { flex: 1.2; }

.pa-badge {
    display: inline-block;
    background: #ff9800;
    color: var(--pres-on-bg);
    padding: 5px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.pa-tool-info h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pa-desc { font-size: 0.95rem; color: var(--pres-outline); line-height: 1.7; margin-bottom: 20px; }

.pa-capabilities { display: flex; flex-direction: column; gap: 14px; }

.cap-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cap-num {
    width: 36px;
    height: 36px;
    background: var(--pres-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cap-text h5 { font-size: 0.95rem; color: var(--pres-on-bg); margin-bottom: 4px; }
.cap-text p { font-size: 0.82rem; color: var(--pres-muted); line-height: 1.4; }

.process-flow-diagram {
    background: var(--pres-glass-03);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.process-flow-diagram h4 { font-size: 1.05rem; margin-bottom: 15px; color: var(--pres-on-bg); }

.flow-svg { width: 100%; height: auto; }

.analysis-results {
    margin-top: 18px;
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
    padding: 16px;
}

.analysis-results h5 { font-size: 0.9rem; color: var(--pres-muted); margin-bottom: 12px; }

.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.result-item {
    text-align: center;
    padding: 10px 6px;
    background: var(--pres-glass-03);
    border-radius: var(--radius-md);
}

.ri-label { display: block; font-size: 0.75rem; color: var(--pres-muted); margin-bottom: 4px; }
.ri-value { font-size: 0.95rem; color: var(--pres-on-bg); font-weight: 600; }
.ri-value.highlight { color: var(--pres-biology); }

/* Slide 6: Biology Tools Grid */
.bio-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bio-tool-card {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.bio-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bio-tool-card.large-bio {
    grid-column: span 2;
}

.bio-tool-card.featured-bio {
    border-color: rgba(124,179,66,0.4);
}

.btc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.genetics-header { background: rgba(124,179,66,0.1); border-bottom: 1px solid rgba(124,179,66,0.2); }
.eco-header { background: rgba(39,174,96,0.1); border-bottom: 1px solid rgba(39,174,96,0.2); }
.mind-header { background: rgba(156,39,176,0.1); border-bottom: 1px solid rgba(156,39,176,0.2); }
.pedi-header { background: rgba(233,30,99,0.1); border-bottom: 1px solid rgba(233,30,99,0.2); }
.photo-header { background: rgba(243,67,54,0.1); border-bottom: 1px solid rgba(243,67,54,0.2); }
.exp-header { background: rgba(0,151,167,0.1); border-bottom: 1px solid rgba(0,151,167,0.2); }

.btc-icon { font-size: 1.6rem; }
.btc-header h3 { font-size: 1.05rem; color: var(--pres-on-bg); }

.featured-tag {
    position: absolute;
    right: 16px;
    background: var(--pres-biology);
    color: var(--pres-on-bg);
    padding: 3px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.72rem;
    font-weight: 600;
}

.btc-body {
    padding: 18px 20px;
}

.btc-body.compact { padding: 14px 16px; }

.genetics-demo svg { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
.btc-features p { font-size: 0.85rem; color: var(--pres-muted); text-align: center; margin-top: 10px; }

.eco-chart-mini, .curve-mini, .pedigree-mini { margin: 10px 0; }
.eco-chart-mini svg, .curve-mini svg, .pedigree-mini svg { width: 100%; }

.pm-male { fill: var(--pres-physics); }
.pm-female { fill: #E91E63; }
.pm-affected { fill: #E74C3C; }

.mindmap-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
}

.mm-center {
    background: var(--pres-primary);
    color: var(--md3-on-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.mm-node {
    background: var(--pres-glass-08);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    color: var(--pres-muted);
}

.exp-template-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.et-step {
    background: rgba(0,151,167,0.2);
    color: #00acc1;
    padding: 5px 10px;
    border-radius: var(--radius-md);
}

/* Slide 7: Pedigree Deep Dive */
.pedigree-deep-dive {
    display: flex;
    gap: 35px;
}

.pd-left { flex: 1; }
.pd-right { flex: 1.3; }

.pd-intro { margin-bottom: 20px; }
.pd-badge {
    display: inline-block;
    background: rgba(233,30,99,0.2);
    color: #E91E63;
    border: 1px solid rgba(233,30,99,0.4);
    padding: 4px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.pd-intro h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pd-intro p { font-size: 0.92rem; color: var(--pres-outline); line-height: 1.7; }

.pd-types-grid { margin-bottom: 20px; }
.pd-types-grid h5 { font-size: 0.88rem; color: var(--pres-muted); margin-bottom: 10px; }

.type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-tag {
    background: rgba(233,30,99,0.1);
    color: #E91E63;
    border: 1px solid rgba(233,30,99,0.2);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
}

.pd-features { display: flex; flex-direction: column; gap: 12px; }

.pdf-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--pres-glass-03);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.pdf-icon { font-size: 1.3rem; flex-shrink: 0; }
.pdf-item strong { display: block; font-size: 0.9rem; color: var(--pres-on-bg); margin-bottom: 3px; }
.pdf-item p { font-size: 0.8rem; color: var(--pres-muted); }

.pedigree-example-large {
    background: var(--pres-glass-03);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.pedigree-example-large h4 { font-size: 1rem; color: var(--pres-on-bg); margin-bottom: 15px; }

.pedigree-large-svg { width: 100%; height: auto; }

.pl-male { fill: var(--pres-physics); stroke: #2E5C8A; stroke-width: 1; }
.pl-female { fill: #E91E63; stroke: #AD1457; stroke-width: 1; }
.pl-affected { fill: #E74C3C; stroke: #B71C1C; stroke-width: 1; }

.pedigree-analysis {
    margin-top: 18px;
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
    padding: 16px;
}

.analysis-question h5 { font-size: 0.92rem; color: var(--pres-on-bg); margin-bottom: 10px; }

.answer-reveal {
    background: rgba(124,179,66,0.15);
    border: 1px solid rgba(124,179,66,0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
}

.correct-answer { font-size: 0.95rem; color: var(--pres-biology); font-weight: 600; }

.reasoning-steps h5 { font-size: 0.88rem; color: var(--pres-muted); margin-bottom: 8px; }
.reasoning-steps ol { padding-left: 18px; }
.reasoning-steps li { font-size: 0.85rem; color: var(--pres-outline); margin-bottom: 5px; }

.legend-enhanced {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.le-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--pres-muted);
}

/* Slide 8: Architecture Enhanced */
.architecture-enhanced {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.arch-diagram { width: 100%; height: auto; }

.tech-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-card {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.spec-card h4 { font-size: 1rem; color: var(--pres-primary); margin-bottom: 15px; }

.spec-stats {
    display: flex;
    gap: 15px;
}

.spec-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
}

.spec-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--pres-primary); }
.spec-label { font-size: 0.78rem; color: var(--pres-muted); margin-top: 4px; }

.tech-stack-list { display: flex; flex-direction: column; gap: 10px; }

.ts-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: var(--pres-shade-15);
    border-radius: var(--radius-md);
}

.ts-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--pres-on-bg);
    min-width: 130px;
    flex-shrink: 0;
}

.ts-desc { font-size: 0.8rem; color: var(--pres-muted); flex: 1; min-width: 0; }
.ts-item { flex-wrap: wrap; }

.spec-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--pres-shade-20);
    border-radius: var(--radius-md);
    min-width: 0;
}

/* Slide 9: Exam Value Enhanced */
.value-section-enhanced { display: flex; flex-direction: column; gap: 25px; }

.value-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-card-enhanced {
    background: var(--pres-glass-04);
    border: 1px solid var(--pres-glass-08);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.value-card-enhanced:hover { transform: translateY(-3px); }

.value-card-enhanced.featured-vce {
    border-color: rgba(102,126,234,0.4);
    background: rgba(102,126,234,0.08);
}

.vce-icon { font-size: 2.2rem; margin-bottom: 10px; }
.value-card-enhanced h3 { font-size: 1.05rem; color: var(--pres-on-bg); margin-bottom: 8px; }
.value-card-enhanced p { font-size: 0.82rem; color: var(--pres-muted); line-height: 1.5; margin-bottom: 12px; }

.vce-data {
    display: block;
    background: var(--pres-glass-06);
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 0.82rem;
    color: var(--pres-primary);
    font-weight: 600;
}

.exam-focus-area {
    background: var(--pres-glass-02);
    border: 1px solid var(--pres-glass-06);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.exam-focus-area h4 { font-size: 1.1rem; color: var(--pres-on-bg); margin-bottom: 18px; }

.focus-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.focus-chart h5 { font-size: 0.92rem; color: var(--pres-muted); margin-bottom: 12px; }

.bar-chart { display: flex; flex-direction: column; gap: 10px; }

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 70px;
    font-size: 0.8rem;
    color: var(--pres-muted);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 26px;
    background: var(--pres-glass-05);
    border-radius: 13px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--pres-primary);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.72rem;
    color: var(--pres-on-bg);
    font-weight: 600;
}

.bar-fill.bio-fill { background: var(--pres-biology); }

.exam-tips-enhanced h4 { font-size: 1.05rem; color: var(--pres-on-bg); margin-bottom: 15px; }

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tip-card {
    display: flex;
    gap: 12px;
    background: var(--pres-glass-03);
    border: 1px solid var(--pres-glass-06);
    border-radius: var(--radius-md);
    padding: 14px;
}

.tip-icon { font-size: 1.6rem; flex-shrink: 0; }
.tip-content strong { display: block; font-size: 0.9rem; color: var(--pres-on-bg); margin-bottom: 4px; }
.tip-content p { font-size: 0.8rem; color: var(--pres-muted); line-height: 1.4; }

/* Slide 10: Roadmap */
.roadmap-enhanced { padding: 10px 0; }

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pres-primary);
    border-radius: var(--radius-sm);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: var(--pres-glass-03);
    border: 1px solid var(--pres-glass-06);
    border-radius: var(--radius-lg);
}

.timeline-item.completed { border-color: rgba(124,179,66,0.3); background: rgba(124,179,66,0.05); }
.timeline-item.current { border-color: rgba(102,126,234,0.4); background: rgba(102,126,234,0.08); }

.tl-marker {
    position: absolute;
    left: -32px;
    top: 20px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--pres-bg);
    border: 2px solid #555;
}

.timeline-item.completed .tl-marker { background: #27ae60; border-color: #27ae60; color: var(--md3-on-primary); }
.timeline-item.current .tl-marker { background: var(--pres-primary); border-color: var(--pres-primary); color: var(--md3-on-primary); animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(102,126,234,0); }
}

.tl-phase {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pres-muted);
    margin-bottom: 6px;
}

.phase-active { color: var(--pres-primary); }

.tl-content h4 { font-size: 1.05rem; color: var(--pres-on-bg); margin-bottom: 6px; }
.tl-content p { font-size: 0.85rem; color: var(--pres-muted); line-height: 1.5; }

.tl-details {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tl-details span {
    font-size: 0.78rem;
    color: var(--pres-biology);
    background: rgba(124,179,66,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
}

.tl-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar-custom {
    flex: 1;
    height: 6px;
    background: var(--pres-glass-10);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--pres-primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.tl-progress span { font-size: 0.78rem; color: var(--pres-primary); font-weight: 600; }

/* Ending slide enhancements */
.promo-text { font-size: 1.2rem; color: var(--pres-muted); margin: 25px 0; z-index: 1; position: relative; }

.final-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    z-index: 1;
    position: relative;
}

.fs-item { text-align: center; }
.fs-num { display: block; font-size: 2rem; font-weight: 700; color: var(--pres-primary); }
.fs-label { font-size: 0.85rem; color: var(--pres-muted); }

.fs-divider {
    width: 1px;
    height: 40px;
    background: var(--pres-glass-15);
}

.cta-buttons {
    display: flex;
    gap: 18px;
    margin: 25px 0;
    z-index: 1;
    position: relative;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.file-location {
    margin-top: 30px;
    z-index: 1;
    position: relative;
}

.file-location p { color: #666; margin-bottom: 8px; font-size: 0.9rem; }
.file-location code {
    background: var(--pres-shade-30);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--pres-muted);
}

/* Navigation */
.navigation {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--pres-shade-75);
    backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 50px;
    z-index: 100;
    border: 1px solid var(--pres-glass-10);
}

.nav-btn {
    background: var(--pres-primary);
    border: none;
    color: var(--md3-on-primary);
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.slide-indicator {
    font-size: 1rem;
    color: var(--pres-muted);
}

.slide-indicator span { color: var(--pres-primary); font-weight: 600; }

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--pres-glass-08);
    z-index: 100;
}

.progress {
    height: 100%;
    background: var(--pres-primary);
    transition: width 0.3s ease;
}

/* Section titles */
.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--pres-on-bg);
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102,126,234,0.3);
}

.tool-count {
    font-size: 1.1rem;
    color: var(--pres-primary);
    font-weight: normal;
}

/* Responsive */
@media (max-width: 1200px) {
    .slide { padding: 40px 50px; }
    
    .intro-content-enhanced { grid-template-columns: 1fr; }
    .tools-showcase-enhanced .tool-body-enhanced { flex-direction: column; }
    .tools-grid-enhanced { grid-template-columns: repeat(3, 1fr); }
    .bio-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .bio-tool-card.large-bio { grid-column: span 2; }
    .process-analyzer-demo { flex-direction: column; }
    .pedigree-deep-dive { flex-direction: column; }
    .architecture-enhanced .tech-specs { grid-template-columns: 1fr; }
    .value-cards-row { grid-template-columns: repeat(2, 1fr); }
    .focus-charts { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .slide { padding: 25px 20px; }
    h1 { font-size: 2rem; }
    .stats-row { gap: 22px; flex-wrap: wrap; justify-content: center; }
    .subject-icons { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .subject { padding: 8px 14px; font-size: 0.95rem; }
    .s-icon { font-size: 1rem; }
    .stat .number { font-size: 2.5rem; }
    .tools-grid-enhanced { grid-template-columns: repeat(2, 1fr); }
    .bio-tools-grid { grid-template-columns: 1fr; }
    .bio-tool-card.large-bio { grid-column: span 1; }
    .value-cards-row { grid-template-columns: 1fr; }
    .visual-preview-row { flex-direction: column; align-items: center; }
    .workflow-steps { flex-wrap: wrap; justify-content: center; }
    .cta-buttons { flex-direction: column; }
}
/* ============================================================
   工具类（原内联 style 外置）
   ------------------------------------------------------------
   这些样式原先以 style="" 写在 presentation.html 上。CSP 的
   style-src 'self' 会拦掉内联 style 属性，导致布局静默失效，
   故统一外置为类。
   ============================================================ */

/* 区块顶部留白（原 style="margin-top: 20px"） */
.spaced-top {
    margin-top: 20px;
}

/* 条形图宽度档位（原 style="width:N%"） */
.bar-w-92 { width: 92%; }
.bar-w-88 { width: 88%; }
.bar-w-85 { width: 85%; }
.bar-w-82 { width: 82%; }
.bar-w-78 { width: 78%; }
.bar-w-75 { width: 75%; }
.bar-w-70 { width: 70%; }
.bar-w-68 { width: 68%; }

/* 强调标签：比 .tl-details span 的默认绿更饱和
   （原 style="background:rgba(39,174,96,.15);color:#27ae60"） */
.tl-details span.tag-vivid {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

/* ============================================================
   移动端适配（v2）
   原样式只有 768 断点、缺少底部导航让位与窄屏栅格重排，
   这里统一处理：留白、字体、单列化、底部导航和安全区。
   ============================================================ */

html,
body {
    overflow-x: hidden;
}

.presentation {
    height: 100dvh;
}

.slide {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.slide-content {
    min-width: 0;
}

.slide img,
.slide svg,
.slide canvas {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* 给固定底部导航让出空间，避免遮住最后一块内容 */
    .slide {
        padding: 18px 16px calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .slide.active {
        display: block;
    }

    /* 移动端封面不再垂直居中，避免内容超高时顶部被裁掉 */
    .slide-content.cover {
        padding-top: 4px;
    }

    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    h1 {
        font-size: 1.9rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .badge {
        font-size: 0.82rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .stats-row {
        gap: 18px 26px;
        margin-bottom: 22px;
    }

    .stat .number {
        font-size: 2.2rem;
    }

    .number-suffix {
        font-size: 1.4rem;
    }

    .stat .label {
        font-size: 0.78rem;
    }

    .subject-icons {
        gap: 8px;
        margin-top: 14px;
    }

    .subject {
        padding: 7px 13px;
        font-size: 0.85rem;
    }

    .visual-preview-row {
        gap: 12px;
        margin-top: 24px;
        width: 100%;
    }

    .mini-demo {
        min-width: 0;
        width: 100%;
        padding: 12px;
    }

    .intro-content-enhanced {
        gap: 18px;
        height: auto;
    }

    .highlight-box-enhanced {
        padding: 16px;
        margin-bottom: 16px;
    }

    .intro-text-large {
        font-size: 1rem;
        line-height: 1.7;
    }

    .workflow-diagram {
        padding: 14px;
    }

    .workflow-steps {
        gap: 8px;
    }

    .wf-step {
        flex: 1 1 40%;
        min-width: 0;
        padding: 10px 8px;
    }

    .wf-arrow {
        display: none;
    }

    .feature-card-enhanced {
        padding: 14px;
        gap: 12px;
    }

    .fci {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .tools-showcase-enhanced {
        gap: 18px;
    }

    .tool-header-enhanced {
        padding: 14px;
        gap: 10px;
    }

    .tool-icon-lg {
        font-size: 1.6rem;
    }

    .tool-header-enhanced h3 {
        font-size: 1.1rem;
    }

    .tool-body-enhanced {
        flex-direction: column;
        gap: 16px;
        padding: 14px;
    }

    .mockup-content,
    .calc-steps {
        padding: 12px;
    }

    .formula-input {
        font-size: 1.4rem;
    }

    .calc-actions {
        flex-wrap: wrap;
    }

    .input-group input {
        flex: 1;
        width: auto;
    }

    .tools-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tool-tile {
        padding: 14px 10px;
    }

    .tile-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .tool-tile h4 {
        font-size: 0.85rem;
    }

    .tool-tile p {
        font-size: 0.72rem;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pedigree-example-large {
        padding: 14px;
    }

    .pedigree-analysis {
        padding: 12px;
    }

    .legend-enhanced {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .tech-specs {
        gap: 12px;
    }

    .spec-card {
        padding: 14px;
    }

    .spec-stats {
        gap: 8px;
    }

    .spec-num {
        font-size: 1.2rem;
    }

    .ts-name {
        min-width: 0;
    }

    .exam-focus-area {
        padding: 14px;
    }

    .focus-charts {
        gap: 16px;
        margin-bottom: 16px;
    }

    .bar-label {
        width: 56px;
        font-size: 0.72rem;
    }

    .bar-track {
        height: 22px;
    }

    .tips-grid {
        gap: 10px;
    }

    .timeline {
        padding-left: 26px;
    }

    .timeline-line {
        left: 7px;
    }

    .timeline-item {
        padding: 14px;
        margin-bottom: 16px;
    }

    .tl-marker {
        left: -26px;
        top: 16px;
        width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }

    .promo-text {
        font-size: 1rem;
        margin: 18px 0;
    }

    .final-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
        margin: 20px 0;
    }

    .fs-divider {
        height: 28px;
    }

    .cta-buttons {
        width: 100%;
        gap: 10px;
        margin: 18px 0;
    }

    .btn-large {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .file-location {
        margin-top: 18px;
        width: 100%;
    }

    .file-location code {
        display: block;
        padding: 10px 12px;
        font-size: 0.75rem;
        word-break: break-all;
    }

    /* 分页器：居中悬浮小胶囊，左右为迷你按钮，中间是页码 */
    .navigation {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        right: auto;
        width: auto;
        max-width: calc(100% - 24px);
        transform: translateX(-50%);
        justify-content: center;
        gap: 4px;
        padding: 4px;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    .nav-btn {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 0.72rem;
        line-height: 1.3;
        border-radius: 999px;
        white-space: nowrap;
    }

    .nav-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .slide-indicator {
        flex: 0 0 auto;
        min-width: 40px;
        padding: 0 4px;
        text-align: center;
        font-size: 0.7rem;
        line-height: 1.3;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .stat .number {
        font-size: 2rem;
    }

    .stat .label {
        font-size: 0.72rem;
    }

    .subject {
        font-size: 0.78rem;
        padding: 6px 11px;
    }

    .tools-grid-enhanced {
        gap: 8px;
    }

    .tool-tile {
        padding: 12px 8px;
    }

    .slide-content h2 {
        font-size: 1.25rem;
    }
}

/* 结页 CTA：原标记只有 btn-large，缺少基础按钮样式，会退化成默认链接 */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background: var(--md3-primary);
    color: var(--md3-on-primary);
    border: 1px solid transparent;
}

.btn-secondary {
    background: var(--pres-glass-08);
    color: var(--pres-on-bg);
    border: 1px solid var(--pres-glass-15);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-primary:hover {
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.32);
}

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    .nav-btn {
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .slide-indicator {
        min-width: 36px;
        font-size: 0.66rem;
    }
}

/* ============================================================
   第二页（项目简介）专项修复
   1) 卡片内部原本缺少文本容器，图标/标题/正文/标签被 flex 拉成一行；
   2) emoji 图标与全站线性 SVG 图标不一致，统一为站点图标。
   ============================================================ */

.feature-card-enhanced {
    align-items: flex-start;
}

/* 右侧两张卡片列表合并为一列，避免桌面端出现错位空档 */
.feature-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.feature-column .feature-grid-enhanced.spaced-top {
    margin-top: 0;
}

.fc-body {
    flex: 1;
    min-width: 0;
}

.fci {
    color: var(--pres-primary);
}

.fci .hspcb-i {
    width: 24px;
    height: 24px;
}

.fci.physics-bg {
    color: var(--pres-physics);
}

.fci.chemistry-bg {
    color: var(--pres-chemistry);
}

.fci.biology-bg {
    color: var(--pres-biology);
}

.wf-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    color: var(--pres-primary);
    line-height: 0;
}

.wf-icon .hspcb-i {
    width: 26px;
    height: 26px;
}

/* 全站图标统一：各图标容器的配色与线性 SVG 尺寸 */
.tool-icon-lg {
    color: var(--pres-physics);
    line-height: 0;
}

.tile-icon {
    color: var(--pres-chemistry);
    line-height: 0;
}

.btc-icon {
    color: var(--pres-biology);
    line-height: 0;
}

.pdf-icon {
    color: var(--pres-biology);
    line-height: 0;
}

.vce-icon {
    color: var(--pres-primary);
    line-height: 0;
}

.tip-icon {
    color: var(--pres-primary);
    line-height: 0;
}

.tl-marker .hspcb-i {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .feature-card-enhanced {
        align-items: flex-start;
        gap: 12px;
    }

    .feature-card-enhanced h3 {
        font-size: 0.98rem;
    }

    .feature-card-enhanced p {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .fci {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .fci .hspcb-i {
        width: 18px;
        height: 18px;
    }

    .fc-stats {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .fc-stats span {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

    .wf-icon .hspcb-i {
        width: 22px;
        height: 22px;
    }

    .wf-icon {
        margin-bottom: 4px;
    }
}
