/* CSS 层 · themes/wme_mexico.css
 * 唯一 token 赋值处（§4.2）。core/components/pages 只消费这些变量。
 *
 * UI-01 官网初版：品牌基础调性统一为「米白底 + 黑字 + 编辑式排版」
 * （官网 / 员工 H5 / 后台共用同一套 token，改观感只改本文件）。
 * 正式品牌视觉由 P0-BRAND 交付后，仍只替换本文件的赋值。
 * 规则：token 名不得含品牌前缀；本文件只做 token 赋值与主题级声明。
 */

:root {
  /* 颜色（米白纸感底 + 墨黑字 + 陶土强调色） */
  --color-primary: #14120f;
  --color-primary-strong: #000000;
  --color-on-primary: #f7f4ee;
  --color-secondary: #6b6357;
  --color-accent: #9b3d2f;
  --color-danger: #a02c20;
  --color-success: #2f6b46;
  --color-warning: #8a5a17;
  --color-info: #2b5f6b;

  /* 渐变（组件内只能整体引用） */
  --gradient-brand: linear-gradient(160deg, #14120f 0%, #2a251e 58%, #45392e 100%);
  --gradient-brand-soft: linear-gradient(160deg, #f7f4ee 0%, #efe8dc 100%);
  --gradient-cta: linear-gradient(135deg, #14120f 0%, #3b342b 100%);
  --gradient-scrim: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.74) 100%);

  /* 浅色底（状态标签与提示条） */
  --tint-primary: rgba(20, 18, 15, 0.06);
  --tint-success: rgba(47, 107, 70, 0.12);
  --tint-warning: rgba(138, 90, 23, 0.12);
  --tint-danger: rgba(160, 44, 32, 0.10);
  --tint-info: rgba(43, 95, 107, 0.10);
  --tint-neutral: rgba(20, 18, 15, 0.05);
  --tint-accent: rgba(155, 61, 47, 0.10);

  /* 表面 */
  --surface-page: #f7f4ee;
  --surface-card: #fffdf9;
  --surface-inset: #efe9df;
  --surface-overlay: rgba(12, 11, 10, 0.56);
  --surface-on-dark: rgba(247, 244, 238, 0.12);
  --surface-on-dark-strong: rgba(247, 244, 238, 0.22);

  /* 文本 */
  --text-primary: #14120f;
  --text-secondary: #4a453d;
  --text-muted: #7d7568;
  --text-inverse: #f9f7f2;
  --text-inverse-muted: rgba(249, 247, 242, 0.76);
  --text-on-accent: #fdfbf7;

  /* 边框 */
  --border-default: #e0d9cb;
  --border-strong: #c7bda9;
  --border-on-dark: rgba(247, 244, 238, 0.30);

  /* 焦点环 */
  --ring-focus: 0 0 0 3px rgba(20, 18, 15, 0.30);
  --ring-focus-on-dark: 0 0 0 3px rgba(247, 244, 238, 0.42);

  /* 圆角（编辑式：直角为主） */
  --radius-card: 2px;
  --radius-control: 2px;
  --radius-pill: 999px;

  /* 阴影（极轻，主要靠留白与细线分层） */
  --shadow-card: 0 1px 2px rgba(20, 18, 15, 0.05);
  --shadow-raised: 0 14px 34px rgba(20, 18, 15, 0.14);
  --shadow-float: 0 -6px 26px rgba(20, 18, 15, 0.12);

  /* 字体 */
  --font-body: "Helvetica Neue", Helvetica, Arial, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "Cascadia Mono", monospace;
  --size-display: 1.75rem;
  --size-title: 1.125rem;
  --size-body: 0.9375rem;
  --size-caption: 0.8125rem;
  --size-money: 2rem;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --screen-max: 26rem;
  --screen-max-wide: 56rem;

  /* 控件与动效 */
  --control-height: 46px;
  --tabbar-height: 60px;
  --anim-fast: 120ms;
  --anim-base: 200ms;
  --anim-slow: 620ms;
  --anim-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* 官网（pages/website.css 消费；命名不带品牌前缀） */
  --site-max: 88rem;
  --site-max-text: 44rem;
  --site-gutter: clamp(20px, 5vw, 72px);
  --site-section-space: clamp(68px, 12vw, 152px);
  --site-row-space: clamp(24px, 4vw, 56px);
  --site-masthead-height: 68px;
  --site-rule: var(--border-default);
  --site-rule-strong: var(--border-strong);
  --site-display-xl: clamp(2.625rem, 9.5vw, 6.75rem);
  --site-display-lg: clamp(2rem, 5.6vw, 4.25rem);
  --site-display-md: clamp(1.5rem, 3.2vw, 2.5rem);
  --site-display-sm: clamp(1.25rem, 2.2vw, 1.75rem);
  --site-lede: clamp(1.0625rem, 1.5vw, 1.375rem);
  --site-eyebrow: 0.6875rem;
  --site-eyebrow-tracking: 0.2em;
  --site-image-bg: #e7e0d3;
  --site-veil: rgba(12, 11, 10, 0.34);
  --site-veil-strong: rgba(12, 11, 10, 0.66);

  /* 管理后台（pages/admin.css 消费；UI-01D，桌面优先 D-13） */
  --admin-side-width: 252px;
  --admin-max: 104rem;
  --admin-gutter: clamp(16px, 3vw, 40px);
}
