/* ==========================================================================
   站点主题令牌（theme-vars.css）—— 全站唯一一份配色定义

   2026-11-24 从 cs06.css 里抽出来：首页只加载 epl-home.css，不加载 cs06.css，
   拿不到 --page-bg / --cs06-card / --accent-rgb 这些令牌，于是「后台换主题、首页不变」。
   现在这份文件在**首页和内页都最先加载**，两份样式各自映射到这些令牌上：

     · 内页：app.css（tailwind 基础）→ theme-vars.css → cs06.css（版式）→ epl-chrome.css（外壳）
     · 首页：theme-vars.css → epl-home.css（设计稿整份）

   内容就是原来的 ① 默认令牌 + ② 七套主题（epl-lime / midnight / graphite / paper /
   ivory / frost / jade）+ 深色主题的 html:has 根规则。加主题时在这里加一段
   body[data-theme='<key>']，再去 helpers.php 的 front_themes() 补一项。

   ⚠️ 别再把这些令牌写回 cs06.css —— 两份定义迟早会走样。
   ========================================================================== */
/* ---------------------------------------------------------------------------
   ① 默认令牌（浅色基线）
   命名对齐 Tailwind 的 slate 阶梯，方便和模板里的类一一对应：
     ink-title 900 / ink 800 / ink-2 700 / muted 600·500 / dim 400 / dim-2 300
   --------------------------------------------------------------------------- */
body[data-theme] {
  --cs06-card: #ffffff;            /* 卡片底（= bg-white） */
  --cs06-card-2: #f8fafc;          /* 次级块：斑马纹、hover 底（= bg-slate-50） */
  --cs06-soft: #f1f5f9;            /* 再深一层：表头、序号块（= bg-slate-100） */

  --cs06-line: #f1f5f9;            /* 细线（= border-slate-100） */
  --cs06-line-2: #e2e8f0;          /* 常规线（= border-slate-200） */
  --cs06-line-3: #cbd5e1;          /* 强线 / hover 线（= border-slate-300） */

  --cs06-ink-title: #0f172a;       /* 标题、比分（= text-slate-900） */
  --cs06-ink: #1e293b;             /* 强调正文（= text-slate-800） */
  --cs06-ink-2: #334155;           /* 正文（= text-slate-700） */
  --cs06-muted: #64748b;           /* 次要（= text-slate-500/600） */
  --cs06-dim: #94a3b8;             /* 说明、日期（= text-slate-400） */
  --cs06-dim-2: #cbd5e1;           /* 装饰（= text-slate-300） */

  --cs06-on-accent: #ffffff;       /* 强调色实心块上的字色 */
  --cs06-accent-alt: #6366f1;      /* 篮球用的第二品牌色（与足球强调色区分） */

  /* —— 直播红（2026-10-23）——
     「正在直播」不再跟主题强调色走：强调色是品牌色，一个站只看得出「哪个站」，
     看不出「哪场在打」。所以直播统一压成红系，且比强调色更深/更饱和，
     一片强调色的徽标里只有红的那几颗在跳。
     浅色主题用 #c81e2b（白字 5.7:1），深色主题单独提亮到 #e02b39（白字 4.6:1）。 */
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;     /* 渐变落点，比主红深一档 */
  --cs06-on-hot: #ffffff;          /* 红底上的字色，恒为白 */
  --cs06-hot-soft: color-mix(in srgb, rgb(var(--cs06-hot-rgb)) 14%, transparent);
  --cs06-hot-ring: color-mix(in srgb, rgb(var(--cs06-hot-rgb)) 34%, transparent);
  --cs06-hot-wash: color-mix(in srgb, rgb(var(--cs06-hot-rgb)) 7%, transparent);
  --cs06-hot-text: #c81e2b;        /* 红「字」（不是红底）：浅底上要压深才够 4.5:1 */
  --cs06-accent-ink: rgb(var(--accent-rgb));  /* 强调色的「文字版」：个别主题要单独压深才够对比 */
  --cs06-scroll: #cbd5e1;          /* 细滚动条 */
  --cs06-ring: rgb(15 23 42 / 0.08);
  --cs06-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 26px rgb(15 23 42 / 0.06);
  --cs06-hero-shade: linear-gradient(to top, rgb(0 0 0 / 0.68) 0%, rgb(0 0 0 / 0.28) 55%, transparent 100%);

  /* —— 装饰层用的派生令牌（不用逐套写，跟着 --accent-rgb 自动走） —— */
  --cs06-glow: rgb(15 40 70 / 0.055);                                   /* 页面顶部氛围光 */
  /* 整页氛围光的**形状**也做成令牌：三套深色各自换光斑位置，
     否则换个色相但光还是同一束，页面看着还是同一套皮肤。 */
  --cs06-page-glow: radial-gradient(1180px 520px at 50% -12%, var(--cs06-glow) 0%, transparent 72%);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 10%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 26%, transparent);
  --cs06-card-sheen: none;                                             /* 卡片顶光，深色主题才给 */
  --cs06-header-shadow: 0 8px 22px -18px rgb(15 23 42 / 0.5);

  /* —— 榜单两色（2026-10-27 换色时从「逐主题列举」收回令牌）——
     原来深色主题要单独写三条 `body[data-theme='…'] .cs06-rank-bar` 覆盖，
     一加主题就得记得来这里补一条，漏了就是「深色下条形槽和卡片糊成一片」。
     现在只认这几个令牌：浅色用默认值，深色主题在自己的块里覆盖（见 ②-1/2/3）。 */
  --cs06-rank-track: var(--cs06-soft);                                 /* 占比条凹槽底色 */
  --cs06-rank-basket-c1: #6d28d9;                                      /* 篮球固定紫，不跟主题走 */
  --cs06-rank-basket-c2: #a78bfa;
  --cs06-rank-basket-soft: color-mix(in srgb, #6d28d9 12%, transparent);

  /* —— EPL 外壳与深色带（2026-11-18）——
     顶部信息条 / 页脚 / 首页那几条深色带（比分条·热榜·集锦·档案）原来在
     chrome-epl.css、home-epl.css 里写死成近黑；现在各给一个令牌，
     每套主题自己定色（见各主题块末尾那三行），换主题时外壳跟着变。 */
  --cs06-top-bg: #0b0b10;                                              /* 顶部信息条底色 */
  --cs06-foot-bg: #120017;                                             /* 页脚底色（深色，配浅字） */
  --cs06-deep: #0d0d13;                                                /* 首页深色带底色 */
}

