/* ============================================================
   VisionPro Learning Platform
   Design System v4.0 — Based on Linear/Vercel/Stripe specs
   ============================================================ */

/* ============ 1. TOKENS ============ */
:root {
  /* Spacing — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type scale */
  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 24px;
  --t-2xl: 32px;
  --t-3xl: 48px;
  --t-4xl: 56px;

  /* Line heights */
  --lh-tight: 1.4;
  --lh-base: 1.5;
  --lh-relaxed: 1.6;
  --lh-loose: 1.7;

  /* Letter spacing */
  --ls-tight: -0.022em;
  --ls-tighter: -0.032em;
  --ls-tightest: -0.045em;
  --ls-normal: 0;
  --ls-wide: 0.06em;

  /* Colors */
  --bg: #08090c;
  --bg-1: #0d0e12;
  --bg-2: #12141a;
  --bg-3: #16181f;
  --bg-hover: #1a1d25;

  --line: #1d1f28;
  --line-2: #262933;
  --line-3: #333645;

  --fg: #ebedf0;
  --fg-1: #a6acba;
  --fg-2: #6e7480;
  --fg-3: #4a4f5a;

  --accent: #5b8cff;
  --accent-hover: #7aa0ff;
  --accent-glow: rgba(91, 140, 255, 0.25);
  --purple: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --orange: #fbbf24;
  --red: #f87171;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-base: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-base: 0 4px 8px -2px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --sh-md: 0 8px 16px -4px rgba(0, 0, 0, 0.4), 0 4px 8px -4px rgba(0, 0, 0, 0.3);
  --sh-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  --sh-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --sh-glow: 0 0 32px var(--accent-glow);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
}

/* ============ 2. RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-base);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============ 3. TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============ 4. SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 2px solid var(--bg);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-3);
}

/* ============ 5. SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  pointer-events: none;
}

/* ============ 6. NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 64px;
  padding: 0 var(--s-6);
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29, 31, 40, 0.8);
  flex-wrap: wrap;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(8, 9, 12, 0.98);
  border-bottom-color: var(--line);
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--fg);
  margin-right: var(--s-4);
  flex-shrink: 0;
}

.navbar .brand .dot {
  width: 20px;
  height: 20px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  position: relative;
  box-shadow: 0 0 12px var(--accent-glow);
}

.navbar .brand .dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.navbar nav {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}

.navbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-1);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.navbar nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.navbar nav a.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.navbar nav a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 1px;
}

/* ============ 7. USER MENU ============ */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  flex-shrink: 0;
}

.user-greet {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-1);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.user-greet:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--s-3);
  font-size: var(--t-sm);
  font-weight: 500;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--fg);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm:hover {
  background: var(--bg-hover);
  border-color: var(--line-3);
  color: var(--fg);
}

.btn-sm.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-sm.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ============ 8. CONTAINER ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-6) var(--s-9);
}

/* ============ 9. PAGE HEADER ============ */
.page-header {
  padding: 0 0 var(--s-7);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.page-label {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: var(--r-xs);
  margin-bottom: var(--s-4);
}

.page-header h1 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: var(--ls-tighter);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: var(--s-3);
}

.page-header p {
  font-size: var(--t-md);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  max-width: 68ch;
}

/* ============ 10. HERO ============ */
.hero-split {
  position: relative;
  padding: var(--s-9) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-split-bg {
  position: absolute;
  inset: 0;
  background: #05060a;
  z-index: -3;
}

.hero-split-grid {
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 70%);
  z-index: -2;
}

.hero-split-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.hero-split-glow-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.2), transparent 70%);
}

.hero-split-glow-2 {
  bottom: -20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
}

.hero-split-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  z-index: 1;
}

.hero-split-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  background: rgba(91, 140, 255, 0.06);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s-5);
  letter-spacing: var(--ls-normal);
}

.hero-split-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-split-title {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: var(--ls-tightest);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: var(--s-5);
}

.hero-split-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-split-desc {
  font-size: var(--t-md);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  margin-bottom: var(--s-6);
  max-width: 480px;
}

.hero-split-actions {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}

