/* ═══════════════════════════════════════════════════════════════
   紫微玄机 · 主题样式 v1.2.0（原 index.html 内联样式外置并重设计）
   设计方向：深色金调的「高端命理顾问」——克制、留白、层级清晰、手机优先。
   - 正文改用无衬线（Noto Sans SC），标题保留宋体，毛笔体只用于 Logo 与干支大字
   - 统一控件高度 46px、圆角 11/14px、卡片表面/描边两级
   - 保留旧变量名（--dark / --gold2 / --muted …），bazi_ui.js 里的内联样式仍可用
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #0b0a0f;
  --bg-2: #120f19;
  --surface: #16131f;
  --surface-2: #1d1929;
  --line: rgba(255, 255, 255, .07);
  --line-gold: rgba(212, 175, 55, .28);
  --gold: #d4af37;
  --gold2: #f1d27a;
  --gold-dim: rgba(212, 175, 55, .14);
  --text: #ece5d3;
  --text-2: #b8ad95;
  --muted: #8d8270;
  --good: #7ad39a;
  --bad: #e8807a;
  --info: #8fbcf5;
  --violet: #c99be8;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --font-brush: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  /* 兼容旧命名（JS 内联样式仍在引用） */
  --red: #8b1a1a;
  --red-light: #e8807a;
  --dark: #0b0a0f;
  --dark2: #16131f;
  --dark3: #1d1929;
  --glow: rgba(212, 175, 55, .28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(120, 30, 40, .16) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(212, 175, 55, .08) 0%, transparent 55%);
}
@media (min-width: 720px) { body { font-size: 16px } }
b, strong { font-weight: 600 }
button { font-family: inherit }

/* 只作用于星空背景 #cv，避免把结果区的大运走势图（#dyChart）钉到左上角 */
canvas#cv {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%; opacity: .7
}

/* ───────── 登录门 ───────── */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 24px; text-align: center;
}
.gate-logo {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--gold2); margin-bottom: 18px;
  box-shadow: 0 0 40px rgba(212, 175, 55, .18);
}
.gate-title { font-family: var(--font-brush); font-size: 2.6rem; color: var(--gold); letter-spacing: .12em; line-height: 1.2 }
.gate-sub { color: var(--text-2); font-size: .95rem; margin-top: 8px; letter-spacing: .08em }
.gate-btn {
  margin-top: 32px; width: min(320px, 100%); height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: #222; border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 255, 255, .08); transition: transform .15s, box-shadow .15s;
}
.gate-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 255, 255, .12) }
.gate-note { margin-top: 14px; font-size: .78rem; color: var(--muted) }
.gate-dev {
  margin-top: 28px; background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 6px 14px; border-radius: 8px; font-size: .75rem; cursor: pointer;
}
.gate-dev:hover { color: var(--gold); border-color: var(--line-gold) }

/* ───────── 页头 ───────── */
header {
  position: relative; z-index: 10; text-align: center;
  padding: 34px 20px 22px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid var(--gold); margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold2);
  box-shadow: 0 0 26px rgba(212, 175, 55, .18);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
h1 {
  font-family: var(--font-brush);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--gold); letter-spacing: .14em; line-height: 1.2; font-weight: 400;
}
.sub { font-size: .8rem; color: var(--muted); letter-spacing: .22em; margin-top: 4px }
#userProfile {
  position: absolute; top: 14px; right: 14px;
  font-size: .78rem; color: var(--muted);
  display: none; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 5px 8px 5px 14px; border-radius: 20px;
}
#userProfile button {
  background: rgba(232, 128, 122, .12); border: 1px solid rgba(232, 128, 122, .3); color: var(--bad);
  cursor: pointer; font-size: .74rem; padding: 4px 10px; border-radius: 12px;
}
@media (max-width: 600px) {
  #userProfile { position: static; margin: 12px auto 0; width: max-content; max-width: 100% }
  #userProfile span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
}

main { position: relative; z-index: 10; max-width: 960px; margin: 0 auto; padding: 22px 14px 90px }