/* ---------------------------------------------------------------------------
   ② 主题（2026-11-20 重做：2 套深色 + 4 套浅色）

   一套主题 = 一坨 CSS 令牌，页面里没有任何写死的颜色，全靠这些令牌出图。
   后台「站点设置 → 主题」里选中的 key 会写到 <body data-theme="…">，
   下面的同名块就把令牌换掉；**保存 → 前台刷新就换色**，不用改代码。

   令牌分三层：
     · 品牌色   --accent-rgb / --accent-2-rgb / --muted-rgb（RGB 三元组，方便 color-mix）
     · 底色     --page-bg / --header-* / --cs06-card* / --cs06-line*
     · 字色     --cs06-ink* / --cs06-muted / --cs06-dim*
     · 深色带   --cs06-top-bg / --cs06-foot-bg / --cs06-deep（老外壳用，留着给没改版式的页）

   首页那套 md-* 令牌不在这里逐套写：chrome-md.css 里有一层「映射」，
   把 --md-* 指到这里的 --page-bg / --cs06-card / --cs06-ink-title / --accent-rgb 上，
   所以加主题只要在这个文件加一块，首页和内页一起变。

   加新主题 = 这里加一段 body[data-theme='<key>']（最多 40 行）
             + helpers.php 的 front_themes() 补一项（名称 / 描述 / 预览色），其余不用动。
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   ②-0a 英超（epl-lime）—— 浅色 ①：暖纸底 + 荧光绿（英超首页设计稿原色）

   2026-11-24 用户口径「新增一套专属主题」：把 设计/英超/英超.html 那套编辑部色
   收成主题令牌 —— 底 #ece7dc、卡 #f7f3ea、墨字 #1c1a16、强调色荧光绿 #c8f04a
   （实心块上用深字 #14301c，所以 --cs06-on-accent 是深绿不是白）。

   首页（epl-home.css）和外层页头页脚（epl-chrome.css）都从这些令牌取色，
   后台把主题切走的时候整站一起换，不会只换一半。
   --------------------------------------------------------------------------- */
