/* 链上自习室 · v7 stylesheet · 2026-05-17
   极致 dark · Web3 现代 · gradient glow · frosted glass.
   No external fonts. No CDN. Pure local. */

:root {
  --bg: #060713;
  --bg-1: #0A0E1F;
  --bg-2: #11162A;
  --bg-3: #1A2138;
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-accent: rgba(167, 139, 250, 0.35);

  --ink: #F2F2F5;
  --ink-1: #D4D4D8;
  --ink-2: #9CA3AF;
  --ink-3: #6B7280;
  --ink-4: #4B5563;

  --emerald: #34D399;
  --emerald-soft: #6EE7B7;
  --emerald-deep: #059669;
  --violet: #A78BFA;
  --violet-soft: #C4B5FD;
  --violet-deep: #7C3AED;
  --amber: #FBBF24;
  --amber-soft: #FCD34D;
  --rose: #F87171;
  --cyan: #67E8F9;

  --grad-1: linear-gradient(110deg, #C4B5FD 0%, #A78BFA 18%, #67E8F9 38%, #34D399 60%, #FBBF24 80%, #F472B6 100%);
  --grad-2: linear-gradient(135deg, #67E8F9 0%, #A78BFA 50%, #F472B6 100%);
  --grad-3: linear-gradient(120deg, #F472B6 0%, #FBBF24 100%);
  --grad-emerald: linear-gradient(135deg, #6EE7B7 0%, #34D399 50%, #10B981 100%);
  --grad-violet: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 50%, #7C3AED 100%);
  --grad-cool: linear-gradient(135deg, #67E8F9 0%, #818CF8 50%, #A78BFA 100%);

  --glow-emerald: 0 0 40px rgba(52, 211, 153, 0.35);
  --glow-violet: 0 0 40px rgba(167, 139, 250, 0.35);
  --glow-amber: 0 0 32px rgba(251, 191, 36, 0.35);

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glass: 0 1px 0 rgba(255,255,255,0.06) inset, 0 0 0 1px var(--line);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  overflow-x: hidden;
}

/* AURORA BACKGROUND — multi-layer mesh gradient */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after,
.aurora .a1, .aurora .a2, .aurora .a3 {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}
.aurora::before {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.40), transparent 70%);
  animation: aurora-drift1 22s ease-in-out infinite;
}
.aurora::after {
  top: 30%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 70%);
  animation: aurora-drift2 28s ease-in-out infinite;
}
.aurora .a1 {
  bottom: -15%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
  animation: aurora-drift3 32s ease-in-out infinite;
}
.aurora .a2 {
  top: 50%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.12), transparent 70%);
  animation: aurora-drift1 26s ease-in-out infinite reverse;
}
.aurora .a3 {
  top: 10%;
  right: 30%;
  width: 25vw;
  height: 25vw;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.10), transparent 70%);
  animation: aurora-drift2 30s ease-in-out infinite reverse;
}
@keyframes aurora-drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, 4%) scale(1.08); }
  66% { transform: translate(-4%, 6%) scale(0.95); }
}
@keyframes aurora-drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, -8%) scale(1.1); }
}
@keyframes aurora-drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(5%, -5%) scale(1.05); }
  80% { transform: translate(-3%, 4%) scale(0.92); }
}

/* GRID noise on top */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 1  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 1;
  mix-blend-mode: screen;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at center 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at center 30%, black 0%, transparent 75%);
}

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

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s, opacity 0.18s;
}
a:hover { color: var(--emerald-soft); }

::selection { background: var(--violet); color: var(--bg); }

p { margin: 0 0 1.1em; color: var(--ink-1); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--ink-4); }

strong { color: var(--ink); font-weight: 600; }
em { color: var(--ink); font-style: italic; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 5em 0; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace; font-size: 0.92em; }
code {
  background: rgba(167, 139, 250, 0.10);
  padding: 0.16em 0.46em;
  border-radius: 4px;
  color: var(--violet-soft);
  border: 1px solid rgba(167, 139, 250, 0.18);
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.18;
}

/* ============ LAYOUT ============ */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 19, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}
.brand {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 900;
  font-size: 0.92rem;
  box-shadow: var(--glow-violet);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: var(--grad-1);
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
}
.brand-sub { display: none; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-2);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-glass-hover);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-glass-hover); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 1px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.hero-content {
  padding: 80px 80px 80px 80px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}
