/* ======================================================================
 * 07 · 便秘缓解指南 —— 「手册章节式」编辑设计
 * 配色：鼠尾草绿 × 暖棕 × 米纸；字体：衬线章节标题 / 大号章节号 / 宽松行距
 * 布局：首屏快速三问 + 左侧粘性章节目录 + 右侧分章内容
 * ====================================================================== */
.hc13.cst {
    --hc-ink: #2d3025; --hc-muted: #737a66; --hc-paper: #fffdf7;
    --hc-soft: #f4f3e9; --hc-line: #e1e2d2; --hc-accent: #617a4f;
    --hc-accent-2: #8a6a45; --hc-warn: #a33b2a; --hc-shadow: 0 14px 34px rgba(70, 76, 50, .10);
    background: #fbf9f1;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.9;
}
:root[data-theme="dark"] .hc13.cst {
    --hc-ink: #ecf0e0; --hc-muted: #adb69a; --hc-paper: #181c14;
    --hc-soft: #21261b; --hc-line: #343b2b; --hc-accent: #b7d68a;
    --hc-accent-2: #e0bb8c; --hc-warn: #ff9d8b; --hc-shadow: 0 14px 34px rgba(0, 0, 0, .44);
    background: #11140e;
}
.cst .hc-wrap { padding-bottom: 56px; }
.cst .hc-crumb { padding: 18px 0 8px; }
.cst strong, .cst b { color: var(--hc-accent); }
.cst h1, .cst h2, .cst h3, .cst .cst-ch-head b, .cst .cst-index a b { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
.cst .hc-kw, .cst .cst-quick-label, .cst .cst-index-label, .cst .cst-stats b { font-family: "SFMono-Regular", Consolas, monospace; }
.cst .hc-prose { max-width: 72ch; font-size: 15px; line-height: 2; }

/* ---- 首屏 ---- */
.cst-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .78fr); gap: 44px; align-items: start; padding: 32px 0 30px; }
.cst-hero .hc-kw { color: var(--hc-accent-2); font-size: 11px; letter-spacing: 3px; }
.cst-hero h1 { margin: 16px 0 18px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.26; font-weight: 800; }
.cst-hero h1 em { display: block; font-style: normal; font-size: .46em; font-weight: 500; color: var(--hc-accent); margin-top: 12px; letter-spacing: 1px; }
.cst-lede { margin: 0; max-width: 60ch; font-size: 15.5px; line-height: 2; }
.cst-hero-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.cst-cta { padding: 12px 24px; border-radius: 3px; background: var(--hc-accent); color: #fff; font-size: 14.5px; font-weight: 700; }
.cst-cta--ghost { background: transparent; color: var(--hc-accent); border: 1px solid var(--hc-accent); }
.cst-hero-note { margin: 0; font-size: 12px; color: var(--hc-muted); }
.cst-quick { padding: 22px 24px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-top: 5px solid var(--hc-accent-2); box-shadow: var(--hc-shadow); }
.cst-quick-label { display: block; font-size: 10.5px; letter-spacing: 2.2px; color: var(--hc-muted); margin-bottom: 16px; }
.cst-quick label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.cst-quick label small { font-weight: 400; color: var(--hc-muted); }
.cst-quick .hc-input, .cst-quick .hc-select { margin-top: 6px; }
.cst-quick-btn { width: 100%; margin-top: 6px; padding: 11px; border-radius: 4px; background: var(--hc-accent); color: #fff; font-size: 14px; font-weight: 700; }
.cst-quick-note { margin: 10px 0 0; font-size: 11.5px; color: var(--hc-muted); }
.cst-strip { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 30px; border-block: 1px solid var(--hc-line); }
.cst-strip span { padding: 10px 16px; border-right: 1px solid var(--hc-line); font-size: 12.5px; color: var(--hc-muted); }
.cst-strip span:first-child { color: var(--hc-accent); font-weight: 700; }

/* ---- 手册骨架 ---- */
.cst-book { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; }
.cst-index { position: sticky; top: 88px; align-self: start; padding: 18px 0; border-top: 3px solid var(--hc-accent); }
.cst-index-label { display: block; font-size: 10px; letter-spacing: 3px; color: var(--hc-muted); margin-bottom: 12px; }
.cst-index a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--hc-line); font-size: 13.5px; color: var(--hc-ink); }
.cst-index a b { font-size: 17px; color: var(--hc-accent-2); }
.cst-index a:hover { color: var(--hc-accent); }
.cst-index p { margin: 16px 0 0; font-size: 12px; line-height: 1.8; color: var(--hc-muted); }
.cst-chapter { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--hc-line); }
.cst-chapter:last-child { border-bottom: 0; }
.cst-ch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.cst-ch-head b { font-size: 34px; color: var(--hc-accent-2); line-height: 1; }
.cst-ch-head h2 { margin: 0; font-size: 23px; }
.cst-ch-head span { margin-left: auto; color: var(--hc-muted); font-size: 12px; }
.cst-form { padding: 20px 22px; background: var(--hc-paper); border: 1px solid var(--hc-line); }
.cst-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cst-form-row label { font-size: 13px; font-weight: 700; }
.cst-form-row label small { font-weight: 400; color: var(--hc-muted); }
.cst-form-row .hc-input { margin-top: 6px; }
.cst-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; }
.cst-fieldset legend { width: 100%; padding-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.cst-fieldset legend small { font-weight: 400; color: var(--hc-muted); }
.cst-fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cst-fieldset label span { display: inline-block; padding: 7px 12px; border: 1px solid var(--hc-line); border-radius: 4px; font-size: 12.5px; cursor: pointer; }
.cst-fieldset input:checked + span { background: var(--hc-accent); border-color: var(--hc-accent); color: #fff; font-weight: 650; }
.cst-fieldset input:focus-visible + span { outline: 3px solid var(--hc-accent-2); outline-offset: 2px; }
.cst-fieldset--alert { padding: 12px; border: 1px dashed color-mix(in srgb, var(--hc-warn) 45%, var(--hc-line)); border-radius: 6px; background: color-mix(in srgb, var(--hc-warn) 4%, transparent); }
.cst-fieldset--alert input:checked + span { background: var(--hc-warn); border-color: var(--hc-warn); }
.cst-batch { margin-top: 16px; border: 1px solid var(--hc-line); background: var(--hc-paper); }
.cst-batch summary { padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hc-accent); }
.cst-batch summary span { font-size: 12px; font-weight: 400; color: var(--hc-muted); margin-left: 8px; }
.cst-batch-in { padding: 0 18px 18px; }
.cst-batch-in > label { display: block; font-size: 12.5px; color: var(--hc-muted); margin-bottom: 8px; }
.cst-batch-in .hc-actions { margin: 12px 0; }
.cst-medtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cst-medtable th, .cst-medtable td { padding: 11px 14px; border-bottom: 1px solid var(--hc-line); text-align: left; }
.cst-medtable th { background: var(--hc-soft); color: var(--hc-muted); font-size: 12px; }
.cst-medtable td:first-child { font-weight: 700; color: var(--hc-accent); white-space: nowrap; }

/* ---- 结果 ---- */
.cst-result { margin-top: 22px; }
.cst-empty { padding: 24px; border: 1px dashed var(--hc-line); color: var(--hc-muted); background: var(--hc-soft); }
.cst-verdict { padding: 16px 20px; margin-bottom: 16px; border-left: 5px solid var(--hc-accent); background: var(--hc-soft); font-size: 14.5px; line-height: 1.95; }
.cst-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); }
.cst-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.cst-stats > div { padding: 15px; border: 1px solid var(--hc-line); background: var(--hc-paper); }
.cst-stats span { display: block; font-size: 11.5px; color: var(--hc-muted); }
.cst-stats b { font-size: 24px; color: var(--hc-accent); }
.cst-stats em { font-size: 11px; font-style: normal; color: var(--hc-muted); margin-left: 4px; }
.cst-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cst-step { padding: 16px 18px; background: var(--hc-paper); border-top: 3px solid var(--hc-accent-2); }
.cst-step h4 { margin: 0 0 10px; font-size: 15px; }
.cst-step ul { margin: 0; padding-left: 18px; }
.cst-step li { margin-bottom: 7px; font-size: 13px; line-height: 1.8; }
.cst-subh { margin: 24px 0 12px; font-size: 17px; }
.cst-ask { padding-left: 20px; font-size: 14px; line-height: 1.9; }
.cst-ask li { margin-bottom: 8px; }
.cst-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.9; }
.cst-result .hc-actions { margin-top: 14px; }
.cst-faq details { padding: 13px 0; border-bottom: 1px solid var(--hc-line); }
.cst-faq summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.cst-faq details > div { padding: 10px 0 4px; font-size: 14px; line-height: 1.95; }
.cst-related { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hc-line); font-size: 13px; }
.cst-related > span { color: var(--hc-muted); }
.cst-related a { padding: 6px 14px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-accent); }

@media (max-width: 900px) {
    .cst-hero, .cst-book { grid-template-columns: 1fr; }
    .cst-index { position: static; display: flex; flex-wrap: wrap; gap: 10px; border-top: 0; }
    .cst-index a { border: 1px solid var(--hc-line); padding: 8px 12px; }
    .cst-index p { width: 100%; margin: 6px 0 0; }
    .cst-index-label { width: 100%; }
}
@media (max-width: 640px) {
    .cst-form-row, .cst-stats, .cst-steps { grid-template-columns: 1fr 1fr; }
    .cst-steps { grid-template-columns: 1fr; }
    .cst-form, .cst-batch-in { padding-inline: 14px; }
}