body[data-theme='epl-lime'] {
  --accent-rgb: 200 240 74;      /* #c8f04a 荧光绿 */
  --accent-2-rgb: 255 90 31;     /* #ff5a1f 橙（设计稿的 --orange） */
  --muted-rgb: 92 86 74;

  /*
   * 荧光绿当**实心块**很好看（深色带上的 chip、选中胶囊、栏目标题前的竖条），
   * 但拿它当**文字色**压在暖纸底上根本读不清：资讯 tag、即将开始徽标、链接 hover
   * 全糊成一片亮绿（2026-11-24 用户口径「内页太丑了，很多地方都很丑」）。
   * 这里把「强调色的文字版」压深成一档橄榄绿（对比度 ≈4.9:1），只给文字 / 描边 / 图标；
   * 实心填充和装饰条仍然用 --accent-rgb 的荧光绿。
   */
  --cs06-accent-ink: #4d7c0f;

  --page-bg: #ece7dc;
  --header-bg: #ece7dc;
  --header-ink: #1c1a16;
  --header-ink-dim: rgb(28 26 22 / 0.62);
  --header-line: rgba(28,26,22,.12);
  --header-hover: rgba(28,26,22,.06);
  --header-active-bg: #1c1a16;

  --cs06-card: #f7f3ea;
  --cs06-card-2: #e2dccf;
  --cs06-soft: #efe9dc;
  --cs06-line: #e6dfd0;
  --cs06-line-2: rgba(28,26,22,.12);
  --cs06-line-3: rgba(28,26,22,.2);

  --cs06-ink-title: #1c1a16;
  --cs06-ink: #2b2721;
  --cs06-ink-2: #5c564a;
  --cs06-muted: #6d6657;
  --cs06-dim: #8a8272;
  --cs06-dim-2: #b3aa96;

  --cs06-on-accent: #14301c;
  --cs06-accent-alt: #1f6b3a;
  --cs06-hot-rgb: 255 90 31;
  --cs06-hot-2-rgb: 220 70 20;
  --cs06-hot-text: #e2541b;
  --cs06-scroll: #cfc6b3;
  --cs06-ring: rgba(28,26,22,.09);
  --cs06-shadow: 0 1px 2px rgba(28,26,22,.05), 0 12px 28px -18px rgba(28,26,22,.28);

  --cs06-top-bg: #1c1a16;
  --cs06-foot-bg: #1c1a16;
  --cs06-deep: #14301c;

  --cs06-glow: rgba(200,240,74,.10);
  /*
   * 荧光绿的「淡底」也压成橄榄绿：原来 18% 的荧光绿洗在暖纸底上是一片黄绿，
   * 页面里到处是它（hover、徽标描边、高亮列），看着又脏又晃眼。
   * 现在淡底只留一点点绿意，荧光绿只出现在实心块上（选中胶囊 / 深色带 chip / 竖条）。
   */
  --cs06-accent-soft: color-mix(in srgb, #4d7c0f 9%, transparent);
  --cs06-accent-ring: color-mix(in srgb, #4d7c0f 26%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgba(28,26,22,.45);
}

/* ---------------------------------------------------------------------------
   ②-0 深夜（midnight）—— 深色 ①：近黑底 + 荧光青柠（首页静态稿那套，默认）

   底 #06070a、卡 #0f1319，强调色是静态稿的荧光青柠 #d6ff3d（实心块上用深字）。
   首页就是照这套调的，所以它是默认主题。
   --------------------------------------------------------------------------- */
body[data-theme='midnight'] {
  color-scheme: dark;

  --accent-rgb: 214 255 61;      /* #d6ff3d 荧光青柠 */
  --accent-2-rgb: 159 224 0;     /* #9fe000 渐变落点 */
  --muted-rgb: 139 148 163;

  --page-bg: #06070a;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(214 255 61 / 0.10), transparent 74%), #06070a;
  --header-ink: #f2f5f8;
  --header-ink-dim: rgb(242 245 248 / 0.62);
  --header-line: rgb(255 255 255 / 0.09);
  --header-hover: rgb(255 255 255 / 0.07);
  --header-active-bg: #d6ff3d;

  --cs06-card: #0f1319;
  --cs06-card-2: #141922;
  --cs06-soft: #1a202a;
  --cs06-line: #171c24;
  --cs06-line-2: #222833;
  --cs06-line-3: #333b48;

  --cs06-ink-title: #f5f7fa;
  --cs06-ink: #e6eaf0;
  --cs06-ink-2: #c2c9d4;
  --cs06-muted: #8b94a3;
  --cs06-dim: #78818f;
  --cs06-dim-2: #4e5661;

  --cs06-on-accent: #08090b;      /* 青柠底上用深字 */
  --cs06-accent-alt: #57c8ff;
  --cs06-hot-rgb: 255 90 44;      /* 直播暖橙，和首页热色一致 */
  --cs06-hot-2-rgb: 214 58 20;
  --cs06-hot-text: #ff8f6b;
  --cs06-scroll: #333b48;
  --cs06-ring: rgb(255 255 255 / 0.09);
  --cs06-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035), 0 2px 4px rgb(0 0 0 / 0.35), 0 14px 32px -18px rgb(0 0 0 / 0.7);

  --cs06-rank-track: color-mix(in srgb, var(--cs06-line-2) 70%, transparent);
  --cs06-rank-basket-c1: #a78bfa;
  --cs06-rank-basket-c2: #c4b5fd;
  --cs06-rank-basket-soft: color-mix(in srgb, #a78bfa 16%, transparent);

  --cs06-top-bg: #05060a;
  --cs06-foot-bg: #040509;
  --cs06-deep: #080a0e;

  --cs06-glow: rgb(214 255 61 / 0.09);
  --cs06-page-glow:
    radial-gradient(1100px 520px at 50% -14%, var(--cs06-glow) 0%, transparent 72%),
    radial-gradient(760px 420px at 88% 2%, rgb(87 200 255 / 0.06) 0%, transparent 70%);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 13%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 30%, transparent);
  --cs06-card-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.04) 0%, transparent 55%);
  --cs06-header-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.85);
}

