/*
 * 月朝夕手机端设计 token（语义层）。本文件由脚本生成，不要手改：
 * 改 source/yuechaoxi/design-system/yuechaoxi-mobile-tokens.json 后运行
 * python -X utf8 scripts/generate_yuechaoxi_tokens_css.py，两者一起提交；CI 用 --check 比对。
 * 版本 1.0.0 · 方向 A 月白 · 2026-09-29
 */
:root {
  --yuechaoxi-color-border: #e6dfd3;
  --yuechaoxi-color-border-strong: #cfc6b8;
  --yuechaoxi-color-brand: #3d5f51;
  --yuechaoxi-color-brand-soft: #e2ebe5;
  --yuechaoxi-color-brand-strong: #2c4a3e;
  --yuechaoxi-color-canvas: #f6f3ed;
  --yuechaoxi-color-danger: #9a4338;
  --yuechaoxi-color-danger-soft: #f6e6e2;
  --yuechaoxi-color-gold: #b8955a;
  --yuechaoxi-color-gold-soft: #f3ebdb;
  --yuechaoxi-color-gold-text: #7a5d2b;
  --yuechaoxi-color-icon-soft: #a39c90;
  --yuechaoxi-color-info: #43627a;
  --yuechaoxi-color-info-soft: #e4ecf1;
  --yuechaoxi-color-night-brand: #8fb5a0;
  --yuechaoxi-color-night-canvas: #101613;
  --yuechaoxi-color-night-gold: #d4bc84;
  --yuechaoxi-color-night-muted: #b9b5ac;
  --yuechaoxi-color-night-surface: #171f1b;
  --yuechaoxi-color-night-text: #f4f0e8;
  --yuechaoxi-color-scrim: rgb(20 18 14 / 45%);
  --yuechaoxi-color-shift-early: #e3ecf1;
  --yuechaoxi-color-shift-early-text: #34566c;
  --yuechaoxi-color-shift-late: #ece4f0;
  --yuechaoxi-color-shift-late-text: #5a4769;
  --yuechaoxi-color-shift-mid: #f3ead6;
  --yuechaoxi-color-shift-mid-text: #735420;
  --yuechaoxi-color-shift-night: #e1e5ee;
  --yuechaoxi-color-shift-night-text: #3b4660;
  --yuechaoxi-color-success: #3d6a55;
  --yuechaoxi-color-success-soft: #e1ede5;
  --yuechaoxi-color-sunken: #efeae0;
  --yuechaoxi-color-surface: #fffdf9;
  --yuechaoxi-color-surface-soft: rgb(255 253 249 / 72%);
  --yuechaoxi-color-text: #24211c;
  --yuechaoxi-color-text-muted: #6b655b;
  --yuechaoxi-color-text-on-brand: #fffdf9;
  /* 已废弃：并入 text-muted；新代码禁用，代码仓门禁棘轮清零后删除 */
  --yuechaoxi-color-text-soft: #6b655b;
  --yuechaoxi-color-warning: #855814;
  --yuechaoxi-color-warning-soft: #f6ead3;

  --yuechaoxi-focus-ring: 0 0 0 3px rgb(61 95 81 / 35%);

  --yuechaoxi-font-body: 16px;
  --yuechaoxi-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --yuechaoxi-font-minimum: 12px;
  --yuechaoxi-font-page-title: 28px;
  --yuechaoxi-font-section-title: 20px;
  --yuechaoxi-font-supporting: 14px;
  --yuechaoxi-font-weight-bold: 600;
  --yuechaoxi-font-weight-regular: 400;

  --yuechaoxi-line-height-body: 1.6;
  --yuechaoxi-line-height-tight: 1.3;

  --yuechaoxi-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --yuechaoxi-motion-fast: 140ms;
  --yuechaoxi-motion-narrative: 600ms;
  --yuechaoxi-motion-normal: 220ms;
  --yuechaoxi-motion-slow: 320ms;

  --yuechaoxi-page-gutter: 16px;

  --yuechaoxi-radius-card: 16px;
  --yuechaoxi-radius-control: 12px;
  --yuechaoxi-radius-feature: 24px;
  --yuechaoxi-radius-pill: 999px;
  --yuechaoxi-radius-small: 8px;

  --yuechaoxi-shadow-card: 0 1px 3px rgb(50 43 34 / 10%);
  --yuechaoxi-shadow-float: 0 24px 80px rgb(13 20 17 / 20%);

  --yuechaoxi-size-bottom-nav-content: 64px;
  --yuechaoxi-size-context-bar: 56px;
  --yuechaoxi-size-control: 48px;
  --yuechaoxi-size-control-compact: 36px;
  --yuechaoxi-size-icon: 24px;
  --yuechaoxi-size-icon-stroke: 2px;
  --yuechaoxi-size-row: 64px;
  --yuechaoxi-size-row-compact: 56px;
  --yuechaoxi-size-touch-minimum: 44px;

  --yuechaoxi-space-1: 4px;
  --yuechaoxi-space-2: 8px;
  --yuechaoxi-space-3: 12px;
  --yuechaoxi-space-4: 16px;
  --yuechaoxi-space-6: 24px;
  --yuechaoxi-space-8: 32px;
  --yuechaoxi-space-12: 48px;

  --yuechaoxi-z-content: 1;
  --yuechaoxi-z-nav: 4;
  --yuechaoxi-z-scrim: 5;
  --yuechaoxi-z-sheet: 6;
  --yuechaoxi-z-toast: 7;
  --yuechaoxi-z-topbar: 3;
}

@media (prefers-contrast: more) {
  :root {
    --yuechaoxi-color-border: #9e968a;
    --yuechaoxi-color-border-strong: #6f675e;
    --yuechaoxi-color-text-muted: #514b44;
    --yuechaoxi-color-text-soft: #514b44;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --yuechaoxi-motion-fast: 0.01ms;
    --yuechaoxi-motion-narrative: 0.01ms;
    --yuechaoxi-motion-normal: 0.01ms;
    --yuechaoxi-motion-slow: 0.01ms;
  }
}
