/* ==========================================================================
   森林优学 · Flagship Brand & Growth Design System (Visual v4.5 Art-Directed)
   Aligned with App Visual v4 (T36) & Desktop Studio v4 (T19)
   ========================================================================== */
:root {
  /* Deep Obsidian Emerald Flagship Stage */
  --obsidian: #030E0A;
  --obsidian-2: #061812;
  --forest-950: #071F17;
  --forest-900: #0A3A2B;
  --forest-800: #0E4A37;
  --forest-700: #146049;
  --forest-600: #1B7A5D;

  /* Luminous Mint & Aurora */
  --mint: #2FDDBF;
  --mint-bright: #6AF6DF;
  --mint-ink: #008A74;
  --mint-edge: #1BB89C;
  --mint-50: #E6FBF6;
  --mint-100: #CDF5EC;

  /* Champagne Metallic Gold (VIP Invitation & Honors) */
  --gold-200: #FAF0D4;
  --gold-300: #F4DCA8;
  --gold-400: #E5C17B;
  --gold-500: #C69648;
  --gold-900: #291E0B;

  /* Signature Action Orange (Precision Conversion CTA) */
  --energy: #FF6A2B;
  --energy-hover: #FF7F47;
  --energy-deep: #C9440E;
  --energy-50: #FFF1EA;

  /* AI Studio Violet */
  --violet: #7A5AF8;
  --violet-bright: #A78BFA;
  --violet-deep: #5234D6;
  --violet-soft: #EFEBFF;

  /* Subject Semantics (Synced with v4) */
  --s-math: #2F6BFF;
  --s-math-50: #EAF0FF;
  --s-en: #7A5AF8;
  --s-en-50: #F1EEFF;
  --s-cn: #E67E00;
  --s-cn-50: #FFF4E2;
  --s-pro: #0BA37F;
  --s-pro-50: #E3F7F1;

  /* Architectural Light Surfaces */
  --alabaster: #F7FAF8;
  --bg: #ECF2EE;
  --surface: #FFFFFF;
  --surface-sunk: #EBF1EE;
  --ink: #0B1E17;
  --ink-2: #465B53;
  --ink-3: #7E9189;
  --line: rgba(10, 58, 43, 0.085);
  --line-strong: rgba(10, 58, 43, 0.16);
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-dark-strong: rgba(255, 255, 255, 0.20);

  /* Editorial Typography Hierarchy */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Baskerville", Georgia, serif;
  --num: "DIN Alternate", "DIN Condensed", "SF Pro Display", -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Luxury Elevation */
  --shadow-sm: 0 2px 12px rgba(4, 20, 14, 0.05);
  --shadow-md: 0 18px 42px rgba(4, 20, 14, 0.09), 0 2px 10px rgba(4, 20, 14, 0.04);
  --shadow-lg: 0 34px 84px rgba(3, 14, 10, 0.34), 0 8px 24px rgba(3, 14, 10, 0.16);
  --shadow-gold: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 220, 168, 0.32), inset 0 1px 0 rgba(250, 240, 212, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--alabaster);
  line-height: 1.55;
}

.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

.serif {
  font-family: var(--serif);
}

.gold-text {
  background: linear-gradient(125deg, #FAF0D4 0%, #E8C684 48%, #2FDDBF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-foil-text {
  background: linear-gradient(180deg, #FFF8E6 0%, #F4DCA8 46%, #CFA052 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[hidden] { display: none !important; }
button, input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 4px; }
.copy-feedback:empty { display: none; }
.copy-feedback input { display: block; width: 100%; margin-top: 8px; padding: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
