/**
 * Riolu Academy (Riolu 精灵学院) - Unified Design Tokens & Core Stylesheet
 * Edition: WCAG AA / Pure Native / Zero External Fonts
 * Domain: riolu-cloud.click
 */

:root {
  /* Surface & Base Palette (WCAG AA Certified) */
  --bg-parchment: #FDFBF7;           /* 学院羊皮纸白 */
  --bg-parchment-subtle: #F8F5EE;
  --bg-surface: #FFFFFF;             /* 通透纯白卡片 */
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-secondary: #F4EFE6;
  --bg-surface-tertiary: #EBE4D6;
  --bg-glass: rgba(253, 251, 247, 0.94);
  --bg-glass-card: rgba(255, 255, 255, 0.96);

  /* Typography Colors (High Contrast) */
  --text-ink: #0F172A;               /* 深松烟墨 (对比度 > 13:1) */
  --text-ink-secondary: #334155;     /* 板岩墨灰 (对比度 > 7:1) */
  --text-ink-muted: #64748B;         /* 冷苔灰 (对比度 > 4.5:1) */
  --text-ink-faint: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Primary Brand & Accent Systems */
  --ivy-green: #047857;              /* 常春藤墨绿 (主 CTA 背景色, 白字对比度 >= 4.5:1) */
  --ivy-green-hover: #065F46;
  --ivy-green-soft: rgba(4, 120, 87, 0.12);
  --academy-gold: #D97706;           /* 学院微金 (徽章描边、阶梯高光) */
  --academy-gold-soft: rgba(217, 119, 6, 0.14);
  --border-gold-subtle: rgba(217, 119, 6, 0.38);
  --seal-crimson: #991B1B;
  --seal-crimson-soft: rgba(153, 27, 27, 0.12);

  /* Archival Borders */
  --border-archival: #E2D9C8;
  --border-archival-subtle: #EDE4D4;
  --border-archival-strong: #C4B59D;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.09), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-parchment: 0 16px 36px -12px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.7);

  /* Pure System Sans-Serif & Native Monospace Font Stacks (Zero Online Fonts) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-parchment: #0B111A;
  --bg-parchment-subtle: #101824;
  --bg-surface: #141D2B;
  --bg-surface-elevated: #192436;
  --bg-surface-secondary: #172130;
  --bg-surface-tertiary: #1E2B3E;
  --bg-glass: rgba(11, 17, 26, 0.94);
  --bg-glass-card: rgba(20, 29, 43, 0.96);

  --text-ink: #F8FAFC;
  --text-ink-secondary: #CBD5E1;
  --text-ink-muted: #94A3B8;
  --text-ink-faint: #64748B;
  --text-inverse: #0B111A;

  --ivy-green: #10B981;
  --ivy-green-hover: #34D399;
  --ivy-green-soft: rgba(16, 185, 129, 0.18);
  --academy-gold: #F59E0B;
  --academy-gold-soft: rgba(245, 158, 11, 0.18);
  --border-gold-subtle: rgba(245, 158, 11, 0.4);
  --seal-crimson: #EF4444;
  --seal-crimson-soft: rgba(239, 68, 68, 0.18);

  --border-archival: #243247;
  --border-archival-subtle: #1B2636;
  --border-archival-strong: #384C69;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-parchment: 0 16px 36px -10px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-ink);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth);
}

/* WCAG AA High-Contrast Focus Visible */
:focus-visible {
  outline: 2px solid var(--ivy-green);
  outline-offset: 3px;
}

/* Subtle Archival Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Celestial Grid & Full-Screen Scroll Aura Background */
.scroll-aura-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#scrollFeatherCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #scrollFeatherCanvas {
    animation: none !important;
  }
}

.celestial-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--border-archival-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-archival-subtle) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 20%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 35%, transparent 75%);
  z-index: 0;
}