.hero-tag .live {
  display: inline-flex;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 var(--emerald);
  animation: livepulse 2s ease-in-out infinite;
}
.hero-tag .sep { color: var(--ink-4); }
.hero-tag b { color: var(--ink-1); font-weight: 500; }
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(3rem, 8.2vw, 7.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 36px;
  max-width: 14ch;
}
.hero h1 .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 280% 280%;
  animation: gradShift 7s ease-in-out infinite;
  display: inline-block;
}
.hero h1 .grad-v {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 240% 240%;
  animation: gradShift 9s ease-in-out infinite reverse;
  display: inline-block;
}
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px rgba(242, 242, 245, 0.5);
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .deck {
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 54ch;
}
.hero .deck strong {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, rgba(167, 139, 250, 0.22) 60%);
  padding: 0 2px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 0.3s var(--ease), background 0.3s;
  cursor: pointer;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: var(--grad-1);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(12px);
}
.btn-glow::after {
  content: "→";
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.3s var(--ease);
}
.btn-glow:hover {
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-glow:hover::before { opacity: 0.6; }
.btn-glow:hover::after { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  background: var(--bg-glass);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-glass-hover);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.hero-foot {
  margin-top: 32px;
  font-family: ui-monospace, monospace;
  font-size: 0.96rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  letter-spacing: -0.005em;
}
.hero-foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.hero-foot a:hover { color: var(--violet-soft); text-decoration-color: var(--violet); }
.hero-foot .sep { color: var(--ink-4); }

/* HERO ARTWORK (right side) */
.hero-art {
  position: relative;
  height: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-art svg.orb-set {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(167, 139, 250, 0.3));
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

/* HERO STAT STRIP at bottom of hero */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(6, 7, 19, 0.65);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
}
.hero-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-1);
  background-size: 200% 100%;
  opacity: 0.4;
  animation: gradShift 6s ease-in-out infinite;
}
.hero-stats .item {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
  transition: background 0.2s;
}
.hero-stats .item:last-child { border-right: 0; }
.hero-stats .item:hover { background: var(--bg-glass-hover); }
.hero-stats .item .n {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero-stats .item .n.grad {
  background: var(--grad-1);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 10s ease-in-out infinite;
}
.hero-stats .item .l { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.02em; }

/* ============ PROMO STRIP (双邀请醒目卡) ============ */
.promo-strip {
  margin: 80px 0 40px;
  position: relative;
}
.promo-strip .promo-head {
  margin-bottom: 28px;
}
.promo-strip .promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.promo-strip .promo-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad-3);
}
.promo-strip .promo-h {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 22ch;
}
.promo-strip .promo-h .grad {
  background: var(--grad-1);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}
.promo-strip .promo-deck {
  font-size: 1.04rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 32px;
}
.promo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
}
@media (max-width: 860px) {
  .promo-grid { grid-template-columns: 1fr; }
}

.promo-card {
  position: relative;
  padding: 36px 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(167, 139, 250, 0.6), transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 2;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}
.promo-card:hover::before { opacity: 1; }

/* exchange card (OKX 主站,紫色 + 金色 glow) */
.promo-card.exchange {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(244, 114, 182, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 80% at 0% 100%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(251, 191, 36, 0.10), transparent 70%),
    var(--bg-glass);
}
.promo-card.exchange::after {
  content: "OKX";
  position: absolute;
  right: -30px;
  bottom: -90px;
  font-size: 18rem;
  font-weight: 900;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.06;
  letter-spacing: -0.06em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* wallet card (OKX Web3,emerald + cyan glow) */
.promo-card.wallet {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(103, 232, 249, 0.14), transparent 65%),
    radial-gradient(ellipse 80% 80% at 0% 100%, rgba(52, 211, 153, 0.16), transparent 60%),
    var(--bg-glass);
}
.promo-card.wallet::after {
  content: "Web3";
  position: absolute;
  right: -20px;
  bottom: -80px;
  font-size: 14rem;
  font-weight: 900;
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.08;
  letter-spacing: -0.05em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.promo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.promo-card .promo-label {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.promo-card .promo-label .small {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
  font-family: -apple-system, sans-serif;
  font-weight: 400;
}
.promo-card .promo-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.promo-card .promo-code .copy {
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.promo-big {
  display: flex;
  align-items: baseline;
  gap: 16px;
  position: relative;
  z-index: 1;
  margin: 8px 0;
}
.promo-big .big-n {
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: var(--grad-1);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
.promo-big .big-n .pct {
  font-size: 0.6em;
  margin-left: 4px;
}
.promo-big .big-icon {
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  line-height: 1;
  background: var(--grad-cool);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite;
  font-weight: 900;
}
.promo-big .big-label {
  font-size: 1.04rem;
  color: var(--ink-1);
  font-weight: 500;
  line-height: 1.3;
  max-width: 14ch;
}

.promo-card .promo-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}
.promo-card .promo-desc strong { color: var(--amber); font-weight: 600; }

.promo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  position: relative;
  z-index: 1;
}
.promo-cta .cta-text {
  font-family: ui-monospace, monospace;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.promo-cta .cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-1);
  background-size: 200% 200%;
  animation: gradShift 5s ease-in-out infinite;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease);
}
.promo-card.wallet .cta-arrow { background: var(--grad-cool); background-size: 200% 200%; }
.promo-card:hover .cta-arrow { transform: translateX(4px) rotate(-8deg); }

