/* finesse · register=product · design-language=apple · apple-mode=app
 * A=white+graphite+system-blue · B=system-type · C=grouped-surface · D=feedback · E=clean-surface
 * 单一主题：Apple Light（白底 / 灰卡）。原 light·dark·dark-rose 三套已删除。
 */
/* ============================================================
   大肥鱼 · Design Tokens（Apple Light · 单主题）
   页面：白 #FFFFFF · 卡片：灰 #F5F5F7 · 文字：石墨 #1D1D1F
   强调：系统蓝 #0071E3
   兼容映射 --c-*，全站旧组件无需改类名
   ============================================================ */

:root,
[data-theme="light"] {
  color-scheme: light only;

  /* —— 语义令牌 —— */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-card: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted: #86868B;
  --border: rgba(0, 0, 0, 0.10);
  --border-light: rgba(0, 0, 0, 0.06);
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --ink-wash: rgba(0, 0, 0, 0.02);
  --shadow-ink: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.05);
  --shadow-ink-hover: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 44px rgba(0, 0, 0, 0.08);
  --input-bg: #FFFFFF;
  --input-focus: #0071E3;
  --seal-bg: #0071E3;
  --seal-text: #FFFFFF;
  --divider: rgba(0, 0, 0, 0.08);
  --brand-gradient: linear-gradient(180deg, #1D1D1F 0%, #3A3A3C 100%);
  --mascot-glow: rgba(0, 0, 0, 0.06);

  /* —— 兼容 --c-* —— */
  --c-bg: #FFFFFF;
  --c-surface: #F5F5F7;
  --c-surface2: #FFFFFF;
  --c-surface3: #ECECEE;
  --c-border: rgba(0, 0, 0, 0.10);
  --c-border-light: rgba(0, 0, 0, 0.06);
  --c-text: #1D1D1F;
  --c-text2: #6E6E73;
  --c-text3: #86868B;
  --c-primary: #0071E3;
  --c-primary-soft: rgba(0, 113, 227, 0.10);
  --c-primary-hover: #0077ED;
  --c-on-primary: #FFFFFF;
  --c-accent: #0071E3;
  --mq-magenta: #0071E3;
  --mq-cyan: #5E5CE6;
  --c-accent-soft: rgba(94, 92, 230, 0.10);
  --c-success: #1D8A4C;
  --c-success-soft: rgba(29, 138, 76, 0.10);
  --c-warn: #A85B00;
  --c-warn-soft: rgba(168, 91, 0, 0.10);
  --c-danger: #D70015;
  --c-danger-soft: rgba(215, 0, 21, 0.09);
  --c-info: #0071E3;
  --c-info-soft: rgba(0, 113, 227, 0.10);
  --c-ring: #0071E3;
  --c-tint: #F5F5F7;
  --c-tint-border: rgba(0, 0, 0, 0.08);

  --sidebar-w: 252px;
  --header-h: 52px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --space-xs: 2px;
  --space-sm: 4px;
  --space-md: 8px;
  --space-lg: 12px;
  --space-xl: 16px;
  --space-2xl: 24px;
  --space-3xl: 32px;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow: var(--shadow-ink);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: var(--shadow-ink-hover);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
  --glow-primary: none;
  --glow-accent: none;
  --glow-a: transparent;
  --glow-b: transparent;
  --mq-atmo-a: transparent;
  --mq-atmo-b: transparent;

  --transition: all .2s cubic-bezier(.4, 0, .2, 1);
  --transition-fast: all .15s cubic-bezier(.4, 0, .2, 1);

  --fm-card-shadow: none;
  --fm-lv-text: var(--c-primary);
  --fm-fish-bg: var(--c-primary-soft);
  --fm-fish-border: transparent;
}

/* 单主题：任何遗留 data-theme 值都落到同一套白底灰卡 */
[data-theme="dark"],
[data-theme="dark-rose"] {
  color-scheme: light only;
}

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

html {
  color-scheme: light only;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 苹果风：去掉水墨晕染层 */
body::before {
  content: none;
}

body::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