/* Typography Utilities (Pure System Sans) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-ink);
}

p {
  color: var(--text-ink-secondary);
}

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

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

/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 960px;
}

/* Archival Badges & Seals */
.archival-plate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  min-height: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--academy-gold);
  background: var(--academy-gold-soft);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 4px;
}

.seal-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  min-height: 28px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--seal-crimson);
  background: var(--seal-crimson-soft);
  border: 1px solid rgba(153, 27, 27, 0.25);
  border-radius: 4px;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-archival);
  transition: background-color 0.25s, border-color 0.25s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
}

.brand-sigil {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--academy-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7D27E;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-sigil svg {
  width: 1.6rem;
  height: 1.6rem;
}

.brand-text h1 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-ink-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item a,
.nav-dropdown-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-ink-secondary);
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-item a:hover,
.nav-item.active a,
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
  color: var(--ivy-green);
}

/* Nav Dropdown Interactive Component */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s var(--ease-smooth);
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-spring);
}

.nav-dropdown-btn.active .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s var(--ease-spring);
  z-index: 120;
}

.nav-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-archival-strong);
  border-left: 1px solid var(--border-archival-strong);
}

.dropdown-link-item {
  display: flex !important;
  align-items: center;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
  transition: all 0.15s var(--ease-smooth);
  border-left: 3px solid transparent;
  min-height: 44px;
}

.dropdown-link-item:hover {
  background: var(--bg-parchment-subtle);
  color: var(--ivy-green);
  border-left-color: var(--ivy-green);
  padding-left: 1.45rem !important;
}

.dropdown-link-item .item-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--academy-gold);
  margin-right: 0.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Component Hierarchy (WCAG AA Contrast & 44px Touch Target) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

/* 常春藤墨绿 (#047857) 主 CTA 按钮，搭配纯白文字 (#FFFFFF) 实测对比度 >= 4.5:1 */
.btn-aura,
.btn-primary {
  background: var(--ivy-green);
  color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.btn-aura:hover,
.btn-primary:hover {
  background: var(--ivy-green-hover);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-ink);
  border: 1px solid var(--border-archival-strong);
}

.btn-outline:hover {
  background: var(--bg-surface-secondary);
  border-color: var(--text-ink-secondary);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-archival);
  color: var(--text-ink-secondary);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--academy-gold);
  color: var(--academy-gold);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-archival);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-ink);
  font-weight: 800;
}

.hero-title .title-accent {
  color: var(--ivy-green);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-ink-secondary);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-archival-strong);
}

.metric-item .metric-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-ink);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1.1;
}

.metric-item .metric-num span {
  font-size: 1rem;
  color: var(--ivy-green);
}

.metric-item .metric-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-ink-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Hero Visual: Leased-Line Pulse Canvas (Zero Fake Nodes) */
.hero-visual {
  position: relative;
  z-index: 2;
}

.visual-parchment-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-parchment);
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-archival-subtle);
}

.frame-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-ink);
  font-weight: 600;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--ivy-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.6);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(4, 120, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

.canvas-container {
  width: 100%;
  height: 300px;
  background: var(--bg-parchment-subtle);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-archival);
}

#auraTopologyCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.frame-footer-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-archival-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.telemetry-col span {
  display: block;
  color: var(--text-ink-muted);
  font-size: 0.68rem;
}

.telemetry-col strong {
  color: var(--text-ink);
  font-weight: 600;
}

/* Section Header Archetype */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--academy-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-ink-secondary);
  line-height: 1.7;
}

/* Section: 4 Core Engineering Properties & Leased Line Pipeline */
.tech-viz-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
  background: var(--bg-surface-secondary);
}

.arch-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.arch-prop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.25s var(--ease-smooth);
}

.arch-prop-card:hover {
  border-color: var(--ivy-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arch-prop-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivy-green);
  margin-bottom: 1.15rem;
}

.arch-prop-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.arch-prop-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.arch-prop-card p {
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
  line-height: 1.6;
}

