:root { color-scheme: light; --bg: #f6f7fc; --card: #ffffff; --cardline: #e7e6f6; --fg: #16172b; --strong: #25263d; --accent: #5b4ff0; --line: #e9e8f5; --line2: #f2f1fa; --muted: #666883; --muted2: #4f5170; --dim: #9c9db4; --faint: #cfcfe4; --field: #ffffff; --glow: rgba(128,102,255,.32); --glow2: rgba(64,140,255,.22); --glow3: rgba(36,214,176,.22); --tagline: #22c9a6; --warn: #b45309; --tagtext: #0e9f84; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #0d0e1a; --card: #161728; --cardline: #272841; --fg: #ecedf7; --strong: #d9daec; --accent: #9a92ff; --line: #272841; --line2: #1d1e33; --muted: #9a9cb8; --muted2: #b2b4cc; --dim: #76789a; --faint: #45476a; --field: #161728; --glow: rgba(118,92,255,.30); --glow2: rgba(56,128,255,.18); --glow3: rgba(36,214,176,.16); --tagline: #22c9a6; --warn: #fbbf24; --tagtext: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0d0e1a; --card: #161728; --cardline: #272841; --fg: #ecedf7; --strong: #d9daec; --accent: #9a92ff; --line: #272841; --line2: #1d1e33; --muted: #9a9cb8; --muted2: #b2b4cc; --dim: #76789a; --faint: #45476a; --field: #161728; --glow: rgba(118,92,255,.30); --glow2: rgba(56,128,255,.18); --glow3: rgba(36,214,176,.16); --tagline: #22c9a6; --warn: #fbbf24; --tagtext: #5eead4; } }
html { background: var(--bg); }
body { position: relative; }
body { font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; max-width: 1040px; margin: 0 auto; padding: 0 20px; line-height: 1.5; color: var(--fg); }
header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { font-weight: 700; text-decoration: none; background: linear-gradient(90deg, #4f6bff, #7b5cff 50%, #22c9a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { color: var(--fg); font-size: 1.8em; margin: 28px 0 4px; }
h2 { color: var(--fg); font-size: 1.15em; margin: 24px 0 6px; }
a { color: var(--accent); }
.lead { color: var(--muted2); margin-top: 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 20px 0 12px; }
select { font: inherit; color: var(--fg); padding: 4px 8px; border: 1px solid var(--cardline); border-radius: 8px; background: var(--card); }
.updated { color: var(--muted); margin-left: auto; font-size: 0.9em; }
small { color: var(--muted); }
[hidden] { display: none !important; }

table.plans { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.plans thead th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.plans tbody { border-bottom: 1px solid var(--line); }
.plans td, .plans th { text-align: left; vertical-align: top; padding: 5px 10px; }
.plans tr.tier:first-child td { padding-top: 14px; }
.plans th.prod { padding-top: 14px; width: 170px; font-weight: 700; }
.plans th.prod small { display: block; font-weight: 400; }
.plans td.plan { width: 110px; font-weight: 600; color: var(--strong); }
.plans td.price { white-space: nowrap; }
.plans td.price small { margin-left: 4px; }
.plans td.none { color: var(--faint); }
.plans td.lim { color: var(--muted2); }
.plans tr.meta td { padding: 2px 10px 14px; font-size: 0.8em; color: var(--dim); }
.plans tr.meta a { color: var(--muted); }
.tag { display: inline-block; margin-top: 4px; padding: 0 6px; border: 1px solid var(--tagline); border-radius: 4px; color: var(--tagtext); font-size: 0.75em; font-weight: 400; }
.warn { color: var(--warn); }
.note { color: var(--muted); font-size: 0.85em; margin-top: 16px; }
footer { margin: 48px 0 24px; font-size: 0.9em; color: var(--muted); }

@media (max-width: 680px) {
  body { padding: 0 14px; }
  h1 { font-size: 1.35em; margin-top: 18px; }
  .lead { font-size: 0.9em; }
  .controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 10px; }
  .controls label { display: flex; flex-direction: column; font-size: 0.75em; color: var(--muted); gap: 2px; min-width: 0; }
  .controls select { width: 100%; font-size: 1.25em; color: var(--fg); padding: 6px 4px; }
  .updated { grid-column: 1 / -1; margin-left: 0; font-size: 0.75em; }
  .plans thead { display: none; }
  table.plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: auto; }
  .plans tbody { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; padding: 12px 14px 10px; }
  .plans th.prod { padding: 0 0 4px; width: auto; font-size: 1.05em; }
  .plans th.prod small { display: inline; margin-left: 6px; font-size: 0.75em; }
  .plans th.prod .tag { margin: 0 0 0 6px; vertical-align: 2px; }
  .plans tr.tier { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line2); }
  .plans tr.tier:first-child { border-top: 0; }
  .plans th.prod { grid-column: 1 / -1; }
  .plans tr.tier td, .plans tr.tier:first-child td { padding: 0; width: auto; white-space: normal; }
  .plans td.plan { font-weight: 600; }
  .plans td.price { text-align: right; }
  .plans td.price strong { font-size: 1.05em; }
  .plans td.price small { display: block; margin: 0; font-size: 0.75em; }
  .plans td.lim { grid-column: 1 / -1; font-size: 0.8em; color: var(--muted); line-height: 1.4; margin-top: 2px; }
  .plans tr.meta td { padding: 6px 0 0; font-size: 0.72em; }
}
.changes { list-style: none; padding: 0; }
.changes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.changes .cdate { font-variant-numeric: tabular-nums; color: var(--muted); }

.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.fctl { display: flex; align-items: center; gap: 10px; }
.theme { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.theme button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.theme button:hover { color: var(--fg); }
.theme button[aria-pressed="true"] { background: linear-gradient(135deg, rgba(91,79,240,.18), rgba(34,201,166,.18)); color: var(--accent); }
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] .chev { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; bottom: calc(100% + 6px); min-width: 140px; margin: 0; padding: 4px; list-style: none; background: var(--field); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 10; }
.lang li a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.lang li a:hover { background: var(--line2); }
.lang li a[aria-current]::after { content: "✓"; color: var(--muted); }

/* colour scheme D (owner 2026-11-21): blue-violet + teal, soft glow behind the title, plans table on a card */
body::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -80px; left: 50%; width: min(900px, 100%); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side at 45% 50%, var(--glow), transparent), radial-gradient(closest-side at 25% 40%, var(--glow2), transparent), radial-gradient(closest-side at 70% 60%, var(--glow3), transparent); }
.card { background: var(--card); border: 1px solid var(--cardline); border-radius: 14px; padding: 6px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04); }
.plans tbody:last-child { border-bottom: 0; }
@media (max-width: 680px) { .card { background: none; border: 0; box-shadow: none; padding: 0; } .plans tbody { background: var(--card); border-color: var(--cardline); border-radius: 14px; } }

