/* ==========================================================================
 * 佑物商城 · 暗夜鎏金主题覆盖层  v1.0 / 2026-11-12
 * --------------------------------------------------------------------------
 * 设计基准：天机命理主站（暗夜底 + 暗金描边 + 磨砂玻璃 + 东方字体）
 * 约束：
 *   - 纯 CSS 覆盖，不重写任何页面 template，不删除/篡改 onclick 等绑定属性
 *   - 所有装饰层 pointer-events:none，绝不拦截点击
 *   - 不改 padding / height / min-height，点击热区保持原样
 *   - TabBar 与支付弹窗保持最高 z-index
 *   - 依赖 main.css 已存在的 :root 变量，重定义即可全局换肤
 * ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 复用原变量：main.css 中 300+ 处引用自动换肤 */
  --bg-warm:        #0C0F1A;
  --primary:        #C5A059;
  --primary-light:  #E0BC7C;
  --accent:         #C23B22;
  --trust:          #93A8BE;
  --text-dark:      #F2E9D8;
  --text-light:     #B9A98C;
  /* 原 --card-bg 是近白色，被大量当作「反色文字」使用；改深色后由 qf-contrast.js
     统一兜底，避免黑字配黑底。磨砂玻璃感由 --qf-glass 独立提供，不依赖此变量。 */
  --card-bg:        #161B2A;
  --border:         rgba(197, 160, 89, .30);
  --gold:           #FFD700;

  /* 新增主题变量 */
  --qf-ink:         #0C0F1A;
  --qf-ink-2:       #111728;
  --qf-gold:        #C5A059;
  --qf-gold-bright: #FFD700;
  --qf-cinnabar:    #C23B22;
  --qf-cinnabar-lit:#E4573C;
  --qf-moon:        #F2E9D8;
  --qf-moon-dim:    #B9A98C;
  --qf-glass:       rgba(22, 27, 42, .72);
  --qf-glass-soft:  rgba(16, 20, 32, .55);
  --qf-stroke:      rgba(197, 160, 89, .30);
  --qf-stroke-lit:  rgba(255, 215, 0, .55);
  --qf-shadow:      0 8px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 215, 0, .05);
}

/* ---------- 2. 背景氛围：暗夜黑/墨蓝 + 极暗金色微尘 ---------- */
html,
html body,
html body .main-container,
html body .phone-area,
html body .phone-wrap,
html body .phone-screen,
html body .pages-container,
html body .page,
html body .page.active,
html body .page.admin-active {
  background-color: var(--qf-ink) !important;
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(35, 44, 72, .85) 0%, rgba(12, 15, 26, 0) 70%),
    linear-gradient(180deg, #0C0F1A 0%, #0E1220 55%, #0A0D17 100%) !important;
  color: var(--qf-moon) !important;
}

/* 原有水墨装饰改为金色微尘：必须 pointer-events:none，且不得抬高层级 */
html body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  transform: none !important;
  letter-spacing: normal !important;
  font-size: 0 !important;
  color: transparent !important;
  background-repeat: repeat !important;
  background-size: 260px 260px, 340px 340px, 420px 420px, 100% 100% !important;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 215, 0, .30) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 61%, rgba(197, 160, 89, .24) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 87%, rgba(255, 215, 0, .16) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, rgba(12, 15, 26, 0) 0%, rgba(12, 15, 26, .55) 100%) !important;
  opacity: .55 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: none !important;
}
@keyframes qfDustDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 26px -52px, -34px -68px, 18px -90px, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body::before { animation: none !important; }
}

/* 内容层抬到装饰之上；仅 position/z-index，不加 filter/transform，避免影响内部 fixed 弹窗 */
html body .phone-screen,
html body .pages-container,
html body .page.active,
html body .page.admin-active { position: relative; z-index: 1; }

/* ---------- 3. 字体规范：标题宋/楷，正文无衬线；底栏沿用第 24 轮定稿楷体 ---------- */
html body,
html body p,
html body div,
html body span,
html body li,
html body a,
html body label,
html body button,
html body input,
html body textarea,
html body select {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .brand-name,
html body [class*="page-title"],
html body [class*="header-title"],
html body [class*="section-title"],
html body [class*="card-title"],
html body [class*="-title"]:not(.tab-label) {
  font-family: STSong, SimSun, STKaiti, KaiTi, "Songti SC", serif !important;
  color: var(--qf-gold-bright) !important;
}
/* 底栏字体保持第 24 轮「与参考图完全一致」的楷体系，不被全局正文规则覆盖 */
html body .tab-bar, html body .tab-bar * {
  font-family: STKaiti, KaiTi, STSong, SimSun, serif !important;
}

/* ---------- 4. 内联颜色穿透（属性选择器 + !important，零 DOM 改写） ----------
 * 已核实：1862 条内联 style 中 0 条带 !important，因此本层可全部穿透。
 * 目的：杜绝「深棕字 + 深墨底」不可读。
 */
[style*="color:#8B5A2B" i], [style*="color:#8B7355" i], [style*="color:#4A3728" i],
[style*="color:#6B4423" i], [style*="color:#8B6914" i], [style*="color:#4A3C28" i],
[style*="color:#6B3F00" i], [style*="color:#422416" i], [style*="color:#5A4A2E" i],
[style*="color:#8B5A00" i], [style*="color:#8B4513" i], [style*="color:#1A0F2E" i],
[style*="color:#999" i],    [style*="color:#666" i],    [style*="color:#333" i],
[style*="color:#000" i],    [style*="color:#4A7C7E" i] {
  color: var(--qf-moon) !important;
}
[style*="color:#FFF" i]:not(input):not(textarea),
[style*="color:#FFFFFF" i], [style*="color:#FFFBEE" i], [style*="color:#FFF8EC" i],
[style*="color:#E8C499" i], [style*="color:#FFEB" i] {
  color: var(--qf-moon) !important;
}
/* 金色系：提到亮金，保证暗底对比 */
[style*="color:#B8860B" i], [style*="color:#D4A574" i], [style*="color:#D4A017" i],
[style*="color:#8B6914" i], [style*="color:#E8BA5C" i], [style*="color:#FFD700" i],
[style*="color:var(--primary)" i] {
  color: var(--qf-gold-bright) !important;
}
/* 红/绿状态色：改为朱砂红亮阶 / 柔和青绿，保持语义且可读 */
[style*="color:#C2362B" i], [style*="color:#C04040" i], [style*="color:#A82020" i],
[style*="color:#8B1F14" i], [style*="color:#8B2020" i], [style*="color:#E74C3C" i],
[style*="color:#C8553D" i] {
  color: var(--qf-cinnabar-lit) !important;
}
[style*="color:#07C160" i], [style*="color:#2E8B57" i], [style*="color:#8FBC8F" i] {
  color: #7FD8A4 !important;
}

/* ---------- 5. 通用组件：磨砂玻璃 + 1px 暗金描边 ---------- */
html body .page div[class*="card"]:not([class*="title"]):not([class*="label"]):not([class*="icon"]):not([class*="img"]):not([class*="desc"]):not([class*="text"]):not([class*="row"]):not([class*="wrap"]):not([class*="inner"]),
html body .page div[class*="item"]:not([class*="title"]):not([class*="label"]):not([class*="icon"]):not([class*="img"]):not([class*="desc"]):not([class*="text"]):not([class*="row"]):not([class*="wrap"]):not([class*="inner"]),
html body .config-card,
html body .admin-switch-card,
html body .reward-card,
html body .record-item {
  background-color: var(--qf-glass) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
/* 卡片内的图片容器不强制深色，避免给商品图加黑框 */
html body .page img,
html body .page [class*="img-wrap"],
html body .page [class*="image-wrap"] {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* 商品卡片：深色半透明 + 1px 暗金边框 */
html body .product-card,
html body [class*="product-card"],
html body [class*="goods-card"],
html body [class*="wish-cat-card"] {
  background-color: var(--qf-glass) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

/* 输入框 / 搜索框：细长半透明磨砂 + 暗金线框（不改 padding / height） */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body textarea,
html body select,
html body .input-field,
html body .form-input,
html body .config-field-input,
html body .admin-field-input,
html body .admin-rule-input,
html body .field-input,
html body input[placeholder*="搜索" i] {
  background-color: var(--qf-glass-soft) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: var(--qf-moon) !important;
  box-shadow: none !important;
}
html body input::placeholder, html body textarea::placeholder {
  color: rgba(242, 233, 216, .45) !important;
  opacity: 1 !important;
}
html body input:focus, html body textarea:focus, html body select:focus {
  border-color: var(--qf-gold-bright) !important;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, .16), inset 0 1px 6px rgba(0, 0, 0, .35) !important;
}

/* 按钮：默认「透明底 + 金边框」次操作；不改 padding/height，热区原样保留 */
html body button,
html body .page button[class*="btn"],
html body .page [onclick][class*="btn"],
html body .page [class*="btn-"]:not([class*="wrap"]):not([class*="group"]),
html body .page [role="button"] {
  background-color: rgba(197, 160, 89, .07) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
  box-shadow: none !important;
}
html body button[disabled], html body .page [class*="disabled"] {
  opacity: .45 !important;
}
/* 主操作按钮「暗金实心」：按 onclick 语义分类，只读取绑定、绝不修改绑定 */
html body button[onclick*="confirm" i],
html body button[onclick*="submit" i],
html body button[onclick*="save" i],
html body button[onclick*="buy" i],
html body button[onclick*="purchase" i],
html body button[onclick*="checkout" i],
html body button[onclick*="login" i],
html body button[onclick*="register" i],
html body button[onclick^="payNow" i],
html body button[onclick^="doPay" i],
html body .btn-primary,
html body .primary-btn,
html body .btn-login,
html body .btn-register,
html body .config-save-btn,
html body .bottom-sheet-btn:not([onclick*="close" i]) {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: #0C0F1A !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(197, 160, 89, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
/* 关闭 / 取消 / 返回：透明底金边框 */
html body button[onclick*="close" i],
html body button[onclick*="cancel" i],
html body button[onclick*="goBack" i],
html body .back-btn {
  background-color: rgba(197, 160, 89, .06) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-gold-bright) !important;
  box-shadow: none !important;
}
/* 价格：朱砂红（暗底提亮的同色阶），仅限价格元素 */
html body .product-price,
html body [class*="price"]:not([class*="label"]):not([class*="row"]):not([class*="wrap"]),
html body [style*="color:#C23B22" i] {
  color: var(--qf-cinnabar-lit) !important;
  text-shadow: 0 0 10px rgba(194, 59, 34, .35);
}

/* ---------- 6. 弹窗 / 支付弹窗：磨砂玻璃 + 最高层级 ---------- */
html body .reward-modal,
html body #rechargeModal,
html body #payPwdModal,
html body #xibeiRechargeModal,
html body [id*="Pay"][id*="Modal"],
html body .bottom-sheet-modal {
  z-index: 2147483100 !important;   /* 高于 TabBar 的 2147483000，弹窗不被底栏遮挡 */
}
/* 弹窗遮罩：只换颜色，保留其 onclick 关闭能力与 pointer-events */
html body .reward-modal > div:first-child,
html body .bottom-sheet-mask {
  background-color: rgba(4, 6, 12, .80) !important;
  background-image: none !important;
}
/* 弹窗卡片：磨砂玻璃 + 金边 */
html body .reward-modal > div:last-child,
html body .bottom-sheet-content,
html body .slider-modal-card,
html body .click-verify-card {
  background-color: rgba(20, 25, 40, .94) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 215, 0, .08) !important;
}
html body .reward-modal > div:last-child div[style*="background" i],
html body .reward-modal > div:last-child > div {
  background-color: var(--qf-glass-soft) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body .reward-modal > div:last-child > button[onclick*="close" i] {
  background-color: transparent !important;
  border: none !important;
  color: var(--qf-gold-bright) !important;
}
/* 滑杆验证：底座深色、滑块暗金 */
html body .slider-img-wrap, html body .click-verify-img-wrap {
  background-color: #111728 !important;
  background-image: none !important;
  border: 1px solid transparent !important;
}
html body .slider-bar, html body .slider-bar-inner {
  background: var(--qf-gold) !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, .35) !important;
}

/* ---------- 7. 底栏：保持最高层级，字体/图标沿用定稿 ---------- */
html body .tab-bar {
  z-index: 2147483000 !important;
  background-color: rgba(10, 13, 23, .94) !important;
  background-image: none !important;
  border-top: 1px solid var(--qf-stroke) !important;
}
html body .tab-bar .tab-item,
html body .tab-bar [class*="tab-item"] { color: var(--qf-moon-dim) !important; }
html body .tab-bar .active,
html body .tab-bar [class*="Active"] { color: var(--qf-gold-bright) !important; }

/* ---------- 8. 分页面专项 ---------- */
/* 8.1 充值 / 奖金 / 钱包页顶部：深墨底 + 烫金字（废除大面积黄底） */
html body .wallet-page-header,
html body .admin-page-header,
html body [class*="balance-header"],
html body [class*="bonus-header"],
html body [class*="recharge-header"],
html body [class*="top-banner"] {
  background-color: #10141F !important;
  background-image: linear-gradient(180deg, rgba(35, 44, 72, .55) 0%, rgba(16, 20, 31, 1) 100%) !important;
  border: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  color: var(--qf-gold-bright) !important;
  box-shadow: none !important;
}
html body .wallet-page-amount,
html body .wallet-page-label,
html body [class*="balance-amount"],
html body [class*="bonus-amount"] {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, .28);
}
html body .wallet-page-btn,
html body .wallet-page-header button {
  background-color: rgba(197, 160, 89, .10) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-gold-bright) !important;
}

