/* theme.css — 设计令牌 v6「星葡园」
 *
 * 配色取自立绘与「197 · 葡萄」指针包：
 *   · 银发 / 白衬衫     → --paper-*（纸面与表面）
 *   · 紫花 / 葡萄指针   → --brand-*（主色族，按钮与强调）
 *   · 草帽 / 藤蔓       → --gold-* / --vine（点缀与星级）
 *   · 粉瞳              → --blush-*（LIVE、生日、少量情绪色）
 *   · 牛仔围裙          → --cool-*（冷色平衡，直播间按钮）
 * 深色不是反相，是「夜里的葡萄园」：墨紫底 + 月光纸 + 藤影。
 *
 * 令牌命名：老站留下的旧色族已经统一改成 --brand-*；
 * 新代码请只用 --brand-* / --paper-*，不要再引入角色名。
 */
@layer reset, base, components, page;

:root {
  /* ── 纸面：奶油白 → 稻草纸 ─────────────────────────── */
  --paper-50:  #fffdf8;
  --paper-100: #faf5ec;
  --paper-200: #f3eadb;
  --paper-300: #e9dcc7;

  --bg:        var(--paper-100);
  --bg-deep:   #f4ecde;
  --panel:     var(--paper-50);
  --panel-2:   #fdf8ef;
  --panel-3:   #f7efe2;
  --border:    #e3d5bf;
  --border-soft: #efe5d4;

  /* ── 文字：带紫调的墨 ─────────────────────────────── */
  --ink-900:   #2a2233;
  --ink-700:   #4d4359;
  --ink-500:   #7d728a;
  --text:      var(--ink-900);
  --text-dim:  var(--ink-700);
  --text-mute: var(--ink-500);

  /* ── 主色：葡萄 ───────────────────────────────────── */
  --brand-700: #4a2f63;
  --brand-600: #5e3d7c;
  --brand-500: #7b5ea7;
  --brand-400: #9c84be;
  --brand-300: #c3aedc;
  --brand-100: #f1e9f8;

  /* ── 点缀：稻草金 / 藤绿 / 花 ─────────────────────── */
  --gold-600:  #a9853f;
  --gold-500:  #c9a24b;
  --gold-300:  #e3cfa3;
  --gold-100:  #f7edd8;

  --vine-600:  #4f6c3f;
  --vine-500:  #6f8b5c;
  --vine-100:  #edf2e7;

  --blush-500: #d98a9e;
  --blush-100: #fbeaee;

  --cool-500:  #4c6285;
  --cool-100:  #e8eef6;

  --accent:      var(--brand-600);
  --accent-deep: var(--brand-700);
  --accent-ink:  var(--paper-50);
  --accent-soft: var(--brand-100);
  --accent-line: var(--brand-300);

  --gold:     var(--gold-500);
  --blush:    var(--blush-500);
  --blush-soft: var(--blush);

  /* 夜色：只给「直播间」这类需要一颗冷色按钮的地方用 */
  --night-500: #46618c;
  --night-700: #33486c;
  --night-ink: #f7f2e8;

  /* 首屏光斑：稻草金 / 葡萄 / 花 */
  --blob-1: #f1dcae;
  --blob-2: #c9b6e2;
  --blob-3: #f0c6cf;

  --ok:       #3f8a68;
  --warn:     #a4762c;
  --danger:   #b4473f;

  /* ── 形状 ─────────────────────────────────────────── */
  --radius-2xl: 26px;
  --radius-xl:  20px;
  --radius:     14px;
  --radius-sm:  9px;
  --radius-pill: 999px;

  /* ── 阴影：暖紫棕，两层叠加 ───────────────────────── */
  --shadow-xs: 0 1px 2px rgba(58, 39, 72, 0.06);
  --shadow-sm: 0 1px 2px rgba(58, 39, 72, 0.05), 0 6px 14px -8px rgba(58, 39, 72, 0.24);
  --shadow:    0 2px 4px rgba(58, 39, 72, 0.05), 0 18px 38px -22px rgba(58, 39, 72, 0.36);
  --shadow-lg: 0 2px 6px rgba(58, 39, 72, 0.05), 0 36px 70px -38px rgba(58, 39, 72, 0.46);
  --shadow-glow: 0 24px 60px -30px rgba(123, 94, 167, 0.5);

  /* ── 字体 ─────────────────────────────────────────── */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC",
                  STSong, "SimSun", serif;
  --font-serif:   "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-sans:    "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC",
                  "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* ── 动效 ─────────────────────────────────────────── */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:       200ms;
  --dur-slow:  620ms;

  color-scheme: light;
}

/* 深色：夜里的葡萄园。不是灰，是墨紫与月光。 */
:root[data-theme="dark"] {
  --paper-50:  #1b1526;
  --paper-100: #120e1a;
  --paper-200: #1e182b;
  --paper-300: #2a2238;

  --bg:        #120e1a;
  --bg-deep:   #0b0811;
  --panel:     #1b1526;
  --panel-2:   #211a2f;
  --panel-3:   #2a2238;
  --border:    #372c48;
  --border-soft: #2b2339;

  --ink-900:   #f1eaf7;
  --ink-700:   #c9bdd8;
  --ink-500:   #8f84a3;
  --text:      var(--ink-900);
  --text-dim:  var(--ink-700);
  --text-mute: var(--ink-500);

  --brand-700: #d9c8ea;
  --brand-600: #b79bd8;
  --brand-500: #9c7fc4;
  --brand-400: #7b5ea7;
  --brand-300: #4a3566;
  --brand-100: #241b33;

  --gold-600:  #e2c27b;
  --gold-500:  #c9a24b;
  --gold-300:  #5e4a22;
  --gold-100:  #2b2414;

  --vine-600:  #9db58a;
  --vine-500:  #7f9a6b;
  --vine-100:  #20291b;

  --blush-500: #f0a9b8;
  --blush-100: #33202a;

  --cool-500:  #8fa6c6;
  --cool-100:  #1b2433;

  --night-500: #7f9ccb;
  --night-700: #5c7aa8;
  --night-ink: #10161f;

  --blob-1: #3a2d16;
  --blob-2: #2e2140;
  --blob-3: #3a2028;

  --accent:      var(--brand-600);
  --accent-deep: var(--brand-700);
  --accent-ink:  #171021;
  --accent-soft: var(--brand-100);
  --accent-line: var(--brand-300);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 14px -8px rgba(0, 0, 0, 0.6);
  --shadow:    0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 38px -22px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 36px 70px -38px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 24px 60px -30px rgba(183, 155, 216, 0.35);

  color-scheme: dark;
}
