/* ======================================================================
 * 01 · 带状疱疹自查 —— 「单侧皮疹分布带」编辑式界面
 * 配色：宣纸米白 × 焦橙 × 赭石；字体层级：宋体标题 / 黑体正文 / 等宽数字
 * 布局：非对称首屏 + 时间尺边栏 + 人体分布带控制台
 * 深色：由公共导航 :root[data-theme="dark"] 驱动，本文件不建第二套开关
 * ====================================================================== */
.hc13.sgn {
    --hc-ink: #2b211b; --hc-muted: #7a6a5e; --hc-paper: #fffdf9;
    --hc-soft: #f7efe4; --hc-line: #e6d8c7; --hc-accent: #c2542f;
    --hc-accent-2: #a9762f; --hc-warn: #a4271c; --hc-shadow: 0 14px 36px rgba(96, 58, 30, .10);
    background: radial-gradient(1100px 460px at 12% -6%, #fbe9d7 0%, transparent 62%), #fffaf3;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    line-height: 1.82;
}
:root[data-theme="dark"] .hc13.sgn {
    --hc-ink: #f2e7da; --hc-muted: #b6a595; --hc-paper: #1e1915;
    --hc-soft: #29211b; --hc-line: #3d322a; --hc-accent: #f2a276;
    --hc-accent-2: #e0bd7f; --hc-warn: #ff9d8f; --hc-shadow: 0 14px 36px rgba(0, 0, 0, .42);
    background: radial-gradient(1100px 460px at 12% -6%, #3a2519 0%, transparent 62%), #15120f;
}
.sgn h1, .sgn h2, .sgn h3, .sgn .sgn-side-label, .sgn .hc-kw {
    font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
}
.sgn .hc-wrap { padding-bottom: 56px; }
.sgn .hc-crumb { padding: 18px 0 6px; }
.sgn .hc-kw { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: 3px; color: var(--hc-accent); }
.sgn b, .sgn strong { color: var(--hc-accent); }

/* ---- 首屏 ---- */
.sgn-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr); gap: 44px; align-items: start; padding: 30px 0 34px; }
.sgn-hero h1 { margin: 14px 0 18px; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.24; font-weight: 800; letter-spacing: -1px; }
.sgn-hero h1 em { font-style: normal; color: var(--hc-accent); font-size: .62em; font-weight: 700; letter-spacing: 0; }
.sgn-lede { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.95; color: var(--hc-ink); }
.sgn-hero-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.sgn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--hc-accent); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 8px 20px rgba(194, 84, 47, .22); transition: transform .18s ease; }
.sgn-cta:hover { transform: translateY(-2px); }
.sgn-cta--ghost { background: transparent; color: var(--hc-accent); border: 1.5px solid var(--hc-accent); box-shadow: none; }
.sgn-hero-note { margin: 0; font-size: 12.5px; color: var(--hc-muted); }
.sgn-hero-side { align-self: stretch; padding: 22px 22px 18px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-top: 4px solid var(--hc-accent-2); border-radius: 4px 4px 18px 18px; box-shadow: var(--hc-shadow); }
.sgn-side-label { display: block; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10.5px; letter-spacing: 2px; color: var(--hc-muted); }
.sgn-ruler { list-style: none; margin: 18px 0 14px; padding: 0 0 0 18px; border-left: 2px dashed var(--hc-line); }
.sgn-ruler li { position: relative; padding: 0 0 16px 4px; }
.sgn-ruler li::before { content: ""; position: absolute; left: -24px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--hc-accent-2); border: 2px solid var(--hc-paper); }
.sgn-ruler b { display: block; font-size: 14px; letter-spacing: .4px; }
.sgn-ruler span { font-size: 12.5px; color: var(--hc-muted); }
.sgn-side-foot { margin: 0; font-size: 12px; line-height: 1.7; color: var(--hc-muted); }
.sgn-keybar { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; border-block: 1px solid var(--hc-line); }
.sgn-keybar span { padding: 10px 18px; font-size: 12.5px; color: var(--hc-muted); border-right: 1px solid var(--hc-line); }
.sgn-keybar span:first-child { color: var(--hc-accent); font-weight: 700; }