.promo-disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.promo-disclaimer a { color: var(--violet-soft); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }

/* ============ MARQUEE (top scroll band) ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(6, 7, 19, 0.55);
  backdrop-filter: blur(12px);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, monospace;
  font-size: 0.92rem;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.marquee-item em { color: var(--violet-soft); font-style: normal; font-weight: 600; }
.marquee-item .em { color: var(--emerald); font-style: normal; }
.marquee-item .am { color: var(--amber); font-style: normal; }
.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-1);
  background-size: 200% 200%;
  animation: gradShift 4s ease-in-out infinite;
  display: inline-block;
  margin: 0 16px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION ============ */
section { padding: 100px 0; position: relative; }
section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--violet-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
section .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad-1);
}
section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 24px;
  max-width: 22ch;
}
section h2 .grad { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section h2 .grad-e { background: var(--grad-emerald); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section .lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0 0 40px;
}
section .lead strong { color: var(--ink); }

/* ============ BENTO GRID for article list ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
  margin: 32px 0 0;
}
.bento-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(167, 139, 250, 0.5), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}
.bento-card .num {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bento-card .num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad-1);
  background-size: 200% 100%;
  animation: gradShift 6s ease-in-out infinite;
}
.bento-card .num .big {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-family: -apple-system, sans-serif;
  background: var(--grad-1);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 8s ease-in-out infinite;
  margin-left: 4px;
}
.bento-card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink);
}
.bento-card:hover h3 { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento-card p {
  font-size: 0.96rem;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.6;
}
.bento-card .meta {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bento-card .meta .arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 0.85rem;
  transition: all 0.3s var(--ease);
}
.bento-card:hover .arrow { background: var(--grad-1); color: var(--bg); transform: translateX(4px); }

/* bento grid layout: featured large + 4 medium */
.bento .b1 { grid-column: span 6; grid-row: span 2; min-height: 320px; padding: 36px 40px; }
.bento .b1 h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 18ch; }
.bento .b1 p { font-size: 1.06rem; max-width: 56ch; }
.bento .b1 .num { font-size: 0.86rem; }
.bento .b2 { grid-column: span 3; }
.bento .b3 { grid-column: span 3; }
.bento .b4 { grid-column: span 3; }
.bento .b5 { grid-column: span 3; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: span 1; grid-row: auto; min-height: 0; }
}