/* End-to-End Pipeline Visualization */
.pipeline-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}

.pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pipeline-node-box {
  flex: 1;
  min-width: 170px;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
}

.pipeline-node-box.active-backbone {
  border-color: var(--ivy-green);
  background: var(--ivy-green-soft);
}

.pipeline-node-box h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pipeline-node-box span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-ink-muted);
}

.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--ivy-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pipeline-connector svg {
  width: 18px;
  height: 18px;
}

/* Section: Package Services (套餐服务) */
.pricing-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 8px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ivy-green);
}

.pricing-card.featured {
  border-color: var(--academy-gold);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-card.featured .price-amount {
  font-size: 2.8rem;
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: var(--academy-gold);
  border-radius: 2px;
}

.pricing-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-archival-subtle);
}

.pricing-title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-ink-muted);
}

.pricing-rate-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.25rem 0 0.5rem;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-ink);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-ink);
  line-height: 1;
}

.price-cycle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-ink-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
}

.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--ivy-green);
  flex-shrink: 0;
}

.feature-highlight {
  font-weight: 600;
  color: var(--text-ink);
}

/* Academy Curriculum Chronicle */
.curriculum-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
}

.academy-chronicle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.chronicle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
}

.chronicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--ivy-green);
  box-shadow: var(--shadow-md);
}

.chronicle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.chronicle-sigil-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivy-green);
}

.chronicle-sigil-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.chronicle-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.chronicle-card p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.chronicle-syllabus-list {
  list-style: none;
  border-top: 1px dashed var(--border-archival-subtle);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.syllabus-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
  padding: 0.35rem 0;
}

.syllabus-item svg {
  width: 15px;
  height: 15px;
  color: var(--ivy-green);
  flex-shrink: 0;
}

.chronicle-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-archival-subtle);
}

.chronicle-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-ink-muted);
}

.read-spec-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ivy-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.read-spec-link:hover {
  text-decoration: underline;
}

/* FAQ Section: Native <details open> & <summary> (全部全量默认展开) */
.faq-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

details.faq-item[open] {
  border-color: var(--ivy-green);
}

summary.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  list-style: none;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-ink-muted);
  transition: transform 0.25s var(--ease-spring);
  flex-shrink: 0;
}

details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--ivy-green);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-ink-secondary);
  border-top: 1px dashed var(--border-archival-subtle);
  padding-top: 1rem;
}

/* Codex & Knowledge Base Styles (knowledge.html) */
.codex-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--border-archival);
  background: var(--bg-surface-secondary);
  text-align: center;
}

.codex-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  padding: 0.5rem 1.15rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-ink-secondary);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ivy-green);
  color: #FFFFFF;
  border-color: var(--ivy-green);
}

.codex-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.codex-card-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--academy-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.codex-card-title {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.code-preview-snippet {
  background: #0F172A;
  border-radius: 6px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #E2E8F0;
  overflow-x: auto;
  border: 1px solid #1E293B;
  margin: 1.25rem 0;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #CBD5E1;
  padding: 0.35rem 0.65rem;
  min-height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--ivy-green);
  color: #FFFFFF;
}

