/* ============================================================================
 * 门户 · 白天 / 黑夜
 * ----------------------------------------------------------------------------
 * 结构：
 *   1. 切换按钮（两种模式下都存在）
 *   2. 暗色覆盖（:root[data-theme="dark"]，由 theme-toggle.js / 首屏内联脚本打上）
 *
 * 选择器统一带 `html[data-theme="dark"]` 前缀：门户样式表里绝大多数规则是单类选择器，
 * 加一个 html + 属性选择器后特异性更高，不依赖加载顺序也不会被皮肤 CSS 反超。
 * 颜色只用少量固定暗色（#0b1220 / #0f172a / #131c30），保证六套皮肤观感一致。
 * ========================================================================== */

/* ---------- 1. 切换按钮 ---------- */
.tp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tp-theme-toggle:hover {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.38);
  background: #fff;
}

.tp-theme-toggle:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.tp-theme-toggle__icon {
  display: none;
}

/* 亮色下显示「月亮」（点它进黑夜）；暗色下显示「太阳」 */
html[data-theme="dark"] .tp-theme-toggle__icon--sun,
html:not([data-theme="dark"]) .tp-theme-toggle__icon--moon {
  display: block;
}

/* ---------- 2. 暗色覆盖 ---------- */
html[data-theme="dark"] body {
  background: #0b1220;
  color: #bfcbda;
}

html[data-theme="dark"] .landing-wrap,
html[data-theme="dark"] .landing-wrap--home {
  background: #0b1220;
  color: #bfcbda;
}

/* 头部 */
html[data-theme="dark"] .landing-header {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.99) 62%);
  border-bottom-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .landing-nav-link {
  color: #bfcbda;
}

html[data-theme="dark"] .landing-nav-link:hover,
html[data-theme="dark"] .landing-nav-link.active {
  color: #fff;
}

html[data-theme="dark"] .tp-theme-toggle {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-theme-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
}

/* 头部下拉面板（模型 / 应用 / 资源 / 关于） */
html[data-theme="dark"] .landing-nav-dropdown {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .landing-nav-features-title,
html[data-theme="dark"] .landing-nav-features-more {
  color: #94a3b8;
}

html[data-theme="dark"] .landing-feature-link,
html[data-theme="dark"] .landing-dropdown-title {
  color: #bfcbda;
}

html[data-theme="dark"] .landing-feature-link:hover,
html[data-theme="dark"] .landing-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

html[data-theme="dark"] .landing-dropdown-subtitle {
  color: #7d8ba3;
}

html[data-theme="dark"] .landing-dropdown-icon {
  background: rgba(79, 70, 229, 0.18);
}

html[data-theme="dark"] .landing-dropdown-item.is-current {
  background: rgba(79, 70, 229, 0.24);
  box-shadow: inset 2px 0 0 #818cf8;
}

html[data-theme="dark"] .landing-nav-underline {
  background: #818cf8;
}

/* Hero */
html[data-theme="dark"] .tp-v1-hero,
html[data-theme="dark"] .landing-hero {
  background: #0b1220;
}

html[data-theme="dark"] .tp-v1-hero-bg {
  opacity: 0.45;
}

html[data-theme="dark"] .tp-v1-h1,
html[data-theme="dark"] .landing-hero-title,
html[data-theme="dark"] .landing-section-title,
html[data-theme="dark"] .landing-models-title,
html[data-theme="dark"] .landing-steps-title,
html[data-theme="dark"] .landing-platform-title,
html[data-theme="dark"] .landing-faq-title {
  color: #d2dce8;
}

html[data-theme="dark"] .tp-v1-lead,
html[data-theme="dark"] .landing-hero-sub,
html[data-theme="dark"] .landing-section-desc,
html[data-theme="dark"] .landing-steps-head p {
  color: #94a3b8;
}

html[data-theme="dark"] .tp-v1-eyebrow {
  color: #818cf8;
}

/* 终端 / 代码块 */
html[data-theme="dark"] .tp-v1-terminal,
html[data-theme="dark"] .landing-code-block,
html[data-theme="dark"] .landing-terminal {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .tp-v1-terminal-bar,
html[data-theme="dark"] .landing-code-block-head {
  background: #131c30;
  color: #94a3b8;
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-v1-terminal-body,
html[data-theme="dark"] .landing-code-block pre {
  color: #a5b4fc;
}

/* 卡片族 */
html[data-theme="dark"] .landing-feature-card,
html[data-theme="dark"] .landing-integration-card,
html[data-theme="dark"] .landing-step-card,
html[data-theme="dark"] .landing-faq-item,
html[data-theme="dark"] .landing-card,
html[data-theme="dark"] .landing-two-cards-inner,
html[data-theme="dark"] .landing-platform-merged-shell,
html[data-theme="dark"] .landing-platform-merged-cards,
html[data-theme="dark"] .landing-stats-grid-merged,
html[data-theme="dark"] .tp-channel-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .landing-feature-card-title,
html[data-theme="dark"] .landing-integration-title,
html[data-theme="dark"] .landing-step-title,
html[data-theme="dark"] .landing-faq-q,
html[data-theme="dark"] .tp-channel-card__title,
html[data-theme="dark"] .tp-channel-section__title {
  color: #cfdae7;
}

html[data-theme="dark"] .landing-feature-card-desc,
html[data-theme="dark"] .landing-integration-desc,
html[data-theme="dark"] .landing-step-desc,
html[data-theme="dark"] .landing-faq-a,
html[data-theme="dark"] .tp-channel-card__desc,
html[data-theme="dark"] .tp-channel-lead {
  color: #94a3b8;
}

html[data-theme="dark"] .landing-feature-card-icon,
html[data-theme="dark"] .landing-integration-icon,
html[data-theme="dark"] .tp-channel-card__icon {
  background: rgba(79, 70, 229, 0.18);
  color: #a5b4fc;
}

/* 按钮 */
html[data-theme="dark"] .landing-btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.32);
  color: #cfdae7;
}

html[data-theme="dark"] .landing-btn-outline:hover {
  border-color: rgba(129, 140, 248, 0.6);
  color: #fff;
  background: rgba(148, 163, 184, 0.1);
}

/* 次要按钮（.landing-btn-dark 的非主 CTA 形态）：不再用 #e2e8f0 大面积白底，
   改为半透明层 + 柔和描边；三级状态见文件末尾「暗色柔和层」 */
html[data-theme="dark"] .landing-btn-dark:not(.tp-v1-cta-primary) {
  background: rgba(226, 232, 240, 0.07);
  border-color: rgba(148, 163, 184, 0.26);
  color: #c3cedd;
}

html[data-theme="dark"] .landing-btn-dark:not(.tp-v1-cta-primary):hover {
  background: rgba(226, 232, 240, 0.12);
  border-color: rgba(129, 140, 248, 0.45);
  color: #e2e8f2;
}

/* 搜索 / 输入 */
html[data-theme="dark"] .landing-search-input,
html[data-theme="dark"] .landing-search-wrap,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"] {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #cfdae7;
}

