/* ============================================================
   Formula Racing · 设计令牌（F1 转播风原型）
   碳黑底 + F1 红 + 车队功能色 + 斜切角 + mono 数据字体
   ============================================================ */
:root {
  /* —— 基础色板 —— */
  --bg: #0b0c10;
  --bg-deep: #07080b;
  --surface: #12141c;
  --surface-2: #171a24;
  --panel: rgba(16, 18, 26, 0.86);
  --panel-solid: #10121a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* —— 文字 —— */
  --text: #f5f6f8;
  --text-dim: #a7aeb9;
  --text-faint: #6b7280;
  --text-invert: #ffffff;

  /* —— 品牌与语义色 —— */
  --red: #e10600;
  --red-bright: #ff2a1f;
  --red-deep: #8f0400;
  --gold: #d4af37;
  --purple: #b14be0;   /* 全场最快圈 */
  --green: #2fd05a;    /* 个人最佳 / 绿旗 */
  --yellow: #f5c518;   /* 黄旗 / 慢圈 / 中性胎 */
  --blue: #4aa8ff;     /* 蓝旗 / 信息 */
  --white-tyre: #e8eaee;
  --destructive: #ff3b30;

  /* —— 七车队功能色（近似占位，以资产接入后实测为准） —— */
  --team01: #00d2be; /* 梅赛德斯 W17 · 青 */
  --team02: #ff8000; /* 迈凯伦 MCL40 · 木瓜橙 */
  --team03: #dc0000; /* 法拉利 SF-26 · 红 */
  --team04: #3671c6; /* 红牛 RB22 · 蓝 */
  --team05: #2eaa7d; /* 阿斯顿·马丁 AMR26 · 英伦绿 */
  --team06: #f50537; /* 奥迪 R26 · 品牌红 */
  --team07: #b8985f; /* 凯迪拉克 MAC-26 · 黑金 */

  /* —— 字体 —— */
  --font-display: "Chakra Petch", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* —— 字号（720p 下正文仍 ≥14px，关键数据 ≥24px） —— */
  --fs-caption: 12px;
  --fs-label: 13px;
  --fs-body: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: 40px;
  --fs-hero: clamp(48px, 6vw, 84px);

  /* —— 间距（4/8 节奏） —— */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* —— 斜切角 —— */
  --chamfer-xs: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --chamfer-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --chamfer-md: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --chamfer-lg: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  --notch-tr: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --notch-bl: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 0 100%);

  /* —— 阴影 / 发光 —— */
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.55);
  --glow-red: 0 0 24px rgba(225, 6, 0, 0.35);
  --inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* —— 动效 —— */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  /* —— 布局 —— */
  --safe: 32px; /* HUD 安全边距（GDD：1920×1080 基准 x32 y32） */
  --content-max: 1440px;

  --radius: 0px; /* 全站以斜切代替圆角 */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
