/* ==========================================================================
   PassWall2 — site design system
   Dark control-room visual language, cyan/mint signal accents, editorial cream
   insert for the curated ranking column.
   ========================================================================== */

:root {
  --bg: #060a12;
  --bg-soft: #0a111d;
  --panel: #0d1625;
  --panel-2: #111c2e;
  --panel-3: #16233a;
  --ink: #070d17;
  --line: rgba(148, 177, 214, 0.14);
  --line-strong: rgba(148, 177, 214, 0.26);
  --text: #e9f0fa;
  --text-soft: #c3d0e2;
  --muted: #93a6c0;
  --muted-2: #6d809b;
  --brand: #3cb6ff;
  --brand-2: #0a7fe0;
  --mint: #45e0c0;
  --amber: #ffc46b;
  --danger: #ff8080;
  --cream: #f3ecdf;
  --cream-2: #e9dfcd;
  --cream-ink: #17202c;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --max: 1180px;
  --header-h: 72px;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(60, 182, 255, 0.13), transparent 62%),
    radial-gradient(900px 520px at -10% 18%, rgba(69, 224, 192, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--mint);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(69, 224, 192, 0.32);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: #04120f;
  font-weight: 700;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

.section {
  padding-block: 88px;
}

.section-tight {
  padding-block: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head .head-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-title em {
  font-style: normal;
  color: var(--brand);
}

.section-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.grad-text {
  background: linear-gradient(100deg, #8fe6ff 0%, #45e0c0 52%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.link-arrow svg {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}

.btn svg {
  flex: none;
}

.btn-primary {
  --btn-bg: linear-gradient(112deg, #62e6c9 0%, #52c9ff 100%);
  --btn-fg: #04141a;
  --btn-bd: transparent;
  box-shadow: 0 12px 30px -14px rgba(82, 201, 255, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -14px rgba(82, 201, 255, 0.9);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-bd: var(--line-strong);
}

.btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-bd: rgba(148, 177, 214, 0.45);
}

.btn-dark {
  --btn-bg: #101a2a;
  --btn-fg: #f4f7fb;
  --btn-bd: transparent;
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Tags / chips ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-mint {
  border-color: rgba(69, 224, 192, 0.32);
  background: rgba(69, 224, 192, 0.09);
  color: #8cf0dc;
}

.tag-amber {
  border-color: rgba(255, 196, 107, 0.32);
  background: rgba(255, 196, 107, 0.09);
  color: #ffd29b;
}

.tag-blue {
  border-color: rgba(60, 182, 255, 0.32);
  background: rgba(60, 182, 255, 0.09);
  color: #9adcff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Top utility bar ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  font-size: 12px;
  color: var(--muted);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 36px;
}

.topbar-status,
.topbar-version {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(69, 224, 192, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 224, 192, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(69, 224, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 224, 192, 0); }
}

.topbar-version {
  font-family: var(--font-mono);
  color: var(--muted-2);
}

.topbar-version b {
  color: var(--text-soft);
  font-weight: 500;
}

.topbar-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
}

.topbar-link:hover {
  color: #ffe0ae;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: rgba(6, 10, 18, 0.7);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 10, 18, 0.92);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 22px -8px rgba(60, 182, 255, 0.7);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--brand);
}

.brand-sub {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--brand));
}

.nav .nav-rank {
  color: var(--amber);
}

.nav .nav-rank::before {
  content: "🔥";
  margin-right: 5px;
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-actions .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
}

.header-link:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 76px 58px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 177, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 177, 214, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 72% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 72% at 50% 30%, #000 20%, transparent 100%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.hero h1 {
  margin-top: 6px;
  font-size: clamp(38px, 4.9vw, 61px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.hero h1 .line {
  display: block;
}

.hero-lede {
  max-width: 520px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.9;
}

.hero-lede b {
  color: var(--text-soft);
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-meta .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.hero-note svg {
  color: var(--mint);
}

/* ---------- Console visual ---------- */

.hero-visual {
  position: relative;
  min-height: 430px;
}

.console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(22, 35, 58, 0.92), rgba(10, 17, 29, 0.96));
  box-shadow: var(--shadow), 0 0 0 1px rgba(60, 182, 255, 0.06) inset;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--brand), transparent);
  opacity: 0.85;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.dots {
  display: flex;
  gap: 5px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #33445e;
}

.dots i:first-child { background: #ff7b7b; }
.dots i:nth-child(2) { background: #ffc46b; }
.dots i:nth-child(3) { background: #45e0c0; }

.console-title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.console-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(69, 224, 192, 0.28);
  border-radius: 999px;
  background: rgba(69, 224, 192, 0.08);
  color: #8cf0dc;
  font-family: var(--font-mono);
  font-size: 10px;
}

.console-body {
  padding: 18px;
}

.console-kpi {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.console-kpi .kpi-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-kpi .kpi-value {
  margin-top: 4px;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.console-kpi .kpi-value small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.console-kpi .kpi-latency {
  text-align: right;
}

.console-kpi .kpi-latency b {
  color: var(--mint);
  font-size: 20px;
  font-weight: 700;
}

.spark {
  position: relative;
  margin: 16px 0 14px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(rgba(148, 177, 214, 0.05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(148, 177, 214, 0.05) 1px, transparent 1px) 0 0 / 32px 100%,
    rgba(7, 13, 23, 0.55);
  overflow: hidden;
}

.spark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spark .spark-label {
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.node-list {
  display: grid;
  gap: 7px;
}

.node-row {
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.node-row:hover {
  border-color: rgba(69, 224, 192, 0.26);
  background: rgba(69, 224, 192, 0.05);
  transform: translateX(2px);
}

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
}

.node-name .flag {
  font-size: 13px;
}

.node-name .proto {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
}

.node-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.node-bars i {
  width: 3px;
  border-radius: 1px;
  background: var(--mint);
  opacity: 0.75;
}

.node-lat {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.console-foot b {
  color: var(--text-soft);
  font-weight: 500;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 22, 37, 0.94);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: var(--muted);
  animation: float 6s ease-in-out infinite;
}

.float-card b {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(69, 224, 192, 0.1);
  color: var(--mint);
}

.float-card.fc-a {
  left: -26px;
  bottom: 44px;
}

.float-card.fc-b {
  right: -18px;
  top: 38px;
  animation-delay: -2.6s;
}

.float-card.fc-b .fc-icon {
  background: rgba(255, 196, 107, 0.1);
  color: var(--amber);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Protocol marquee ---------- */

.protocol-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  overflow: hidden;
}

.protocol-strip .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 16px;
}

.strip-label {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "·";
  margin-left: 30px;
  color: var(--muted-2);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 58, 0.5), rgba(10, 17, 29, 0.5));
  overflow: hidden;
}

.stat-item {
  padding: 26px 26px 24px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 34px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-num span {
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-label b {
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  grid-column: span 2;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(22, 35, 58, 0.72), rgba(10, 17, 29, 0.62));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 177, 214, 0.34);
  background: linear-gradient(165deg, rgba(26, 41, 67, 0.82), rgba(10, 17, 29, 0.72));
}

.bento-card.wide {
  grid-column: span 3;
}

.bento-card.span-4 {
  grid-column: span 4;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 182, 255, 0.16), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::after {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(60, 182, 255, 0.26);
  border-radius: 11px;
  background: rgba(60, 182, 255, 0.08);
  color: var(--brand);
}

.bento-card:nth-child(2n) .card-icon {
  border-color: rgba(69, 224, 192, 0.26);
  background: rgba(69, 224, 192, 0.07);
  color: var(--mint);
}

.bento-card:nth-child(3n) .card-icon {
  border-color: rgba(255, 196, 107, 0.26);
  background: rgba(255, 196, 107, 0.07);
  color: var(--amber);
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.bento-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.85;
}

.card-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.card-mini .tag {
  font-family: var(--font-mono);
  font-size: 10px;
}

.mini-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.45);
}

.mini-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.mini-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}

.mini-line:nth-child(2) i { background: var(--brand); }
.mini-line:nth-child(3) i { background: var(--amber); }

.mini-line span {
  color: var(--text-soft);
}

.mini-line em {
  margin-left: auto;
  color: var(--muted-2);
  font-style: normal;
}

/* ---------- Flow / routing ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.flow-list {
  display: grid;
  gap: 2px;
  margin-top: 26px;
}

.flow-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.flow-item:last-child {
  border-bottom: 0;
}

.flow-item .fi-no {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  padding-top: 3px;
}

.flow-item h4 {
  font-size: 15px;
  font-weight: 600;
}

.flow-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.routing-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(60, 182, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 52, 0.8), rgba(9, 15, 26, 0.9));
  box-shadow: var(--shadow);
}

.routing-panel::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.routing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.routing-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.routing-head .tag {
  font-family: var(--font-mono);
  font-size: 9px;
}

.route-chain {
  display: grid;
  gap: 0;
}

.route-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.route-node .rn-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(60, 182, 255, 0.1);
  color: var(--brand);
  flex: none;
}

.route-node strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.route-node span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.route-node em {
  margin-left: auto;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}

.route-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 7px 29px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.route-connector::before {
  content: "";
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--line-strong), var(--brand));
}

.route-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.branch {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(6, 10, 18, 0.4);
}

.branch .b-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.branch .b-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.branch.deny .b-top i {
  background: var(--danger);
}

.branch small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ---------- Ranking band (cream) ---------- */

.rank-band-wrap {
  padding-block: 26px 88px;
}

.rank-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 46px;
  align-items: center;
  padding: 48px 52px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 90% 10%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(135deg, var(--cream), var(--cream-2));
  color: var(--cream-ink);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.rank-band::before {
  content: "严选";
  position: absolute;
  right: 34%;
  bottom: -54px;
  color: rgba(23, 32, 44, 0.045);
  font-size: 210px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.rank-band .rb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(23, 32, 44, 0.16);
  border-radius: 999px;
  color: #6b4a17;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rank-band h2 {
  position: relative;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.rank-band h2 span {
  color: #0a6b5a;
}

.rank-band p {
  position: relative;
  max-width: 520px;
  margin-top: 14px;
  color: #4e5a68;
  font-size: 14.5px;
  line-height: 1.85;
}

.rank-band .rb-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.rank-band .btn-rank {
  --btn-bg: #101a2a;
  --btn-fg: #f7f3ea;
  --btn-bd: transparent;
  box-shadow: 0 16px 30px -18px rgba(16, 26, 42, 0.9);
}

.rank-band .btn-rank:hover {
  --btn-bg: #1a2a42;
}

.rank-band .btn-line {
  --btn-bg: transparent;
  --btn-fg: #1d2a3a;
  --btn-bd: rgba(23, 32, 44, 0.24);
}

.rank-band .rb-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: #6a7480;
  font-family: var(--font-mono);
  font-size: 10px;
}

.rank-stack {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 44, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.rank-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  color: #6a7480;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-mini {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s;
}

.rank-mini:hover {
  transform: translateX(3px);
}

.rank-mini .rm-no {
  color: #8d7c5e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.rank-mini .rm-name {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.rank-mini .rm-name small {
  display: block;
  color: #7a8491;
  font-size: 10px;
  font-weight: 400;
}

.rank-mini .rm-score {
  color: #0a6b5a;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.rank-mini .rm-score sup {
  font-size: 8px;
  color: #8d9aa7;
}

/* ---------- Steps / install ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.step-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.step-no b {
  color: var(--brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 650;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.step .code {
  margin-top: 16px;
}

.code {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #070d17;
  overflow: hidden;
}

.code pre {
  margin: 0;
  padding: 14px 42px 14px 14px;
  overflow-x: auto;
  color: #b8e8dd;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre;
}

.code .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s;
}

.code .copy:hover {
  color: var(--mint);
  border-color: rgba(69, 224, 192, 0.4);
}

.code .copy.is-done {
  color: var(--mint);
}

/* ---------- Posts ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(22, 35, 58, 0.55), rgba(10, 17, 29, 0.55));
  color: var(--text);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(148, 177, 214, 0.34);
  color: var(--text);
}

.post-card.featured {
  grid-column: span 2;
  min-height: 340px;
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(60, 182, 255, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(24, 39, 64, 0.9), rgba(9, 15, 26, 0.85));
}

.post-card .pc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.post-card .pc-cat {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.post-card .pc-date {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.post-card h3 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.post-card.featured h3 {
  max-width: 560px;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.35;
}

.post-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.post-card .pc-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.post-card .pc-foot .read {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
}

.post-card.featured .pc-deco {
  position: absolute;
  right: 26px;
  bottom: 20px;
  color: rgba(60, 182, 255, 0.18);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 550;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--mint);
}

.faq summary .q-mark {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.faq summary .plus {
  margin-left: auto;
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.25s, background 0.2s;
}

.faq summary .plus::before {
  width: 14px;
  height: 1.5px;
}

.faq summary .plus::after {
  width: 1.5px;
  height: 14px;
}

.faq details[open] summary {
  color: var(--text);
}

.faq details[open] summary .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  background: var(--mint);
}

.faq details[open] summary .plus::before {
  background: var(--mint);
}

.faq .answer {
  padding: 0 4px 26px 46px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.faq .answer p + p {
  margin-top: 10px;
}

.faq .answer a {
  border-bottom: 1px solid rgba(60, 182, 255, 0.4);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.4), rgba(5, 8, 14, 0.9));
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.footer-cta h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}

.footer-cta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 48px 0 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 280px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.85;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-rank-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 196, 107, 0.24);
  border-radius: 14px;
  background: rgba(255, 196, 107, 0.05);
}

.footer-rank-card .fr-kicker {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.footer-rank-card h3 {
  margin: 8px 0 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.footer-rank-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-rank-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}

.footer-bottom .fb-links {
  display: flex;
  gap: 18px;
}

.footer-bottom a {
  color: var(--muted-2);
}

.footer-bottom a:hover {
  color: var(--text-soft);
}

/* ---------- Sub page hero ---------- */

.page-hero {
  position: relative;
  padding-block: 58px 44px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(700px 340px at 85% -10%, rgba(60, 182, 255, 0.14), transparent 70%),
    linear-gradient(rgba(148, 177, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 177, 214, 0.045) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs .sep {
  opacity: 0.5;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-lede {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- Ranking page ---------- */

.rank-hero {
  padding-block: 54px 26px;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: end;
}

.rank-issue {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rank-issue .big-no {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.rank-issue .issue-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-issue .issue-meta b {
  display: block;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.rank-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.rank-hero .rank-lede {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.rank-score-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(24, 39, 64, 0.85), rgba(9, 15, 26, 0.85));
}

.rank-score-card .rsc-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-score-card .rsc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}

.rank-score-card .rsc-row:last-of-type {
  border-bottom: 0;
}

.rank-score-card .rsc-row b {
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 600;
}

.rank-score-card .rsc-note {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.7;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.pick-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 35, 58, 0.66), rgba(9, 15, 26, 0.66));
  overflow: hidden;
}

.pick-card:first-child {
  border-color: rgba(255, 196, 107, 0.3);
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(255, 196, 107, 0.13), transparent 65%),
    linear-gradient(160deg, rgba(28, 40, 60, 0.8), rgba(9, 15, 26, 0.75));
}

.pick-card .pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.pick-card h2,
.pick-card h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pick-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.pick-card .pick-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.pick-card .pick-foot b {
  color: var(--text-soft);
  font-weight: 500;
}

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 0 18px;
  padding: 12px 0;
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.filter-bar .fb-label {
  margin-right: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-btn.is-active {
  border-color: rgba(69, 224, 192, 0.4);
  background: rgba(69, 224, 192, 0.1);
  color: #8cf0dc;
}

.filter-count {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 168px 148px;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(20, 32, 52, 0.6), rgba(9, 15, 26, 0.55));
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.rank-item:hover {
  border-color: rgba(148, 177, 214, 0.34);
  background: linear-gradient(120deg, rgba(24, 39, 64, 0.72), rgba(9, 15, 26, 0.65));
  transform: translateY(-2px);
}

.rank-item.is-top {
  border-color: rgba(255, 196, 107, 0.28);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(255, 196, 107, 0.08), transparent 65%),
    linear-gradient(120deg, rgba(26, 39, 58, 0.75), rgba(9, 15, 26, 0.6));
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted-2);
  letter-spacing: -0.04em;
}

.rank-item.is-top .rank-no {
  color: var(--amber);
}

.rank-no small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.rank-main {
  min-width: 0;
}

.rank-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-title-row h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rank-title-row h2 a {
  color: var(--text);
}

.rank-title-row h2 a:hover {
  color: var(--mint);
}

.rank-main p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.rank-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.rank-specs b {
  color: var(--text-soft);
  font-weight: 500;
}

.rank-meters {
  display: grid;
  gap: 7px;
}

.meter-row {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

.meter {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform-origin: left;
  animation: meter-in 1s var(--ease) both;
}

.meter-row:nth-child(2) .meter i {
  background: linear-gradient(90deg, #ffc46b, #ff9d5c);
}

.meter-row:nth-child(3) .meter i {
  background: linear-gradient(90deg, #8f9dff, #b7a6ff);
}

.meter-row b {
  color: var(--text-soft);
  font-weight: 500;
  text-align: right;
}

@keyframes meter-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.rank-action {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.rank-action .price {
  text-align: center;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rank-action .price b {
  color: var(--text);
  font-size: 15px;
}

.rank-action .price small {
  color: var(--muted-2);
  font-size: 9px;
}

.rank-empty {
  display: none;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.rank-empty.is-show {
  display: block;
}

.compare-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: #101a2a;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0b1421;
  color: var(--text);
  font-weight: 600;
}

.compare tbody tr:hover td:first-child {
  background: #0e1828;
}

.compare .c-score {
  color: var(--mint);
  font-family: var(--font-mono);
}

.compare .yes {
  color: #8cf0dc;
}

.compare .no {
  color: var(--muted-2);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.method-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.method-card .m-no {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
}

.method-card h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 650;
}

.method-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 196, 107, 0.2);
  border-radius: 12px;
  background: rgba(255, 196, 107, 0.05);
  color: #d9c7a8;
  font-size: 12px;
  line-height: 1.8;
}

.notice b {
  color: var(--amber);
}

/* ---------- Download page ---------- */

.dl-latest {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 10px;
}

.dl-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(60, 182, 255, 0.15), transparent 65%),
    linear-gradient(165deg, rgba(24, 39, 64, 0.86), rgba(9, 15, 26, 0.88));
  overflow: hidden;
}

.dl-card .dl-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.dl-card .dl-version strong {
  font-family: var(--font-mono);
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.dl-card .dl-version .tag {
  transform: translateY(-2px);
}

.dl-card .dl-date {
  margin-top: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dl-card .dl-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.dl-card .dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dl-files {
  display: grid;
  gap: 10px;
}

.file-link {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.file-link:hover {
  color: var(--text);
  border-color: rgba(69, 224, 192, 0.32);
  background: rgba(69, 224, 192, 0.045);
  transform: translateX(3px);
}

.file-link .fl-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(60, 182, 255, 0.09);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.file-link .fl-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.file-link .fl-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  overflow-wrap: anywhere;
}

.file-link .fl-arrow {
  color: var(--muted-2);
}

.file-link:hover .fl-arrow {
  color: var(--mint);
}

.dl-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(69, 224, 192, 0.18);
  border-radius: 11px;
  background: rgba(69, 224, 192, 0.04);
  color: #a7c8c0;
  font-size: 11.5px;
  line-height: 1.8;
}

.dl-note svg {
  flex: none;
  color: var(--mint);
  margin-top: 2px;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.arch-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.arch-card h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.arch-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.versions {
  display: grid;
  gap: 10px;
}

.version-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.version-row.is-latest {
  border-color: rgba(69, 224, 192, 0.26);
  background: rgba(69, 224, 192, 0.03);
}

.version-info .v-no {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.version-info .v-date {
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.version-info .v-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.version-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
}

.v-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 11.5px;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, background 0.2s;
}

.v-link:hover {
  color: var(--text);
  border-color: rgba(60, 182, 255, 0.35);
  background: rgba(60, 182, 255, 0.05);
}

.v-link .v-ext {
  margin-left: auto;
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.tab {
  padding: 8px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  transition: all 0.2s;
}

.tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tab-panel {
  display: none;
  margin-top: 16px;
}

.tab-panel.is-active {
  display: block;
}

/* ---------- Article ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--brand));
  box-shadow: 0 0 10px rgba(69, 224, 192, 0.6);
  transition: width 0.1s linear;
}

.article-hero {
  padding-block: 52px 30px;
}

.article-hero .crumbs {
  margin-bottom: 26px;
}

.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.article-hero .article-deck {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.article-meta .am-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.article-meta .am-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  color: #04121a;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 56px;
  padding-bottom: 70px;
}

.article-body {
  max-width: 780px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 2;
}

.article-body > p {
  margin: 22px 0;
}

.article-body > p:first-child {
  margin-top: 0;
}

.article-body .lead {
  color: var(--text);
  font-size: 19px;
  line-height: 1.95;
}

.article-body h2 {
  margin: 52px 0 18px;
  padding-top: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.article-body h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

.article-body h3 {
  margin: 34px 0 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.5;
}

.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-body em {
  color: #cfe9ff;
  font-style: normal;
  border-bottom: 1px solid rgba(60, 182, 255, 0.35);
}

.article-body a {
  border-bottom: 1px solid rgba(60, 182, 255, 0.38);
  color: #8fd8ff;
}

.article-body a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.article-body ul,
.article-body ol {
  margin: 18px 0;
  padding-left: 24px;
}

.article-body li {
  margin: 9px 0;
  padding-left: 3px;
}

.article-body li::marker {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: rgba(60, 182, 255, 0.05);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.9;
}

.article-body blockquote p {
  margin: 0;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #a9e9db;
  font-family: var(--font-mono);
  font-size: 0.82em;
}

.article-body .code {
  margin: 24px 0;
}

.article-body .code pre {
  font-size: 12px;
  line-height: 1.9;
}

.figure {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(20, 32, 52, 0.7), rgba(9, 15, 26, 0.7));
  overflow: hidden;
}

.figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.figure figcaption {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px 12px 12px 8px;
  background: rgba(60, 182, 255, 0.045);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.85;
}

.callout .ct-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout p + p {
  margin-top: 8px;
}

.callout.warn {
  border-left-color: var(--amber);
  background: rgba(255, 196, 107, 0.045);
}

.callout.warn .ct-title {
  color: var(--amber);
}

.callout.tip {
  border-left-color: var(--mint);
  background: rgba(69, 224, 192, 0.045);
}

.callout.tip .ct-title {
  color: var(--mint);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-cta {
  position: relative;
  margin: 46px 0 0;
  padding: 30px;
  border-radius: 18px;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(135deg, var(--cream), var(--cream-2));
  color: var(--cream-ink);
  overflow: hidden;
}

.article-cta .ac-kicker {
  color: #8a6420;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.article-cta h2 {
  margin: 10px 0 0;
  padding: 0;
  color: var(--cream-ink);
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.article-cta h2::before {
  display: none;
}

.article-cta p {
  margin-top: 8px;
  color: #5d6875;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.8;
}

.article-cta .btn {
  margin-top: 18px;
  --btn-bg: #101a2a;
  --btn-fg: #f7f3ea;
  --btn-bd: transparent;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  align-self: start;
  padding-top: 8px;
}

.article-toc .toc-label {
  margin-bottom: 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-toc nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.article-toc a {
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  transition: color 0.2s, border-color 0.2s;
}

.article-toc a:hover {
  color: var(--text);
}

.article-toc a.is-active {
  border-left-color: var(--mint);
  color: var(--mint);
}

.article-toc .toc-cta {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 196, 107, 0.22);
  border-radius: 12px;
  background: rgba(255, 196, 107, 0.045);
}

.article-toc .toc-cta b {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}

.article-toc .toc-cta p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.article-toc .toc-cta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

.related {
  padding-block: 10px 80px;
}

.related h2 {
  margin-bottom: 22px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
  color: var(--text);
  border-color: rgba(148, 177, 214, 0.34);
  transform: translateY(-3px);
}

.related-card .rc-cat {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.related-card h3 {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.related-card .rc-meta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* ---------- Guide page ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
  padding-bottom: 70px;
}

.guide-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.guide-nav .gn-label {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.guide-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(148, 177, 214, 0.08);
}

.guide-nav a b {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.guide-nav a:hover,
.guide-nav a.is-active {
  color: var(--mint);
}

.guide-main {
  max-width: 800px;
}

.guide-block {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.guide-block:first-child {
  padding-top: 0;
}

.guide-block h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.guide-block h2 .gb-no {
  display: inline-block;
  margin-right: 10px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 14px;
  vertical-align: 3px;
}

.guide-block .gb-lede {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.guide-block h3 {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 650;
}

.guide-block p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.95;
}

.guide-block ul,
.guide-block ol {
  margin-top: 12px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.guide-block li {
  margin: 7px 0;
}

.guide-block li::marker {
  color: var(--mint);
}

.guide-block .code {
  margin-top: 16px;
}

.ui-mock {
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b1421;
  overflow: hidden;
}

.ui-mock .um-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.ui-mock .um-bar .dots {
  margin-right: 4px;
}

.ui-mock .um-body {
  padding: 16px;
}

.um-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.um-tabs span {
  padding: 7px 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  border-bottom: 2px solid transparent;
}

.um-tabs span.on {
  color: var(--text);
  border-bottom-color: var(--mint);
}

.um-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 11px;
}

.um-field label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.um-input {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.um-input.accent {
  border-color: rgba(69, 224, 192, 0.35);
  color: #9df0df;
}

.um-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.um-btn {
  padding: 6px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
}

.um-btn.primary {
  background: linear-gradient(110deg, var(--mint), var(--brand));
  color: #04141a;
  font-weight: 600;
}

/* ---------- Error page ---------- */

.err-wrap {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
  padding-block: 60px;
}

.err-code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(96, 210, 255, 0.35);
}

.err-wrap h1 {
  margin-top: 18px;
  font-size: 28px;
}

.err-wrap p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Mobile bar / floating CTA ---------- */

.mobile-bar {
  display: none;
}

.rank-fab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6e7c8, #ecd4a8);
  color: #201a0f;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 218, 160, 0.5);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.rank-fab.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rank-fab:hover {
  color: #201a0f;
  transform: translateY(-2px);
}

.rank-fab .rf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b4590f;
  box-shadow: 0 0 0 3px rgba(180, 89, 15, 0.18);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.reveal.immediate {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero .wrap {
    gap: 36px;
  }

  .float-card {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .footer-main .footer-col:nth-child(4) {
    display: none;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding-inline: 22px;
  }

  .hero {
    padding-block: 52px 40px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 0;
    max-width: 620px;
  }

  .console {
    transform: none;
  }

  .nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-link {
    display: none;
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-card,
  .bento-card.wide,
  .bento-card.span-4 {
    grid-column: span 2;
  }

  .bento-card.span-2 {
    grid-column: span 2;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .rank-band {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px;
  }

  .rank-stack {
    max-width: 460px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card.featured {
    grid-column: span 2;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-main .footer-col:nth-child(4) {
    display: block;
  }

  .rank-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .rank-score-card {
    max-width: 420px;
  }

  .pick-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px minmax(0, 1fr) 140px;
    gap: 14px;
  }

  .rank-action {
    grid-column: 2 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .rank-action .price {
    text-align: left;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-latest {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .version-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-toc {
    display: none;
  }

  .article-body {
    max-width: 100%;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .guide-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .guide-nav .gn-label {
    display: none;
  }

  .guide-nav a {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
  }

  .guide-nav a b {
    display: none;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(7, 12, 21, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 8px;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-bar a svg {
    width: 19px;
    height: 19px;
  }

  .mobile-bar a[aria-current="page"],
  .mobile-bar a.is-rank {
    color: var(--mint);
  }

  .mobile-bar a.is-rank {
    color: var(--amber);
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .rank-fab {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }

  .topbar .wrap {
    gap: 12px;
    overflow: hidden;
  }

  .topbar-version {
    display: none;
  }

  .topbar-status {
    font-size: 10.5px;
  }

  .topbar-link {
    font-size: 10.5px;
  }

  .site-header .wrap {
    min-height: 62px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding-block: 38px 34px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.2vw, 42px);
  }

  .hero-lede {
    font-size: 14.5px;
    margin-top: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding-inline: 14px;
    font-size: 13.5px;
  }

  .hero-meta .tag {
    font-size: 10px;
  }

  .console-body {
    padding: 13px;
  }

  .node-row {
    grid-template-columns: 1fr auto 46px;
  }

  .console-foot {
    font-size: 8.5px;
  }

  .section {
    padding-block: 58px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 27px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-num {
    font-size: 28px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide,
  .bento-card.span-4,
  .bento-card.span-2 {
    grid-column: span 1;
  }

  .rank-band-wrap {
    padding-block: 10px 58px;
  }

  .rank-band {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .rank-band::before {
    font-size: 130px;
    bottom: -24px;
  }

  .rank-band h2 {
    font-size: 27px;
  }

  .rank-band .rb-actions .btn {
    width: 100%;
  }

  .rank-stack {
    padding: 12px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card.featured {
    grid-column: span 1;
    min-height: 300px;
  }

  .faq summary {
    font-size: 14.5px;
    padding: 18px 2px;
  }

  .faq .answer {
    padding-left: 2px;
    font-size: 13.5px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 36px 0 28px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-rank-card {
    grid-column: span 2;
  }

  .footer-bottom {
    justify-content: flex-start;
    font-size: 10.5px;
  }

  .page-hero {
    padding-block: 38px 30px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-lede {
    font-size: 14px;
  }

  .rank-hero {
    padding-block: 36px 10px;
  }

  .rank-hero h1 {
    font-size: 40px;
  }

  .rank-issue .big-no {
    font-size: 54px;
  }

  .filter-bar {
    top: 62px;
    margin-top: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px 0;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: none;
  }

  .filter-count {
    display: none;
  }

  .rank-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 18px;
    gap: 12px;
  }

  .rank-no {
    font-size: 22px;
  }

  .rank-meters {
    grid-column: 2 / -1;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .rank-action {
    grid-column: 2 / -1;
    grid-template-columns: 1fr;
  }

  .rank-action .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-align: left;
  }

  .rank-specs {
    gap: 7px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .dl-card {
    padding: 24px;
  }

  .dl-card .dl-actions .btn {
    width: 100%;
  }

  .file-link {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .version-links {
    grid-template-columns: 1fr;
  }

  .version-row {
    padding: 16px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    text-align: center;
  }

  .article-hero {
    padding-block: 34px 24px;
  }

  .article-hero h1 {
    font-size: 29px;
  }

  .article-hero .article-deck {
    font-size: 14px;
  }

  .article-meta {
    gap: 10px;
    font-size: 9.5px;
  }

  .article-body {
    font-size: 16.5px;
    line-height: 1.95;
  }

  .article-body h2 {
    font-size: 23px;
    margin-top: 42px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-body .lead {
    font-size: 17.5px;
  }

  .article-cta {
    padding: 22px;
  }

  .article-cta h2 {
    font-size: 20px;
  }

  .related {
    padding-bottom: 50px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .guide-block h2 {
    font-size: 23px;
  }

  .guide-block {
    padding: 24px 0;
  }

  .um-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-cta .btn {
    width: 100%;
  }

  .err-wrap h1 {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .header-actions .btn-primary {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }

  .rank-item {
    padding: 15px;
  }
}

/* late additions */
.brand-mark {
  filter: brightness(1.14) saturate(1.08);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}

@media (max-width: 980px) {
  .faq-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   Inner pages: features, article index, FAQ, download extras
   ========================================================================== */

.page-cta-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 44px;
  padding: 32px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 92% 20%, rgba(69, 224, 192, 0.13), transparent 70%),
    linear-gradient(135deg, rgba(24, 39, 64, 0.9), rgba(9, 15, 26, 0.9));
  overflow: hidden;
}

.page-cta-strip h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.page-cta-strip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.page-cta-strip .btn-row {
  flex: none;
}

.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
  padding-block: 52px;
  border-top: 1px dashed var(--line);
}

.frow:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.frow.flip .frow-visual {
  order: -1;
}

.frow-copy .eyebrow {
  margin-bottom: 14px;
}

.frow-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.frow-copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.check-list li svg {
  flex: none;
  margin-top: 3px;
  color: var(--mint);
}

.check-list li b {
  color: var(--text);
  font-weight: 600;
}

.frow-visual .ui-mock {
  margin: 0;
  box-shadow: var(--shadow);
}

.demo-panel {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(60, 182, 255, 0.09), transparent 65%),
    #0b1421;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.demo-head .demo-pill {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(69, 224, 192, 0.25);
  border-radius: 999px;
  color: #8cf0dc;
  font-size: 8.5px;
}

.demo-body {
  padding: 16px;
}

.sub-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.sub-row + .sub-row {
  margin-top: 7px;
}

.sub-row b {
  font-weight: 600;
}

.sub-row small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.sub-row .sub-state {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.sub-row .sub-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.node-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.node-pills span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.node-pills span.hot {
  border-color: rgba(69, 224, 192, 0.3);
  color: #8cf0dc;
}

.demo-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.rule-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.rule-row {
  display: grid;
  grid-template-columns: 34px 1fr 70px;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  font-size: 10.5px;
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-row .r-no {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.rule-row .r-match {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-row .r-match small {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 9px;
  margin-top: 2px;
}

.rule-row .r-act {
  justify-self: end;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.r-act.proxy {
  background: rgba(60, 182, 255, 0.1);
  color: #93d9ff;
}

.r-act.direct {
  background: rgba(148, 177, 214, 0.1);
  color: var(--muted);
}

.r-act.block {
  background: rgba(255, 128, 128, 0.1);
  color: #ffb1b1;
}

.dns-flow {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr;
  gap: 6px;
  align-items: stretch;
  margin-top: 14px;
}

.dns-step {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.dns-step .ds-no {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.dns-step b {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}

.dns-step small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
}

.dns-arrow {
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.switch-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.switch-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.switch-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -10px;
  width: 1px;
  background: var(--line);
}

.switch-item:last-child::before {
  display: none;
}

.switch-dot {
  width: 19px;
  height: 19px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0b1421;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
}

.switch-item.ok .switch-dot {
  border-color: rgba(69, 224, 192, 0.5);
  color: var(--mint);
  box-shadow: 0 0 0 4px rgba(69, 224, 192, 0.06);
}

.switch-item.warn .switch-dot {
  border-color: rgba(255, 196, 107, 0.5);
  color: var(--amber);
}

.switch-info b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.switch-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.switch-time {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.device-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.device-table th {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0.08em;
}

.device-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(148, 177, 214, 0.08);
  color: var(--muted);
}

.device-table tr:last-child td {
  border-bottom: 0;
}

.device-table td:first-child {
  color: var(--text-soft);
}

.device-table .dot-on {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: 1px;
}

.matrix-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 640px;
}

.matrix th,
.matrix td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.matrix thead th {
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matrix tbody tr:last-child td {
  border-bottom: 0;
}

.matrix td:first-child {
  color: var(--text);
  font-weight: 600;
}

.matrix td:not(:first-child) {
  color: var(--muted);
  text-align: center;
}

.matrix .yes {
  color: var(--mint);
  font-size: 14px;
}

.matrix .no {
  color: rgba(148, 177, 214, 0.25);
}

.matrix-note {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

.kernel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.kernel-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.kernel-card h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.kernel-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.kernel-card .tag {
  margin-top: 10px;
  font-size: 9px;
}

/* article index */

.article-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input:focus {
  border-color: rgba(69, 224, 192, 0.45);
  background: rgba(69, 224, 192, 0.04);
}

.article-count {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.article-index {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.2s;
}

.article-row:hover {
  color: var(--text);
  background: linear-gradient(90deg, rgba(60, 182, 255, 0.045), transparent 70%);
}

.article-row .ar-no {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.article-row .ar-cat {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
}

.article-row h2 {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.article-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.article-row .ar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.article-row .ar-tags .tag {
  font-size: 9.5px;
  padding: 2px 8px;
}

.article-row .ar-side {
  text-align: right;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.9;
}

.article-row .ar-side .read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 10px;
}

.article-row.is-hide {
  display: none;
}

.article-empty {
  display: none;
  padding: 56px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.article-empty.is-show {
  display: block;
}

.index-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 196, 107, 0.22);
  border-radius: 16px;
  background: rgba(255, 196, 107, 0.045);
}

.index-cta h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.index-cta p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

/* FAQ page */

.faq-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
  padding-bottom: 60px;
}

.faq-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.faq-side .fs-label {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.faq-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 177, 214, 0.08);
  color: var(--muted);
  font-size: 12.5px;
}

.faq-side a:hover {
  color: var(--mint);
}

.faq-side a b {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.faq-group {
  padding-top: 8px;
  margin-top: 34px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.faq-group:first-child {
  margin-top: 0;
  padding-top: 0;
}

.faq-group > h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.faq-group > .fg-lede {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* responsive inner pages */

@media (max-width: 980px) {
  .frow {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 40px;
  }

  .frow.flip .frow-visual {
    order: 0;
  }

  .kernel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-side .fs-label {
    display: none;
  }

  .faq-side a {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
  }

  .faq-side a b {
    display: none;
  }

  .page-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .index-cta {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .article-row .ar-side {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .article-row .ar-side .read-more {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .kernel-grid {
    grid-template-columns: 1fr;
  }

  .frow-copy h2 {
    font-size: 25px;
  }

  .dns-flow {
    grid-template-columns: 1fr;
  }

  .dns-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .article-toolbar {
    align-items: stretch;
  }

  .search-box {
    max-width: none;
    flex-basis: 100%;
  }

  .article-row h2 {
    font-size: 17px;
  }

  .article-row {
    padding: 20px 2px;
  }

  .page-cta-strip {
    padding: 24px;
  }

  .page-cta-strip .btn-row {
    width: 100%;
  }

  .page-cta-strip .btn-row .btn {
    flex: 1;
  }

  .index-cta {
    padding: 22px;
  }
}

/* figure horizontal scroll on narrow screens */
.figure-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.figure-scroll svg {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .article-body .figure-scroll svg {
    width: 660px;
    max-width: none;
  }

  .article-body .figure figcaption::before {
    content: "← 左右滑动查看完整图表 · ";
    color: var(--brand);
  }

  .filter-bar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .filter-bar .fb-label {
    display: none;
  }

  .article-meta {
    font-size: 9px;
  }
}

/* allow article grid children to shrink around a wide figure */
.article-shell,
.article-body,
.article-main {
  min-width: 0;
}

.figure {
  max-width: 100%;
}

@media (max-width: 640px) {
  .section-title em {
    white-space: nowrap;
  }
}

/* balanced headline wrapping */
.hero h1,
.page-hero h1,
.rank-hero h1,
.article-hero h1,
.section-title,
.rank-band h2,
.article-cta h2 {
  text-wrap: balance;
}

/* slightly larger figure captions for legibility */
.article-body .figure figcaption {
  font-size: 11px;
}

[hidden] {
  display: none !important;
}

.faq-group > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.faq-group > h2 svg {
  flex: none;
  color: var(--mint);
}

.footer-rank-card .fr-kicker {
  white-space: nowrap;
  font-size: 9px;
}

/* flex/grid minimum-size guards */
.marquee {
  min-width: 0;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step,
.code {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .protocol-strip .wrap {
    gap: 14px;
  }

  .strip-label {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

/* cream ranking band button + text contrast */
.rank-band .btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.42);
  --btn-fg: #1d2a3a;
  --btn-bd: rgba(23, 32, 44, 0.24);
}

.rank-band .btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.72);
  --btn-bd: rgba(23, 32, 44, 0.38);
}

.rank-mini {
  color: var(--cream-ink);
}

.rank-mini .rm-name,
.rank-mini .rm-name small {
  color: inherit;
}

.rank-mini .rm-name small {
  color: #7a8491;
}

.rank-mini:hover {
  color: var(--cream-ink);
}

/* simplified footer */
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  padding-block: 38px;
}

.footer-simple .brand {
  margin: 0;
}

.footer-simple-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-simple-nav a {
  color: var(--muted);
  font-size: 13px;
}

.footer-simple-nav a:hover {
  color: var(--text);
}

.footer-simple-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.footer-simple-meta a {
  color: var(--muted-2);
}

.footer-simple-meta a:hover {
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .footer-simple {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-block: 30px 26px;
  }

  .footer-simple-nav {
    gap: 16px;
  }

  .footer-simple-nav a {
    font-size: 12.5px;
  }
}

/* airport card placeholder CTAs */
.pick-action {
  margin-top: 16px;
}

.pick-action .btn {
  width: 100%;
}