body[data-theme='midnight']::before {
  opacity: 0.14;
}

/* ---------------------------------------------------------------------------
   ②-1 石墨夜（graphite）—— 深色 ②：冷灰黑底 + 冰蓝

   比深夜亮一点点、偏蓝：#0f1218 底、#171c23 卡，强调色冰蓝 #57c8ff。
   长时间看大屏不刺眼，比分和表格的对比也不丢。
   --------------------------------------------------------------------------- */
body[data-theme='graphite'] {
  color-scheme: dark;

  --accent-rgb: 87 200 255;      /* #57c8ff 冰蓝 */
  --accent-2-rgb: 33 150 209;
  --muted-rgb: 132 143 158;

  --page-bg: #0f1218;
  --header-bg: radial-gradient(540px 150px at 10% 0%, rgb(87 200 255 / 0.10), transparent 74%), linear-gradient(100deg, #161b23 0%, #0f1218 100%);
  --header-ink: #eef2f7;
  --header-ink-dim: rgb(238 242 247 / 0.62);
  --header-line: rgb(255 255 255 / 0.08);
  --header-hover: rgb(255 255 255 / 0.07);
  --header-active-bg: #57c8ff;

  --cs06-card: #171c23;
  --cs06-card-2: #1c222a;
  --cs06-soft: #232a34;
  --cs06-line: #1f252e;
  --cs06-line-2: #2a323d;
  --cs06-line-3: #3a4452;

  --cs06-ink-title: #f4f7fb;
  --cs06-ink: #e4eaf2;
  --cs06-ink-2: #bfc8d4;
  --cs06-muted: #939dab;
  --cs06-dim: #7e8896;
  --cs06-dim-2: #545d6a;

  --cs06-on-accent: #061018;     /* 冰蓝底上用深字 */
  --cs06-accent-alt: #9ae0ff;
  --cs06-hot-rgb: 255 90 44;
  --cs06-hot-2-rgb: 214 58 20;
  --cs06-hot-text: #ff9c7a;
  --cs06-scroll: #3a4452;
  --cs06-ring: rgb(255 255 255 / 0.09);
  --cs06-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 2px 4px rgb(0 0 0 / 0.35), 0 14px 32px -18px rgb(0 0 0 / 0.7);

  --cs06-rank-track: color-mix(in srgb, var(--cs06-line-2) 70%, transparent);
  --cs06-rank-basket-c1: #a78bfa;
  --cs06-rank-basket-c2: #c4b5fd;
  --cs06-rank-basket-soft: color-mix(in srgb, #a78bfa 16%, transparent);

  --cs06-top-bg: #0b0e13;
  --cs06-foot-bg: #0a0d12;
  --cs06-deep: #0c1015;

  --cs06-glow: rgb(87 200 255 / 0.10);
  --cs06-page-glow:
    radial-gradient(1080px 500px at 46% -12%, var(--cs06-glow) 0%, transparent 72%),
    radial-gradient(620px 320px at 90% -4%, rgb(255 255 255 / 0.035) 0%, transparent 70%);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 12%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 28%, transparent);
  --cs06-card-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.04) 0%, transparent 55%);
  --cs06-header-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.85);
}

body[data-theme='graphite']::before {
  opacity: 0.12;
}

/* ---------------------------------------------------------------------------
   ②-2 素白（paper）—— 浅色 ①：中性白底 + 石墨字

   底色 #f4f4f6 是为了让白卡片有边（纯白底上卡片会糊成一片），
   强调色近黑 #18181b，实心块上用白字。全站彩色只剩直播红。
   --------------------------------------------------------------------------- */