/* Archival Footer */
.site-footer {
  background: var(--bg-surface-secondary);
  border-top: 1px solid var(--border-archival-strong);
  padding: 5rem 0 3rem;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-ink-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ink);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
  transition: color 0.2s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--ivy-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-archival);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-ink-muted);
  font-family: var(--font-mono);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 20px;
  min-height: 32px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .arch-properties-grid,
  .pricing-grid,
  .academy-chronicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 4rem;
  }
  .nav-links {
    display: none;
  }
  .hero-metrics,
  .arch-properties-grid,
  .pricing-grid,
  .academy-chronicle-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-diagram {
    flex-direction: column;
  }
  .pipeline-node-box {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Authoritative Academy 9-Section Enterprise Design Additions
   ========================================================= */

/* Header ivy green hairline divider */
.site-header {
  border-bottom: 1px solid rgba(4, 120, 87, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Nav Actions buttons: 学籍登录 & 开通学籍 */
.btn-login {
  background: var(--bg-surface);
  color: var(--text-ink);
  border: 1px solid var(--border-archival-strong);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  background: var(--bg-parchment-subtle);
  border-color: var(--ivy-green);
  color: var(--ivy-green);
}

.btn-capsule {
  border-radius: 24px !important;
  padding: 0.55rem 1.25rem !important;
}

/* Mobile Hamburger & Drawer */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-archival);
  color: var(--text-ink);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .site-header .nav-links {
    display: none;
  }
  .mobile-drawer.active {
    display: block;
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100vw;
    height: calc(100vh - 4.5rem);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-archival);
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 99;
  }
  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-sub-menu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--border-archival);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* 3D Celestial Balance Apparatus (3D 殿堂天平仪装置) */
.hero-3d-apparatus {
  position: relative;
  width: 100%;
  min-height: 380px;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-parchment);
}

.scale-stage-3d {
  width: 240px;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 等距青石台基 (Isometric Bluestone Plinth) */
.bluestone-base {
  position: absolute;
  bottom: 10px;
  width: 180px;
  height: 34px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid var(--academy-gold);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transform: rotateX(55deg) rotateZ(-30deg);
}

/* 学院波导天平衡梁 (Waveguide Balance Beam) */
.scale-beam-assembly {
  position: absolute;
  top: 50px;
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gentleBalance 5s ease-in-out infinite alternate;
}

@keyframes gentleBalance {
  0% { transform: rotate(-2.5deg); }
  100% { transform: rotate(2.5deg); }
}

/* 晶金星轨 (Celestial Spin Ring) */
.celestial-orbit-ring {
  position: absolute;
  top: 15px;
  width: 110px;
  height: 110px;
  border: 1.5px dashed var(--academy-gold);
  border-radius: 50%;
  animation: celestialSpin 14s linear infinite;
}

@keyframes celestialSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scale-beam-assembly,
  .celestial-orbit-ring {
    animation: none !important;
  }
}

/* 3 客观服务指标徽章 */
.scale-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-archival-subtle);
  width: 100%;
}

.service-indicator-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  color: var(--text-ink-secondary);
}

/* Workflow Step Matrix (#workflow) */
.workflow-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
  background: var(--bg-surface-secondary);
}

.workflow-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
}

.workflow-card:hover {
  border-color: var(--ivy-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.workflow-watermark {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-ink-muted);
  opacity: 0.2;
  pointer-events: none;
}

.workflow-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  background: var(--ivy-green-soft);
  border: 1px solid rgba(4, 120, 87, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivy-green);
  margin-bottom: 1.25rem;
}

.workflow-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.workflow-card p {
  font-size: 0.88rem;
  color: var(--text-ink-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.workflow-action-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivy-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.workflow-action-link:hover {
  text-decoration: underline;
}

/* Solutions Panels (#solutions) */
.solutions-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-archival);
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
}

.solution-panel:hover {
  border-color: var(--ivy-green);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.solution-totem {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivy-green);
}

.solution-totem svg {
  width: 36px;
  height: 36px;
}

.solution-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.solution-content p {
  font-size: 0.92rem;
  color: var(--text-ink-secondary);
  line-height: 1.65;
}

/* Affiliate Disclosure Banner in Footer */
.affiliate-disclosure-box {
  background: var(--bg-parchment-subtle);
  border: 1px dashed var(--border-archival-strong);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-ink-muted);
  line-height: 1.6;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ivy-green);
  border: 1px solid var(--ivy-green);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}

@media (max-width: 1024px) {
  .workflow-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

/* =========================================================
   Knowledge Codex 6-Article Layout & Engineering Components
   ========================================================= */

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 72%) minmax(0, 28%);
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0 6rem;
}