/* 8.2 充值档位选中态：仅 CSS 加暗金边 + 微弱金光晕，不碰组件选中逻辑 */
html body .recharge-amount-btn,
html body .xibei-recharge-pay-btn,
html body [class*="amount-btn"],
html body [class*="tier"] {
  background-color: var(--qf-glass-soft) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body .recharge-amount-btn.active,
html body .xibei-recharge-pay-btn.active,
html body [class*="amount-btn"].active,
html body [class*="tier"].active,
html body [class*="selected"][class*="btn"] {
  border: 1px solid var(--qf-gold-bright) !important;
  background-color: rgba(197, 160, 89, .16) !important;
  color: var(--qf-gold-bright) !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, .28), inset 0 0 12px rgba(255, 215, 0, .10) !important;
}

/* 8.3 游戏广场图标：彩色底座 → 单色暗金剪影 */
html body .game-card,
html body .game-card .icon,
html body [class*="game-icon"],
html body [class*="game"] [class*="icon"],
html body .game-card .icon img,
html body [class*="game-icon"] img {
  color: var(--qf-gold) !important;
}html body .game-card,
html body .game-card .icon {
  background-color: rgba(22, 27, 42, .72) !important;
  background-image: radial-gradient(circle at 50% 35%, rgba(197, 160, 89, .22) 0%, rgba(12, 15, 26, .55) 72%) !important;
  border: 1px solid transparent !important;
}
html body .game-card .name { color: var(--qf-gold-bright) !important; }
html body .game-card .desc, html body .game-card .tag { color: var(--qf-moon-dim) !important; }

/* 8.4 流水 / 列表：暗色分隔线、月白文字、朱砂红金额 */
html body .record-item,
html body [class*="record-item"],
html body [class*="list-item"] {
  border-bottom: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body .record-type,
html body [class*="record-type"] { color: var(--qf-moon) !important; }

/* ---------- 8.5 正文文字色修正 ----------
 * 原样式把 --accent / 深棕用在商品描述、标语等正文上；暗夜底下不可读。
 * 朱砂红按设计规范只保留给「价格」与「重点按钮」，正文统一月白/淡金/烫金。
 */
html body .calligraphy-main,
html body .calligraphy-sub,
html body .product-blessing,
html body .exchange-card .product-blessing,
html body .product-wish-badge,
html body .p-exchange .product-wish-badge,
html body [class*="blessing"],
html body [class*="subtitle"]:not(.tab-label),
html body [class*="desc"]:not([class*="price"]) {
  color: var(--qf-moon) !important;
}
html body .calligraphy-main.gold-majestic,
html body .brand-name {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, .32);
}
/* 反色浮层 / 胶囊：金边玻璃 + 亮金字或深墨字 */
html body .toast,
html body .wish-badge,
html body .banner-tag,
html body .empty-btn {
  background-color: rgba(20, 25, 40, .92) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-gold-bright) !important;
}
/* 三分类 / 子标签：暗色玻璃，选中态亮金边（不改选中逻辑） */
html body .three-cat,
html body .sub-tab {
  background-color: var(--qf-glass-soft) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body .three-cat.active,
html body .sub-tab.active,
html body .wish-cat-card.selected {
  background-color: rgba(197, 160, 89, .18) !important;
  background-image: none !important;
  border: 1px solid var(--qf-gold-bright) !important;
  color: var(--qf-gold-bright) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, .22) !important;
}


/* ---------- 8.6 首页顶部 Banner 与游客浮层：废除大面积浅金/浅黄 ---------- */
html body .hero-home {
  background-color: #10141F !important;
  background-image: linear-gradient(180deg, rgba(35, 44, 72, .92) 0%, #121728 48%, #0C0F1A 100%) !important;
  border-bottom: 1px solid transparent !important;
}
html body .hero-home::before {
  background: radial-gradient(ellipse at center bottom, rgba(197, 160, 89, .22) 0%, rgba(197, 160, 89, .06) 45%, transparent 72%) !important;
  opacity: .8 !important;
  pointer-events: none !important;
}
html body .hero-home::after {
  color: rgba(197, 160, 89, .055) !important;
  pointer-events: none !important;
}
html body .brand-logo {
  background-color: rgba(20, 25, 40, .92) !important;
  background-image: radial-gradient(circle at 40% 35%, rgba(197, 160, 89, .26) 0%, rgba(12, 15, 26, .92) 78%) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
html body .brand-name {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--qf-gold-bright) !important;
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 16px rgba(255, 215, 0, .35);
}
/* 游客注册提示条：只换配色，不改 position / z-index / onclick */
html body #__guest_tip_bar__ {
  background-color: rgba(18, 22, 36, .96) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
  box-shadow: none !important;
}
html body #__guest_tip_bar__ * { color: var(--qf-moon) !important; }
html body #__guest_tip_bar__ span[onclick*="goPage" i] {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
}
html body .p-home { background-color: var(--qf-ink) !important; background-image: none !important; }