/* glow accent on b1 (most important card) */
.bento .b1 {
  background:
    radial-gradient(ellipse 70% 80% at 90% 100%, rgba(244, 114, 182, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 70% at 0% 10%, rgba(103, 232, 249, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 0%, rgba(251, 191, 36, 0.10), transparent 65%),
    var(--bg-glass);
}
.bento .b1::after {
  content: "01";
  position: absolute;
  right: -50px;
  bottom: -140px;
  font-size: 26rem;
  font-weight: 900;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.08;
  letter-spacing: -0.05em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

/* ============ TERMINAL-STYLE TX HASH STRIP ============ */
.terminal {
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 14, 31, 0.7);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.terminal-head .dots { display: flex; gap: 6px; }
.terminal-head .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-4);
  display: inline-block;
}
.terminal-head .dots i:nth-child(1) { background: #F87171; }
.terminal-head .dots i:nth-child(2) { background: #FBBF24; }
.terminal-head .dots i:nth-child(3) { background: #34D399; }
.terminal-head .title {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-left: 12px;
}
.terminal-body {
  padding: 22px 26px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--ink-2);
}
.terminal-body .row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 18px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.terminal-body .row:last-child { border-bottom: 0; }
.terminal-body .row .ts { color: var(--violet-soft); letter-spacing: 0.02em; }
.terminal-body .row .ev { color: var(--ink-1); }
.terminal-body .row .ev .em { color: var(--emerald); }
.terminal-body .row .ev .am { color: var(--amber); }
.terminal-body .row .badge {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-glass-hover);
  color: var(--ink-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .terminal-body { padding: 16px 18px; font-size: 0.78rem; }
  .terminal-body .row { grid-template-columns: 110px 1fr; }
  .terminal-body .row .badge { display: none; }
}

/* ============ DECLARATION BLOCK ============ */
.declare {
  margin: 32px 0 0;
  padding: 36px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.declare::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(52, 211, 153, 0.10), transparent 60%);
  pointer-events: none;
}
.declare > * { position: relative; z-index: 1; }
.declare h3 { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.declare ul { margin: 18px 0; padding-left: 0; list-style: none; }
.declare ul li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ink-1);
}
.declare ul li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--rose);
  font-weight: 700;
}
.declare ul li.do::before { content: "✓"; color: var(--emerald); }
.declare .deck { color: var(--ink-2); }
.declare .deck a { color: var(--violet-soft); text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }

/* RISK warn box */
.risk {
  margin: 32px 0 0;
  padding: 26px 32px;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(248, 113, 113, 0.02));
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.risk::before {
  content: "⚠";
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 1.6rem;
  color: var(--rose);
  opacity: 0.4;
}
.risk strong { color: var(--rose); font-weight: 700; }

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 120px;
  padding: 64px 0 36px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9rem;
  position: relative;
}
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.18s;
}
.site-footer a:hover { color: var(--violet-soft); }
.site-footer .footer-brand { font-size: 0.94rem; line-height: 1.65; color: var(--ink-3); margin-top: 14px; }
.site-footer .disclosure {
  margin-top: 48px;
  padding: 22px 26px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.site-footer .disclosure strong { color: var(--ink); }
.site-footer .disclosure a { color: var(--violet-soft); }
.site-footer .copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ ARTICLE BODY (keeps v6 minimal but adapted to v7 dark glass) ============ */
.article-body { padding: 56px 0 80px; }
.article-body .crumb {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.article-body .crumb a { color: var(--ink-3); }
.article-body .crumb a:hover { color: var(--violet-soft); }
.article-body h1 {
  font-size: clamp(1.95rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 22px;
}
.article-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 2.8em 0 0.7em;
  position: relative;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--grad-1);
  border-radius: 2px;
}
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8em 0 0.4em; }
.article-body .lead { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 32px; }
.article-body .meta {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 0 0 40px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.article-body .meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-body .meta span::before { content: "·"; color: var(--ink-4); }
.article-body .meta span:first-child::before { content: none; }
.article-body a { color: var(--violet-soft); text-decoration: underline; text-decoration-color: rgba(167,139,250,0.45); text-underline-offset: 4px; }
.article-body a:hover { color: var(--emerald-soft); }

/* cover-illustration kept for dark mode */
.article-body .cover.cover-illustration {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 2em 0 2.4em;
  overflow: hidden;
  position: relative;
}
.article-body .cover.cover-illustration::before { display: none; }
.article-body .cover figcaption {
  padding: 14px 22px;
  font-size: 0.84rem;
  color: var(--ink-3);
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--line);
  font-family: ui-monospace, monospace;
}

