/* ============================================================
   设计令牌 · 两套视觉方向
   A 冷冽控制台：近黑底 / 玻璃卡 / 冷青发光 / 短促干脆
   B 软物桌面：暖纸底 / 无硬边 / 大圆角 / 带回弹
   ============================================================ */

:root,
html[data-theme="a"] {
  color-scheme: dark;
  --bg: #0a0f16;
  --bg-soft: #0d1522;
  --bg-inset: #070b11;
  --panel: rgba(17, 26, 41, .72);
  --panel-solid: #111a29;
  --panel-2: rgba(30, 43, 62, .5);
  --border: rgba(126, 200, 255, .11);
  --border-strong: rgba(126, 200, 255, .26);
  --text: #dce8f2;
  --text-dim: #8ba0b4;
  --text-faint: #5c7085;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-ink: #052027;
  --accent-soft: rgba(34, 211, 238, .13);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, .15);
  --shadow-1: inset 0 1px 0 rgba(126, 200, 255, .06), 0 4px 18px rgba(0, 0, 0, .38);
  --shadow-2: 0 10px 36px rgba(0, 0, 0, .55);
  --glow: 0 0 12px rgba(34, 211, 238, .35), 0 0 3px rgba(34, 211, 238, .55);
  --r-l: 10px;
  --r-m: 7px;
  --r-s: 4px;
  --dur: .16s;
  --dur-slow: .3s;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.2, 0, 0, 1);
  --font-num: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --pad-card: 13px 16px;
  --pad-card-y: 13px;
  --blur: 14px;
  --press-scale: .975;
  --topbar-bg: rgba(10, 15, 22, .78);
  --nav-pill: rgba(34, 211, 238, .12);
}

html[data-theme="b"] {
  color-scheme: light;
  --bg: #f6f1e9;
  --bg-soft: #fbf7f0;
  --bg-inset: #ece5d8;
  --panel: #fffdf9;
  --panel-solid: #fffdf9;
  --panel-2: #f4ede2;
  --border: rgba(186, 155, 118, .17);
  --border-strong: rgba(186, 155, 118, .4);
  --text: #463f33;
  --text-dim: #8c8274;
  --text-faint: #b4aa9a;
  --accent: #dd8551;
  --accent-2: #7ba48b;
  --accent-ink: #fff;
  --accent-soft: rgba(221, 133, 81, .13);
  --ok: #6faf68;
  --ok-soft: rgba(111, 175, 104, .15);
  --warn: #d9a13c;
  --warn-soft: rgba(217, 161, 60, .16);
  --bad: #c96055;
  --bad-soft: rgba(201, 96, 85, .13);
  --shadow-1: 0 2px 6px rgba(151, 120, 88, .09), 0 10px 28px rgba(151, 120, 88, .1);
  --shadow-2: 0 6px 14px rgba(151, 120, 88, .14), 0 18px 44px rgba(151, 120, 88, .16);
  --glow: none;
  --r-l: 22px;
  --r-m: 16px;
  --r-s: 10px;
  --dur: .34s;
  --dur-slow: .5s;
  --ease: cubic-bezier(.3, .7, .4, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --font-num: "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad-card: 16px 18px;
  --pad-card-y: 15px;
  --blur: 0px;
  --press-scale: .96;
  --topbar-bg: rgba(246, 241, 233, .82);
  --nav-pill: rgba(221, 133, 81, .14);
}

/* 主题切换时整体颜色平滑过渡，制造「换了个房间」而不是「换了个颜色」 */
body,
.card,
#topbar,
#tabbar,
.btn,
.chip,
input,
select,
textarea,
.dialog-box {
  transition: background-color var(--dur-slow) var(--ease),
              color var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
}

/* 减弱动效偏好：全部动效关停，只留状态本身 */
@media (prefers-reduced-motion: reduce) {
  html {
    --dur: 0s;
    --dur-slow: 0s;
    --press-scale: 1;
    --spring: cubic-bezier(.2, 0, 0, 1);
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
