/* 玄微大师 — 公共头部/导航/Toast */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "MiSans", sans-serif; font-weight: 300; }

/* ═══════════════════════════════════ 主题色变量 ═══════════════════════════════════
   来源: common/css/theme.css（单一真实来源）
   这里的别名变量保持向后兼容，值全部引用 theme.css */
:root {
  --bg-page:        var(--color-page);
  --bg-card:        var(--color-panel);
  --bg-pan:         var(--color-pan);
  --border-card:    var(--color-border-warm);
  --border-fieldset: var(--color-accent);
  --text-primary:   var(--color-text);
  --text-secondary: var(--color-text-sec);
  --text-muted:     var(--color-text-muted);
  --text-nav:       var(--color-text);
  --accent:         var(--color-accent);
  --accent-gold:    var(--color-gold);
  --input-bg:       var(--color-panel);
  --input-border:   var(--color-border);
  --btn-bg:         var(--color-subtle);
  --btn-hover:      var(--color-border-light);
}

@font-face { font-family: "MiSans"; src: url('../../font/MiSans-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "MiSans"; src: url('../../font/MiSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MiSans"; src: url('../../font/MiSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ZhankuWenyi"; src: url('../../font/zhanku-wenyi.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proza'; src: url('../../font/Proza-ExtraBoldItalic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }

body { background: var(--bg-page); color: var(--color-text); overflow-x: hidden; }
.container { max-width: 1600px; margin: 0 auto; background: var(--bg-page); padding: 0 8px; }

/* Header */
.header { display: flex; align-items: center; gap: 6px; min-height: 46px; flex-wrap: nowrap; margin-bottom: 4px; }
.logo { width: 48px; height: 48px; background: url('../../logo/logo.png') no-repeat center; background-size: contain; flex-shrink: 0; text-decoration: none; display: block; transition: transform 0.4s; }
.logo:hover { transform: rotate(5deg) scale(1.05); }
/* 暗色主题 — 跟随系统自动切换 */
html[data-theme="dark"] .logo { background-image: url('../../logo/logo02.png'); }
.nav { display: flex; align-items: center; gap: 8px; height: 46px; flex-shrink: 0; }
.nav-item { display: flex; align-items: center; gap: 4px; text-decoration: none; height: 100%; }
.nav-item .cn { color: var(--text-nav); font-size: 14px; font-family: "ZhankuWenyi", sans-serif; writing-mode: vertical-rl; letter-spacing: 3px; line-height: 1.2; transition: color 0.2s; }
.nav-item .en { font-size: 6px; color: var(--accent); writing-mode: vertical-rl; letter-spacing: 1px; }
.nav-item.active .cn { color: var(--accent-gold); }
.user-actions { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-left: auto; flex-shrink: 0; }
.user-actions a,
.user-actions span { cursor: pointer; padding: 3px 8px; border-radius: 4px; font-weight: 400; transition: background .15s; font-family: "MiSans", sans-serif; position: relative; overflow: hidden; color: var(--text-nav); text-decoration: none; }
.user-actions a:hover,
.user-actions span:hover { background: var(--border-card); }

/* ════════════════════════════════════════════
   模式切换 & 用户图标（圆圈 + 小字，桌面/手机通用）
   ════════════════════════════════════════════ */
.mode-switch { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; align-items: center; }
.mode-switch .user-actions { margin-left: 0; }

/* 图标按钮基类（共用布局和文字样式） */
.mode-btn,
body.mode-mobile .user-actions {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: none; background: transparent; padding: 0;
    font-size: 8px; font-family: "MiSans", sans-serif; font-weight: 300; color: var(--text-muted); cursor: pointer;
    position: relative; line-height: 1.2; flex-shrink: 0;
    min-height: 38px;
}
/* mode-btn 额外重置（button 元素需要） */
.mode-btn {
    margin: 0;
    appearance: none; -webkit-appearance: none;
}
/* 圆圈 */
.mode-btn::before,
body.mode-mobile .user-actions::before {
    content: '';
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-panel);
    flex-shrink: 0;
}
/* 图标定位 */
.mode-btn::after,
body.mode-mobile .user-actions::after {
    content: '';
    position: absolute;
    top: 12px; left: 50%;
    transform: translate(-50%, -50%);
}

/* Web 图标 — 显示器 + 底座 */
.mode-btn[data-mode="web"]::after {
    width: 11px; height: 7px;
    border: 1.5px solid var(--color-star-sub);
    border-radius: 2px;
    box-shadow: 0 6px 0 -3px var(--color-star-sub);
}
/* 手机图标 — 圆角矩形 + home 键 */
.mode-btn[data-mode="mobile"]::after {
    width: 7px; height: 11px;
    border: 1.5px solid var(--color-star-sub);
    border-radius: 2.5px;
    background: radial-gradient(circle at 50% calc(100% - 2.5px), var(--color-star-sub) 1px, transparent 1.5px);
}
/* 用户图标 — 人形 */
body.mode-mobile .user-actions::after {
    width: 6px; height: 6px;
    border: 1.5px solid var(--color-star-sub);
    border-radius: 50%;
    background: var(--color-panel);
    box-shadow: 0 7px 0 -1.5px var(--color-star-sub);
}

/* 状态 */
.mode-btn:hover:not(.active)::before { border-color: var(--color-brand); }
.mode-btn.active { color: var(--color-brand); }
.mode-btn.active::before { background: var(--color-brand); border-color: var(--color-brand); }
.mode-btn.active[data-mode="web"]::after    { border-color: var(--color-panel); box-shadow: 0 6px 0 -3px var(--color-panel); }
.mode-btn.active[data-mode="mobile"]::after { border-color: var(--color-panel); background: radial-gradient(circle at 50% calc(100% - 2.5px), var(--color-panel) 1px, transparent 1.5px); }

/* 主题切换按钮 */
.theme-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: none; background: transparent; padding: 0;
  font-size: 16px; cursor: pointer; line-height: 1.2; flex-shrink: 0;
  min-height: 38px; min-width: 28px;
  appearance: none; -webkit-appearance: none;
}
.theme-btn:hover { opacity: 0.7; }

/* 手机端对齐：三个图标同在一个 flex 容器内，底部对齐 */
body.mode-mobile .mode-switch { align-items: flex-end; align-self: flex-end; }

/* 手机端隐藏 auth 文字，只保留标签 */
.ua-label { display: none; }
body.mode-mobile .user-actions > :not(.ua-label) { display: none; }
body.mode-mobile .user-actions { display: none; }
body.mode-mobile .ua-label { display: inline; font-size: 8px; font-weight: 300; color: var(--color-star-sub); pointer-events: none; padding: 0; border-radius: 0; font-family: "MiSans", sans-serif; }
body.mode-mobile .ua-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-left: 2px; vertical-align: middle; background: var(--color-fire); }
body.mode-mobile .logged-in .ua-dot { background: #4caf50; }

/* 注册表单实时校验 */
.auth-form-group input.invalid   { border-color: #e53935 !important; }
.auth-form-group input.valid     { border-color: #4caf50 !important; }
.auth-form-group input.pw-medium { border-color: #f0a030 !important; }
.auth-form-group input.pw-strong { border-color: #4caf50 !important; }

/* 子导航 */
.chart-subnav { display: flex; align-items: center; flex-wrap: wrap; padding: 2px 0 2px 10px; margin-bottom: 12px; font-size: 12px; }
.chart-subnav a { color: var(--text-muted); text-decoration: none; padding: 2px 7px; border-radius: 3px; transition: color .2s; white-space: nowrap; }
.chart-subnav a:first-child { padding-left: 0; }
.chart-subnav a.active { color: var(--color-brand); font-weight: bold; }
.chart-subnav a:hover { color: var(--color-brand); }
.chart-subnav .sep { color: var(--text-muted); font-size: 11px; user-select: none; }
.chart-subnav a[href="hl-zeji.html"],
.chart-subnav a[href="qiming.html"],
.chart-subnav a[href="hehun.html"],
.chart-subnav a[href="bz-jiexi.html"],
.chart-subnav a[href="zw-jiexi.html"],
.chart-subnav a[href="shouji.html"],
.chart-subnav a[href="ai-ask.html"],
.chart-subnav a[href="dangan.html"] { font-weight: 400; }

/* 工具类 */
.d-none,
.xp-d-none { display: none !important; }

/* Toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.78); color: #fff; padding: 12px 28px; border-radius: 8px; z-index: 99999; display: none; font-size: 14px; pointer-events: none; text-align: center; }

/* ── 备案号 ── */
.beian { position: fixed; bottom: 8px; right: 16px; font-size: 12px; z-index: 9999; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 640px; }
.beian a { color: var(--color-text-muted); text-decoration: none; display: inline-flex; align-items: center; }
.beian a:hover { color: var(--color-text-sec); }
.beian-sep { color: var(--color-text-faint); }

/* ── 共享 VIP 按钮（黑底金字药丸形）── */
.qbtn.q-vip { width: 34px; height: 24px; border: none; background: var(--color-dark); color: var(--color-gold); font-size: 12px; font-weight: 800; font-style: italic; cursor: pointer; border-radius: 15px; vertical-align: middle; font-family: 'Proza', 'MiSans', sans-serif; }
.qbtn.q-vip:hover { background: #2a2a2a; color: var(--color-gold); }

/* ── 共享按钮（全站通用）── */
.btn { padding: 3px 12px; border-radius: 4px; border: none; cursor: pointer; font-size: 12px; font-family: "MiSans", sans-serif; font-weight: 400; height: 24px; }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-default { background: var(--color-subtle); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-default:hover { background: #e5e5e5; }
.btn-now { padding: 3px 10px; font-size: 12px; border: 1px solid var(--color-brand); background: var(--color-brand); color: #fff; border-radius: 4px; cursor: pointer; }
.btn-now:hover { opacity: 0.9; }
.btn-now.btn-done, .btn-hehun-ai.btn-done { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-hehun-ai { padding: 3px 12px; border: none; border-radius: 4px; background: var(--color-btn-dark); color: var(--color-vip-gold); font-size: 12px; cursor: pointer; font-family: "MiSans", sans-serif; font-weight: 400; height: 24px; transition: transform .1s; touch-action: manipulation; }
.btn-hehun-ai:hover { background: var(--color-btn-dark); color: var(--color-vip-gold); }
.btn-hehun-ai:active { transform: scale(.96); }

/* ── 共享 VIP 弹窗 ── */
.vip-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); z-index: 1000; }
.vip-modal-overlay.show { display: block; }
.vip-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 520px; max-width: 94vw; max-height: 85vh; background: var(--bg-card); border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.18); z-index: 1001; overflow: hidden; }
.vip-modal.show { display: block; }
.vip-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border-light); }
.vip-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-dark); }
.vip-modal-close { width: 28px; height: 28px; border: none; background: var(--color-subtle); border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--color-text-sec); display: flex; align-items: center; justify-content: center; }
.vip-modal-close:hover { background: var(--color-btn-hover); }
.vip-modal-body { padding: 8px 20px 20px; overflow-y: auto; max-height: calc(85vh - 60px); }
.vip-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-subtle); }
.vip-item:last-of-type { border-bottom: none; }
.vip-item-info { flex: 1; min-width: 0; }
.vip-item-name { font-size: 14px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.vip-item-desc { font-size: 12px; color: var(--color-star-sub); line-height: 1.5; }
.vip-item-right { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.vip-item-price { font-size: 18px; font-weight: 700; color: var(--color-star); white-space: nowrap; }
.vip-buy-btn { padding: 5px 16px; border: none; border-radius: 16px; background: var(--color-dark); color: var(--color-gold); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; }
.vip-buy-btn:hover { background: var(--color-gold); color: var(--color-dark); }
.vip-buy-btn.purchased { background: var(--color-border-light); color: var(--color-text-muted); cursor: default; pointer-events: none; }
.ly-pkg-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.ly-pkg-btn { padding: 5px 14px; border: none; border-radius: 16px; background: var(--color-dark); color: var(--color-gold); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; }
.ly-pkg-btn:hover { background: var(--color-gold); color: var(--color-dark); }
.ly-credits-tag { display: inline-block; background: var(--color-brand); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 8px; margin-left: 6px; font-weight: normal; }
.vip-footer { padding: 12px 0 0; border-top: 1px solid var(--color-border-light); margin-top: 8px; text-align: center; }
.vip-all-btn { display: block; width: 100%; padding: 12px 0; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--color-dark), var(--color-vip-gradient)); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; transition: all .2s; }
.vip-all-btn:hover { background: linear-gradient(135deg, var(--color-vip-gradient), var(--color-dark)); color: var(--color-gold); }
.vip-all-desc { margin-top: 6px; font-size: 11px; color: var(--color-text-muted); line-height: 1.6; text-align: left; }
.vip-feature-grid { display: grid; grid-template-columns: max-content 1fr; gap: 2px 8px; }
.vip-feat-cat { font-weight: 600; color: var(--color-text-sec); white-space: nowrap; }
.vip-feat-items { color: var(--color-text-muted); }
@media (max-width: 520px) { .vip-modal { width: 94vw; } .vip-modal-body { padding: 4px 12px 12px; } .vip-item { flex-direction: column; align-items: flex-start; gap: 8px; } .vip-item-right { flex-direction: row; align-items: center; gap: 10px; width: 100%; justify-content: flex-end; } .vip-feature-grid { grid-template-columns: auto 1fr; gap: 1px 6px; } }