/* article tables: dark glass */
.article-body .table-wrap {
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}
.article-body table.compare { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.article-body table.compare th, .article-body table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
  vertical-align: top;
}
.article-body table.compare th {
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-body table.compare tr:last-child td { border-bottom: 0; }
.article-body table.compare tbody tr:hover { background: rgba(167, 139, 250, 0.04); }

/* hands-on terminal style */
.article-body .handson {
  margin: 2.2em 0;
  padding: 22px 26px;
  background: rgba(10,14,31,0.6);
  border: 1px solid var(--line);
  border-left: 2px solid var(--emerald);
  border-radius: 12px;
  color: var(--ink-1);
  font-family: -apple-system, sans-serif;
  backdrop-filter: blur(10px);
}
.article-body .handson-head {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--emerald);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.article-body .handson-date {
  font-family: ui-monospace, monospace;
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

/* TOC */
.article-body .toc {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  font-size: 0.94rem;
}
.article-body .toc-title { font-family: ui-monospace,monospace; font-size: 0.78rem; color: var(--violet-soft); letter-spacing: 0.04em; margin-bottom: 12px; display: flex; justify-content: space-between; }
.article-body .toc ol { margin: 0; padding-left: 1.4em; list-style: decimal; }
.article-body .toc ol li::marker { color: var(--ink-4); font-family: ui-monospace,monospace; }
.article-body .toc a { color: var(--ink-1); text-decoration: none; }
.article-body .toc a:hover { color: var(--emerald-soft); }
.article-body .toc a.active { color: var(--emerald); font-weight: 700; }

/* boxes for article */
.article-body .box {
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-1);
  backdrop-filter: blur(10px);
}
.article-body .box.warn { border-left: 2px solid var(--rose); background: linear-gradient(135deg, rgba(248,113,113,0.06), var(--bg-glass)); }
.article-body .box.good { border-left: 2px solid var(--emerald); background: linear-gradient(135deg, rgba(52,211,153,0.06), var(--bg-glass)); }
.article-body .box.tldr { border-left: 2px solid var(--violet); background: linear-gradient(135deg, rgba(167,139,250,0.06), var(--bg-glass)); }
.article-body .box-title { font-family: ui-monospace,monospace; font-size: 0.76rem; letter-spacing: 0.06em; margin-bottom: 10px; text-transform: uppercase; color: var(--violet-soft); }
.article-body .box.warn .box-title { color: var(--rose); }
.article-body .box.good .box-title { color: var(--emerald); }
.article-body .box strong { color: var(--ink); }

/* decision */
.article-body .decision { margin: 2em 0; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.article-body .decision .q { color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.article-body .decision .a { color: var(--ink-2); margin-bottom: 18px; padding-left: 16px; position: relative; }
.article-body .decision .a::before { content: "→"; position: absolute; left: 0; color: var(--emerald); }

/* steps */
.article-body .steps { counter-reset: step; list-style: none; padding: 0; margin: 2em 0; }
.article-body .steps li {
  position: relative;
  padding: 12px 0 16px 64px;
  counter-increment: step;
  border-bottom: 1px solid var(--line);
}
.article-body .steps li:last-child { border-bottom: 0; }
.article-body .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  width: 40px;
  height: 26px;
  font-family: ui-monospace,monospace;
  font-size: 0.86rem;
  color: var(--emerald);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.article-body .steps li strong { color: var(--ink); }

/* FAQ */
.article-body .faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.article-body .faq details:last-child { border-bottom: 1px solid var(--line); }
.article-body .faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.article-body .faq summary::-webkit-details-marker { display: none; }
.article-body .faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--violet-soft);
  font-size: 1.3rem;
  font-weight: 400;
}
.article-body .faq details[open] summary::after { content: "−"; color: var(--emerald); }
.article-body .faq details[open] summary { margin-bottom: 12px; }
.article-body .faq details p { color: var(--ink-2); margin-bottom: 0; }

/* byline */
.article-body .byline {
  margin: 3em 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
}
.article-body .byline-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--grad-1);
  color: var(--bg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--glow-violet);
}
.article-body .byline strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* byline v2 — 林知行 主编版 (avatar + body) */
.article-body .byline {
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0 4px;
  margin-top: 3.6em;
  position: relative;
}
.article-body .byline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.article-body .byline-avatar-link {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(123, 97, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
  position: relative;
  background: var(--bg-2);
}
.article-body .byline-avatar-link:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 40px -10px rgba(123, 97, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.article-body .byline-avatar-img,
.article-body .byline-avatar-img svg {
  display: block;
  width: 100%;
  height: 100%;
}
.article-body .byline-body { min-width: 0; }
.article-body .byline-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.article-body .byline-name a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.article-body .byline-name a:hover {
  color: var(--violet-soft);
  border-bottom-color: var(--violet-soft);
}
.article-body .byline-role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--violet-soft);
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.article-body .byline-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.article-body .byline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0.82rem;
  color: var(--ink-3);
  align-items: center;
}
.article-body .byline-meta .byline-date { color: var(--ink-3); }
.article-body .byline-meta a {
  color: var(--violet-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(123, 97, 255, 0.4);
}
.article-body .byline-meta a:hover { border-bottom-style: solid; }
.article-body .byline-sep {
  color: var(--ink-4, var(--ink-3));
  opacity: 0.5;
  padding: 0 4px;
}
@media (max-width: 640px) {
  .article-body .byline {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .article-body .byline-avatar-link { width: 60px; height: 60px; }
  .article-body .byline-meta { font-size: 0.78rem; gap: 4px; }
  .article-body .byline-role { display: inline-block; margin-left: 0; margin-top: 4px; vertical-align: 0; }
}

/* author hero (author profile page) */
.author-hero {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 38px;
  align-items: center;
  padding: 36px 0 40px;
  margin: 8px 0 32px;
  border-bottom: 1px solid var(--line);
}
.author-avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(123, 97, 255, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  background: var(--bg-2);
  animation: avatarFloat 6s ease-in-out infinite;
}
.author-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(123,97,255,0.4), rgba(255,122,89,0.3), rgba(63,107,92,0.35), rgba(123,97,255,0.4));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.7;
  animation: avatarRing 12s linear infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes avatarRing {
  to { transform: rotate(360deg); }
}
.author-avatar svg { width: 100%; height: 100%; display: block; }
.author-meta { min-width: 0; }
.author-role-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-soft);
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.32);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.author-meta h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.1;
}
.author-pen {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 4px;
}
.author-meta .lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.author-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.author-stats li {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.author-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  background: var(--grad-1, linear-gradient(135deg, #3F6B5C, #7B61FF, #FF7A59));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.author-articles {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  display: grid;
  gap: 12px;
}
.author-articles li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.author-articles li:hover {
  border-color: rgba(123, 97, 255, 0.5);
  transform: translateX(4px);
  background: rgba(123, 97, 255, 0.04);
}
.author-articles a {
  text-decoration: none;
  color: var(--ink-2);
  display: block;
}
.author-articles a strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding-top: 24px;
  }
  .author-avatar { width: 140px; height: 140px; margin: 0 auto; }
  .author-stats { justify-content: center; }
}

