/* 页面级配色适配：只覆盖语义 token，不写死任何色值到组件。
   加载顺序必须在三套主题之后（各页面 head 尾部引入）。
   分组：交易（pay/shop）/ 工作台（builder/workshop/research/data）/
   文档（faq/guide/support/docs）/ 账户（login/profile/mine）/ 首页 */

/* ========== 交易：信任感优先，主按钮更明确 ========== */
html:not(.theme-palette-xuanmo):not(.theme-palette-jiguang) body.page-shop {
  --color-accent: #6e9bf5;
  --color-accent-strong: #5583ec;
  --color-accent-hover: #8db2f7;
  --color-accent-soft: rgba(110, 155, 245, 0.14);
}
html.theme-palette-jiguang body.page-shop {
  --color-accent: #3f5cc0;
  --color-accent-strong: #334aa3;
  --color-accent-soft: rgba(63, 92, 192, 0.1);
}

/* ========== 工作台：专注深色，压住辉光方便久看 ========== */
html:not(.theme-palette-xuanmo):not(.theme-palette-jiguang)
  :is(body.page-builder, body.page-strategy-workshop, body.page-data-service, body.page-research, body.page-strategies) {
  --color-page: #0d1222;
  --color-page-glow-1: rgba(99, 102, 241, 0.05);
  --color-page-glow-2: rgba(139, 172, 201, 0.03);
  --color-glow-1: rgba(126, 142, 242, 0.1);
  --color-surface-selected: rgba(126, 142, 242, 0.13);
}
html.theme-palette-xuanmo
  :is(body.page-builder, body.page-strategy-workshop, body.page-data-service, body.page-research, body.page-strategies) {
  --color-page-glow-1: rgba(217, 169, 79, 0.04);
  --color-glow-1: rgba(217, 169, 79, 0.09);
}
html.theme-palette-jiguang
  :is(body.page-builder, body.page-strategy-workshop, body.page-data-service, body.page-research, body.page-strategies) {
  --color-surface: rgba(255, 255, 255, 0.85);
  --color-border: rgba(43, 52, 72, 0.17);
}

/* ========== 文档：阅读优先，提高正文对比、降低装饰 ========== */
html:not(.theme-palette-xuanmo):not(.theme-palette-jiguang)
  :is(body.page-faq, body.page-user-guide, body.page-docs, body.page-support) {
  --color-text: #f2f4fa;
  --color-text-muted: #b3bcd4;
  --color-accent: #8b9bf3;
  --color-page-glow-1: rgba(99, 102, 241, 0.05);
  --color-page-glow-2: transparent;
}
html.theme-palette-xuanmo :is(body.page-faq, body.page-user-guide, body.page-docs, body.page-support) {
  --color-text-muted: #b5b9c2;
  --color-page-glow-1: transparent;
  --color-page-glow-2: transparent;
}
html.theme-palette-jiguang :is(body.page-faq, body.page-user-guide, body.page-docs, body.page-support) {
  --color-page: #faf9f6;
  --color-text: #1f2634;
  --color-text-muted: #57617a;
  --color-page-glow-1: transparent;
  --color-page-glow-2: transparent;
}

/* ========== 账户：品牌感稍强，登录/个人中心更有辨识度 ========== */
html:not(.theme-palette-xuanmo):not(.theme-palette-jiguang)
  :is(body.page-profile, body.page-account, body.auth-standalone-page) {
  --color-accent: #8292f4;
  --color-accent-soft: rgba(130, 146, 244, 0.15);
  --color-border-strong: rgba(130, 146, 244, 0.44);
}
html.theme-palette-jiguang :is(body.page-profile, body.page-account, body.auth-standalone-page) {
  --color-page: #f4f3ef;
  --color-surface-selected: rgba(74, 92, 196, 0.11);
}

/* ========== 首页：保留迎宾感，辉光只比默认稍强一档 ========== */
html:not(.theme-palette-xuanmo):not(.theme-palette-jiguang) body.page-home {
  --color-page-glow-1: rgba(99, 102, 241, 0.11);
  --color-page-glow-2: rgba(139, 172, 201, 0.07);
}
