/* ============================================================
   卡探 KATAN — design system
   ============================================================ */

:root {
  --bg: #f4f6fb;
  --bg-glow-1: rgba(37, 99, 235, .055);
  --bg-glow-2: rgba(8, 145, 178, .045);
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef3fa;
  --ink: #0b1220;
  --ink-2: #273349;
  --muted: #5d6980;
  --faint: #8a95a9;
  --line: #e5eaf3;
  --line-strong: #d4dce9;
  --brand: #2563eb;
  --brand-2: #0891b2;
  --brand-3: #14b8a6;
  --brand-soft: #eaf1ff;
  --brand-ink: #1d4ed8;
  --amber: #b45309;
  --amber-soft: #fff7e8;
  --green: #047857;
  --green-soft: #e9fbf3;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .035);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 28px 80px rgba(4, 12, 32, .18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #070c18;
  --bg-glow-1: rgba(37, 99, 235, .12);
  --bg-glow-2: rgba(8, 145, 178, .09);
  --surface: #0e1729;
  --surface-2: #121d33;
  --surface-3: #17233c;
  --ink: #eef4ff;
  --ink-2: #d6e0f2;
  --muted: #9aa9c1;
  --faint: #74839d;
  --line: #1e2b46;
  --line-strong: #2b3b5c;
  --brand: #60a5fa;
  --brand-2: #22d3ee;
  --brand-soft: #13213f;
  --brand-ink: #93c5fd;
  --amber: #fbbf24;
  --amber-soft: #2a2110;
  --green: #34d399;
  --green-soft: #0d2a24;
  --red: #f87171;
  --red-soft: #2c1418;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 14px rgba(0, 0, 0, .2);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% -4%, var(--bg-glow-1), transparent 34%),
    radial-gradient(circle at 92% 4%, var(--bg-glow-2), transparent 30%);
  background-attachment: fixed;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

body.modal-open,
body.filters-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(37, 99, 235, .18); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons / inputs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn .ic { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0e7490 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 99, 235, .3); }
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-soft { color: var(--brand-ink); background: var(--brand-soft); border-color: transparent; }
.btn-soft:hover { border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.btn-danger { color: #fff; background: var(--red); }
.btn-sm { height: 36px; padding: 0 13px; border-radius: 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  transition: all .18s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn .ic { width: 18px; height: 18px; }

/* ---------- announcement ---------- */
.announce {
  position: relative;
  z-index: 60;
  color: #c8d4e8;
  background: #0a1122;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px;
}
.announce-inner { display: flex; align-items: center; gap: 9px; min-height: 38px; }
.announce p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce strong { color: #fff; font-weight: 700; }
.announce a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7dd3fc;
  font-weight: 600;
  white-space: nowrap;
}
.announce a:hover { color: #bae6fd; }
.announce a .ic { width: 13px; height: 13px; }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .14); flex: none; }
.announce-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7d8aa2;
  flex: none;
}
.announce-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.announce-close .ic { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(8, 16, 36, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 5px 12px rgba(37, 99, 235, .2)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.small { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.brand-dot { color: var(--brand); }
.brand-sub { margin-top: 4px; font-size: 8px; font-weight: 700; letter-spacing: 3.2px; color: var(--faint); }
.draft-chip {
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav-link.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.agent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  transition: all .18s ease;
}
.agent-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.agent-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; transition: all .18s ease; }
.agent-toggle[aria-pressed="true"] {
  color: #fff;
  background: #0b1220;
  border-color: #0b1220;
}
.agent-toggle[aria-pressed="true"] .agent-dot { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
[data-theme="dark"] .agent-toggle[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #061225; }
[data-theme="dark"] .agent-toggle[aria-pressed="true"] .agent-dot { background: #061225; box-shadow: none; }

.theme-btn .ic-moon { display: none; }
[data-theme="dark"] .theme-btn .ic-sun { display: none; }
[data-theme="dark"] .theme-btn .ic-moon { display: block; }

/* ---------- loading / error ---------- */
.loading-state {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.loading-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
.loading-tip { max-width: 360px; color: var(--faint); font-size: 10.5px; line-height: 1.7; text-align: center; }
.error-state {
  max-width: 620px;
  margin: 70px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.error-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--amber-soft);
  color: var(--amber);
}
.error-icon .ic { width: 24px; height: 24px; }
.error-state h1 { font-size: 22px; letter-spacing: -.4px; }
.error-state > p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.error-tip { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); text-align: left; font-size: 12px; color: var(--muted); }
.error-tip strong { color: var(--ink); }
.error-tip p { margin-top: 4px; }
.error-tip code { padding: 2px 6px; border-radius: 5px; background: var(--surface-3); font-family: var(--mono); font-size: 11.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 30px;
  background: #081023;
  color: #fff;
  box-shadow: 0 30px 70px rgba(8, 16, 36, .22);
  isolation: isolate;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .7; }
.hero-glow.g1 { width: 560px; height: 560px; right: -120px; top: -250px; background: radial-gradient(circle, rgba(14, 116, 144, .55), transparent 68%); }
.hero-glow.g2 { width: 520px; height: 520px; left: -180px; bottom: -300px; background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 68%); }
.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(148, 163, 184, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 30px;
  align-items: center;
  padding: 54px 54px 38px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 210, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
  flex: none;
  animation: livePulse 2.4s ease-in-out infinite;
}
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #8ff7e4 0%, #7dd3fc 48%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { max-width: 570px; color: #a9b6cc; font-size: 14.5px; line-height: 1.85; }
.hero-desc strong { color: #e7eefb; font-weight: 600; }
.desc-short { display: none; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(620px, 100%);
  margin-top: 26px;
  padding: 5px 5px 5px 14px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.hero-search .search-ic { color: #8a95a9; width: 19px; height: 19px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1220;
  font-size: 13.5px;
}
.hero-search input::placeholder { color: #98a2b5; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { height: 44px; padding: 0 24px; border-radius: 10px; }
.quick-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.quick-label { color: #72809a; font-size: 11px; margin-right: 2px; }
.quick-tags button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #c4d1e6;
  font-size: 11px;
  transition: all .18s ease;
}
.quick-tags button:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }

.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.radar {
  position: relative;
  width: 336px;
  height: 336px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 42, 66, .5) 0%, rgba(8, 20, 40, .2) 62%, transparent 72%);
}
.radar::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .08);
}
.radar-ring { position: absolute; border: 1px solid rgba(125, 211, 252, .14); border-radius: 50%; }
.rr1 { inset: 0; }
.rr2 { inset: 15%; border-color: rgba(125, 211, 252, .12); }
.rr3 { inset: 30%; border-color: rgba(125, 211, 252, .18); }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(45, 212, 191, .38) 0deg, rgba(45, 212, 191, .1) 28deg, transparent 82deg, transparent 360deg);
  animation: radarSpin 6.5s linear infinite;
  filter: blur(.6px);
}
.radar-cross { position: absolute; background: rgba(125, 211, 252, .08); }
.radar-cross.h { left: 4%; right: 4%; top: 50%; height: 1px; }
.radar-cross.v { top: 4%; bottom: 4%; left: 50%; width: 1px; }
.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 247, 228, .22);
  border-radius: 50%;
  background: rgba(8, 20, 38, .8);
  box-shadow: 0 0 40px rgba(45, 212, 191, .22), inset 0 0 24px rgba(45, 212, 191, .08);
}
.radar-core svg { width: 48px; height: 48px; }
.radar-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(9, 18, 36, .82);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  color: #dbe7fb;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: nodeFloat 5s ease-in-out infinite alternate;
}
.node-pin { width: 6px; height: 6px; border-radius: 50%; background: var(--nc); box-shadow: 0 0 10px var(--nc); flex: none; }
.radar-node.n1 { top: 9%; left: 1%; animation-delay: -.6s; }
.radar-node.n2 { top: 4%; right: 3%; animation-delay: -2.2s; }
.radar-node.n3 { top: 47%; right: -3%; animation-delay: -3.1s; }
.radar-node.n4 { bottom: 10%; right: 1%; animation-delay: -1.4s; }
.radar-node.n5 { bottom: 3%; left: 5%; animation-delay: -4s; }
.radar-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #7e8da6;
  font-size: 10.5px;
  letter-spacing: .02em;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 19px 54px 23px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .012);
}
.hero-stat { display: flex; flex-direction: column; padding-right: 34px; }
.hero-stat + .hero-stat { padding-left: 34px; border-left: 1px solid rgba(255, 255, 255, .08); }
.hero-stat strong { color: #fff; font-size: 23px; font-weight: 750; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.hero-stat span { margin-top: 1px; color: #7f8da5; font-size: 10.5px; }
.hero-updated { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #7f8da5; font-size: 10.5px; }
.hero-updated b { color: #b9c6dc; font-weight: 600; }

/* ---------- region bar ---------- */
.region-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.region-intro { display: flex; align-items: center; gap: 10px; min-width: 0; }
.region-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.region-icon .ic { width: 17px; height: 17px; }
.region-intro strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.region-intro span { display: block; margin-top: 1px; color: var(--faint); font-size: 9.5px; }
.region-select-wrap { position: relative; margin-left: auto; flex: none; }
.region-select-wrap select {
  height: 38px;
  min-width: 138px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.region-select-wrap select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.region-select-wrap > .ic { position: absolute; right: 10px; top: 50%; width: 13px; height: 13px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.region-age {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  flex: none;
}
.region-age input {
  width: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
.region-age input::placeholder { color: var(--faint); font-weight: 500; }
.region-age input::-webkit-outer-spin-button,
.region-age input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.region-age input[type='number'] { -moz-appearance: textfield; }
.region-result { min-width: 142px; color: var(--faint); font-size: 10.5px; text-align: right; white-space: nowrap; }
.region-bar.is-active .region-result { color: var(--green); font-weight: 650; }
.region-bar.is-active .region-icon { background: var(--green-soft); color: var(--green); }
.region-bar + .catalog { margin-top: 18px; }
.category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-tab { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: .16s ease; }
.category-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.category-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(37,99,235,.18); }
.category-tab-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0 5px; border-radius: 999px; background: var(--surface-2); color: var(--faint); font-size: 9px; font-weight: 700; }
.category-tab.active .category-tab-count { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 640px) {
  .category-strip { padding-top: 9px; margin: 0 -2px; }
  .category-tab { padding: 7px 11px; font-size: 10.5px; }
}

/* ---------- catalog ---------- */
.catalog {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

/* filters */
.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 32px);
  padding: 18px 18px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.filter-scroll { flex: 1; min-height: 0; overflow: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filter-scroll::-webkit-scrollbar { width: 4px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.filter-mobile-head, .filter-mobile-foot { display: none; }

.filter-group { padding: 13px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 2px; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.filter-group-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.filter-group-hint { font-size: 9.5px; color: var(--faint); }
.filter-select-wrap { position: relative; }
.filter-select-wrap select {
  width: 100%;
  height: 34px;
  padding: 0 28px 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.filter-select-wrap select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.filter-select-wrap .ic { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--faint); }
.filter-select-pin { left: 9px; width: 13px; height: 13px; }
.filter-select-chevron { right: 9px; width: 12px; height: 12px; }
.filter-tip { margin-top: 6px; color: var(--faint); font-size: 9.5px; line-height: 1.5; }

.check-list { display: flex; flex-direction: column; gap: 1px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, color .15s ease;
}
.check-row:hover { background: var(--surface-2); color: var(--ink); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 17px;
  height: 17px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: all .15s ease;
}
.check-box::after {
  content: "";
  width: 8px;
  height: 4.5px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform .15s ease;
}
.check-row input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check-row input:checked + .check-box::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.check-row input:focus-visible + .check-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-count { color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.op-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--op, var(--brand)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--op, var(--brand)) 12%, transparent); }
.platform-mini {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--p, var(--brand));
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.category-chip-grid { grid-template-columns: 1fr 1fr; }
.category-chip-grid .filter-chip { justify-content: space-between; }
.filter-chip {
  height: 31px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.active {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
}
[data-theme="dark"] .filter-chip.active { color: #bfdbfe; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-filter {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: all .15s ease;
}
.tag-filter:hover { border-color: var(--line-strong); color: var(--ink); }
.tag-filter.active { border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }

.filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 10px 0 6px;
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
}
.filter-reset:hover { color: var(--ink); background: var(--surface-2); }

/* toolbar */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.toolbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.catalog-title { font-size: 17px; font-weight: 750; letter-spacing: -.3px; white-space: nowrap; }
.catalog-title span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 21px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  vertical-align: 1px;
  font-variant-numeric: tabular-nums;
}
.filter-open { display: none; height: 36px; padding: 0 12px; font-size: 12.5px; }
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.sort-control { position: relative; display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.sort-control select {
  height: 36px;
  min-width: 118px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  appearance: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sort-control .ic { position: absolute; right: 9px; width: 13px; height: 13px; pointer-events: none; color: var(--faint); }

.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -3px 0 14px; }
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10.5px;
  font-weight: 550;
}
.active-filter button {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  opacity: .65;
}
.active-filter button:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.active-filter .ic { width: 10px; height: 10px; }
.active-clear { margin-left: 2px; border: 0; background: transparent; color: var(--faint); font-size: 10.5px; text-decoration: underline; text-underline-offset: 3px; }
.active-clear:hover { color: var(--ink); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pagination[hidden] { display: none; }
.pagination-info { color: var(--muted); font-size: 10px; white-space: nowrap; }
.pagination-info b { color: var(--ink); font-weight: 750; }
.pagination-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-btn { min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font: inherit; font-size: 10px; font-weight: 600; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-ellipsis { padding: 0 2px; color: var(--faint); font-size: 10px; }
@media (max-width: 640px) {
  .pagination { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 12px; }
  .pagination-controls { width: 100%; justify-content: center; }
}
.card {
  --op: #2563eb;
  --op-soft: #eaf2ff;
  --p: #2563eb;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
  animation: cardIn .35s ease both;
  animation-delay: calc(var(--i, 0) * 26ms);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--op), color-mix(in srgb, var(--op) 10%, transparent) 76%, transparent);
  opacity: .85;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--op) 26%, var(--line)); box-shadow: 0 14px 34px rgba(15, 23, 42, .09); }
.card.is-compared { border-color: color-mix(in srgb, var(--brand) 65%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow-sm); }
.card.is-paused, .card.is-soldout { opacity: .72; }
.card.is-paused:hover, .card.is-soldout:hover { opacity: .9; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-badges { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px 7px 3px 3px;
  border: 1px solid color-mix(in srgb, var(--p) 14%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--p) 7%, transparent);
  color: var(--p);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
[data-theme="dark"] .platform-badge { color: color-mix(in srgb, var(--p) 60%, #fff); }
.p-logo {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--p);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff1d6, #ffe4b8);
  color: #92400e;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
[data-theme="dark"] .featured-badge { background: #3a2a10; color: #fcd34d; }
.featured-badge .ic { width: 10px; height: 10px; }
.status-badge { padding: 3px 6px; border-radius: 6px; background: var(--surface-3); color: var(--faint); font-size: 9.5px; font-weight: 650; white-space: nowrap; }
.status-badge.paused { background: var(--amber-soft); color: var(--amber); }
.status-badge.soldout { background: var(--red-soft); color: var(--red); }

.card-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-size: 9.5px;
  transition: all .15s ease;
}
.compare-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.compare-btn .ic { width: 12px; height: 12px; }
.compare-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fav-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  transition: all .15s ease;
}
.fav-btn .ic { width: 15px; height: 15px; }
.fav-btn:hover { background: var(--surface-2); color: #e11d48; }
.fav-btn.is-fav { color: #e11d48; }
.fav-btn.is-fav .ic { fill: currentColor; }

.card-head { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; }
.op-logo {
  width: 41px;
  height: 41px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--op-soft);
  color: var(--op);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.05em;
}
[data-theme="dark"] .op-logo { background: color-mix(in srgb, var(--op) 16%, transparent); color: color-mix(in srgb, var(--op) 55%, #fff); }
.card-title { min-width: 0; padding-top: 1px; }
.card-title h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.15px;
}
.card-title p { margin-top: 2px; color: var(--faint); font-size: 10.5px; }
.age-inline { color: var(--ink-2); font-weight: 600; }

.card-metrics { display: grid; grid-template-columns: 1.06fr .94fr; margin-top: 12px; padding: 10px 0 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; min-width: 0; }
.metric-label { color: var(--faint); font-size: 9.5px; font-weight: 550; letter-spacing: .02em; }
.metric-value { display: flex; align-items: baseline; gap: 1px; margin-top: 1px; line-height: 1.1; }
.fee-value { color: var(--ink); font-size: 29px; font-weight: 800; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.fee-currency { align-self: flex-start; margin-top: 5px; margin-right: 1px; color: var(--ink); font-size: 12px; font-weight: 700; }
.fee-unit { margin-left: 2px; color: var(--faint); font-size: 9.5px; letter-spacing: 0; }
.original-fee { margin-left: 6px; color: var(--faint); font-size: 9.5px; text-decoration: line-through; font-weight: 500; }
.save-badge { margin-left: 4px; padding: 1px 4px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 8.5px; font-weight: 700; vertical-align: middle; }
.monthly-equiv { display: block; margin-top: 4px; color: var(--faint); font-size: 9px; font-weight: 500; white-space: nowrap; }
.detail-monthly { display: block; margin-top: 4px; color: var(--faint); font-size: 9px; font-style: normal; font-weight: 500; }
.data-metric { align-items: flex-end; text-align: right; padding-left: 12px; border-left: 1px dashed var(--line); }
.data-metric .metric-label { align-self: flex-end; }
.data-value { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.data-unit { margin-left: 1px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.card-breakdown { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 10.5px; }
.card-breakdown .sep { color: var(--line-strong); }
.card-breakdown b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.ship-badge {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.ship-badge.allow { color: var(--amber); background: var(--amber-soft); }
.ship-badge.nation { color: var(--green); background: var(--green-soft); }
.ship-badge.blocked { color: var(--muted); background: var(--surface-2); }

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; min-height: 20px; }
.tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}
.tag.more { background: transparent; color: var(--faint); padding-left: 2px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 9px; color: var(--faint); font-size: 10px; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta-item::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.meta-item.ship-ok { color: var(--green); font-weight: 650; }
.meta-item.ship-ok::before { background: var(--green); }
.meta-item.ship-no { color: var(--red); font-weight: 650; }
.meta-item.ship-no::before { background: var(--red); }

.agent-commission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px dashed color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.agent-commission span:last-child { font-weight: 500; opacity: .8; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; }
.card-updated { color: var(--faint); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 650;
  padding: 2px 0;
}
[data-theme="dark"] .card-link { color: #93c5fd; }
.card-link .ic { width: 12px; height: 12px; transition: transform .18s ease; }
.card:hover .card-link .ic { transform: translateX(2px); }

/* ---------- empty ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 36px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  text-align: center;
}
.empty-visual { position: relative; width: 92px; height: 76px; margin-bottom: 16px; }
.empty-visual span { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.empty-visual span:nth-child(1) { inset: 0 8px; }
.empty-visual span:nth-child(2) { inset: 11px 19px; }
.empty-visual span:nth-child(3) { inset: 22px 30px; }
.empty-visual .ic { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); color: var(--faint); }
.empty-visual.heart { display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); width: 64px; height: 64px; }
.empty-visual.heart .ic { position: static; transform: none; width: 26px; height: 26px; color: #e11d48; }
.empty-state h3 { font-size: 16px; font-weight: 700; }
.empty-state p { max-width: 360px; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.empty-state .btn { margin-top: 18px; }

/* ---------- page head / platforms / favorites ---------- */
.view { animation: viewIn .25s ease; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 38px 0 24px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--brand-ink); font-size: 10px; font-weight: 750; letter-spacing: .2em; }
[data-theme="dark"] .eyebrow { color: #7dd3fc; }
.page-head h1 { font-size: 31px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; }
.page-head p { max-width: 620px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card {
  --p: #2563eb;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--p), transparent 82%);
}
.platform-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--p) 8%, transparent);
  pointer-events: none;
}
.platform-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--p) 22%, var(--line)); box-shadow: var(--shadow-md); }
@media (min-width: 801px) {
  .platform-card:only-child { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .platform-card:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
}
.platform-head { display: flex; align-items: center; gap: 13px; }
.platform-logo {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--p);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 25%, transparent);
}
.platform-title h3 { font-size: 16px; font-weight: 750; letter-spacing: -.2px; }
.platform-title p { margin-top: 2px; color: var(--faint); font-size: 11px; }
.platform-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 17px; }
.pstat { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.pstat strong { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.pstat span { display: block; margin-top: 1px; color: var(--faint); font-size: 9.5px; }
.platform-actions { display: flex; gap: 7px; }
.platform-actions .btn { flex: 1; height: 36px; font-size: 11.5px; padding: 0 10px; }
.entry-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9.5px; }
.entry-badge.ok { color: var(--green); }
.entry-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.platform-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--faint); font-size: 10px; }
.platform-foot b { color: var(--muted); font-weight: 600; }
.page-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.page-note .ic { width: 15px; height: 15px; margin-top: 1px; color: var(--faint); flex: none; }

/* ---------- compare bar ---------- */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(780px, calc(100vw - 32px));
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: #0a1224;
  color: #fff;
  box-shadow: 0 20px 50px rgba(5, 12, 30, .3);
  animation: compareIn .25s ease;
}
body.modal-open .compare-bar { display: none !important; }
.compare-bar-items { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: auto; scrollbar-width: none; }
.compare-bar-items::-webkit-scrollbar { display: none; }
.compare-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 190px;
  padding: 5px 7px 5px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #dbe7fb;
  font-size: 10.5px;
  white-space: nowrap;
  flex: none;
}
.compare-item span { overflow: hidden; text-overflow: ellipsis; }
.compare-item button { display: grid; place-items: center; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #93a3bd; flex: none; }
.compare-item button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.compare-item .ic { width: 9px; height: 9px; }
.compare-bar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.compare-clear { border: 0; background: transparent; color: #8a99b1; font-size: 10.5px; }
.compare-clear:hover { color: #fff; }
.compare-bar .btn-primary { height: 34px; padding: 0 13px; font-size: 11.5px; box-shadow: none; }

/* ---------- bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- footer ---------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: start; padding-top: 34px; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { display: block; font-size: 14px; font-weight: 750; letter-spacing: -.2px; }
.footer-brand span:not(.brand-mark) { display: block; margin-top: 2px; color: var(--faint); font-size: 10px; }
.footer-disclaimer { max-width: 460px; color: var(--faint); font-size: 10.5px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--ink); }
.footer-links .footer-admin { color: var(--faint); opacity: .72; }
.footer-links .footer-admin:hover { color: var(--muted); opacity: 1; }
.footer-copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 11, 24, .58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(700px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.985);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: all .15s ease;
}
.modal-close:hover { color: var(--ink); background: var(--surface-2); }
.modal-close .ic { width: 16px; height: 16px; }
.modal-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); flex: none; }
.modal-head h2 { font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.modal-head p { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.modal-body { overflow: auto; padding: 22px 24px; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.modal-foot .spacer { margin-right: auto; }
.modal-form { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: 100%; }

/* detail */
.detail-modal { width: min(760px, 100%); }
.modal.qr-modal { width: min(420px, 100%); }
.qr-panel { position: relative; padding: 28px 24px 20px; text-align: center; }
.qr-eyebrow { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.qr-title { margin-top: 10px; color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.45; }
.qr-sub { margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.qr-image { display: block; width: 216px; height: 216px; margin: 16px auto 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; image-rendering: pixelated; }
.qr-hint { color: var(--faint); font-size: 9.5px; line-height: 1.7; }
.qr-hint a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.qr-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.detail-hero {
  --op: #2563eb;
  position: relative;
  overflow: hidden;
  flex: none;
  padding: 26px 28px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--op) 65%, transparent), transparent 45%),
    linear-gradient(135deg, #0a1224 10%, color-mix(in srgb, var(--op) 36%, #0a1224) 100%);
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.detail-hero > :not(.modal-close) { position: relative; z-index: 1; }
.detail-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 44px; }
.detail-top .platform-badge { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .09); color: #fff; }
.detail-top .featured-badge { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.detail-top .status-badge { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
.detail-hero .modal-close { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #dbe7fb; }
.detail-hero .modal-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.detail-title { margin-top: 13px; font-size: 25px; font-weight: 800; letter-spacing: -.6px; line-height: 1.3; }
.detail-sub { margin-top: 4px; color: #9fb0c9; font-size: 12px; }
.detail-metrics { display: flex; gap: 0; margin-top: 19px; }
.detail-metric { padding-right: 26px; }
.detail-metric + .detail-metric { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .12); }
.detail-metric span { display: block; color: #8394ad; font-size: 10px; }
.detail-metric strong { display: block; margin-top: 2px; color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.detail-metric strong small { margin-left: 2px; color: #9fb0c9; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.detail-save { display: inline-block; margin-top: 4px; color: #6ee7b7; font-size: 9px; font-style: normal; font-weight: 650; }
.term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.term-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.term-card > span { display: block; color: var(--faint); font-size: 9.5px; }
.term-card strong { display: block; margin-top: 5px; color: var(--ink); font-size: 16px; line-height: 1.35; }
.term-card p { margin-top: 6px; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.term-contract { border-color: #fde3bd; background: #fffaf0; }
.term-contract strong { color: #b45309; }
.term-promo { border-color: #dbeafe; background: #f4f8ff; }
.term-promo strong { color: #1d4ed8; }
.term-note { margin-top: 8px; color: var(--faint); font-size: 9px; line-height: 1.65; }
.page-meta { margin-top: 18px; color: var(--faint); font-size: 10px; }
.guide-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.guide-index-card { display: flex; flex-direction: column; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: .16s ease; }
.guide-index-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.guide-index-card .guide-index-icon { font-size: 18px; }
.guide-index-card h3 { font-size: 14px; font-weight: 750; }
.guide-index-card p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.guide-index-card span { color: var(--brand-ink); font-size: 10px; font-weight: 650; }
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; color: var(--faint); font-size: 9.5px; }
.article-meta span { padding: 2px 7px; border-radius: 999px; background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.wiki-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 10.5px; line-height: 1.65; }
.wiki-table th, .wiki-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wiki-table th { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.wiki-table td { color: var(--muted); }
.wiki-table tr:last-child td { border-bottom: 0; }
.wiki-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wiki-related a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand-ink); background: var(--surface); font-size: 10px; text-decoration: none; }
.wiki-related a:hover { border-color: var(--brand); }
@media (max-width: 760px) {
  .guide-index-grid { grid-template-columns: 1fr; }
}
.disclaimer a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 售后群 */
.after-sales-panel { padding: 24px; }
.after-sales-intro { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.after-sales-qr-wrap { text-align: center; }
.after-sales-qr { width: 100%; max-width: 220px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: block; margin: 0 auto; }
.after-sales-expiry { margin-top: 8px; color: var(--faint); font-size: 9px; line-height: 1.6; }
.after-sales-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 9.5px; font-weight: 700; }
.after-sales-copy h2 { margin-top: 12px; font-size: 18px; font-weight: 750; letter-spacing: -.3px; }
.after-sales-steps { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.after-sales-steps li + li { margin-top: 6px; }
.after-sales-steps strong { color: var(--ink); }
.after-sales-note { margin-top: 12px; color: var(--faint); font-size: 9.5px; line-height: 1.75; }
.after-sales-note a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.after-sales-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.after-sales-service { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.after-sales-service strong { color: var(--ink); font-size: 11px; }
.after-sales-service span { color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.after-sales-boundary { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--brand); background: var(--brand-soft); color: var(--muted); font-size: 10px; line-height: 1.75; border-radius: 0 8px 8px 0; }
@media (max-width: 760px) {
  .after-sales-panel { padding: 18px; }
  .after-sales-intro { grid-template-columns: 1fr; gap: 18px; }
  .after-sales-qr { max-width: 200px; }
  .after-sales-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .after-sales-services { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .term-grid { grid-template-columns: 1fr; }
}
.detail-body { padding: 22px 26px 8px; overflow: auto; flex: 1; min-height: 0; }
.ship-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.ship-banner .ic { width: 14px; height: 14px; flex: none; }
.ship-banner.ok { background: var(--green-soft); color: var(--green); }
.ship-banner.no { background: var(--red-soft); color: var(--red); }
.detail-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-section:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.section-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.data-bar { display: flex; height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.data-bar-general { background: linear-gradient(90deg, var(--brand), #38bdf8); }
.data-bar-dir { background: color-mix(in srgb, var(--brand) 22%, var(--surface-3)); }
.data-legend { display: flex; align-items: center; gap: 16px; margin-top: 9px; color: var(--muted); font-size: 10.5px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.spec-item { padding: 9px 11px; border-radius: 9px; background: var(--surface-2); }
.spec-label { color: var(--faint); font-size: 9.5px; }
.spec-value { margin-top: 1px; color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 1.55; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; list-style: none; }
.highlight { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.highlight-check { width: 15px; height: 15px; flex: none; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.highlight-check .ic { width: 9px; height: 9px; stroke-width: 2.4; }
.agent-panel {
  padding: 14px 15px;
  border: 1px dashed color-mix(in srgb, var(--amber) 32%, transparent);
  border-radius: 12px;
  background: var(--amber-soft);
}
.agent-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--amber); font-size: 11px; font-weight: 700; }
.agent-panel-head span:last-child { color: var(--faint); font-weight: 500; font-size: 9.5px; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.agent-item { padding: 7px 9px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.agent-item span { display: block; color: var(--faint); font-size: 9px; }
.agent-item strong { display: block; margin-top: 1px; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-actions .btn { height: 30px; padding: 0 9px; font-size: 10px; border-radius: 7px; }
.disclaimer { display: flex; gap: 6px; color: var(--faint); font-size: 9.5px; line-height: 1.7; }
.disclaimer .ic { width: 12px; height: 12px; margin-top: 1px; flex: none; }
.detail-link-note { margin-top: 8px; padding: 7px 9px; border-radius: 7px; background: var(--amber-soft); color: var(--amber); font-size: 10px; line-height: 1.6; }
.detail-foot { display: flex; align-items: center; gap: 7px; flex: none; padding: 13px 22px; border-top: 1px solid var(--line); }
.detail-foot .spacer { margin-right: auto; }
.fav-detail { height: 36px; padding: 0 12px; font-size: 11.5px; }
.fav-detail.is-fav { color: #e11d48; border-color: color-mix(in srgb, #e11d48 30%, var(--line)); background: color-mix(in srgb, #e11d48 6%, var(--surface)); }
.fav-detail.is-fav .ic { fill: currentColor; }

/* compare table */
.compare-modal { width: min(980px, 100%); }
.compare-scroll { overflow: auto; flex: 1; min-height: 0; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.compare-table tbody th { width: 100px; color: var(--faint); font-size: 10.5px; font-weight: 550; background: var(--surface-2); white-space: nowrap; }
.compare-table td { color: var(--ink-2); font-weight: 550; }
.compare-table td.best { position: relative; background: color-mix(in srgb, var(--green) 7%, transparent); color: var(--green); font-weight: 700; }
[data-theme="dark"] .compare-table td.best { color: #6ee7b7; }
.best-tag { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 700; vertical-align: 1px; }
.compare-card-head { min-width: 150px; }
.compare-platform { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 9.5px; font-weight: 500; }
.compare-name { margin-top: 3px; color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.compare-remove { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; padding: 0; border: 0; background: transparent; color: var(--faint); font-size: 9.5px; }
.compare-remove:hover { color: var(--red); }
.compare-remove .ic { width: 10px; height: 10px; }
.compare-actions { display: flex; flex-direction: column; gap: 5px; }
.compare-actions .btn { height: 30px; padding: 0 8px; font-size: 10px; }
.compare-empty { padding: 36px; text-align: center; color: var(--muted); font-size: 12px; }

/* confirm */
.confirm-modal { width: min(420px, 100%); }
.confirm-body { padding: 26px 26px 8px; }
.confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.confirm-icon .ic { width: 20px; height: 20px; }
.confirm-body h3 { font-size: 17px; font-weight: 750; }
.confirm-body p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* ---------- forms ---------- */
.form-modal { width: min(820px, 100%); }
.form-body { padding: 20px 24px 24px; overflow: auto; flex: 1; min-height: 0; }
.form-section { padding: 4px 0 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--ink); font-size: 12px; font-weight: 750; }
.form-section-title .ic { width: 14px; height: 14px; color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { height: auto; min-height: 76px; padding: 9px 10px; resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field-hint { color: var(--faint); font-size: 9.5px; line-height: 1.5; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; padding-top: 20px; }
.field.inline label { font-size: 11.5px; }
.check-field { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--ink-2); font-size: 11.5px; cursor: pointer; }
.check-field.field { flex-direction: row; align-items: center; gap: 8px; }
.check-field input { width: 16px; height: 16px; accent-color: var(--brand); }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type="color"] { width: 44px; height: 38px; padding: 3px; cursor: pointer; }
.color-row input[type="text"] { flex: 1; }
.form-error { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 11px; line-height: 1.6; }
.form-error .ic { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.form-tip { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: var(--surface-2); color: var(--faint); font-size: 9.5px; line-height: 1.65; }
.form-tip .ic { width: 12px; height: 12px; margin-top: 1px; flex: none; }

/* ---------- admin ---------- */
.admin-head { align-items: flex-start; }
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--amber) 28%, var(--line));
  border-radius: 11px;
  background: var(--amber-soft);
}
.draft-banner-text { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--amber); font-size: 10.5px; }
.draft-banner-text strong { font-weight: 700; }
.draft-banner-text span:last-child { color: var(--muted); }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: livePulse 2.4s infinite; flex: none; }
.draft-banner-actions { display: flex; gap: 6px; }
.draft-banner-actions .btn { height: 30px; padding: 0 10px; font-size: 10.5px; border-radius: 7px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.admin-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-stat strong { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.admin-stat span { display: block; margin-top: 1px; color: var(--faint); font-size: 10px; }
.admin-stat.amber strong { color: var(--amber); }
.admin-stat.green strong { color: var(--green); }

.admin-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-tab {
  position: relative;
  padding: 9px 14px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color .15s ease;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); }
.admin-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }

.admin-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.admin-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--faint); pointer-events: none; }
.admin-search input { width: 100%; height: 36px; padding: 0 10px 0 31px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 11.5px; outline: 0; }
.admin-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.admin-select { height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 11.5px; outline: 0; cursor: pointer; }
.admin-count { margin-left: auto; color: var(--faint); font-size: 10.5px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 11.5px; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--faint); font-size: 9.5px; font-weight: 650; text-align: left; white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.cell-card { min-width: 210px; }
.cell-name { color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.4; }
.cell-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; color: var(--faint); font-size: 9.5px; }
.cell-sub .tag { font-size: 8.5px; padding: 1px 5px; }
.platform-cell { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.platform-mark { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: var(--p); color: #fff; font-size: 7px; font-weight: 800; }
.cell-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-num b { font-weight: 700; }
.cell-muted { color: var(--faint); font-size: 9.5px; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 9.5px; font-weight: 650; white-space: nowrap; }
.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-pill.paused { background: var(--amber-soft); color: var(--amber); }
.status-pill.soldout { background: var(--red-soft); color: var(--red); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.icon-action { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--faint); }
.icon-action:hover { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.icon-action.danger:hover { border-color: color-mix(in srgb, var(--red) 20%, var(--line)); background: var(--red-soft); color: var(--red); }
.icon-action .ic { width: 14px; height: 14px; }
.admin-empty { padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: 13px; text-align: center; color: var(--muted); font-size: 12px; }
.admin-empty strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.panel h3 .ic { width: 15px; height: 15px; color: var(--brand); }
.panel p { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.75; }
.panel p code, .panel .steps code { padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); font-family: var(--mono); font-size: 9.5px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.panel-actions .btn { height: 32px; padding: 0 10px; font-size: 10.5px; border-radius: 8px; }
.panel.danger { border-color: color-mix(in srgb, var(--red) 20%, var(--line)); }
.panel.danger h3 { color: var(--red); }
.panel.danger h3 .ic { color: var(--red); }
.steps { margin: 10px 0 0 16px; color: var(--muted); font-size: 10.5px; line-height: 1.9; }
.steps li::marker { color: var(--brand); font-weight: 700; }
.code-block {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  overflow: auto;
  border-radius: 8px;
  background: #0b1220;
  color: #c7d2e5;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre;
}

/* ---------- toasts ---------- */
.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.5;
  animation: toastIn .22s ease;
}
.toast .ic { width: 15px; height: 15px; flex: none; }
.toast.success .ic { color: var(--green); }
.toast.error .ic { color: var(--red); }
.toast.info .ic { color: var(--brand); }
.toast.leaving { animation: toastOut .2s ease forwards; }
.noscript { padding: 20px; text-align: center; background: var(--amber-soft); color: var(--amber); }

/* ---------- guide ---------- */
.guide-main { padding-top: 8px; padding-bottom: 20px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 18px; }
.guide-step {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.guide-step::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -50px;
  top: -60px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.guide-num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
[data-theme="dark"] .guide-num { color: #93c5fd; }
.guide-step h2 { position: relative; z-index: 1; font-size: 16px; font-weight: 750; letter-spacing: -.2px; }
.guide-step p { position: relative; z-index: 1; margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-list { margin-top: 10px; padding-left: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.9; }
.guide-list li { margin-bottom: 6px; }
.guide-list li::marker { color: var(--brand); }
.guide-list strong { color: var(--ink-2); font-weight: 650; }
.guide-faq { margin-top: 22px; }
.guide-faq h2 { margin-bottom: 10px; font-size: 19px; font-weight: 750; letter-spacing: -.4px; }
.guide-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 7px; overflow: hidden; }
.guide-faq summary { padding: 13px 16px; cursor: pointer; color: var(--ink-2); font-size: 12.5px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: "+"; color: var(--faint); font-size: 16px; font-weight: 400; line-height: 1; }
.guide-faq details[open] summary::after { content: "−"; }
.guide-faq details p { padding: 0 16px 14px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a1224, #12304d);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.guide-cta h2 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; }
.guide-cta p { margin-top: 4px; color: #9fb0c9; font-size: 11.5px; }
.guide-cta .btn { flex: none; }

@media (max-width: 800px) {
  .guide-steps, .guide-grid { grid-template-columns: 1fr; }
  .guide-main { padding-top: 0; }
  .guide-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .guide-cta .btn { width: 100%; }
}
.guide-page .site-footer { padding-bottom: 34px; }
@media (max-width: 980px) {
  .guide-page .site-footer { padding-bottom: 28px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); padding: 46px 42px 34px; }
  .hero-stats { padding: 18px 42px 22px; }
  .radar { width: 300px; height: 300px; }
  .radar-node { font-size: 9px; }
}

@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .filter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 92;
    width: 100%;
    max-height: 88vh;
    padding: 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 -20px 60px rgba(4, 12, 32, .25);
  }
  .filters-open .filter-panel { transform: translateY(0); }
  .filter-scroll { padding: 2px 20px 18px; overflow: auto; }
  .filter-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
  .filter-mobile-head strong { display: block; font-size: 15px; font-weight: 750; }
  .filter-mobile-head span { display: block; margin-top: 1px; color: var(--faint); font-size: 10.5px; }
  .filter-mobile-head .icon-btn { border: 0; background: var(--surface-2); }
  .filter-mobile-foot { display: flex; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .filter-mobile-foot .btn { flex: 1; }
  .filter-mobile-foot .btn-ghost { flex: 0 0 88px; }
  .filter-reset { display: none; }
  .filter-open { display: inline-flex; }
  .filter-backdrop { position: fixed; inset: 0; z-index: 91; background: rgba(5, 11, 24, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
  .filter-backdrop.open { opacity: 1; }
  .hero-inner { grid-template-columns: 1fr; padding: 42px 38px 30px; }
  .hero-visual { display: none; }
  .hero-stats { padding: 18px 38px 22px; }
  .hero-stat { padding-right: 26px; }
  .hero-stat + .hero-stat { padding-left: 26px; }
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 800px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .header-add { display: none; }
  .header-inner { gap: 10px; }
  .announce { font-size: 10.5px; }
  .announce-inner { gap: 6px; min-height: 34px; }
  .announce a { display: none; }
  .hero { margin-top: 14px; border-radius: 24px; }
  .hero-inner { padding: 24px 20px 20px; }
  .hero h1 { margin: 14px 0 10px; font-size: clamp(32px, 8.8vw, 42px); }
  .hero-desc { font-size: 12px; line-height: 1.7; }
  .desc-long { display: none; }
  .desc-short { display: inline; }
  .hero-search { margin-top: 17px; padding: 4px 4px 4px 12px; border-radius: 13px; }
  .hero-search input { height: 40px; font-size: 12px; padding: 0 6px; }
  .hero-search .btn { height: 40px; padding: 0 14px; font-size: 12px; border-radius: 9px; }
  .quick-tags { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .quick-tags::-webkit-scrollbar { display: none; }
  .quick-label { display: none; }
  .quick-tags button { flex: none; font-size: 10px; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 4px 20px 9px; }
  .hero-stat { padding: 9px 0 !important; border-left: 0 !important; }
  .hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, .08) !important; padding-left: 10px !important; }
  .hero-stat strong { font-size: 18px; }
  .hero-stat span { font-size: 8.5px; white-space: nowrap; }
  .hero-updated { grid-column: 1 / -1; margin: 0; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 9px; justify-content: flex-start; }
  .region-bar { margin-top: 12px; padding: 8px 10px; gap: 8px; }
  .region-icon { width: 30px; height: 30px; border-radius: 9px; }
  .region-intro { flex: 1; gap: 8px; }
  .region-intro strong { font-size: 11.5px; }
  .region-intro > div > span { display: none; }
  .region-select-wrap select { height: 34px; min-width: 112px; padding-left: 10px; font-size: 11px; }
  .region-age { height: 34px; padding: 0 7px; gap: 3px; font-size: 9.5px; }
  .region-age input { width: 30px; font-size: 11px; }
  .region-result { display: none; }
  .region-bar + .catalog { margin-top: 14px; }
  .catalog { margin-top: 20px; gap: 18px; }
  .catalog-toolbar { margin-bottom: 12px; }
  .catalog-title { font-size: 15px; }
  .sort-control span { display: none; }
  .sort-control select { min-width: 104px; height: 34px; font-size: 11px; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -8px 24px rgba(8, 16, 36, .04);
  }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 9.5px; font-weight: 550; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav .ic { width: 19px; height: 19px; }
  .tab-dot { position: absolute; top: 12px; left: calc(50% + 6px); width: 5px; height: 5px; border-radius: 50%; background: #e11d48; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 13px 13px 12px; border-radius: 15px; }
  .card-head { gap: 8px; }
  .op-logo { width: 35px; height: 35px; border-radius: 10px; font-size: 14px; }
  .card-title h3 { font-size: 13px; }
  .card-title p { font-size: 9.5px; }
  .fee-value { font-size: 25px; }
  .data-value { font-size: 22px; }
  .original-fee { display: none; }
  .card-meta { font-size: 9.5px; }
  .card-tags .tag:nth-child(n+4) { display: none; }
  .compare-btn span { display: none; }
  .compare-btn { width: 24px; justify-content: center; padding: 0; }
  .compare-bar { bottom: calc(70px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 8px; gap: 8px; }
  .compare-item { max-width: 120px; font-size: 9.5px; }
  .compare-bar .btn-primary { padding: 0 10px; }
  .toast-root { right: 12px; left: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); align-items: center; }
  .toast { width: 100%; justify-content: center; }
  .empty-state { min-height: 220px; padding: 26px 18px; }
  .empty-visual { display: none; }
  .site-footer { margin-top: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .footer-disclaimer { max-width: none; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { padding-top: 14px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; margin: 24px 0 18px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 12px; }
  .platform-grid { grid-template-columns: 1fr; gap: 11px; }
  .platform-card { padding: 18px; }
  .platform-stats { margin: 16px 0 14px; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-stat { padding: 12px 13px; }
  .admin-stat strong { font-size: 20px; }
  .admin-tabs { overflow-x: auto; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: none; padding: 9px 11px 10px; font-size: 11.5px; }
  .data-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 93vh; border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(100%); }
  .modal-backdrop.open .modal { transform: translateY(0); }
  .modal-close { top: 12px; right: 12px; }
  .detail-hero { padding: 22px 20px 18px; }
  .detail-title { font-size: 21px; }
  .detail-metric { padding-right: 18px; }
  .detail-metric + .detail-metric { padding-left: 18px; }
  .detail-metric strong { font-size: 21px; }
  .detail-body { padding: 18px 20px 6px; }
  .spec-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .detail-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .detail-foot .btn { padding: 0 11px; font-size: 11px; }
  .form-body { padding: 16px 18px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .compare-table { min-width: 600px; }
  .admin-search { max-width: none; flex: 1 1 160px; }
  .admin-count { display: none; }
  .draft-banner { align-items: flex-start; }
  .draft-banner-actions { width: 100%; }
  .draft-banner-actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; gap: 11px; }
  .card { padding: 14px 14px 13px; }
  .card-title h3 { font-size: 14px; }
  .fee-value { font-size: 29px; }
  .data-value { font-size: 25px; }
  .card-tags .tag:nth-child(n+4) { display: inline-block; }
  .compare-btn span { display: inline; }
  .compare-btn { width: auto; padding: 0 6px; }
  .brand-sub { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 18px; }
  .agent-toggle { padding: 0 9px; gap: 5px; font-size: 10.5px; }
  .theme-btn { width: 36px; height: 36px; }
  .hero h1 { font-size: 33px; }
  .hero-stat strong { font-size: 18px; }
  .hero-stat span { font-size: 9.5px; }
  .error-state { margin: 30px 16px; padding: 24px 18px; }
  .error-actions { flex-direction: column; }
  .detail-metrics { flex-wrap: wrap; gap: 12px 0; }
  .detail-metric { flex: 1; padding-right: 12px; }
  .detail-metric + .detail-metric { padding-left: 12px; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .compare-actions .btn { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nodeFloat { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes compareIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(4px) scale(.98); } }

/* 紧凑商品卡：降低卡片高度，移动端一屏尽量看到 3-4 个产品 */
.card { padding: 13px 13px 11px; border-radius: 14px; }
.card-head { margin-top: 9px; gap: 8px; }
.op-logo { width: 30px; height: 30px; font-size: 11px; border-radius: 9px; }
.card-title h3 { font-size: 13.5px; line-height: 1.35; }
.card-title p { font-size: 9.5px; }
.card-metrics { margin-top: 7px; padding: 7px 0 8px; }
.fee-value { font-size: 24px; }
.data-value { font-size: 20px; }
.card-breakdown { margin-top: 6px; font-size: 9px; }
.card-tags { margin-top: 6px; min-height: 0; }
.card-meta { display: none; }
.card-foot { margin-top: auto; padding-top: 7px; font-size: 8.5px; }
@media (max-width: 640px) {
  .card { padding: 11px 11px 9px; border-radius: 13px; }
  .card-head { margin-top: 6px; gap: 7px; }
  .op-logo { width: 27px; height: 27px; font-size: 10px; }
  .card-title h3 { display: -webkit-box; font-size: 12.5px; line-height: 1.32; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .card-title p { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
  .card-metrics { margin-top: 5px; padding: 5px 0; }
  .fee-value { font-size: 21px; }
  .data-value { font-size: 19px; }
  .card-breakdown { margin-top: 4px; font-size: 8.5px; }
  .card-tags { display: none; }
  .card-foot { padding-top: 5px; font-size: 8px; }
  .card-actions .compare-btn span { display: none; }
}

/* 移动端压缩首屏，让商品卡更早出现 */
@media (max-width: 640px) {
  .hero-inner { padding: 18px 16px 14px; }
  .hero h1 { margin: 10px 0 8px; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.14; }
  .hero-desc { font-size: 11px; line-height: 1.6; }
  .quick-tags { display: none; }
  .hero-search { margin-top: 12px; }
  .hero-stats { padding: 0 16px 7px; }
  .hero-updated { padding-top: 6px; }
}

/* 首次进入的选品说明 */
.modal.intro-modal { width: min(760px, 100%); }
.intro-head { position: relative; padding: 24px 64px 16px 24px; border-bottom: 1px solid var(--line); flex: none; }
.intro-head h2 { margin-top: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.intro-head p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.intro-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 24px 10px; }
.intro-body section + section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.intro-body h3 { margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.intro-bullets { margin: 0; padding-left: 17px; color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.intro-bullets li + li { margin-top: 4px; }
.intro-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.intro-steps article { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.intro-steps article > span { display: inline-flex; padding: 2px 5px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-ink); font-size: 8px; font-weight: 800; }
.intro-steps strong { display: block; margin-top: 6px; font-size: 11.5px; }
.intro-steps p { margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.intro-after-sales { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: center; }
.intro-after-sales p { color: var(--muted); font-size: 10px; line-height: 1.75; }
.intro-after-sales .intro-qr-note { margin-top: 7px; color: var(--faint); font-size: 9px; }
.intro-after-sales img { width: 100%; max-width: 150px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.intro-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface); flex: none; }
@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .intro-head { padding: 20px 54px 14px 18px; }
  .intro-head h2 { font-size: 19px; }
  .intro-body { padding: 14px 18px 8px; }
  .intro-steps { grid-template-columns: 1fr; }
  .intro-after-sales { grid-template-columns: 1fr 118px; gap: 12px; }
  .intro-after-sales img { max-width: 118px; }
  .intro-foot { padding: 10px 18px; }
}

.inline-link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--brand-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
