/* ==========================================================================
   天美阁官网 · 主题覆盖层
   设计原则：本文件不含任何主题 A 的规则。A 主题 = 页面原生样式，一行不改。
   B/C/D/E 全部通过 html[data-theme="x"] 前缀覆盖，删掉本文件即完全回到原生。
   ========================================================================== */

/* ---------- 唯一的全局项：颜色过渡（0.5s 柔和，不影响布局与 hover 位移） ---------- */
html[data-theme="b"] body, html[data-theme="c"] body, html[data-theme="d"] body, html[data-theme="e"] body,
html[data-theme="b"] .nav, html[data-theme="c"] .nav, html[data-theme="d"] .nav, html[data-theme="e"] .nav,
html[data-theme="b"] section, html[data-theme="c"] section, html[data-theme="d"] section, html[data-theme="e"] section,
html[data-theme="b"] footer, html[data-theme="c"] footer, html[data-theme="d"] footer, html[data-theme="e"] footer {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, filter .5s ease;
}

/* ==========================================================================
   B · 科技蓝（低饱和商务蓝，适配数字孪生 / 沙盘控制 / 科技项目）
   ========================================================================== */
html[data-theme="b"] {
  --bg: #F3F8FD;
  --ink: #0E2A44;
  --ink-soft: #4B6683;
  --gold: #0F67B1;
  --gold-soft: #4E9CD4;
  --dark: #08243C;
  --line: rgba(15, 103, 177, .12);
}

