/* =========================================================
   通通訂 知識庫文章 — article.css
   GEO/AEO 友善的長文排版。可讀字級(17px)、問答區塊、
   BLUF 直答框、比較表、流程圖、TOC。建立於 Design System 之上。
   ========================================================= */

.art-wrap{ max-width:1140px; margin:0 auto; padding:0 40px; display:grid; grid-template-columns:minmax(0,1fr) 264px; gap:56px; align-items:start; }
.article{ max-width:760px; min-width:0; }

/* header */
.art-head{ padding:14px 0 28px; }
.art-cat{ display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--accent-text); margin-bottom:16px; }
.art-cat .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
.article h1{ font-family:var(--font-display); font-size:42px; font-weight:700; letter-spacing:-.025em; line-height:1.16; margin:0 0 18px; text-wrap:balance; color:var(--text-1); }
.art-meta{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--text-3); }
.art-meta .am{ display:inline-flex; align-items:center; gap:6px; }
.art-meta svg{ width:14px; height:14px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.art-meta .dotsep{ width:3px; height:3px; border-radius:50%; background:var(--text-4); }

/* BLUF / TL;DR direct-answer box (GEO 直答) */
.tldr{ background:var(--accent-soft); border:1px solid var(--accent-border); border-radius:var(--r-md); padding:20px 24px; margin:0 0 36px; }
.tldr .tl-lbl{ font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-text); margin-bottom:9px; }
.tldr p{ font-size:16.5px; color:var(--text-1); line-height:1.72; margin:0; font-weight:500; }
.tldr p + p{ margin-top:10px; }

/* body type */
.article h2{ font-size:27px; font-weight:700; letter-spacing:-.018em; line-height:1.25; margin:48px 0 16px; text-wrap:balance; scroll-margin-top:84px; }
.article h3{ font-size:20px; font-weight:600; letter-spacing:-.01em; line-height:1.35; margin:32px 0 12px; }
.article p{ font-size:17px; color:var(--text-2); line-height:1.85; margin:0 0 20px; }
.article p b, .article li b{ color:var(--text-1); font-weight:600; }
.article a.inline{ color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.article ul, .article ol{ margin:0 0 22px; padding-left:24px; display:flex; flex-direction:column; gap:11px; }
.article li{ font-size:16.5px; color:var(--text-2); line-height:1.75; }
.article ul li::marker{ color:var(--accent); }
.article ol li::marker{ color:var(--accent-text); font-weight:600; font-family:var(--font-mono); }
.article strong{ color:var(--text-1); }
.article hr{ border:0; border-top:1px solid var(--border-1); margin:40px 0; }

/* GEO question block — 自包含問答，AI 直接擷取 */
.qa{ border:1px solid var(--border-1); border-left:3px solid var(--accent); border-radius:var(--r-md);
     background:var(--bg-1); padding:22px 24px; margin:0 0 26px; }
.qa .qa-q{ font-size:18px; font-weight:700; letter-spacing:-.01em; color:var(--text-1); margin:0 0 10px; line-height:1.4; }
.qa .qa-a{ font-size:16px; color:var(--text-2); line-height:1.78; margin:0; }
.qa .qa-a b{ color:var(--text-1); }

/* callout */
.callout{ display:flex; gap:14px; background:var(--bg-1); border:1px solid var(--border-1); border-radius:var(--r-md); padding:18px 20px; margin:0 0 26px; }
.callout .ci{ width:30px; height:30px; border-radius:8px; flex-shrink:0; display:grid; place-items:center; }
.callout .ci svg{ width:17px; height:17px; stroke:currentColor; stroke-width:1.9; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.callout p{ font-size:14.5px; line-height:1.68; margin:0; color:var(--text-2); }
.callout p b{ color:var(--text-1); }
.callout.warn .ci{ background:var(--status-warning-bg); color:var(--status-warning); border:1px solid var(--status-warning-border); }
.callout.danger .ci{ background:var(--status-danger-bg); color:var(--status-danger); border:1px solid var(--status-danger-border); }
.callout.ok .ci{ background:var(--status-success-bg); color:var(--status-success); border:1px solid var(--status-success-border); }
.callout.tip .ci{ background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent-border); }

/* article tables — larger than product .ds */
.art-table{ border:1px solid var(--border-1); border-radius:var(--r-md); overflow:hidden; margin:0 0 30px; background:var(--bg-1); }
.art-table table{ width:100%; border-collapse:collapse; font-size:15px; }
.art-table th, .art-table td{ text-align:left; padding:14px 18px; border-bottom:1px solid var(--border-1); vertical-align:top; line-height:1.6; }
.art-table thead th{ font-size:12.5px; font-weight:700; color:var(--text-2); background:var(--bg-2); letter-spacing:.02em; }
.art-table tbody tr:last-child td{ border-bottom:0; }
.art-table td .ok{ color:var(--status-success); font-weight:600; }
.art-table td .bad{ color:var(--status-danger); font-weight:600; }
.art-table caption{ caption-side:bottom; font-size:12.5px; color:var(--text-4); padding:10px 18px; text-align:left; }
.art-table .col-em{ background:var(--accent-soft); }
.art-table thead th.col-em{ color:var(--accent-text); }

/* scenario / process figure (flow diagram, no real screenshot) */
.figure{ border:1px solid var(--border-1); border-radius:var(--r-md); background:var(--bg-1); padding:24px; margin:0 0 14px; }
.figcap{ font-size:12.5px; color:var(--text-4); margin:0 0 30px; text-align:center; }
.flowx{ display:flex; align-items:stretch; gap:0; flex-wrap:wrap; }
.flowx .fx{ flex:1; min-width:120px; background:var(--bg-2); border:1px solid var(--border-1); border-radius:var(--r-sm); padding:14px 14px; position:relative; }
.flowx .fx + .fx{ margin-left:26px; }
.flowx .fx + .fx::before{ content:'→'; position:absolute; left:-22px; top:50%; transform:translateY(-50%); color:var(--accent); font-size:18px; font-weight:700; }
.flowx .fx .fxn{ font-family:var(--font-mono); font-size:11px; color:var(--accent-text); font-weight:600; }
.flowx .fx h4{ font-size:14px; font-weight:600; margin:6px 0 5px; color:var(--text-1); }
.flowx .fx p{ font-size:12px; color:var(--text-3); line-height:1.5; margin:0; }
.flowx .fx.neg{ border-color:var(--status-danger-border); }
.flowx .fx.pos{ border-color:var(--status-success-border); }

/* ledger / T-account style mini visual */
.ledger{ display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--border-1); border-radius:var(--r-sm); overflow:hidden; font-size:13.5px; }
.ledger .lh{ background:var(--bg-2); font-weight:600; color:var(--text-2); padding:11px 16px; border-bottom:1px solid var(--border-1); }
.ledger .lr{ padding:11px 16px; border-bottom:1px solid var(--border-1); color:var(--text-2); }
.ledger .lr:nth-child(odd){ border-right:1px solid var(--border-1); }
.ledger .lr b{ color:var(--text-1); font-family:var(--font-mono); }
.ledger > div:nth-last-child(-n+2){ border-bottom:0; }