/* ---- 控制台 ---- */
.sgn-console { background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 20px; box-shadow: var(--hc-shadow); overflow: hidden; }
.sgn-console-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--hc-line); background: var(--hc-soft); }
.sgn-console-head h2 { margin: 0; font-size: 22px; letter-spacing: .2px; }
.sgn-console-head h2 span { color: var(--hc-accent); margin-right: 10px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 16px; }
.sgn-console-head p { margin: 6px 0 0; font-size: 13px; color: var(--hc-muted); }
.sgn-console-grid { display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.5fr); }
.sgn-map { padding: 22px 24px; border-right: 1px solid var(--hc-line); background: linear-gradient(160deg, var(--hc-soft), transparent 70%); }
.sgn-map h3 { margin: 0 0 12px; font-size: 16px; }
.sgn-map h3 small { display: block; font-family: inherit; font-size: 12px; color: var(--hc-muted); font-weight: 400; }
.sgn-torso { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto 12px; }
.sgn-body { fill: color-mix(in srgb, var(--hc-accent-2) 12%, var(--hc-paper)); stroke: var(--hc-line); stroke-width: 2; }
.sgn-mid { stroke: var(--hc-line); stroke-width: 1.5; stroke-dasharray: 4 5; }
.sgn-band { cursor: pointer; }
.sgn-band rect { fill: transparent; stroke: color-mix(in srgb, var(--hc-accent) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sgn-band text { fill: var(--hc-muted); font-size: 12px; text-anchor: middle; pointer-events: none; }
.sgn-band:hover rect { fill: color-mix(in srgb, var(--hc-accent) 10%, transparent); }
.sgn-band.is-on rect { fill: color-mix(in srgb, var(--hc-accent) 26%, transparent); stroke: var(--hc-accent); stroke-dasharray: none; stroke-width: 2.5; }
.sgn-band.is-on text { fill: var(--hc-accent); font-weight: 700; }
.sgn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sgn-chips label, .sgn-fieldset label { cursor: pointer; }
.sgn-chips input, .sgn-fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgn-chips span, .sgn-fieldset label span { display: inline-block; padding: 7px 13px; border: 1px solid var(--hc-line); border-radius: 8px; font-size: 13px; background: var(--hc-paper); transition: all .16s ease; }
.sgn-chips input:checked + span, .sgn-fieldset input:checked + span { background: var(--hc-accent); border-color: var(--hc-accent); color: #fff; font-weight: 650; }
.sgn-chips input:focus-visible + span, .sgn-fieldset input:focus-visible + span { outline: 3px solid var(--hc-accent-2); outline-offset: 2px; }
.sgn-form { padding: 22px 26px 26px; }
.sgn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sgn-fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.sgn-fieldset legend { padding: 0 0 10px; font-size: 14px; font-weight: 700; }
.sgn-fieldset legend small { font-size: 12px; font-weight: 400; color: var(--hc-muted); }
.sgn-fieldset--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sgn-fieldset--grid legend { grid-column: 1 / -1; }
.sgn-fieldset--grid label span { display: block; }
.sgn-alertset { padding: 14px; border: 1px dashed color-mix(in srgb, var(--hc-warn) 45%, var(--hc-line)); border-radius: 12px; background: color-mix(in srgb, var(--hc-warn) 4%, transparent); }
.sgn-alertset input:checked + span { background: var(--hc-warn); border-color: var(--hc-warn); }
.sgn-numgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-content: start; }
.sgn-numgrid label { grid-column: 1 / -1; font-size: 14px; font-weight: 700; margin-top: 4px; }
.sgn-numgrid label small { font-weight: 400; color: var(--hc-muted); }
.sgn-numgrid .hc-input { grid-column: 1 / -1; }
.sgn-btns { margin-top: 4px; }
.sgn-batch { border-top: 1px solid var(--hc-line); }
.sgn-batch summary { padding: 14px 26px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hc-accent); }
.sgn-batch summary span { font-weight: 400; color: var(--hc-muted); font-size: 12.5px; margin-left: 8px; }
.sgn-batch-in { padding: 0 26px 22px; }
.sgn-batch-in > label { display: block; font-size: 12.5px; color: var(--hc-muted); margin-bottom: 8px; }
.sgn-batch-in .hc-actions { margin: 12px 0; }

/* ---- 结果 ---- */
.sgn-result { margin-top: 44px; }
.sgn-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--hc-ink); }
.sgn-sec-head > span { font: 700 13px "SFMono-Regular", Consolas, monospace; color: var(--hc-accent); }
.sgn-sec-head h2 { margin: 0; font-size: 24px; }
.sgn-sec-head small { color: var(--hc-muted); font-size: 12.5px; }
.sgn-empty { padding: 26px; border: 1px dashed var(--hc-line); border-radius: 14px; color: var(--hc-muted); background: var(--hc-paper); }
.sgn-verdict { padding: 16px 20px; margin-bottom: 18px; border-radius: 12px; background: var(--hc-soft); border-left: 5px solid var(--hc-accent); font-size: 15px; line-height: 1.85; }
.sgn-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); }
.sgn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.sgn-stats > div { padding: 16px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 12px; }
.sgn-stats span { display: block; font-size: 12px; color: var(--hc-muted); }
.sgn-stats b { display: block; font: 700 26px "SFMono-Regular", Consolas, monospace; color: var(--hc-accent); line-height: 1.4; }
.sgn-stats em { font-size: 11.5px; font-style: normal; color: var(--hc-muted); }
.sgn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sgn-card { padding: 20px 22px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 14px; }
.sgn-card h3 { margin: 0 0 12px; font-size: 17px; }
.sgn-card ol, .sgn-card ul { margin: 0; padding-left: 20px; }
.sgn-card li { margin-bottom: 8px; font-size: 14px; line-height: 1.8; }
.sgn-subh { margin: 26px 0 12px; font-size: 17px; }
.sgn-subh small { font-size: 12px; font-weight: 400; color: var(--hc-muted); }
.sgn-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sgn-timeline > div { padding: 14px 16px; border-top: 3px solid var(--hc-accent-2); background: var(--hc-soft); border-radius: 0 0 10px 10px; font-size: 13px; line-height: 1.75; }
.sgn-timeline b { display: block; color: var(--hc-accent); margin-bottom: 4px; }
.sgn-disclaim { margin: 20px 0 0; padding: 14px 18px; font-size: 13px; line-height: 1.85; color: var(--hc-muted); border-left: 3px solid var(--hc-line); }
.sgn-actions { margin-top: 16px; }