/* ---------- 8.7 「我的」页白卡 / 详情页结算栏 / 动态浮层浅色兜底 ---------- */
html body .mine-menus,
html body .bd-mine,
html body .bd-gold,
html body .mine-card,
html body .mine-section,
html body [class*="mine-"][class*="menu"] {
  background-color: var(--qf-glass) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--qf-moon) !important;
}
html body .detail-bottom {
  background-color: rgba(16, 20, 32, .94) !important;
  background-image: none !important;
  border-top: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body .hero-glow {
  background: radial-gradient(circle, rgba(197, 160, 89, .12) 0%, transparent 70%) !important;
  background-image: radial-gradient(circle, rgba(197, 160, 89, .12) 0%, transparent 70%) !important;
  pointer-events: none !important;
}
/* 游客注册条：外层与所有子元素统一深墨（按钮由下方更高特异性规则单独还原暗金） */
html body #__guest_tip_bar__,
html body #__guest_tip_bar__ * {
  background-color: rgba(18, 22, 36, .96) !important;
  background-image: none !important;
  border-color: transparent !important;
  color: var(--qf-moon) !important;
}
html body #__guest_tip_bar__ span[onclick*="goPage" i][style*="background" i],
html body #__guest_tip_bar__ button {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
}
/* 内联浅色底兜底：覆盖动态生成的白底浮层；
   明确排除海报 / 二维码（必须白底可扫码）与商品图容器，不动 background-image 以免误删图片 */
html body [style*="background:#fff" i]:not([id="invitePoster" i]):not(button):not([role="button"]):not([id*="qr" i]):not([class*="qr" i]):not(.product-img):not(.detail-img),
html body [style*="background:#FFF8EC" i]:not([id="invitePoster" i]):not(button):not([role="button"]):not([id*="qr" i]):not([class*="qr" i]):not(.product-img):not(.detail-img),
html body [style*="background:#FFFBEE" i]:not([id="invitePoster" i]):not(button):not([role="button"]):not([id*="qr" i]):not([class*="qr" i]):not(.product-img):not(.detail-img) {
  background-color: var(--qf-glass) !important;
}
/* 说明：#invitePoster（邀请海报物料）、二维码白底、商品图占位均不在覆盖范围内，保持原样。 */

/* ---------- 8.8 最终收口：提示条文案 / 我的页头部 / 代理横幅 ---------- */
/* 文案 span 优先级高于按钮规则（同特异性、后写），确保整条为深墨底 */
html body #__guest_tip_bar__ span[style*="flex:1" i],
html body #__guest_tip_bar__ span[style*="font-size:12px" i]:not([style*="padding:6px" i]) {
  background-color: rgba(18, 22, 36, .96) !important;
  background-image: none !important;
  color: var(--qf-moon) !important;
  border-color: transparent !important;
}
/* 「我的」页头部：废除大面积金渐变，改深墨底 + 烫金字 */
html body .mine-header {
  background-color: #10141F !important;
  background-image: linear-gradient(180deg, rgba(35, 44, 72, .95) 0%, #10141F 72%, #0C0F1A 100%) !important;
  border-bottom: 1px solid transparent !important;
}
html body .mine-header::before { color: rgba(197, 160, 89, .07) !important; pointer-events: none !important; }
html body .mine-name,
html body .mine-info,
html body .mine-phone,
html body .mine-topbar,
html body .mine-back,
html body .mine-settings { color: var(--qf-gold-bright) !important; }
/* 城市代理申请横幅（默认隐藏、JS 控制显示）同样改为深墨底，避免条件触发时出现黄底 */
html body #applyAgentBannerWrap {
  background-color: rgba(20, 25, 40, .92) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-moon) !important;
}
html body #applyAgentBannerWrap div { color: var(--qf-moon) !important; }
/* ---------- 9. 兼容性与高危陷阱兜底 ---------- */
/* 所有装饰伪元素一律不拦截点击 */
html body::before,
html body::after,
html body [class*="glow"],
html body [class*="dust"],
html body [class*="decor"] {
  pointer-events: none !important;
}
/* 不因换肤缩小点击热区：只声明 min 值，不覆盖原有 padding */
html body button,
html body .tab-bar .tab-item,
html body [onclick] { min-height: 0; }
/* 暗色滚动条 */
html body ::-webkit-scrollbar { width: 6px; height: 6px; }
html body ::-webkit-scrollbar-track { background: rgba(12, 15, 26, .6); }
html body ::-webkit-scrollbar-thumb { background: rgba(197, 160, 89, .35); border-radius: 3px; }
/* 弱网/低版本浏览器无 backdrop-filter 时仍有实色底，保证文字可读 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html body .page [class*="card"],
  html body .reward-modal > div:last-child { background-color: #161B2A !important; }
}


/* ==========================================================================
 * 10. v2 深度优化（2026-11-13）：全站 45 页体检后的漏网收口
 * - 全部为 CSS 覆盖 / 滤镜，不重写模板、不增删 DOM、不触碰任何绑定属性
 * - 装饰层保持 pointer-events:none；不改 padding / height，点击热区原样
 * - 二维码、邀请海报内嵌 canvas 图、商品图、头像、底栏 PNG 图标均保留原样
 * ========================================================================== */

/* ---------- 10.1 内联浅色「简写渐变」穿透 ----------
 * 上一版只匹配 background:#fff / #FFF8EC 等纯色写法，遗漏了
 * background:linear-gradient(...) 与 background:#F4E8D8 / rgb(244,232,216)。
 * 这些正是 23/29/30/32/33/38/40/44 页仍是米黄底的根因。
 * 只作用于容器（排除 button），按钮由 10.2 单独按「暗金实心」处理。 */
html body .page [style*="background" i][style*="#FFF" i]:not(button):not([role="button"]):not([id*="qr" i]):not([class*="qr" i]):not(.product-img):not(.detail-img),
html body .page [style*="background" i][style*="#F4E8D8" i]:not(button),
html body .page [style*="background" i][style*="rgb(244, 232, 216)" i]:not(button),
html body .page [style*="background" i][style*="#E8D4B0" i]:not(button),
html body .page [style*="background" i][style*="#F5E6D3" i]:not(button),
html body .page [style*="background" i][style*="#FDF8F3" i]:not(button),
html body .page [style*="background" i][style*="#FFFBF0" i]:not(button),
html body .page [style*="background" i][style*="#FFF3DC" i]:not(button),
html body .page [style*="background" i][style*="#FFF5E0" i]:not(button),
html body .page [style*="background" i][style*="#FFE8B5" i]:not(button),
html body .page [style*="background" i][style*="#FFEBC4" i]:not(button) {
  background-color: var(--qf-glass) !important;
  background-image: none !important;
  color: var(--qf-moon) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* ---------- 10.2 内联浅色 / 高饱和渐变按钮 → 暗金实心 ----------
 * 废除黄/橙/红渐变；深墨字配暗金底，对比度高且点击热区不变。 */
html body button[style*="background" i][style*="#FFF" i],
html body button[style*="background" i][style*="#FFE" i],
html body button[style*="background" i][style*="#E85D3C" i],
html body button[style*="background" i][style*="#C2362B" i],
html body .page [onclick][style*="background" i][style*="#FFF" i][class*="btn" i]:not([class*="filter" i]):not([class*="segment" i]):not([class*="tab-btn" i]) {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* ---------- 10.3 启动闪屏：消除开场浅米色一闪 ---------- */
html body #splashScreen {
  background-color: #0C0F1A !important;
  background-image:
    radial-gradient(120% 80% at 50% 18%, rgba(35, 44, 72, .92) 0%, rgba(12, 15, 26, 0) 70%),
    linear-gradient(180deg, #0C0F1A 0%, #0E1220 60%, #0A0D17 100%) !important;
}
html body #splashScreen > div {
  background-color: #161B2A !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body #splashScreen * { color: var(--qf-gold-bright) !important; }

/* ---------- 10.4 心愿页头部：浅金底烫金字 → 深墨底烫金字；修右侧溢出 ---------- */
html body .wish-header {
  background-color: #10141F !important;
  background-image: linear-gradient(180deg, rgba(35, 44, 72, .95) 0%, #10141F 70%, #0C0F1A 100%) !important;
  border-bottom: 1px solid transparent !important;
}
html body .wish-header::before { color: rgba(197, 160, 89, .06) !important; pointer-events: none !important; }
html body .wish-title {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 18px rgba(255, 215, 0, .30) !important;
  letter-spacing: 4px !important;
}
html body .wish-sub {
  color: var(--qf-moon-dim) !important;
  white-space: normal !important;
  font-size: 16px !important;
  letter-spacing: 1px !important;
  line-height: 1.5 !important;
}

/* ---------- 10.5 「我的」页菩提卡片：深棕字 → 月白 / 亮金 ----------
 * .bd-gold 原为浅金拉丝底 + 深棕字；底已改深玻璃，文字必须同步反色。 */
html body .bd-gold {
  background-image: linear-gradient(180deg, rgba(197, 160, 89, .07), rgba(12, 15, 26, 0)) !important;
}
html body .bd-gold::before {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0), rgba(197, 160, 89, .10), rgba(197, 160, 89, 0)) !important;
}
html body .bd-gold-title,
html body .bd-gold-rule,
html body .bd-gold-label,
html body .bd-mine-title,
html body .bd-mine-name,
html body .bd-mine-sub,
html body .bd-mine-detail,
html body .admin-item-label {
  color: var(--qf-moon) !important;
  text-shadow: none !important;
  border-color: transparent !important;
}
html body .bd-gold-num,
html body .bd-mine-qty,
html body .bd-mine-price {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, .22) !important;
}
html body .bd-gold-div {
  background: linear-gradient(180deg, transparent, var(--qf-stroke), transparent) !important;
}

/* ---------- 10.6 变量语义反转 / 状态标签修正 ----------
 * 原样式把 --card-bg（近白）当反色文字，改深色后这些类变成「深字配深底」。 */
html body .pay-decimal,
html body .order-detail-status,
html body .msg-tab.active,
html body .admin-item-label { color: var(--qf-gold-bright) !important; }
html body .msg-tab.active {
  background-color: rgba(197, 160, 89, .16) !important;
  background-image: none !important;
  border-color: var(--qf-gold-bright) !important;
}
html body .page [style*="color:#5A3A05" i],
html body .page [style*="color:#4A3208" i],
html body .page [style*="color:#8B1518" i],
html body .page [style*="color:#651213" i],
html body .page [style*="color:#8B5A00" i] { color: var(--qf-moon) !important; }