/* 导航：深蓝底 + 白字 */
html[data-theme="b"] .nav {
  background: rgba(8, 36, 60, .94);
  border-bottom-color: rgba(78, 156, 212, .22);
}
html[data-theme="b"] .brand-name { color: #fff; }
html[data-theme="b"] .brand-sub { color: rgba(214, 233, 248, .62); }
html[data-theme="b"] .brand-mark { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html[data-theme="b"] .nav-links,
html[data-theme="b"] .nav-more-trigger { color: rgba(214, 233, 248, .78); }
html[data-theme="b"] .nav-links a:hover,
html[data-theme="b"] .nav-links a.active,
html[data-theme="b"] .nav-more-trigger:hover { color: #7FC9F2; }
html[data-theme="b"] .nav-toggle { border-color: rgba(255, 255, 255, .28); background: transparent; }
html[data-theme="b"] .nav-toggle span { background: #fff; }
html[data-theme="b"] .mobile-menu {
  background: rgba(8, 36, 60, .99);
  border-top-color: rgba(78, 156, 212, .2);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
}
html[data-theme="b"] .mobile-menu a { color: rgba(224, 240, 252, .9); border-bottom-color: rgba(255, 255, 255, .07); }
html[data-theme="b"] .mobile-menu a:active { color: #7FC9F2; }

/* 下拉菜单 */
html[data-theme="b"] .nav-dropdown {
  background: #0D3151;
  border-color: rgba(78, 156, 212, .18);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .3);
}
html[data-theme="b"] .nav-drop-title,
html[data-theme="b"] .nav-dropdown .info b { color: #fff; }
html[data-theme="b"] .nav-drop-sub,
html[data-theme="b"] .nav-dropdown .info span { color: rgba(214, 233, 248, .58); }
html[data-theme="b"] .nav-drop-item:hover { background: rgba(78, 156, 212, .14); }
html[data-theme="b"] .nav-drop-num,
html[data-theme="b"] .nav-dropdown .num { color: #7FC9F2; }
html[data-theme="b"] .nav-dropdown .arrow { color: rgba(214, 233, 248, .45); }

/* 首屏 / 深色区块 */
html[data-theme="b"] .hero { background: linear-gradient(160deg, #062138 0%, #0B3255 52%, #0E4A73 100%); }
html[data-theme="b"] .hero::before {
  background:
    radial-gradient(circle at 70% 30%, rgba(78, 156, 212, .30), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(15, 103, 177, .26), transparent 50%);
}
html[data-theme="b"] .map { background: linear-gradient(160deg, #062138 0%, #0B3255 100%); }
html[data-theme="b"] .map::before { background: radial-gradient(circle at 80% 30%, rgba(78, 156, 212, .20), transparent 50%); }
/* hero 深底上原生墨蓝字不可读，翻成浅色系（仅限 .hero 范围，不影响浅色区块） */
html[data-theme="b"] .hero h1 { color: #F2F7FB; }
html[data-theme="b"] .hero h1 em { color: #7FC9F2; }
html[data-theme="b"] .hero h1 em::after { background: rgba(127, 201, 242, .22); }
html[data-theme="b"] .hero-lede { color: rgba(214, 233, 248, .78); }
html[data-theme="b"] .hero .eyebrow { color: #7FC9F2; }
html[data-theme="b"] .hero .eyebrow::before { background: #7FC9F2; }
html[data-theme="b"] .hero .btn-primary { background: #7FC9F2; color: #062138; }
html[data-theme="b"] .hero .btn-primary:hover { background: #9BD6F8; }
html[data-theme="b"] .hero .btn-ghost { color: rgba(224, 240, 252, .9); border-color: rgba(214, 233, 248, .35); }
html[data-theme="b"] .hero .btn-ghost:hover { border-color: #7FC9F2; color: #7FC9F2; }

/* 按钮 */
html[data-theme="b"] .btn-primary:hover {
  background: #0B5591;
  box-shadow: 0 12px 24px -8px rgba(15, 103, 177, .45);
}
html[data-theme="b"] .cta-phone:hover { box-shadow: 0 20px 40px -12px rgba(15, 103, 177, .42); }

/* 卡片 / 徽标 / 提示条 */
html[data-theme="b"] .method-card:hover {
  border-color: rgba(15, 103, 177, .22);
  box-shadow: 0 20px 40px -12px rgba(10, 40, 70, .18);
}
html[data-theme="b"] .dl-card:hover {
  border-color: rgba(15, 103, 177, .32);
  box-shadow: 0 12px 30px -10px rgba(10, 40, 70, .14);
}
html[data-theme="b"] .dl-meta .badge { background: rgba(15, 103, 177, .10); color: #0F67B1; }
html[data-theme="b"] .dl-btn { background: #0F67B1; }
html[data-theme="b"] .dl-btn:hover { background: #0B5591; }
html[data-theme="b"] .dl-notice { background: rgba(15, 103, 177, .07); border-color: rgba(15, 103, 177, .18); }
html[data-theme="b"] .dl-card.online {
  background: linear-gradient(135deg, #F4FAFF, #E4F1FC);
  border-color: rgba(15, 103, 177, .35);
}
html[data-theme="b"] .dl-card.online:hover {
  border-color: rgba(15, 103, 177, .6);
  box-shadow: 0 12px 30px -10px rgba(15, 103, 177, .25);
}
html[data-theme="b"] .dl-icon.rar { background: linear-gradient(135deg, #0F67B1, #0B3F6B); }
html[data-theme="b"] .dl-icon.tool { background: linear-gradient(135deg, #0F67B1, #08243C); }

/* 浅色区 */
html[data-theme="b"] .cta { background: linear-gradient(160deg, #F3F8FD 0%, #fff 100%); }
/* .cta 原为深底浅字，浅底后文字必须翻成深色系，否则不可读 */
html[data-theme="b"] .cta { color: #0E2A44; }
html[data-theme="b"] .cta h2 { color: #0E2A44; }
html[data-theme="b"] .cta h2 em { color: #0F67B1; }
html[data-theme="b"] .cta p { color: rgba(14, 42, 68, .68); }
html[data-theme="b"] .cta-phone { background: #0F67B1; color: #fff; }
html[data-theme="b"] .cta-phone small { color: rgba(255, 255, 255, .75); }
html[data-theme="b"] .cta-secondary { color: #0E2A44; border-color: rgba(14, 42, 68, .32); }
html[data-theme="b"] .cta-secondary:hover {
  background: rgba(15, 103, 177, .07);
  border-color: rgba(15, 103, 177, .5);
}

/* ==========================================================================
   C · 莫兰迪中性灰（低饱和，突出沙盘实拍大图）
   ========================================================================== */
html[data-theme="c"] {
  --bg: #F5F4F1;
  --ink: #2C2C2A;
  --ink-soft: #5E5C57;
  --gold: #6E6862;
  --gold-soft: #9A9488;
  --dark: #252523;
  --line: rgba(44, 44, 42, .10);
}

html[data-theme="c"] .nav { background: rgba(248, 247, 244, .9); border-bottom-color: rgba(44, 44, 42, .10); }
html[data-theme="c"] .nav-dropdown { background: #FCFCFA; border-color: rgba(44, 44, 42, .10); }
html[data-theme="c"] .nav-drop-item:hover { background: rgba(110, 104, 98, .07); }
html[data-theme="c"] .mobile-menu { background: rgba(248, 247, 244, .99); border-top-color: rgba(44, 44, 42, .10); }

/* 方案二：hero 翻浅（仅 index 的 .hero-light，movie/about 原生就是深底白字，不能一刀切） */
html[data-theme="c"] .hero-light { background: linear-gradient(160deg, #F2F1EE 0%, #EBE9E4 55%, #E2E0DB 100%); }
html[data-theme="c"] .hero-light::before {
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(184, 144, 46, .10), transparent 70%),
    radial-gradient(50% 50% at 10% 80%, rgba(110, 104, 98, .10), transparent 70%);
}
html[data-theme="c"] .hero-light h1 em::after { background: rgba(110, 104, 98, .30); }
html[data-theme="c"] .map { background: linear-gradient(160deg, #2B2B28 0%, #35342F 100%); }
html[data-theme="c"] .map::before { background: radial-gradient(circle at 80% 30%, rgba(180, 174, 162, .14), transparent 50%); }

/* 图标降饱和，避免彩色小方块抢图 */
html[data-theme="c"] .dl-icon,
html[data-theme="c"] .method-icon,
html[data-theme="c"] .ext-icon { filter: saturate(.3); }

html[data-theme="c"] .dl-card { background: #FCFCFA; border-color: rgba(44, 44, 42, .10); }
html[data-theme="c"] .dl-card:hover {
  border-color: rgba(110, 104, 98, .35);
  box-shadow: 0 12px 30px -10px rgba(44, 44, 42, .14);
}
html[data-theme="c"] .method-card:hover {
  border-color: rgba(110, 104, 98, .22);
  box-shadow: 0 20px 40px -12px rgba(44, 44, 42, .14);
}
html[data-theme="c"] .dl-meta .badge { background: rgba(110, 104, 98, .12); color: #5E5C57; }
html[data-theme="c"] .dl-notice { background: rgba(110, 104, 98, .07); border-color: rgba(110, 104, 98, .18); }
html[data-theme="c"] .dl-card.online {
  background: linear-gradient(135deg, #FCFCFA, #F1F0EC);
  border-color: rgba(110, 104, 98, .3);
}
html[data-theme="c"] .dl-btn { background: #6E6862; }
html[data-theme="c"] .dl-btn:hover { background: #5A544F; }
html[data-theme="c"] .btn-primary:hover { background: #5A544F; box-shadow: 0 12px 24px -8px rgba(44, 44, 42, .28); }
html[data-theme="c"] .cta { background: linear-gradient(160deg, #F5F4F1 0%, #fff 100%); }
/* .cta 原为深底浅字，浅底后文字必须翻成深色系，否则不可读 */
html[data-theme="c"] .cta { color: #2C2C2A; }
html[data-theme="c"] .cta h2 { color: #2C2C2A; }
html[data-theme="c"] .cta h2 em { color: #6E6862; }
html[data-theme="c"] .cta p { color: rgba(44, 44, 42, .68); }
html[data-theme="c"] .cta-phone { background: #6E6862; color: #fff; }
html[data-theme="c"] .cta-phone small { color: rgba(255, 255, 255, .75); }
html[data-theme="c"] .cta-secondary { color: #2C2C2A; border-color: rgba(44, 44, 42, .32); }
html[data-theme="c"] .cta-secondary:hover {
  background: rgba(110, 104, 98, .08);
  border-color: rgba(110, 104, 98, .5);
}
html[data-theme="c"] .cta-phone:hover { background: #6E6862; box-shadow: 0 20px 40px -12px rgba(44, 44, 42, .3); }

/* ==========================================================================
   D · 红金喜庆（暗红 + 哑光金，只点缀导航/分割线/标题，主体保持白底）
   ========================================================================== */
html[data-theme="d"] {
  --bg: #FAF7F2;
  --ink: #1A2332;
  --ink-soft: #5A6473;
  --gold: #9A2229;
  --gold-soft: #B08D4F;
  --dark: #7E0F20;
  --line: rgba(154, 34, 41, .16);
}

html[data-theme="d"] .nav {
  background: rgba(250, 247, 242, .90);
  border-bottom-color: rgba(154, 34, 41, .28);
}
/* 导航下缘一条极细红金分割线，唯一的“仪式感” */
html[data-theme="d"] .nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent, rgba(154, 34, 41, .45) 20%, rgba(176, 141, 79, .85) 50%, rgba(154, 34, 41, .45) 80%, transparent);
}
html[data-theme="d"] .hero { background: linear-gradient(160deg, #C8102E 0%, #9A0E24 55%, #E8A33D 100%); }
html[data-theme="d"] .hero::before {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 232, 160, .28), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(122, 8, 25, .35), transparent 55%);
}
html[data-theme="d"] .map { background: linear-gradient(160deg, #8C0F22 0%, #A91630 100%); }
html[data-theme="d"] .map::before { background: radial-gradient(circle at 80% 30%, rgba(232, 163, 61, .20), transparent 50%); }
/* hero 亮红底，文字用米金白系（仅限 .hero 范围） */
html[data-theme="d"] .hero h1 { color: #FFF8EC; }
html[data-theme="d"] .hero h1 em { color: #FBE3A0; }
html[data-theme="d"] .hero h1 em::after { background: rgba(255, 248, 236, .30); }
html[data-theme="d"] .hero-lede { color: rgba(255, 248, 236, .88); }
html[data-theme="d"] .hero .eyebrow { color: #FBE3A0; }
html[data-theme="d"] .hero .eyebrow::before { background: #FBE3A0; }
html[data-theme="d"] .hero .btn-primary { background: #FBE3A0; color: #9A0E24; }
html[data-theme="d"] .hero .btn-primary:hover { background: #FFEFB8; }
html[data-theme="d"] .hero .btn-ghost { color: rgba(255, 248, 236, .92); border-color: rgba(255, 248, 236, .55); }
html[data-theme="d"] .hero .btn-ghost:hover { border-color: #FBE3A0; color: #FBE3A0; }

/* 标题/装饰线走红金，图片零滤镜 */
html[data-theme="d"] .sc h2 em,
html[data-theme="d"] .hero h1 em,
html[data-theme="d"] .map-info h2 em { color: #B08D4F; }
html[data-theme="d"] .nav-drop-num,
html[data-theme="d"] .nav-dropdown .num { color: #9A2229; }
html[data-theme="d"] .dl-meta .badge { background: rgba(154, 34, 41, .10); color: #9A2229; }
html[data-theme="d"] .dl-notice {
  background: rgba(176, 141, 79, .10);
  border-color: rgba(176, 141, 79, .28);
}
html[data-theme="d"] .dl-card:hover { border-color: rgba(154, 34, 41, .28); }
html[data-theme="d"] .dl-btn:hover { background: #7E1A20; }
html[data-theme="d"] .btn-primary:hover { background: #7E1A20; box-shadow: 0 12px 24px -8px rgba(154, 34, 41, .4); }
html[data-theme="d"] .cta-phone:hover { box-shadow: 0 20px 40px -12px rgba(154, 34, 41, .4); }
html[data-theme="d"] .dl-card.online {
  background: linear-gradient(135deg, #FFFCF6, #FBF1E2);
  border-color: rgba(176, 141, 79, .45);
}
html[data-theme="d"] .dl-icon.tool { background: linear-gradient(135deg, #9A2229, #1A2332); }

/* 大节日红到底：CTA/cta-band/视频弹窗等深色块全翻红金（footer/行业场景走 --dark 已变深红） */
html[data-theme="d"] .cta { background: linear-gradient(160deg, #C8102E 0%, #9A0E24 100%); color: #FFF8EC; }
html[data-theme="d"] .cta h2 { color: #FFF8EC; }
html[data-theme="d"] .cta h2 em { color: #FBE3A0; }
html[data-theme="d"] .cta p { color: rgba(255, 248, 236, .85); }
html[data-theme="d"] .cta-phone { background: #FBE3A0; color: #9A0E24; }
html[data-theme="d"] .cta-phone small { color: rgba(154, 14, 36, .72); }
html[data-theme="d"] .cta-secondary { color: #FFF8EC; border-color: rgba(255, 248, 236, .55); }
html[data-theme="d"] .cta-secondary:hover { border-color: #FBE3A0; color: #FBE3A0; }
html[data-theme="d"] .cta-band { background: linear-gradient(135deg, #9A0E24 0%, #C8102E 100%); }
html[data-theme="d"] .v-modal-info { background: #7E0F20; }
html[data-theme="d"] .v-fallback { background: linear-gradient(160deg, #9A0E24, #7E0F20); }

/* ==========================================================================
   E · 肃穆灰度（85% 灰阶，保留层次，不改图片资源、不动布局）
   ========================================================================== */
html[data-theme="e"] {
  --bg: #F7F7F7;
  --ink: #1F1F1F;
  --ink-soft: #595959;
  --gold: #6E6E6E;
  --gold-soft: #8A8A8A;
  --dark: #171717;
  --line: rgba(31, 31, 31, .12);
}
/* 顶层容器逐个灰度：避免给 html/body 加 filter 造成 fixed 元素定位基准变化 */
html[data-theme="e"] body > * { filter: grayscale(85%); }
html[data-theme="e"] .nav { background: rgba(247, 247, 247, .92); border-bottom-color: rgba(31, 31, 31, .12); }
html[data-theme="e"] .nav-dropdown { background: #FAFAFA; border-color: rgba(31, 31, 31, .12); }
html[data-theme="e"] .nav-drop-item:hover { background: rgba(31, 31, 31, .05); }
html[data-theme="e"] .mobile-menu { background: rgba(247, 247, 247, .99); border-top-color: rgba(31, 31, 31, .12); }
html[data-theme="e"] .hero,
html[data-theme="e"] .map { background: linear-gradient(160deg, #1C1C1C 0%, #2A2A2A 100%); }
html[data-theme="e"] .hero::before,
html[data-theme="e"] .map::before { background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .10), transparent 50%); }
/* hero 深灰底上原生墨蓝字不可读，翻成灰度浅色系（仅限 .hero 范围） */
html[data-theme="e"] .hero h1 { color: #F2F2F2; }
html[data-theme="e"] .hero h1 em { color: #CFCFCF; }
html[data-theme="e"] .hero h1 em::after { background: rgba(255, 255, 255, .22); }
html[data-theme="e"] .hero-lede { color: rgba(255, 255, 255, .72); }
html[data-theme="e"] .hero .eyebrow { color: #B8B8B8; }
html[data-theme="e"] .hero .eyebrow::before { background: #B8B8B8; }
html[data-theme="e"] .hero .btn-primary { background: #E8E8E8; color: #1C1C1C; }
html[data-theme="e"] .hero .btn-primary:hover { background: #FFFFFF; }
html[data-theme="e"] .hero .btn-ghost { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .35); }
html[data-theme="e"] .hero .btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
html[data-theme="e"] .dl-card { border-color: rgba(31, 31, 31, .12); }
html[data-theme="e"] .dl-card:hover { border-color: rgba(31, 31, 31, .3); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .16); }
html[data-theme="e"] .dl-meta .badge { background: rgba(31, 31, 31, .08); color: #4A4A4A; }
html[data-theme="e"] .dl-notice { background: rgba(31, 31, 31, .05); border-color: rgba(31, 31, 31, .16); }
html[data-theme="e"] .dl-btn { background: #4A4A4A; color: #fff; }
html[data-theme="e"] .dl-btn:hover { background: #333; }
html[data-theme="e"] .dl-card.online { background: linear-gradient(135deg, #FBFBFB, #F1F1F1); border-color: rgba(31, 31, 31, .22); }
html[data-theme="e"] .cta { background: linear-gradient(160deg, #F7F7F7 0%, #FDFDFD 100%); }
/* .cta 原为深底浅字，浅底后文字必须翻成深色系，否则不可读 */
html[data-theme="e"] .cta { color: #2A2A2A; }
html[data-theme="e"] .cta h2 { color: #2A2A2A; }
html[data-theme="e"] .cta h2 em { color: #4A4A4A; }
html[data-theme="e"] .cta p { color: rgba(31, 31, 31, .68); }
html[data-theme="e"] .cta-phone { background: #4A4A4A; color: #fff; }
html[data-theme="e"] .cta-phone small { color: rgba(255, 255, 255, .75); }
html[data-theme="e"] .cta-secondary { color: #2A2A2A; border-color: rgba(31, 31, 31, .32); }

/* 键盘可达性：任何主题下焦点都要看得见 */
html[data-theme="b"] a:focus-visible, html[data-theme="c"] a:focus-visible,
html[data-theme="d"] a:focus-visible, html[data-theme="e"] a:focus-visible,
html[data-theme="b"] button:focus-visible, html[data-theme="c"] button:focus-visible,
html[data-theme="d"] button:focus-visible, html[data-theme="e"] button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 各页特有元素回归 ---------- */
/* movie.html：视频播放钮 / 角标 / 提示条 */
html[data-theme="b"] .v-icon { background: rgba(15, 103, 177, .85); }
html[data-theme="b"] .fc-tag { background: rgba(15, 103, 177, .85); }
html[data-theme="b"] .v-modal-tip { background: rgba(15, 103, 177, .12); border-color: rgba(15, 103, 177, .3); }
html[data-theme="c"] .v-icon { background: rgba(110, 104, 98, .85); }
html[data-theme="c"] .fc-tag { background: rgba(110, 104, 98, .85); }
html[data-theme="c"] .v-modal-tip { background: rgba(110, 104, 98, .10); border-color: rgba(110, 104, 98, .28); }
html[data-theme="e"] .v-icon { background: rgba(74, 74, 74, .85); }
html[data-theme="e"] .fc-tag { background: rgba(74, 74, 74, .85); }
html[data-theme="e"] .v-modal-tip { background: rgba(31, 31, 31, .08); border-color: rgba(31, 31, 31, .25); }
html[data-theme="d"] .v-icon { background: rgba(176, 141, 79, .9); }
html[data-theme="d"] .fc-tag { background: rgba(154, 34, 41, .9); }

/* index.html：行业图标底 / 视频 CTA 条 */
html[data-theme="b"] .industry .icon { background: rgba(15, 103, 177, .10); }
html[data-theme="b"] .video-cta {
  background: linear-gradient(135deg, rgba(15, 103, 177, .08), rgba(14, 42, 68, .04));
  border-color: rgba(15, 103, 177, .2);
}
html[data-theme="c"] .video-cta {
  background: linear-gradient(135deg, rgba(110, 104, 98, .07), rgba(44, 44, 42, .03));
  border-color: rgba(110, 104, 98, .18);
}
html[data-theme="e"] .video-cta {
  background: linear-gradient(135deg, rgba(31, 31, 31, .06), rgba(31, 31, 31, .03));
  border-color: rgba(31, 31, 31, .16);
}