/* ── 紧凑版价格弹窗（zw-jiexi / qiming / hehun / bz-jiexi 共用）── */
.bz-price-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.45);z-index:10000}
.bz-price-overlay.show{display:block}
.bz-price-modal{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:360px;max-width:92vw;background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.18);z-index:10001;overflow:hidden}
.bz-price-modal.show{display:block}
.bz-price-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--color-border-light)}
.bz-price-header h3{margin:0;font-size:16px;font-weight:700;color: var(--color-dark)}
.bz-price-close{width:28px;height:28px;border:none;background:var(--color-subtle);border-radius:50%;cursor:pointer;font-size:14px;color:var(--color-text-sec);display:flex;align-items:center;justify-content:center}
.bz-price-close:hover{background:var(--color-btn-hover)}
.bz-price-body{padding:8px 20px 20px;overflow-y:auto}
.bz-price-item{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0f0f0;gap:12px}
.bz-price-item:last-of-type{border-bottom:none}
.bz-price-left{flex:1;min-width:0}
.bz-price-name{font-size:14px;font-weight:600;color:var(--color-dark);margin-bottom:4px}
.bz-price-desc{font-size:12px;color:var(--color-star-sub);line-height:1.5;margin-bottom:4px}
.bz-price-tag{font-size:12px;line-height:1.6}
.bz-price-right{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0;min-width:72px}
.bz-price-num{font-size:16px;font-weight:700;color:var(--color-star);text-align:center;line-height:1.4}
.bz-price-buy-btn{padding:5px 16px;border:none;border-radius:16px;background:var(--color-dark);color:var(--color-gold);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s}
.bz-price-buy-btn:hover{background:var(--color-gold);color:var(--color-dark)}
.bz-price-buy-btn.purchased{background:var(--color-border-light);color:var(--color-text-muted);cursor:default;pointer-events:none}
.bz-price-footer{padding:12px 0 0;border-top:1px solid var(--color-border-light);margin-top:8px;text-align:center}
.bz-price-vip-btn{display:block;width:100%;padding:12px 0;border:none;border-radius:10px;background:linear-gradient(135deg,var(--color-dark),var(--color-vip-gradient));color:var(--color-gold);font-size:16px;font-weight:700;cursor:pointer}
.bz-price-vip-btn:hover{background:linear-gradient(135deg,var(--color-vip-gradient),var(--color-dark));color:#f0d060}
.bz-price-vip-desc{margin-top:10px;font-size:11px;color:var(--color-star-sub);line-height:1.6;text-align:left}
@media (max-width: 520px){.bz-price-modal{width:92vw}.bz-price-body{padding:4px 12px 12px}.bz-price-vip-desc{font-size:10px}}

/* ── 手机端全局（body.mode-mobile 激活，与桌面端完全隔离）── */
body.mode-mobile .nav-item .en { display: none; }
body.mode-mobile .beian { position: fixed; bottom: 0; left: 0; width: 100%; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 8px 12px 20px; font-size: 10px; z-index: 1; }
body.mode-mobile .beian a { color: #bbb; }
body.mode-mobile .beian-sep { color: #999; }

/* ── 手机底部导航条 ── */
.mobile-bottom-nav { display: none; }
body.mode-mobile {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
body.mode-mobile .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px;
    background: var(--color-panel);
    border-top: 1px solid var(--color-border-light);
    z-index: 99999;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    transition: none !important;
    animation: none !important;
}
body.mode-mobile .mnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 0;
    min-width: 48px;
}
body.mode-mobile .mnav-item.active { color: var(--color-brand); }
body.mode-mobile .mnav-item.mnav-quick { color: var(--color-gold); }
body.mode-mobile .mnav-item.mnav-quick .mnav-icon { font-size: 22px; }
body.mode-mobile .mnav-item.mnav-wode { color: var(--color-fire); }
body.mode-mobile .mnav-item.mnav-wode.logged-in { color: #4caf50; }
body.mode-mobile .mnav-icon { font-size: 20px; line-height: 1; }
body.mode-mobile .mnav-label { font-size: 10px; }

/* ── 通用 AI 解析按钮 & 输出框 ── */
.ai-analyze-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 18px; border-radius: 6px; cursor: pointer; user-select: none;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    background: linear-gradient(135deg, #2a2018, #4a3820);
    color: var(--color-gold, #d4a035);
    border: 1px solid rgba(212,160,53,.35);
    transition: background .2s, color .2s;
    margin: 8px 0;
}
.ai-analyze-btn:hover { background: linear-gradient(135deg, #3a3028, #5a4a30); color: #f0d060; }
.ai-analyze-btn:disabled { opacity: .6; cursor: not-allowed; }
.ai-analyze-box { margin: 10px 0; border-radius: 8px; background: var(--color-subtle, #fdf8f0); border: 1px solid var(--color-border, #e8e0d0); overflow: hidden; }
.ai-analyze-output { padding: 14px 16px; font-size: 14px; line-height: 1.8; color: var(--color-text, #333); max-height: 600px; overflow-y: auto; }
.ai-analyze-output h2,.ai-analyze-output h3,.ai-analyze-output h4 { font-weight: 700; margin: 14px 0 6px; color: var(--color-text, #111); }
.ai-analyze-output h4 { font-size: 14px; color: var(--color-brand, #8B4513); }
.ai-analyze-output strong { font-weight: 700; color: var(--color-dark, #1a1a1a); }
.ai-analyze-output .ai-loading { color: var(--color-text-muted, #999); font-style: italic; }
html[data-theme="dark"] .ai-analyze-box { background: #1e1a14; border-color: #3a3020; }
html[data-theme="dark"] .ai-analyze-output { color: #ccc; }
html[data-theme="dark"] .ai-analyze-output h4 { color: var(--color-gold, #d4a035); }
html[data-theme="dark"] .ai-analyze-output strong { color: #e0d8c0; }

/* ── 暗色模式 VIP 弹窗标题 ── */
html[data-theme="dark"] .vip-modal-header h3,
html[data-theme="dark"] .vip-item-name { color: var(--color-text); }
html[data-theme="dark"] .vip-item-desc { color: var(--color-text-sec); }

/* ── 暗色模式：黑金按钮改用白字（#333底 + 浅紫金 对比度不足）── */
html[data-theme="dark"] .btn-default { border-color: var(--color-star-sub); }
html[data-theme="dark"] .btn-default:hover { background: var(--color-panel); }
html[data-theme="dark"] .btn-hehun-ai,
html[data-theme="dark"] .btn-ai-analyze,
html[data-theme="dark"] .btn-full-report,
html[data-theme="dark"] .btn-bz-action,
html[data-theme="dark"] .qm-btn-start { color: #d4af37; }

/* ── 暗色模式：所有黑金色按钮统一改为蓝绿底深紫字 ── */
html[data-theme="dark"] .qbtn.q-vip { background: var(--color-star); color: #100922; border: none; }
html[data-theme="dark"] .qbtn.q-vip:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .ai-analyze-btn { background: var(--color-star); color: #100922; border-color: var(--color-star); }
html[data-theme="dark"] .ai-analyze-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .redeem-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .redeem-confirm-ok { background: var(--color-star); color: #100922; }

/* ── 暗色模式：VIP 购买按钮蓝绿底深紫字 ── */
html[data-theme="dark"] .vip-buy-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .vip-buy-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .vip-buy-btn.purchased { background: var(--color-border-light); color: var(--color-text-muted); }
html[data-theme="dark"] .ly-pkg-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .ly-pkg-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .vip-all-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .vip-all-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .bz-price-buy-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .bz-price-buy-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .bz-price-buy-btn.purchased { background: var(--color-border-light); color: var(--color-text-muted); }
html[data-theme="dark"] .bz-price-vip-btn { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .bz-price-vip-btn:hover { background: var(--color-star); color: #100922; }
html[data-theme="dark"] .seeker-input,
html[data-theme="dark"] .date-input,
html[data-theme="dark"] .zw-note-textarea,
html[data-theme="dark"] .zty-select,
html[data-theme="dark"] .auth-form-group input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] textarea { background: var(--color-input-bg); color: var(--color-text); border-color: #9a8ab8; }

html[data-theme="dark"] .bz-price-modal { background: var(--color-panel); }
html[data-theme="dark"] .bz-price-header h3 { color: var(--color-text); }
html[data-theme="dark"] .bz-price-item { border-bottom-color: var(--color-divider); }
html[data-theme="dark"] .bz-price-name { color: var(--color-text); }

/* ── 付费内容预览遮罩 ───────────────────────────────────────── */
.preview-lock-wrap {
  position: relative;
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
}
.preview-lock-wrap.hidden { display: none; }

.preview-sample {
  padding: 18px 20px 0;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  max-height: 340px;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.preview-sample .ps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border-light);
}
.preview-sample .ps-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
  margin-bottom: 6px;
}
.preview-sample .ps-tag-gold  { background: #fff8e1; color: #b8860b; }
.preview-sample .ps-tag-red   { background: #ffeaea; color: #c62828; }
.preview-sample .ps-tag-green { background: #e8f5e9; color: #2e7d32; }
.preview-sample .ps-tag-blue  { background: #e3f2fd; color: #1565c0; }
.preview-sample .ps-block { margin-bottom: 14px; }
.preview-sample .ps-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-sec);
  margin-bottom: 5px;
}
.preview-sample .ps-line {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 3px;
}
.preview-sample .ps-line b { color: var(--color-gold); }
.preview-sample .ps-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 10px 0;
}

.preview-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 210px;
  background: linear-gradient(to bottom, transparent, var(--color-panel) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22px;
  gap: 8px;
}
.preview-fade-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.preview-fade-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}
.preview-fade-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.preview-unlock-btn {
  padding: 7px 20px;
  background: var(--color-dark);
  color: var(--color-gold);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-family: "MiSans", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
}
.preview-unlock-btn:hover { opacity: .85; }
.preview-unlock-btn.secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-size: 12px;
}
html[data-theme="dark"] .preview-fade {
  background: linear-gradient(to bottom, transparent, var(--color-panel) 70%);
}
html[data-theme="dark"] .preview-sample .ps-tag-gold  { background: #2a2010; color: #d4a83a; }
html[data-theme="dark"] .preview-sample .ps-tag-red   { background: #2a1018; color: #e06060; }
html[data-theme="dark"] .preview-sample .ps-tag-green { background: #102a18; color: #5ab85a; }
html[data-theme="dark"] .preview-sample .ps-tag-blue  { background: #101a30; color: #5a90d0; }

/* ── 排盘记事区 ── */
.zw-note-wrap { margin-top: 12px; border-top: 1px solid var(--color-border-warm); padding-top: 10px; }
.zw-note-textarea { width: 100%; height: 60px; font-size: 12px; border: 1px solid var(--color-border); border-radius: 4px; padding: 6px; resize: vertical; font-family: inherit; background: var(--color-input-bg); color: var(--color-text); }
.zw-note-actions { display: flex; gap: 8px; margin-top: 6px; justify-content: flex-end; }
.zw-note-btn { display: inline-flex; align-items: center; justify-content: center; padding: 3px 12px; background: var(--color-btn-dark); color: var(--color-vip-gold); border: none; border-radius: 4px; font-size: 12px; font-family: "MiSans", sans-serif; font-weight: 400; height: 24px; cursor: pointer; }
.zw-note-btn:hover { opacity: 0.85; }

/* ── 兑换码组件 ────────────────────────────────────────────── */
.redeem-area { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border-light); }
.redeem-area-title { font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; }
.redeem-row { display: flex; gap: 8px; }
.redeem-input { flex: 1; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 13px; font-family: monospace; letter-spacing: 1px; background: var(--color-subtle); color: var(--color-text); outline: none; transition: border-color .2s; }
.redeem-input:focus { border-color: var(--color-brand); background: var(--bg-card); }
.redeem-btn { padding: 8px 16px; border: none; border-radius: 6px; background: var(--color-dark); color: var(--color-gold); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.redeem-btn:hover { opacity: .85; }
.redeem-btn:disabled { opacity: .5; cursor: not-allowed; }
.redeem-msg { font-size: 12px; margin-top: 6px; min-height: 18px; }
.redeem-msg-error   { color: var(--color-fire); }
.redeem-msg-success { color: #0a7c4f; }
html[data-theme="dark"] .redeem-msg-success { color: #4caf50; }
html[data-theme="dark"] .redeem-input { border-color: #9a8ab8; }
.redeem-confirm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; align-items: center; justify-content: center; }
.redeem-confirm-overlay.active { display: flex; }
.redeem-confirm-box { background: var(--bg-card); border-radius: 12px; width: 340px; max-width: 92vw; box-shadow: 0 8px 40px rgba(0,0,0,.2); overflow: hidden; }
.redeem-confirm-head { padding: 16px 20px; font-size: 16px; font-weight: 700; color: var(--color-text); border-bottom: 1px solid var(--color-border-light); }
.redeem-confirm-body { padding: 24px 20px; text-align: center; }
.redeem-confirm-icon { font-size: 36px; margin-bottom: 10px; }
.redeem-confirm-label { font-size: 13px; color: var(--color-text-sec); margin-bottom: 6px; }
.redeem-confirm-name { font-size: 18px; font-weight: 700; color: var(--color-star); margin-bottom: 10px; }
.redeem-confirm-hint { font-size: 11px; color: var(--color-text-muted); }
.redeem-confirm-footer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--color-border-light); justify-content: flex-end; }
.redeem-confirm-cancel { padding: 8px 18px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-subtle); color: var(--color-text-sec); font-size: 13px; cursor: pointer; }
.redeem-confirm-ok { padding: 8px 18px; border: none; border-radius: 6px; background: var(--color-dark); color: var(--color-gold); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.redeem-confirm-ok:hover { opacity: .85; }
.redeem-confirm-ok:disabled { opacity: .5; cursor: not-allowed; }
.redeem-standalone-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1500; align-items: center; justify-content: center; }
.redeem-standalone-overlay.active { display: flex; }
.redeem-standalone-box { background: var(--bg-card); border-radius: 12px; width: 420px; max-width: 94vw; box-shadow: 0 8px 40px rgba(0,0,0,.18); overflow: hidden; }
.redeem-standalone-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border-light); font-size: 16px; font-weight: 700; color: var(--color-text); }
.redeem-standalone-close { width: 28px; height: 28px; border: none; background: var(--color-subtle); border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--color-text-sec); display: flex; align-items: center; justify-content: center; }
.redeem-standalone-close:hover { background: var(--color-border); }
.redeem-standalone-body { padding: 20px; }
.redeem-standalone-desc { font-size: 13px; color: var(--color-text-sec); margin: 0 0 14px; }

/* ── 滚动条暗色 ── */
html[data-theme="dark"] ::-webkit-scrollbar { width: 6px; height: 6px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a2a5a; border-radius: 3px; }

/* ── 全局会员购买弹窗 MembershipModal ─────────────────────── */
.membership-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 3000; align-items: center; justify-content: center; padding: 16px; }
.membership-overlay.show { display: flex; }
.membership-modal { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 16px 60px rgba(0,0,0,.3); position: relative; }
.membership-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 18px; color: var(--color-text-muted); cursor: pointer; padding: 4px 8px; line-height: 1; }
.membership-close:hover { color: var(--color-text); }
.membership-header { padding: 28px 28px 20px; text-align: center; }
.membership-title { font-size: 20px; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.membership-subtitle { font-size: 13px; color: var(--color-text-sec); }
.membership-plans { display: flex; gap: 12px; padding: 0 20px 20px; flex-wrap: wrap; justify-content: center; }
.membership-plan { flex: 1; min-width: 140px; max-width: 180px; border: 2px solid var(--color-border); border-radius: 12px; padding: 18px 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; text-align: center; position: relative; }
.membership-plan:hover { border-color: var(--color-brand); }
.membership-plan.active { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(88,55,160,.12); }
.membership-plan-top { border-color: var(--color-gold); }
.membership-plan-top::before { content: '推荐'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.membership-plan-name { font-size: 15px; font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.membership-plan-label { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.membership-plan-price { font-size: 24px; font-weight: 800; color: var(--color-brand); margin-bottom: 8px; }
.membership-plan-desc { font-size: 11px; color: var(--color-text-sec); margin-bottom: 14px; line-height: 1.5; }
.membership-plan-btn { width: 100%; padding: 8px 0; border: none; border-radius: 8px; background: var(--color-dark); color: var(--color-gold); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.membership-plan-btn:hover { opacity: .85; }
.membership-plan-activated { display: none; font-size: 12px; font-weight: 700; color: #2d8a4e; background: rgba(45,138,78,.1); border-radius: 6px; padding: 3px 10px; margin-bottom: 8px; letter-spacing: .5px; }
.membership-plan.current { border-color: #2d8a4e; background: rgba(45,138,78,.04); cursor: default; }
.membership-plan.current:hover { border-color: #2d8a4e; }
html[data-theme="dark"] .membership-plan.current { background: rgba(45,138,78,.08); }
html[data-theme="dark"] .membership-plan-activated { color: #5ecf7e; background: rgba(45,138,78,.18); }
.membership-pay-area { padding: 0 24px 24px; }
.membership-pay-back { font-size: 13px; color: var(--color-brand); cursor: pointer; padding: 8px 0 16px; display: inline-block; }
.membership-pay-back:hover { opacity: .75; }
.membership-pay-title { font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.membership-pay-price { font-size: 28px; font-weight: 800; color: var(--color-brand); margin-bottom: 20px; }
.membership-qr-area { text-align: center; padding: 16px 0; }
.membership-qr-img { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--color-border-light); }
.membership-pay-btn { display: block; width: 100%; padding: 13px 0; border: none; border-radius: 10px; background: var(--color-dark); color: var(--color-gold); font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s; margin-bottom: 10px; }
.membership-pay-btn:hover { opacity: .85; }
.membership-pay-tip { font-size: 12px; color: var(--color-text-muted); margin: 6px 0 0; text-align: center; }
.membership-loading { color: var(--color-text-sec); font-size: 13px; text-align: center; padding: 20px 0; }
.membership-tip { font-size: 11px; color: var(--color-text-faint); text-align: center; padding: 0 20px 20px; }
.membership-tip a { color: var(--color-brand); text-decoration: none; }
html[data-theme="dark"] .membership-plan-top::before { background: #b8860b; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4a3a6a; }