.hero-split-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  background: var(--accent);
  color: #fff;
  font-size: var(--t-base);
  font-weight: 600;
  border-radius: var(--r-base);
  border: 1px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 12px rgba(91, 140, 255, 0.3);
  transition: all var(--dur-fast) var(--ease-out);
}

.hero-split-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px rgba(91, 140, 255, 0.4);
  color: #fff;
}

.hero-split-btn-primary svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.hero-split-btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-split-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--s-5);
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-size: var(--t-base);
  font-weight: 500;
  border-radius: var(--r-base);
  transition: all var(--dur-fast) var(--ease-out);
}

.hero-split-btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}

.hero-split-meta {
  display: flex;
  gap: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.hero-split-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--t-sm);
  color: var(--fg-2);
}

.hero-split-meta strong {
  font-family: var(--font-mono);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--ls-tighter);
  font-variant-numeric: tabular-nums;
}

/* ============ 11. HERO PREVIEW ============ */
.hero-split-right {
  position: relative;
}

.hero-split-right::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-preview {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 32px 64px -12px rgba(0, 0, 0, 0.8),
    0 0 80px -40px var(--accent-glow);
  transform: perspective(1200px) rotateY(-2deg);
  transition: transform var(--dur-slow) var(--ease-out);
}

.hero-preview:hover {
  transform: perspective(1200px) rotateY(0deg);
}

.hp-titlebar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 36px;
  padding: 0 var(--s-4);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

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

.hp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hp-dots span:nth-child(1) { background: #ef4444; }
.hp-dots span:nth-child(2) { background: #f59e0b; }
.hp-dots span:nth-child(3) { background: #10b981; }

.hp-title {
  flex: 1;
  font-size: var(--t-xs);
  color: var(--fg-2);
  font-family: var(--font-mono);
}

.hp-badge-live {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

.hp-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  min-height: 340px;
}

.hp-video {
  background:
    linear-gradient(135deg, rgba(18, 20, 26, 0.95), rgba(8, 9, 12, 0.98)),
    radial-gradient(circle at 40% 40%, var(--accent-glow), transparent 60%);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hp-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hp-video-info {
  position: relative;
  z-index: 1;
}

.hp-video-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  background: rgba(91, 140, 255, 0.12);
  border-radius: var(--r-xs);
  margin-bottom: var(--s-2);
}

.hp-video h4 {
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: var(--ls-tight);
  line-height: 1.3;
  margin-bottom: 4px;
}

.hp-video-meta {
  font-size: var(--t-xs);
  color: var(--fg-2);
  font-family: var(--font-mono);
}

.hp-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 8px rgba(91, 140, 255, 0.15),
    0 8px 24px rgba(91, 140, 255, 0.4);
  z-index: 2;
}

.hp-progress {
  position: relative;
  z-index: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hp-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: inherit;
}

.hp-list {
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  padding: var(--s-3) 0;
  display: flex;
  flex-direction: column;
}

.hp-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4) var(--s-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-2);
}

.hp-list-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-2);
  font-family: var(--font-mono);
}

.hp-ep {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px var(--s-4);
  font-size: var(--t-xs);
  color: var(--fg-1);
  border-left: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}

.hp-ep:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hp-ep-active {
  background: rgba(91, 140, 255, 0.08);
  border-left-color: var(--accent);
  color: var(--fg);
}

.hp-ep-num {
  flex-shrink: 0;
  width: 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
}

.hp-ep-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.hp-ep-dur {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}

.hp-ep-locked {
  opacity: 0.5;
}

.hp-ep-lock {
  font-size: 11px;
  flex-shrink: 0;
}

/* ============ 12. MODULES ============ */
.modules {
  padding: var(--s-9) 0;
}

.modules-header {
  text-align: center;
  margin-bottom: var(--s-8);
}

.modules-label {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  background: rgba(91, 140, 255, 0.06);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: var(--r-xs);
  margin-bottom: var(--s-4);
}

.modules-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: var(--ls-tighter);
  line-height: 1.1;
  color: var(--fg);
}

