/* yugiohcombo.com — dark field design system (PRD §7)
   Base: ygoprodeck charcoal #1b1b1c family. Accents: card-frame trio
   (monster #e8ae28 / spell #2e9daa / trap #9b3aa9). Attribute badges use
   the game's own attribute colors. Stats/levels in monospace, like the
   deck builders. No gradients, no emoji, no centered 3-card hero. */
:root {
  --bg: #1b1b1c;
  --surface: #212528;
  --surface2: #2d2f31;
  --ink: #f8f9fa;
  --ink2: #9aa0a6;
  --line: #3a3d40;
  --red: #d63d3d;
  --monster: #e8ae28;
  --spell: #2e9daa;
  --trap: #9b3aa9;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--ink2); }
a:hover { text-decoration-color: var(--monster); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 72px; }
.muted { color: var(--ink2); font-size: 13px; }

/* header */
header.site { background: #101011; border-bottom: 1px solid var(--line); padding: 18px 20px 14px; }
header.site .inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
header.site h1 { margin: 0; font-size: 20px; letter-spacing: .4px; }
header.site h1 .combo { color: var(--monster); }
header.site nav { display: flex; gap: 16px; font-size: 13px; }
header.site nav a { text-decoration: none; color: var(--ink2); }
header.site nav a:hover { color: var(--ink); }
header.site .tagline { max-width: 1040px; margin: 8px auto 0; color: var(--ink2); font-size: 14px; }

/* hero */
.hero { display: flex; gap: 28px; align-items: center; padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.hero .h-text { flex: 1; min-width: 260px; }
.hero .h-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--monster); margin-bottom: 8px; }
.hero h2 { font-size: 26px; margin: 0 0 10px; line-height: 1.3; }
.hero p { margin: 0 0 14px; color: var(--ink2); font-size: 15px; }
.hero .h-art { flex: 0 0 240px; }
.hero .h-art img { width: 100%; border-radius: 10px; border: 1px solid var(--monster); display: block; }
.hero .h-art .cap { font-size: 11px; color: var(--ink2); margin-top: 6px; text-align: center; }

/* archetype grid */
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 30px; }
.acard { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); display: flex; }
.acard img { width: 96px; object-fit: contain; background: var(--surface2); border-right: 1px solid var(--line); }
.acard .a-body { padding: 12px 14px; }
.acard .a-name { font-weight: 700; font-size: 15px; }
.acard .a-meta { font-size: 11px; color: var(--ink2); margin: 2px 0 6px; letter-spacing: .04em; }
.acard .a-lead { font-size: 13px; color: var(--ink2); }
.acard .a-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--monster); text-decoration: none; }
.acard .a-link:hover { text-decoration: underline; }
.acard.soon { opacity: 1; }
.acard.soon .a-link { color: var(--ink2); }
.badge { display: inline-block; font-size: 10px; letter-spacing: .08em; padding: 1px 8px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.badge.fire { background: rgba(214,61,61,.18); color: #ff8f8f; border: 1px solid #d63d3d; }
.badge.dark { background: rgba(155,58,169,.18); color: #d8a6e8; border: 1px solid #9b3aa9; }
.badge.soon { background: var(--surface2); color: var(--ink2); border: 1px solid var(--line); margin-left: 0; }

/* headings */
h2.sec { font-size: 19px; margin: 42px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--surface2); }
h3.sub { font-size: 16px; margin: 28px 0 8px; color: var(--ink); }
h3.sub .k { color: var(--spell); }

/* tables */
table.stats { border-collapse: collapse; width: 100%; font-size: 13px; margin: 12px 0 24px; background: var(--surface); border: 1px solid var(--line); }
table.stats th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); }
table.stats td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.stats tr:last-child td { border-bottom: none; }
table.stats .num { font-family: var(--mono); }

