/* ==========================================================================
   lg-contrast.css —— 付款二维码 / 优惠卷 的文字对比度修复
   --------------------------------------------------------------------------
   ★★★ 用户反馈原话（2026-10-22 09:34，逐字）
       「优惠卷付款界面，白色和透明为底，浅色黄色字体显示不清晰」

   ★ 实测（WCAG AA 正文门槛 4.5:1，改前）
       .qrp-promo-label   --wx-gold #d4a017  on --wx-bg #f7f7f7   = **2.22:1**  ← 主因
       .qrp-num--pending  --wx-ink-4 #b2b2b2 on 白 92%            = **2.12:1**
       .qrp-promo-hint    --wx-ink-3 #888888 on --wx-bg #f7f7f7   = **3.31:1**
       .qrp-origin        --wx-ink-3 #888888 on 白 92%            = **3.54:1**
     ⇒ 用户说的「浅色黄色字体」就是 --wx-gold #d4a017（金黄）压在近白底上。

   ★ 为什么只改令牌就够、且安全
       `--wx-*` **只定义在 `.qrp-mask` 上**，且**只被 `.qrp-*` 选择器使用**
       （普查：gold 3 处 / ink-3 7 处 / ink-4 5 处，全在 qrp 命名空间内）
       ⇒ 改它们**不波及站内任何其它界面**。

   ★ 设计语言协调（这是微信收款码配色，站长 2026-10-21 明确要求）
       **不换色相** —— 绿色 #07c160、金色系全部保留，
       只把「用于文字的那几个色」沿亮度压深，保持同一视觉家族。
       ⛔ 不动：布局 / 尺寸 / 圆角 / 间距 / 二维码本体 / 按钮渐变 / 任何动画

   ★ 特异性
       本文件在 index-*.css 之后加载；`.qrp-mask[data-v-...]` 是 (0,2,0)，
       这里用 `html:root .qrp-mask` = (0,2,1) ⇒ 稳赢，无需 !important。
       ⚠️ 但仍加 !important 到关键几条：主题/媒体查询里的同名令牌
          优先级同为 (0,2,0)，靠加载顺序才赢，加 !important 更稳。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 令牌级修复 —— 一处改，qrp 命名空间内全生效
   -------------------------------------------------------------------------- */
html:root .qrp-mask {
  /* 金色：只压亮度，色相仍是「金」。#d4a017 -> 更深，2.22:1 -> 见下 */
  --wx-gold: #8e6b0f !important;
  /* 次要文字：#888888 -> 更深 */
  --wx-ink-3: #595959 !important;
  /* 弱化文字：#b2b2b2 -> 更深（原本 2.12:1，用户最容易看不到的就是它） */
  --wx-ink-4: #707070 !important;
}

/* 系统「更高对比度」偏好下的既有覆盖保持不变（原文件已有，这里只做兜底） */
@media (prefers-contrast: more) {
  html:root .qrp-mask {
    --wx-ink-3: #4a4a4a !important;
    --wx-ink-4: #666666 !important;
  }
}

/* --------------------------------------------------------------------------
   2. 优惠卷卡片（.sub-coupon）—— 不在 qrp 命名空间里，单独修
      原值：底 linear-gradient(135deg,#fffaf0,#fff3d6)
            .sub-coupon-t  #8a5a05
            .sub-coupon-h  #a8834a   ← 这个最糊
   -------------------------------------------------------------------------- */
html:root .sub-coupon-t {
  color: #8a5a05 !important;
}
html:root .sub-coupon-h {
  color: #87693c !important;
}

/* --------------------------------------------------------------------------
   3. 深色主题：qrp 卡是白 92% 玻璃，深色下依旧是亮底 ⇒ 上面那套值继续适用。
      但如果将来有人把 qrp-card 改成深底，这里给出安全值（当前不生效）。
   -------------------------------------------------------------------------- */
html[data-theme="dark"] .qrp-card {
  /* 占位：⛔ 不改任何东西，只留注释说明为何这里不需要覆盖 */
}
