/*
 * DanmuAI 官网 — 温馨设计 Token
 * 移植自 web/static/warm-tokens-base.css（精简子集）
 */

/* ─── 浅色模式 ─── */
:root {
  --color-primary: #ffa5a5;
  --color-primary-hover: #ff8585;
  --color-primary-light: #ffc8c8;
  --color-primary-rgb: 255, 165, 165;
  --color-secondary: #ffe5d9;
  --color-accent: #fff2cc;
  --color-bg: #fdfbf7;
  --color-bg-subtle: #faf6f0;
  --color-surface: #ffffff;
  --color-text: #5d5757;
  --color-text-dim: #9ca3af;
  --border: #e5e7eb;

  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;

  --shadow-warm: 0 4px 20px rgba(var(--color-primary-rgb), 0.1);
  --shadow-warm-hover: 0 10px 25px rgba(var(--color-primary-rgb), 0.2);
  --shadow-btn: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);

  --nav-height: 4.5rem;
}

/* ─── 深色模式 ─── */
[data-theme="dark"] {
  --color-bg: #1c1917;
  --color-bg-subtle: #231f1c;
  --color-surface: #292524;
  --color-text: #f5f0eb;
  --color-text-dim: #a8a29e;
  --color-secondary: #3f3a36;
  --color-accent: #44403c;
  --border: #57534e;

  --shadow-warm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-warm-hover: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 15px rgba(var(--color-primary-rgb), 0.35);
}

/* ─── 基础排版 ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── 深色模式 — Tailwind 工具类覆盖 ─── */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white\/80 {
  background-color: var(--color-surface) !important;
}

[data-theme="dark"] .bg-cream {
  background-color: var(--color-bg) !important;
}

[data-theme="dark"] .text-warmText {
  color: var(--color-text) !important;
}

[data-theme="dark"] .text-gray-400,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-600 {
  color: var(--color-text-dim) !important;
}

[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-softPeach,
[data-theme="dark"] .border-pastelYellow {
  border-color: var(--border) !important;
}

[data-theme="dark"] .bg-softPeach {
  background-color: var(--color-secondary) !important;
}

[data-theme="dark"] .bg-pastelYellow {
  background-color: var(--color-accent) !important;
}