/* about page · Editorial Lead card */
.about-lead-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0 36px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 122, 89, 0.06), transparent 55%),
    var(--bg-glass);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.about-lead-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.4), rgba(63, 107, 92, 0.3) 45%, rgba(255, 122, 89, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}
.about-lead-card:hover { transform: translateY(-2px); border-color: rgba(123, 97, 255, 0.4); }
.about-lead-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  box-shadow:
    0 20px 40px -16px rgba(123, 97, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.about-lead-avatar:hover { transform: scale(1.06) rotate(-2deg); }
.about-lead-avatar svg { width: 100%; height: 100%; display: block; }
.about-lead-body { min-width: 0; }
.about-lead-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-soft);
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.about-lead-name {
  font-size: 1.45rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.2;
}
.about-lead-pen {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.about-lead-body p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.about-lead-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(123, 97, 255, 0.4);
  transition: border-color 0.2s, transform 0.2s;
}
.about-lead-link:hover {
  border-bottom-style: solid;
  transform: translateX(2px);
}
@media (max-width: 640px) {
  .about-lead-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 22px 20px;
  }
  .about-lead-avatar { width: 100px; height: 100px; margin: 0 auto; }
}

/* corrections (used on corrections.html) */
.correction {
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: 12px;
  background: var(--bg-glass);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.correction-meta { font-family: ui-monospace,monospace; font-size: 0.84rem; color: var(--ink-3); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.correction-meta strong { color: var(--violet-soft); }
.correction-diff { display: grid; gap: 10px; }
.correction-diff .old, .correction-diff .new {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
  border-left: 2px solid;
}
.correction-diff .old { background: rgba(248,113,113,0.06); border-color: var(--rose); color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(248,113,113,0.5); }
.correction-diff .new { background: rgba(52,211,153,0.06); border-color: var(--emerald); color: var(--ink); }
.correction-diff .old strong { color: var(--rose); }
.correction-diff .new strong { color: var(--emerald); }
.correction-reason { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-2); }

/* glossary */
.glossary-list dt { color: var(--ink); font-weight: 600; margin-top: 1.4em; }
.glossary-list dt:first-child { margin-top: 0; }
.glossary-list dd { margin: 6px 0 0; padding-left: 16px; border-left: 1px solid var(--line); color: var(--ink-2); }

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--emerald);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: transparent; z-index: 100; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--grad-1); box-shadow: 0 0 16px rgba(167, 139, 250, 0.6); transition: width 0.08s linear; }

