/* ═══════════════════════════════════════════════════════════════
   东方美学主题 · 金色/橙色文字反制（宣纸白底上对比度不足）
   2026-09-21：用户报「东方，黄色字太淡，看不清」
   根因：JS 模板内联 style 硬编码了大量暗金主题的金色/橙色文字
   （color:#D4A574 ×1835、color:#E8C9A0 ×3692、color:#D4784C ×354 等），
   东方主题背景变浅（宣纸白 #FBF9F3）后这些浅金/橙色文字对比度骤降到 1.0~2.2。
   目标：金色 → 黛青 #3E5C52（东方主题 --fire-deep，对比度 ~6.8）
        橙色 → 深棕 #8B5E3C（对比度 ~4.7）
   属性选择器匹配内联 style 的 color 子串，i = 大小写不敏感。
   ═══════════════════════════════════════════════════════════════ */

/* 金色系文字 → 黛青墨 */
body.oriental-theme [style*="color:#D4A574" i],
body.oriental-theme [style*="color: #D4A574" i],
body.oriental-theme [style*="color:#E8C9A0" i],
body.oriental-theme [style*="color: #E8C9A0" i],
body.oriental-theme [style*="color:#E8C892" i],
body.oriental-theme [style*="color: #E8C892" i],
body.oriental-theme [style*="color:#E8C87A" i],
body.oriental-theme [style*="color: #E8C87A" i],
body.oriental-theme [style*="color:#D8B56A" i],
body.oriental-theme [style*="color: #D8B56A" i],
body.oriental-theme [style*="color:#D4A843" i],
body.oriental-theme [style*="color: #D4A843" i],
body.oriental-theme [style*="color:#B8860B" i],
body.oriental-theme [style*="color: #B8860B" i],
body.oriental-theme [style*="color:#D8B56A" i],
body.oriental-theme [style*="color: #D8B56A" i] {
  color: #3E5C52 !important;
  -webkit-text-fill-color: #3E5C52 !important;
}

/* 橙色系文字 → 深棕 */
body.oriental-theme [style*="color:#D4784C" i],
body.oriental-theme [style*="color: #D4784C" i],
body.oriental-theme [style*="color:#F59E0B" i],
body.oriental-theme [style*="color: #F59E0B" i],
body.oriental-theme [style*="color:#FFB74D" i],
body.oriental-theme [style*="color: #FFB74D" i],
body.oriental-theme [style*="color:#FF9500" i],
body.oriental-theme [style*="color: #FF9500" i],
body.oriental-theme [style*="color:#FF8A80" i],
body.oriental-theme [style*="color: #FF8A80" i],
body.oriental-theme [style*="color:#F97316" i],
body.oriental-theme [style*="color: #F97316" i],
body.oriental-theme [style*="color:#FB923C" i],
body.oriental-theme [style*="color: #FB923C" i] {
  color: #8B5E3C !important;
  -webkit-text-fill-color: #8B5E3C !important;
}

/* 半透明金色文字（rgba(212,165,116,0.5) 等）→ 深色 */
body.oriental-theme [style*="color:rgba(212,165,116" i],
body.oriental-theme [style*="color: rgba(212,165,116" i],
body.oriental-theme [style*="color:rgba(212, 165, 116" i],
body.oriental-theme [style*="color: rgba(212, 165, 116" i] {
  color: #3E5C52 !important;
  -webkit-text-fill-color: #3E5C52 !important;
}

/* 半透明淡金文字补：rgba(232,200,146 / rgba(232,201,160) → 深色 */
body.oriental-theme [style*="color:rgba(232,200,146" i],
body.oriental-theme [style*="color: rgba(232,200,146" i],
body.oriental-theme [style*="color:rgba(232,201,160" i],
body.oriental-theme [style*="color: rgba(232,201,160" i],
body.oriental-theme [style*="color:rgba(232,200,122" i],
body.oriental-theme [style*="color: rgba(232,200,122" i] {
  color: #3E5C52 !important;
  -webkit-text-fill-color: #3E5C52 !important;
}

/* 橙色系文字补：FF9F43 / FFA726 / FF9800 / FF7043 / EF6C00 → 深棕 */
body.oriental-theme [style*="color:#FF9F43" i],
body.oriental-theme [style*="color: #FF9F43" i],
body.oriental-theme [style*="color:#FFA726" i],
body.oriental-theme [style*="color: #FFA726" i],
body.oriental-theme [style*="color:#FF9800" i],
body.oriental-theme [style*="color: #FF9800" i],
body.oriental-theme [style*="color:#FF7043" i],
body.oriental-theme [style*="color: #FF7043" i],
body.oriental-theme [style*="color:#EF6C00" i],
body.oriental-theme [style*="color: #EF6C00" i] {
  color: #8B5E3C !important;
  -webkit-text-fill-color: #8B5E3C !important;
}

