/* ==========================================================================
   site-theme.css — 全站浅色主题（完整重做版 2026-11-30）

   由 site-theme.js 按 localStorage.tom-home-theme 给 <html> 打标记：
     data-site-theme-page="1"  参与全站主题的页面
     data-site-theme="light"   浅色；"dark" 时本文件所有规则都不生效

   设计原则（不是简单反色）：
     · 底色保持浅色，但每个栏目保留自己的颜色：深权重颜色改成淡底，
       淡颜色加深成可读的墨色，绝不等同于「全白底 + 全黑字」。
     · 有底色的按钮/标签：底色保留或加深，文字固定白字；
       白底按钮：文字固定深色，绝不出现白底白字。
     · 深色图片本身不处理，只处理承载图片的区块与文字层。
     · 深色模式与首页原生主题完全不受影响；我的故事页也不参与。
   ========================================================================== */

html[data-site-theme-page="1"][data-site-theme="light"] {
  /* 基础色板：跟首页浅色态同源 */
  --site-bg: #f6f9f8;
  --site-bg-soft: #eef3f1;
  --site-surface: #ffffff;
  --site-surface-2: #f7fbfa;
  --site-text: #14212a;
  --site-text-2: #4c5b66;
  --site-text-3: #8494a0;
  --site-border: rgba(20, 33, 42, 0.12);
  --site-border-strong: rgba(20, 33, 42, 0.22);
  --site-shadow: 0 14px 36px rgba(20, 33, 42, 0.08);
  --site-shadow-soft: 0 6px 20px rgba(20, 33, 42, 0.06);

  /* 当前栏目的颜色：accent 用于实底，ink 用于浅底上的文字，tint 用于淡底 */
  --page-accent: #0e9b84;
  --page-accent-deep: #0b7c6e;
  --page-ink: #14212a;
  --page-tint: #e9f7f3;
  --page-tint-2: #daf0ea;
  --nav-rgb: 14, 155, 132;
  color-scheme: light;

  /* 全站移动导航面板（tom-responsive.css 的 .tom-r-panel）：
     其 --tom-r-* 变量原来只有 html[data-theme="light"]（首页）覆盖，
     子页浅色时仍是深色底 + 通用深色字规则把面板文字改成墨色 →
     深字压深底看不见。这里给子页浅色态补同一套浅色变量，面板整体翻浅。*/
  --tom-r-bg: rgba(255, 255, 255, 0.98);
  --tom-r-bg-2: rgba(244, 247, 252, 0.97);
  --tom-r-line: rgba(16, 24, 40, 0.12);
  --tom-r-soft: rgba(16, 24, 40, 0.05);
  --tom-r-text: #16202e;
  --tom-r-muted: #63718a;
  --tom-r-shadow: 0 24px 64px rgba(16, 24, 40, 0.18);
}

/* ---------- 各栏目保留自己的颜色，只是按浅色重新调过明度 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page {
  --page-accent: #0e7f91 !important;
  --page-accent-deep: #075c6b !important;
  --page-tint: #e7f6fa !important;
  --page-tint-2: #d6eef5 !important;
  --nav-rgb: 7, 92, 107 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page {
  --page-accent: #0b9bb0 !important;
  --page-accent-deep: #087487 !important;
  --page-tint: #e6f7fa !important;
  --page-tint-2: #d3eff5 !important;
  --nav-rgb: 8, 116, 135 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.tomblog-menu) {
  --page-accent: #a97812 !important;
  --page-accent-deep: #7d5a00 !important;
  --page-tint: #fff7e3 !important;
  --page-tint-2: #ffedbb !important;
  --nav-rgb: 125, 90, 0 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.hero-cta-group.site-menu-moved) {
  --page-accent: #0b7c9e !important;
  --page-accent-deep: #075e7b !important;
  --page-tint: #e7f4fb !important;
  --page-tint-2: #d4ebf8 !important;
  --nav-rgb: 7, 94, 123 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.ershu-tag),
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.cta-section-home) {
  --page-accent: #a97812 !important;
  --page-accent-deep: #7d5a00 !important;
  --page-tint: #fff6e0 !important;
  --page-tint-2: #ffebae !important;
  --nav-rgb: 125, 90, 0 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.pd-nav),
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.site-header .nav-list) {
  --page-accent: #6d4fc4 !important;
  --page-accent-deep: #5335ad !important;
  --page-tint: #f3efff !important;
  --page-tint-2: #e8e0ff !important;
  --nav-rgb: 83, 53, 173 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.price-card) {
  --page-accent: #1d4ed8 !important;
  --page-accent-deep: #1a40b0 !important;
  --page-tint: #edf3ff !important;
  --page-tint-2: #dfe9ff !important;
  --nav-rgb: 26, 64, 176 !important;
}
/* 书单页可能同时带 CTA 区块：青色主色优先，不能被金色覆盖 */
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page.books-page {
  --page-accent: #0e7f91 !important;
  --page-accent-deep: #075c6b !important;
  --page-tint: #e7f6fa !important;
  --page-tint-2: #d6eef5 !important;
  --nav-rgb: 7, 92, 107 !important;
}

/* ==========================================================================
   1. 基础画布与文字
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"],
html[data-site-theme-page="1"][data-site-theme="light"] body {
  background: var(--site-bg) !important;
  background-image: none !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body {
  box-shadow: none !important;
}
/* 书单页深空网格是深色专用，浅色态直接撤掉 */
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page::before,
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page::after {
  display: none !important;
  background-image: none !important;
}

