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

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.7;
}

a { color: #0e7490; }

.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
}

.brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 8px;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.hero {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 55%, #1e3a8a 100%);
    color: #fff;
    text-align: center;
    padding: 72px 20px 64px;
}

.kicker {
    letter-spacing: 2px;
    font-size: 14px;
    color: #a7f3d0;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 17px;
    color: #e2e8f0;
    margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}

.btn.primary { background: #fff; color: #0f766e; }
.btn.ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat {
    background: #fff;
    text-align: center;
    padding: 22px 12px;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: #0f766e;
}

.stat span { font-size: 13px; color: #475569; }

main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }

.section { padding: 40px 0 8px; }

.section h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #0f172a;
}

.section h2 small { font-size: 15px; color: #64748b; font-weight: 500; }

.hint {
    color: #64748b;
    font-size: 15px;
    margin: 6px 0 18px;
}

.doctor-subhead {
    margin: 30px 0 12px;
    font-size: 20px;
    color: #0f172a;
}

.doctor-only h4 {
    margin: 20px 0 6px;
    font-size: 16px;
    color: #0e7490;
}

.hint.center { text-align: center; }

.red-alert {
    color: #dc2626;
    font-weight: 700;
    margin: 10px 0 18px;
}

.analogy {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.analogy-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 14px 0;
}

.analogy-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
}

.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.chip.red { background: #dc2626; }
.chip.amber { background: #d97706; }

.analogy-conclusion { margin-top: 8px; }

.framework {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 14px;
    padding: 20px 24px;
}

.framework h3 { margin-bottom: 10px; }
.framework ol { padding-left: 22px; }
.framework li { margin: 5px 0; }

/* ===== 3D 查看器 ===== */
.viewer-wrap {
    position: relative;
    height: min(70vh, 660px);
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

#canvas-container {
    width: 100%;
    height: 100%;
}

canvas { display: block; width: 100%; height: 100%; }

.info-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    max-width: 300px;
    max-height: calc(100% - 90px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: opacity .3s ease, transform .3s ease;
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 6px;
}

.close-btn:hover { background: rgba(255,255,255,.12); }

.info-type {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.16);
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
}

#info-title {
    font-size: 18px;
    margin-bottom: 2px;
    padding-right: 26px;
}

.info-en {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 8px;
}

#info-detail {
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.wiki-link {
    display: inline-block;
    color: #7dd3fc;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(125, 211, 252, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(125, 211, 252, 0.35);
}

.controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.control-btn {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.control-btn:hover { background: rgba(255,255,255,.14); }

#reset-btn { background: rgba(220, 38, 38, 0.85); border-color: rgba(220,38,38,.6); }
#reset-btn:hover { background: #dc2626; }

.toggle-btn.active { background: #0ea5e9; border-color: #7dd3fc; }

/* ===== 神经图解 ===== */
.mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mode-btn, .wave-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.mode-btn.active, .wave-btn.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.nerve-diagram {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

.nerve-col {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.nerve-col h3 { font-size: 16px; margin-bottom: 8px; color: #334155; }

.nerve-svg, .xsec-svg { width: 100%; height: auto; }

.myelin-seg {
    fill: #fbbf24;
    stroke: #d97706;
    stroke-width: 1.5;
    transition: all .5s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.axon {
    fill: #ef4444;
    transition: all .5s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.schwann { fill: #bfdbfe; stroke: #3b82f6; stroke-width: 2; }

.myelin-ring {
    fill: #fbbf24;
    stroke: #d97706;
    stroke-width: 1.5;
    transition: all .5s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.axon-x {
    fill: #ef4444;
    transition: all .5s ease;
    transform-box: fill-box;
    transform-origin: center;
}

#pulse-dot {
    fill: #fff;
    stroke: #dc2626;
    stroke-width: 3;
    transition: opacity .4s ease;
}

.lbl { font-size: 13px; fill: #475569; }
.myelin-lbl { fill: #b45309; }
.axon-lbl { fill: #dc2626; }
.node-lbl { fill: #0f766e; }
.pulse-lbl { fill: #7c3aed; }
.lbl-line { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; }

.nerve-legend { font-size: 13px; color: #475569; margin-top: 10px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 3px; vertical-align: middle; }
.dot.red { background: #ef4444; }
.dot.amber { background: #fbbf24; border: 1px solid #d97706; }
.dot.blue { background: #bfdbfe; border: 1px solid #3b82f6; }
.dot.white { background: #fff; border: 1px solid #dc2626; }

/* 模式状态 */
.mode-cmt1 .myelin-seg { opacity: .18; transform: scaleY(.55); }
.mode-cmt1 .myelin-ring { opacity: .18; transform: scale(.55); }
.mode-cmt2 .axon { opacity: .5; transform: scaleY(.45); }
.mode-cmt2 .axon-x { opacity: .45; transform: scale(.5); }
.mode-cmt2 #pulse-dot { opacity: .55; }

.nerve-desc {
    margin-top: 18px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 15px;
}

/* ===== 临床表现 ===== */
.signs-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.signs-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signs-side .case-stage {
    margin-top: 0;
}

.case-stage .case-card {
    display: none;
}

.case-stage .case-card.active {
    display: block;
}

.body-figure-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.body-figure-wrap-inner {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.body-figure-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #fff;
}

.hotspot {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dc2626;
    background-image: none;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pulse 1.8s ease-in-out infinite;
}

.hotspot:hover,
.hotspot:focus-visible {
    outline: none;
    background: #b91c1c;
}

.hotspot.on { background: #16a34a; animation: none; }

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.22); }
}

.symptom-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    min-height: 260px;
}

.symptom-panel h3 { font-size: 20px; margin-bottom: 12px; color: #0f172a; }
.sym-desc { font-size: 15px; margin-bottom: 14px; }
.sym-analogy {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #92400e;
}

/* ===== 诊断 / 治疗 / 研究 ===== */
.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }

.wave-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.wave-btn { padding: 7px 12px; font-size: 13px; }

.wave-svg { width: 100%; height: auto; }
.wave-axis { stroke: #94a3b8; stroke-width: 1; }
.wave { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.normal-wave { stroke: #2563eb; }
.cmt1-wave { stroke: #f59e0b; }
.cmt2-wave { stroke: #ef4444; }
.wave.hidden { display: none; }

.wave-desc { font-size: 14px; margin: 8px 0 4px; color: #334155; }

.check-list { list-style: none; padding: 0; margin: 10px 0; }
.check-list li { padding: 6px 0 6px 24px; position: relative; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: #0f766e; font-weight: 700; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.card.treat, .card.research { transition: transform .15s ease, box-shadow .15s ease; }
.card.treat:hover, .card.research:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.card p { font-size: 14px; color: #334155; }

.card.guide h3 { color: #0e7490; }
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-list li {
    position: relative;
    padding: 5px 0 5px 20px;
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
}
.guide-list li::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: #0ea5e9;
    font-weight: 700;
}
.guide-list strong { color: #0f172a; }

.refs {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
}
.refs h3 { font-size: 16px; margin-bottom: 10px; color: #0f172a; }
.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ref-list li { padding: 6px 0; font-size: 14px; line-height: 1.55; }
.ref-list a { color: #0e7490; text-decoration: none; border-bottom: 1px solid #bae6fd; }
.ref-list a:hover { color: #0c4a6e; border-bottom-color: #0c4a6e; }
.refs .hint { margin-top: 10px; }

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 28px 20px;
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
}

footer a { color: #7dd3fc; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .nerve-diagram { grid-template-columns: 1fr; }
    .signs-grid { grid-template-columns: 1fr; }
    .diag-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .analogy-cols { grid-template-columns: 1fr; }
    .topnav { flex-wrap: wrap; padding: 10px 12px; }
    .brand { order: 1; }
    .version-toggle { order: 2; }
    .nav-links {
        order: 3;
        flex-basis: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a {
        flex: 0 0 auto;
        padding: 9px 15px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        font-size: 14px;
    }
    .viewer-wrap { height: 62vh; min-height: 380px; }
    .info-panel { max-width: 240px; }
}

/* ===== 版本切换 ===== */
.version-toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.ver-btn {
    background: transparent;
    color: #cbd5e1;
    border: none;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ver-btn.active { background: #0ea5e9; color: #fff; }

/* 患者版 / 医生版 内容显隐 */
.doctor-only { display: none; }
body.version-doctor .doctor-only { display: revert; }
body.version-doctor .patient-only { display: none; }
body.version-doctor .sym-analogy { display: none; }

/* ===== 3D 图例 ===== */
.viewer-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 14px;
    font-size: 13px;
    color: #475569;
}

.sw {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -2px;
}
.sw.amber { background: #f59e0b; }
.sw.gray { background: #94a3b8; }
.sw.bone { background: #e2e8f0; border: 1px solid #cbd5e1; }

/* ===== PubMed 检索 ===== */
.pubmed-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.preset {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    cursor: pointer;
}
.preset:hover { background: #f1f5f9; }

.pubmed-search {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#pubmed-input {
    flex: 1;
    min-width: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
}

.pubmed-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-item {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.pm-item:hover { border-color: #0e7490; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.pm-title { font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.pm-meta { font-size: 13px; color: #64748b; }
.pm-id { font-size: 12px; color: #0e7490; margin-top: 4px; font-family: ui-monospace, "SF Mono", monospace; }

/* ===== 典型体征图集 ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.case-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.case-svg {
    width: 100%;
    height: auto;
    max-height: 190px;
}

.case-photo {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
}

.case-card figcaption {
    font-size: 14px;
    color: #334155;
    margin-top: 8px;
    text-align: left;
}

@media (max-width: 860px) {
    .case-grid { grid-template-columns: 1fr; }
}

/* ===== 详细治疗方案弹窗（医生版） ===== */
.btn.teal {
    background: #0f766e;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn.teal:hover { background: #115e59; }

.treatment-cta { margin-top: 16px; }

.treatment-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.treatment-overlay.open { display: flex; }

.treatment-dialog {
    background: #fff;
    width: min(1000px, 100%);
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.treatment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.treatment-head .kicker { margin: 0 0 4px; }
.treatment-head h2 { margin: 0; font-size: 22px; }

.treatment-close {
    flex-shrink: 0;
    background: #f1f5f9;
    border: none;
    color: #334155;
    font-size: 22px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 8px;
    cursor: pointer;
}
.treatment-close:hover { background: #e2e8f0; }

.treatment-tabs {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    padding: 8px 24px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.tp-tab {
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tp-tab.active { color: #0e7490; font-weight: 700; border-bottom-color: #0e7490; }
.tp-tab:hover { color: #0e7490; }

.treatment-body {
    overflow: auto;
    padding: 20px 24px;
}
.tp-panel { display: none; }
.tp-panel.active { display: block; }
.tp-panel h3 { font-size: 16px; margin: 16px 0 6px; color: #0f172a; }
.tp-panel h3:first-child { margin-top: 0; }
.tp-panel p { font-size: 14px; color: #334155; margin: 6px 0; line-height: 1.65; }

.tp-list { list-style: none; padding: 0; margin: 6px 0; }
.tp-list li {
    position: relative;
    padding: 4px 0 4px 18px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}
.tp-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: #0ea5e9;
    font-weight: 700;
}

.tp-details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    background: #f8fafc;
}
.tp-details summary { cursor: pointer; font-weight: 700; color: #0f172a; font-size: 14px; }
.tp-details[open] { background: #fff; }

.treatment-foot {
    padding: 14px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}
.treatment-foot a { color: #0e7490; }
.treatment-foot p { margin: 4px 0; }

@media (max-width: 860px) {
    .treatment-overlay { padding: 10px; }
    .treatment-dialog { max-height: 94vh; }
    .treatment-head { padding: 16px 16px 12px; }
    .treatment-tabs { padding: 6px 12px 0; }
    .tp-tab { padding: 9px 11px; font-size: 13px; }
    .treatment-body { padding: 16px; }
    .treatment-foot { padding: 12px 16px; }
}

/* ===== 医生版治疗方案：可展开模块 ===== */
.treatment-detail { margin-top: 8px; }

.tp-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.tp-block summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tp-block summary::-webkit-details-marker { display: none; }
.tp-block summary:hover { background: #f1f5f9; }
.tp-block summary::after {
    content: "＋";
    margin-left: auto;
    color: #0e7490;
    font-weight: 700;
}
.tp-block[open] summary { background: #fff; border-bottom: 1px solid #e2e8f0; }
.tp-block[open] summary::after { content: "－"; }

.tp-body {
    padding: 16px 18px;
}
.tp-body h3 { font-size: 15px; margin: 14px 0 6px; color: #0f172a; }
.tp-body h3:first-child { margin-top: 0; }
.tp-body p { font-size: 14px; color: #334155; margin: 6px 0; line-height: 1.65; }

/* ===== 3D 三块局部解剖 ===== */
.sw.deep { background: #ea580c; }

.viewer-shell {
    position: relative;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.region-panel {
    background: #111827;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.region-panel h3 {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    padding: 0 4px;
    text-align: center;
}

.region-canvas {
    width: 100%;
    height: 420px;
}

.region-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

@media (max-width: 860px) {
    .region-grid { grid-template-columns: 1fr; }
    .region-canvas { height: 360px; }
}

/* ===== 患者版康复指导：按部位互动导航 ===== */
.rehab-explorer {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0fdfa 100%);
}
.rehab-nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-self: start;
    position: sticky;
    top: 84px;
}
.rehab-nav-btn {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 13px;
    background: rgba(255,255,255,.86);
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.rehab-nav-btn:hover,
.rehab-nav-btn:focus-visible {
    border-color: #14b8a6;
    color: #0f766e;
    transform: translateX(2px);
    outline: none;
}
.rehab-nav-btn.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15,118,110,.18);
}
.rehab-panels { min-width: 0; }
.rehab-panel {
    display: none;
    min-height: 260px;
    padding: 22px 24px;
    border: 1px solid #ccfbf1;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 30px rgba(15,118,110,.08);
}
.rehab-panel.active { display: block; animation: rehab-panel-in .22s ease-out; }
@keyframes rehab-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.rehab-panel-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.rehab-panel-title .kicker,
.rehab-resource-card .kicker { margin: 0 0 3px; }
.rehab-panel-title h3,
.rehab-resource-card h3 { margin: 0; color: #0f172a; }
.rehab-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #ccfbf1;
    font-size: 25px;
}
.rehab-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}
.rehab-points > div {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border-left: 3px solid #2dd4bf;
}
.rehab-points b { color: #0f766e; }
.rehab-points p { margin: 7px 0 0; color: #334155; font-size: 14px; line-height: 1.65; }
.rehab-resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
    margin-top: 20px;
}
.rehab-resource-card {
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}
.rehab-resource-card > p:not(.kicker) { color: #475569; line-height: 1.65; }
.video-links { list-style: none; padding: 0; margin: 15px 0 0; display: grid; gap: 10px; }
.video-links li { padding: 11px 13px; border-radius: 10px; background: #f8fafc; }
.video-links a { color: #0e7490; font-weight: 700; }
.video-links span { display: block; margin-top: 3px; color: #64748b; font-size: 13px; line-height: 1.5; }
.rehab-summary-card { background: linear-gradient(145deg, #ecfeff, #f0fdf4); }
.rehab-summary-card ol { margin: 14px 0 0; padding-left: 21px; color: #334155; }
.rehab-summary-card li { margin: 8px 0; line-height: 1.6; }
@media (max-width: 760px) {
    .rehab-explorer { grid-template-columns: 1fr; padding: 13px; }
    .rehab-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rehab-nav-btn { text-align: center; padding: 10px 8px; }
    .rehab-points, .rehab-resource-grid { grid-template-columns: 1fr; }
    .rehab-panel { padding: 18px 16px; }
}

/* ===== 健康宣教：按主题互动 ===== */
.education-explorer {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8faff 0%, #fdf4ff 100%);
}
.education-nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-self: start;
    position: sticky;
    top: 84px;
}
.education-nav-btn {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 13px;
    background: rgba(255,255,255,.86);
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.education-nav-btn:hover,
.education-nav-btn:focus-visible {
    border-color: #6366f1;
    color: #4338ca;
    transform: translateX(2px);
    outline: none;
}
.education-nav-btn.active {
    border-color: #4338ca;
    background: #4338ca;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(67,56,202,.18);
}
.education-panels { min-width: 0; }
.education-panel {
    display: none;
    min-height: 260px;
    padding: 22px 24px;
    border: 1px solid #e0e7ff;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 30px rgba(67,56,202,.08);
}
.education-panel.active { display: block; animation: education-panel-in .22s ease-out; }
@keyframes education-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.education-panel-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.education-panel-title .kicker { margin: 0 0 3px; }
.education-panel-title h3 { margin: 0; color: #0f172a; }
.education-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #e0e7ff;
    font-size: 25px;
}
.education-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 18px;
}
.education-points > div {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border-left: 3px solid #a5b4fc;
}
.education-points b { color: #4338ca; }
.education-points p { margin: 7px 0 0; color: #334155; font-size: 14px; line-height: 1.65; }

@media (max-width: 760px) {
    .education-explorer { grid-template-columns: 1fr; padding: 13px; }
    .education-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .education-nav-btn { text-align: center; padding: 10px 8px; }
    .education-points { grid-template-columns: 1fr; }
    .education-panel { padding: 18px 16px; }
}

/* ===== 医生版身体体征热点 ===== */
.doctor-signs-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.doctor-body-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.doctor-body-inner {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

.doctor-body-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #f8fafc;
}

.doctor-leader-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.doctor-leader-svg line {
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    fill: none;
    opacity: .7;
}

.doctor-leader-svg line.yellow { stroke: #eab308; }
.doctor-leader-svg line.blue { stroke: #2563eb; }

.doctor-leader-label {
    position: absolute;
    z-index: 4;
    padding: 1px 3px;
    border-radius: 4px;
    background: rgba(255,255,255,.8);
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.doctor-leader-label.yellow { color: #a16207; }
.doctor-leader-label.blue { color: #1d4ed8; }
.doctor-leader-label.right { transform: translate(-100%, -50%); text-align: right; }
.doctor-leader-label.left { transform: translate(0, -50%); text-align: left; }

.doctor-hotspot {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background-image: none;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(15,23,42,.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.doctor-hotspot.yellow {
    background: #eab308;
}

.doctor-hotspot.blue {
    background: #2563eb;
}

.doctor-hotspot.active {
    outline: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 0 0 3px rgba(15,23,42,.35);
}

.doctor-signs-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-sign-detail {
    min-height: 180px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.doctor-sign-detail h3 {
    margin: 0 0 10px;
    color: #0f172a;
}

.doctor-sign-detail p {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.65;
}

.doctor-sign-gene {
    font-size: 13px;
    color: #64748b;
}

.doctor-hotspot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-sign-chip {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.doctor-sign-chip.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

@media (max-width: 860px) {
    .doctor-signs-grid { grid-template-columns: 1fr; }
    .doctor-body-inner { max-width: 320px; }
    .doctor-signs-side { gap: 12px; }
    .doctor-leader-label { font-size: 8px; }
}

/* ===== 医生版诊断分型决策树 ===== */
.cmt-classifier {
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    background: #f8faff;
}

.cmt-classifier h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.classifier-step {
    margin: 0 0 12px;
    color: #4338ca;
    font-weight: 700;
}

.classifier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.classifier-option {
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 9px 13px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.classifier-option:hover {
    border-color: #6366f1;
    color: #4338ca;
}

.classifier-result {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}

.classifier-result.hidden {
    display: none;
}

.classifier-result .kicker {
    margin: 0 0 4px;
    color: #64748b;
}

.classifier-result h3 {
    margin: 0 0 8px;
    color: #1d4ed8;
}

.classifier-result p {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.6;
}

.classifier-next {
    color: #0f766e;
}

#classifier-reset {
    margin-top: 14px;
}

@media (max-width: 600px) {
    .classifier-options { flex-direction: column; }
    .classifier-option { width: 100%; }
}

/* ===== 研究进展文献列表 ===== */
.research-ref {
    padding: 7px 0 !important;
    border-bottom: 1px dashed #e2e8f0;
}

.research-ref:last-child {
    border-bottom: none;
}

.research-points {
    display: block !important;
}

.research-points .ref-list {
    margin: 0;
}

.research-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.research-note {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .research-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}