/* 东方主题自身 --flame-ember 藕粉棕文字（对比度 1.1）→ 深藕棕 */
body.oriental-theme [style*="color:var(--flame-ember)" i],
body.oriental-theme [style*="color: var(--flame-ember)" i] {
  color: #8B5E3C !important;
  -webkit-text-fill-color: #8B5E3C !important;
}

/* 深金黄文字补：B8862E 等 → 深色 */
body.oriental-theme [style*="color:#B8862E" i],
body.oriental-theme [style*="color: #B8862E" i],
body.oriental-theme [style*="color:#B8892A" i],
body.oriental-theme [style*="color: #B8892A" i] {
  color: #3E5C52 !important;
  -webkit-text-fill-color: #3E5C52 !important;
}

/* ── 补：遗漏的金色/玫瑰金/粉 文字 → 深色（冷金 #C9A25B、淡金 #E8D5A3、纯金 #FFD700 等）── */
/* 冷金/淡金/纯金/奶金 → 墨色 */
body.oriental-theme [style*="color:#C9A25B" i],
body.oriental-theme [style*="color: #C9A25B" i],
body.oriental-theme [style*="color:#E8D5A3" i],
body.oriental-theme [style*="color: #E8D5A3" i],
body.oriental-theme [style*="color:#FFD700" i],
body.oriental-theme [style*="color: #FFD700" i],
body.oriental-theme [style*="color:#FFE08A" i],
body.oriental-theme [style*="color: #FFE08A" i],
body.oriental-theme [style*="color:#F2E3B6" i],
body.oriental-theme [style*="color: #F2E3B6" i],
body.oriental-theme [style*="color:#F0E0CC" i],
body.oriental-theme [style*="color: #F0E0CC" i] {
  color: #3E5C52 !important;
  -webkit-text-fill-color: #3E5C52 !important;
}

/* 玫瑰金鲑鱼色 / 浅粉 → 深藕棕 */
body.oriental-theme [style*="color:#E8A87C" i],
body.oriental-theme [style*="color: #E8A87C" i],
body.oriental-theme [style*="color:#E8A0B4" i],
body.oriental-theme [style*="color: #E8A0B4" i] {
  color: #8B5E3C !important;
  -webkit-text-fill-color: #8B5E3C !important;
}

/* ═══════════════════════════════════════════════════════════════
   反制 typography-final.css 的 ID 级金色文字规则
   根因：typography-final.css 用 #page-content 前缀（ID 级 specificity）
   把链接/表头/单元格/徽章/引用/描边按钮/紫色文字统一染成 #E8C9A0 金色，
   浅色主题（宣纸白/紫气白）下对比度不足。这里用 body.oriental-theme 前缀
   再叠加一个 class 级权重，压过 #page-content 的 ID 级规则。
   ═══════════════════════════════════════════════════════════════ */

/* 链接 → 主强调色 */
body.oriental-theme #page-content a:not(.btn):not(.nav-link):not(.btn-primary):not(.btn-gold) {
  color: #6E937A !important;
  -webkit-text-fill-color: #6E937A !important;
}
/* 表头 → 墨色 */
body.oriental-theme #page-content th {
  color: #2E3A36 !important;
  -webkit-text-fill-color: #2E3A36 !important;
}
/* 单元格 → 石墨 */
body.oriental-theme #page-content td {
  color: #5A6B63 !important;
  -webkit-text-fill-color: #5A6B63 !important;
}
/* 引用块 → 浓墨 */
body.oriental-theme #page-content blockquote {
  color: #3A4A44 !important;
  -webkit-text-fill-color: #3A4A44 !important;
}
/* 徽章/标签/胶囊 → 浓墨 */
body.oriental-theme #page-content .badge,
body.oriental-theme #page-content .pill,
body.oriental-theme #page-content .tag,
body.oriental-theme #page-content .chip {
  color: #3A4A44 !important;
  -webkit-text-fill-color: #3A4A44 !important;
}
/* 描边按钮 → 浓墨 */
body.oriental-theme #page-content .btn-outline {
  color: #3A4A44 !important;
  -webkit-text-fill-color: #3A4A44 !important;
}
/* 紫色文字（#9B59B6 → typography-final 染金）→ 浓墨 */
body.oriental-theme #page-content [style*="color:#9B59B6"] {
  color: #3A4A44 !important;
  -webkit-text-fill-color: #3A4A44 !important;
}
/* 报名步骤指示器灰紫（#8B7A8C → typography-final 染金）→ 淡墨 */
body.oriental-theme #page-content div[style*="color:#8B7A8C"] {
  color: #7A8A82 !important;
  -webkit-text-fill-color: #7A8A82 !important;
}
/* 列表项目标记 → 石墨 */
body.oriental-theme #page-content ul li::marker { color: #5A6B63 !important; }
body.oriental-theme #page-content ol li::marker { color: #5A6B63 !important; }

/* 渐变金色数字（background-clip:text + 透明填充）→ 墨色实色 */
body.oriental-theme .stats-grid .stat-num,
body.oriental-theme .fed-stat-value,
body.oriental-theme .hf-hero-stat .num {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #2E3A36 !important;
  color: #2E3A36 !important;
}