/* 深色主题里写死的浅色字，在浅色态改回深色；
   有底色的按钮 / 标签 / 星图节点单独在后面找回自己的颜色。 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  h1, h2, h3, h4, h5, h6, p, li, span, div, small, label, td, th, time,
  blockquote, figcaption, strong, b
):not(a):not(button):not(a *):not(button *):not([class*="btn"]):not([class*="btn"] *):not([class*="tag"]):not([class*="badge"]):not(.tomblog-post-lock-badge *):not(.hub-node *):not(.hub-core *):not(.cta-section-home *) {
  color: var(--site-text) !important;
  text-shadow: none !important;
}
/* 大标题避免末尾孤字独占一行 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .title-line, .hero-title, .tomblog-hero-title, .section-title
) {
  text-wrap: balance !important;
}

/* 次一级说明文字：有层次，不跟标题一个黑 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .hero-sub, .hero-desc, .hero-subtitle, .tomblog-hero-subtitle,
  .section-sub, .section-subtitle, .section-description, .section-desc,
  .card-desc, .card-excerpt, .option-desc, .pricing-sub, .feature-desc,
  .post-excerpt, .post-meta, .post-date, .muted, .sub-text,
  .business-desc, .message-board-hint
) {
  color: var(--site-text-2) !important;
}

/* ==========================================================================
   2. 顶栏、一级菜单、语言与登录按钮
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .navbar, .nav, .nav-contents-wrapper, .nav-contents, .site-header,
  .tomblog-nav, .pd-nav, .nav-container, .tomblog-nav-inner, .pd-nav-inner,
  .header-inner, .preview-nav-container, .tomblog-sticky-bar,
  .sticky-nav-bar, .sticky-nav-inner
) {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: var(--site-text) !important;
  border-bottom: 1px solid var(--site-border) !important;
  box-shadow: 0 6px 22px rgba(20, 33, 42, 0.06) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-sticky-bar.is-pinned {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(125, 90, 0, 0.16) !important;
  box-shadow: 0 8px 26px rgba(125, 90, 0, 0.1) !important;
}

/* 品牌 / 站点标识：颜色加深，渐变文字改实色，否则浅底上会透明 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .logo, .brand, .logo-text, .tomblog-brand, .tomblog-title, .tomblog-brand a,
  .pd-brand, .books-page .logo-text
) {
  color: var(--page-accent-deep) !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--page-accent-deep) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .logo-text span, .brand span
) {
  color: var(--page-accent-deep) !important;
  -webkit-text-fill-color: var(--page-accent-deep) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .logo-icon,
html[data-site-theme-page="1"][data-site-theme="light"] .logo-mark {
  background: var(--page-accent-deep) !important;
  color: #ffffff !important;
}

/* 菜单项：未选中白底深字，选中实底白字；绝不用浅色字配白底 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .navbar .nav-menu > li > a.nav-link,
  .tomblog-menu > li > a.tomblog-link,
  body.tomai-page .nav-contents > .nav-list > li > a.link,
  .site-header .nav > .nav-list > li > a.nav-link,
  .sticky-nav-inner > a.btn-menu,
  .site-menu-moved > a.btn-menu,
  .hero-cta-group > a.btn-menu,
  body #tool-section-menu > a.btn-menu,
  body #sticky-nav-bar .sticky-nav-inner > a.btn-menu
):not(.btn-menu-active):not([aria-current="page"]):not(.active):not(li.active > a):not(li[aria-current="page"] > a) {
  background: rgba(255, 255, 255, 0.92) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.22) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .navbar .nav-menu > li > a.nav-link:hover,
  .tomblog-menu > li > a.tomblog-link:hover,
  body.tomai-page .nav-contents > .nav-list > li > a.link:hover,
  .sticky-nav-inner > a.btn-menu:hover,
  .site-menu-moved > a.btn-menu:hover,
  .hero-cta-group > a.btn-menu:hover,
  body #tool-section-menu > a.btn-menu:hover
) {
  color: var(--page-accent-deep) !important;
  background: var(--page-tint) !important;
  border-color: rgba(var(--nav-rgb), 0.4) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .navbar .nav-menu > li > a.nav-link.active,
  .navbar .nav-menu > li > a.nav-link[aria-current="page"],
  .tomblog-menu > li.active > a.tomblog-link,
  .tomblog-menu > li > a.tomblog-link[aria-current="page"],
  body.tomai-page .nav-contents > .nav-list > li.active > a.link,
  body.tomai-page .nav-contents > .nav-list > li > a.link[aria-current="page"],
  .site-header .nav > .nav-list > li > a.nav-link.active,
  .site-header .nav > .nav-list > li > a.nav-link[aria-current="page"],
  .sticky-nav-inner > a.btn-menu-active,
  .sticky-nav-inner > a.btn-menu[aria-current="page"],
  .site-menu-moved > a.btn-menu-active,
  .site-menu-moved > a.btn-menu[aria-current="page"],
  .hero-cta-group > a.btn-menu-active,
  .hero-cta-group > a.btn-menu[aria-current="page"],
  body #tool-section-menu > a.btn-menu-active,
  body #sticky-nav-bar .sticky-nav-inner > a.btn-menu-active
) {
  background: rgb(var(--nav-rgb)) !important;
  background-color: rgb(var(--nav-rgb)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(var(--nav-rgb), 0.24) !important;
  text-shadow: none !important;
}

/* 语言切换：不管中文态还是英文态，都必须白底深字或淡底深字 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tom-i18n-switch, .tom-i18n-switch[aria-checked="false"]
) {
  background: #ffffff !important;
  color: var(--site-text) !important;
  border-color: var(--site-border-strong) !important;
  box-shadow: 0 2px 10px rgba(20, 33, 42, 0.08) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tom-i18n-switch[aria-checked="true"],
  .hero-lang-slot .tom-i18n-switch[aria-checked="true"]
) {
  background: var(--page-tint-2) !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.35) !important;
  box-shadow: 0 2px 10px rgba(var(--nav-rgb), 0.12) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tom-i18n-switch .tom-i18n-arrow {
  color: inherit !important;
}

/* 登录 / 线路切换 / 其它操作按钮：白底深字，不再黑掉 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .nav-action-btn, .nav-action-label, #btn-wake-admin,
  .nav-actions .tom-site-theme-toggle,
  .tomblog-login-btn, #preview-login-btn,
  a[title*="登录"], button[title*="登录"], .pd-login-btn
) {
  background: #ffffff !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.32) !important;
  box-shadow: 0 2px 10px rgba(20, 33, 42, 0.06) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .nav-action-btn:hover, .tomblog-login-btn:hover, a[title*="登录"]:hover
) {
  background: var(--page-tint) !important;
  color: var(--page-accent-deep) !important;
}

/* 公告条：淡色底 + 深色字 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .announcement-bar, .announcement-bar a, .announcement-link
) {
  background: var(--page-tint) !important;
  color: var(--page-accent-deep) !important;
  text-shadow: none !important;
  border-bottom-color: rgba(var(--nav-rgb), 0.16) !important;
}

/* ==========================================================================
   3. 区块与卡片：淡色底、白卡面、保留栏目主色
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .hero-section, .hero-wrap, .hero, .tomblog-hero, .pd-hero,
  .museum-section, .highlight-section, .stats, .ai-network-section,
  .business-section, .features, .features-showcase, .col-detail-section,
  .fit-section, .why-me-section, .cta-section, .content-section,
  main.homepage, .hand-drawn-bg, .main-bg, .hero-bg,
  .message-board-section, .pricing-section, .pd-section
) {
  background-color: var(--page-tint) !important;
  background-image: radial-gradient(
    900px 420px at 50% 0%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 72%
  ) !important;
  color: var(--site-text) !important;
  border-color: var(--site-border) !important;
}
/* 浅底上的渐变遮罩必须也变浅，不能压黑正文 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .pd-hero-overlay, .hero-overlay, .hero-wrap::before, .pd-hero-bg::after
) {
  background: linear-gradient(
    180deg,
    rgba(246, 249, 248, 0.6),
    rgba(246, 249, 248, 0.9)
  ) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tech-grid, .tech-orb
) {
  opacity: 0.14 !important;
}

/* 深色内容卡 / 面板统一白卡，但保留淡色边框，不用死灰 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .option-preview, .col-block, .fit-card, .fit-autonomy, .fit-value-item,
  .why-me-card, .why-me-refund, .why-me-refund-card, .stat-content,
  .localtools-item, .create-option-card, .feature-item, .vsm-arena,
  .lai-panel, .museum-item, .business-card, .phase-number, .detail-column,
  .cases-toolbar, .cases-search-bar, .case-card, .prompt-bar, .window,
  .biz-card, .biz-qa-col, .delivery-card, .panel, .profile-card,
  .profile-modal, .profile-modal-content, .footer, .site-footer,
  .option-card, .card, .pricing-card, .price-card, .feature-card,
  .tomblog-post-card, .message-board-card, .message-board-textarea,
  .billing-toggle, .tomtool-panel, .tom-site-theme-toggle.is-floating,
  .floating-card, .card-image, .card-image.media-loaded
) {
  background: var(--site-surface) !important;
  background-color: var(--site-surface) !important;
  background-image: none !important;
  color: var(--site-text) !important;
  border-color: var(--site-border) !important;
  box-shadow: var(--site-shadow) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .card-content, .card-body, .tomblog-post-card-body, .option-header,
  .price-head, .feature-showcase-item, .message-board-field
) {
  background: var(--site-surface) !important;
  color: var(--site-text) !important;
}
/* 社群页三类社群卡片标题：Guide.css 写死 color:var(--text-primary)（#fff，深色主题用），
   浅色态卡片已翻白底但这三个标题仍是白字 → 白底白字看不见。翻成墨色。 */