.knowledge-main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.knowledge-sidebar {
  position: sticky;
  top: 6rem;
  z-index: 10;
}

.toc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-archival-strong);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-ink);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-archival-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  line-height: 1.4;
  transition: all 0.15s var(--ease-smooth);
}

.toc-link:hover,
.toc-link.active {
  background: var(--bg-parchment-subtle);
  color: var(--ivy-green);
  transform: translateX(3px);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--academy-gold);
  flex-shrink: 0;
}

/* Engineering Chapter Badge */
.ch-badge {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--academy-gold);
  line-height: 1;
  margin-bottom: 0.65rem;
  display: inline-block;
  letter-spacing: -0.02em;
}

/* Engineering Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-archival);
  border-radius: 6px;
  background: var(--bg-surface);
}

.eng-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.eng-table th {
  background: var(--bg-parchment-subtle);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-ink);
  border-bottom: 1px solid var(--border-archival);
  white-space: nowrap;
}

.eng-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-archival-subtle);
  color: var(--text-ink-secondary);
  line-height: 1.5;
}

.eng-table tr:last-child td {
  border-bottom: none;
}

.eng-table tbody tr:hover {
  background: rgba(4, 120, 87, 0.03);
}

/* Callout Tips */
.callout-tip {
  background: var(--bg-parchment-subtle);
  border-left: 4px solid var(--ivy-green);
  border-radius: 0 6px 6px 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--text-ink-secondary);
  line-height: 1.65;
}

.callout-warning {
  border-left-color: var(--academy-gold);
}

.callout-danger {
  border-left-color: var(--seal-crimson);
}