/* batch 1 (2026-11-21): stats, tabs, chips, official-site button, FAQ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 6px; }
.stats > div { background: var(--card); border: 1px solid var(--cardline); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.stats b { display: block; font-size: 1.25em; color: var(--fg); font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 0.8em; color: var(--muted); line-height: 1.35; }
.tabs, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tabs { padding: 3px; gap: 2px; width: fit-content; border: 1px solid var(--cardline); border-radius: 999px; background: var(--card); }
.tabs button, .chips button { font: inherit; font-size: 0.9em; cursor: pointer; color: var(--muted2); background: none; border: 0; border-radius: 999px; padding: 4px 14px; }
.tabs button[aria-pressed="true"] { color: #fff; background: linear-gradient(90deg, #5b4ff0, #7b5cff); }
.chips button { border: 1px solid var(--cardline); background: var(--card); padding: 3px 12px; font-size: 0.85em; }
.chips button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: linear-gradient(135deg, rgba(91,79,240,.10), rgba(34,201,166,.10)); }
.chips button[aria-pressed="true"]::before { content: "✓ "; }
.plans th.prod .go { display: block; width: fit-content; margin-top: 8px; padding: 2px 10px; font-size: 0.75em; font-weight: 600; text-decoration: none; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; }
.plans th.prod .go:hover { background: linear-gradient(135deg, rgba(91,79,240,.12), rgba(34,201,166,.12)); }
.faq { margin-top: 36px; }
.faq details { background: var(--card); border: 1px solid var(--cardline); border-radius: 12px; padding: 10px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.faq p { margin: 8px 0 2px; color: var(--muted2); }
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats > div { padding: 8px 10px; }
  .stats b { font-size: 1.05em; }
  .plans th.prod .go { display: inline-block; margin: 0 0 0 8px; vertical-align: 2px; }
}

/* product pages /plans/<slug>/ (2026-11-21) */
.plans th.prod a.pname { color: var(--fg); text-decoration: none; }
.plans th.prod a.pname:hover { color: var(--accent); text-decoration: underline; }
.back { margin: 20px 0 0; font-size: 0.9em; }
.back a { text-decoration: none; }
a.go.big { display: inline-block; padding: 6px 16px; font-weight: 600; text-decoration: none; color: #fff; border-radius: 999px; background: linear-gradient(90deg, #5b4ff0, #7b5cff 60%, #22c9a6); }
h3 { font-size: 1em; margin: 20px 0 6px; color: var(--fg); }
p.meta { font-size: 0.8em; color: var(--dim); margin: 6px 0 0; }
p.meta a { color: var(--muted); }
.plans.one td.plan { width: 130px; }
.plans.one td.price { width: 260px; }
@media (max-width: 680px) { .plans.one tbody { padding: 4px 14px; } .plans.one td.plan, .plans.one td.price { width: auto; } }

/* detail drawer */
.hint { color: var(--muted); font-size: 0.85em; margin: 4px 0 10px; }
.plans tbody[data-slug] { cursor: pointer; }
.plans tbody[data-slug]:hover { background: var(--line2); }
.plans tbody.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
body.noscroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.dback { position: absolute; inset: 0; background: rgba(12, 12, 32, 0.38); }
.drawer aside { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 32px; background: var(--bg); border-left: 1px solid var(--cardline); box-shadow: -14px 0 40px rgba(0, 0, 0, 0.2); animation: din 0.18s ease-out; }
@keyframes din { from { transform: translateX(28px); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .drawer aside { animation: none; } }
.dclose { position: sticky; top: 0; float: right; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cardline); background: var(--card); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.dtitle { margin: 4px 44px 2px 0; font-size: 1.3em; }
.models { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.models span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78em; padding: 2px 7px; border: 1px solid var(--cardline); border-radius: 5px; background: var(--card); color: var(--muted2); }
.tcard { background: var(--card); border: 1px solid var(--cardline); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.thead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.thead b { font-size: 1.05em; color: var(--strong); }
.tprice { text-align: right; }
.tprice small { display: block; }
.tlim { color: var(--muted2); font-size: 0.88em; margin: 4px 0 6px; }
ul.feat { margin: 0; padding-left: 18px; font-size: 0.9em; }
ul.feat li { margin: 2px 0; }
ul.feat li.nofeat { list-style: none; margin-left: -18px; color: var(--dim); }
.drawer .meta { font-size: 0.8em; color: var(--dim); }
.drawer .meta a { color: var(--muted); }
.dlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
@media (max-width: 680px) { .drawer aside { border-left: 0; padding: 14px 14px 28px; } }

/* product pages */
.crumbs { font-size: 0.85em; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.ctags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ctag { font-size: 0.8em; padding: 2px 9px; border: 1px solid var(--cardline); border-radius: 999px; background: var(--card); color: var(--muted2); text-decoration: none; }
.ctag:first-child { border-color: var(--accent); color: var(--accent); }
.pnav { font-size: 0.88em; color: var(--dim); margin: 14px 0 4px; }
table.facts { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.facts th { text-align: left; vertical-align: top; width: 9em; padding: 8px 12px 8px 0; color: var(--muted); font-weight: 600; }
.facts td { padding: 8px 0; vertical-align: top; }
.facts tr + tr th, .facts tr + tr td { border-top: 1px solid var(--line); }
.unstated { color: var(--dim); font-style: italic; }
a.src { font-size: 0.8em; color: var(--muted); white-space: nowrap; }
ul.psum, ul.sim { padding-left: 18px; }
ul.sim li { margin: 3px 0; }
h3 { font-size: 1em; margin: 18px 0 6px; color: var(--strong); }
h3 small { font-weight: 400; }
@media (max-width: 680px) { .facts th { width: 6.5em; } }
.soon { color: var(--faint); }
