/* ===========================================================
   快连VPN — Shared Stylesheet
   Design tokens, navigation, footer, typography, components.
   =========================================================== */

:root {
  /* Color tokens */
  --bg: #07091a;
  --bg-2: #0c1230;
  --bg-3: #11173a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f4ff;
  --text-2: #b9bdd9;
  --text-3: #7e85a8;
  --accent: oklch(0.82 0.15 200);
  --accent-2: oklch(0.72 0.18 230);
  --accent-soft: color-mix(in oklch, var(--accent) 16%, transparent);
  --success: oklch(0.78 0.16 155);
  --warn: oklch(0.82 0.16 70);
  --danger: oklch(0.72 0.2 25);

  /* Spacing */
  --container: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Type */
  --font-zh: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en), var(--font-zh);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, color-mix(in oklch, var(--accent-2) 18%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-zh); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p  { margin: 0; color: var(--text-2); }

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

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-zh);
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background:
    conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  position: relative;
  box-shadow: 0 0 0 1px var(--border-strong) inset, 0 8px 24px -8px var(--accent);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  background: var(--bg);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 1;
}
.brand-name { font-size: 18px; }
.brand-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: all 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.is-active { color: var(--text); background: var(--surface); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-zh);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04121a;
  box-shadow: 0 10px 30px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px var(--accent); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============== Generic helpers ============== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.85); } }

.section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--text-2); }

.muted { color: var(--text-3); }
.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 100px;
  padding: 64px 0 40px;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--bg) 80%, black) 80%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-about p { font-size: 14.5px; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--text-2); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* ============== Card primitive ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* Grid utilities */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* Page hero common */
.page-hero {
  padding: 96px 0 56px;
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 16px; }
.page-hero p { font-size: 17px; max-width: 640px; margin: 0 auto; color: var(--text-2); }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb svg { opacity: 0.5; }

/* ============== Animated background grid ============== */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 80%);
}

/* selection */
::selection { background: var(--accent); color: #04121a; }

/* form */
input.field, .field {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.15s;
}
input.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }



/* ===========================================================
   INDEX (Homepage) — page-specific styles (from index.html)
   =========================================================== */

/* ===========================================================
   Homepage-specific styles
   =========================================================== */

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #cfd2ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Hero visual: a "connecting" device card */
.hero-visual {
  position: relative;
  height: 520px;
}
.connect-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  z-index: 2;
}
.cc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cc-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--success);
  font-weight: 600;
}
.cc-status .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
.cc-time { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

.cc-globe {
  width: 100%;
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.cc-globe svg { width: 200px; height: 200px; }
.cc-arc {
  fill: none;
  stroke-width: 1;
  stroke: rgba(255,255,255,0.18);
}
.cc-meridian {
  fill: none;
  stroke-width: 1;
  stroke: rgba(255,255,255,0.12);
}
.cc-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent));
  stroke-dasharray: 6 6;
  animation: dash 1.4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -24; } }
.cc-pin {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}
.cc-pin.origin { fill: var(--text); }

.cc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.cc-row .k { color: var(--text-3); }
.cc-row .v { font-family: var(--font-mono); font-weight: 600; }
.cc-row .v.up { color: var(--success); }