.modules-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.module {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  min-height: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.module:hover {
  background: var(--bg-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-lg), 0 0 64px -32px var(--accent-glow);
  color: var(--fg);
}

.module:hover::before {
  opacity: 1;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-base);
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--dur-base) var(--ease-out);
}

.module:hover .module-icon {
  background: rgba(91, 140, 255, 0.15);
  border-color: rgba(91, 140, 255, 0.3);
  transform: scale(1.05);
}

.module-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

.module-title {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--fg);
  margin: 0;
}

.module-desc {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-1);
  margin: 0;
}

.module-arrow {
  position: absolute;
  bottom: var(--s-5);
  right: var(--s-5);
  font-size: var(--t-md);
  color: var(--fg-3);
  transition: all var(--dur-base) var(--ease-out);
}

.module:hover .module-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ============ 13. GRID ============ */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ============ 14. CARD (legacy) ============ */
a.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  transition: all var(--dur-base) var(--ease-out);
}

a.card:hover {
  background: var(--bg-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
  color: var(--fg);
}

a.card h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--fg);
}

a.card h3 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-base);
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}

a.card p {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-1);
}

/* ============ 15. STAT ============ */
.stat-box {
  padding: var(--s-6);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.stat-box .num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tightest);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}

.stat-box .lbl {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.stats-row {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.stat-mini {
  flex: 1;
  min-width: 120px;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
}

.stat-mini .v {
  font-family: var(--font-mono);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-mini .l {
  font-size: var(--t-xs);
  color: var(--fg-2);
  margin-top: 2px;
  letter-spacing: var(--ls-wide);
}

/* ============ 16. NOTE ============ */
.note {
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--accent);
  background: rgba(91, 140, 255, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-1);
  margin: var(--s-4) 0;
}

.note.ok { border-left-color: var(--green); background: rgba(52, 211, 153, 0.05); }
.note.warn { border-left-color: var(--orange); background: rgba(251, 191, 36, 0.05); }

.note strong { color: var(--fg); font-weight: 600; }
.note code {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-xs);
  color: var(--accent);
  font-size: 0.9em;
}

/* ============ 17. BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 4px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.badge-dub { background: rgba(52, 211, 153, 0.12); color: var(--green); border-color: rgba(52, 211, 153, 0.25); }
.badge-zh { background: rgba(34, 211, 238, 0.12); color: #22d3ee; border-color: rgba(34, 211, 238, 0.25); }
.badge-lock { background: rgba(251, 191, 36, 0.12); color: var(--orange); border-color: rgba(251, 191, 36, 0.25); font-size: 10px; }
.badge-blue { background: rgba(91, 140, 255, 0.12); color: var(--accent); }
.badge-green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.badge-orange { background: rgba(251, 191, 36, 0.12); color: var(--orange); }
.badge-red { background: rgba(248, 113, 113, 0.12); color: var(--red); }

/* ============ 18. VIDEO LAYOUT ============ */
.video-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-5);
  align-items: start;
}

.player-wrap {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  box-shadow: var(--sh-md);
}

#player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.now-playing {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-4);
}

.now-playing h3 {
  font-size: var(--t-md);
  font-weight: 600;
  margin-bottom: var(--s-1);
}

.now-playing .meta {
  font-size: var(--t-sm);
  color: var(--fg-1);
}

.now-playing .progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-full);
  margin-top: var(--s-3);
  overflow: hidden;
}

.now-playing .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: inherit;
  transition: width var(--dur-base) var(--ease-out);
}

.playlist {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 80px;
}

.playlist-header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: var(--t-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-1);
  z-index: 2;
}

.group-title {
  padding: var(--s-2) var(--s-5) var(--s-1);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  background: var(--bg);
  position: sticky;
  top: 53px;
  z-index: 1;
}

.ep-item {
  padding: var(--s-3) var(--s-5);
  cursor: pointer;
  border-left: 2px solid transparent;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  transition: all var(--dur-fast) var(--ease-out);
}

.ep-item:hover {
  background: var(--bg-2);
  border-left-color: rgba(91, 140, 255, 0.4);
}

.ep-item.active {
  background: rgba(91, 140, 255, 0.08);
  border-left-color: var(--accent);
}

