/* 二级页共用样式：选型器 / 会员对比表 / 项目雷达（变量全部来自 home.css 主题系统） */

/* ── 选型器向导 ── */
.wizard { max-width: 720px; }
.wiz-step { margin-bottom: 26px; }
.wiz-q { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.wiz-q small { font-weight: 400; color: var(--faint); margin-left: 8px; font-size: 12px; }
.wiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wiz-opt {
  background: var(--card); border: 2px solid var(--edge); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--shadow); padding: 14px 12px; cursor: pointer;
  text-align: center; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: transform 0.1s, border-color 0.1s;
}
.wiz-opt small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; margin-top: 4px; }
.wiz-opt:hover { transform: translate(-1px, -1px); }
.wiz-opt.on { border-color: var(--green); background: var(--green-bg); }

/* 答案卡 */
.answer { margin-top: 8px; }
.ans-main {
  background: var(--card); border: 2px solid var(--green); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow); padding: 20px 22px; margin-bottom: 14px;
}
.ans-badge { display: inline-block; font-size: 11px; font-weight: 800; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.ans-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.ans-price { font-size: 14px; color: var(--sub); margin: 6px 0 10px; }
.ans-price b { color: var(--green); font-size: 18px; }
.ans-why { font-size: 13.5px; line-height: 1.8; }
.ans-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ans-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ans-alt .alt {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px;
}
.ans-alt .alt b { font-size: 14px; }
.ans-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 2px solid var(--edge); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn.primary { border-color: var(--green); background: var(--green-bg); color: var(--green); }
.btn:hover { transform: translate(-1px, -1px); }

/* ── 会员对比表 ── */
.cmp-tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.cmp-wrap { overflow-x: auto; background: var(--card); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 860px; }
table.cmp th {
  text-align: left; font-size: 11.5px; color: var(--sub); padding: 12px 10px;
  border-bottom: 2px solid var(--edge); white-space: nowrap; cursor: pointer; user-select: none;
}
table.cmp th.num, table.cmp td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cmp td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp tr:hover td { background: var(--paper); }
.pill-a, .pill-b, .pill-c { font-size: 10.5px; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.pill-a { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); }
.pill-b { color: var(--blue); background: rgba(94, 200, 248, 0.12); border: 1px solid rgba(94, 200, 248, 0.4); }
.pill-c { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); }
.chg { font-size: 11.5px; color: var(--amber); }

/* ── 项目雷达 ── */
.opps-tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.opps-tools input {
  flex: 1; min-width: 200px; border: 2px solid var(--edge); border-radius: 999px;
  background: var(--card); color: var(--ink); padding: 8px 16px; font-size: 13px; outline: none;
}
.opps-tools input:focus { border-color: var(--green); }

/* ── 模型比价表（学 OpenRouter 表模式）与套餐表 ── */
table.cmp.models td { padding: 9px 10px; }
table.cmp.models th { cursor: pointer; }
table.cmp.models th .dir { display: block; font-style: normal; font-weight: 400; font-size: 10px; color: var(--faint); }
table.cmp.models th.sorted { color: var(--green); }
table.cmp.models th.sorted::after { content: " ↓"; }
table.cmp.models th.sorted.asc::after { content: " ↑"; }
.hi-val { color: var(--green); font-weight: 800; }
.dim { color: var(--faint); font-size: 12px; }
.dagger { color: var(--amber); font-weight: 700; }
tr.has-chg td { background: var(--amber-bg); }
.opps-tools input {
  flex: 1; min-width: 200px; border: 2px solid var(--edge); border-radius: 999px;
  background: var(--card); color: var(--ink); padding: 8px 16px; font-size: 13px; outline: none;
}
.opps-tools input:focus { border-color: var(--green); }

/* ── 首页 · 对比表缩略（行情速报） ── */
.mini-cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mini-cmp th { text-align: right; font-size: 11px; color: var(--faint); font-weight: 400; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mini-cmp th:first-child, .mini-cmp td:first-child { text-align: left; }
.mini-cmp td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.mini-cmp tr:last-child td { border-bottom: none; }
.mini-cmp .mname b { font-size: 13px; }
.mini-cmp .mname .axis-label { display: block; font-size: 10.5px; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--faint); }

/* ── 详细方案：每家一张卡片 · 每档一个块（学 codingplan） ── */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 16px; }
.vendor-card {
  background: var(--card); border: 2px solid var(--edge); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.vendor-card.is-king { border-color: var(--green); }
.vc-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-tagline { font-size: 12.5px; color: var(--sub); margin: 2px 0; }
.vc-models { font-size: 12px; color: var(--faint); }
.vc-models b { color: var(--sub); font-size: 11px; margin-right: 6px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tier-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tt-name { font-size: 13px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tt-title { font-size: 10px; font-weight: 700; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 999px; padding: 0 6px; }
.tt-price { font-size: 19px; font-weight: 800; color: var(--green); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.tt-price small { font-size: 11px; color: var(--faint); font-weight: 400; }
.tt-perks { margin: 0; padding-left: 16px; font-size: 11.5px; color: var(--sub); line-height: 1.7; }
.king-tag { font-size: 10px; font-weight: 800; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 999px; padding: 1px 8px; }
.vc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }
.vc-foot .btn.primary { font-size: 12px; padding: 6px 14px; }

/* ── 快速表：排名列 + 密度（总体预览式） ── */
.mini-cmp th, .mini-cmp td { padding: 9px 10px; }
.mini-cmp th { font-weight: 700; color: var(--sub); font-size: 12px; }
.mini-cmp .rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 11.5px; color: var(--sub); }
.mini-cmp tr:first-child .rank, .mini-cmp tr:nth-child(2) .rank, .mini-cmp tr:nth-child(3) .rank { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.mini-cmp .mname { min-width: 150px; }
.mini-cmp .q { max-width: 230px; }
.cmp .rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: 11.5px; color: var(--sub); }

/* ── 详情卡片：一行一卡（全宽，容纳更多信息） ── */
.vendor-grid { grid-template-columns: 1fr; }
.vendor-card .tier-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ── 档位块：固定三列（一个档占 1/3，不拉满；六个自动两行） ── */
.vendor-card .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tt-yearly { font-size: 11px; color: var(--amber); margin: -2px 0 6px; font-weight: 600; }
.tt-orig { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 5px; }

/* ── 对比页卡片：套用 reset.html vcard 通用格式 ── */
.vc-meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--sub); background: var(--paper); }
.vc-meta b { color: var(--faint); font-size: 11px; margin-right: 4px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier-tile { padding: 14px 18px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier-tile:nth-child(3n) { border-right: none; }
.tier-tile:nth-last-child(-n+3) { border-bottom: none; }
.tt-k { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-price { font-size: 22px; font-weight: 800; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tt-price small { font-size: 11px; color: var(--faint); font-weight: 400; }
