:root {
  --ink: #111214; --ink-2: #3a3d42; --muted: #6b7078; --line: #e4e6ea; --bg: #fff; --bg-alt: #f5f6f7;
  --accent: #ff5a1f; --accent-ink: #b8390b; --ok: #0f7b4f; --ok-bg: #e5f4ec; --qual: #8a5a00; --qual-bg: #fbf1dc;
  --blue: #2c4bb8; --blue-bg: #eaf0ff; --radius: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 750; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .fine { font-size: .75rem; color: var(--muted); margin: .5em 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46em; }
.local { font-weight: 500; color: var(--muted); font-size: .6em; }
.qual { color: var(--qual); } .warn { color: #b42318; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 12px 18px; font: 600 .95rem var(--font); text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #2a2c30; }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: #ec4a10; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 62px; }
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.tld { color: var(--muted); font-weight: 600; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; margin-right: 9px; }
.logo-mark::before { content: ""; position: absolute; inset: 7px 4px 4px; background: var(--accent); border-radius: 3px; }
.logo-mark::after { content: ""; position: absolute; left: 10px; top: 2px; width: 2px; height: 5px; background: var(--accent); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.search { margin-left: auto; position: relative; width: min(320px, 40vw); }
.search input { width: 100%; font: inherit; font-size: .9rem; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: var(--bg-alt); }
.qres { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(17,18,20,.12); max-height: 60vh; overflow: auto; }
.qres a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; text-decoration: none; font-size: .92rem; }
.qres a:hover, .qres a[aria-selected="true"] { background: var(--bg-alt); }
.qres .c { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* hero */
.hero { padding: 72px 0 60px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 85% -10%, #ffe3d6 0%, transparent 60%), radial-gradient(900px 380px at 0% 0%, #e7ecff 0%, transparent 60%), #fff; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 30px; }
.stats .n { display: block; font-size: 2rem; font-weight: 750; letter-spacing: -0.02em; }
.stats .l { color: var(--muted); font-size: .9rem; }
.section { padding: 28px 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.rcard:hover { border-color: #c9ccd2; }
.rcard h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.rcard h3 a { text-decoration: none; } .rcard h3 a:hover { text-decoration: underline; }
.rcard .mk { color: var(--muted); font-weight: 500; }
.rcard p { margin: 0; }
.rcard-top { display: flex; justify-content: space-between; align-items: center; }
.rcard .price { margin-top: 10px; font-weight: 650; }
.rcard .price.muted { font-weight: 500; }
.rcard .ext { margin-top: 8px; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.st-available { background: var(--ok-bg); color: var(--ok); } .st-preorder { background: var(--blue-bg); color: var(--blue); }
.st-pilot { background: var(--qual-bg); color: var(--qual); } .st-discontinued { background: #eee; color: #777; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cat { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.cat.live { border: 1px solid var(--ink); text-decoration: none; background: #fff; }
.cat.live span { color: var(--accent-ink); font-weight: 600; }
.how ol { padding-left: 1.2em; } .how li { margin-bottom: .4em; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px 0; border-block: 1px solid var(--line); margin: 20px 0 12px; }
.filters label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.filters select, .filters input[type=search] { font: inherit; font-size: .9rem; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; }
.filters .chk { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; padding-bottom: 8px; }
.filters .grow { flex: 1; min-width: 180px; }
.empty { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.explain { margin-top: 40px; }

/* model page */
.crumbs { margin: 22px 0 14px; color: var(--muted); }
.model-head { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.price-big { font-size: 1.45rem; font-weight: 750; margin: 0; letter-spacing: -0.01em; }
.price-big.muted { font-size: 1.1rem; font-weight: 600; }
.model-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.side { display: grid; gap: 14px; align-content: start; padding-top: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); } .pad { padding: 16px; }
.card h3 { margin-top: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.spec th { width: 45%; font-weight: 500; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.cite { font-size: .7em; margin-left: 2px; } .cite a { color: var(--accent-ink); text-decoration: none; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doctype { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.sources { margin: 40px 0 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.sources ol { padding-left: 1.4em; font-size: .88rem; } .sources li { margin-bottom: 6px; word-break: break-word; }
.cols { columns: 3 220px; padding: 0; list-style: none; } .cols li { margin-bottom: 6px; break-inside: avoid; }
.prose { max-width: 760px; padding-bottom: 40px; } .prose h1 { margin-top: 30px; }

.foot { margin-top: 60px; border-top: 1px solid var(--line); padding: 30px 0; background: var(--bg-alt); }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }

@media (max-width: 900px) {
  .model-head, .model-grid, .foot-in { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .search { width: 100%; }
}