html[data-site-theme-page="1"][data-site-theme="light"] .option-badge {
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .option-card:hover .option-badge {
  color: var(--page-accent-deep) !important;
}

/* 全站移动顶栏 .tom-r-header 背景是硬编码深底 rgba(12,18,30,.96)，
   但浅色通用规则把它的品牌字/文字压成 --site-text（墨色）→ 深底深字看不见。
   顶栏保持深底（深浅两态一致），文字恢复浅色。*/
html[data-site-theme-page="1"][data-site-theme="light"] .tom-r-header,
html[data-site-theme-page="1"][data-site-theme="light"] .tom-r-header__brand {
  color: #f1f5fb !important;
  -webkit-text-fill-color: #f1f5fb !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tom-r-header__brand {
  color: #e8bd52 !important;
  -webkit-text-fill-color: #e8bd52 !important;
}

/* 个性化服务页对话演示窗 pre.code：style.css 写死 #e1e1e3（为深色窗设计），
   浅色态窗口翻白后变成白字白底。翻成深墨色，保留等宽排版。*/
html[data-site-theme-page="1"][data-site-theme="light"] .window-body pre.code,
html[data-site-theme-page="1"][data-site-theme="light"] pre#typeTarget {
  color: #33414c !important;
}

/* 个性化服务页「别自己瞎折腾，我们聊一次」区：style.css 里 h2 是浅紫渐变字、
   .pain-sub 白 70%、.btn-pain-ghost 白字透明底，都是为深色紫卡设计。
   浅色态卡片变淡紫底后这套浅字全部看不清，逐项加深。*/
html[data-site-theme-page="1"][data-site-theme="light"] .pain-card h2 {
  background-image: none !important;
  -webkit-text-fill-color: #5b3fa8 !important;
  color: #5b3fa8 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .pain-card .pain-sub {
  color: #4b5361 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .pain-card .btn-pain-ghost,
html[data-site-theme-page="1"][data-site-theme="light"] .biz-cta .btn-pain-ghost {
  color: #5b3fa8 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(91, 63, 168, 0.35) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .pain-card .btn-pain-ghost small,
html[data-site-theme-page="1"][data-site-theme="light"] .biz-cta .btn-pain-ghost small {
  color: #5b3fa8 !important;
  opacity: 0.85 !important;
}
/* 内联写死黑底的裸 footer（商业案例等页）也要翻浅 */
html[data-site-theme-page="1"][data-site-theme="light"] footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--site-text-2) !important;
  border-top: 1px solid var(--site-border) !important;
  box-shadow: 0 -4px 18px rgba(20, 33, 42, 0.04) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] footer a {
  color: var(--site-text-2) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .feature-card h3, .section-title, .hero-title,
  .business-title, .message-board-list-title
) {
  color: var(--page-accent-deep) !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--page-accent-deep) !important;
  text-shadow: none !important;
}
/* 卡片正文标题保持深色，栏目色只在悬停时点亮，避免整页一片金 */
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-post-title {
  color: var(--site-text) !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--site-text) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-post-card:hover .tomblog-post-title {
  color: var(--page-accent-deep) !important;
  -webkit-text-fill-color: var(--page-accent-deep) !important;
}