/* ---------- 10.7 会员置换页：紫色渐变 → 墨蓝金（页面内 #page-16 高特异性） ---------- */
html body #page-16 .member-page-header,
html body #page-16 .member-hero {
  background-color: #10141F !important;
  background-image: linear-gradient(160deg, rgba(35, 44, 72, .95) 0%, #10141F 55%, #0C0F1A 100%) !important;
  border: 1px solid transparent !important;
}
html body #page-16 .member-hero::before { color: rgba(197, 160, 89, .06) !important; pointer-events: none !important; }
html body #page-16 .request-avatar {
  background-color: #1B2238 !important;
  background-image: linear-gradient(135deg, #243050, #5C4A22) !important;
}
html body #page-16 .request-btn {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
}
html body #page-16 .request-btn.done {
  background-color: rgba(197, 160, 89, .08) !important;
  background-image: none !important;
  color: var(--qf-moon-dim) !important;
}

/* ---------- 10.8 邀请海报页：外壳暗夜化，二维码保持黑白可扫 ---------- */
html body #inviteSharePageScroll { background-color: #0C0F1A !important; }
html body #invitePoster {
  background-color: #0C0F1A !important;
  background-image:
    radial-gradient(80% 46% at 50% 0%, rgba(194, 59, 34, .24) 0%, rgba(12, 15, 26, 0) 72%),
    linear-gradient(180deg, #1A1016 0%, #10141F 55%, #0C0F1A 100%) !important;
  border-bottom: 1px solid transparent !important;
}
html body #invitePoster h1 {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 18px rgba(255, 215, 0, .28) !important;
}
html body #invitePoster [style*="color:#8B1518" i],
html body #invitePoster [style*="color:#651213" i] { color: var(--qf-cinnabar-lit) !important; }
html body #invitePoster [style*="color:#FFE8AE" i] { color: var(--qf-gold-bright) !important; }
/* 二维码由 canvas.toDataURL 生成，自带白底；明确免滤镜，保证可扫码 */
html body #inviteQrCode img,
html body #inviteQrCode canvas { filter: none !important; }html body .tab-bar img,
html body #inviteQrCode img,
html body [class*="qrcode"] img,
html body [class*="qr-code"] img,
html body [class*="avatar"] img,
html body .brand-logo img,
html body .product-img img,
html body .detail-img img,
html body #invitePoster canvas { filter: none !important; }

/* ---------- 10.10 质感细节：分割线 / 标签 / 卡片高光 / 空态 ---------- */
html body .page hr,
html body .page [class*="divider"],
html body .page [class*="separator"] {
  border-color: transparent !important;
  background-color: rgba(197, 160, 89, .10) !important;
}
html body .page [class*="tag"]:not([class*="price"]),
html body .page [class*="badge"]:not([class*="price"]),
html body .page [class*="pill"] {
  background-color: rgba(20, 25, 40, .90) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--qf-gold-bright) !important;
}
html body .page [class*="empty"] svg,
html body .page [class*="empty-icon"] {
  color: var(--qf-gold) !important;
  opacity: .78 !important;
}
html body .page [class*="card"]:not(button) {
  box-shadow: none !important;
}
html body .page [class*="glow"],
html body .page [class*="dust"],
html body .page [class*="decor"] { pointer-events: none !important; }


/* ==========================================================================
 * 11. v3 收口（2026-11-13）：第三轮实测残留
 * ========================================================================== */

/* ---------- 11.1 rgb() 写法的浅色渐变（page-29 / 30 的 scroll-area） ----------
 * 浏览器把部分内联 background 序列化成 rgb()，v2 的 hex 选择器漏掉了。
 * 只匹配米黄系完整三元组，绝不误伤白色文字 rgb(255,255,255)。 */
html body .page [style*="background" i][style*="linear-gradient(rgb(255" i]:not(button),
html body .page [style*="background" i][style*="linear-gradient(135deg,rgb(255" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 251, 238)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 232, 181)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 248, 236)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 253, 246)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 245, 224)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 235, 196)" i]:not(button),
html body .page [style*="background" i][style*="rgb(255, 243, 220)" i]:not(button),
html body .page [style*="background" i][style*="rgb(253, 248, 243)" i]:not(button),
html body .page [style*="background" i][style*="rgb(245, 230, 211)" i]:not(button) {
  background-color: var(--qf-ink) !important;
  background-image: none !important;
  color: var(--qf-moon) !important;
  border-color: transparent !important;
}
/* 页面级滚动容器统一深墨底，避免任何写法差异造成的整屏浅色 */
html body .page .scroll-area[style*="background" i][style*="linear-gradient" i] {
  background-color: var(--qf-ink) !important;
  background-image: none !important;
}

/* ---------- 11.2 筛选 / 分段按钮：次操作透明金边，选中态暗金实心 + 金光晕 ----------
 * 只按 class 与 active 态区分，不触碰 onclick 与组件自身的选中逻辑。 */
html body .page button[onclick][style][class*="filter-btn" i],
html body .page button[onclick][style][class*="segment-btn" i],
html body .page button[onclick][style][class*="tab-btn" i] {
  background-color: rgba(197, 160, 89, .07) !important;
  background-image: none !important;
  color: var(--qf-moon) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
html body .page button[onclick][style][class*="filter-btn" i].active,
html body .page button[onclick][style][class*="segment-btn" i].active,
html body .page button[onclick][style][class*="tab-btn" i].active,
html body .page [onclick][style][class*="filter-btn" i][class*="selected"] {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid var(--qf-gold-bright) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, .25) !important;
}

/* ---------- 11.3 会员置换页：容器与列表卡片彻底去紫 ---------- */
html body #page-16 .p-member,
html body #page-16 .member-page {
  background-color: var(--qf-ink) !important;
  background-image: radial-gradient(120% 80% at 50% -10%, rgba(35, 44, 72, .60) 0%, rgba(12, 15, 26, 0) 72%) !important;
}
html body #page-16 .request-card {
  background-color: var(--qf-glass) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
html body #page-16 .request-avatar {
  background-color: #1B2238 !important;
  background-image: linear-gradient(135deg, #243050, #5C4A22) !important;
}
/* 自动滚动列表：顶/底渐隐，消除首行被硬切的观感（不改动画与结构） */
html body #page-16 .request-list-container {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

/* ---------- 11.4 状态栏（隐藏元素）文字兜底，避免任何条件下出现深字配深底 ---------- */
html body .status-bar,
html body .status-bar * { color: var(--qf-moon-dim) !important; }

/* ---------- 11.5 邀请海报：金色光晕装饰保留但压低亮度，与暗夜底更协调 ---------- */
html body #invitePoster [style*="rgba(255, 238, 180" i],
html body #invitePoster [style*="rgba(255, 232, 160" i],
html body #invitePoster [style*="rgba(255, 248, 222" i] {
  opacity: .30 !important;
  pointer-events: none !important;
}
html body #invitePoster [style*="background:rgba(255, 239, 188" i] {
  background-color: rgba(197, 160, 89, .12) !important;
  border-color: transparent !important;
  color: var(--qf-gold-bright) !important;
}


/* ==========================================================================
 * 12. v4 最后一公里（2026-11-13）
 * ========================================================================== */

/* 12.1 物流时间轴圆点：已完成=暗金实心+深墨点，未完成=金边空心+淡点 */
html body .timeline-item:first-child .timeline-dot {
  background-color: var(--qf-gold) !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
}
html body .timeline-item:not(:first-child) .timeline-dot {
  background-color: rgba(197, 160, 89, .14) !important;
  color: var(--qf-moon-dim) !important;
  border: 1px solid transparent !important;
}

/* 12.2 邀请页：浅金胶囊与亮金卡片外框 → 暗金（兼容有/无空格两种内联写法） */
html body #invitePoster [style*="background:rgba(255,239,188" i],
html body #invitePoster [style*="background:rgba(255, 239, 188" i],
html body #invitePoster [style*="background: rgba(255, 239, 188" i] {
  background-color: rgba(197, 160, 89, .12) !important;
  border-color: transparent !important;
  color: var(--qf-gold-bright) !important;
}
html body #invitePoster [style*="rgba(255,238,180" i],
html body #invitePoster [style*="rgba(255, 238, 180" i] {
  background-image: linear-gradient(145deg, var(--qf-gold), rgba(197, 160, 89, .38), var(--qf-gold)) !important;
}

/* 12.3 海报内所有绝对定位装饰层一律不拦截点击、不产生横向溢出观感 */
html body #invitePoster > div[style*="position:absolute" i] {
  pointer-events: none !important;
  max-width: 100% !important;
}


/* ==========================================================================
 * 13. 简约化收口（theme11 / 2026-11-13）
 * 目标：撤销所有装饰性描边、磨砂模糊、图标单色化与持续动画，
 *       让商城图标保持原始图形与颜色，页面留白更干净。
 * 手法：逐条规则把 border 颜色改透明（保留 1px 几何，不改点击热区），
 *       删除 backdrop-filter / grayscale / 全屏动画；不使用 * 通配选择器。
 * ========================================================================== */