/* SEO Inline Links */
.seo-inline-link {
  color: var(--ivy-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.seo-inline-link:hover {
  color: var(--ivy-green-hover);
}

/* Terminal Snippet Box */
.terminal-box {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
}

.terminal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #1E293B;
  border-bottom: 1px solid #334155;
  color: #94A3B8;
  font-size: 0.75rem;
}

.terminal-dots-row {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.t-dot.r { background: #EF4444; }
.t-dot.y { background: #F59E0B; }
.t-dot.g { background: #10B981; }

.terminal-body {
  padding: 1.15rem;
  color: #E2E8F0;
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
}

.terminal-line {
  margin-bottom: 0.35rem;
}

.t-prompt {
  color: #38BDF8;
}

.t-cmd {
  color: #F8FAFC;
}

.t-comment {
  color: #64748B;
}

.t-output {
  color: #94A3B8;
}

.t-success {
  color: #34D399;
}

/* Step-by-Step Flow Cards */
.step-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-flow-card {
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  border-radius: 6px;
  padding: 1.15rem 1rem;
  position: relative;
  text-align: center;
}

.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--academy-gold);
  background: var(--academy-gold-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.step-flow-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text-ink);
}

.step-flow-card p {
  font-size: 0.78rem;
  color: var(--text-ink-secondary);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .knowledge-layout {
    grid-template-columns: 1fr;
  }
  .knowledge-sidebar {
    position: static;
    margin-bottom: 2.5rem;
  }
  .step-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =========================================================
   Standard Breakpoints Verification: 1440px / 768px / 390px / 360px
   WCAG AA Accessibility & Touch Target (>= 44x44px) Calibration
   ========================================================= */

/* 1. 1440px Breakpoint: Wide Desktop & Ultra-High-Res Monitors */
@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-grid {
    gap: 4rem;
  }
  .knowledge-layout {
    grid-template-columns: 74% 26%;
    gap: 3.5rem;
  }
  .codex-card {
    padding: 2.75rem 3rem;
  }
}

/* 2. 768px Breakpoint: Tablet & Mobile Navigation Drawers */
@media (max-width: 768px) {
  .site-header .nav-links {
    display: none !important;
  }
  .site-header .btn-login {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-apparatus-col {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .apparatus-stage-3d {
    width: 280px;
    height: 280px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .workflow-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-panel {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .knowledge-layout {
    grid-template-columns: 1fr;
  }
  .knowledge-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* 3. 390px Breakpoint: Standard Mobile (iPhone 12-16 & Android) */
@media (max-width: 390px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-text strong {
    font-size: 1.05rem;
  }
  .brand-text span {
    font-size: 0.65rem;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }
  .workflow-matrix {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 1.5rem 1.15rem;
  }
  .pricing-amount {
    font-size: 2.1rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .codex-card {
    padding: 1.5rem 1.15rem;
  }
  .toc-box {
    padding: 1.25rem 1rem;
  }
  .terminal-box {
    padding: 0.85rem;
  }
}

/* 4. 360px Breakpoint: Compact Mobile Viewports */
@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-text span {
    display: none;
  }
  .hero-title {
    font-size: 1.65rem !important;
  }
  .btn-capsule {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.82rem !important;
  }
  .pricing-amount {
    font-size: 1.85rem;
  }
  .eng-table th,
  .eng-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.76rem;
  }
}

/* 5. High-Contrast Focus Visible Guarantee */
:focus-visible {
  outline: 2px solid var(--ivy-green) !important;
  outline-offset: 3px !important;
}

[data-theme="dark"] :focus-visible {
  outline: 2px solid var(--academy-gold) !important;
  outline-offset: 3px !important;
}

/* Minimum 44x44px Touch Target Guarantee for All Interactive Controls */
a, button, summary, select, input, [role="button"] {
  touch-action: manipulation;
}

/* =========================================================
   入学指南 - 记事本双栏交互框架 (Notepad Deck System)
   左侧悬浮索引槽 (24%) + 右侧长卷阅读主舱 (76%)
   ========================================================= */
.notepad-deck {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

/* 左侧悬浮索引槽 (Sticky Rail 24%) */
.notepad-rail {
  width: 24%;
  position: sticky;
  top: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-archival);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rail-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--academy-gold);
  letter-spacing: 0.08em;
}

.rail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--text-ink-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s var(--ease-smooth);
  min-height: 44px;
}

.rail-link:hover {
  background: var(--bg-parchment-subtle);
  color: var(--ivy-green);
  border-left-color: var(--ivy-green);
  transform: translateX(3px);
}

.rail-link:focus-visible {
  outline: 2px solid var(--ivy-green) !important;
  outline-offset: 2px;
}

.rail-link .rail-link-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--academy-gold);
}

.rail-status {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-archival);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-ink-muted);
}

.rail-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ivy-green);
  flex-shrink: 0;
}

/* 右侧长卷阅读主舱 (Chamber 76%) */
.notepad-chamber {
  width: 76%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .notepad-chamber {
  background: #1E293B;
  border-color: #334155;
}

/* 原创波导共鸣拓扑图容器 */
.topology-svg-wrapper {
  margin: 1.75rem 0 2.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-parchment-subtle);
  border: 1px solid var(--border-archival);
  padding: 1.25rem;
}

[data-theme="dark"] .topology-svg-wrapper {
  background: #0F172A;
  border-color: #334155;
}

.topology-svg-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 主舱各小节规范 */
.chamber-section {
  padding-top: 1.75rem;
  margin-bottom: 2rem;
  border-top: 1px dashed var(--border-archival);
}

.chamber-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ivy-green);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.section-heading {
  font-size: 1.25rem;
  color: var(--text-ink);
  margin-bottom: 0.85rem;
}

.chamber-body-p {
  font-size: 0.92rem;
  color: var(--text-ink-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* 底部标准内链与 CTA */
.chamber-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-archival);
}

@media (max-width: 768px) {
  .notepad-deck {
    flex-direction: column;
  }
  .notepad-rail {
    width: 100%;
    position: static;
  }
  .notepad-chamber {
    width: 100%;
    padding: 1.5rem 1.25rem;
  }
  .chamber-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .chamber-nav-actions .btn {
    width: 100%;
  }
}