/* Floating chips */
.float-chip {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(12px);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.float-chip .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}
.fc-1 { top: 30px; left: -10px; animation-delay: 0s; }
.fc-2 { top: 80px; right: -20px; animation-delay: 1.5s; }
.fc-3 { bottom: 60px; left: 0; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============== Logos strip ============== */
.logos {
  padding: 30px 0 0;
  text-align: center;
}
.logos .label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.7;
}
.logo-row span {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ============== Features ============== */
.feature {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  border-color: color-mix(in oklch, var(--accent) 30%, var(--border));
  transform: translateY(-2px);
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature:hover::before { opacity: 1; }

.feature-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { font-size: 15px; line-height: 1.6; }
.feature .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* ============== Speed band ============== */
.speed-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.speed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.speed-grid h2 { margin-bottom: 18px; }
.speed-meter {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.meter-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}
.meter-row + .meter-row { border-top: 1px solid var(--border); }
.meter-name { font-family: var(--font-zh); font-weight: 600; font-size: 14px; }
.meter-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 4px;
  width: 0;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--accent);
}
.meter-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}
.meter-row.ours .meter-name { color: var(--accent); }
.meter-row.other .meter-fill { background: linear-gradient(90deg, #4d527a, #6a6f9a); box-shadow: none; }
.meter-row.other .meter-val { color: var(--text-3); }

/* ============== Steps ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.step { padding: 36px; border-right: 1px solid var(--border); position: relative; }
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
}

/* ============== Pricing ============== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
  position: relative;
}
.plan:hover { border-color: var(--border-strong); }
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 12%, var(--bg-2)), var(--bg-2));
  box-shadow: 0 30px 60px -30px var(--accent);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #04121a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan-name { font-size: 14px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 600; }
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.plan-price .big {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-price .cur { font-size: 18px; color: var(--text-2); }
.plan-price .per { font-size: 14px; color: var(--text-3); margin-left: 4px; }
.plan-saved { font-size: 13px; color: var(--success); margin-bottom: 24px; }
.plan-feats {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 12px;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--text-2);
}
.plan-feats li svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan .btn { width: 100%; }
@media (max-width: 800px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ============== Testimonials ============== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tcard .stars { color: var(--warn); margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.tcard q {
  display: block;
  quotes: none;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 22px;
}
.tcard q::before, .tcard q::after { content: ""; }
.tprofile {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.tav {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.tname { font-weight: 600; font-size: 14px; }
.trole { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 800px) { .testimonials { grid-template-columns: 1fr; } }

/* ============== CTA Final ============== */
.cta-final {
  position: relative;
  margin: 80px auto;
  max-width: 1100px;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 400px at 80% -10%, color-mix(in oklch, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, color-mix(in oklch, var(--accent-2) 30%, transparent), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}
.cta-final h2 { margin-bottom: 14px; max-width: 660px; margin-left: auto; margin-right: auto; }
.cta-final p { margin-bottom: 28px; font-size: 17px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-final .btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-final .micro { margin-top: 22px; font-size: 13px; color: var(--text-3); }

/* ============== Responsive ============== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .speed-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 24px; }
}

/* ===========================================================
   FAQ Page — page-specific styles (from faq.html)
   =========================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 32px 0 80px;
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
}

.faq-side {
  position: sticky;
  top: 92px;
  align-self: flex-start;
  height: fit-content;
}
.faq-side h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.faq-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.faq-side li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14.5px;
  transition: all 0.15s;
}
.faq-side li a:hover { background: var(--surface); color: var(--text); }
.faq-side li a.is-active { background: var(--accent-soft); color: var(--accent); }
.faq-side li a .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.faq-search {
  margin-bottom: 28px;
  position: relative;
}
.faq-search input {
  padding-left: 44px;
  font-size: 15px;
}
.faq-search svg {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.faq-section { margin-bottom: 48px; }
.faq-section h2 {
  font-size: 22px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.faq-section h2 .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.06em;
}
.faq-section .desc { font-size: 14.5px; margin-bottom: 22px; color: var(--text-3); }

details.qa {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 12px;
  transition: all 0.15s;
  overflow: hidden;
}
details.qa[open] { border-color: var(--border-strong); background: var(--surface-2); }
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "";
  width: 12px; height: 12px;
  flex: none;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
details.qa[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent); }
details.qa summary:hover { color: var(--accent); }
details.qa .answer {
  padding: 0 22px 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  border-top: 1px dashed var(--border);
  margin-top: 0;
  padding-top: 18px;
}
details.qa .answer p { color: var(--text-2); margin-bottom: 10px; }
details.qa .answer p:last-child { margin-bottom: 0; }
details.qa .answer code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
details.qa .answer ol, details.qa .answer ul {
  margin: 8px 0 8px 20px;
  color: var(--text-2);
}
details.qa .answer li { margin-bottom: 6px; }

.helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
.helpful button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.helpful button:hover { color: var(--accent); border-color: var(--accent); }

.contact-card {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 14%, var(--bg-2)), var(--bg-2));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { font-size: 14.5px; color: var(--text-2); }
.contact-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===========================================================
   Articles List — page-specific styles (from articles.html)
   =========================================================== */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 36px;
  align-items: center;
}
.tabs .label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
}
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font-zh);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.is-active { background: var(--accent); color: #04121a; border-color: var(--accent); font-weight: 600; }
.tab .num { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* Featured */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 56px;
  position: relative;
}
.featured-cover {
  min-height: 360px;
  position: relative;
  background:
    radial-gradient(500px 300px at 30% 30%, color-mix(in oklch, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(400px 300px at 70% 80%, color-mix(in oklch, var(--accent-2) 35%, transparent), transparent 60%),
    var(--bg-3);
  overflow: hidden;
}
.cover-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.cover-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
}
.cover-shapes {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 12px;
}
.cover-shapes .stack {
  display: grid; gap: 16px;
  text-align: center;
}
.cover-shapes .ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 12%, transparent),
              0 0 0 24px color-mix(in oklch, var(--accent) 6%, transparent),
              0 0 30px var(--accent);
  margin: 0 auto;
  position: relative;
}
.cover-shapes .ring::before, .cover-shapes .ring::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.cover-shapes .ring::before { top: -7px; left: 50%; margin-left: -7px; }
.cover-shapes .ring::after { bottom: -7px; right: 30%; }

.featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.featured-meta .pill {
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.featured-body h2 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.25;
}
.featured-body h2 a:hover { color: var(--accent); }
.featured-body p { font-size: 15.5px; margin-bottom: 24px; line-height: 1.65; }
.featured-author {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
}
.featured-author .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #04121a; font-weight: 700; font-size: 13px;
}