/* 13.1 少数高频「方框」容器：连阴影一起收掉，视觉上完全无框 */
html body .menu-item,
html body .menu-icon,
html body .game-card,
html body .game-card .icon,
html body .wish-cat-card,
html body .brand-logo,
html body .wallet-col,
html body .admin-item,
html body .nav-btn {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 13.2 输入框 / 搜索框：只留半透明深底，去掉金线与内阴影 */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body textarea,
html body select,
html body .input-field,
html body .form-input {
  border-color: transparent !important;
  box-shadow: none !important;
}
html body input:focus, html body textarea:focus, html body select:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 13.3 图标：撤销一切主题层滤镜，回到站点原始 PNG / Emoji 配色 */
html body .wish-cat-icon img,
html body [class*="cat-icon"] img,
html body [class*="game-icon"] img,
html body [class*="stat-icon"] img,
html body [class*="func-icon"] img,
html body [class*="feature-icon"] img,
html body .game-card .icon img,
html body .menu-icon img,
html body .brand-logo img {
  /* 不覆盖 filter：单色化规则已整体删除，由原 main.css 决定（含原有 drop-shadow） */
  opacity: 1 !important;
}
/* 13.4 列表分隔线：去掉细金线，靠间距区分条目 */
html body .page hr,
html body .page [class*="divider"],
html body .page [class*="separator"],
html body .record-item,
html body [class*="record-item"],
html body [class*="list-item"] {
  border-color: transparent !important;
}
/* 13.5 选中态保留：只保留亮金细边，不加方框感 */
html body .recharge-amount-btn.active,
html body .xibei-recharge-pay-btn.active,
html body [class*="amount-btn"].active,
html body [class*="tier"].active,
html body .three-cat.active,
html body .sub-tab.active,
html body .wish-cat-card.selected,
html body .msg-tab.active,
html body [class*="filter-btn"].active,
html body [class*="segment-btn"].active {
  border-color: var(--qf-gold-bright) !important;
}

/* 13.6 原站浅金细边在深底上显得杂乱：按明确类名统一收口（不用通配符，避免样式重算变慢） */
html body .search-box,
html body .three-cats,
html body .three-cat,
html body .cat-section-title,
html body .order-ticker-avatar,
html body .order-ticker,
html body .product-wish,
html body .rec-section-wrap,
html body .brand-logo,
html body .brand-area,
html body .hero-home,
html body .product-card,
html body .wish-cat-card,
html body .wallet-card,
html body .wallet-triple,
html body .wallet-col,
html body .wallet-btns,
html body .mine-menus,
html body .menu-item,
html body .menu-icon,
html body .admin-item,
html body .admin-item-icon,
html body .quick-entry,
html body .game-plaza-card,
html body .mine-back,
html body .mine-settings,
html body .mine-topbar,
html body .mine-actions,
html body .mine-card,
html body .mine-header,
html body .page-footer,
html body #applyAgentBannerWrap,
html body #__guest_tip_bar__,
html body .tag,
html body .badge {
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 13.7 小格子融入背景，去掉「一格一个框」的观感；选中态不受影响 */
html body .menu-item:not(.active):not(.selected),
html body .menu-icon:not(.active):not(.selected),
html body .admin-item:not(.active):not(.selected),
html body .wish-cat-card:not(.active):not(.selected),
html body .game-card:not(.active):not(.selected),
html body .game-card .icon:not(.active):not(.selected),
html body .wallet-col:not(.active):not(.selected),
html body .mine-menus:not(.active):not(.selected),
html body .wish-cat-icon {
  background-color: transparent !important;
  background-image: none !important;
}

/* 13.8 性能与简约：撤掉全屏微尘合成层，背景改为单一柔和竖向渐变 */
html body::before { display: none !important; }
html,
html body,
html body .page,
html body .page.active,
html body .page.admin-active {
  background-image: linear-gradient(180deg, #10141F 0%, #0C0F1A 46%, #090C15 100%) !important;
}

/* 13.9 首页 / 我的页深度去框：格子融入背景，只留内容与间距。
   用 #page-N 的 ID 前缀压过主题层早期的高特异性属性选择器，不再叠加通配符。 */
html body #page-1 .wish-cat-card:not(.active):not(.selected),
html body #page-1 .wish-cat-icon,
html body #page-1 .wish-cat-row,
html body #page-1 .three-cats,
html body #page-1 .three-cat:not(.active),
html body #page-1 .cat-section-title,
html body #page-1 .product-wish,
html body #page-1 .rec-section-wrap,
html body #page-1 .brand-logo,
html body #page-1 .brand-area,
html body #page-1 .hero-home,
html body #page-1 .order-ticker-avatar,
html body #page-6 .mine-card,
html body #page-6 .mine-header {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 需要一点边界的元素：仅保留柔和深底，去掉全部金线与光晕 */
html body #page-1 .search-box,
html body #page-1 .order-ticker,
html body #page-1 .wish-badge,
html body #__guest_tip_bar__ {
  background-color: rgba(22, 27, 42, .55) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
/* 顶部「我的」金色胶囊线框 → 无框亮金文字 */
html body #page-1 span[onclick][style*="border" i] {
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--qf-gold-bright) !important;
}

/* 13.10 「我的」页功能图标去框：订单四格 / 右上设置·二维码·消息，
   这些元素原本被高特异性属性选择器刷上了淡金底，形成一格一个方框的观感。
   只改背景与描边，不改尺寸、定位与 onclick 热区。 */
html body #page-6 .menu-item,
html body #page-6 .menu-icon,
html body #page-6 .menu-icons,
html body #page-6 .mine-notification,
html body #page-6 .mine-qr,
html body #page-6 .mine-settings,
html body #page-6 .mine-settings--top,
html body #page-6 .mine-actions,
html body #page-6 .mine-topbar {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 13.11 兑换专区顶部：废除大面积金棕渐变，改深墨底 + 烫金字（无描边） */
html body .zone-header {
  background-color: #10141F !important;
  background-image: linear-gradient(180deg, rgba(35, 44, 72, .92) 0%, #0C0F1A 100%) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body .zone-title { color: var(--qf-gold-bright) !important; }
html body .zone-sub   { color: var(--qf-moon-dim) !important; }
html body .zone-close {
  background-color: rgba(22, 27, 42, .6) !important;
  color: var(--qf-moon) !important;
  border-color: transparent !important;
}

/* ==========================================================================
 * 14. 第 29 轮精修 / 2026-11-13
 *   14.1 去除品牌行浅金色块 + 虚线圈（用户图1）：logo 原图形与原色保持不变
 *   14.2 「我的」胶囊反色（用户图2）：金底 → 深墨字，消除金底金字
 *   14.3 商品图铺满预览框（用户图3/4/5）：cover + 去浅米底/内高光框
 *   14.4 模块级色框（用户图6）：仅「我的」页大模块，小元素仍无框
 *   14.5 会员置换中心改版（用户图7→图8）：布局由 qf-yinbing.js 渲染层注入
 * 严格约束：只改 CSS 视觉，不删改任何 DOM 节点、onclick / id / 双向绑定。
 * ========================================================================== */

/* ---------- 14.1 品牌行：去掉 logo 外层浅金矩形色块与虚线圆 ---------- */
html body .brand-row > div[onclick][role="button"],
html body .brand-row > div:first-child {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body .brand-logo {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body .brand-logo::before { display: none !important; }  /* 虚线圆 */
/* logo 图片本身维持原始图形与颜色（第 28 轮要求），不做任何滤镜 */
html body .brand-logo img { filter: none !important; opacity: 1 !important; }
/* 14.1b 品牌行背后那个「卍 卍 卍」回纹矩形色框（用户图1 真正指的对象）：
   它来自 .hero-home::before 的装饰文字 + 主题层叠加的光晕，并非 .brand-logo。
   连同 ::after 的烟雾装饰一起关闭；.hero-glow 柔光保留，不影响氛围。 */
html body #page-1 .hero-home::before,
html body #page-1 .hero-home::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ---------- 14.2 「我的」胶囊：金底配深墨字（相反色，可读） ---------- */
html body #page-1 .brand-row span[onclick="goPage(6)"],
html body #page-1 span[onclick="goPage(6)"][style*="border" i],
html body #page-16 button.back-btn[onclick="goPage(6)"] {
  color: #2A1A00 !important;
  -webkit-text-fill-color: #2A1A00 !important;
  text-shadow: none !important;
  background-image: linear-gradient(135deg, #FFE9A8 0%, #F3CF6B 48%, #E6B93D 100%) !important;
  border: 1px solid transparent !important;
}
/* 其它「亮金实底」按钮同样反色，避免同色字底（不改热区与绑定） */
html body .page [style*="background:#FFD700" i][style*="color" i]:not(.qf-vip-open),
html body .page [style*="background:linear-gradient(135deg,#FFE9A8" i][style*="color" i] {
  color: #241600 !important;
  -webkit-text-fill-color: #241600 !important;
  text-shadow: none !important;
}

/* ---------- 14.3 商品图 / 详情图：铺满预览框 ---------- */
html body .product-img {
  background-color: #10141F !important;
  background-image: none !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  overflow: hidden !important;
}
html body .product-img::before,
html body .product-img::after { display: none !important; }
html body .product-img img,
html body .exchange-card .product-img img,
html body .detail-recommend-grid .product-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
html body .detail-img {
  background-color: #10141F !important;
  background-image: none !important;
}
html body .detail-img::before,
html body .detail-img::after { display: none !important; }
html body .detail-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent !important;
}
html body .detail-icon,
html body .detail-icon-fallback {
  outline: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ---------- 14.4 模块间色框：仅「我的」页大模块，小元素保持无框 ---------- */
html body #page-6 .mine-menus,
html body #page-6 .wallet-card {
  background-color: rgba(22, 27, 42, .72) !important;
  background-image: none !important;
  border: 1px solid rgba(197, 160, 89, .26) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(197, 160, 89, .07) !important;
}
/* 模块内部小格子 / 图标 / 按钮继续维持第 28 轮「无框」成果 */
html body #page-6 .menu-item,
html body #page-6 .menu-icon,
html body #page-6 .menu-icons,
html body #page-6 .admin-item,
html body #page-6 .game-card,
html body #page-6 .wish-cat-card {
  border-color: transparent !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* ---------- 14.5 会员置换中心（新版，对应图8） ---------- */
html body #page-6 .bd-mine {
  background-color: rgba(18, 23, 38, .78) !important;
  border: 1px solid rgba(197, 160, 89, .28) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22) !important;
}
html body #page-6 .bd-gold {
  position: relative !important;
  overflow: visible !important;
  padding: 16px 16px 14px !important;
  min-height: 138px !important;
  border: 1px solid rgba(197, 160, 89, .42) !important;
  border-radius: 14px !important;
  background-color: #101827 !important;
  background-image: linear-gradient(135deg, rgba(35, 48, 82, .85) 0%, #101827 52%, #0C0F1A 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(197, 160, 89, .12) !important;
}
html body #page-6 .bd-gold::before { display: none !important; }
/* 右侧回纹装饰（纯视觉，pointer-events:none 不影响点击） */
html body #page-6 .qf-vip-deco {
  position: absolute !important;
  right: 14px !important;
  bottom: 8px !important;
  width: 74px !important;
  height: 74px !important;
  border: 1px solid rgba(197, 160, 89, .10) !important;
  border-radius: 4px !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    linear-gradient(90deg, transparent 48%, rgba(197,160,89,.07) 48%, rgba(197,160,89,.07) 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(197,160,89,.07) 48%, rgba(197,160,89,.07) 52%, transparent 52%) !important;
}
html body #page-6 .bd-gold-top {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
html body #page-6 .bd-gold-title {
  font-family: STSong, SimSun, STKaiti, KaiTi, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, .22) !important;
}
html body #page-6 .bd-gold-rule {
  font-size: 12px !important;
  color: var(--qf-gold-bright) !important;
  border-bottom: 1px solid rgba(255, 215, 0, .65) !important;
  padding-bottom: 1px !important;
  text-shadow: none !important;
}
html body #page-6 .qf-vip-sub {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  color: rgba(197, 160, 89, .88) !important;
  font-family: STKaiti, KaiTi, STSong, SimSun, serif !important;
}
html body #page-6 .qf-vip-open {
  position: absolute !important;
  top: 44px !important;
  right: 16px !important;
  z-index: 2 !important;
  padding: 9px 20px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(197, 160, 89, .75) !important;
  background: rgba(12, 15, 26, .82) !important;
  color: #F2E9D8 !important;
  -webkit-text-fill-color: #F2E9D8 !important;
  font-family: STKaiti, KaiTi, STSong, SimSun, serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35) !important;
  white-space: nowrap !important;
}
html body #page-6 .qf-vip-open:active { transform: scale(.96); }
html body #page-6 .bd-gold-stats {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 16px !important;
  max-width: 72% !important;
}
html body #page-6 .bd-gold-num {
  font-size: 25px !important;
  line-height: 1.15 !important;
  color: var(--qf-gold-bright) !important;
}
html body #page-6 .bd-gold-label {
  color: rgba(242, 233, 216, .78) !important;
  font-size: 11px !important;
}
html body #page-6 .bd-gold-div {
  background: linear-gradient(180deg, transparent, rgba(197, 160, 89, .32), transparent) !important;
}

