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

/* 金色系文字 → 黛青墨 */
body.cream-theme [style*="color:#E2B86C" i],
body.cream-theme [style*="color: #E2B86C" i],
body.cream-theme [style*="color:#E2B86C" i],
body.cream-theme [style*="color: #E2B86C" i],
body.cream-theme [style*="color:#E8C892" i],
body.cream-theme [style*="color: #E8C892" i],
body.cream-theme [style*="color:#E2B86C" i],
body.cream-theme [style*="color: #E2B86C" i],
body.cream-theme [style*="color:#D8B56A" i],
body.cream-theme [style*="color: #D8B56A" i],
body.cream-theme [style*="color:#E2B86C" i],
body.cream-theme [style*="color: #E2B86C" i],
body.cream-theme [style*="color:#B8860B" i],
body.cream-theme [style*="color: #B8860B" i],
body.cream-theme [style*="color:#D8B56A" i],
body.cream-theme [style*="color: #D8B56A" i] {
  color: #5C4632 !important;
  -webkit-text-fill-color: #5C4632 !important;
}

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

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

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

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

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

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

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

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

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

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

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


/* ═══════════════════════════════════════════════════════════════
   焦糖强调色文字加深（2026-09-22）
   根因：--gold-accent #C08968 对比度仅 2.9（奶油白底上），
   正文链接/徽章/导航激活态可读性不足。
   修复：文字用途的焦糖 → #A56A3E（对比度 ~4.45），
   背景/按钮焦糖渐变保持不变。
   ═══════════════════════════════════════════════════════════════ */
body.cream-theme #page-content a:not(.btn):not(.nav-link):not(.btn-primary):not(.btn-gold) {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}
body.cream-theme .sidebar .nav-link.active {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}
body.cream-theme .badge {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}
body.cream-theme .mobile-tab-item.active {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}
body.cream-theme #coach-welcome [style*="color:#E2B86C"],
body.cream-theme #coach-welcome [style*="color: #E2B86C"] {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}

/* ===== 奶油主题语义色暖调迁移 ===== */

/* 2026-09-21 继续：冷调语义色（绿/蓝/青/金）迁移到奶油暖棕玫瑰调 */