.ep-item.watched .ep-num {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.ep-item.locked {
  opacity: 0.6;
}

.ep-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--fg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all var(--dur-fast) var(--ease-out);
}

.ep-item.active .ep-num {
  background: var(--accent);
  color: #fff;
}

.ep-body {
  flex: 1;
  min-width: 0;
}

.ep-title {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg);
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ep-dur {
  font-size: 11px;
  color: var(--fg-2);
  margin-top: 3px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.ep-pct {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

.audio-switch {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  align-items: center;
  flex-wrap: wrap;
}

.audio-switch .label {
  display: flex;
  align-items: center;
  color: var(--fg-1);
  font-size: var(--t-sm);
  margin-right: var(--s-2);
}

.audio-switch button {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.audio-switch button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.audio-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.audio-switch button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tip {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: rgba(91, 140, 255, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
  color: var(--fg-1);
  line-height: var(--lh-loose);
}

.player-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 9, 12, 0.9), rgba(8, 9, 12, 0.95)),
    url('/assets/cover-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity var(--dur-base) var(--ease-out);
  text-align: center;
}

.player-cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.cover-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(91, 140, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--s-4);
  box-shadow: 0 0 40px var(--accent-glow);
}

.cover-title {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--s-2);
}

.cover-hint {
  font-size: var(--t-sm);
  color: var(--fg-1);
}

/* ============ 19. TOPIC ============ */
.topic {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.topic[open] {
  border-color: var(--line-2);
}

.topic summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: var(--t-base);
  list-style: none;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out);
}

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

.topic summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--fg-2);
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1;
}

.topic[open] summary::after {
  transform: rotate(45deg);
}

.topic summary:hover {
  background: var(--bg-2);
}

.topic .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.topic .body {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--fg-1);
  line-height: var(--lh-loose);
  font-size: var(--t-sm);
}

.topic .body h4 {
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin: var(--s-4) 0 var(--s-2);
}

.topic .body ul {
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
}

.topic .body li {
  margin-bottom: var(--s-1);
}

.topic .body code {
  padding: 2px 6px;
  background: var(--bg-2);
  border-radius: var(--r-xs);
  color: var(--accent);
  font-size: 0.9em;
}

.topic .body strong {
  color: var(--fg);
  font-weight: 600;
}

/* ============ 20. GLOSSARY ============ */
.term-search {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  color: var(--fg);
  font-size: var(--t-base);
  margin-bottom: var(--s-5);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.term-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.term-search::placeholder {
  color: var(--fg-2);
}

.term-item {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  margin-bottom: var(--s-3);
  transition: all var(--dur-fast) var(--ease-out);
}

.term-item:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}

.term-item .en {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(91, 140, 255, 0.1);
  border-radius: var(--r-xs);
  margin-right: var(--s-2);
}

.term-item .zh {
  font-size: var(--t-base);
  color: var(--fg);
  font-weight: 600;
}

.term-item .desc {
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  color: var(--fg-1);
  line-height: var(--lh-loose);
}

/* ============ 21. PATH ============ */
.path-step {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  transition: all var(--dur-fast) var(--ease-out);
}

.path-step:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}

.path-step .circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-base);
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--accent);
}

.path-step .info {
  flex: 1;
  min-width: 0;
}

.path-step h3 {
  font-size: var(--t-md);
  font-weight: 600;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.path-step p {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-1);
}

/* ============ 22. DEMO ============ */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-5);
  align-items: start;
}