/* ───────── 卡片 ───────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
  position: relative; overflow: hidden;
}
@media (max-width: 600px) { .card { padding: 18px 14px; border-radius: 12px } }
.card-bg { position: absolute; right: 14px; top: 8px; font-size: 64px; opacity: .04; z-index: 0; pointer-events: none; color: var(--gold) }
.fc { position: relative; z-index: 1 }

/* ───────── 输入表单 ───────── */
.form-title { font-family: var(--font-display); color: var(--gold2); font-size: 1rem; letter-spacing: .12em; margin-bottom: 18px; text-align: center }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px }
.form-grid .fg-date, .form-grid .fg-name { grid-column: 1 / -1 }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 14px }
  .form-grid .fg-date, .form-grid .fg-name { grid-column: auto }
}
.fg { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.fg label { font-size: .74rem; color: var(--muted); letter-spacing: .12em }
input[type=date], input[type=text], select, textarea {
  width: 100%; height: 46px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-gold);
  border-radius: 11px;
  color: var(--text);
  padding: 0 14px;
  font-family: inherit; font-size: .95rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .14) }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.5); cursor: pointer }
input::placeholder, textarea::placeholder { color: var(--muted) }
select option { background: var(--surface-2) }
.form-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap }
.form-actions .btn-primary { flex: 2 1 200px }
.form-actions .btn-secondary { flex: 1 1 140px }
.form-foot { text-align: center; margin-top: 14px }
/* 兼容旧结构 */
.input-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2 }

/* ───────── 按钮 ───────── */
.btn {
  height: 46px; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #e6c464, #c9961a);
  border: none; border-radius: 11px;
  color: #1a1200; font-size: .95rem; font-weight: 700; letter-spacing: .08em;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .22);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212, 175, 55, .32); filter: brightness(1.04) }
.btn:active { transform: translateY(0) }
.btn:disabled { opacity: .6; cursor: default; transform: none }
.btn-secondary {
  background: var(--surface-2); color: var(--gold2);
  border: 1px solid var(--line-gold); box-shadow: none;
}
.btn-secondary:hover { background: var(--gold-dim); box-shadow: none }

/* ───────── 结果区 ───────── */
#out { display: none }
#out.vis { display: block; animation: fadeUp .5s ease }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* 命盘速览（由 js/bazi_summary.js 注入） */
.hero-card {
  background: linear-gradient(160deg, #1c1726, #131019);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  margin: 8px 0 18px;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: '☯'; position: absolute; right: -6px; top: -18px; font-size: 120px; opacity: .04; color: var(--gold); pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px }
.hero-title { font-family: var(--font-display); color: var(--gold2); font-size: 1.05rem; letter-spacing: .12em }
.hero-meta { color: var(--muted); font-size: .8rem }
.hero-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.hp {
  text-align: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 4px 8px;
}
.hp.day { border-color: var(--line-gold); background: var(--gold-dim) }
.hp-label { font-size: .68rem; color: var(--muted); letter-spacing: .16em; margin-bottom: 4px }
.hp-tg, .hp-dz { font-family: var(--font-brush); font-size: 2rem; line-height: 1.15; color: var(--text) }
.hp.day .hp-tg { color: var(--gold2); text-shadow: 0 0 18px rgba(212, 175, 55, .45) }
.hp-ss { font-size: .7rem; color: var(--text-2); margin-top: 4px }
@media (max-width: 380px) { .hp-tg, .hp-dz { font-size: 1.7rem } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: .78rem; color: var(--text-2); white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 600 }
.chip-gold { border-color: var(--line-gold); background: var(--gold-dim); color: var(--gold2) }
.chip-gold b { color: var(--gold2) }
.chip-good { border-color: rgba(122, 211, 154, .35); color: var(--good) }
.chip-good b { color: var(--good) }
.chip-bad { border-color: rgba(232, 128, 122, .35); color: var(--bad) }
.chip-bad b { color: var(--bad) }

/* 章节导航（sticky） */
.sec-nav {
  position: sticky; top: 0; z-index: 60;
  margin: 0 -14px 6px; padding: 8px 14px;
  background: rgba(11, 10, 15, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.sec-nav::-webkit-scrollbar { display: none }
.sec-nav a {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; transition: all .2s;
}
.sec-nav a:hover { color: var(--gold2) }
.sec-nav a.active { color: var(--gold2); background: var(--gold-dim); border-color: var(--line-gold) }

/* 章节标题 */
.sh { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; scroll-margin-top: 58px }
.sh h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--gold2); letter-spacing: .1em; white-space: nowrap;
}
.ln { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 175, 55, .35), transparent) }
.lnl { display: none }   /* 左侧短金条在手机上像个「一」字，去掉，只保留标题右侧的渐隐线 */

/* 八字表 */
.bazi-table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; text-align: center; font-size: .85rem }
.bazi-table th { color: var(--muted); font-weight: 400; font-size: .72rem; letter-spacing: .18em; padding: 8px 4px; border-bottom: 1px solid var(--line-gold) }
.bazi-table td { padding: 10px 4px; border: 1px solid var(--line); vertical-align: top }
.shishen { color: var(--bad); font-size: .74rem; min-height: 14px; line-height: 1.5 }
.tg-char, .dz-char { font-family: var(--font-brush); font-size: 2.1rem; color: var(--text); line-height: 1.1; margin-bottom: 6px }
.dz-char { margin-top: 8px }
.day-master { color: var(--gold2); text-shadow: 0 0 18px rgba(212, 175, 55, .45) }
@media (max-width: 600px) { .tg-char, .dz-char { font-size: 1.75rem } .bazi-table td { padding: 8px 2px } .bazi-table { font-size: .8rem } }
.nayin { color: var(--muted); font-size: .74rem; padding: 6px 0 }
.canggan { font-size: .72rem; color: var(--text-2); line-height: 1.7 }
.cg-shishen { color: #d09a95; display: inline-block; width: 30px }
.cg-char { color: var(--text); display: inline-block; width: 18px }
.shensha { font-size: .72rem; color: var(--good); line-height: 1.6 }
.bazi-info {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  background: rgba(255, 255, 255, .03); padding: 12px 14px;
  border-radius: var(--radius-s); border: 1px solid var(--line);
}
@media (min-width: 720px) { .bazi-info { grid-template-columns: repeat(4, 1fr) } }
.bi-item { font-size: .86rem; min-width: 0 }
.bi-label { color: var(--muted); font-size: .7rem; letter-spacing: .12em; margin-bottom: 2px }

/* 大运 */
.dayun-scroll { overflow-x: auto; padding-bottom: 8px; margin-top: 14px; -webkit-overflow-scrolling: touch }
.dayun-row { display: flex; min-width: max-content; gap: 8px }
.dy-box {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 12px; text-align: center; min-width: 78px; position: relative;
}
.dy-box.active { border-color: var(--gold); background: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212, 175, 55, .1) }
.dy-age { font-size: .7rem; color: var(--muted); margin-bottom: 2px }
.dy-gz { font-size: 1.1rem; color: var(--text); font-weight: 600; letter-spacing: 1px }
.dy-year { font-size: .66rem; color: var(--muted) }