/* focus */
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }

/* ============ V9 CINEMATIC UPGRADES ============ */

/* Cursor halo (follows mouse) */
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), rgba(52, 211, 153, 0.08) 40%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.cursor-halo.active { opacity: 1; }
@media (max-width: 1024px), (pointer: coarse) {
  .cursor-halo { display: none; }
}

/* Hero top live ticker */
.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  max-width: 100%;
}
.hero-ticker .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: livepulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-ticker .ticker-label {
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
}
.hero-ticker .ticker-stream {
  display: inline-flex;
  gap: 0;
  overflow: hidden;
  max-width: 360px;
  -webkit-mask: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.hero-ticker .ticker-stream-inner {
  display: inline-flex;
  gap: 32px;
  animation: tickerSlide 36s linear infinite;
  white-space: nowrap;
}
.hero-ticker .ticker-item { color: var(--ink-1); display: inline-flex; gap: 6px; align-items: center; }
.hero-ticker .ticker-item em { color: var(--amber); font-style: normal; font-weight: 600; }
.hero-ticker .ticker-item .em { color: var(--emerald); font-style: normal; }
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mobile: hide decorative ticker & marquee on small screens (P1 fix) */
@media (max-width: 768px) {
  .hero-ticker, .marquee { display: none; }
}

/* Article body h1 clamp for 360px viewport (P1 fix) */
.article-body h1 {
  font-size: clamp(1.7rem, 5.6vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

/* Hero inline promo bar (above-the-fold 邀请码) */
.hero-promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 32px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(52, 211, 153, 0.06));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  font-size: 0.92rem;
  max-width: 720px;
  position: relative;
  overflow: hidden;
}
.hero-promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(52, 211, 153, 0.25), rgba(251, 191, 36, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-promo-bar .hpb-label {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}
.hero-promo-bar .hpb-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(251, 191, 36, 0.10));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
}
.hero-promo-bar .hpb-brand em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-promo-bar .hpb-big {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-1);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite;
  position: relative;
}
.hero-promo-bar .hpb-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}
.hero-promo-bar .hpb-code:hover {
  border-color: var(--violet);
  background: rgba(167, 139, 250, 0.14);
  color: var(--ink);
}
.hero-promo-bar .hpb-code .copy {
  font-size: 0.66rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.hero-promo-bar .hpb-sep {
  color: var(--ink-4);
  position: relative;
}
@media (max-width: 768px) {
  .hero-promo-bar { padding: 12px 14px; gap: 10px; }
  .hero-promo-bar .hpb-big { font-size: 1.18rem; }
}

/* GEO claim line (place under article lead) */
.geo-claim {
  margin: 0 0 28px;
  padding: 14px 20px;
  background: rgba(167, 139, 250, 0.06);
  border-left: 2px solid var(--violet);
  border-radius: 0 8px 8px 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
}
.geo-claim::before {
  content: "TL;DR";
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-soft);
  margin-right: 12px;
  padding: 2px 8px;
  background: rgba(167, 139, 250, 0.12);
  border-radius: 4px;
  vertical-align: 1px;
}
.geo-claim strong { color: var(--amber); font-weight: 600; }

/* responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 120px; }
  .hero-content { padding: 80px 32px 32px; }
  .hero-art { padding: 0 32px 60px; min-height: 400px; }
  .hero-stats { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .hero-content { padding: 56px 24px 24px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero .deck { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .item { padding: 16px 18px; }
  .hero-stats .item:nth-child(2) { border-right: 0; }
  .hero-stats .item:nth-child(1), .hero-stats .item:nth-child(2) { border-bottom: 1px solid var(--line); }
  section { padding: 64px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6,7,19,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    gap: 0;
  }
  .nav-links a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 0;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bento .b1 { padding: 26px 24px; }
  .declare { padding: 26px 24px; }
}
@media (max-width: 480px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .aurora::before, .aurora::after, .aurora .a1, .aurora .a2, .aurora .a3 { animation: none; }
}

/* print */
@media print {
  body { background: #fff; color: #000; }
  .aurora, .noise-overlay, .grid-overlay, .site-header, .site-footer, .scroll-progress { display: none; }
  a { color: #000; text-decoration: underline; }
}