.canvas-wrap {
  padding: var(--s-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.canvas-wrap canvas {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

.controls {
  padding: var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.control-group label {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-1);
}

.control-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.btn-group {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ============ 23. FLOATING CONTACT ============ */
.floating-contact {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
}

.contact-content {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 220px;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  text-align: center;
}

.floating-contact.expanded .contact-content {
  display: flex;
}

.contact-content h4 {
  font-size: var(--t-base);
  margin-bottom: var(--s-2);
}

.contact-content p {
  font-size: var(--t-sm);
  color: var(--fg-1);
  margin: var(--s-1) 0;
}

.contact-content a {
  color: var(--accent);
  font-weight: 600;
}

.contact-content img {
  width: 140px;
  height: 140px;
  border-radius: var(--r-sm);
  margin-top: var(--s-2);
  border: 1px solid var(--line);
}

.contact-content .qr-tip {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: var(--s-1);
}

.contact-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all var(--dur-base) var(--ease-out);
  user-select: none;
}

.contact-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ============ 24. FOOTER ============ */
.site-footer {
  padding: var(--s-8) 0 var(--s-6);
  background: #05060a;
  border-top: 1px solid var(--line);
  margin-top: var(--s-9);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: var(--s-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--fg);
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  position: relative;
  box-shadow: 0 0 12px var(--accent-glow);
}

.footer-logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.footer-desc {
  font-size: var(--t-sm);
  line-height: var(--lh-loose);
  color: var(--fg-1);
  max-width: 320px;
}

.footer-copyright {
  font-size: var(--t-xs);
  color: var(--fg-3);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-column h4 {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--s-1);
}

.footer-column a {
  font-size: var(--t-sm);
  color: var(--fg-1);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-column a:hover {
  color: var(--fg);
}

/* ============ 25. UTILITIES ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

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

.empty-hint {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--fg-2);
  font-size: var(--t-sm);
}

/* ============ 26. RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-split-wrap {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .hero-preview {
    transform: none;
  }
  .hero-preview:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .navbar {
    height: auto;
    padding: var(--s-2) var(--s-4);
  }
  .navbar nav {
    order: 3;
    width: 100%;
    margin-top: var(--s-2);
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .navbar nav::-webkit-scrollbar {
    display: none;
  }
  .navbar nav a {
    white-space: nowrap;
  }
  .container {
    padding: var(--s-6) var(--s-4) var(--s-8);
  }
  .video-layout {
    grid-template-columns: 1fr;
  }
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .hp-body {
    grid-template-columns: 1fr;
  }
  .hp-list {
    display: none;
  }
  .modules-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-split {
    padding: var(--s-7) 0;
  }
  .hero-split-wrap {
    padding: 0 var(--s-4);
  }
  .hero-split-actions {
    flex-direction: column;
  }
  .hero-split-btn-primary,
  .hero-split-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .hero-split-meta {
    gap: var(--s-4);
  }
  .floating-contact {
    right: var(--s-4);
    bottom: var(--s-4);
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .path-step {
    flex-direction: column;
  }
}

/* ============ 27. REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HERO FULL — 撑满首屏，垂直居中
   ============================================================ */

.hero-full {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-full-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, #0a1020 0%, #05060a 70%);
  z-index: -3;
}

.hero-full-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 75%);
  z-index: -2;
}

.hero-full-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.hero-full-glow-1 {
  top: 10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.22), transparent 70%);
}

.hero-full-glow-2 {
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
}

.hero-full-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 左侧 */
.hero-full-left {
  display: flex;
  flex-direction: column;
}

.hero-full-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(91, 140, 255, 0.06);
  border: 1px solid rgba(91, 140, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  align-self: flex-start;
}

.hero-full-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-full-title {
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-full-title-accent {
  background: linear-gradient(135deg, #5b8cff 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-full-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-full-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-full-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 4px 14px rgba(91, 140, 255, 0.3),
    0 8px 32px rgba(91, 140, 255, 0.15);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-full-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(91, 140, 255, 0.4),
    0 16px 48px rgba(91, 140, 255, 0.2);
  color: #fff;
}

.hero-full-btn-primary svg { transition: transform 200ms; }
.hero-full-btn-primary:hover svg { transform: translateX(3px); }

.hero-full-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 150ms;
}

.hero-full-btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}

.hero-full-meta {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-full-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-full-meta-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #5b8cff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-full-meta-label {
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}

/* 右侧预览 */
.hero-full-right {
  position: relative;
}

