/* 指南頁共用樣式（guide-bankroll-tracking／guide-bankroll-management 兩頁各一份，內容相同） */

/* ---------- 頁首 ---------- */
.guide-hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); line-height: 1.18; max-width: 860px; }
html[lang="en"] .guide-hero h1 { letter-spacing: 0; }
.guide-h1-line2 { display: block; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.guide-meta span { display: inline-flex; align-items: center; gap: 8px; }
.guide-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-deep); }

/* ---------- 目錄＋內文兩欄；≤960px 目錄移到上方 ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.guide-toc { position: sticky; top: calc(var(--header-h, 64px) + 24px); padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.guide-toc-title { margin: 0 0 10px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: #d7d4cb; text-decoration: none; font-size: .94rem; line-height: 1.4; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--gold-deep); min-width: 1.6em; }
.guide-toc a:hover { color: var(--gold-hi); background: var(--gold-a10); }

.guide-body { max-width: 760px; min-width: 0; }
.guide-sec { padding-bottom: clamp(32px, 4vw, 44px); margin-bottom: clamp(32px, 4vw, 44px); border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.guide-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.guide-sec h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); margin-bottom: 16px; }
html[lang="zh-Hant"] .guide-sec h2, html[lang="zh-Hant"] #get h2 { word-break: keep-all; overflow-wrap: anywhere; }
.guide-sec p { color: #cfccc3; line-height: 1.85; }
.guide-sec .table-wrap { margin: 8px 0 18px; }
.guide-sec .steps { margin-top: 8px; }
.guide-sec .list-check { margin: 8px 0 0; }
.guide-sec .faq { margin-top: 8px; }

/* 公式列表 */
.guide-formulas { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 10px; }
.guide-formulas li { padding: 14px 18px; border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-deep); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); color: #cfccc3; line-height: 1.7; }
.guide-formulas strong { display: block; color: var(--gold-hi); font-family: var(--font-head); margin-bottom: 2px; }

/* 表格 */
.guide-table th[scope="row"] { font-weight: 700; color: #dedad0; }
.guide-cards td { color: #cfccc3; min-width: 8em; }
.guide-num td, .guide-num th { font-variant-numeric: tabular-nums; }
.guide-num th[scope="row"] { white-space: nowrap; }
.guide-total th, .guide-total td { font-weight: 700; background: rgba(212, 175, 106, .06); border-top: 1px solid var(--gold-a25); }

/* 手機：欄位表改成每列一張小卡；數字表縮小字級 */
@media (max-width: 640px) {
  .guide-cards { display: flex; flex-direction: column; }
  .guide-cards caption { order: 2; display: block; padding: 4px 16px 14px; }
  .guide-cards thead { display: none; }
  .guide-cards tbody { display: block; }
  .guide-cards tr { display: grid; gap: 0; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .guide-cards th, .guide-cards td { padding: 4px 0; border: 0; min-width: 0 !important; white-space: normal; }
  .guide-cards th[scope="row"] { padding-top: 0; margin-bottom: 6px; color: var(--gold-hi); }
  .guide-cards td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); margin-bottom: 1px; }
  .guide-num th, .guide-num td { padding: 11px 8px; font-size: .86rem; }
  .guide-num thead th { font-size: .72rem; letter-spacing: .04em; }
}
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; }
  .guide-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
@media (max-width: 560px) {
  .guide-meta { flex-direction: column; gap: 4px; }
  .guide-meta span + span::before { display: none; }
}

.cta-panel h2 { margin-bottom: 12px; }

/* 升降級規則 */
.guide-rules { list-style: none; counter-reset: rule; margin: 8px 0 20px; padding: 0; display: grid; gap: 10px; }
.guide-rules li { counter-increment: rule; position: relative; padding: 14px 18px 14px 58px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); color: #cfccc3; line-height: 1.7; }
.guide-rules li::before { content: counter(rule); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: .9rem; color: var(--on-gold); background: var(--gold-grad); }
.guide-rules strong { display: block; color: var(--gold-hi); font-family: var(--font-head); margin-bottom: 2px; }
.guide-disclaimer { margin-top: 20px; font-size: .86rem; color: var(--muted); }