@media (max-width: 800px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-cover { min-height: 240px; }
  .featured-body { padding: 28px; }
  .featured-body h2 { font-size: 24px; }
}

/* Article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.acard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}
.acard:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.acard-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
}
.acard-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}
.acard-cover .glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}
.acard-cover .ico {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  z-index: 1;
}
.acard-cover .ico-shape {
  width: 88px; height: 88px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--accent);
  backdrop-filter: blur(10px);
}
.acard-cover .cat-pill {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: rgba(7,9,26,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-2);
  z-index: 2;
}

/* Cover variants */
.cv-tutorial { background: linear-gradient(135deg, oklch(0.28 0.08 230), oklch(0.18 0.08 200)); }
.cv-tutorial .glow { background: var(--accent); top: -40px; right: -40px; }
.cv-privacy { background: linear-gradient(135deg, oklch(0.22 0.08 280), oklch(0.16 0.08 320)); }
.cv-privacy .glow { background: oklch(0.7 0.18 320); bottom: -40px; left: -40px; }
.cv-tech { background: linear-gradient(135deg, oklch(0.2 0.08 180), oklch(0.16 0.06 160)); }
.cv-tech .glow { background: oklch(0.78 0.16 160); top: 50%; left: -40px; }
.cv-stream { background: linear-gradient(135deg, oklch(0.26 0.1 30), oklch(0.18 0.08 0)); }
.cv-stream .glow { background: oklch(0.75 0.2 30); bottom: -40px; right: -40px; }
.cv-news { background: linear-gradient(135deg, oklch(0.22 0.06 90), oklch(0.16 0.05 70)); }
.cv-news .glow { background: oklch(0.82 0.16 70); top: -40px; left: 50%; }

.acard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.acard-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.acard-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  opacity: 0.6;
}
.acard h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.acard h3 a:hover { color: var(--accent); }
.acard p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 18px;
  flex: 1;
}
.acard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
.acard-foot .author { display: flex; align-items: center; gap: 8px; }
.acard-foot .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #04121a;
}
.acard-foot .read { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0 12px;
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .is-current { background: var(--accent); color: #04121a; border-color: var(--accent); font-weight: 700; }
.pagination .ellipsis { border: none; background: transparent; }

/* Sidebar list section */
.list-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .list-layout { grid-template-columns: 1fr; } }

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.side-card h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.popular-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.popular-list li { display: flex; gap: 12px; }
.popular-list .rank {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
  width: 22px;
  line-height: 1.2;
}
.popular-list a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
}
.popular-list a:hover { color: var(--accent); }
.popular-list .meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 11px;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.15s;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); }

.newsletter {
  padding: 22px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 12%, var(--bg-2)), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.newsletter h4 { color: var(--text); font-size: 16px; letter-spacing: -0.01em; margin-bottom: 6px; text-transform: none; }
.newsletter p { font-size: 13px; margin-bottom: 14px; }
.newsletter .field { padding: 10px 14px; font-size: 14px; margin-bottom: 10px; }
.newsletter .btn { width: 100%; padding: 10px; }

/* ===========================================================
   Article Detail — page-specific styles (from article.html)
   =========================================================== */

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 240px;
  gap: 56px;
  padding: 32px 0 80px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { display: none; }
}