/* ---------- 14.6 阴兵头像补位：去小金框、覆盖层铺满圆形 ---------- */
/* 只作用于求购名单的头像盒子；模块级大卡片色框见 14.4，二者互不冲突 */
html body #page-6 .bd-mine-avatar,
html body .request-avatar {
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
  background-color: rgba(28, 34, 52, .85) !important;
}
html body .qf-av-yb {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: none !important;
  border-radius: 50% !important;
  display: block !important;
  z-index: 1 !important;
}

/* ---------- 14.7 细节收口 ---------- */
/* 副标题是块级元素，默认宽度会横穿右侧「开通会员」按钮，收窄并让出点击热区 */
html body #page-6 .qf-vip-sub {
  max-width: 58% !important;
  pointer-events: none !important;
}

/* ---------- 14.8 详情页底部操作栏按钮：暗夜鎏金下保持清晰可见 ----------
 * 根因：通用按钮规则 `html body .page [onclick][class*="btn"]`(特异性 0,0,4,2)
 * 覆盖了「buy/confirm 等=暗金实心」规则，并强制 background-image:none +
 * background-color:rgba(197,160,89,.07)，把按钮内联渐变抹成近乎透明，
 * 在深色底上等同「消失」。下面用更高特异性（带 #page-2 id）还原清晰样式，
 * 不改任何模板/绑定/热区。 */
html body #page-2 .detail-bottom {
  /* 详情页自带底部操作栏(加入心愿清单/立即请宝/立即兑换)。
     布局上 .p-detail 为 flex 列、.scroll-area flex:1 内部滚动、.detail-bottom flex-shrink:0，
     操作栏天然钉在视口底部；全局 TabBar 已在 page-2 通过 hideGlobalTabBar 隐藏，不会遮挡。
     故此处只做暗色主题适配(深底+安全区高度+阴影)，不再用 position:fixed——
     position:fixed 在存在 transformed 祖先时会被“收纳”到该祖先坐标系内而移出视口，
     反而导致按钮“消失”。page-2.html 已把 #detailBottomNormal 默认 display:flex，
     JS(renderDetailPage) 仅在兑换/开光模式改写，常规商品必现按钮。 */
  z-index: 2147483001 !important;
  min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
  background-color: #161A28 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .45) !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
}
html body #page-2 .detail-bottom button {
  background-image: none !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important;
}
/* 立即请宝 / 马上开光：朱砂红实心 + 白字（保留原语义色） */
html body #page-2 .detail-bottom .detail-buy-btn {
  background-color: #C23B22 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
/* 加入心愿清单：暗金描边 + 月白字 */
html body #page-2 .detail-bottom .detail-cart-btn {
  background-color: transparent !important;
  border: 1.5px solid rgba(197, 160, 89, .9) !important;
  color: #F2E9D8 !important;
  -webkit-text-fill-color: #F2E9D8 !important;
}
/* 立即兑换：暗金实心 + 深墨字 */
html body #page-2 .detail-bottom .detail-chat-btn {
  background-color: #C5A059 !important;
  color: #1A1208 !important;
  -webkit-text-fill-color: #1A1208 !important;
}

/* ---------- 14.9 「我的」页·后台管理模块：暗夜鎏金下与页面统一、文字清晰 ----------
 * 原 main.css 用白底(#fff)+棕字(#8B5A2B)，在暗色页面上既"背景不统一"又对比偏弱。
 * 这里统一为与全站一致的磨砂深玻璃底 + 月白字，纯 CSS，不动任何模板/绑定。 */
html body .admin-module {
  background-color: var(--qf-glass) !important;
  border-color: rgba(197, 160, 89, .28) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .28) !important;
}
html body .admin-label {
  color: var(--qf-moon) !important;
}
html body .admin-item {
  background-color: rgba(197, 160, 89, .08) !important;
  border-color: rgba(197, 160, 89, .28) !important;
  color: var(--qf-moon) !important;
}
html body .admin-item-label {
  color: var(--qf-moon) !important;
}
html body .admin-item:active {
  background-color: rgba(197, 160, 89, .16) !important;
}

/* ---------- 14.10 会员开通弹窗 & 设置列表：强制浅底深字，确保文字可读 ----------
 * 会员弹窗(.member-intro-card)正文内联色本为深棕(#4A3728)应可读，但主题覆盖层可能把
 * 其中部分文本压成浅色；此处用高特异性 !important 兜底，保证“浅底深字”。
 * 设置列表标题统一为月白，避免个别项出现黄/金等低对比色。 */
html body .member-intro-card {
  background: linear-gradient(180deg, #FFFBEE 0%, #FFF8EC 100%) !important;
}
html body .member-intro-benefits,
html body .member-intro-benefits *,
html body .member-intro-footer,
html body .member-intro-footer *,
html body .member-intro-protocol,
html body .member-intro-protocol * {
  color: #3A2E1E !important;
}
html body .member-intro-benefits-title,
html body .member-intro-price-value,
html body .member-intro-price-label,
html body .member-intro-price-unit,
html body .member-intro-price-original,
html body .member-intro-protocol-link {
  color: #8B5A2B !important;
}
html body .settings-name {
  color: var(--qf-moon) !important;
}

/* ---------- 14.11 详情页(page-2)：隐藏全局底栏，露出页面自带底部操作栏 ----------
 * 现象：商品详情 / 兑换详情底部【加入心愿清单】【立即请宝/兑换】"消失"。
 * 根因（已在真机浏览器用 elementFromPoint 验证）：全局底栏 .tab-bar 为 position:fixed、
 * z-index:2147483000，恰好盖在 .detail-bottom 之上；而 .page 使用 content-visibility:auto
 * 会形成层叠上下文，单纯给操作栏抬 z-index 无法越过底栏。
 * 故在 page-2 直接隐藏全局底栏（离开 page-2 自动恢复），纯视觉，不动路由/绑定/热区。 */
/* R34: 确认订单(page-4)/支付(page-11) 底部自带「提交订单 / 确认支付」按钮，
   同样被固定底栏遮挡（实测按钮 777-827 被 tab-bar 777-844 / z 2147483000 盖住），一并隐藏。 */
html body:has(#page-2.active) .tab-bar,
html body:has(#page-4.active) .tab-bar,
html body:has(#page-11.active) .tab-bar {
  display: none !important;
}

/* ---------- 14.12 会员置换中心卡片：去掉右上角「卍」图纹水印 ----------
 * .member-hero::before 是 content:"卍" 的大号水印(120px)，在暗色卡片上呈金色网格状图纹，
 * 用户要求移除。首页(page-1) 与会员置换页(page-16) 共用 .member-hero，一并关闭。 */
html body .member-hero::before {
  content: none !important;
  display: none !important;
}

/* page-16：标题行禁止「菩提获取规则」换行、字号收紧，
   使【开通会员】与【菩提获取规则】处于同一水平高度（同行居中，且互不重叠）。 */
html body #page-16 .member-hero-title {
  white-space: nowrap !important;
  font-size: 19px !important;
  letter-spacing: 1px !important;
}
html body #page-16 .member-hero-title a {
  font-size: 11px !important;
  margin-left: 6px !important;
  white-space: nowrap !important;
}
html body #page-16 .member-hero .home-member-open-btn,
html body #page-16 .member-hero .home-member-earn-btn {
  padding: 6px 11px !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}

