/* ======================================================================
 * 03 · 腰间盘突出自查 —— 「神经根路径仪表盘」
 * 配色：石墨灰 × 荧光青柠；字体：压缩无衬线标题 + 等宽仪表读数
 * 布局：三栏仪表盘（脊柱示意 / 角度表盘 / 症状红旗）
 * ====================================================================== */
.hc13.hdd {
    --hc-ink: #1b2420; --hc-muted: #69776d; --hc-paper: #ffffff;
    --hc-soft: #f2f5ef; --hc-line: #dfe6db; --hc-accent: #4f8f16;
    --hc-accent-2: #a8d84c; --hc-warn: #b5371f; --hc-shadow: 0 14px 34px rgba(31, 52, 24, .10);
    background: linear-gradient(180deg, #f7f9f4 0%, #f1f5ed 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.8;
}
:root[data-theme="dark"] .hc13.hdd {
    --hc-ink: #e7eee3; --hc-muted: #a1b09c; --hc-paper: #161d17;
    --hc-soft: #1e271f; --hc-line: #30402e; --hc-accent: #b7e46d;
    --hc-accent-2: #d6f39b; --hc-warn: #ff9d86; --hc-shadow: 0 14px 34px rgba(0, 0, 0, .44);
    background: linear-gradient(180deg, #10160f 0%, #0d130d 100%);
}
.hdd .hc-wrap { padding-bottom: 54px; }
.hdd .hc-crumb { padding: 16px 0 10px; }
.hdd strong, .hdd b { color: var(--hc-accent); }
.hdd h1, .hdd h2, .hdd h3 { letter-spacing: -.5px; }
.hdd .hc-kw, .hdd .hdd-rail span, .hdd .hdd-sec-head em, .hdd .hdd-console-head em,
.hdd .hdd-stats b, .hdd .hdd-dial-center b { font-family: "SFMono-Regular", Consolas, monospace; }

/* ---- 首屏 ---- */
.hdd-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .55fr); gap: 32px; padding: 32px 0 28px; align-items: center; }
.hdd-hero .hc-kw { color: var(--hc-accent); font-size: 11px; letter-spacing: 2.6px; }
.hdd-hero h1 { margin: 14px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.22; font-weight: 850; }
.hdd-hero h1 i { font-style: normal; display: block; color: var(--hc-accent); font-size: .56em; letter-spacing: 2px; margin-top: 10px; }
.hdd-lede { margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.92; }
.hdd-hero-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.hdd-cta { display: inline-flex; padding: 11px 24px; border-radius: 6px; background: var(--hc-accent); color: #fff; font-size: 14.5px; font-weight: 750; }
.hdd-cta--ghost { background: transparent; border: 1.5px solid var(--hc-accent); color: var(--hc-accent); }
.hdd-hero-note { margin: 0; color: var(--hc-muted); font-size: 12px; }
.hdd-rail { display: grid; gap: 8px; }
.hdd-rail > div { padding: 12px 16px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-left: 4px solid var(--hc-accent-2); border-radius: 6px; }
.hdd-rail span { display: block; font-size: 10px; letter-spacing: 2px; color: var(--hc-muted); }
.hdd-rail b { display: block; font-size: 26px; color: var(--hc-accent); line-height: 1.35; }
.hdd-rail small { font-size: 11.5px; color: var(--hc-muted); }
.hdd-ticker { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; border-block: 1px solid var(--hc-line); }
.hdd-ticker b, .hdd-ticker span { padding: 9px 16px; font-size: 12.5px; border-right: 1px solid var(--hc-line); color: var(--hc-muted); }
.hdd-ticker b { color: var(--hc-accent); }

/* ---- 控制台 ---- */
.hdd-console { background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 12px; overflow: hidden; }
.hdd-console-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; padding: 18px 24px; background: var(--hc-soft); border-bottom: 1px solid var(--hc-line); }
.hdd-console-head h2 { margin: 0; font-size: 20px; }
.hdd-console-head em { font-style: normal; color: var(--hc-accent); font-size: 13px; margin-right: 8px; }
.hdd-console-head p { margin: 0; font-size: 12.5px; color: var(--hc-muted); }
.hdd-grid { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(200px, .92fr) minmax(0, 1.4fr); }
.hdd-grid > div { padding: 20px; border-right: 1px solid var(--hc-line); }
.hdd-grid > div:last-child { border-right: 0; }
.hdd-spine h3, .hdd-gauge-box h3 { margin: 0 0 10px; font-size: 15px; }
.hdd-spine h3 small, .hdd-gauge-box h3 small { display: block; font-size: 11.5px; color: var(--hc-muted); font-weight: 400; }
.hdd-spine-svg { display: block; width: 100%; max-width: 190px; margin: 6px auto 12px; }
.hdd-cord { stroke: var(--hc-line); stroke-width: 8; stroke-linecap: round; }
.hdd-leg { fill: none; stroke: var(--hc-line); stroke-width: 6; stroke-linecap: round; }
.hdd-disc { cursor: pointer; }
.hdd-disc rect { fill: var(--hc-soft); stroke: var(--hc-line); stroke-width: 2; }
.hdd-disc text { fill: var(--hc-muted); font: 700 15px "SFMono-Regular", Consolas, monospace; text-anchor: middle; }
.hdd-disc > path { stroke: var(--hc-line); stroke-width: 3; fill: none; }
.hdd-disc:hover rect { stroke: var(--hc-accent); }
.hdd-disc.is-on rect { fill: var(--hc-accent); stroke: var(--hc-accent); }
.hdd-disc.is-on text { fill: #fff; }
.hdd-disc.is-on > path { stroke: var(--hc-accent-2); stroke-width: 5; }
.hdd-segchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hdd-segchips input, .hdd-fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hdd-segchips label span, .hdd-fieldset label span { display: inline-block; padding: 6px 11px; border: 1px solid var(--hc-line); border-radius: 5px; font-size: 12px; cursor: pointer; }
.hdd-segchips input:checked + span, .hdd-fieldset input:checked + span { background: var(--hc-accent); border-color: var(--hc-accent); color: #fff; font-weight: 700; }
.hdd-segchips input:focus-visible + span, .hdd-fieldset input:focus-visible + span { outline: 3px solid var(--hc-accent-2); outline-offset: 2px; }

/* 角度表盘 */
.hdd-dial { position: relative; width: 168px; height: 96px; margin: 12px auto 18px; overflow: hidden; }
.hdd-dial-arc { position: absolute; inset: 0 0 -96px; width: 168px; height: 168px; border-radius: 50%; border: 14px solid var(--hc-soft); border-bottom-color: var(--hc-accent-2); border-left-color: var(--hc-accent-2); }
.hdd-needle { position: absolute; left: 84px; bottom: 0; width: 3px; height: 76px; background: var(--hc-accent); transform-origin: bottom center; transform: rotate(-90deg); transition: transform .28s ease; border-radius: 3px; }
.hdd-dial-center { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; }
.hdd-dial-center b { font-size: 24px; color: var(--hc-accent); }
.hdd-dial-center span { font-size: 11px; color: var(--hc-muted); margin-left: 3px; }
.hdd-field { display: block; margin: 12px 0; font-size: 13px; font-weight: 650; }
.hdd-field small { font-weight: 400; color: var(--hc-muted); }
.hdd-field .hc-input { margin-top: 6px; }
.hdd-fieldset { border: 0; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--hc-line); display: flex; flex-wrap: wrap; gap: 7px; }
.hdd-fieldset legend { width: 100%; padding-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.hdd-fieldset legend small { font-weight: 400; color: var(--hc-muted); }
.hdd-fieldset--alert { padding: 12px; border: 1px dashed color-mix(in srgb, var(--hc-warn) 50%, var(--hc-line)); border-radius: 8px; background: color-mix(in srgb, var(--hc-warn) 4%, transparent); }
.hdd-fieldset--alert input:checked + span { background: var(--hc-warn); border-color: var(--hc-warn); }
.hdd-batch { border-top: 1px solid var(--hc-line); }
.hdd-batch summary { padding: 14px 24px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hc-accent); }
.hdd-batch summary span { font-size: 12px; font-weight: 400; color: var(--hc-muted); margin-left: 8px; }
.hdd-batch-in { padding: 0 24px 22px; }
.hdd-batch-in > label { display: block; font-size: 12.5px; color: var(--hc-muted); margin-bottom: 8px; }
.hdd-batch-in .hc-actions { margin: 12px 0; }

/* ---- 结果 ---- */
.hdd-result { margin-top: 42px; }
.hdd-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--hc-ink); }
.hdd-sec-head em { font-style: normal; color: var(--hc-accent); font-size: 12px; }
.hdd-sec-head h2 { margin: 0; font-size: 22px; }
.hdd-sec-head small { margin-left: auto; color: var(--hc-muted); font-size: 12px; }
.hdd-empty { padding: 24px; border: 1px dashed var(--hc-line); border-radius: 10px; color: var(--hc-muted); background: var(--hc-paper); }
.hdd-verdict { padding: 16px 20px; margin-bottom: 16px; border-left: 5px solid var(--hc-accent); background: var(--hc-soft); border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.85; }
.hdd-verdict.is-urgent { background: color-mix(in srgb, var(--hc-warn) 9%, var(--hc-paper)); border-left-color: var(--hc-warn); color: var(--hc-warn); }
.hdd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.hdd-stats > div { padding: 14px; border: 1px solid var(--hc-line); border-radius: 8px; background: var(--hc-paper); }
.hdd-stats span { display: block; font-size: 11.5px; color: var(--hc-muted); }
.hdd-stats b { font-size: 24px; color: var(--hc-accent); }
.hdd-stats em { font-size: 11px; font-style: normal; color: var(--hc-muted); margin-left: 4px; }
.hdd-path { padding: 16px 20px; margin-bottom: 16px; background: var(--hc-soft); border-radius: 8px; font-size: 14px; line-height: 1.9; }
.hdd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hdd-card { padding: 18px 20px; border: 1px solid var(--hc-line); border-radius: 8px; background: var(--hc-paper); }
.hdd-card h3 { margin: 0 0 10px; font-size: 16px; }
.hdd-card ol, .hdd-card ul { margin: 0; padding-left: 20px; }
.hdd-card li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.8; }
.hdd-disclaim { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--hc-line); color: var(--hc-muted); font-size: 13px; line-height: 1.85; }
.hdd-result .hc-actions { margin-top: 14px; }

/* ---- 阅读 ---- */
.hdd-reading { margin-top: 46px; }
.hdd-subh { margin: 22px 0 10px; font-size: 17px; }
.hdd-faq details { padding: 12px 0; border-bottom: 1px solid var(--hc-line); }
.hdd-faq summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.hdd-faq details > div { padding: 10px 0 4px; font-size: 14px; line-height: 1.9; }
.hdd-related { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--hc-line); font-size: 13px; }
.hdd-related > span { color: var(--hc-muted); }
.hdd-related a { padding: 6px 14px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-accent); }

@media (max-width: 980px) {
    .hdd-grid { grid-template-columns: 1fr 1fr; }
    .hdd-grid > div:nth-child(2) { border-right: 0; }
    .hdd-form { grid-column: 1 / -1; border-top: 1px solid var(--hc-line); }
}
@media (max-width: 640px) {
    .hdd-hero, .hdd-grid, .hdd-cols { grid-template-columns: 1fr; }
    .hdd-grid > div { border-right: 0; border-bottom: 1px solid var(--hc-line); }
    .hdd-stats { grid-template-columns: repeat(2, 1fr); }
    .hdd-console-head, .hdd-grid > div, .hdd-batch-in { padding-inline: 16px; }
}
