:root {
  --nx-bg: #050709;
  --nx-panel: rgba(12, 16, 19, .74);
  --nx-panel-solid: #0b0f12;
  --nx-line: rgba(255, 255, 255, .1);
  --nx-text: #f5f6f7;
  --nx-muted: rgba(255, 255, 255, .52);
  --nx-cyan: #22d3ee;
  --nx-violet: #a78bfa;
  --nx-green: #34d399;
  --nx-gold: #fbbf24;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--nx-bg); color: var(--nx-text); }
body { font-family: "Public Sans", Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(34, 211, 238, .38); color: #fff; }
.nx-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: 62px; padding: 0 clamp(18px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.055); background: linear-gradient(180deg, rgba(2,4,6,.80), rgba(2,4,6,.18) 76%, transparent); backdrop-filter: blur(14px) saturate(130%); }
.nx-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 148px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.nx-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; background: radial-gradient(circle at 34% 25%, rgba(255,255,255,.48), transparent 32%), linear-gradient(145deg,#8b6cff,#6940c8 58%,#42237c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 6px 20px rgba(108,67,215,.25); }
.nx-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; }
.nx-nav a { padding: 8px 12px; border-radius: 8px; color: rgba(255,255,255,.64); font-size: 13px; font-weight: 540; transition: color .2s, background .2s; }
.nx-nav a:hover, .nx-nav a.is-active { color: #fff; background: rgba(255,255,255,.07); }
.nx-tools { display: flex; align-items: center; gap: 9px; }
.nx-tool, .nx-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); transition: .2s; }
.nx-tool:hover { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.09); }
.nx-console { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 999px; background: #f5f5f3; color: #0a0b0c; font-size: 12px; font-weight: 700; }
.nx-avatar { color: #fff; background: linear-gradient(145deg,#8d6cff,#6c43cd); font-size: 11px; font-weight: 750; }
.nx-mobile-console { display: none; }
.page-hero { position: relative; min-height: 440px; height: 54svh; max-height: 580px; display: flex; align-items: flex-end; overflow: hidden; background: #050709; isolation: isolate; }
#hero-ripple-canvas { position: absolute; inset: 0; background: url('/img/hero-ripple-texture.webp') center/cover no-repeat; z-index: 0; }
#hero-ripple-canvas canvas { display: block; width: 100%; height: 100%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.50),rgba(0,0,0,.08) 38%,rgba(5,7,9,.94) 100%), linear-gradient(90deg,rgba(0,0,0,.52),transparent 68%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center,#000,transparent 78%); }
.page-hero-inner { position: relative; z-index: 3; width: min(1240px, 100%); margin: 0 auto; padding: 112px 24px 44px; }
.page-kicker { margin: 0 0 16px; color: rgba(255,255,255,.56); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.page-title { margin: 0; max-width: 900px; font-size: clamp(42px, 6vw, 76px); line-height: 1.01; font-weight: 640; letter-spacing: -.055em; }
.page-title span { color: rgba(255,255,255,.46); }
.page-lead { max-width: 720px; margin: 20px 0 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.85; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stat { min-width: 132px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(8,11,13,.32); backdrop-filter: blur(12px); }
.hero-stat strong { display: block; font-size: 24px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-stat span { display: block; margin-top: 7px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.page-main { width: min(1240px, 100%); margin: 0 auto; padding: 42px 24px 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.section-kicker { margin: 0 0 10px; color: rgba(255,255,255,.43); font-size: 10px; font-weight: 720; letter-spacing: .18em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; font-weight: 630; letter-spacing: -.04em; }
.section-copy { max-width: 460px; margin: 0; color: var(--nx-muted); font-size: 13px; line-height: 1.75; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.filter-bar { position: sticky; top: 72px; z-index: 30; margin: 0 0 22px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(8,11,13,.88); box-shadow: 0 18px 50px rgba(0,0,0,.3); backdrop-filter: blur(20px) saturate(130%); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.filter-row + .filter-row { margin-top: 10px; }
.filter-label { margin-right: 4px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.filter-chip { min-height: 30px; padding: 0 11px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(255,255,255,.025); color: rgba(255,255,255,.58); cursor: pointer; font-size: 11px; transition: .18s; }
.filter-chip:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.filter-chip.is-active { color: #071013; border-color: transparent; background: linear-gradient(120deg,#dffbff,#9be8f3); font-weight: 700; }
.search-wrap { position: relative; flex: 1 1 260px; }
.search-wrap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.34); font-size: 13px; }
.search-input { width: 100%; height: 38px; padding: 0 14px 0 33px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: 0; color: #fff; background: rgba(255,255,255,.035); font-size: 12px; }
.search-input:focus { border-color: rgba(34,211,238,.42); box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.sort-select { height: 38px; padding: 0 32px 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: #0a0e11; font-size: 12px; }
.result-count { margin-left: auto; color: rgba(255,255,255,.4); font-size: 11px; font-variant-numeric: tabular-nums; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; }
.model-card { position: relative; min-height: 226px; padding: 20px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(145deg,rgba(16,21,25,.92),rgba(8,11,14,.88)); overflow: hidden; cursor: pointer; transition: transform .24s, border-color .24s, background .24s; }
.model-card::after { content: ""; position: absolute; right: -55px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.10), transparent 68%); pointer-events: none; }
.model-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.3); background: linear-gradient(145deg,rgba(20,27,31,.96),rgba(9,13,16,.93)); }
.model-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vendor-badge { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.56); font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.vendor-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vendor,#8b9cff); box-shadow: 0 0 12px var(--vendor,#8b9cff); }
.model-index { color: rgba(255,255,255,.25); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }
.model-name { position: relative; z-index: 1; margin: 18px 0 0; font-size: 22px; line-height: 1.22; font-weight: 630; letter-spacing: -.035em; word-break: break-word; }
.tag-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag { padding: 3px 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; color: rgba(255,255,255,.42); background: rgba(255,255,255,.025); font-size: 9px; }
.model-prices { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; padding-top: 20px; }
.price-box { padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.025); }
.price-box span { display: block; color: rgba(255,255,255,.38); font-size: 9px; }
.price-box strong { display: block; margin-top: 5px; color: #e9faff; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.price-box small { margin-left: 2px; color: rgba(255,255,255,.35); font-size: 8px; font-weight: 500; }
.endpoint-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.endpoint { color: rgba(34,211,238,.68); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 8px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--nx-muted); border: 1px dashed rgba(255,255,255,.13); border-radius: 18px; }
.rank-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 20px; align-items: start; }
.rank-board, .price-leaders, .about-card, .about-panel { border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg,rgba(15,20,23,.92),rgba(7,10,12,.88)); overflow: hidden; }
.rank-board-head, .leaders-head { padding: 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rank-board-head h2, .leaders-head h2 { margin: 0; font-size: 22px; font-weight: 630; letter-spacing: -.03em; }
.rank-board-head p, .leaders-head p { margin: 7px 0 0; color: var(--nx-muted); font-size: 12px; }
.rank-list { padding: 10px; }
.rank-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 110px 72px; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; transition: background .2s; }
.rank-row:hover { background: rgba(255,255,255,.035); }
.rank-row + .rank-row { border-top: 1px solid rgba(255,255,255,.055); }
.rank-no { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 17px; font-weight: 700; color: rgba(255,255,255,.35); }
.rank-row:nth-child(1) .rank-no { color: var(--nx-gold); }
.rank-row:nth-child(2) .rank-no { color: #d7dce0; }
.rank-row:nth-child(3) .rank-no { color: #d39464; }
.rank-name { min-width: 0; }
.rank-name strong { display: block; font-size: 14px; font-weight: 620; }
.rank-name span { display: block; margin-top: 4px; color: rgba(255,255,255,.38); font-size: 10px; }
.rank-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.075); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,var(--nx-cyan),var(--nx-violet)); transition: width 1s cubic-bezier(.16,1,.3,1); }
.rank-count { text-align: right; color: rgba(255,255,255,.64); font-size: 12px; font-variant-numeric: tabular-nums; }
.price-leader { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.055); }
.price-leader:last-child { border-bottom: 0; }
.price-leader-name { min-width: 0; }
.price-leader-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.price-leader-name span { display: block; margin-top: 4px; color: rgba(255,255,255,.38); font-size: 9px; }
.price-leader-value { flex: none; color: #a8f5d0; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.about-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.about-card { padding: 24px; min-height: 210px; }
.about-card .about-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(34,211,238,.24); color: #68e9f7; background: rgba(34,211,238,.06); font-size: 17px; }
.about-card h3 { margin: 32px 0 0; font-size: 20px; font-weight: 620; letter-spacing: -.03em; }
.about-card p { margin: 10px 0 0; color: var(--nx-muted); font-size: 12px; line-height: 1.8; }
.about-panel { margin-top: 16px; padding: 30px; }
.about-panel h3 { margin: 0; font-size: 24px; font-weight: 620; }
.about-panel p { max-width: 900px; margin: 14px 0 0; color: var(--nx-muted); font-size: 13px; line-height: 1.9; }
.about-lines { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.about-line { padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.022); }
.about-line span { color: rgba(255,255,255,.36); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.about-line strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 620; }
.page-footer { width: min(1240px,100%); margin: 0 auto; padding: 22px 24px 38px; display: flex; justify-content: space-between; gap: 18px; color: rgba(255,255,255,.34); font-size: 10px; border-top: 1px solid rgba(255,255,255,.07); }
.page-footer a:hover { color: #fff; }
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.modal.is-open { display: flex; }
.modal-panel { width: min(620px,100%); max-height: min(720px,90vh); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: #0b0f12; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h3 { margin: 0; font-size: 24px; font-weight: 640; letter-spacing: -.035em; }
.modal-head p { margin: 8px 0 0; color: var(--nx-muted); font-size: 12px; }
.modal-close { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }
.modal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.modal-item { padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.025); }
.modal-item span { display: block; color: rgba(255,255,255,.36); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.modal-item strong { display: block; margin-top: 6px; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  .nx-nav { display: none; }
  .nx-tool { display: none; }
  .nx-mobile-console { display: inline-flex; }
  .page-hero { min-height: 400px; height: 58svh; }
  .page-main { padding-inline: 18px; }
  .rank-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-lines { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .nx-header { height: 58px; padding-inline: 15px; }
  .nx-avatar { display: none; }
  .page-hero-inner { padding: 96px 18px 30px; }
  .page-title { font-size: clamp(40px,13vw,58px); }
  .page-lead { font-size: 12px; }
  .hero-stat { min-width: 108px; padding: 10px 12px; }
  .hero-stat strong { font-size: 21px; }
  .section-head { display: block; }
  .section-copy { margin-top: 12px; }
  .filter-bar { top: 64px; padding: 11px; }
  .result-count { width: 100%; margin-left: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 32px minmax(0,1fr) 72px; }
  .rank-bar { display: none; }
  .page-footer { flex-direction: column; padding-inline: 18px; }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