.hero-full-right::before {
  content: "";
  position: absolute;
  inset: 5% -10%;
  background: radial-gradient(ellipse, rgba(91, 140, 255, 0.15), transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-full-preview {
  background: #0a0b0f;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 32px 64px -12px rgba(0, 0, 0, 0.8),
    0 0 100px -40px rgba(91, 140, 255, 0.4);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-full-preview:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.hfp-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: #0e0f14;
  border-bottom: 1px solid var(--line);
}

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

.hfp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hfp-dots span:nth-child(1) { background: #ef4444; }
.hfp-dots span:nth-child(2) { background: #f59e0b; }
.hfp-dots span:nth-child(3) { background: #10b981; }

.hfp-title {
  flex: 1;
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}

.hfp-badge {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

.hfp-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  min-height: 360px;
}

.hfp-video {
  background:
    linear-gradient(135deg, rgba(20, 22, 30, 0.95), rgba(8, 9, 12, 0.98)),
    radial-gradient(circle at 40% 40%, rgba(91, 140, 255, 0.2), transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hfp-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hfp-video-info {
  position: relative;
  z-index: 1;
}

.hfp-video-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  background: rgba(91, 140, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 10px;
}

.hfp-video-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hfp-video-meta {
  font-size: 11px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}

.hfp-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 10px rgba(91, 140, 255, 0.15),
    0 8px 24px rgba(91, 140, 255, 0.5);
  z-index: 2;
}

.hfp-progress {
  position: relative;
  z-index: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hfp-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: inherit;
}

.hfp-list {
  background: #0a0b0f;
  border-left: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.hfp-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.hfp-list-count {
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 400;
  font-family: var(--font-mono);
}

.hfp-ep {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11.5px;
  color: var(--fg-1);
  border-left: 2px solid transparent;
}

.hfp-ep-active {
  background: rgba(91, 140, 255, 0.08);
  border-left-color: var(--accent);
  color: var(--fg);
}

.hfp-ep-num {
  flex-shrink: 0;
  width: 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
}

.hfp-ep-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfp-ep-dur {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
}

.hfp-ep-locked {
  opacity: 0.5;
}

.hfp-ep-lock {
  font-size: 11px;
  flex-shrink: 0;
}

/* ============================================================
   MODULES SECTION
   ============================================================ */

.modules-section {
  padding: 160px 0 120px;
  position: relative;
}

.modules-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.modules-header {
  text-align: center;
  margin-bottom: 72px;
}

.modules-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  background: rgba(91, 140, 255, 0.06);
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 4px;
  margin-bottom: 20px;
}

.modules-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
}

.modules-sub {
  font-size: 16px;
  color: var(--fg-1);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.modules-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: #0d0e12;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.mc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 250ms;
}

.mc:hover {
  background: #12141a;
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--fg);
}

.mc:hover::before {
  opacity: 1;
}

.mc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 250ms;
}

.mc:hover .mc-icon {
  background: rgba(91, 140, 255, 0.15);
  border-color: rgba(91, 140, 255, 0.3);
  transform: scale(1.05);
}

.mc-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 4px 0 0;
}

.mc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-full-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 32px;
  }
  .hero-full-preview {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-full {
    min-height: auto;
    padding: 80px 0;
  }
  .hero-full-inner {
    padding: 0 24px;
  }
  .modules-inner {
    padding: 0 24px;
  }
  .modules-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hfp-body {
    grid-template-columns: 1fr;
  }
  .hfp-list {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-full-title {
    font-size: 44px;
  }
  .hero-full-actions {
    flex-direction: column;
  }
  .hero-full-btn-primary,
  .hero-full-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .hero-full-meta {
    gap: 24px;
  }
  .hero-full-meta-value {
    font-size: 24px;
  }
  .modules-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HERO FULL v2 — 照搬登录页 6 层结构
   Logo + Eyebrow + 标题 + 描述 + CTA + 功能项列表 + 页脚
   ============================================================ */

/* 1. Logo */
.hero-full-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
  margin-bottom: 40px;
}

.hero-full-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b8cff 0%, #a78bfa 100%);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 24px rgba(91, 140, 255, 0.4);
  flex-shrink: 0;
}

.hero-full-logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 3px;
  opacity: 0.9;
}

.hero-full-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.hero-full-logo-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-transform: uppercase;
  margin-left: 4px;
}