/* combo steps */
.steps { counter-reset: st; margin: 16px 0; }
.step { border: 1px solid var(--line); border-left: 3px solid var(--monster); border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; background: var(--surface); }
.step::before { counter-increment: st; content: "STEP " counter(st); display: inline-block; font-size: 10px; letter-spacing: .12em; border: 1px solid var(--monster); color: var(--monster); padding: 1px 8px; margin-bottom: 6px; }
.step .t { font-weight: 700; margin-top: 4px; }
.step .act { margin-top: 6px; font-size: 14px; color: var(--ink); }
.step .field { margin-top: 8px; font-size: 13px; font-family: var(--mono); color: var(--ink); background: var(--surface2); padding: 6px 10px; border-radius: 4px; display: inline-block; }
.step .quote { margin-top: 8px; font-size: 12px; color: var(--ink2); border-left: 3px solid var(--spell); padding-left: 10px; font-style: italic; }
.check { margin-top: 8px; font-size: 13px; border: 1px dashed var(--line); border-radius: 4px; padding: 8px 12px; background: rgba(232,174,40,.06); }
.check b { color: var(--monster); }
.verify { display: inline-block; font-size: 10px; letter-spacing: .1em; background: var(--red); color: #fff; padding: 1px 7px; border-radius: 3px; vertical-align: 1px; }

/* fork / lanes */
.fork { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 16px 0; }
.fork > div { flex: 1; padding: 12px 16px; background: var(--surface); }
.fork > div + div { border-left: 1px solid var(--line); }
.fork .fh { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--monster); }

/* card pool */
.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.card img { width: 100%; display: block; aspect-ratio: 5 / 7.15; object-fit: cover; background: var(--surface2); }
.card .c-body { padding: 8px 10px 10px; }
.card .c-name { font-weight: 700; font-size: 13px; line-height: 1.35; }
.card .c-stat { font-size: 11px; font-family: var(--mono); color: var(--ink2); margin-top: 3px; }
.card .c-text { font-size: 11px; color: var(--ink2); margin-top: 6px; max-height: 130px; overflow: auto; }
.card.m .c-name { border-left: 3px solid var(--monster); padding-left: 6px; }
.card.s .c-name { border-left: 3px solid var(--spell); padding-left: 6px; }
.card.t .c-name { border-left: 3px solid var(--trap); padding-left: 6px; }

/* banners */
.banner { border: 1px solid var(--line); border-left: 3px solid var(--spell); background: var(--surface); padding: 10px 16px; font-size: 13px; margin: 18px 0 26px; }
.notice { font-size: 12px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 40px; }
footer.site { background: #101011; border-top: 1px solid var(--line); color: var(--ink2); font-size: 12px; padding: 18px 20px; margin-top: 56px; }
footer.site .inner { max-width: 1040px; margin: 0 auto; }
footer.site a { color: var(--ink); }

/* content pages (about/policy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 18px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); font-size: 14px; }
.prose ul { padding-left: 20px; }

@media (max-width: 760px) {
  .hero { flex-direction: column-reverse; text-align: left; }
  .hero .h-art { flex: none; width: 200px; }
  .agrid { grid-template-columns: 1fr; }
  .fork { flex-direction: column; }
  .fork > div + div { border-left: none; border-top: 1px solid var(--line); }
}

/* perf: reserve image boxes (CLS) + hero art at small size */
.h-art img { aspect-ratio: 5 / 7.15; object-fit: cover; }
.acard img { aspect-ratio: 5 / 7.15; }

/* deck list */
.decklist { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 16px 20px; margin: 14px 0 26px; font-size: 13px; }
.decklist h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--spell); }
.decklist .dl-cols { display: flex; gap: 24px; flex-wrap: wrap; }
.decklist .dl-col { flex: 1; min-width: 220px; }
.decklist li { margin: 2px 0; color: var(--ink); }
.decklist .num { font-family: var(--mono); color: var(--monster); margin-right: 6px; }