body[data-theme='paper'] {
  --accent-rgb: 24 24 27;        /* #18181b 石墨 */
  --accent-2-rgb: 63 63 70;
  --muted-rgb: 148 163 184;

  --page-bg: #f4f4f6;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(24 24 27 / 0.05), transparent 74%), #ffffff;
  --header-ink: #0a0a0b;
  --header-ink-dim: rgb(10 10 11 / 0.62);
  --header-line: #e8e8ea;
  --header-hover: rgb(10 10 11 / 0.05);
  --header-active-bg: #18181b;

  --cs06-card: #ffffff;
  --cs06-card-2: #fafafb;
  --cs06-soft: #f0f0f3;
  --cs06-line: #efeff2;
  --cs06-line-2: #e5e5ea;
  --cs06-line-3: #d0d0d7;

  --cs06-ink-title: #09090b;
  --cs06-ink: #18181b;
  --cs06-ink-2: #3f3f46;
  --cs06-muted: #52525b;
  --cs06-dim: #6b6b76;
  --cs06-dim-2: #b6b6bf;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #52525b;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #d2d2d6;
  --cs06-ring: rgb(24 24 27 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(9 9 11 / 0.04), 0 12px 28px -18px rgb(9 9 11 / 0.2);

  --cs06-top-bg: #0b0b10;
  --cs06-foot-bg: #111114;
  --cs06-deep: #0d0d13;

  --cs06-glow: rgb(24 24 27 / 0.05);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 7%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 20%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(9 9 11 / 0.45);
}

/* ---------------------------------------------------------------------------
   ②-3 米白（ivory）—— 浅色 ②：暖白纸底 + 琥珀金

   比素白暖一档：#f7f4ee 底、#fffdf8 卡，强调色琥珀 #b45309，红字压深。
   适合长文和夜场——屏幕大面积偏暖，看久了不刺眼。
   --------------------------------------------------------------------------- */
body[data-theme='ivory'] {
  --accent-rgb: 180 83 9;        /* #b45309 琥珀 */
  --accent-2-rgb: 217 119 6;
  --muted-rgb: 138 125 108;

  --page-bg: #f7f4ee;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(180 83 9 / 0.07), transparent 74%), #fffdf8;
  --header-ink: #14100a;
  --header-ink-dim: rgb(20 16 10 / 0.6);
  --header-line: #ebe3d6;
  --header-hover: rgb(20 16 10 / 0.05);
  --header-active-bg: #8a4b0a;

  --cs06-card: #fffdf8;
  --cs06-card-2: #faf6ee;
  --cs06-soft: #f2ece0;
  --cs06-line: #f0e9dc;
  --cs06-line-2: #e6dcc9;
  --cs06-line-3: #d3c5ab;

  --cs06-ink-title: #14100a;
  --cs06-ink: #241d12;
  --cs06-ink-2: #4a3f2e;
  --cs06-muted: #6b5f4c;
  --cs06-dim: #8a7d68;
  --cs06-dim-2: #c0b39e;

  --cs06-on-accent: #fffaf2;
  --cs06-accent-alt: #a16207;
  --cs06-hot-rgb: 190 24 46;
  --cs06-hot-2-rgb: 150 14 33;
  --cs06-hot-text: #b3142c;
  --cs06-scroll: #d3c5ab;
  --cs06-ring: rgb(20 16 10 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(20 16 10 / 0.05), 0 12px 28px -18px rgb(20 16 10 / 0.22);

  --cs06-top-bg: #14100a;
  --cs06-foot-bg: #1a150d;
  --cs06-deep: #17120b;

  --cs06-glow: rgb(180 83 9 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(20 16 10 / 0.4);
}

/* ---------------------------------------------------------------------------
   ②-4 霜蓝（frost）—— 浅色 ③：冷白底 + 靛蓝

   #f1f5fb 底、#ffffff 卡，强调色靛蓝 #1d4ed8。比分和表格压在上面最干净，
   和深夜/石墨夜是一对冷暖。
   --------------------------------------------------------------------------- */
body[data-theme='frost'] {
  --accent-rgb: 29 78 216;       /* #1d4ed8 靛蓝 */
  --accent-2-rgb: 59 130 246;
  --muted-rgb: 100 116 139;

  --page-bg: #e6eefc;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(29 78 216 / 0.07), transparent 74%), #ffffff;
  --header-ink: #0a1018;
  --header-ink-dim: rgb(10 16 24 / 0.6);
  --header-line: #dfe8f4;
  --header-hover: rgb(10 16 24 / 0.05);
  --header-active-bg: #1d4ed8;

  --cs06-card: #ffffff;
  --cs06-card-2: #f7fafd;
  --cs06-soft: #eaf1fa;
  --cs06-line: #e9f0f8;
  --cs06-line-2: #dbe6f2;
  --cs06-line-3: #c3d4e6;

  --cs06-ink-title: #0a1018;
  --cs06-ink: #16202e;
  --cs06-ink-2: #334155;
  --cs06-muted: #556577;
  --cs06-dim: #6f8298;
  --cs06-dim-2: #b3c2d4;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #0e7490;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #c3d4e6;
  --cs06-ring: rgb(10 16 24 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(10 16 24 / 0.05), 0 12px 28px -18px rgb(10 16 24 / 0.22);

  --cs06-top-bg: #0a1018;
  --cs06-foot-bg: #0d1622;
  --cs06-deep: #0b131d;

  --cs06-glow: rgb(29 78 216 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(10 16 24 / 0.4);
}

/* ---------------------------------------------------------------------------
   ②-5 玉青（jade）—— 浅色 ④：极浅青底 + 墨绿

   #f0f7f4 底、#ffffff 卡，强调色墨绿 #0f766e。绿茵的另一种冷调写法，
   和霜蓝比更「球场」一点。
   --------------------------------------------------------------------------- */
body[data-theme='jade'] {
  --accent-rgb: 15 118 110;      /* #0f766e 墨绿 */
  --accent-2-rgb: 13 148 136;
  --muted-rgb: 95 122 115;

  --page-bg: #e7f4ee;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(15 118 110 / 0.07), transparent 74%), #ffffff;
  --header-ink: #07120f;
  --header-ink-dim: rgb(7 18 15 / 0.6);
  --header-line: #dcece5;
  --header-hover: rgb(7 18 15 / 0.05);
  --header-active-bg: #0f766e;

  --cs06-card: #ffffff;
  --cs06-card-2: #f6fbf9;
  --cs06-soft: #e8f4ef;
  --cs06-line: #e6f2ec;
  --cs06-line-2: #d5e8e0;
  --cs06-line-3: #b9d6cb;

  --cs06-ink-title: #07120f;
  --cs06-ink: #12241f;
  --cs06-ink-2: #294741;
  --cs06-muted: #4d6b64;
  --cs06-dim: #658079;
  --cs06-dim-2: #a9c4bc;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #0e7490;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #b9d6cb;
  --cs06-ring: rgb(7 18 15 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(7 18 15 / 0.05), 0 12px 28px -18px rgb(7 18 15 / 0.22);

  --cs06-top-bg: #07120f;
  --cs06-foot-bg: #0a1a16;
  --cs06-deep: #091713;

  --cs06-glow: rgb(15 118 110 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(7 18 15 / 0.4);
}


/* ---------------------------------------------------------------------------
   ②-6 沙丘（sand）—— 浅色 ⑤：暖沙底 + 陶土橙

   2026-11-24 新增。底 #f5eee2、卡 #fffaf1，强调色陶土橙 #b4552a（白字 5.0:1）。
   比「米白」更暖、更土，适合长时间看表；和「英超」那套的区别是底色偏沙、
   强调色是橙而不是荧光绿。
   --------------------------------------------------------------------------- */
body[data-theme='sand'] {
  --accent-rgb: 180 85 42;       /* #b4552a 陶土橙 */
  --accent-2-rgb: 190 110 60;
  --muted-rgb: 107 93 73;

  --page-bg: #f5eee2;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(180 85 42 / 0.07), transparent 74%), #fffaf1;
  --header-ink: #241c12;
  --header-ink-dim: rgb(36 28 18 / 0.6);
  --header-line: #ecdfcc;
  --header-hover: rgb(36 28 18 / 0.05);
  --header-active-bg: #b4552a;

  --cs06-card: #fffaf1;
  --cs06-card-2: #f8f1e4;
  --cs06-soft: #efe6d5;
  --cs06-line: #f0e7d8;
  --cs06-line-2: #e3d7c2;
  --cs06-line-3: #cdbfa6;

  --cs06-ink-title: #241c12;
  --cs06-ink: #33291c;
  --cs06-ink-2: #4d4232;
  --cs06-muted: #6b5d49;
  --cs06-dim: #8a7c66;
  --cs06-dim-2: #c0b39c;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #8a5a2b;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #cdbfa6;
  --cs06-ring: rgb(36 28 18 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(36 28 18 / 0.05), 0 12px 28px -18px rgb(36 28 18 / 0.24);

  --cs06-top-bg: #241c12;
  --cs06-foot-bg: #2b2216;
  --cs06-deep: #1f1810;

  --cs06-glow: rgb(180 85 42 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(36 28 18 / 0.4);
}

/* ---------------------------------------------------------------------------
   ②-7 苔绿（sage）—— 浅色 ⑥：浅苔底 + 橄榄绿

   2026-11-24 新增。底 #eef2e7、卡 #fbfdf7，强调色橄榄绿 #4f7a1f（白字 4.9:1）。
   和「玉青」都是绿系，但玉青偏冷（墨绿/白底），这套偏暖灰绿，压得住长表格。
   --------------------------------------------------------------------------- */
body[data-theme='sage'] {
  --accent-rgb: 79 122 31;       /* #4f7a1f 橄榄绿 */
  --accent-2-rgb: 124 154 46;
  --muted-rgb: 93 111 75;

  --page-bg: #e8f0dc;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(79 122 31 / 0.07), transparent 74%), #fbfdf7;
  --header-ink: #1a2413;
  --header-ink-dim: rgb(26 36 19 / 0.6);
  --header-line: #dee8d1;
  --header-hover: rgb(26 36 19 / 0.05);
  --header-active-bg: #4f7a1f;

  --cs06-card: #fbfdf7;
  --cs06-card-2: #f4f8ec;
  --cs06-soft: #e7eedd;
  --cs06-line: #eaf0e2;
  --cs06-line-2: #dbe6cd;
  --cs06-line-3: #c2d3ab;

  --cs06-ink-title: #1a2413;
  --cs06-ink: #26331c;
  --cs06-ink-2: #3f5230;
  --cs06-muted: #5d6f4b;
  --cs06-muted-2: #6f8060;
  --cs06-dim: #7b8b69;
  --cs06-dim-2: #b3c1a0;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #5c7d2a;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #c2d3ab;
  --cs06-ring: rgb(26 36 19 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(26 36 19 / 0.05), 0 12px 28px -18px rgb(26 36 19 / 0.22);

  --cs06-top-bg: #1a2413;
  --cs06-foot-bg: #212d18;
  --cs06-deep: #14200f;

  --cs06-glow: rgb(79 122 31 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(26 36 19 / 0.4);
}


/* ---------------------------------------------------------------------------
   ②-8 藕荷（violet）—— 浅色 ⑦：浅紫底 + 紫罗兰

   2026-11-25 新增（用户口径「浅色再加几套，别和原来的太像」）。
   底 #f4effc、卡 #fdfbff，强调色紫罗兰 #7c3aed（白字 5.0:1）。
   冷色系里唯一偏紫的一套，和霜蓝（靛蓝）、天青（湖蓝）分开。
   --------------------------------------------------------------------------- */
body[data-theme='violet'] {
  --accent-rgb: 124 58 237;      /* #7c3aed 紫罗兰 */
  --accent-2-rgb: 168 85 247;
  --muted-rgb: 120 108 140;

  --page-bg: #f4effc;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(124 58 237 / 0.08), transparent 74%), #fdfbff;
  --header-ink: #17101f;
  --header-ink-dim: rgb(23 16 31 / 0.6);
  --header-line: #e9def6;
  --header-hover: rgb(23 16 31 / 0.05);
  --header-active-bg: #6d28d9;

  --cs06-card: #fdfbff;
  --cs06-card-2: #f9f5ff;
  --cs06-soft: #f0e9fa;
  --cs06-line: #efe8f9;
  --cs06-line-2: #e3d8f3;
  --cs06-line-3: #cbb8e8;

  --cs06-ink-title: #17101f;
  --cs06-ink: #241a30;
  --cs06-ink-2: #43325a;
  --cs06-muted: #635376;
  --cs06-dim: #7f7192;
  --cs06-dim-2: #c3b7d2;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #7e22ce;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #cbb8e8;
  --cs06-ring: rgb(23 16 31 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(23 16 31 / 0.05), 0 12px 28px -18px rgb(23 16 31 / 0.22);

  --cs06-top-bg: #17101f;
  --cs06-foot-bg: #1d1428;
  --cs06-deep: #1a1224;

  --cs06-glow: rgb(124 58 237 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(23 16 31 / 0.4);
}

/* ---------------------------------------------------------------------------
   ②-9 胭脂（rose）—— 浅色 ⑧：浅粉底 + 玫红

   2026-11-25 新增。底 #fdeff2、卡 #fffbfc，强调色玫红 #be123c（白字 5.9:1）。
   全站唯一偏红的浅色主题；直播红在它上面会显得不那么跳，适合资讯为主的分站。
   --------------------------------------------------------------------------- */
body[data-theme='rose'] {
  --accent-rgb: 190 18 60;       /* #be123c 玫红 */
  --accent-2-rgb: 225 29 72;
  --muted-rgb: 130 100 108;

  --page-bg: #fdeff2;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(190 18 60 / 0.07), transparent 74%), #fffbfc;
  --header-ink: #1f0d12;
  --header-ink-dim: rgb(31 13 18 / 0.6);
  --header-line: #f3dbe1;
  --header-hover: rgb(31 13 18 / 0.05);
  --header-active-bg: #9f1239;

  --cs06-card: #fffbfc;
  --cs06-card-2: #fdf3f5;
  --cs06-soft: #fbe6eb;
  --cs06-line: #f9e7eb;
  --cs06-line-2: #f1d2da;
  --cs06-line-3: #e2aebc;

  --cs06-ink-title: #1f0d12;
  --cs06-ink: #301820;
  --cs06-ink-2: #54313c;
  --cs06-muted: #74505b;
  --cs06-dim: #8f6f79;
  --cs06-dim-2: #d0b6bd;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #9f1239;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #e2aebc;
  --cs06-ring: rgb(31 13 18 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(31 13 18 / 0.05), 0 12px 28px -18px rgb(31 13 18 / 0.22);

  --cs06-top-bg: #1f0d12;
  --cs06-foot-bg: #2a1218;
  --cs06-deep: #240f14;

  --cs06-glow: rgb(190 18 60 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(31 13 18 / 0.4);
}

/* ---------------------------------------------------------------------------
   ②-10 天青（sky）—— 浅色 ⑨：浅天蓝底 + 湖蓝

   2026-11-25 新增。底 #e9f3fb、卡 #ffffff，强调色湖蓝 #0369a1（白字 5.9:1）。
   比霜蓝更青、更透，和玉青的区别是强调色偏蓝不是偏绿。
   --------------------------------------------------------------------------- */
body[data-theme='sky'] {
  --accent-rgb: 3 105 161;       /* #0369a1 湖蓝 */
  --accent-2-rgb: 14 165 233;
  --muted-rgb: 100 120 135;

  --page-bg: #e9f3fb;
  --header-bg: radial-gradient(560px 150px at 12% 0%, rgb(3 105 161 / 0.07), transparent 74%), #ffffff;
  --header-ink: #08131c;
  --header-ink-dim: rgb(8 19 28 / 0.6);
  --header-line: #d8e8f5;
  --header-hover: rgb(8 19 28 / 0.05);
  --header-active-bg: #0369a1;

  --cs06-card: #ffffff;
  --cs06-card-2: #f5fafe;
  --cs06-soft: #e6f2fb;
  --cs06-line: #e6f1fa;
  --cs06-line-2: #d3e6f5;
  --cs06-line-3: #b3d2e8;

  --cs06-ink-title: #08131c;
  --cs06-ink: #0f2030;
  --cs06-ink-2: #2f4a60;
  --cs06-muted: #4d677d;
  --cs06-dim: #6b8599;
  --cs06-dim-2: #aec4d6;

  --cs06-on-accent: #ffffff;
  --cs06-accent-alt: #075985;
  --cs06-hot-rgb: 200 30 44;
  --cs06-hot-2-rgb: 163 18 31;
  --cs06-hot-text: #c81e2b;
  --cs06-scroll: #b3d2e8;
  --cs06-ring: rgb(8 19 28 / 0.09);
  --cs06-shadow: 0 1px 2px rgb(8 19 28 / 0.05), 0 12px 28px -18px rgb(8 19 28 / 0.22);

  --cs06-top-bg: #08131c;
  --cs06-foot-bg: #0b1a26;
  --cs06-deep: #0a1822;

  --cs06-glow: rgb(3 105 161 / 0.06);
  --cs06-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 8%, transparent);
  --cs06-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 22%, transparent);
  --cs06-header-shadow: 0 8px 22px -20px rgb(8 19 28 / 0.4);
}

/* ---------------------------------------------------------------------------
   深色主题的根元素：viewport 滚动条和「橡皮筋」区域归 html 管，
   只给 body 设 color-scheme 会露出一条白槽。
   （浅色主题不用管，默认就是浅色。）

   ⚠️ 这里必须写**字面色值**：--page-bg 定义在 body 上，html 拿不到它
   （自定义属性只向下继承），写 var(--page-bg) 会全部落到 fallback。
   ⚠️ 每套都要带旧 key 别名：线上老库的 theme_key 还是旧值，
      少写一个，那套主题的橡皮筋区就会闪一下白。
   --------------------------------------------------------------------------- */
html:has(body[data-theme='midnight']),
html:has(body[data-theme='graphite']) {
  color-scheme: dark;
  background-color: #06070a;
}