/* TOC sidebar */
.toc{ position:sticky; top:84px; }
.toc .toc-lbl{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-4); margin-bottom:14px; }
.toc ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; border-left:1px solid var(--border-1); }
.toc a{ display:block; font-size:13px; color:var(--text-3); line-height:1.45; padding:7px 0 7px 16px; margin-left:-1px; border-left:2px solid transparent; transition:color .13s ease, border-color .13s ease; }
.toc a:hover{ color:var(--text-1); }
.toc a.active{ color:var(--accent-text); border-left-color:var(--accent); font-weight:600; }
.toc .toc-cta{ margin-top:22px; padding:18px; background:var(--bg-1); border:1px solid var(--border-1); border-radius:var(--r-md); }
.toc .toc-cta p{ font-size:13px; color:var(--text-2); line-height:1.55; margin:0 0 12px; }
.toc .toc-cta .btn{ width:100%; }

/* related / further reading at end */
.art-related{ margin-top:48px; padding-top:32px; border-top:1px solid var(--border-1); }
.art-related .rl-lbl{ font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--text-3); margin-bottom:18px; }
.rl-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* end CTA band inside article */
.art-cta{ margin-top:40px; background:var(--bg-1); border:1px solid var(--accent-border); border-radius:var(--r-lg); padding:30px 32px;
          display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.art-cta h3{ font-size:21px; font-weight:700; letter-spacing:-.012em; margin:0 0 6px; }
.art-cta p{ font-size:14px; color:var(--text-2); margin:0; line-height:1.6; }
.art-cta .ac-btns{ display:flex; gap:12px; flex-shrink:0; }

/* author / review note */
.art-disclaimer{ font-size:12.5px; color:var(--text-4); line-height:1.65; margin-top:30px; padding:14px 16px; background:var(--bg-1); border:1px solid var(--border-1); border-radius:var(--r-sm); }

@media (max-width: 980px){
  .art-wrap{ grid-template-columns:1fr; gap:0; }
  .toc{ display:none; }
  .rl-grid, .ledger{ grid-template-columns:1fr; }
  .ledger .lr:nth-child(odd){ border-right:0; }
}
@media (max-width: 640px){
  .art-wrap{ padding:0 22px; }
  .article h1{ font-size:32px; }
  .article h2{ font-size:23px; }
  .article p, .article li{ font-size:16px; }
  .flowx{ flex-direction:column; }
  .flowx .fx + .fx{ margin-left:0; margin-top:26px; }
  .flowx .fx + .fx::before{ left:50%; top:-22px; transform:translateX(-50%); content:'↓'; }
  .art-cta{ flex-direction:column; align-items:flex-start; }
}

/* ---------- 真實產品截圖 ---------- */
.shot{ border:1px solid var(--border-1); border-radius:var(--r-md); overflow:hidden; margin:0 0 14px; box-shadow:var(--shadow-md); }
.shot .shot-bar{ display:flex; align-items:center; gap:9px; height:34px; padding:0 14px; background:var(--bg-2); border-bottom:1px solid var(--border-1); font-size:11.5px; color:var(--text-3); font-family:var(--font-mono); }
.shot .shot-bar .live{ color:var(--accent); font-size:10px; }
.shot img{ width:100%; height:auto; display:block; }
