@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   Totality Festival — Cosmic Premium Design System
   日食音乐节主题 · 深空黑曜石 + 日冕金光 + 大气青色
   ============================================================ */

/* ----- CSS Custom Properties (DESIGN.md tokens) ----- */
:root {
  /* Surfaces */
  --surface: #121318;
  --surface-dim: #121318;
  --surface-bright: #38393f;
  --surface-container-lowest: #0d0e13;
  --surface-container-low: #1a1b21;
  --surface-container: #1e1f25;
  --surface-container-high: #292a2f;
  --surface-container-highest: #34343a;

  /* Content */
  --on-surface: #e3e1e9;
  --on-surface-variant: #d0c6ab;

  /* Primary — Solar Corona / Diamond Ring */
  --primary: #ffd700;
  --primary-active: #e9c400;
  --primary-glow: rgba(255, 215, 0, 0.3);
  --primary-glow-soft: rgba(255, 215, 0, 0.1);
  --primary-glow-subtle: rgba(255, 215, 0, 0.06);

  /* Secondary — Atmospheric Cyan */
  --secondary: #00e3fd;
  --secondary-glow: rgba(0, 227, 253, 0.3);
  --secondary-glow-soft: rgba(0, 227, 253, 0.08);
  --secondary-text: #bdf4ff;

  /* Tertiary — Midnight Indigo */
  --tertiary: #e7d1ff;
  --tertiary-container: #e7d1ff;

  /* Status */
  --success: #5db872;
  --warning: #d4a017;
  --error: #ffb4ab;

  /* Outlines */
  --outline: #999077;
  --outline-variant: #4d4732;

  /* Typography */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1280px;
  --gutter: 24px;

  /* Glass */
  --glass-nav: rgba(18, 19, 24, 0.85);
  --glass-card: rgba(52, 52, 58, 0.2);
  --glass-cta: rgba(52, 52, 58, 0.25);
  --glass-border-subtle: rgba(255, 255, 255, 0.06);
  --glass-border-gold: rgba(255, 215, 0, 0.15);
  --glass-blur-sm: blur(16px);
  --glass-blur-md: blur(20px);
  --glass-blur-lg: blur(24px);
}

/* ----- Reset ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ============================================================
   PARTICLE BACKGROUND
   ============================================================ */
.particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cosmic-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: cosmicFloat linear infinite;
}

@keyframes cosmicFloat {
  0%   { opacity: 0; transform: translateY(105vh) scale(0.3); }
  10%  { opacity: 0.15; }
  85%  { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}


/* ============================================================
   NAVIGATION — Eclipse Nav
   ============================================================ */
.eclipse-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-nav);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.eclipse-nav.scrolled {
  border-bottom: 1px solid var(--glass-border-gold);
  background: rgba(18, 19, 24, 0.92);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
}

.nav-brand {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-brand:hover {
  color: #fff6df;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-btn-pmo {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #4f6ef7, #6366f1);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px !important;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(79,110,247,0.3);
  animation: pmopulse 2.5s ease-in-out infinite;
}

.nav-btn-pmo:hover {
  background: linear-gradient(135deg, #3d5ce5, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(79,110,247,0.45);
  transform: translateY(-1px);
}

@keyframes pmopulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(79,110,247,0.3); }
  50% { box-shadow: 0 2px 24px rgba(79,110,247,0.5); }
}

.nav-links a:hover {
  color: var(--secondary-text);
}


/* ============================================================
   HERO — Corona Hero (日食视觉焦点)
   ============================================================ */
.corona-hero {
  position: relative;
  z-index: 1;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

/* Eclipse glow — large radial light behind hero */
.corona-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Secondary atmospheric glow */
.corona-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(0, 227, 253, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff6df;
  text-shadow:
    0 0 60px rgba(255, 215, 0, 0.3),
    0 0 120px rgba(255, 215, 0, 0.1);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--on-surface-variant);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Key numbers (stats) */
.eclipse-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.metric-item {
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}


/* ============================================================
   FLARE CTA — Diamond Ring Effect
   ============================================================ */
.flare-cta {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
}

.flare-card {
  position: relative;
  background: var(--glass-cta);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.flare-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.12);
}

.flare-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.15), rgba(0, 227, 253, 0.1), transparent);
  animation: flareSpin 6s linear infinite;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

@keyframes flareSpin {
  to { transform: rotate(360deg); }
}

.flare-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}

.flare-glow-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.05) 60%, transparent 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.flare-left h2 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: #fff6df;
  margin: 0 0 4px;
}

.flare-left p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0;
}

.flare-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.flare-btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--primary);
  color: #3a3000;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  white-space: nowrap;
}

.flare-btn:hover {
  background: var(--primary-active);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.flare-cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-surface-variant);
  background: var(--surface-container-lowest);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline-variant);
  word-break: break-all;
  max-width: 420px;
  text-align: right;
}


/* ============================================================
   TUTORIAL SECTIONS
   ============================================================ */
.tutorial-section {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px var(--gutter);
}

.section-heading {
  font-family: var(--font-headline);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: #fff6df;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--outline-variant);
  text-shadow: 0 0 30px rgba(255, 246, 223, 0.08);
}