/* 运势块 */
.fortune-block {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s); padding: 14px 16px; margin-bottom: 12px;
}
.fb-time { font-size: .8rem; color: var(--gold2); margin-bottom: 6px; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap }
.fb-desc { font-size: .9rem; line-height: 1.8; color: var(--text) }
.highlight { color: var(--gold2); font-weight: 600 }
.alert-bad { color: var(--bad); font-weight: 600 }
.alert-good { color: var(--good); font-weight: 600 }
.flex-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 }

/* 五行标签 */
.wx-tag { border-radius: 6px; padding: 2px 9px; font-size: .74rem; font-weight: 600; display: inline-block; margin: 2px }
.wx-mu { background: rgba(80, 180, 110, .16); color: #8fe0a8 }
.wx-huo { background: rgba(230, 90, 70, .16); color: #ff9a86 }
.wx-tu { background: rgba(200, 150, 50, .18); color: #f2d27c }
.wx-jin { background: rgba(220, 220, 220, .14); color: #e6e6e6 }
.wx-shui { background: rgba(80, 130, 230, .18); color: #9ec6ff }

/* 页脚 */
footer { text-align: center; padding: 28px 20px 40px; font-size: .74rem; color: var(--muted); letter-spacing: .1em; position: relative; z-index: 10; line-height: 2 }
footer button { background: none; border: none; color: var(--gold); font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }

::-webkit-scrollbar { width: 6px; height: 6px }
::-webkit-scrollbar-track { background: var(--bg-2) }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, .3); border-radius: 3px }

/* 分享条 */
.share-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 6px }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px;
  border: 1px solid var(--line-gold); border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-size: .84rem; cursor: pointer; transition: all .2s;
}
.share-btn:hover { background: var(--gold-dim); border-color: var(--gold) }
.share-btn .ico { font-size: 1.05rem }
.share-toast {
  position: fixed; bottom: 92px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(22, 19, 31, .96); border: 1px solid var(--line-gold); color: var(--gold2);
  padding: 11px 22px; border-radius: 10px; font-size: .86rem; z-index: 9999;
  opacity: 0; pointer-events: none; transition: all .3s ease; box-shadow: var(--shadow); max-width: 92vw; text-align: center;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }

/* 历史记录 */
.hist-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
  color: var(--text-2); font-size: .82rem; cursor: pointer; transition: all .2s;
}
.hist-btn:hover { background: var(--gold-dim); border-color: var(--line-gold); color: var(--gold2) }
.hist-badge { display: inline-block; background: var(--gold); color: #1a1200; font-size: .66rem; font-weight: 700; padding: 0 7px; border-radius: 10px; line-height: 1.6 }
.hist-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 8000;
  display: none; justify-content: center; align-items: flex-start; padding: 32px 14px; overflow-y: auto;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hist-overlay.open { display: flex }
.hist-panel {
  width: 100%; max-width: 600px; background: var(--surface); border: 1px solid var(--line-gold);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow); max-height: 84vh; overflow-y: auto;
}
.hist-panel h3 { font-family: var(--font-display); color: var(--gold2); font-size: 1.05rem; margin: 0 0 14px; text-align: center; letter-spacing: .1em }
.hist-empty { text-align: center; color: var(--muted); font-size: .86rem; padding: 40px 0 }
.hist-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all .2s }
.hist-item:hover { border-color: var(--line-gold) }
.hist-item .hi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px }
.hist-item .hi-name { font-size: .94rem; font-weight: 600; color: var(--gold2) }
.hist-item .hi-time { font-size: .7rem; color: var(--muted) }
.hist-item .hi-info { font-size: .8rem; color: var(--text-2); line-height: 1.7 }
.hist-item .hi-info b { color: var(--text) }
.hist-item .hi-fortune { margin-top: 8px; padding: 8px 10px; background: rgba(255, 255, 255, .03); border-radius: 6px; font-size: .78rem; line-height: 1.6 }
.hist-item .hi-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap }
.hist-item .hi-btn { height: 32px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--line-gold); background: transparent; color: var(--gold2); font-size: .76rem; cursor: pointer; transition: all .2s }
.hist-item .hi-btn:hover { background: var(--gold-dim) }
.hist-item .hi-btn.del { border-color: rgba(232, 128, 122, .35); color: var(--bad) }
.hist-item .hi-btn.del:hover { background: rgba(232, 128, 122, .1) }
.hist-close { display: block; margin: 16px auto 0; height: 40px; padding: 0 36px; border-radius: 9px; border: 1px solid var(--line-gold); background: transparent; color: var(--gold2); font-size: .86rem; cursor: pointer }
.hist-close:hover { background: var(--gold-dim) }