.toc {
  position: sticky;
  top: 92px;
}
.toc h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); background: var(--surface); }

.toc-side {
  position: sticky;
  top: 92px;
}
.toc-side .actions {
  display: grid; gap: 8px;
}
.toc-side h4 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.share-btn:hover { border-color: var(--border-strong); color: var(--text); }
.reactions {
  display: flex; gap: 8px;
  margin-bottom: 20px;
}
.reactions button {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.15s;
}
.reactions button:hover { color: var(--accent); border-color: var(--accent); }
.reactions .num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }

/* Article body */
article.post {
  font-family: var(--font-zh);
  color: var(--text);
}
.post-head { margin-bottom: 36px; }
.post-cat {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.post-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  margin-bottom: 22px;
  text-wrap: pretty;
  letter-spacing: -0.02em;
}
.post-meta {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.post-meta .author { display: flex; align-items: center; gap: 10px; }
.post-meta .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #04121a; font-weight: 700;
}
.post-meta .author-info .n { font-weight: 600; }
.post-meta .author-info .r { font-size: 12px; color: var(--text-3); }
.post-meta .div { width: 1px; height: 24px; background: var(--border); }
.post-meta .item { color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.post-meta .item strong { color: var(--text-2); font-weight: 500; }

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  background:
    radial-gradient(700px 400px at 30% 30%, color-mix(in oklch, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(500px 400px at 80% 80%, color-mix(in oklch, var(--accent-2) 28%, transparent), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border-strong);
  position: relative;
  display: grid; place-items: center;
}
.post-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.post-cover .cover-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cover-stack {
  display: flex; gap: 18px; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.cover-pill {
  padding: 14px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  color: var(--text);
  backdrop-filter: blur(10px);
}
.cover-pill.accent {
  background: var(--accent);
  color: #04121a;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 30px var(--accent);
}
.cover-arrow {
  color: var(--accent);
  font-size: 22px;
}
.cover-tag {
  position: absolute; top: 18px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  z-index: 2;
}

/* Prose */
.prose { font-family: var(--font-zh); }
.prose p, .prose ul, .prose ol, .prose blockquote {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 22px;
}
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; color: var(--text); }
.prose .lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 32px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}
.prose h2 {
  font-size: 26px;
  margin: 56px 0 18px;
  scroll-margin-top: 92px;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 20px;
  margin: 36px 0 14px;
  scroll-margin-top: 92px;
}
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--accent); font-style: normal; font-weight: 600; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
  transition: all 0.15s;
}
.prose a:hover { color: #fff; background: var(--accent-soft); }
.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--accent);
}
.prose blockquote {
  padding: 18px 24px;
  border-left: 3px solid var(--text-3);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  color: var(--text-2);
  font-style: italic;
}
.prose pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  overflow-x: auto;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
}
.prose pre code .kw { color: oklch(0.78 0.18 320); }
.prose pre code .str { color: oklch(0.82 0.16 130); }
.prose pre code .com { color: var(--text-3); }
.prose pre code .num { color: oklch(0.82 0.16 70); }

.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
  margin: 0 0 22px;
}
.callout svg { color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 0 0 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-2);
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-transform: uppercase;
}
.compare-table td:first-child { font-weight: 600; color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .ours {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}
.compare-table .other {
  color: var(--text-3);
  font-family: var(--font-mono);
}
.compare-table thead th.ours-h {
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 14%, var(--bg-2));
}

/* Tags & related */
.post-tags {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.post-tags a {
  padding: 5px 12px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  border-bottom: none;
}
.post-tags a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.author-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 36px;
}
.author-bio .av-l {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #04121a; font-weight: 700; font-size: 22px;
  flex: none;
}
.author-bio h4 { font-size: 17px; margin-bottom: 4px; }
.author-bio .role { color: var(--text-3); font-size: 13px; margin-bottom: 10px; }
.author-bio p { font-size: 14px; color: var(--text-2); margin: 0; }

/* Related */
.related-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 22px; margin-bottom: 24px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.related-card:hover { border-color: var(--border-strong); }
.related-card .cat {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.related-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 10px;
  font-family: var(--font-zh);
}
.related-card .meta {
  font-size: 12px;
  color: var(--text-3);
}

/* Reading progress bar */
.progress {
  position: fixed;
  top: 68px; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 49;
  transition: width 0.1s;
  box-shadow: 0 0 8px var(--accent);
}