/* 绿色 -> 暖棕玫瑰 */
body.cream-theme [style*="color:#22C55E" i],
body.cream-theme [style*="color: #22C55E" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:#34C759" i],
body.cream-theme [style*="color: #34C759" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#4ADE80" i],
body.cream-theme [style*="color: #4ADE80" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#4CAF50" i],
body.cream-theme [style*="color: #4CAF50" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#07C160" i],
body.cream-theme [style*="color: #07C160" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#7BC98A" i],
body.cream-theme [style*="color: #7BC98A" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#3E9A5A" i],
body.cream-theme [style*="color: #3E9A5A" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#5C7A65" i],
body.cream-theme [style*="color: #5C7A65" i] {
  color: #8B6B4D !important;
  -webkit-text-fill-color: #8B6B4D !important;
}
body.cream-theme [style*="color:#1A4A30" i],
body.cream-theme [style*="color: #1A4A30" i] {
  color: #6B4F3A !important;
  -webkit-text-fill-color: #6B4F3A !important;
}
body.cream-theme [style*="color:#10B981" i],
body.cream-theme [style*="color: #10B981" i] {
  color: #B9896C !important;
  -webkit-text-fill-color: #B9896C !important;
}
body.cream-theme [style*="color:#059669" i],
body.cream-theme [style*="color: #059669" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#04A558" i],
body.cream-theme [style*="color: #04A558" i] {
  color: #8B6B4D !important;
  -webkit-text-fill-color: #8B6B4D !important;
}
body.cream-theme [style*="color:#047857" i],
body.cream-theme [style*="color: #047857" i] {
  color: #7A5C44 !important;
  -webkit-text-fill-color: #7A5C44 !important;
}
body.cream-theme [style*="color:#064E3B" i],
body.cream-theme [style*="color: #064E3B" i] {
  color: #6B4F3A !important;
  -webkit-text-fill-color: #6B4F3A !important;
}
body.cream-theme [style*="color:#81C784" i],
body.cream-theme [style*="color: #81C784" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#6B8E5A" i],
body.cream-theme [style*="color: #6B8E5A" i] {
  color: #8B6B4D !important;
  -webkit-text-fill-color: #8B6B4D !important;
}
body.cream-theme [style*="color:#16A34A" i],
body.cream-theme [style*="color: #16A34A" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#15803D" i],
body.cream-theme [style*="color: #15803D" i] {
  color: #8B6B4D !important;
  -webkit-text-fill-color: #8B6B4D !important;
}
body.cream-theme [style*="color:#28A745" i],
body.cream-theme [style*="color: #28A745" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}

/* 蓝青紫 -> 暖棕玫瑰 */
body.cream-theme [style*="color:#4FC3F7" i],
body.cream-theme [style*="color: #4FC3F7" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#00D4FF" i],
body.cream-theme [style*="color: #00D4FF" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:#3B82F6" i],
body.cream-theme [style*="color: #3B82F6" i] {
  color: #B9896C !important;
  -webkit-text-fill-color: #B9896C !important;
}
body.cream-theme [style*="color:#8B5CF6" i],
body.cream-theme [style*="color: #8B5CF6" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:#A855F7" i],
body.cream-theme [style*="color: #A855F7" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}

/* 金色 -> 暖棕玫瑰 */
body.cream-theme [style*="color:#E2B86C" i],
body.cream-theme [style*="color: #E2B86C" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}

/* 金色 rgba 变体 -> 焦糖 */
body.cream-theme [style*="color:rgba(226,184,108," i],
body.cream-theme [style*="color: rgba(226,184,108," i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:rgba(226, 184, 108," i],
body.cream-theme [style*="color: rgba(226, 184, 108," i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:rgba(226,184, 108," i],
body.cream-theme [style*="color: rgba(226,184, 108," i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:rgba(226, 184,108," i],
body.cream-theme [style*="color: rgba(226, 184,108," i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}

/* 奶油主题语义色暖调迁移 补充2 */

/* 补充遗漏的蓝/紫/青色文字 -> 暖棕玫瑰（八仙过海等内页） */
body.cream-theme [style*="color:#3BA7D9" i],
body.cream-theme [style*="color: #3BA7D9" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:#2E86C1" i],
body.cream-theme [style*="color: #2E86C1" i] {
  color: #A98467 !important;
  -webkit-text-fill-color: #A98467 !important;
}
body.cream-theme [style*="color:#5B2D8E" i],
body.cream-theme [style*="color: #5B2D8E" i] {
  color: #A56A3E !important;
  -webkit-text-fill-color: #A56A3E !important;
}
body.cream-theme [style*="color:#8B3AAF" i],
body.cream-theme [style*="color: #8B3AAF" i] {
  color: #C08968 !important;
  -webkit-text-fill-color: #C08968 !important;
}
body.cream-theme [style*="color:#4DD0E1" i],
body.cream-theme [style*="color: #4DD0E1" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#2196F3" i],
body.cream-theme [style*="color: #2196F3" i] {
  color: #B9896C !important;
  -webkit-text-fill-color: #B9896C !important;
}

/* ===== cream主题 饱和玫瑰色软化 ===== */
body.cream-theme [style*="color:#C44D8C" i],
body.cream-theme [style*="color: #C44D8C" i] {
  color: #C06B7A !important;
  -webkit-text-fill-color: #C06B7A !important;
}
body.cream-theme [style*="color:#EC4899" i],
body.cream-theme [style*="color: #EC4899" i] {
  color: #D4899B !important;
  -webkit-text-fill-color: #D4899B !important;
}
body.cream-theme [style*="color:#E91E63" i],
body.cream-theme [style*="color: #E91E63" i] {
  color: #C06B7A !important;
  -webkit-text-fill-color: #C06B7A !important;
}

/* ═══ 九紫离火/浅色文字 → 主题深色（修复浅底看不清，2026-09-27） ═══ */
body.cream-theme [style*="color:#F2EAF8" i] {
  color: var(--ink-deep) !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
}
body.cream-theme [style*="color: #F2EAF8" i] {
  color: var(--ink-deep) !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
}
body.cream-theme [style*="color:#E8A0B4" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color: #E8A0B4" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color:#F0E6D8" i] {
  color: var(--ink-deep) !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
}
body.cream-theme [style*="color: #F0E6D8" i] {
  color: var(--ink-deep) !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
}
body.cream-theme [style*="color:#F0D9B0" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color: #F0D9B0" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color:#D4C5E2" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color: #D4C5E2" i] {
  color: var(--ink-rich) !important;
  -webkit-text-fill-color: var(--ink-rich) !important;
}
body.cream-theme [style*="color:#9B8AAA" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}
body.cream-theme [style*="color: #9B8AAA" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}
body.cream-theme [style*="color:#C8B8D0" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}
body.cream-theme [style*="color: #C8B8D0" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}

/* ═══ 补充强调色反制（珊瑚红/紫/琥珀金/浅粉/浅红，2026-09-27） ═══ */

/* #E8726A -> #A85A68 (强调色反制 2026-09-27) */
body.cream-theme [style*="color:#E8726A" i],
body.cream-theme [style*="color: #E8726A" i] {
  color: #A85A68 !important;
  -webkit-text-fill-color: #A85A68 !important;
}

/* #A855D4 -> #7A5C44 (强调色反制 2026-09-27) */
body.cream-theme [style*="color:#A855D4" i],
body.cream-theme [style*="color: #A855D4" i] {
  color: #7A5C44 !important;
  -webkit-text-fill-color: #7A5C44 !important;
}

/* #E8A020 -> #7A5C44 (强调色反制 2026-09-27) */
body.cream-theme [style*="color:#E8A020" i],
body.cream-theme [style*="color: #E8A020" i] {
  color: #7A5C44 !important;
  -webkit-text-fill-color: #7A5C44 !important;
}

/* #F9A8D4 -> #A85A68 (强调色反制 2026-09-27) */
body.cream-theme [style*="color:#F9A8D4" i],
body.cream-theme [style*="color: #F9A8D4" i] {
  color: #A85A68 !important;
  -webkit-text-fill-color: #A85A68 !important;
}

/* #FF8A8A -> #A85A68 (强调色反制 2026-09-27) */
body.cream-theme [style*="color:#FF8A8A" i],
body.cream-theme [style*="color: #FF8A8A" i] {
  color: #A85A68 !important;
  -webkit-text-fill-color: #A85A68 !important;
}

/* ═══ 灰字反制（#999/#ccc → --ink-gray，2026-09-27） ═══ */
body.cream-theme [style*="color:#999" i],
body.cream-theme [style*="color: #999" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}
body.cream-theme [style*="color:#ccc" i],
body.cream-theme [style*="color: #ccc" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}

/* ═══ 主按钮对比度修复（深棕底白字，2026-09-27） ═══ */
body.cream-theme .btn-primary,
body.cream-theme #page-content .btn-primary,
body.cream-theme .btn-gold,
body.cream-theme .btn-cta,
body.cream-theme .btn-login,
body.cream-theme .fed-btn {
  background: linear-gradient(135deg, #7A5230 0%, #5C3A22 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
  box-shadow: 0 4px 16px rgba(92,58,34,0.32) !important;
}

/* ═══ 高特异性主按钮对比度（覆盖 button[style*=linear-gradient]，2026-09-27） ═══ */
body.cream-theme button[style*="linear-gradient"],
body.cream-theme a[style*="linear-gradient"],
body.cream-theme #page-content button[style*="linear-gradient"],
body.cream-theme #page-content a[style*="linear-gradient"],
body.cream-theme .btn-primary,
body.cream-theme .btn-gold,
body.cream-theme .btn-cta,
body.cream-theme .btn-login,
body.cream-theme .fed-btn,
body.cream-theme #page-content .btn-primary,
body.cream-theme #page-content .btn-gold,
body.cream-theme #page-content .btn-cta,
body.cream-theme #page-content .btn-login,
body.cream-theme #page-content .fed-btn {
  background: linear-gradient(135deg, #7A5230 0%, #5C3A22 100%) !important;
  background-image: linear-gradient(135deg, #7A5230 0%, #5C3A22 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

/* ═══ 双属性选择器按钮覆盖（1,3,2 反制，2026-09-27） ═══ */
body.cream-theme button[style*="linear-gradient"][style*="linear-gradient"],
body.cream-theme a[style*="linear-gradient"][style*="linear-gradient"],
body.cream-theme #page-content button[style*="linear-gradient"][style*="linear-gradient"],
body.cream-theme #page-content a[style*="linear-gradient"][style*="linear-gradient"],
body.cream-theme button[style*="background:linear-gradient"][style*="linear-gradient"],
body.cream-theme #page-content button[style*="background:linear-gradient"][style*="linear-gradient"] {
  background: linear-gradient(135deg, #7A5230 0%, #5C3A22 100%) !important;
  background-image: linear-gradient(135deg, #7A5230 0%, #5C3A22 100%) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

/* ═══ 链接/装饰箭头/灰字 对比度修复 (2026-09-27) ═══ */

/* 链接：medium accent → deep accent（可读性 ≥ 4.5） */
body.cream-theme #page-content a:not(.btn):not(.nav-link):not(.btn-primary):not(.btn-gold) {
  color: #5C3A22 !important;
  -webkit-text-fill-color: #5C3A22 !important;
}

/* 半透明金/玫瑰装饰箭头 → 主题灰 */
body.cream-theme [style*="color:rgba(226,184,108,0."],
body.cream-theme [style*="color:rgba(226, 184, 108, 0."],
body.cream-theme [style*="color:rgba(196,77,140,0."],
body.cream-theme [style*="color:rgba(196, 77, 140, 0."] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}

/* 硬编码浅灰文字 → 主题灰 */
body.cream-theme [style*="color:#66766D" i],
body.cream-theme [style*="color: #66766D" i],
body.cream-theme [style*="color:#6B7280" i],
body.cream-theme [style*="color: #6B7280" i] {
  color: var(--ink-gray) !important;
  -webkit-text-fill-color: var(--ink-gray) !important;
}

/* ═══ 最终清理：--ink-light 加深 + 装饰符号修复 (2026-09-27) ═══ */
body.cream-theme {
  --ink-light: #6E5340;
}

/* 装饰 ® / 符号 -webkit-text-fill-color 浅色 → 深色 */
body.cream-theme [style*="-webkit-text-fill-color:#E8A0B4"],
body.cream-theme [style*="-webkit-text-fill-color: #E8A0B4"],
body.cream-theme [style*="-webkit-text-fill-color:#F2EAF8"],
body.cream-theme [style*="-webkit-text-fill-color: #F2EAF8"] {
  -webkit-text-fill-color: var(--ink-deep) !important;
  color: var(--ink-deep) !important;
}

/* ═══ ® 商标 sup 加深（--gold-accent 太浅 → ink-deep）(2026-09-27) ═══ */
body.cream-theme .hero-panel h1 sup,
body.cream-theme .hero-panel h1 sup,
body.cream-theme h1 sup,
body.cream-theme h2 sup,
body.cream-theme .hero-panel sup {
  color: var(--ink-deep) !important;
  -webkit-text-fill-color: var(--ink-deep) !important;
}

/* ═══ 亮色强调文字 → 深色可读 (2026-09-27) ═══ */
body.cream-theme [style*="color:#22C55E" i],
body.cream-theme [style*="color: #22C55E" i],
body.cream-theme [style*="color:#34C759" i],
body.cream-theme [style*="color: #34C759" i],
body.cream-theme [style*="color:#4ADE80" i],
body.cream-theme [style*="color: #4ADE80" i],
body.cream-theme [style*="color:#4CAF50" i],
body.cream-theme [style*="color: #4CAF50" i],
body.cream-theme [style*="color:#07C160" i],
body.cream-theme [style*="color: #07C160" i],
body.cream-theme [style*="color:#7BC98A" i],
body.cream-theme [style*="color: #7BC98A" i],
body.cream-theme [style*="color:#3E9A5A" i],
body.cream-theme [style*="color: #3E9A5A" i],
body.cream-theme [style*="color:#10B981" i],
body.cream-theme [style*="color: #10B981" i],
body.cream-theme [style*="color:#059669" i],
body.cream-theme [style*="color: #059669" i],
body.cream-theme [style*="color:#04A558" i],
body.cream-theme [style*="color: #04A558" i],
body.cream-theme [style*="color:#047857" i],
body.cream-theme [style*="color: #047857" i],
body.cream-theme [style*="color:#81C784" i],
body.cream-theme [style*="color: #81C784" i],
body.cream-theme [style*="color:#16A34A" i],
body.cream-theme [style*="color: #16A34A" i],
body.cream-theme [style*="color:#15803D" i],
body.cream-theme [style*="color: #15803D" i],
body.cream-theme [style*="color:#28A745" i],
body.cream-theme [style*="color: #28A745" i],
body.cream-theme [style*="color:#5C7A65" i],
body.cream-theme [style*="color: #5C7A65" i],
body.cream-theme [style*="color:#1A4A30" i],
body.cream-theme [style*="color: #1A4A30" i],
body.cream-theme [style*="color:#6B8E5A" i],
body.cream-theme [style*="color: #6B8E5A" i],
body.cream-theme [style*="color:#064E3B" i],
body.cream-theme [style*="color: #064E3B" i] {
  color: #4A6B3A !important;
  -webkit-text-fill-color: #4A6B3A !important;
}

body.cream-theme [style*="color:#4FC3F7" i],
body.cream-theme [style*="color: #4FC3F7" i],
body.cream-theme [style*="color:#00D4FF" i],
body.cream-theme [style*="color: #00D4FF" i],
body.cream-theme [style*="color:#3B82F6" i],
body.cream-theme [style*="color: #3B82F6" i],
body.cream-theme [style*="color:#3BA7D9" i],
body.cream-theme [style*="color: #3BA7D9" i],
body.cream-theme [style*="color:#2E86C1" i],
body.cream-theme [style*="color: #2E86C1" i],
body.cream-theme [style*="color:#2196F3" i],
body.cream-theme [style*="color: #2196F3" i],
body.cream-theme [style*="color:#4DD0E1" i],
body.cream-theme [style*="color: #4DD0E1" i] {
  color: #5C4632 !important;
  -webkit-text-fill-color: #5C4632 !important;
}

body.cream-theme [style*="color:#E57373" i],
body.cream-theme [style*="color: #E57373" i],
body.cream-theme [style*="color:#FF6B6B" i],
body.cream-theme [style*="color: #FF6B6B" i],
body.cream-theme [style*="color:#F87171" i],
body.cream-theme [style*="color: #F87171" i],
body.cream-theme [style*="color:#EF4444" i],
body.cream-theme [style*="color: #EF4444" i],
body.cream-theme [style*="color:#FF5252" i],
body.cream-theme [style*="color: #FF5252" i],
body.cream-theme [style*="color:#E53935" i],
body.cream-theme [style*="color: #E53935" i],
body.cream-theme [style*="color:#FF8A80" i],
body.cream-theme [style*="color: #FF8A80" i],
body.cream-theme [style*="color:#FF8A8A" i],
body.cream-theme [style*="color: #FF8A8A" i] {
  color: #9C3030 !important;
  -webkit-text-fill-color: #9C3030 !important;
}


/* ═══ 最终收尾：玫红强调 + Apple令牌 + gold-accent文字 (2026-09-27) ═══ */
body.cream-theme [style*="color:#C44D8C" i],
body.cream-theme [style*="color: #C44D8C" i],
body.cream-theme [style*="color:#EC4899" i],
body.cream-theme [style*="color: #EC4899" i],
body.cream-theme [style*="color:#E91E63" i],
body.cream-theme [style*="color: #E91E63" i],
body.cream-theme [style*="color:#E8726A" i],
body.cream-theme [style*="color: #E8726A" i],
body.cream-theme [style*="color:#F9A8D4" i],
body.cream-theme [style*="color: #F9A8D4" i],
body.cream-theme [style*="color:#D6336C" i],
body.cream-theme [style*="color: #D6336C" i],
body.cream-theme [style*="color:#FF8A8A" i],
body.cream-theme [style*="color: #FF8A8A" i],
body.cream-theme [style*="color:#FF6B6B" i],
body.cream-theme [style*="color: #FF6B6B" i],
body.cream-theme [style*="color:#F87171" i],
body.cream-theme [style*="color: #F87171" i],
body.cream-theme [style*="color:#EF4444" i],
body.cream-theme [style*="color: #EF4444" i],
body.cream-theme [style*="color:#FF5252" i],
body.cream-theme [style*="color: #FF5252" i],
body.cream-theme [style*="color:#E53935" i],
body.cream-theme [style*="color: #E53935" i],
body.cream-theme [style*="color:#E8A0B4" i],
body.cream-theme [style*="color: #E8A0B4" i],
body.cream-theme [style*="color:#D4784C" i],
body.cream-theme [style*="color: #D4784C" i] {
  color: #9C3A5A !important;
  -webkit-text-fill-color: #9C3A5A !important;
}
body.cream-theme [style*="color:var(--gold-accent)"],
body.cream-theme [style*="color: var(--gold-accent)"] {
  color: #5C4632 !important;
  -webkit-text-fill-color: #5C4632 !important;
}


/* ═══ 状态徽章浅绿底 #22C55E → 深绿(白字可读) (2026-09-27) ═══ */
body [style*="background:#22C55E"],
body [style*="background: #22C55E"],
body [style*="background:#4ADE80"],
body [style*="background: #4ADE80"],
body [style*="background:#16A34A"] {
  background: #15803D !important;
}

/* ═══ 奶油主题 fire 色板加深（标题/数值/按钮渐变过浅）(2026-09-27) ═══ */
body.cream-theme {
  --fire-deep:      #4A3828 !important;
  --fire-purple:    #5C4632 !important;
  --fire-amethyst:  #7A5C44 !important;
}

/* ═══ 内页批次：步骤徽章 + 紫 tier 色加深 (2026-09-27) ═══ */
body.cream-theme [style*="background:var(--fire-purple)"][style*="color:var(--ink-deep)"] {
  background: #5C4632 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
body.cream-theme [style*="color:#5B2D8E" i], body.cream-theme [style*="color: #5B2D8E" i],
body.cream-theme [style*="color:#8B3AAF" i], body.cream-theme [style*="color: #8B3AAF" i],
body.cream-theme [style*="color:#A855F7" i], body.cream-theme [style*="color: #A855F7" i],
body.cream-theme [style*="color:#8B5CF6" i], body.cream-theme [style*="color: #8B5CF6" i] {
  color: #5C3A5A !important;
  -webkit-text-fill-color: #5C3A5A !important;
}

/* ═══ 淡彩徽章背景恢复（8位hex带alpha，勿拍成深绿）(2026-09-27) ═══ */
body [style*="background:#22C55E10"], body [style*="background: #22C55E10"],
body [style*="background:#22C55E15"], body [style*="background: #22C55E15"] {
  background: rgba(34, 197, 94, 0.08) !important;
  background-image: none !important;
}