/* 弹窗（合婚 / 锦囊 / 反馈 / 会员）统一表面 */
.modal-panel {
  background: var(--surface); border: 1px solid var(--line-gold); border-radius: 18px;
  padding: 26px 22px; width: 92%; max-width: 440px; position: relative; box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 8px }
.modal-close:hover { color: var(--text) }
.modal-title { font-family: var(--font-display); color: var(--gold2); text-align: center; font-size: 1.2rem; letter-spacing: .08em; margin-bottom: 6px }
.modal-sub { color: var(--text-2); font-size: .84rem; text-align: center; margin-bottom: 18px }

/* 会员方案 */
.plan { border-radius: 14px; padding: 16px; cursor: pointer; transition: all .2s; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: center; position: relative }
.plan:hover { border-color: var(--line-gold) }
.plan-name { font-size: 1rem; font-weight: 600; color: var(--text) }
.plan-price { font-size: 1.7rem; color: var(--text); font-weight: 700; margin: 2px 0 }
.plan-price small { font-size: .9rem; color: var(--muted); font-weight: 400 }
.plan-note { font-size: .78rem; color: var(--muted) }
.plan.featured { border: 1.5px solid var(--gold); background: var(--gold-dim); margin-top: 18px }
.plan.featured .plan-price { color: var(--gold2); font-size: 2.1rem }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1200; font-weight: 700; font-size: .72rem; padding: 2px 12px; border-radius: 10px; white-space: nowrap }

/* PWA 安装按钮 */
#pwaInstallBtn {
  display: none; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(22, 19, 31, .9); backdrop-filter: blur(12px); border: 1px solid var(--line-gold);
  color: var(--text); height: 42px; padding: 0 20px; border-radius: 999px; font-size: .84rem; cursor: pointer; z-index: 900;
}

@media (max-width: 600px) {
  main { padding: 16px 12px 100px }
  .sh { margin: 28px 0 12px }
  .share-toast { bottom: auto; top: 14px; transform: translateX(-50%) translateY(-12px) }
  .share-toast.show { transform: translateX(-50%) translateY(0) }
  .sec-nav { margin: 0 -12px 6px; padding: 8px 12px }
}