/* v3 P0: mobile constraints + two-level quotes */
@media (max-width: 760px) {
  .hero .h-art { width: 150px; }
  .hero .h-art img { aspect-ratio: 5/7.15; }
  .pool { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .agrid .a-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.step .quote { max-height: 5.5em; overflow: hidden; cursor: pointer; position: relative; }
.step .quote.open { max-height: none; }
.step .quote::after { content: "▾ show full card text"; position: absolute; bottom: 0; right: 0;
  background: var(--surface2); color: var(--ink2); font-size: 10px; padding: 1px 8px; border-radius: 3px; }
.step .quote.open::after { content: "▴ collapse"; }

/* ===== P1 components (PRD §3.3/3.4) + layout fixes (v3 P0 清单) ===== */
/* 排版修复 ①：移动 hero 高度约束 */
@media (max-width: 760px) {
  .hero .h-art { width: 150px; }
  .hero .h-art img { max-height: 32vh; width: auto; max-width: 100%; margin: 0 auto; }
  /* 修复 ④：卡池窄屏单列呼吸感 */
  .pool { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* 修复 ②：pillar 表格窄屏纵排 */
  table.stats, table.stats tbody { display: block; }
  table.stats tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  table.stats th { display: none; }
  table.stats td { display: block; border: none; padding: 3px 0; }
  table.stats td:first-child { color: var(--monster); font-size: 12px; letter-spacing: .06em; }
  /* 修复 ⑤：首页横卡窄屏不截断 */
  .acard { flex-direction: column; }
  .acard img { width: 100%; height: auto; aspect-ratio: 5/7.15; max-height: 220px; object-fit: cover; border-right: none; border-bottom: 1px solid var(--line); }
}

/* 卡表网格（Deck grid，PRD §3.2-6/7） */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px 14px; margin: 14px 0 8px; }
.dtile { position: relative; }
.dtile img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--line); }
.dtile .rbadge { position: absolute; top: 4px; left: 4px; font-size: 9px; font-weight: 700; padding: 0 5px; border-radius: 3px; color: #fff; }
.rbadge.r-ur { background: #b04ad4; } .rbadge.r-sr { background: #e08a2e; }
.rbadge.r-r { background: #3e7ec4; } .rbadge.r-n { background: #7a7f85; }
.dtile .abadge { position: absolute; top: 4px; right: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 20px; text-align: center; border-radius: 10px; padding: 1px 4px; }
.dtile .pct { font-size: 10px; color: var(--ink2); font-family: var(--mono); text-align: center; margin-top: 4px; }
@media (max-width: 560px) { .dgrid { grid-template-columns: repeat(3, 1fr); } }

/* 卡悬浮弹窗（PRD §3.4） */
.cpopup { position: fixed; z-index: 60; width: 430px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.6); display: none; padding: 14px; gap: 14px; }
.cpopup.show { display: flex; }
.cpopup-img { flex: 0 0 150px; }
.cpopup-img img { width: 100%; border-radius: 8px; display: block; }
.cpopup-body { flex: 1; min-width: 0; font-size: 12px; }
.cpopup-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cpopup-type { color: var(--ink2); margin: 4px 0; font-size: 11px; }
.cpopup-stat { font-family: var(--mono); color: var(--monster); font-size: 11px; margin-bottom: 6px; }
.cpopup-desc { color: var(--ink); max-height: 220px; overflow: auto; line-height: 1.5; }
@media (max-width: 760px) {
  .cpopup.sheet { left: 0 !important; right: 0; bottom: 0; top: auto; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; max-height: 72vh; overflow: auto; flex-direction: column; }
  .cpopup.sheet .cpopup-img { flex: none; width: 140px; }
}

/* Combo 板（PRD §3.3） */
.combo-board { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 16px 0; background: var(--surface); }
.cb-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr 0.9fr; min-height: 200px; }
.cb-col { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.cb-col:last-child { border-right: none; }
.cb-head { font-size: 11px; letter-spacing: .12em; font-weight: 700; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cb-start .cb-head { color: #7db3e8; } .cb-steps .cb-head { color: #6fcf97; }
.cb-end .cb-head { color: #e8c832; } .cb-info .cb-head { color: var(--ink2); }
.cb-body { padding: 12px; flex: 1; }
.ccard { display: inline-block; width: 74px; vertical-align: top; margin: 4px 2px; text-align: center; }
.ccard img { width: 100%; border-radius: 5px; border: 1px solid var(--line); display: block; }
.ccard .clabel { font-size: 9.5px; color: var(--ink2); margin-top: 4px; line-height: 1.35; }
.ccon { display: inline-block; vertical-align: middle; color: var(--ink2); font-weight: 700; margin: 0 4px; }
.cwild { width: 74px; height: 107px; border: 1px dashed var(--ink2); border-radius: 5px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9.5px; color: var(--ink2); padding: 4px; margin: 4px 2px; }
.csteps { max-height: 340px; overflow: auto; }
.crow { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.crow:last-child { border-bottom: none; }
.cnum { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--surface2); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ccards { flex: 1; }
.cnotes { font-size: 11px; color: var(--ink2); font-style: italic; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.cb-title { font-weight: 700; font-size: 14px; }
.cb-meta { color: var(--ink2); font-size: 11px; margin: 4px 0; }
.cb-votes { color: #6fcf97; font-weight: 700; font-size: 13px; }
.garnet { display: inline-block; background: #d63384; color: #fff; font-size: 9px; letter-spacing: .1em; padding: 1px 7px; border-radius: 3px; margin-right: 8px; vertical-align: 2px; }
.cb-req { margin-top: 10px; }
.cb-more { text-align: center; padding: 10px; border-top: 1px solid var(--line); }
.btn-more { background: none; border: none; color: var(--monster); font: 700 12px/1 -apple-system, sans-serif; letter-spacing: .1em; cursor: pointer; padding: 6px 14px; }
@media (max-width: 900px) {
  .cb-grid { grid-template-columns: 1fr 1fr; }
  .cb-steps { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .cb-info { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .cb-grid { grid-template-columns: 1fr; } .cb-col { border-right: none; border-bottom: 1px solid var(--line); } }

/* 样本卡组横滑（PRD §3.2-8） */
.samples { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 14px; }
.sample { flex: 0 0 300px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 12px; font-size: 12px; }
.sample .s-head { font-weight: 700; }
.sample .s-meta { color: var(--ink2); font-size: 11px; margin: 4px 0 8px; }
.sample details summary { cursor: pointer; color: var(--monster); font-size: 12px; }
.sample .s-list { max-height: 240px; overflow: auto; margin-top: 8px; line-height: 1.7; font-family: var(--mono); font-size: 11px; }

/* ===== P2: main tabs / tier list / packs / filter ===== */
.maintabs { display: flex; gap: 18px; font-size: 12px; letter-spacing: .08em; font-weight: 700; margin: 10px 0 2px; overflow-x: auto; }
.maintabs a { text-decoration: none; color: var(--ink2); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.maintabs a:hover, .maintabs a.active { color: var(--ink); border-bottom-color: var(--monster); }
.tlist { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 24px; }
.trow { display: grid; grid-template-columns: 44px 1fr 90px 44px 130px; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.tthumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--surface2); }
.tname { font-weight: 700; font-size: 14px; }
.tpower { font-family: var(--mono); color: var(--monster); font-size: 13px; text-align: right; }
.tcov { text-align: center; }
.tlink { font-size: 12px; color: var(--monster); text-decoration: none; text-align: right; }
.tlink:hover { text-decoration: underline; }
@media (max-width: 560px) { .trow { grid-template-columns: 36px 1fr 60px 36px; } .tlink { display: none; } .tthumb { width: 36px; height: 36px; } }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 14px 0; }
.pack { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 12px; text-align: center; }
.pack img { width: 84px; border-radius: 6px; margin-bottom: 8px; }
.p-name { font-weight: 700; font-size: 13px; }
.p-type { color: var(--ink2); font-size: 11px; margin-top: 4px; }
.filterbar { display: grid; grid-template-columns: 1fr 1fr 1fr 160px; gap: 10px; margin: 14px 0 18px; }
.filterbar input, .filterbar select { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 9px 12px; font-size: 13px; }
@media (max-width: 760px) { .filterbar { grid-template-columns: 1fr 1fr; } }
.frow { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 10px 14px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.frow .ft { font-weight: 700; font-size: 13px; }
.frow .fd { color: var(--ink2); font-size: 12px; }
.frow .fv { color: #6fcf97; font-size: 12px; font-weight: 700; }
.frow img { width: 40px; border-radius: 4px; }
.frow .cards { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.crumbs { font-size: 12px; margin: 6px auto 0; max-width: 1040px; padding: 0 20px; }
.crumbs a { color: var(--ink2); text-decoration: none; margin-right: 14px; }
.crumbs a:hover { color: var(--ink); }
header.site .inner + .maintabs { max-width: 1040px; margin: 10px auto 0; padding: 0 20px; }

/* ask box（§3.9） */
.askbox { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 20px; }
.askbox input { background: var(--surface); border: 1px solid var(--monster); color: var(--ink); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.askbox input::placeholder { color: var(--ink2); }
.askout .askans { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--monster); border-radius: 6px; padding: 12px 14px; font-size: 13px; line-height: 1.6; }

/* owner 反馈修复 11-20：去 emoji 徽章/缩略图完整显示/卡图比例锁定 */
.tthumb { width: 64px !important; height: 64px !important; object-fit: contain !important; }
.cov-live { display: inline-block; background: rgba(111,207,151,.15); color: #6fcf97; border: 1px solid #6fcf97; font-size: 9px; letter-spacing: .08em; padding: 1px 7px; border-radius: 3px; }
.cov-soon { display: inline-block; background: rgba(232,174,40,.12); color: var(--monster); border: 1px solid var(--monster); font-size: 9px; letter-spacing: .08em; padding: 1px 7px; border-radius: 3px; }
.ccard img { aspect-ratio: 5 / 7.15; object-fit: cover; }
.cnotes-d summary { cursor: pointer; color: var(--monster); font-size: 11px; margin-top: 8px; }
.cnotes-d .cnotes { margin-top: 6px; }

/* 卡简介行数钳制（防长文撑破，全站 acard 通用） */
.a-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-name .badge { white-space: nowrap; }

/* 11-20 owner 反馈：combo 板文案在上不遮图 + 顶部说明 */
.ccard .clabel { margin: 0 0 3px; font-size: 9.5px; color: var(--ink2); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard { width: 78px; }
.cwild { width: 78px; height: 112px; background: rgba(58,61,64,.35); border: 1px dashed var(--ink2);
  border-radius: 5px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 9.5px; color: var(--ink2); padding: 4px; }
.cb-hint { font-size: 11px; color: var(--ink2); margin: 2px 0 8px; }

/* 问答返回的架构页链接（owner 11-20 第2条） */
.asklinks { margin: 8px 0 4px; font-size: 13px; }
.asklinks a { color: var(--monster); text-decoration: none; border-bottom: 1px solid var(--monster); margin-right: 10px; }
.asklinks a:hover { background: rgba(232,174,40,.12); }

/* v6 夜班批：页尾版权行 */
.foot{margin-top:2.5rem;padding:1.1rem .2rem .4rem;border-top:1px solid #2a2a2e;color:#8a8a92;font-size:.82rem;text-align:center}

/* ===== 11-21 三列 combo 板：说明并入左列上方 ===== */
.cb-grid3 { grid-template-columns: 1.25fr 1.5fr 1.05fr; }
.cb-infopad { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.cb-infopad .cb-title { margin: 0 0 4px; }
.cb-infopad .cb-meta { margin: 0; }
.cb-infopad .cb-req { margin-top: 6px; }
.cnotes-d[open] summary { margin-bottom: 4px; }
@media (max-width: 900px) { .cb-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cb-grid3 { grid-template-columns: 1fr; } }

/* ===== 11-21 问答框：按钮+推荐词 chips ===== */
.ask-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ask-btn { background: var(--garnet, #9a2c2c); color: #fff; border: none; border-radius: 6px;
  padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ask-btn:hover { filter: brightness(1.12); }
.ask-chips-label { font-size: 12px; color: var(--ink2, #888); margin-left: 4px; }
.ask-chip { background: transparent; border: 1px solid var(--line, #ddd); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; color: var(--ink, #222); cursor: pointer; }
.ask-chip:hover { border-color: var(--garnet, #9a2c2c); color: var(--garnet, #9a2c2c); }

/* ===== 11-21 top-cards 分页 tab ===== */
.tc-tabs { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.tc-tab { background: transparent; border: 1px solid var(--line, #ddd); border-radius: 999px;
  padding: 8px 20px; font-size: 14px; color: var(--ink2, #666); cursor: pointer; }
.tc-tab.active { background: var(--garnet, #9a2c2c); color: #fff; border-color: var(--garnet, #9a2c2c); font-weight: 600; }
.tc-pane { display: none; }
.tc-pane.active { display: block; }