/* ---- AI ---- */
.sgn-ai { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--hc-paper); }
.sgn-ai-head h2 { margin: 0 0 8px; font-size: 19px; }
.sgn-ai-head h2 span { color: var(--hc-accent); font: 700 12px "SFMono-Regular", Consolas, monospace; margin-right: 8px; }
.sgn-ai-head h2 small { font-size: 11.5px; font-weight: 400; color: var(--hc-muted); }
.sgn-ai-head p { margin: 0 0 16px; font-size: 13px; line-height: 1.8; color: var(--hc-muted); }
.sgn-ai-status { margin: 14px 0 0; font: 12.5px "SFMono-Regular", Consolas, monospace; color: var(--hc-muted); }
.sgn-ai-out { margin-top: 12px; padding: 16px 18px; white-space: pre-wrap; font-size: 14px; line-height: 1.9; background: var(--hc-soft); border-radius: 10px; }

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

@media (max-width: 900px) {
    .sgn-hero, .sgn-console-grid, .sgn-cols { grid-template-columns: 1fr; }
    .sgn-map { border-right: 0; border-bottom: 1px solid var(--hc-line); }
    .sgn-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sgn-field-row, .sgn-fieldset--grid, .sgn-numgrid, .sgn-timeline { grid-template-columns: 1fr; }
    .sgn-stats { grid-template-columns: repeat(2, 1fr); }
    .sgn-console-head, .sgn-map, .sgn-form, .sgn-batch-in { padding-inline: 16px; }
    .sgn-keybar span { padding: 8px 12px; }
}