/* ---------- 14.13 确认订单 / 支付页主按钮：恢复「暗金实心」高对比 ----------
 * 根因：早期 9.x 的通用规则 `html body .page button[class*="btn"]`(0,2,3) 特异性高于
 * 「主操作按钮暗金实心」那条 `html body button[onclick*="submit" i]`(0,1,2)，
 * 于是 class 里带 btn 的【提交订单】/【确认支付】被刷成近乎透明的 .07 底，
 * 在深色页面上看起来像“灰掉/不可点”。这里用同等特异性 + 更靠后的位置把它扶正。 */
/* 注意：必须带 id 才压得住 9.x 那条
   `html body .page [class*="btn-"]:not(...):not(...)`(0,4,2) 的 !important 泛化规则。 */
html body #page-4 .btn-pay,
html body #page-11 .pay-btn,
html body #page-11 #payBtn {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(197, 160, 89, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

/* ==========================================================================
 * 15. R35 修复（2026-11-13 21:xx）
 * --------------------------------------------------------------------------
 * 15.1 支付成功底部弹窗整块发暗看不清
 * 15.2 「请在新窗口完成支付」提示条深字配白底 → 变成浅金不可见
 * 15.3 底部弹窗主/次按钮被通用 button 规则刷成透明，看不出是按钮
 * 15.4 请宝成功弹窗头像与昵称粘连，看起来像昵称多了个「三」
 * 15.5 会员置换中心：【开通会员】上移到与【菩提获取规则】同一水平线，并去掉回纹装饰
 * ========================================================================== */

/* ---------- 15.1 底部弹窗层级：遮罩必须在卡片之下 ----------
 * 根因：main.css 里 .bottom-sheet-mask 是 2147483646、.bottom-sheet-modal 是 2147483647；
 * 本主题第 8 段把 .bottom-sheet-modal 统一改成 2147483100（为了压住 TabBar），
 * 结果遮罩(80% 黑)盖在卡片上，整块弹窗被压暗 —— 用户看到的就是「文字看不清」。
 * 这里把遮罩降到卡片之下，同时两者仍然高于 TabBar(2147483000)。 */
html body .bottom-sheet-mask {
  z-index: 2147483090 !important;
}
html body .bottom-sheet-modal {
  z-index: 2147483100 !important;
  /* 面板本身还是旧的紫色渐变（只有内层 .bottom-sheet-content 被换成了暗玻璃），
     弹窗顶部会露出一条紫色。这里统一成暗夜墨蓝，和主题一致。 */
  background-color: #101827 !important;
  background-image: linear-gradient(180deg, #16203A 0%, #0C0F1A 100%) !important;
  border-top: 1px solid rgba(197, 160, 89, .35) !important;
}
/* 标题保持亮金实色，避免 background-clip:text 在暗玻璃上发糊 */
html body .bottom-sheet-title {
  background-image: linear-gradient(135deg, #FFE066 0%, #E0A94B 100%) !important;
}
html body .bottom-sheet-desc {
  color: rgba(242, 233, 216, .92) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}
html body .bottom-sheet-feature,
html body .bottom-sheet-feature span {
  color: rgba(255, 215, 0, .88) !important;
}
html body .bottom-sheet-feature-icon {
  background-color: rgba(197, 160, 89, .14) !important;
  border: 1px solid rgba(197, 160, 89, .42) !important;
}

/* ---------- 15.3 底部弹窗按钮：主=暗金实心，次=金边透明 ---------- */
html body .bottom-sheet-btn.primary {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(197, 160, 89, .30), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
html body .bottom-sheet-btn.secondary {
  background-color: rgba(197, 160, 89, .08) !important;
  background-image: none !important;
  color: var(--qf-gold-bright) !important;
  border: 1px solid rgba(197, 160, 89, .55) !important;
  box-shadow: none !important;
}

/* ---------- 15.2 「请在新窗口完成支付」提示条（#mallPayResultTip） ----------
 * 该条是白底卡片 + 内联 color:#333，被主题第 4 段「内联深色穿透」刷成了浅金，
 * 白底浅金字等于看不见。这里用 id 级选择器还原：白底 + 深字 + 暗金按钮。 */
html body #mallPayResultTip {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(197, 160, 89, .45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28) !important;
  /* 定位于 left:50%，可用宽度只有半屏，默认会折成三行；这里强制单行并限宽 */
  white-space: nowrap !important;
  max-width: calc(100vw - 24px) !important;
}
html body #mallPayResultTip span {
  color: #2A2117 !important;
  font-weight: 600 !important;
  letter-spacing: .5px;
  white-space: nowrap !important;
}
html body #mallPayResultTip #mallPayCheckBtn {
  background-color: var(--qf-gold) !important;
  background-image: none !important;
  color: #0C0F1A !important;
  font-weight: 700 !important;
  border: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(197, 160, 89, .35) !important;
}
html body #mallPayResultTip #mallPayCancelTipBtn {
  background-color: transparent !important;
  background-image: none !important;
  color: #8A7A5E !important;
}

/* ---------- 15.4 请宝成功弹窗：头像徽章可辨，昵称不再像「三 三才」 ----------
 * 头像原来的金色渐变被「弹窗内部 div 背景统一压平」规则抹掉，只剩一个悬浮的「三」，
 * 紧挨昵称「三才」就变成了「三 三才」。这里把头像恢复成金底深字的小圆牌。 */
html body #orderSuccessModal #orderSuccessUserAvatar,
html body #exchangeSuccessModal [id*="UserAvatar"] {
  background-color: #D9B26A !important;
  background-image: linear-gradient(135deg, #F0D79C 0%, #C5A059 100%) !important;
  color: #0C0F1A !important;
  -webkit-text-fill-color: #0C0F1A !important;
  border: 1px solid rgba(255, 215, 0, .55) !important;
  box-shadow: 0 0 0 1px rgba(12, 15, 26, .55), 0 2px 6px rgba(0, 0, 0, .35) !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}
html body #orderSuccessModal #orderSuccessUserName,
html body #exchangeSuccessModal [id*="UserName"] {
  color: var(--qf-moon) !important;
  margin-left: 2px !important;
}

/* ---------- 15.5 会员置换中心（我的页 #page-6） ----------
 * 需求：①【开通会员】上移到与【菩提获取规则】同一水平高度；②去掉右侧回纹网格纹。
 * 做法：装饰层隐藏；标题行改为不换行的单行，右侧预留按钮宽度；
 *       按钮从 top:44px 提到标题行，并收窄内边距，三者互不重叠。 */
html body #page-6 .qf-vip-deco {
  display: none !important;
}
html body #page-6 .bd-gold-top {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding-right: 74px !important;
}
html body #page-6 .bd-gold-title {
  font-size: 20px !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}
html body #page-6 .bd-gold-rule {
  font-size: 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
html body #page-6 .qf-vip-open {
  top: 13px !important;
  right: 14px !important;
  padding: 5px 11px !important;
  font-size: 11px !important;
  letter-spacing: .5px !important;
  border-radius: 14px !important;
  line-height: 1.5 !important;
}

/* ---------- 15.6 白底弹窗统一收口：白卡片必须配深字、实底按钮 ----------
 * 这三类弹窗都是 JS 动态创建的「白底卡片 + 内联 #333/#999 文字 + 彩色按钮」，
 * 但主题的通用规则会：① 把内联深色字刷成浅金（白底上等于看不见）；
 * ② 把所有 button 刷成 rgba(197,160,89,.07) 近乎透明（按钮形状消失）。
 * 这里按 id / 类名精确还原，不影响任何暗色弹窗。
 * 覆盖：微信扫码支付弹窗、支付宝兜底遮罩、通用确认框（showConfirm）。 */
html body #wechatPayDialog > div,
html body #alipayPayMask > div,
html body .custom-confirm-modal > div {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(197, 160, 89, .45) !important;
}
html body #wechatPayDialog > div *,
html body #alipayPayMask > div *,
html body .custom-confirm-modal > div div {
  color: #2A2117 !important;
  -webkit-text-fill-color: #2A2117 !important;
}
html body #wechatPayDialog > div p,
html body #wechatPayDialog > div p span,
html body #alipayPayMask > div div[style*="color:#999" i] {
  color: #6B5C46 !important;
  -webkit-text-fill-color: #6B5C46 !important;
}
html body #wechatPayDialog #cancelWechatPay,
html body #alipayPayMask #mallAlipayCancelBtn,
html body .custom-confirm-modal button {
  background-color: #F1EDE4 !important;
  background-image: none !important;
  color: #4A4032 !important;
  -webkit-text-fill-color: #4A4032 !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  box-shadow: none !important;
}
html body #alipayPayMask #mallAlipayGoPayBtn {
  background-color: #1677FF !important;
  background-image: none !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(22, 119, 255, .28) !important;
}
html body .custom-confirm-modal button:last-child {
  background-color: var(--qf-gold) !important;
  color: #0C0F1A !important;
  -webkit-text-fill-color: #0C0F1A !important;
  border: 1px solid transparent !important;
  box-shadow: 0 3px 12px rgba(197, 160, 89, .28) !important;
}