/* Alternating card rows */
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.card-row.reverse {
  grid-template-columns: 1fr 1fr;
}

/* Tutorial Card — Level 2 Glass */
.tutorial-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--on-surface);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tutorial-card:hover {
  border-color: rgba(0, 227, 253, 0.3);
  box-shadow: 0 0 30px rgba(0, 227, 253, 0.06);
  transform: translateY(-2px);
}

/* Shimmer sweep on hover */
.tutorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(189, 244, 255, 0.04), transparent);
  transition: transform 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.tutorial-card:hover::before {
  transform: translateX(100%);
}

.card-icon {
  font-size: 1.5em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--on-surface-variant);
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Card large variant — removed, all cards equal */


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.cosmic-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cosmic-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   COSMIC TIMELINE — Reading Paths
   ============================================================ */
.cosmic-timeline {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto 80px;
  padding: 60px var(--gutter);
}

.cosmic-timeline .section-heading {
  margin-bottom: 40px;
}

.timeline-track {
  position: relative;
  padding-left: 40px;
}

/* Vertical line */
.timeline-track::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(255, 215, 0, 0.4) 0%,
    rgba(255, 215, 0, 0.15) 40%,
    rgba(255, 215, 0, 0.05) 70%,
    transparent 100%);
}

.timeline-node {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.timeline-node:hover {
  transform: translateX(4px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 227, 253, 0.06);
  border-color: rgba(0, 227, 253, 0.2);
}

/* Node dot */
.timeline-node::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline-node:hover::before {
  transform: scale(1.5);
}

.timeline-node.green::before {
  background: var(--success);
  box-shadow: 0 0 12px rgba(93, 184, 114, 0.5);
}

.timeline-node.yellow::before {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.5);
}

.timeline-node.red::before {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.timeline-node.blue::before {
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(0, 227, 253, 0.5);
}

.timeline-node:hover.green::before  { box-shadow: 0 0 20px rgba(93, 184, 114, 0.7); }
.timeline-node:hover.yellow::before { box-shadow: 0 0 20px rgba(212, 160, 23, 0.7); }
.timeline-node:hover.red::before    { box-shadow: 0 0 20px rgba(255, 215, 0, 0.7); }
.timeline-node:hover.blue::before   { box-shadow: 0 0 20px rgba(0, 227, 253, 0.7); }

.node-title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 600;
  color: #fff6df;
  margin-bottom: 6px;
}

.node-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.node-time {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.04em;
}


/* ============================================================
   FOOTER
   ============================================================ */
.cosmic-footer {
  position: relative;
  z-index: 1;
  background: #0a0b10;
  padding: 40px 20px 36px;
  text-align: center;
}

.cosmic-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
  margin-bottom: 32px;
}

.footer-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--secondary-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--on-surface);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .eclipse-nav {
    padding: 12px 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .corona-hero {
    min-height: 70vh;
    padding: 100px 16px 60px;
  }

  .corona-hero::before {
    width: 500px;
    height: 500px;
  }

  .corona-hero::after {
    width: 700px;
    height: 400px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .eclipse-metrics {
    gap: 32px;
  }

  /* Card rows become single column */
  .card-row,
  .card-row.reverse {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tutorial-card {
    padding: 18px 20px;
  }


  .flare-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .flare-right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .flare-cmd {
    flex: 1;
    text-align: left;
    font-size: 11px;
    max-width: 100%;
  }

  .timeline-track {
    padding-left: 32px;
  }

  .timeline-track::before {
    left: 11px;
  }

  .timeline-node::before {
    left: -29px;
    width: 10px;
    height: 10px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .eclipse-nav {
    padding: 10px 14px;
  }

  .nav-brand {
    font-size: 13px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .corona-hero {
    min-height: 60vh;
    padding: 90px 14px 50px;
  }

  .hero-title {
    font-size: clamp(28px, 10vw, 42px);
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .eclipse-metrics {
    gap: 24px;
  }

  .metric-value {
    font-size: clamp(22px, 6vw, 32px);
  }

  .metric-label {
    font-size: 12px;
  }

  .tutorial-section {
    padding: 40px 14px;
  }

  .section-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 15px !important;
  }

  .cosmic-timeline {
    padding: 40px 14px;
  }

  .timeline-track {
    padding-left: 28px;
  }

  .timeline-track::before {
    left: 9px;
  }

  .timeline-node {
    padding: 16px 18px;
  }

  .timeline-node::before {
    left: -25px;
    width: 8px;
    height: 8px;
    top: 24px;
  }

  .node-title {
    font-size: 15px;
  }

  .node-desc {
    font-size: 13px;
  }

  .flare-cta {
    padding: 0 14px;
    margin: 0 auto 50px;
  }

  .flare-card {
    padding: 18px;
    gap: 16px;
  }

  .flare-glow-dot {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .flare-left h2 {
    font-size: 16px;
  }

  .cosmic-footer {
    padding: 30px 14px;
  }

  .footer-links {
    gap: 14px;
  }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
  .corona-hero {
    padding: 140px 20px 100px;
  }

  .corona-hero::before {
    width: 1100px;
    height: 1100px;
  }

  .tutorial-section {
    padding: 80px var(--gutter);
  }

  .tutorial-card {
    padding: 28px 30px;
  }

  .card-title {
    font-size: 17px;
  }


  .flare-card {
    padding: 32px 40px;
  }

  .cosmic-timeline {
    padding: 80px var(--gutter);
  }
}


/* ============================================================
   ACCESSIBILITY — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tutorial-card:hover {
    transform: none !important;
  }

  .tutorial-card:hover::before {
    transform: none !important;
  }

  .timeline-node:hover {
    transform: none !important;
  }

  .flare-btn:hover {
    transform: none !important;
  }

  .cosmic-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   CONTENT PAGE STYLES (tutorial articles)
   ============================================================ */

.content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.content-card {
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
}

.content-card h1 {
  font-family: var(--font-headline);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: #fff6df;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 246, 223, 0.1);
}

.content-card h2 {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline-variant);
  scroll-margin-top: 80px;
}

.content-card h3 {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
}

.content-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff6df;
  margin: 16px 0 8px;
}

.content-card p {
  font-size: 15px;
  line-height: 1.8;
  margin: 10px 0;
}

.content-card a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s, text-shadow 0.15s;
}

.content-card a:hover {
  color: var(--secondary-text);
  text-shadow: 0 0 8px rgba(0, 227, 253, 0.2);
}

.content-card strong {
  color: #fff6df;
  font-weight: 600;
}

.content-card ul, .content-card ol {
  margin: 10px 0;
  padding-left: 24px;
}

.content-card li {
  font-size: 15px;
  line-height: 1.8;
  margin: 4px 0;
  color: var(--on-surface);
}

.content-card li::marker {
  color: var(--primary);
}

.content-card hr {
  border: none;
  border-top: 1px solid var(--outline-variant);
  margin: 28px 0;
}

.content-card blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 18px;
  margin: 14px 0;
  background: rgba(255, 215, 0, 0.04);
  color: var(--on-surface-variant);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
}

.content-card pre {
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-high);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.65;
}