/* 输入框 / 下拉框 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  input, textarea, select
) {
  background: #ffffff !important;
  color: var(--site-text) !important;
  border-color: var(--site-border-strong) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  input::placeholder, textarea::placeholder
) {
  color: var(--site-text-3) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   4. 按钮：按「有底色 = 白字 / 白底 = 深字」分层，不再一刀切
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .btn-primary, .pd-btn-primary, .hero-cta-group a[class*="primary"],
  .pricing-cta, .buy-btn, .cta-button, .submit-btn,
  .message-board-submit-btn, .tomblog-search-btn
) {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-deep)) !important;
  background-image: linear-gradient(135deg, var(--page-accent), var(--page-accent-deep)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(var(--nav-rgb), 0.2) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .pd-btn-ghost, .btn-ghost, .btn-outline, .ghost-btn, .nav-pill,
  .message-board-refresh-btn
) {
  background: #ffffff !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.32) !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   技能服务三个入口 + Mac section 按钮：这套按钮的原皮肤靠深色旋转星图做底、
   白字压在上面才看得清；浅色下星图撤掉就成了灰底白字，糊成一团。
   处理办法：浅色态换成各自色相的【实色渐变底 + 白字】——有实底、白字清楚，
   深色态仍是原来的旋转星图，两套互不影响（data-site-theme=dark 时本文件全不生效）。
   -------------------------------------------------------------------------- */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3,
  .tomai-gateway-btn--online
) {
  color: #ffffff !important;
  text-shadow: none !important;
  border-radius: 12px !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(20, 33, 42, 0.18) !important;
}
/* 蓝：线上工作台 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn, .tomai-gateway-btn--online
) {
  background: linear-gradient(135deg, #4b93f8, #2563eb) !important;
  background-image: linear-gradient(135deg, #4b93f8, #2563eb) !important;
}
/* 紫：个性化服务 */
html[data-site-theme-page="1"][data-site-theme="light"] .tomai-gateway-btn2 {
  background: linear-gradient(135deg, #b56bfb, #7c3aed) !important;
  background-image: linear-gradient(135deg, #b56bfb, #7c3aed) !important;
}
/* 绿紫：商业案例 */
html[data-site-theme-page="1"][data-site-theme="light"] .tomai-gateway-btn3 {
  background: linear-gradient(135deg, #3f9e84, #7b6cb8) !important;
  background-image: linear-gradient(135deg, #3f9e84, #7b6cb8) !important;
}
/* 浅色下撤掉深色旋转星图层与彩色描边环，否则叠在实色底上发灰 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3,
  .tomai-gateway-btn--online
)::before,
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3,
  .tomai-gateway-btn--online
)::after {
  display: none !important;
}
/* hover 只做抬升，别让原样式的 background:transparent 把实底冲掉 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn:hover, .tomai-gateway-btn2:hover, .tomai-gateway-btn3:hover,
  .tomai-gateway-btn--online:hover
) {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(20, 33, 42, 0.26) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomai-gateway-btn span, .tomai-gateway-btn2 span, .tomai-gateway-btn3 span,
  .tomai-gateway-btn--online span, .tomai-gateway-btn strong,
  .tomai-gateway-btn2 strong, .tomai-gateway-btn3 strong
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   4c. 其他「透明/半透明底 + 白字、原本靠深色面板」的小按钮。
       浅色下这些按钮落在白底容器上，白字全糊；统一翻成白底深字 + 描边。
       注意：只列确认过的个案类名，绝不用通配 .btn —— 带实色底的按钮
       （如 guide 的蓝/绿/黄 .btn-secondary、.btn-primary、.auth-submit-btn）
       本来就看得清，保持原样。
   -------------------------------------------------------------------------- */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .cases-search-btn, .refresh-btn, .pd-back, .contact-mini-btn,
  .gshop-mini-btn, .tomai-lightbox-close, .tom-state__action
) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.32) !important;
  box-shadow: 0 2px 10px rgba(20, 33, 42, 0.07) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .cases-search-btn:hover, .refresh-btn:hover, .pd-back:hover,
  .contact-mini-btn:hover, .gshop-mini-btn:hover, .tomai-lightbox-close:hover,
  .tom-state__action:hover
) {
  background: var(--page-tint) !important;
  color: var(--page-accent-deep) !important;
  border-color: rgba(var(--nav-rgb), 0.45) !important;
}
/* cases 搜索按钮里的图标用 currentColor，跟随文字色即可 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .cases-search-btn, .refresh-btn
) svg {
  stroke: currentColor !important;
}
/* payAi / boltWEB 这类 is-dark 定价页：.price-card .btn-secondary 原是透明底白字，
   浅色下 price-card 被翻白后字就没了 —— 改成实色主色按钮（带颜色、白字），
   与同卡 .btn-primary 形成主次。只锁 body.is-dark，不碰 guide 的实色 .btn-secondary。 */
html[data-site-theme-page="1"][data-site-theme="light"] body.is-dark .price-card .btn-secondary {
  background: linear-gradient(135deg, #6d4fc4, #5335ad) !important;
  background-image: linear-gradient(135deg, #6d4fc4, #5335ad) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(83, 53, 173, 0.24) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.is-dark .price-card .btn-secondary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px rgba(83, 53, 173, 0.32) !important;
}

/* ==========================================================================
   5. 技能服务页（TomAi.html）
   ========================================================================== */
/* 深色太空视频在浅色态会露出一大块黑底，整层撤掉，只用淡青雾面 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-wrapper,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-overlay,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-floating-controls {
  display: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-wrap {
  background:
    radial-gradient(760px 360px at 50% 0%, rgba(11, 155, 176, 0.16) 0%, rgba(11, 155, 176, 0) 70%),
    linear-gradient(180deg, #e9f7fa 0%, #f6f9f8 100%) !important;
  border: 1px solid rgba(8, 116, 135, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 46px rgba(8, 116, 135, 0.08) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-wrap h1.header {
  background-image: none !important;
  color: #087487 !important;
  -webkit-text-fill-color: #087487 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .hero-cta-group, .sticky-buttons-container
) {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(8, 116, 135, 0.14) !important;
  border-radius: 18px !important;
}

/* 「桌面工具 · 本地软件全家桶」卡片：浅色下标题/标签/描述全部加深，保证可读 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .features-grid--tomai-desktop .feature-item--tool .feature-title
) {
  color: #14212a !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .features-grid--tomai-desktop .feature-item--tool .feature-description
) {
  color: #4c5b66 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .features-grid--tomai-desktop .feature-item--tool .feature-tag
) {
  color: #0a7a86 !important;
  background: #e6f7fa !important;
  border-color: rgba(8, 116, 135, 0.32) !important;
}
/* 悬停提示也加深，避免浅底上青字看不清 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page
  .feature-item--tool::after {
  color: #087487 !important;
}
/* 网格底部提示行（内联写死白色），浅色下改用中灰 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page
  .features-grid-note {
  color: #4c5b66 !important;
}

/* ==========================================================================
   6. 读书与思考页（TomBlog.html）
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-search, .tomblog-search-mode-select
) {
  background: #ffffff !important;
  border-color: rgba(125, 90, 0, 0.18) !important;
  box-shadow: 0 10px 28px rgba(125, 90, 0, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-search-icon {
  color: #7d5a00 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-search-input {
  background: transparent !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-search-input::placeholder {
  color: var(--site-text-3) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-search-mode-select option {
  background: #ffffff !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-search-mode, .tomblog-chip
) {
  background: #ffffff !important;
  color: var(--site-text-2) !important;
  border-color: rgba(125, 90, 0, 0.18) !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-search-mode.active, .tomblog-chip.active
) {
  background: #7d5a00 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-post-card {
  border: 1px solid rgba(125, 90, 0, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(125, 90, 0, 0.07) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .tomblog-post-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(125, 90, 0, 0.14) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-post-tag, .tomblog-post-badge
) {
  background: #fff5d9 !important;
  color: #7d5a00 !important;
  border-color: rgba(125, 90, 0, 0.2) !important;
}
/* 锁标叠在深色封面上：span 必须保留金色字，不能被全站深色字规则吃掉 */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-post-lock-badge, .tomblog-post-lock-badge span
) {
  background: rgba(17, 17, 19, 0.82) !important;
  color: #ffd54a !important;
  border-color: rgba(255, 213, 74, 0.55) !important;
  text-shadow: none !important;
}

/* ==========================================================================
   7. 硬件 / 软件教学页星图（TomAiTeaching.html）
   —— 图标下面的标题条原来在浅色态被强制成深色字，整块变成黑条，这里整套翻浅
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] #xqw-deep {
  background:
    radial-gradient(circle at 50% 24%, #ffffff 0%, #e7f4fb 46%, #d8ecf8 100%) !important;
  border: 1px solid rgba(7, 94, 123, 0.14) !important;
  border-radius: 24px !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #xqw-deep .hub-node-name, #xqw-deep .hub-core-name
) {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #123044 !important;
  border: 1px solid rgba(7, 94, 123, 0.24) !important;
  box-shadow: 0 4px 12px rgba(7, 94, 123, 0.12) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #xqw-deep .hub-node-tag, #xqw-deep .hub-core-tag
) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #075e7b !important;
  border-color: rgba(7, 94, 123, 0.24) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #xqw-deep .hub-node a.hub-open, #xqw-deep .hub-core a.hub-open
) {
  background: #ffffff !important;
  color: #075e7b !important;
  border-color: rgba(7, 94, 123, 0.36) !important;
  box-shadow: 0 4px 12px rgba(7, 94, 123, 0.1) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #xqw-deep .hub-node a.hub-open:hover, #xqw-deep .hub-core a.hub-open:hover
) {
  background: #e7f4fb !important;
  color: #075e7b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #xqw-deep .hub-node-icon, #xqw-deep .hub-core-ring
) {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(7, 94, 123, 0.2) !important;
  box-shadow: 0 10px 28px rgba(7, 94, 123, 0.14) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #xqw-deep .hub-node.node-outer,
html[data-site-theme-page="1"][data-site-theme="light"] #xqw-deep .hub-node.node-mid {
  filter: none !important;
  opacity: 0.86 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #xqw-deep .hub-node.node-inner {
  filter: none !important;
  opacity: 1 !important;
}

/* ==========================================================================
   8. 社群 Q&A / Preview 页：黄色大区块改成柔和奶油色，按钮全部可读
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] .cta-section-home {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #fff6df 0%, #ffeec0 55%, #fff8ea 100%) !important;
  border-top: 1px solid rgba(125, 90, 0, 0.16) !important;
  border-bottom: 1px solid rgba(125, 90, 0, 0.16) !important;
  color: #4a3200 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .cta-section-home .container {
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(125, 90, 0, 0.14) !important;
  border-radius: 24px !important;
  padding: 42px 32px !important;
  box-shadow: 0 16px 44px rgba(125, 90, 0, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .cta-section-home .cta-title, .cta-section-home .cta-title *
) {
  color: #4a3200 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .cta-section-home .cta-subtitle {
  color: #6b5630 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .btn-cta-large {
  background: linear-gradient(135deg, #a97812, #7d5a00) !important;
  background-image: linear-gradient(135deg, #a97812, #7d5a00) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 26px rgba(125, 90, 0, 0.24) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .btn-cta-contact {
  background: #ffffff !important;
  color: #7d5a00 !important;
  border-color: rgba(125, 90, 0, 0.42) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 26px rgba(125, 90, 0, 0.1) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .btn-cta-large:hover, .btn-cta-contact:hover
) {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(125, 90, 0, 0.2) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .btn-cta-contact:hover {
  background: #fff8e6 !important;
  color: #7d5a00 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .message-board-card, .message-board-textarea,
  .message-board-refresh-btn
) {
  background: #ffffff !important;
  border-color: rgba(125, 90, 0, 0.14) !important;
  box-shadow: 0 10px 28px rgba(125, 90, 0, 0.07) !important;
}
/* 已审核留言的外层容器不再套大白框：留白卡直接落在页面淡底上 */
html[data-site-theme-page="1"][data-site-theme="light"] .message-board-list-wrap {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .message-board-list-title, .message-board-author, .message-board-time
) {
  color: var(--site-text) !important;
}

/* ==========================================================================
   9. 成长书单页卡片（Books.html）
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid {
  gap: 28px !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid .feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%) !important;
  border: 1px solid rgba(7, 92, 107, 0.14) !important;
  border-left: 4px solid #0e7f91 !important;
  border-radius: 18px !important;
  padding: 28px 30px !important;
  box-shadow: 0 12px 32px rgba(7, 92, 107, 0.08) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid .feature-card:hover {
  border-color: rgba(7, 92, 107, 0.3) !important;
  box-shadow: 0 18px 40px rgba(7, 92, 107, 0.14) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid .feature-card h3 {
  color: #075c6b !important;
  -webkit-text-fill-color: #075c6b !important;
  font-weight: 800 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid .feature-card p {
  color: var(--site-text-2) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .features-grid .feature-card strong {
  color: #075c6b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.books-page .section-title {
  background: none !important;
  background-image: none !important;
  color: #075c6b !important;
  -webkit-text-fill-color: #075c6b !important;
  text-shadow: none !important;
}

/* ==========================================================================
   10. 成长社群首屏与通用小组件
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .trusted-logos span, .tomblog-post-tag, .badge, .tag
) {
  background: var(--page-tint) !important;
  color: var(--page-accent-deep) !important;
  border: 1px solid rgba(var(--nav-rgb), 0.18) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-post-tag, .badge, .tag
) {
  border-radius: 999px !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .floating-card, .card-image, .card-image.media-loaded
) {
  border-color: var(--site-border) !important;
  box-shadow: var(--site-shadow) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.ershu-tag) .title-line {
  background-image: none !important;
  -webkit-text-fill-color: #4a3200 !important;
  color: #4a3200 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.ershu-tag) .hero {
  background:
    radial-gradient(800px 420px at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fff8e6 0%, #f6f9f8 100%) !important;
}

/* 短标签绝不竖排（手机 / iPad 尤其容易挤成两行） */
html[data-site-theme-page="1"] :is(
  [class*="badge"], [class*="label"], .ershu-tag, .card-number,
  .tom-site-theme-label, .tom-i18n-label
) {
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-break: strict !important;
}
html[data-site-theme-page="1"] :is(footer, .footer, .site-footer) a {
  white-space: nowrap !important;
  word-break: keep-all !important;
}
html[data-site-theme-page="1"] .option-label {
  width: auto !important;
  min-width: 40px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  text-align: center !important;
}

/* ==========================================================================
   11. 登录 / 注册弹窗浅色态（首页与子页共用）
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #auth-modal-overlay, #user-profile-modal, #preview-confirm-dialog
),
html[data-theme="light"] :is(
  #auth-modal-overlay, #user-profile-modal, #preview-confirm-dialog
) {
  --tom-auth-dark-bg: #f6f9f8;
  --tom-auth-dark-card: #ffffff;
  --tom-auth-dark-border: rgba(20, 33, 42, 0.14);
  --tom-auth-text-light: #14212a;
  --tom-auth-text-muted: #4c5b66;
  background: rgba(20, 33, 42, 0.58) !important;
  color: #14212a !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-modal-content, .user-profile-modal-content, .preview-confirm-content
),
html[data-theme="light"] :is(
  .auth-modal-content, .user-profile-modal-content, .preview-confirm-content
) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #14212a !important;
  border: 1px solid rgba(20, 33, 42, 0.14) !important;
  box-shadow: 0 24px 70px rgba(20, 33, 42, 0.24) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-title, .auth-modal-content h2, .auth-modal-content h3,
  .auth-form-group label, .auth-register-hint,
  .tom-auth-login-progress-text, .tom-auth-login-progress-percent
),
html[data-theme="light"] :is(
  .auth-title, .auth-modal-content h2, .auth-modal-content h3,
  .auth-form-group label, .auth-register-hint,
  .tom-auth-login-progress-text, .tom-auth-login-progress-percent
) {
  color: #14212a !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-input, .auth-modal-content input:not([type="checkbox"]),
  .auth-modal-content textarea, .auth-modal-content select
),
html[data-theme="light"] :is(
  .auth-input, .auth-modal-content input:not([type="checkbox"]),
  .auth-modal-content textarea, .auth-modal-content select
) {
  background: #ffffff !important;
  color: #14212a !important;
  border: 1px solid rgba(20, 33, 42, 0.2) !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .auth-input::placeholder,
html[data-theme="light"] .auth-input::placeholder {
  color: #8494a0 !important;
  opacity: 1 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-password-toggle-btn, .auth-divider, .auth-switch,
  .tom-auth-login-progress-meta, .tom-auth-login-progress-track
),
html[data-theme="light"] :is(
  .auth-password-toggle-btn, .auth-divider, .auth-switch,
  .tom-auth-login-progress-meta, .tom-auth-login-progress-track
) {
  color: #4c5b66 !important;
  border-color: rgba(20, 33, 42, 0.14) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-switch-link, .auth-modal-content a:not(.oauth-login-btn)
),
html[data-theme="light"] :is(
  .auth-switch-link, .auth-modal-content a:not(.oauth-login-btn)
) {
  color: #a97812 !important;
  text-decoration: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .auth-submit-btn,
html[data-theme="light"] .auth-submit-btn {
  background: linear-gradient(135deg, #c1932a, #e0b33c) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(193, 147, 42, 0.24) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .oauth-login-btn, .auth-modal-close, .auth-captcha-img
),
html[data-theme="light"] :is(
  .oauth-login-btn, .auth-modal-close, .auth-captcha-img
) {
  background: #ffffff !important;
  color: #14212a !important;
  border-color: rgba(20, 33, 42, 0.18) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .auth-modal-close,
html[data-theme="light"] .auth-modal-close {
  background: #e0b33c !important;
  color: #14212a !important;
  border-color: transparent !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .oauth-login-btn:disabled,
html[data-theme="light"] .oauth-login-btn:disabled {
  color: #4c5b66 !important;
  opacity: 1 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .auth-error-message, .tom-auth-login-progress-error
),
html[data-theme="light"] :is(
  .auth-error-message, .tom-auth-login-progress-error
) {
  color: #b42318 !important;
}

/* ==========================================================================
   12. 主题状态标记按钮（子页只跟随首页，不注入到菜单行）
   ========================================================================== */
.tom-site-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 42, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #14212a;
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  z-index: 1200;
}
.tom-site-theme-toggle:hover {
  border-color: #0e9b84 !important;
  background: rgba(14, 155, 132, 0.08) !important;
}
.tom-site-theme-toggle svg { width: 15px; height: 15px; flex: none; }
.tom-site-theme-toggle .tom-site-theme-sun { display: block; }
.tom-site-theme-toggle .tom-site-theme-moon { display: none; }
html[data-site-theme-page="1"][data-site-theme="light"] .tom-site-theme-toggle .tom-site-theme-sun { display: none; }
html[data-site-theme-page="1"][data-site-theme="light"] .tom-site-theme-toggle .tom-site-theme-moon { display: block; }
.tom-site-theme-toggle::after { content: attr(data-theme-label); }
html[data-site-theme-page="1"][data-site-theme="dark"] .tom-site-theme-toggle,
html[data-site-theme-page="1"]:not([data-site-theme]) .tom-site-theme-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #eef2f5 !important;
}
.tom-site-theme-toggle.is-floating {
  position: fixed;
  top: 14px;
  right: 118px;
}
@media (max-width: 1024px) {
  .tom-site-theme-toggle.is-floating {
    top: 12px;
    right: 66px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .tom-site-theme-toggle.is-floating::after { content: none; }
  .tom-site-theme-toggle.is-floating svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   教学页内联深色展示区 → 浅色重做
   （版本 20261129light19：含 #dual-talent / #showcase / ide-window / cb-card /
     glass-card / software-tutorial-card / #faq 全部内联深色块浅色化）
   #dual-talent 双栏对战 + #showcase 第三章软件展示卡
   写法：ID 级选择器 + !important，压住页面 body 里的内联 <style>。
   ========================================================================== */
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent.vsm-section {
  background: linear-gradient(180deg, #f2f8ff 0%, #f4fbf8 58%, var(--site-bg) 100%) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-eyebrow {
  color: #64748b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-title {
  color: var(--site-text) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-title em,
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-slogan b {
  background-image: linear-gradient(90deg, #2563eb, #0f8f6a) !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-head-name--hw {
  color: #1d4ed8 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-head-name--sw {
  color: #0f7a5a !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-head-x {
  color: #94a3b8 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-head-desc {
  color: #475569 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-head-desc b {
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-arena {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(30, 64, 175, 0.14) !important;
  box-shadow: 0 16px 44px rgba(20, 33, 42, 0.08) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-arena::before {
  background: linear-gradient(150deg, #dbeafe 0%, #eff6ff 68%, rgba(255, 255, 255, 0) 100%) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-arena::after {
  background: linear-gradient(150deg, #dcfce7 0%, #f0fdf4 68%, rgba(255, 255, 255, 0) 100%) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--hw::before {
  background: linear-gradient(90deg, #2563eb, #60a5fa) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--sw::before {
  background: linear-gradient(90deg, #0f9b72, #34d399) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-corner {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 2px 8px rgba(20, 33, 42, 0.06) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--hw .vsm-corner {
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--sw .vsm-corner {
  color: #0f7a5a !important;
  border-color: rgba(15, 155, 114, 0.3) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-kicker--hw {
  color: #2563eb !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-kicker--sw {
  color: #0f8f6a !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side-title {
  color: var(--site-text) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side-lead {
  color: #475569 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-tags li {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #334155 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 2px 10px rgba(20, 33, 42, 0.04) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-tags--hw li::before {
  background: #3b82f6 !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-tags--sw li::before {
  background: #22c55e !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent a.vsm-more--hw {
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent a.vsm-more--sw {
  color: #0f7a5a !important;
  border-color: rgba(15, 155, 114, 0.42) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-split {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.6) 18%, rgba(15, 155, 114, 0.75) 50%, rgba(34, 197, 94, 0.6) 82%, transparent) !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-orb {
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.22)) drop-shadow(0 4px 14px rgba(34, 197, 94, 0.2)) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-slogan {
  color: #334155 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band--hw {
  background: linear-gradient(180deg, #eff6ff, #ffffff) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band--sw {
  background: linear-gradient(180deg, #f0fdf4, #ffffff) !important;
  border-color: rgba(15, 155, 114, 0.22) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band--hw .vsm-band-badge {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band--sw .vsm-band-badge {
  color: #0f7a5a !important;
  background: rgba(15, 155, 114, 0.12) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band-title {
  color: var(--site-text) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-band-sub {
  color: #64748b !important;
}
@media (max-width: 820px) {
  html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--hw {
    background: linear-gradient(150deg, #dbeafe, #ffffff 78%) !important;
  }
  html[data-site-theme-page="1"][data-site-theme="light"] #dual-talent .vsm-side--sw {
    background: linear-gradient(150deg, #dcfce7, #ffffff 78%) !important;
  }
}

/* 第三章软件展示卡：深色渐变 → 白卡 + 淡色描边，强调色加深仍在白底可读 */
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-row {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(20, 33, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(20, 33, 42, 0.06) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tf-accent) 70%, transparent), transparent) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-row {
  position: relative;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-dir-badge {
  background: color-mix(in srgb, var(--tf-accent) 10%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--tf-accent) 30%, transparent) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-dir-name {
  color: color-mix(in srgb, var(--tf-accent) 62%, #0b1a24) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-dir-from,
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-caption {
  color: #64748b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-item {
  border-left-color: color-mix(in srgb, var(--tf-accent) 34%, transparent) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-item-title {
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-item-desc {
  color: #475569 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-item-use {
  color: color-mix(in srgb, var(--tf-accent) 62%, #0b1a24) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #showcase .tf-media img {
  border-color: rgba(20, 33, 42, 0.12) !important;
  box-shadow: 0 4px 14px rgba(20, 33, 42, 0.06) !important;
}

/* 教学页 IDE 窗口：黑壳 → 浅底白窗，红黄绿三点保留 */
html[data-site-theme-page="1"][data-site-theme="light"] .ide-window {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(20, 33, 42, 0.12) !important;
  box-shadow: 0 16px 44px rgba(20, 33, 42, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .ide-header {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(20, 33, 42, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .ide-content-wrapper,
html[data-site-theme-page="1"][data-site-theme="light"] .ide-sidebar,
html[data-site-theme-page="1"][data-site-theme="light"] .ide-main,
html[data-site-theme-page="1"][data-site-theme="light"] .ide-tabs {
  background: #ffffff !important;
  border-color: rgba(20, 33, 42, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .ide-tab,
html[data-site-theme-page="1"][data-site-theme="light"] .ide-tab.active {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(20, 33, 42, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .ide-tab.active {
  border-top-color: #0f8f6a !important;
  font-weight: 800 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .ide-code-area {
  color: #334155 !important;
}

/* 教学页其余内联深色块 → 浅色：合作区 / 游戏卡 / 软件教程卡 / FAQ */
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #co-build .cb-card, #co-build .cb-card--free, #co-build .cb-cta
) {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  background-color: #ffffff !important;
  border-color: rgba(15, 155, 114, 0.24) !important;
  box-shadow: 0 10px 30px rgba(20, 33, 42, 0.06) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #co-build .cb-num, #co-build .cb-title span, #co-build .cb-cta-txt p b,
  #co-build .cb-card p b
) {
  color: #0f7a5a !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #co-build .cb-card h3, #co-build .cb-cta-txt h4
) {
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  #co-build .cb-card p, #co-build .cb-cta-txt p
) {
  color: #475569 !important;
}
/* 玻璃卡（游戏 / 安全 / 问题区）：白卡 + 淡色描边，压住内联深色渐变 */
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(20, 33, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(20, 33, 42, 0.06) !important;
  backdrop-filter: none !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card :is(
  .sec-card-title, h3, h4, strong, b
) {
  color: var(--site-text) !important;
}
/* 游戏卡内联浅橙副标题在白底不可读，改深橙 */
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#fdba74"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card [style*="color: #fdba74"] {
  color: #c2410c !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#fb923c"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#34d399"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#a78bfa"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#f472b6"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#2dd4bf"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#60a5fa"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#fb7185"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#818cf8"],
html[data-site-theme-page="1"][data-site-theme="light"] .glass-card div[style*="#f59e0b"] {
  background: rgba(20, 33, 42, 0.06) !important;
  border-color: rgba(20, 33, 42, 0.14) !important;
}
/* 软件使用教程卡：深色渐变 → 白卡，青色标题/按钮加深 */
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  background-color: #ffffff !important;
  border-color: rgba(20, 33, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(20, 33, 42, 0.06) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card .st-icon {
  background: rgba(15, 155, 114, 0.08) !important;
  box-shadow: 0 4px 12px rgba(20, 33, 42, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card .st-name,
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card:hover .st-name {
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card .st-intro {
  color: #475569 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] .software-tutorial-card .st-tutorial-btn {
  color: #0b7c9e !important;
  border-color: #0b7c9e !important;
  background: #ffffff !important;
}
/* FAQ：紫黑渐变 → 淡青白底 */
html[data-site-theme-page="1"][data-site-theme="light"] #faq.cta-footer {
  background: linear-gradient(180deg, #f6f9f8 0%, #eef6f4 100%) !important;
  background-color: #f6f9f8 !important;
  color: var(--site-text) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #faq.cta-footer :is(h2, h3, h4, strong, b) {
  color: var(--site-text) !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #faq.cta-footer :is(p, li, div) {
  color: #475569 !important;
}
/* 游戏卡彩色按钮：全站 a:not(.btn) 会把内联白字改成主题链接色（教学页深色态=青色 #22c8e8，
   压在橙/绿/紫渐变底上几乎看不清）。深浅主题统一锁回白字，加轻暗影保证任何实色底都可读；
   不再按内联色值逐个列举，换配色也不会失效。 */
html[data-site-theme-page="1"] body .scale-section .glass-card > a[style*="linear-gradient"],
html[data-site-theme-page="1"][data-site-theme="light"] body .scale-section .glass-card > a[style*="linear-gradient"],
html[data-site-theme-page="1"] body .scale-section .glass-card > a[style*="linear-gradient"]:hover,
html[data-site-theme-page="1"][data-site-theme="light"] body .scale-section .glass-card > a[style*="linear-gradient"]:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55) !important;
}

/* 教学页底部软件 Tab（#bottom-nav-pills > button.nav-pill）：
   页面内联 <style> 用 ID 级 + !important 写了 --tt-accent-pale 浅青字，
   特异性压过通用 .nav-pill 浅色规则，导致浅色态 5 个未选中 Tab
   浅青字配近白底、完全看不见。这里用同级别 ID 选择器 + !important 翻成墨青字。*/
html[data-site-theme-page="1"][data-site-theme="light"] body #bottom-nav-pills > button.nav-pill {
  color: #0f6b78 !important;
  background: rgba(13, 148, 168, 0.08) !important;
  border-color: rgba(13, 148, 168, 0.42) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body #bottom-nav-pills > button.nav-pill:hover {
  color: #0a5560 !important;
  background: rgba(13, 148, 168, 0.16) !important;
  border-color: rgba(13, 148, 168, 0.7) !important;
}
/* 选中态保持实色渐变 + 深色字，不动 */

/* ==========================================================================
   13. 技能服务浅色态收口（2026-11-30）：淡色按钮加深 + 底部深色块翻浅
   ========================================================================== */
/* 社群等级徽章：淡青描边字 → 深青实底白字 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tool-tier .tool-tier-badge {
  background: #087487 !important;
  color: #ffffff !important;
  border-color: #087487 !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}
/* 眉标 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tom-community-eyebrow {
  background: #e6f7fa !important;
  color: #075e7b !important;
  border-color: rgba(8, 116, 135, 0.42) !important;
  -webkit-text-fill-color: #075e7b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tom-community-eyebrow-dot {
  background: #075e7b !important;
  box-shadow: none !important;
}
/* 子标签：未选中深字白底，选中深青实底白字 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .skills-subtab {
  background: #ffffff !important;
  color: #075e7b !important;
  border-color: rgba(8, 116, 135, 0.38) !important;
  -webkit-text-fill-color: #075e7b !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .skills-subtab:hover {
  background: #e6f7fa !important;
  color: #075e7b !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .skills-subtab.is-active,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .skills-subtab[aria-selected="true"] {
  background: linear-gradient(135deg, #0b9bb0, #075e7b) !important;
  background-image: linear-gradient(135deg, #0b9bb0, #075e7b) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(8, 116, 135, 0.24) !important;
}
/* 「两件事」区块：深色底 → 浅青渐层，标题与强调字同步加深 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .what-to-create,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources.what-to-create {
  background: linear-gradient(180deg, #e9f7fa 0%, var(--site-bg) 100%) !important;
  background-color: #eef7fa !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .section-title {
  color: #075e7b !important;
  background-image: none !important;
  -webkit-text-fill-color: #075e7b !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .section-description strong {
  color: #075e7b !important;
  background-image: none !important;
  -webkit-text-fill-color: #075e7b !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .option-title--learn {
  color: #0b7c6e !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .option-title--creator {
  color: #a97812 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .option-title--enterprise {
  color: #2D5FC1 !important;
  text-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page #resources .create-option-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(8, 116, 135, 0.16) !important;
  box-shadow: 0 12px 30px rgba(8, 116, 135, 0.08) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .features-grid-note {
  color: #4c5b66 !important;
}

/* ==========================================================================
   14. 视频背景浅色态保留（用户定版 2026-11-30）
   前提：浅色只改页面底色，视频/动态背景本身不能被撤掉，也不能在视频上
   盖浅色遮罩或白色色块。深色态（data-site-theme=dark）本文件全不生效。
   ========================================================================== */

/* ---------- 14a. 技能服务 hero：视频 + 原皮肤按钮整块保留 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-wrapper {
  display: block !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-overlay {
  display: block !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-video-floating-controls {
  display: flex !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-wrap {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .hero.section, .hero-content-grid, .hero-right, .cta, .sticky-buttons-container
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-wrap h1.header {
  background-image: linear-gradient(to bottom, var(--primary-color) 0%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .hero-wrap .section-description {
  color: var(--text-secondary) !important;
  -webkit-text-fill-color: var(--text-secondary) !important;
}
/* 三个入口按钮：透明底 + 彩色描边 + 旋转星图，和深色态同一套皮肤。
   绝不再给按钮或按钮容器加纯色底。 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
) {
  background: rgba(0, 0, 0, 0.1) !important;
  background-image: none !important;
  border-radius: 8px !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn2 {
  border-color: #a855f7 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn3 {
  border-color: #3f9e84 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
)::before,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
)::after {
  display: block !important;
}

/* ---------- 14b. 经典首页：全屏背景视频区整块保留深色皮肤 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.main-video) .main-bg {
  background-color: #040d22 !important;
  background-image: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.main-video) :is(
  .main-title, .hero-rotating-title, .main-subtitle, .panel-title, .panel-subtitle
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.36) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.main-video) .title-highlight {
  color: #f9d849 !important;
  -webkit-text-fill-color: #f9d849 !important;
  text-shadow: 0 0 12px rgba(249, 216, 73, 0.25) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.main-video) .panel {
  background: rgba(50, 50, 60, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body:has(.main-video) .panel-featured {
  border-color: #ffd700 !important;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.18) !important;
}

/* ==========================================================================
   15. 浅色按钮可读性定版（用户 2026-11-30 三张截图反馈）
   规则：有实色/深色底 → 文字白；白底 → 文字深色；hover 底色换成边框色，
   绝不允许「浅灰底 + 白字」或「白底 + 白字」。本节覆盖第 4 / 14a 节的旧口径。
   ========================================================================== */

/* ---------- 15a. 技能服务四个入口按钮：浅灰底 → 边框色实底 + 白字 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
) {
  background: #3b82f6 !important;
  background-color: #3b82f6 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  border-color: #3b82f6 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn2 {
  background: #a855f7 !important;
  background-color: #a855f7 !important;
  border-color: #a855f7 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn3 {
  background: #3f9e84 !important;
  background-color: #3f9e84 !important;
  border-color: #3f9e84 !important;
}
/* 实色底上旋转星图伪元素会发灰，浅色态关掉 */
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
)::before,
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn, .tomai-gateway-btn2, .tomai-gateway-btn3, .tomai-gateway-btn--online
)::after {
  display: none !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page :is(
  .tomai-gateway-btn:hover, .tomai-gateway-btn2:hover, .tomai-gateway-btn3:hover, .tomai-gateway-btn--online:hover
) {
  background: #2563eb !important;
  background-color: #2563eb !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn2:hover {
  background: #7c3aed !important;
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] body.tomai-page .tomai-gateway-btn3:hover {
  background: #2f7d68 !important;
  background-color: #2f7d68 !important;
  border-color: #2f7d68 !important;
}

/* ---------- 15b. 教学页「工具教程」：hover 底色 = 边框色，白字才看得见 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] #software-tutorials-section a.st-tutorial-btn {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0b7c9e !important;
  -webkit-text-fill-color: #0b7c9e !important;
  border-color: #0b7c9e !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] #software-tutorials-section a.st-tutorial-btn:hover {
  background: #0b7c9e !important;
  background-color: #0b7c9e !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #0b7c9e !important;
  box-shadow: 0 6px 16px rgba(11, 124, 158, 0.28) !important;
  transform: translateY(-2px) !important;
}

/* ---------- 15c. 读书页分类 chip：选中深色底白字，悬停保持可读 ---------- */
html[data-site-theme-page="1"][data-site-theme="light"] :is(.tomblog-chip, .tomblog-search-mode) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #5c4300 !important;
  -webkit-text-fill-color: #5c4300 !important;
  border-color: rgba(125, 90, 0, 0.32) !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(.tomblog-chip:hover, .tomblog-search-mode:hover) {
  background: #fff7e0 !important;
  background-color: #fff7e0 !important;
  color: #5c4300 !important;
  -webkit-text-fill-color: #5c4300 !important;
  border-color: #7d5a00 !important;
}
html[data-site-theme-page="1"][data-site-theme="light"] :is(
  .tomblog-chip.active, .tomblog-search-mode.active,
  .tomblog-chip.active:hover, .tomblog-search-mode.active:hover
) {
  background: #7d5a00 !important;
  background-color: #7d5a00 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #7d5a00 !important;
}