/* 2. Eyebrow（带脉冲点） */
.hero-full-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #93c5fd;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-full-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: hero-pulse-dot 2s ease-in-out infinite;
}

@keyframes hero-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* 3. 大标题（双行，第二行渐变） */
.hero-full-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: #fff;
  margin: 0 0 24px;
}

.hero-full-title-accent {
  background: linear-gradient(135deg, #5b8cff 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. 描述 */
.hero-full-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #8a94a6;
  margin: 0 0 32px;
  max-width: 480px;
}

/* 5. 主 CTA 按钮 */
.hero-full-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  height: 48px;
  padding: 0 28px;
  background: #5b8cff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #5b8cff;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 4px 14px rgba(91, 140, 255, 0.35),
    0 8px 32px rgba(91, 140, 255, 0.15);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 40px;
}

.hero-full-cta:hover {
  background: #7aa0ff;
  border-color: #7aa0ff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(91, 140, 255, 0.45),
    0 16px 48px rgba(91, 140, 255, 0.25);
  color: #fff;
}

.hero-full-cta svg {
  transition: transform 200ms;
}

.hero-full-cta:hover svg {
  transform: translateX(3px);
}

/* 6. 3 个功能项列表（登录页同款） */
.hero-full-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  align-self: stretch;
}

.hero-full-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero-full-feature:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(91, 140, 255, 0.3);
  color: #fff;
  transform: translateX(2px);
}

.hero-full-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.15), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(91, 140, 255, 0.2);
  color: #93c5fd;
  flex-shrink: 0;
}

.hero-full-feature-body {
  flex: 1;
  min-width: 0;
}

.hero-full-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.hero-full-feature-desc {
  font-size: 12.5px;
  color: #6e7480;
  line-height: 1.4;
}

.hero-full-feature-arrow {
  font-size: 16px;
  color: #4a4f5a;
  opacity: 0;
  transition: all 200ms;
  flex-shrink: 0;
}

.hero-full-feature:hover .hero-full-feature-arrow {
  opacity: 1;
  color: #93c5fd;
  transform: translateX(2px);
}

/* 7. 页脚信息 */
.hero-full-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #4a4f5a;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-self: stretch;
}

.hero-full-footer-sep {
  color: #333645;
}

/* 覆盖旧的 hero-full-badge / hero-full-meta（如果还在用） */
.hero-full-badge,
.hero-full-meta {
  display: none;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-full-logo,
  .hero-full-eyebrow,
  .hero-full-cta {
    align-self: center;
  }
  .hero-full-title,
  .hero-full-desc {
    text-align: center;
  }
  .hero-full-features {
    align-self: stretch;
  }
  .hero-full-footer {
    justify-content: center;
    align-self: stretch;
  }
}

/* ===== RATIO FIX ===== */
/* 让首页 Hero 的布局比例与登录页完全一致 */

/* 1. 容器扩展到 1360px，比例改为 1.15fr : 1fr（对应登录页的 757:659） */
.hero-full-inner {
  max-width: 1360px !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 0 !important;
  padding: 0 clamp(48px, 6vw, 96px) !important;
}

/* 2. 左侧内容区限宽 520px（对齐登录页的品牌区内容宽） */
.hero-full-left {
  max-width: 520px !important;
  padding-right: 48px !important;
}

/* 3. 左侧所有元素对齐方式保持左对齐（不要居中） */
.hero-full-logo,
.hero-full-eyebrow,
.hero-full-cta {
  align-self: flex-start !important;
}

/* 4. 标题、描述不用居中 */
.hero-full-title,
.hero-full-desc {
  text-align: left !important;
}

/* 5. 右侧预览区加一点内边距，让视觉更平衡 */
.hero-full-right {
  padding-left: 24px !important;
}

/* 6. 功能项区域宽度和左侧一致 */
.hero-full-features {
  align-self: stretch !important;
}

/* 7. 页脚宽度和左侧一致 */
.hero-full-footer {
  align-self: stretch !important;
}