.content-card code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.content-card :not(pre) > code {
  background: var(--surface-container-low);
  color: var(--secondary-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Tables */
.content-card .table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
}

.content-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 450px;
}

.content-card th {
  background: var(--surface-container-low);
  color: var(--primary);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--outline-variant);
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.content-card td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-border-subtle);
  color: var(--on-surface);
}

.content-card tr:hover td {
  background: rgba(255, 215, 0, 0.03);
}

/* Wiki-style internal links */
.content-card .wikilink {
  color: var(--secondary) !important;
  border-bottom: 1px dashed var(--secondary);
}

.content-card .wikilink:hover {
  color: var(--secondary-text) !important;
}

/* curl box (installer page) */
.content-card .curl-box {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  position: relative;
  border: 1px solid var(--outline-variant);
}

.content-card .curl-box code {
  color: var(--on-surface);
  font-size: 14px;
  word-break: break-all;
  display: block;
  padding-right: 100px;
  line-height: 1.6;
}

.content-card .curl-box .copy-btn {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: var(--primary);
  color: #3a3000;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.content-card .curl-box .copy-btn:hover {
  background: var(--primary-active);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.content-card .curl-box .copy-btn.copied {
  background: var(--success);
  color: #fff;
}

/* Step boxes */
.content-card .step-box {
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 14px 0;
  border-left: 3px solid var(--primary);
}

.content-card .step-box h3 {
  margin-top: 0;
  color: var(--primary);
}

/* System compatibility table */
.content-card .sys-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.content-card .sys-table th {
  background: var(--surface-container-low);
  padding: 10px 14px;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-headline);
  font-size: 13px;
}

.content-card .sys-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border-subtle);
  color: var(--on-surface);
}

.content-card .sys-table .ok { color: var(--success); }
.content-card .sys-table .warn { color: var(--warning); }
.content-card .sys-table .no { color: var(--error); }

/* Content page responsive */
@media (max-width: 768px) {
  .content {
    padding: 90px 18px 50px;
  }

  .content-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
  }

  .content-card h1 {
    font-size: 22px;
  }

  .content-card h2 {
    font-size: 18px;
  }

  .content-card table {
    min-width: 380px;
  }

  .content-card .curl-box code {
    padding-right: 80px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 80px 12px 40px;
  }

  .content-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .content-card h1 {
    font-size: 20px;
  }

  .content-card h2 {
    font-size: 17px;
    margin: 24px 0 10px;
  }

  .content-card h3 {
    font-size: 15px;
  }

  .content-card p, .content-card li {
    font-size: 14px;
  }

  .content-card pre {
    font-size: 12px;
    padding: 12px 14px;
  }

  .content-card table {
    min-width: 320px;
    font-size: 12px;
  }

  .content-card th, .content-card td {
    padding: 8px 10px;
  }

  .content-card .curl-box code {
    padding-right: 70px;
    font-size: 11px;
  }

  .content-card .curl-box .copy-btn {
    padding: 6px 12px;
    font-size: 11px;
    right: 8px;
  }
}
