/* ============================================================
   研盘 Tickwise — 指南正文页样式（叠加在 style.css + site.css 之上）
   组件命名沿用站群约定：crumbs/guide-head/lede/toc/article/box/data/faq/related/go-cta/author-card
   ============================================================ */

.guide-main { padding: 36px 0 20px; }
.guide-wrap { max-width: 768px; margin: 0 auto; padding: 0 20px; }

/* 面包屑 */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--bs-primary); }
.crumbs span { color: var(--ink); }

/* 文章头 */
.guide-head { margin-bottom: 26px; }
.guide-head .kicker { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--bs-primary); margin-bottom: 14px; }
.guide-head h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
.guide-head h1 small { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: 12px; letter-spacing: 0; line-height: 1.5; font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif; }
.guide-meta { font-size: .82rem; color: var(--faint); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.guide-meta b { color: var(--muted); font-weight: 500; }

/* 导语：先给结论 */
.lede { font-size: 1.12rem; line-height: 1.75; color: var(--ink); border-left: 3px solid var(--bs-primary); padding: 4px 0 4px 18px; margin: 26px 0; }

/* 目录 */
details.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px 20px; margin: 26px 0; }
details.toc summary { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 600; color: var(--ink); cursor: pointer; padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::before { content: "\F229"; font-family: "bootstrap-icons"; color: var(--bs-primary); font-weight: 400; }
details.toc[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details.toc ol { margin: 0 0 12px; padding-left: 20px; columns: 2; column-gap: 26px; }
details.toc li { margin: 7px 0; font-size: .92rem; break-inside: avoid; }
details.toc a { color: var(--bs-body-color); text-decoration: none; }
details.toc a:hover { color: var(--bs-primary); }

/* 正文 */
.article { font-size: 1.03rem; line-height: 1.85; color: var(--bs-body-color); }
.article > h2 { font-size: 1.45rem; margin: 38px 0 14px; line-height: 1.3; scroll-margin-top: 90px; display: flex; gap: 12px; align-items: baseline; }
.article > h2 .h2no { font-family: "IBM Plex Mono", monospace; font-size: .9rem; color: var(--bs-primary); font-weight: 600; flex: none; }
.article h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 8px 0; }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--bs-primary); }

/* 对比表 */
.article .data-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 13px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-family: "IBM Plex Mono", monospace; font-size: .86rem; color: var(--ink); white-space: nowrap; }
table.data tr.is-bridge { background: #E8F4EE; }

/* 提示框 */
.box { border-radius: 12px; padding: 18px 20px; margin: 22px 0; font-size: .97rem; line-height: 1.7; }
.box .box-h { display: block; font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.box.scene { background: #EEF4F8; color: #2B3A45; }
.box.scene .box-h { color: #1C485E; }
.box.field { background: var(--paper); border: 1px solid var(--line); color: var(--bs-body-color); }
.box.field .box-h { color: var(--bs-primary); }
.box.mistake { background: #FBF1E7; color: #6B4A21; }
.box.mistake .box-h { color: #92591A; }
.box.stop { background: var(--down-wash); color: #7A2D22; }
.box.stop .box-h { color: var(--down); }

/* 清单 */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 30px; margin: 11px 0; }
.checklist li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--bs-primary); }

/* FAQ */
.faq { margin: 26px 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 600; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; float: right; color: var(--bs-primary); }
.faq details[open] summary::after { content: "\F2EA"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { margin: 14px 0; color: var(--bs-body-color); }

/* 下一步阅读 */
.related { background: var(--paper); border-radius: 14px; padding: 24px 26px; margin: 32px 0; }
.related-h { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 10px 0; padding-left: 22px; position: relative; }
.related li::before { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--bs-primary); }
.related a { color: var(--ink); text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--bs-primary); }

/* 出站 CTA */
.go-cta { background: var(--ink); border-radius: 16px; padding: 30px 32px; margin: 34px 0; color: #DDE6E2; }
.go-cta h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.go-cta p { font-size: .95rem; margin-bottom: 18px; }
.go-cta .btn { background: #fff; color: var(--ink); border: none; font-weight: 600; }

/* 作者卡 */
.author-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 32px 0; }
.author-card .ac-ava { width: 52px; height: 52px; border-radius: 50%; background: var(--bs-secondary); display: grid; place-items: center; font-family: "Newsreader", Georgia, serif; font-weight: 700; color: var(--bs-primary-hover); flex: none; }
.author-card .ac-name { font-family: "Newsreader", "Noto Serif SC", Georgia, serif; font-weight: 600; color: var(--ink); }
.author-card .ac-badge { font-size: .72rem; color: var(--bs-primary); font-family: "IBM Plex Mono", monospace; }
.author-card p { font-size: .9rem; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }

/* 更新说明 */
.update-note { font-size: .82rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; line-height: 1.6; }

/* 工具 · 计算器（§27.3） */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin: 26px 0; box-shadow: 0 24px 50px -38px rgba(20,24,28,.3); }
.calc-sec { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--bs-primary); letter-spacing: .03em; margin: 4px 0 14px; }
.calc-sec.mt { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.calc-field input, .calc-field select { border: 1px solid var(--line-2, #D2D8DF); border-radius: 9px; padding: 10px 12px; font-size: .95rem; font-family: "IBM Plex Mono", monospace; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(14,122,88,.12); }
.calc-toggle { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink); }
.calc-toggle input { width: 18px; height: 18px; accent-color: var(--bs-primary); }
.calc-out { margin-top: 22px; background: var(--paper); border-radius: 12px; padding: 18px 20px; }
.calc-out .ro { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: .95rem; color: var(--bs-body-color); border-bottom: 1px solid var(--line); }
.calc-out .ro:last-child { border-bottom: none; }
.calc-out .ro .v { font-family: "IBM Plex Mono", monospace; color: var(--ink); font-weight: 500; }
.calc-out .ro.total { margin-top: 6px; padding-top: 13px; border-top: 2px solid var(--bs-primary); border-bottom: none; }
.calc-out .ro.total .lab { font-family: "Newsreader", "Noto Serif SC", serif; font-weight: 600; color: var(--ink); }
.calc-out .ro.total .v { color: var(--bs-primary); font-size: 1.2rem; font-weight: 600; }
.calc-reset { margin-top: 14px; font-size: .85rem; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.calc-disclaim { font-size: .78rem; color: var(--faint); margin-top: 12px; line-height: 1.55; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } .calc { padding: 20px 18px; } }

/* 工具 · 开盘时间换算器状态条 */
.mh-now { display: flex; align-items: center; gap: 10px; background: #E8F4EE; border-radius: 10px; padding: 13px 16px; margin-bottom: 16px; font-size: .95rem; color: var(--ink); }
.mh-now .mh-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--bs-primary); }
.mh-now.is-closed { background: var(--paper); color: var(--muted); }
.mh-now.is-closed .mh-dot { background: var(--faint); }
.mh-now b { font-weight: 600; color: var(--bs-primary-hover); }
.mh-now.is-closed b { color: var(--ink); }
.mh-tzline { font-family: "IBM Plex Mono", monospace; font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