/* 8. 小屏幕保持居中（覆盖上面的左对齐） */
@media (max-width: 1024px) {
  .hero-full-inner {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 0 32px !important;
  }
  .hero-full-left {
    max-width: none !important;
    padding-right: 0 !important;
  }
  .hero-full-logo,
  .hero-full-eyebrow,
  .hero-full-cta {
    align-self: center !important;
  }
  .hero-full-title,
  .hero-full-desc {
    text-align: center !important;
  }
  .hero-full-footer {
    justify-content: center !important;
  }
  .hero-full-right {
    padding-left: 0 !important;
  }
}

/* ===== FLEX WIDTH FIX ===== */
/* 根因：.hero-full 是 flex 容器，.hero-full-inner 有 margin: 0 auto，
   导致 flex item 收缩到内容宽度（1136px），而不是 max-width 的 1360px。
   修复：让 .hero-full 用 justify-content: center 居中，
   让 .hero-full-inner 移除 auto margin，加 flex-shrink: 0，width: 100%。 */

.hero-full {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-full-inner {
  width: 100% !important;
  max-width: 1360px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
}

/* 微调左侧 padding，让内容区宽度对齐登录页的 520px 左右 */
.hero-full-left {
  padding-right: 40px !important;
  max-width: 540px !important;
}

/* 小屏恢复 */
@media (max-width: 1024px) {
  .hero-full-inner {
    max-width: 100% !important;
  }
  .hero-full-left {
    max-width: none !important;
    padding-right: 0 !important;
  }
}

/* ===== FULL BLEED FIX ===== */
/* 根因：.hero-full 被父级 <main class="container"> 的 max-width: 1200px 卡住，
   实际可用宽度只有 1136px。用 full-bleed 技术突破容器限制。 */

.hero-full {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* 防止横向滚动条 */
body {
  overflow-x: hidden !important;
}

/* 模块区也要突破容器限制（虽然它目前没有全宽需求，但保持一致） */
.modules-section {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* 页脚也要突破 */
.site-footer {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* 100vw 包含滚动条宽度，用 padding 补偿滚动条 */
@supports (scrollbar-gutter: stable) {
  .hero-full,
  .modules-section,
  .site-footer {
    width: 100vw !important;
  }
}

/* ===== SCROLLBAR FIX ===== */
/* 100vw 包含滚动条宽度，导致 15px 横向滚动。用 html 的 overflow-x 隐藏。 */
html {
  overflow-x: hidden !important;
}

/* 更精确的方法：用 calc 补偿滚动条宽度 */
.hero-full,
.modules-section,
.site-footer {
  width: calc(100vw - var(--scrollbar-width, 0px)) !important;
}

/* ===== PROFILE PAGE v2 ===== */

.profile-tabs-v2 {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}

.profile-tab-v2 {
  padding: 12px 20px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.profile-tab-v2:hover {
  color: var(--fg);
}

.profile-tab-v2.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.profile-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  max-width: 720px;
}

.form-group-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--s-4);
}

.form-group-v2 label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
}

.form-group-v2 input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group-v2 input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.form-group-v2 input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-base);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-v2:hover {
  background: var(--bg-hover);
  border-color: var(--line-3);
}

.btn-v2-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-v2-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.stat-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: var(--s-5);
}

.history-table {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-base);
  overflow: hidden;
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--fg-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-1);
}

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

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.progress-mini {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 6px;
  background: var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: inherit;
}

.progress-text {
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-1);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .stat-box-grid {
    grid-template-columns: 1fr;
  }
  .profile-panel {
    padding: var(--s-4);
  }
}

/* ===== SPACING TIGHTEN ===== */
/* 缩小子页面顶部留白，让内容更紧凑 */

main.container {
  padding-top: 32px !important;
  padding-bottom: 80px !important;
}

/* page-header 进一步收紧 */
.page-header {
  padding: 0 0 24px !important;
  margin-bottom: 32px !important;
}

.page-header .page-label {
  margin-bottom: 12px !important;
}

.page-header h1 {
  margin-bottom: 8px !important;
}

.page-header p {
  margin-bottom: 0 !important;
}

/* 首页 Hero 不受影响 */
.hero-full {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* 其他子页面通用 */
.term-search {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

@media (max-width: 600px) {
  main.container {
    padding-top: 20px !important;
  }
}