html[data-theme="dark"] .landing-search-input::placeholder {
  color: #64748b;
}

/* 标签 / 徽标 */
html[data-theme="dark"] .landing-tag,
html[data-theme="dark"] .landing-tag-outline {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.24);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-filter-chips .is-active {
  background: rgba(79, 70, 229, 0.24);
  color: #c7d2fe;
}

/* 统计数字 */
html[data-theme="dark"] .landing-stat-num,
html[data-theme="dark"] .js-stat-count {
  color: #d2dce8;
}

html[data-theme="dark"] .landing-stat-label {
  color: #94a3b8;
}

/* 页脚 */
html[data-theme="dark"] .landing-footer {
  background: #0a101c;
  border-top-color: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .landing-footer a,
html[data-theme="dark"] .landing-footer-legal a {
  color: #bfcbda;
}

html[data-theme="dark"] .landing-footer a:hover {
  color: #fff;
}

html[data-theme="dark"] .landing-footer-disclaimer,
html[data-theme="dark"] .landing-footer-copy {
  color: #7d8ba3;
}

/* 频道页 / 法律页 / 帮助中心等通用正文块 */
html[data-theme="dark"] .tp-channel,
html[data-theme="dark"] .tp-help-prose,
html[data-theme="dark"] .landing-legal-page {
  color: #bfcbda;
}

html[data-theme="dark"] .tp-channel-hero {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-channel-title {
  color: #d2dce8;
}

html[data-theme="dark"] .tp-channel-card--muted {
  background: #0d1524;
  border-color: rgba(148, 163, 184, 0.18);
}

/* 表格（价格页 / 规格表） */
html[data-theme="dark"] table,
html[data-theme="dark"] .landing-table {
  color: #bfcbda;
}

html[data-theme="dark"] th,
html[data-theme="dark"] .landing-table th {
  background: #131c30;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] td {
  border-color: rgba(148, 163, 184, 0.12);
}

/* 移动端菜单 */
html[data-theme="dark"] .tp-nav-panel,
html[data-theme="dark"] .landing-mobile-menu {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

/* 回到顶部 */
html[data-theme="dark"] .landing-back-top {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.22);
  color: #bfcbda;
}

/* ---------- 3. 首页分区（浅色底的大块区域） ---------- */
html[data-theme="dark"] .landing-models,
html[data-theme="dark"] .landing-section,
html[data-theme="dark"] .landing-steps,
html[data-theme="dark"] .landing-feature-cards-section,
html[data-theme="dark"] .landing-faq,
html[data-theme="dark"] .landing-platform-merged,
html[data-theme="dark"] .tp-model-catalog-section {
  background: #0b1220;
}

/* 厂商带：本来是白底 + 白卡，暗色下改成深色分区 */
html[data-theme="dark"] .tp-v1-vendors {
  background: #0d1524;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .tp-v1-vendors-head {
  color: #94a3b8;
}

html[data-theme="dark"] .tp-v1-vendor-chip,
html[data-theme="dark"] .tp-v1-vendor-chip--more {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-v1-vendor-chip img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Hero 右侧说明面板 */
html[data-theme="dark"] .tp-v1-panel {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-v1-panel * {
  color: inherit;
}

/* 模型卡 / 步骤卡 / 演练场卡 */
html[data-theme="dark"] .landing-model-card,
html[data-theme="dark"] .landing-playground-card,
html[data-theme="dark"] .model-openai-intro-card,
html[data-theme="dark"] .model-openai-featured-inner,
html[data-theme="dark"] .landing-steps-hero {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .landing-step-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .landing-step-badge {
  background: rgba(79, 70, 229, 0.24);
  color: #c7d2fe;
}

html[data-theme="dark"] .landing-chat-bubble,
html[data-theme="dark"] .landing-chat-bubble-ai {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.18);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-chat-avatar {
  background: #1e293b;
  color: #bfcbda;
}

html[data-theme="dark"] .landing-footer-bottom {
  background: transparent;
  border-top-color: rgba(148, 163, 184, 0.14);
}

/* Tab / Chip 选中态 */
html[data-theme="dark"] .landing-tab.active,
html[data-theme="dark"] .landing-chip.active,
html[data-theme="dark"] .pricing-plan-tab.is-active {
  background: rgba(79, 70, 229, 0.24);
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.4);
}

/* 头部小控件（语言 / 菜单按钮 / 移动端导航） */
html[data-theme="dark"] .landing-header .tp-lang-btn,
html[data-theme="dark"] .landing-nav-toggle,
html[data-theme="dark"] .landing-cta-header {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-header .tp-lang-menu {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .landing-nav {
  background: transparent;
}

/* 价格 / 企业页 / 资金存管页的浅色卡片 */
html[data-theme="dark"] .landing-wrap--pricing-enterprise .service-hero--pricing,
html[data-theme="dark"] .landing-wrap--pricing-custody .service-hero--pricing {
  background: #0b1220;
}

/* ---------- 4. 模型列表 / 价格广场（表格与筛选器） ---------- */
html[data-theme="dark"] .landing-chip {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-chip:hover {
  border-color: rgba(129, 140, 248, 0.45);
  color: #fff;
}

/* 模型卡里的厂商 logo 块：白底在暗色里最扎眼，统一深底 + 反色 */
html[data-theme="dark"] .landing-model-logo,
html[data-theme="dark"] .landing-model-logo--openai,
html[data-theme="dark"] .landing-model-logo--anthropic,
html[data-theme="dark"] .model-openai-preview-logo {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .landing-model-logo img,
html[data-theme="dark"] .model-openai-preview-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

html[data-theme="dark"] .landing-model-arrow,
html[data-theme="dark"] .landing-models-actions .landing-btn {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.22);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-models-actions .landing-btn:hover {
  border-color: rgba(129, 140, 248, 0.5);
  color: #fff;
}

/* 价格广场：筛选面板 + 表格 + 厂商卡 + 日期快选 */
html[data-theme="dark"] .tp-price-plaza-hero,
html[data-theme="dark"] .tp-price-plaza-table,
html[data-theme="dark"] .tp-price-plaza-vendor-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-price-plaza-table th,
html[data-theme="dark"] .tp-price-plaza-table thead td {
  background: #131c30;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-price-plaza-row,
html[data-theme="dark"] .tp-price-plaza-row > td,
html[data-theme="dark"] .tp-price-plaza-cell-model,
html[data-theme="dark"] .tp-price-plaza-cell-vendor,
html[data-theme="dark"] .tp-price-plaza-cell-price {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.12);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-price-plaza-line,
html[data-theme="dark"] .tp-price-plaza-model-block {
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .tp-price-plaza-date-preset,
html[data-theme="dark"] .tp-price-plaza-pager-btn {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-price-plaza-date-preset.is-active,
html[data-theme="dark"] .tp-price-plaza-pager-btn.is-active {
  background: rgba(79, 70, 229, 0.24);
  border-color: rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

html[data-theme="dark"] .tp-price-plaza-vendor-card__icon,
html[data-theme="dark"] .tp-price-plaza-vendor-logo-wrap {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.18);
}

/* 定价页 tab：未选中的白胶囊 */
html[data-theme="dark"] .pricing-plan-tab {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

html[data-theme="dark"] .pricing-plan-tab.is-active {
  background: rgba(79, 70, 229, 0.28);
  border-color: rgba(129, 140, 248, 0.5);
  color: #e0e7ff;
}

html[data-theme="dark"] .pricing-plan-page-title,
html[data-theme="dark"] .pricing-enterprise-main h2,
html[data-theme="dark"] .service-hero h1 {
  color: #d2dce8;
}

/* 定价页大标题是「深色渐变 + background-clip:text + 透明填充」，暗色下等于看不见：
   去掉渐变裁剪，改回实心浅色字（/pricing、/pricing/enterprise、/pricing/custody 三页共用） */
html[data-theme="dark"] .pricing-plan-page-title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #d2dce8;
}

/* ---------- 5. 帮助 / 关于 / 状态 / 导航 / 模型子页 ---------- */
/* 这几页的底色是一个浅色渐变（background-image），只改 background-color 盖不住。
   帮助站那条规则在 help-site.css 里是「.landing-wrap.landing-wrap--help.tp-v1-market」
   三连类，普通两连类压不住，必须带 !important（否则 /about 仍是浅底浅字）。 */
html[data-theme="dark"] .landing-wrap.landing-wrap--help,
html[data-theme="dark"] .landing-wrap--help,
html[data-theme="dark"] .landing-wrap--pricing,
html[data-theme="dark"] .landing-wrap--status {
  background-image: none !important;
  background-color: #0b1220 !important;
}

html[data-theme="dark"] .help-popular-card,
html[data-theme="dark"] .help-cat-card,
html[data-theme="dark"] .help-article-body,
html[data-theme="dark"] .help-search,
html[data-theme="dark"] .help-chip {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
}

html[data-theme="dark"] .help-popular-card h3,
html[data-theme="dark"] .help-cat-card h3,
html[data-theme="dark"] .help-article-body h1,
html[data-theme="dark"] .help-article-body h2,
html[data-theme="dark"] .help-article-body h3 {
  color: #cfdae7;
}

html[data-theme="dark"] .help-popular-card p,
html[data-theme="dark"] .help-cat-card p,
html[data-theme="dark"] .help-article-body p,
html[data-theme="dark"] .help-article-body li {
  color: #94a3b8;
}

html[data-theme="dark"] .tp-status-hero-card,
html[data-theme="dark"] .tp-status-card,
html[data-theme="dark"] .tp-status-table-wrap,
html[data-theme="dark"] .tp-status-notice {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
}

html[data-theme="dark"] .navi-panel {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .navi-card {
  background-image: none;
  background-color: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
}

/* 模型子页（/model/i-auto 等） */
html[data-theme="dark"] .tp-sm-hero-panel,
html[data-theme="dark"] .tp-sm-spec,
html[data-theme="dark"] .tp-sm-feature-card,
html[data-theme="dark"] .tp-sm-usecase,
html[data-theme="dark"] .tp-sm-table-wrap {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-sm-section--alt {
  background: #0d1524;
}

html[data-theme="dark"] .tp-sm-feature-card h3,
html[data-theme="dark"] .tp-sm-section h2,
html[data-theme="dark"] .tp-sm-hero-panel h1 {
  color: #cfdae7;
}

/* 价格广场：筛选面板 / 厂商卡 / 表格主体 */
html[data-theme="dark"] .tp-price-plaza-vendor-panel,
html[data-theme="dark"] .tp-price-plaza-vendor-card,
html[data-theme="dark"] .tp-price-plaza-table-wrap,
html[data-theme="dark"] .tp-price-plaza-model-block,
html[data-theme="dark"] .tp-price-plaza-tier-row {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-price-plaza-table-wrap thead,
html[data-theme="dark"] .tp-price-plaza-table-wrap tr {
  border-color: rgba(148, 163, 184, 0.12);
}

/* ---------- 6. 帮助中心的卡片文字与热词（内容由 help-site.js 渲染，选择器以 JS 为准） ---------- */
html[data-theme="dark"] .help-popular-card__title,
html[data-theme="dark"] .help-cat-card__title {
  color: #cfdae7;
}

html[data-theme="dark"] .help-popular-card__cat,
html[data-theme="dark"] .help-cat-card__tag {
  color: #a5b4fc;
  background: rgba(79, 70, 229, 0.2);
}

html[data-theme="dark"] .help-popular-card__sum,
html[data-theme="dark"] .help-cat-card__desc {
  color: #94a3b8;
}

html[data-theme="dark"] .help-hot-chip {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

html[data-theme="dark"] .help-hot-chip:hover {
  border-color: rgba(129, 140, 248, 0.5);
  color: #fff;
}

html[data-theme="dark"] .help-section-title,
html[data-theme="dark"] .help-section-sub,
html[data-theme="dark"] .tp-help-title {
  color: #cfdae7;
}

/* 价格广场筛选条：白底来自 picker 本身（不是外层 panel） */
html[data-theme="dark"] .tp-price-plaza-vendor-picker,
html[data-theme="dark"] .tp-price-plaza-field,
html[data-theme="dark"] .tp-price-plaza-field input,
html[data-theme="dark"] .tp-price-plaza-field select {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-price-plaza-field input::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .tp-price-plaza-date-preset,
html[data-theme="dark"] .tp-price-plaza-reset {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.2);
  color: #bfcbda;
}

/* 价格筛选条下方偶尔露出一条白：父容器/伪元素的底也要一起压掉 */
html[data-theme="dark"] .tp-price-plaza,
html[data-theme="dark"] .tp-price-plaza::before,
html[data-theme="dark"] .tp-price-plaza::after,
html[data-theme="dark"] .tp-price-plaza-vendor-panel,
html[data-theme="dark"] .tp-price-plaza-vendor-panel::before,
html[data-theme="dark"] .tp-price-plaza-vendor-panel::after,
html[data-theme="dark"] .tp-price-plaza-table-wrap,
html[data-theme="dark"] .tp-price-plaza-table-wrap::before {
  background-color: #0f172a !important;
  background-image: none !important;
}

/* 价格筛选条：把内层可能铺白的子元素统一透明，露出深色面板本身 */
html[data-theme="dark"] .tp-price-plaza-vendor-picker,
html[data-theme="dark"] .tp-price-plaza-vendor-picker > *,
html[data-theme="dark"] .tp-price-plaza-field,
html[data-theme="dark"] .tp-price-plaza-field > * {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-theme="dark"] .tp-price-plaza-vendor-picker,
html[data-theme="dark"] .tp-price-plaza-vendor-panel {
  background-color: #0f172a !important;
}

/* 价格筛选条本体（浅色渐变是白块的真正来源） */
html[data-theme="dark"] .tp-price-plaza-filters {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

html[data-theme="dark"] .tp-price-plaza-field label,
html[data-theme="dark"] .tp-price-plaza-field__label {
  color: #94a3b8;
}

html[data-theme="dark"] .tp-price-plaza-field input,
html[data-theme="dark"] .tp-price-plaza-field select {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.24);
  color: #bfcbda;
}

/* ---- 「智能体 / Agents」频道（下拉下载入口 + 落地页卡片） ---- */
html[data-theme="dark"] .landing-nav-agents-download {
  border-top-color: rgba(148, 163, 184, 0.18);
  color: #bfcbda;
}

html[data-theme="dark"] .landing-nav-agents-download:hover {
  color: #a5b4fc;
}

html[data-theme="dark"] .landing-nav-agents-download__badge,
html[data-theme="dark"] .tp-agent-skillmeta__chip {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .landing-nav-skills-empty,
html[data-theme="dark"] .tp-agent-skill__meta {
  color: #7d8ba3;
}

html[data-theme="dark"] .tp-agent-card,
html[data-theme="dark"] .tp-agent-skill {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .tp-agent-skill:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .tp-agent-card__title,
html[data-theme="dark"] .tp-agent-skill__title,
html[data-theme="dark"] .tp-agent-empty__title,
html[data-theme="dark"] .tp-agent-download__title {
  color: #cfdae7;
}

html[data-theme="dark"] .tp-agent-card__desc,
html[data-theme="dark"] .tp-agent-skill__desc,
html[data-theme="dark"] .tp-agent-empty__desc,
html[data-theme="dark"] .tp-agent-download__desc {
  color: #9aa8bd;
}

html[data-theme="dark"] .tp-agent-card__list {
  color: #8593a8;
}

html[data-theme="dark"] .tp-agent-card__icon {
  background: rgba(79, 70, 229, 0.2);
}

html[data-theme="dark"] .tp-agent-skill__icon {
  background: rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] .tp-agent-empty,
html[data-theme="dark"] .tp-agent-download {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .tp-agent-download__badge {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* ---- 「智能体」MCP 分组（下拉徽标 + 落地页 MCP 卡片/工具表） ---- */
html[data-theme="dark"] .landing-nav-mcp-badge,
html[data-theme="dark"] .tp-mcp-card__badge--beta {
  background: rgba(79, 70, 229, 0.24);
  color: #a5b4fc;
}

html[data-theme="dark"] .tp-mcp-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .tp-mcp-card__icon {
  background: rgba(79, 70, 229, 0.2);
}

html[data-theme="dark"] .tp-mcp-card__title {
  color: #cfdae7;
}

html[data-theme="dark"] .tp-mcp-card__desc {
  color: #9aa8bd;
}

html[data-theme="dark"] .tp-mcp-card__list {
  color: #8593a8;
}

html[data-theme="dark"] .tp-mcp-card__badge {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .tp-mcp-card__endpoint {
  background: rgba(79, 70, 229, 0.18);
  color: #c7d2fe;
}

html[data-theme="dark"] .tp-mcp-tools th {
  color: #7d8ba3;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .tp-mcp-tools td {
  color: #9aa8bd;
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] .tp-mcp-tools code {
  background: rgba(79, 70, 229, 0.2);
  color: #c7d2fe;
}

html[data-theme="dark"] .tp-mcp-config__label,
html[data-theme="dark"] .tp-mcp-config__note {
  color: #7d8ba3;
}

/* ==========================================================================
 * 暗色「柔和层」：降低纯黑 / 纯白对撞（2026-11-19）
 * --------------------------------------------------------------------------
 * 亮色设计里按钮是白底深字、图标是深色描边；整包搬进暗色后出现两类刺眼点：
 *   1) 白底按钮在深色页面上像一块发光板（「探索模型 / 了解更多」）；
 *   2) 单色描边图标贴在深底上几乎辨不出轮廓（下拉里的数字员工、MCP 列）。
 * 这里只做三件事：白底→半透明层、纯白文字→近白、单色图标→反色，
 * 品牌色（靛蓝渐变 CTA、选中态）与信息层级不动。
 *
 * 前缀统一带 .tp-v1-market：theme-dark.css 比 v1-landing.css **先**加载，
 * 同特异性会被后者（大量 !important）反超，必须多一层类名提高特异性。
 * ========================================================================== */

/* 1) 次要按钮：半透明层 + 柔和描边，hover / active / disabled 三级 */
html[data-theme="dark"] .tp-v1-market .landing-btn:not(.landing-btn--primary):not(.tp-v1-cta-primary):not(.contact-submit-btn):not(.is-disabled):not(:disabled),
html[data-theme="dark"] .tp-v1-market .landing-btn-dark:not(.tp-v1-cta-primary),
html[data-theme="dark"] .tp-v1-market .landing-btn-outline {
  background: rgba(226, 232, 240, 0.07) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #c3cedd !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn:not(.landing-btn--primary):not(.tp-v1-cta-primary):not(.contact-submit-btn):not(.is-disabled):not(:disabled):hover,
html[data-theme="dark"] .tp-v1-market .landing-btn-dark:not(.tp-v1-cta-primary):hover,
html[data-theme="dark"] .tp-v1-market .landing-btn-outline:hover {
  background: rgba(226, 232, 240, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
  color: #e2e8f2 !important;
  box-shadow: 0 2px 10px rgba(8, 12, 24, 0.35) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn:not(.landing-btn--primary):not(.tp-v1-cta-primary):not(.contact-submit-btn):not(.is-disabled):not(:disabled):active,
html[data-theme="dark"] .tp-v1-market .landing-btn-dark:not(.tp-v1-cta-primary):active,
html[data-theme="dark"] .tp-v1-market .landing-btn-outline:active {
  background: rgba(226, 232, 240, 0.18) !important;
  border-color: rgba(129, 140, 248, 0.55) !important;
  color: #eef3fa !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn:disabled,
html[data-theme="dark"] .tp-v1-market .landing-btn[aria-disabled="true"],
html[data-theme="dark"] .tp-v1-market .landing-btn.is-disabled,
html[data-theme="dark"] .tp-v1-market .landing-btn-dark:disabled,
html[data-theme="dark"] .tp-v1-market .landing-btn-dark[aria-disabled="true"] {
  background: rgba(226, 232, 240, 0.04) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #8391a5 !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
  cursor: not-allowed;
}

/* 2) 主 CTA（靛蓝渐变 / 免费试用）：渐变保留，纯白文字降到近白，光晕收敛 */
html[data-theme="dark"] .tp-v1-market .landing-btn--primary,
html[data-theme="dark"] .tp-v1-market .tp-v1-cta-primary,
html[data-theme="dark"] .tp-v1-market .landing-cta-header {
  color: #e9eef8 !important;
  -webkit-text-fill-color: #e9eef8 !important;
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.3) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn--primary:hover,
html[data-theme="dark"] .tp-v1-market .tp-v1-cta-primary:hover,
html[data-theme="dark"] .tp-v1-market .landing-cta-header:hover {
  color: #e9effa !important;
  -webkit-text-fill-color: #e9effa !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn--primary:active,
html[data-theme="dark"] .tp-v1-market .tp-v1-cta-primary:active,
html[data-theme="dark"] .tp-v1-market .landing-cta-header:active {
  color: #dbe3f0 !important;
  -webkit-text-fill-color: #dbe3f0 !important;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.35) !important;
}

/* .landing-btn--primary 在部分频道页（/apps、/agents 的「浏览模型」）亮色下就是白底，
   暗色沿用会变成纯白发光块 —— 统一给靛蓝渐变，与主 CTA 同层级 */
html[data-theme="dark"] .tp-v1-market .landing-btn--primary {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #6d28d9 100%) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  color: #e9eef8 !important;
  -webkit-text-fill-color: #e9eef8 !important;
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.32) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn--primary:hover {
  background: linear-gradient(135deg, #4c43d6 0%, #5856ee 55%, #7c3aed 100%) !important;
  color: #e9effa !important;
  -webkit-text-fill-color: #e9effa !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.34) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-btn--primary:active {
  background: linear-gradient(135deg, #3b31b5 0%, #4338ca 55%, #5b21b6 100%) !important;
  color: #dbe3f0 !important;
  -webkit-text-fill-color: #dbe3f0 !important;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.35) !important;
}

/* 3) 单色描边图标反色（深色线稿 → 浅色线稿），hover 时提到满不透明 */
html[data-theme="dark"] .landing-nav-dropdown .landing-dropdown-icon img,
html[data-theme="dark"] .landing-feature-card-icon img,
html[data-theme="dark"] .landing-integration-icon img,
html[data-theme="dark"] .tp-agent-card__icon img,
html[data-theme="dark"] .tp-mcp-card__icon img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity 0.16s ease;
}

html[data-theme="dark"] .landing-dropdown-item:hover .landing-dropdown-icon img,
html[data-theme="dark"] .landing-dropdown-item.is-current .landing-dropdown-icon img,
html[data-theme="dark"] .landing-feature-card:hover .landing-feature-card-icon img {
  opacity: 1;
}

/* 技能列是 SkillHub 的彩色品牌图标，反色会毁掉配色，明确排除 */
html[data-theme="dark"] .landing-nav-skills .landing-dropdown-icon img,
html[data-theme="dark"] .tp-agent-skill__icon img {
  filter: none;
  opacity: 1;
}

/* 4) 文字：纯白 → 近白（保持「常态 < hover < 选中」的层级差） */
html[data-theme="dark"] .tp-v1-market .landing-nav-link:hover,
html[data-theme="dark"] .landing-dropdown-item:hover .landing-dropdown-title {
  color: #e6ecf5 !important;
}

/* 选中态保留品牌语义，用浅靛而不是纯白 */
html[data-theme="dark"] .tp-v1-market .landing-nav-link.active,
html[data-theme="dark"] .landing-dropdown-item.is-current .landing-dropdown-title {
  color: #c7d2fe !important;
}

html[data-theme="dark"] .tp-v1-market .landing-logo-text {
  color: #cfdae7;
}

html[data-theme="dark"] .tp-v1-market .landing-login-link,
html[data-theme="dark"] .tp-v1-market .landing-home-link {
  color: #c3cedd;
}

html[data-theme="dark"] .tp-v1-market .landing-login-link:hover,
html[data-theme="dark"] .tp-v1-market .landing-home-link:hover {
  color: #e6ecf5;
}

/* ==========================================================================
 * 暗色可读性统一修正（2026-11-20）
 * --------------------------------------------------------------------------
 * 背景：用户反馈暗色下纯白标题「太刺眼」。逐页审计后确认是三件事叠在一起：
 *   1) 亮度基线偏高：标题 #f1f5f9 落在 #0b1220 上是 16.6:1，大字号观感发刺；
 *      → 文件上方已统一降到 #d2dce8（≈13.3:1，仍远高于 WCAG AA 的 4.5:1），
 *        正文 #cbd5e1 → #bfcbda，卡片标题 #e2e8f0 → #cfdae7；
 *   2) 深字压深底：智能模型 / 验证器 / 网关 / 服务 / 联系 / 导航几族还是亮色文字方案，
 *      标题 #0f172a 叠在 #0b1220 上对比度 1:1，等于看不见；
 *   3) 白底容器：浅色渐变卡（平台区、底部腰封）与白面板（网关、服务、提示词、
 *      验证器截图框）没压暗，而字已经改浅 → 白底浅字。
 * 本节按「容器 → 文字 → 强调色」补齐，只引入四档中性灰蓝，不新增视觉语言。
 * 选择器统一 html[data-theme="dark"] 前缀，靠特异性取胜、不依赖加载顺序
 * （部分页面族的样式写在模板内联 <style> 里，晚于本文件加载）。
 * ========================================================================== */

/* ---------- 1. 容器：白底 → 深表面 ---------- */

/* 1.1 首页平台合并区：浅色渐变 + 白色统计格（统计数字原本被压成白字白底） */
html[data-theme="dark"] .landing-platform-merged-top {
  background: linear-gradient(145deg, #121c31 0%, #141a2e 45%, #101a2b 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: none;
}

html[data-theme="dark"] .landing-platform-title-merged {
  color: #cfdae7;
}

html[data-theme="dark"] .landing-platform-list-merged li {
  color: #bfcbda;
}

html[data-theme="dark"] .landing-stat {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

/* 1.2 底部腰封：整条浅色渐变在深色页里像一块发光板，改成同色系深渐变，品牌光晕保留但收敛 */
html[data-theme="dark"] .landing-banner-cta {
  background: linear-gradient(160deg, #101a30 0%, #141a33 50%, #0f1a2c 100%);
}

html[data-theme="dark"] .landing-banner-cta::before {
  opacity: 0.34;
}

html[data-theme="dark"] .landing-banner-cta-title {
  color: #d5deea;
}

html[data-theme="dark"] .landing-banner-cta-sub {
  color: #a9b7c9;
}

/* 腰封主 CTA 用实心靛紫：半透明浅层在「容器底色不对」时会整块消失，
   主按钮必须自带对比度，不依赖父级背景（2026-11-20 二轮）。
   选择器写满 7 段类名，是为了和 §4「次要按钮统一」那条 5 层 :not 规则打平
   （同为 !important，靠文件顺序取胜），否则会被它压回半透明浅层。 */
html[data-theme="dark"] .tp-v1-market .landing-banner-cta .landing-btn.landing-btn-dark.landing-banner-cta-btn:not(.tp-v1-cta-primary) {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%) !important;
  border-color: rgba(129, 140, 248, 0.5) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 10px 26px rgba(49, 46, 129, 0.45) !important;
}

html[data-theme="dark"] .tp-v1-market .landing-banner-cta .landing-btn.landing-btn-dark.landing-banner-cta-btn:not(.tp-v1-cta-primary):hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(49, 46, 129, 0.55) !important;
}

html[data-theme="dark"] .landing-banner-cta-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #f2f6fc;
}

/* 1.3 服务 / 企业 / 网关 / 提示词 / 模型详情 / 资源导航 页面族的白面板 */
html[data-theme="dark"] .service-section,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-number-card,
html[data-theme="dark"] .service-feature-item,
html[data-theme="dark"] .service-timeline-item,
html[data-theme="dark"] .gateway-panel,
html[data-theme="dark"] .gateway-compare-wrap,
html[data-theme="dark"] .tp-prompt-card,
html[data-theme="dark"] .model-openai-preview-card,
html[data-theme="dark"] .navi-left,
html[data-theme="dark"] .navi-chip {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
  box-shadow: none;
}

html[data-theme="dark"] .service-section--muted {
  background: #0d1524;
}

html[data-theme="dark"] .tp-prompt-card__text {
  background: #0d1524;
  color: #b6c3d4;
}

html[data-theme="dark"] .gateway-panel pre {
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .gateway-img img {
  border-color: rgba(148, 163, 184, 0.2);
}

/* 网关平台切换 tab：亮色下是「浅灰胶囊 / 近黑胶囊」 */
html[data-theme="dark"] .gateway-tab {
  background: #131c30;
  color: #bfcbda;
}

html[data-theme="dark"] .gateway-tab.active {
  background: rgba(79, 70, 229, 0.32);
  color: #e0e7ff;
}

/* 1.4 验证器页：产品截图框 / 对比图示 / 步骤卡 / FAQ */
html[data-theme="dark"] .tp-vd-figure__frame,
html[data-theme="dark"] .tp-vd-compare,
html[data-theme="dark"] .tp-vd-step,
html[data-theme="dark"] .tp-vd-faq__item {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tp-vd-figure__bar {
  background: #131c30;
  border-color: rgba(148, 163, 184, 0.16);
  color: #93a2b7;
}

html[data-theme="dark"] .tp-vd-compare__prompt {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.16);
  color: #bfcbda;
}

html[data-theme="dark"] .tp-vd-start-note {
  background: rgba(148, 163, 184, 0.08);
  color: #a9b7c9;
}

html[data-theme="dark"] .tp-vd-compare__note,
html[data-theme="dark"] .tp-vd-figcaption {
  color: #93a2b7;
}

/* ---------- 2. 文字：深字压深底 → 分层浅字 ---------- */

/* 2.1 智能模型 / 验证器：这两族颜色全走 --tp-sm-* 变量，改一处即覆盖全部标题与正文 */
html[data-theme="dark"] .tp-smart-model-main,
html[data-theme="dark"] .tp-validator-main {
  --tp-sm-text: #cfdae7;
  --tp-sm-muted: #93a2b7;
  --tp-sm-border: rgba(148, 163, 184, 0.18);
  --tp-sm-accent: #818cf8;
  --tp-sm-accent-soft: #a5b4fc;
}

/* 2.2 页脚栏目标题：亮色下是 #090f1d，叠在 #0a101c 上完全隐形（全站 19 个页面命中） */
html[data-theme="dark"] .landing-footer-col h4 {
  color: #cfdae7;
}

/* 2.3 各页面族标题 */
html[data-theme="dark"] .service-title,
html[data-theme="dark"] .service-section-title,
html[data-theme="dark"] .service-section-subtitle,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-timeline-item h3,
html[data-theme="dark"] .gateway-panel h2,
html[data-theme="dark"] .gateway-panel h3,
html[data-theme="dark"] .navi-panel-title,
html[data-theme="dark"] .model-openai-page-title,
html[data-theme="dark"] .model-openai-featured-title,
html[data-theme="dark"] .contact-faq-title,
html[data-theme="dark"] .contact-faq-q,
html[data-theme="dark"] .landing-model-name,
html[data-theme="dark"] .tp-price-plaza-vendor-card__name,
html[data-theme="dark"] .tp-price-plaza-vendor-panel__title {
  color: #cfdae7;
}

/* 2.4 正文 / 次要文字 */
html[data-theme="dark"] .model-openai-intro-text,
html[data-theme="dark"] .model-openai-bc-current,
html[data-theme="dark"] .contact-faq-a,
html[data-theme="dark"] .gateway-panel p,
html[data-theme="dark"] .gateway-list li,
html[data-theme="dark"] .landing-model-vendor,
html[data-theme="dark"] .tp-price-plaza-footnote {
  color: #a9b7c9;
}

/* 2.5 首页终端块里的内联 code 仍是 #334155（1.7:1） */
html[data-theme="dark"] .tp-v1-terminal-body code,
html[data-theme="dark"] .landing-code-block code {
  color: #c7d2fe;
}

/* ---------- 3. 强调色：靛蓝在深底上偏暗，提亮一档 ---------- */
html[data-theme="dark"] .tp-vd-tabname,
html[data-theme="dark"] .tp-channel-card__step {
  background: rgba(79, 70, 229, 0.22);
  color: #a5b4fc;
}

html[data-theme="dark"] .tp-sm-spec-value,
html[data-theme="dark"] .tp-sm-usecase-num,
html[data-theme="dark"] .service-kicker {
  color: #a5b4fc;
}

/* ---------- 4. 高特异性保底处理 ----------
 * 服务 / 企业 / 网关这几族的标题由各皮肤 *-landing.css 用「.a .b .c」三连类定义
 * （如 .landing-wrap--pricing-enterprise .service-hero--pricing .service-title），
 * 特异性高于 html[attr] + 单类，只靠前缀压不住，这里补一层 !important。
 * 作用域仍锁在暗色 + 具体组件上，不会影响亮色。 */
html[data-theme="dark"] .service-title,
html[data-theme="dark"] .service-section-title,
html[data-theme="dark"] .service-section-subtitle,
html[data-theme="dark"] .service-section h3,
html[data-theme="dark"] .service-section-lead,
html[data-theme="dark"] .service-section li,
html[data-theme="dark"] .navi-left-title,
html[data-theme="dark"] .tp-prompt-card__title,
html[data-theme="dark"] .model-openai-preview-name {
  color: #cfdae7 !important;
}

html[data-theme="dark"] .service-section td,
html[data-theme="dark"] .gateway-panel td,
html[data-theme="dark"] .gateway-compare-wrap td {
  color: #bfcbda !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

html[data-theme="dark"] .gateway-compare-wrap th {
  background: #131c30 !important;
  color: #93a2b7 !important;
}

html[data-theme="dark"] .tp-prompt-card__text {
  background: #0d1524 !important;
  color: #b6c3d4 !important;
}

html[data-theme="dark"] .tp-price-plaza-footnote {
  background: #0d1524 !important;
  color: #a9b7c9 !important;
}

/* 正文里的行内 code / 强调：改用浅靛，避免纯靛蓝压深底 */
html[data-theme="dark"] .tp-validator-main code,
html[data-theme="dark"] .tp-smart-model-main code {
  background: rgba(79, 70, 229, 0.18);
  color: #c7d2fe !important;
}

html[data-theme="dark"] .service-section strong,
html[data-theme="dark"] .service-kicker,
html[data-theme="dark"] .tp-v1-vendors-more,
html[data-theme="dark"] .tp-prompt-card__use {
  color: #a5b4fc !important;
}

/* 首页规模折线图：底板随主题变深（原 SVG 内写死 #f8fafc，现已交给 CSS） */
html[data-theme="dark"] .landing-chart-line-img {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}

/* ==========================================================================
 * 六、深色下「彩色面板上的按钮 / 浅渐变面板」修正（2026-11-20 二轮）
 *
 * 背景：§4 把 .landing-btn 族统一成了「半透明浅层 + 柔光字」，这个假设只在
 * 按钮落在**深色底**上成立。一旦按钮落在浅色渐变面板（服务页 hero）或
 * 彩色渐变面板（验证器底部 CTA）上，就变成「浅灰字叠浅底」——
 * 实测对比度 1.37 / 1.42 / 1.53 / 1.87，肉眼即「按钮看不清」。
 *
 * 这里按「面板」上下文把原设计语义还原，而不是继续调字色：
 *   1) 浅渐变 hero → 收成深底，按钮回到统一形态；
 *   2) 彩色渐变面板内的按钮 → 白底靛字 / 白描边 ghost（与亮色一致）；
 *   3) 页脚社交图标 → 深色浅层片（落地页未加载 tokens.css，令牌回落到写死浅灰）。
 * ========================================================================== */

/* 1) 服务页 hero：五套浅色渐变（#ecfeff / #f5f3ff / #ecfccb …）在深色页里像发光板。
      --dark 变体本来就是深底，排除；--pricing 已有专属覆盖，同样排除。 */
html[data-theme="dark"] .service-hero:not(.service-hero--dark):not(.service-hero--pricing),
html[data-theme="dark"] .service-hero--gradient,
html[data-theme="dark"] .service-hero--translator,
html[data-theme="dark"] .service-hero--seo,
html[data-theme="dark"] .service-hero--pr,
html[data-theme="dark"] .service-hero--scraping {
  background: linear-gradient(160deg, #101a30 0%, #131a33 46%, #0f172a 100%) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45) !important;
}

html[data-theme="dark"] .service-hero:not(.service-hero--dark) .service-kicker {
  background: rgba(79, 70, 229, 0.22) !important;
  color: #c7d2fe !important;
}

html[data-theme="dark"] .service-hero:not(.service-hero--dark) .service-title,
html[data-theme="dark"] .service-hero:not(.service-hero--dark) .landing-h1 {
  color: #dbe5f3 !important;
}

html[data-theme="dark"] .service-hero:not(.service-hero--dark) .service-subtitle,
html[data-theme="dark"] .service-hero:not(.service-hero--dark) p {
  color: #a9b7c9 !important;
}

/* 2) 彩色渐变 CTA 面板里的按钮：不单独染色（§4 的统一形态在深靛底上已经可读，
     单独覆盖要跟 §4 的 5 层选择器拼特异性，得不偿失），只把面板本身压深。 */

/* 3) 页脚社交图标：落地页没有加载 tokens.css，--color-bg-surface 回落成写死的
     浅灰片 #e8eaef，图标 #bfcbda 叠上去对比度 1.37。改成深色浅层 + 柔光图标。 */
html[data-theme="dark"] .landing-footer-social-btn {
  background: rgba(148, 163, 184, 0.16) !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  color: #cfdae7 !important;
}

html[data-theme="dark"] .landing-footer-social-btn svg {
  fill: currentColor;
  color: currentColor;
}

html[data-theme="dark"] .landing-footer-social-btn:hover {
  background: rgba(148, 163, 184, 0.3) !important;
  border-color: rgba(191, 203, 218, 0.5) !important;
  color: #f1f5f9 !important;
}

/* 4) 服务页「亮点卡」：与 hero 同源的浅渐变（#eef2ff → #f5f3ff），
     里面还有一个 .landing-btn-dark，浅底浅字同样看不清 */
html[data-theme="dark"] .service-highlight-card {
  background: linear-gradient(145deg, #131c30 0%, #101a2e 100%) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.4) !important;
}

html[data-theme="dark"] .service-highlight-card h3 {
  color: #dbe5f3 !important;
}

html[data-theme="dark"] .service-highlight-card p {
  color: #a9b7c9 !important;
}

/* 5) 验证器 / 智能模型介绍页的底部 CTA：亮色设计是「亮靛紫渐变 + 白底按钮」。
     深色里按钮被统一成半透明浅层后，浅灰字叠亮靛底（cr 1.87），
     这里把渐变本身压成深靛（更符合暗色，也让白描边 ghost 站得住），
     按钮不再单独染色，沿用统一形态即可。 */
html[data-theme="dark"] .tp-sm-bottom-cta-inner {
  background: linear-gradient(135deg, #312e81 0%, #3730a3 48%, #4c1d95 100%) !important;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45) !important;
}

/* 「智能体」数字员工运行机制子区块的分隔线 */
html[data-theme="dark"] .tp-agent-how {
  border-top-color: rgba(148, 163, 184, 0.2);
}

/* 联系页：v1 的浅色渐变特异性与暗色 wrap 相同、且后加载，暗色下需要单独压一层 */
html[data-theme="dark"] .tp-v1-market.landing-wrap--contact,
html[data-theme="dark"] .landing-wrap--contact {
  background: linear-gradient(180deg, #080f1c 0%, #0a1322 52%, #0b1220 100%);
}

html[data-theme="dark"] .contact-faq-q {
  border-top-color: rgba(148, 163, 184, 0.18);
}

/* 联系页表单：暗色下全局 input 规则会给出 #0f172a 色块（在深色卡片上像亮片），
   这里压回透明下划线；提交按钮也保留品牌渐变，不被「次要按钮」规则降级。 */
html[data-theme="dark"] .contact-field input,
html[data-theme="dark"] .contact-field textarea {
  background: transparent !important;
  color: #f1f5f9 !important;
  border-bottom-color: rgba(148, 163, 184, 0.32) !important;
}

html[data-theme="dark"] .contact-field input::placeholder,
html[data-theme="dark"] .contact-field textarea::placeholder {
  color: rgba(148, 163, 184, 0.6) !important;
}

html[data-theme="dark"] .contact-submit-btn {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 52%, #6366f1 100%) !important;
  color: #eef2ff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.32) !important;
}

html[data-theme="dark"] .contact-submit-btn:hover,
html[data-theme="dark"] .contact-submit-btn:focus-visible {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 58%, #818cf8 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

html[data-theme="dark"] .contact-faq-q {
  border-top-color: rgba(148, 163, 184, 0.14);
}
