/* 数据流体 · 淡绿白 —— 设计变量与重置 */
@font-face {
  font-family: 'Display';
  src: url('../assets/fonts/display.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef7f1;
  --bg-2: #e3f3ec;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #16241d;
  --muted: #5d7068;
  --faint: #93a79d;
  --green-50: #e8f7ef;
  --green-100: #cdeede;
  --green-200: #a8e6cf;
  --green-400: #5dcaa5;
  --green-600: #2fa98a;
  --green-700: #1f8a72;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.16);
  --danger: #ef6b6b;
  --radius: 24px;
  --radius-sm: 15px;
  --shadow: 0 12px 34px rgba(47, 169, 138, 0.14);
  --shadow-sm: 0 6px 18px rgba(47, 169, 138, 0.10);
  --shadow-lg: 0 22px 50px rgba(31, 138, 114, 0.18);
  --ring: rgba(47, 169, 138, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: 'Display', 'SF Pro Display', -apple-system, 'Helvetica Neue', system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 深色变量（跟随系统 或 强制 dark） */
:root[data-theme="dark"] {
  --bg: #0a1511;
  --bg-2: #0d1c16;
  --surface: rgba(18, 38, 30, 0.62);
  --surface-strong: rgba(20, 44, 35, 0.82);
  --surface-solid: #122a21;
  --text: #e6f5ee;
  --muted: #8fb3a4;
  --faint: #5f7d70;
  --green-400: #46c79c;
  --green-600: #2fa98a;
  --accent: #34d399;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --ring: rgba(52, 211, 153, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1511;
    --bg-2: #0d1c16;
    --surface: rgba(18, 38, 30, 0.62);
    --surface-strong: rgba(20, 44, 35, 0.82);
    --surface-solid: #122a21;
    --text: #e6f5ee;
    --muted: #8fb3a4;
    --faint: #5f7d70;
    --green-400: #46c79c;
    --green-600: #2fa98a;
    --accent: #34d399;
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --ring: rgba(52, 211, 153, 0.4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

input, button, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--green-200); }