/* ==========================================================================
 * 16. R36 修复（2026-11-13 22:xx）
 * --------------------------------------------------------------------------
 * 16.1 二级页头部置顶：设置/个人信息/账户安全/消息通知/支付设置
 * 16.2 订单管理筛选条被挤成两行 → 单行排布
 * 16.3 我的页「会员置换中心」：数字字号回落、【开通会员】下移一行
 * 16.4 请宝成功弹窗：商品预览图容器
 * ========================================================================== */

/* ---------- 16.1 二级页：标题置顶、返回按钮左上角、内容整体上移 ----------
 * 原样式 .p-settings/.p-profile .header-simple{height:20px;margin-top:54px}
 * 把标题推到页面下方 54px 处，而 .back-btn 是 top:14px 绝对定位，
 * 标题与返回按钮错位、上方留出一大片空白。这里统一改成 44px 高的贴顶标题栏。 */
html body #page-7 .header-simple,
html body #page-14 .header-simple,
html body #page-31 .header-simple,
html body #page-38 .header-simple,
html body #page-39 .header-simple {
  margin-top: 0 !important;
  height: 44px !important;
  padding: 0 52px !important;
  position: relative !important;
  z-index: 30 !important;
  background-color: #0C0F1A !important;
  background-image: linear-gradient(180deg, #0C0F1A 0%, #0C0F1A 72%, rgba(12, 15, 26, .92) 100%) !important;
  border-bottom: 1px solid rgba(197, 160, 89, .14) !important;
}
html body #page-7 .header-simple .header-title,
html body #page-14 .header-simple .header-title,
html body #page-31 .header-simple .header-title,
html body #page-38 .header-simple .header-title,
html body #page-39 .header-simple .header-title {
  font-size: 17px !important;
  line-height: 43px !important;
  height: 43px !important;
  letter-spacing: 3px !important;
  color: var(--qf-gold-bright) !important;
}
html body #page-7 .back-btn,
html body #page-14 .back-btn,
html body #page-31 .back-btn,
html body #page-38 .back-btn,
html body #page-39 .back-btn {
  top: 6px !important;
  left: 10px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 19px !important;
  line-height: 1 !important;
  z-index: 40 !important;
}
/* 内容区同步上移：原本内联 top:54px，标题栏变成 44px 后与之对齐 */
html body #page-7 .scroll-area,
html body #page-14 .scroll-area,
html body #page-31 .scroll-area,
html body #page-38 .scroll-area,
html body #page-39 .scroll-area {
  top: 44px !important;
}
/* 内容首个模块的上外边距收一点，避免贴顶后顶部过空/过挤 */
html body #page-7 .settings-list { padding-top: 8px !important; }
html body #page-14 .profile-content { padding-top: 12px !important; }

/* ---------- 16.2 订单管理：筛选条单行排布，不再挤压换行 ----------
 * 原 padding:60px 20px 0 66px + flex:1 均分，6 个标签在 390 宽下只剩 304px，
 * 「已取消/退款」被压成三行。改为按内容宽度排布 + 允许横向滚动兜底。 */
html body #page-5 .orders-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  padding: 54px 6px 0 56px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none;
}
html body #page-5 .orders-tabs::-webkit-scrollbar { display: none; height: 0; }
html body #page-5 .orders-tab {
  flex: 0 0 auto !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 12px 5px !important;
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  border-bottom: 2px solid transparent !important;
}
html body #page-5 .orders-tab.active {
  border-bottom-color: var(--qf-gold) !important;
}

/* ---------- 16.3 会员置换中心：字号回落 + 【开通会员】独占一行 ----------
 * 上一版把按钮绝对定位到标题行右侧，与「菩提获取规则」重叠；
 * 数字 25px 在窄屏上挤掉标签。现改为：
 *   标题 + 规则一行 → 副标题 → 三个数字 → 【开通会员】整行按钮。 */
html body #page-6 .bd-gold {
  padding: 14px 14px 12px !important;
}
html body #page-6 .bd-gold-top {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-right: 0 !important;
}
html body #page-6 .bd-gold-title {
  font-size: 18px !important;
  letter-spacing: 1.5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
html body #page-6 .bd-gold-rule {
  font-size: 11px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
html body #page-6 .qf-vip-sub {
  margin-top: 3px !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
}
html body #page-6 .bd-gold-stats {
  margin-top: 12px !important;
  max-width: none !important;
}
html body #page-6 .bd-gold-num {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
html body #page-6 .bd-gold-label {
  font-size: 10.5px !important;
  margin-top: 2px !important;
}
html body #page-6 .bd-gold-div {
  height: 22px !important;
}
html body #page-6 .qf-vip-open {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 9px 0 !important;
  text-align: center !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 215, 0, .35) !important;
  background-color: var(--qf-gold) !important;
  background-image: linear-gradient(135deg, #E7C87F 0%, #C5A059 100%) !important;
  color: #0C0F1A !important;
  -webkit-text-fill-color: #0C0F1A !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  box-shadow: 0 4px 14px rgba(197, 160, 89, .28), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}
html body #page-6 .qf-vip-open:active { transform: scale(.98); }

/* ---------- 16.4 请宝成功弹窗：商品预览图 ---------- */
html body #orderSuccessModal #orderSuccessImg {
  background-image: linear-gradient(135deg, #F7EFE0 0%, #EFE0C6 100%) !important;
}
html body #orderSuccessModal #orderSuccessImg img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
html body #orderSuccessModal #orderSuccessIcon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 64px;
}

/* ==========================================================================
 * 17. R37 修复（2026-11-13 23:xx）
 * 17.1 二级页内容贴顶：消息通知/支付设置 标题下空白过多
 * 17.2 消息中心标题水平居中
 * 17.3 支付页「待支付金额」统一金色（原来整数部分是 --card-bg 深色）
 * ========================================================================== */

/* ---------- 17.1 内容上移 ----------
 * 根因：.profile-content 基础样式是 padding:70px 20px 90px，
 * 头部改成 44px 贴顶栏后，这 70px 上内边距就变成标题下的一大片空白。
 * 这两页（31 消息通知 / 39 支付设置）都把首个模块的内边距收到 12px。 */
html body #page-31 .profile-content,
html body #page-39 .profile-content {
  padding-top: 12px !important;
}
/* 首个分组标题（✦ 总开关 / ✦ 支付方式）不需要额外的上外边距 */
html body #page-31 .profile-content > div:first-child,
html body #page-39 .profile-content > div:first-child {
  padding-top: 4px !important;
}

/* ---------- 17.2 消息中心：标题水平居中 ----------
 * .msg-header 是 justify-content:space-between，标题被推到最左。
 * 标题改成绝对定位铺满整行、文字居中，「全部已读」仍靠右。 */
html body #page-15 .msg-header {
  position: relative !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
}
html body #page-15 .msg-header .msg-title {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 10px !important;
  text-align: center !important;
  pointer-events: none !important;
}
html body #page-15 .msg-header .msg-read-all {
  position: relative !important;
  z-index: 2 !important;
}

/* ---------- 17.3 待支付金额：整数与小数统一金色 ----------
 * .pay-amount 原本 color:var(--card-bg)，暗色主题下 --card-bg 是近黑，
 * 而 .pay-decimal 被 10.6 段改成了金色，于是「￥88」黑 + 「.00」金。 */
html body #page-11 .pay-amount,
html body #page-11 .pay-amount .pay-decimal {
  color: var(--qf-gold-bright) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
}
html body #page-11 .pay-amount .pay-decimal {
  text-shadow: none !important;
}

/* ===== R159: QQ 一键登录 —— 不参与「透明次按钮」泛化，保留 QQ 蓝 ===== */
html body .page [class*="btn-"].btn-qq-fast:not([class*="wrap"]):not([class*="group"]),
html body .page button.btn-qq-fast:not([class*="wrap"]),
html body .page [onclick*="doQqLogin"]:not([class*="wrap"]) {
  background-image: none !important;
  background-color: #FFFFFF !important;
  color: #1A1A1A !important;
  border: 1px solid #E3E3E3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
  opacity: 1 !important;
}


/* ===== R175: QQ 官方视觉规范按钮（白底 + 官方彩色企鹅 + 「QQ登录」）
   依据 wiki.connect.qq.com/网站前端页面规范 1.3「小图标+文字链接」，
   覆盖主题的金色按钮泛化规则，保证 QQ 标识不被改色。 ===== */
html body .page button.btn-qq-fast.qq-official:not([class*="wrap"]):not([class*="group"]),
html body button.btn-qq-fast.qq-official {
  background-image: none !important;
  background-color: #FFFFFF !important;
  color: #1A1A1A !important;
  -webkit-text-fill-color: #1A1A1A !important;
  border: 1px solid #E3E3E3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
  opacity: 1 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
html body button.btn-qq-fast.qq-official img { display: block !important; flex: 0 0 auto !important; }

/* R175: 注册页在 PC 宽屏下不再整屏拉伸（原布局仅适配手机容器） */
@media (min-width: 768px) {
  html body #page-8 .reg-content,
  html body #page-8 .header-simple { max-width: 520px !important; margin-left: auto !important; margin-right: auto !important; }
  html body #page-8 .reg-content { padding: 0 8px !important; }
}
