:root {
  --bg: #0b1120;
  --panel: #131c31;
  --panel-2: #1a2440;
  --line: #26334f;
  --fg: #f1f5f9;
  --muted: #93a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --warn: #fbbf24;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.9);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; letter-spacing: 0.06em; color: var(--fg); text-transform: uppercase; font-size: 17px; }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav a { margin-left: 20px; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--accent); }

main { padding: 32px 20px 64px; }

.hero { padding: 20px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 17px; max-width: 72ch; margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
.note { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 8px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; font-size: 14px; color: var(--muted);
}
.stat b { color: var(--fg); font-size: 18px; display: block; line-height: 1.2; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; margin-top: 14px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .prov { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.card .ttl { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--fg); }
.card .ttl:hover { text-decoration: none; color: var(--accent); }
.card .pr { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card .pr small { font-size: 13px; font-weight: 400; color: var(--muted); }
.card .foot { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card .stale { color: var(--warn); }

.badge {
  display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.badge.ok { color: var(--accent-2); border-color: rgba(34,197,94,.4); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--fg);
}
.chip:hover { border-color: var(--accent); text-decoration: none; }

.price { font-size: 40px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); }

.btn {
  display: inline-block; background: var(--accent); color: #06121f; font-weight: 700;
  padding: 12px 20px; border-radius: 10px; margin: 8px 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 24px 0 8px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 14px; word-break: break-word; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

.tablewrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.compare th, table.compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.compare th { background: var(--panel-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.compare tbody tr:hover { background: var(--panel); }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 10px; background: var(--panel); }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; margin-top: 40px; }
.site-footer p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .price { font-size: 32px; }
  .site-header .wrap { height: auto; padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
}
