/* 八字命书 · 视觉体系 V1 —— 东方雅致 × 现代极简 */
:root {
  --ink: #2C3E66;          /* 黛蓝 主色 */
  --ink-deep: #1E2B4A;
  --cinnabar: #C0392B;     /* 朱砂红 点睛 */
  --paper: #FAF6EF;        /* 宣纸米白 */
  --paper-2: #F3EDDF;
  --bamboo: #3E7C5B;       /* 竹青 正向 */
  --gold: #C9A227;
  --text: #2A2F3A;
  --muted: #8A8F9C;
  --line: #E5DFD0;
  --card: #FFFFFF;

  /* 五行色 */
  --wx-mu: #3E7C5B; --wx-huo: #C0392B; --wx-tu: #C9A227; --wx-jin: #71808F; --wx-shui: #2B5A88;

  --radius: 14px;
  --shadow: 0 2px 12px rgba(44, 62, 102, 0.08);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B2030; --paper-2: #222840; --card: #242B44; --text: #E8E6E0; --muted: #9AA0B5; --line: #39415E;
    /* 深色模式下 --ink 作为文字/边框色需提亮（按钮渐变用硬编码色不受影响） */
    --ink: #B7C6EC; --ink-deep: #D6DFF7;
    --wx-mu: #5FA383; --wx-huo: #E06552; --wx-tu: #D9B545; --wx-jin: #93A3B5; --wx-shui: #5588C2;
    --shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.7; min-height: 100vh;
  background-image: radial-gradient(circle at 15% -5%, rgba(44,62,102,0.06) 0, transparent 45%);
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: 15px; color: var(--text); }

/* ===== 布局 ===== */
.page { max-width: 480px; margin: 0 auto; padding: 0 16px 96px; }
@media (min-width: 900px) { .page { max-width: 860px; } }
.appbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.appbar .title { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; color: var(--ink); }
.appbar .actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: transparent; font-size: 17px; transition: background .15s;
}
.icon-btn:hover { background: rgba(44,62,102,.08); }

/* ===== 通用组件 ===== */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; border: 1px solid var(--line); margin-bottom: 14px;
}
.btn-primary {
  display: block; width: 100%; padding: 13px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--ink) 0%, #3A5490 100%); color: #F5EFDD;
  font-size: 16px; font-family: var(--serif); letter-spacing: 4px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(44,62,102,.30); transition: transform .12s;
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  display: block; width: 100%; padding: 11px 20px; border-radius: 999px; text-align: center;
  border: 1px solid var(--ink); color: var(--ink); font-size: 14px; letter-spacing: 2px;
}
.btn-mini {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; background: var(--cinnabar);
  color: #FAF3E3; font-family: var(--serif); font-size: 15px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(250,243,227,.5);
}
.kicker { font-size: 12px; letter-spacing: 6px; color: var(--muted); text-transform: uppercase; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--ink); margin: 22px 0 10px; }
.section-title .zh-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--cinnabar); }
.muted { color: var(--muted); font-size: 13px; }

/* ===== 落地页 hero ===== */
.hero { text-align: center; padding: 34px 8px 26px; }
.hero .kicker { margin-bottom: 10px; }
.hero h1 { font-size: 34px; letter-spacing: 6px; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--cinnabar); }
.hero .sub { color: var(--muted); margin: 12px 0 22px; font-size: 14px; }
.hero .seal { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; margin-bottom: 16px; }
.steps { display: flex; gap: 8px; margin: 18px 0 6px; }
.steps .step { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.steps .step b { display: block; font-family: var(--serif); color: var(--ink); font-size: 14px; }
.steps .step span { font-size: 11px; color: var(--muted); }

/* ===== 书架 ===== */
.shelf-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .shelf-grid { grid-template-columns: 1fr 1fr; } }
.book-card {
  position: relative; display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow); transition: transform .12s;
}
.book-card:hover { transform: translateY(-2px); }
.book-card .avatar {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: #FAF6EF;
}
.book-card .info { flex: 1; min-width: 0; }
.book-card .name { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.book-card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.book-card .tagline { font-size: 12px; color: var(--cinnabar); margin-top: 4px; }
.book-card .more { color: var(--muted); padding: 6px; }
.add-card {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); cursor: pointer;
}
.add-card:hover { border-color: var(--ink); color: var(--ink); }

/* ===== 底部抽屉（表单） ===== */
.sheet-mask { position: fixed; inset: 0; background: rgba(20,26,44,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 18px 30px;
  max-height: 88vh; overflow-y: auto; transform: translateY(102%); transition: transform .28s cubic-bezier(.32,.72,.28,1);
}
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; max-height: 84vh; border-radius: 20px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}
.sheet.show { transform: translateY(0); }
.sheet .sheet-title { font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-row input[type=text], .form-row select, .inline-3 select, #quick-form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); outline: none;
}
.form-row select, .inline-3 select, #quick-form select { color: var(--text); appearance: auto; }
.form-row input:focus, .form-row select:focus, .inline-3 select:focus { border-color: var(--ink); }
.inline-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.seg { display: flex; background: var(--paper-2); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.12), inset 0 0 0 1.5px var(--ink); }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--bamboo); }
.switch.on::after { left: 23px; }

/* ===== 命盘页 ===== */
.chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chart-head .avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FAF6EF; font-family: var(--serif); font-size: 20px; font-weight: 700; flex: none; }
.chart-head .who { flex: 1; min-width: 0; }
.chart-head .who .name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.chart-head .who .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.chart-head .switch-link { color: var(--cinnabar); font-size: 13px; padding: 4px 8px; border: 1px solid rgba(192,57,43,.35); border-radius: 999px; }

.pillar-table { width: 100%; border-collapse: collapse; text-align: center; }
.pillar-table th { font-family: var(--serif); font-size: 13px; color: var(--muted); font-weight: 400; padding: 4px 0 10px; letter-spacing: 2px; }
.pillar-table td { padding: 5px 0; border-top: 1px dashed var(--line); }
.pillar-table .row-label { font-size: 11px; color: var(--muted); white-space: nowrap; padding-right: 4px; }
.gz { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.25; position: relative; display: inline-block; cursor: pointer; padding: 0 2px; }
.gz .ss-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-family: var(--sans); font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: nowrap;
}
.gz.day-master::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: -2px; height: 3px; border-radius: 2px; background: var(--cinnabar); }
.wx-mu { color: var(--wx-mu); } .wx-huo { color: var(--wx-huo); } .wx-tu { color: var(--wx-tu); }
.wx-jin { color: var(--wx-jin); } .wx-shui { color: var(--wx-shui); }
.canggan { font-size: 12px; letter-spacing: 1px; }
.canggan .cg { cursor: pointer; }
.sub-cell { font-size: 12px; color: var(--muted); }
.kw-cell { font-size: 12px; color: var(--cinnabar); }
.pro-rows th.pro-head { color: var(--ink); }

/* 摘要卡 */
.summary-card { display: flex; gap: 12px; align-items: stretch; }
.summary-card .main { flex: 1; }
.summary-card .verdict { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.4; }
.summary-card .verdict em { font-style: normal; color: var(--cinnabar); }
.summary-card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }

/* 条形图 */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; }
.bar-row .bar-bg { height: 9px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.bar-row .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 大运时间轴 */
.dy-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.dy-strip::-webkit-scrollbar { display: none; }
.dy-pill {
  flex: none; min-width: 86px; text-align: center; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
}
.dy-pill .age { font-size: 11px; color: var(--muted); }
.dy-pill .gz { font-size: 19px; padding: 0; }
.dy-pill.now { border-color: var(--cinnabar); background: rgba(192,57,43,.06); }
.dy-pill.now .age::after { content: ' · 当前行运'; color: var(--cinnabar); }
.dy-pill.sel { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.ln-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.ln-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.ln-item.now { border-color: var(--cinnabar); background: rgba(192,57,43,.05); }
.ln-item .y { color: var(--muted); font-size: 12px; }
.ln-item .rel { margin-left: auto; font-size: 11px; color: var(--muted); }
.ln-item .rel.warn { color: var(--cinnabar); }
.ln-item .rel.good { color: var(--bamboo); }

/* 释义抽屉 */
.term-sheet .term-title { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.term-sheet .term-tag { font-size: 12px; color: var(--cinnabar); margin: 2px 0 8px; }
.term-sheet .term-body { font-size: 14px; }
.term-sheet .term-advice { margin-top: 10px; padding: 10px 12px; background: var(--paper-2); border-radius: 10px; font-size: 13px; }
.term-sheet .term-mine { margin-top: 10px; font-size: 13px; color: var(--ink); }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-around; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 2px 14px; }
.tabbar button .ico { font-size: 19px; font-family: var(--serif); }
.tabbar button.on { color: var(--ink); font-weight: 600; }

.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 120;
  background: rgba(30,43,74,.92); color: #F2EDDD; padding: 9px 18px; border-radius: 999px; font-size: 13px;
  opacity: 0; transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.footer-note { text-align: center; color: var(--muted); font-size: 11px; padding: 18px 0 8px; line-height: 1.8; }

/* ===== 命书（M2）===== */
.book-anim { text-align: center; padding: 90px 20px 40px; }
.flip-book { position: relative; width: 110px; height: 150px; margin: 0 auto 30px; perspective: 600px; }
.flip-page { position: absolute; inset: 0; border-radius: 6px 12px 12px 6px; background: linear-gradient(135deg, #2C3E66, #46608F);
  box-shadow: 0 10px 26px rgba(44,62,102,.4); animation: flip 1.6s ease-in-out infinite; transform-origin: left center; }
.flip-page.p2 { animation-delay: .4s; opacity: .85; }
@keyframes flip { 0%,100% { transform: rotateY(0deg); } 50% { transform: rotateY(-165deg); } }
.anim-lines { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.anim-line { font-size: 14px; color: var(--muted); opacity: 0; transform: translateY(6px); transition: all .45s; }
.anim-line.on { opacity: 1; transform: none; color: var(--ink); }
.anim-line:last-child.on { color: var(--cinnabar); font-family: var(--serif); font-size: 16px; letter-spacing: 3px; }

.book-wrap { display: flex; flex-direction: column; align-items: center; padding: 18px 0 10px; }
.book-cover {
  width: 78%; max-width: 320px; aspect-ratio: 3/4.3; border-radius: 10px 16px 16px 10px; position: relative;
  background: linear-gradient(150deg, #233257 0%, #2C3E66 55%, #3A5490 100%);
  color: #F2EBD9; text-align: center; padding: 44px 22px 26px;
  box-shadow: 0 18px 44px rgba(30,43,74,.45), inset 0 0 0 1px rgba(242,235,217,.22), inset -14px 0 24px rgba(0,0,0,.18);
  display: flex; flex-direction: column; margin-bottom: 22px;
}
.book-cover::after { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: rgba(242,235,217,.28); }
.bc-seal { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 8px;
  background: var(--cinnabar); color: #FAF3E3; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(250,243,227,.5); }
.bc-kicker { font-size: 10px; letter-spacing: 5px; opacity: .6; }
.bc-title { font-family: var(--serif); font-size: 30px; letter-spacing: 4px; margin: 14px 0 6px; }
.bc-pillars { font-family: var(--serif); font-size: 17px; letter-spacing: 8px; opacity: .85; margin: 10px 0; }
.bc-main { margin-top: auto; margin-bottom: 12px; }
.bc-main span { display: block; font-size: 11px; letter-spacing: 4px; opacity: .6; margin-bottom: 4px; }
.bc-main b { font-family: var(--serif); font-size: 22px; color: #EFCFA6; letter-spacing: 6px; }
.bc-sub { font-size: 12px; opacity: .65; }
.book-cover-mini { text-align: center; color: var(--muted); font-size: 13px; padding: 4px 0 12px; }

.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.toc-item:hover { border-color: var(--ink); }
.toc-no { font-family: var(--serif); font-size: 15px; color: var(--cinnabar); }
.toc-main { flex: 1; min-width: 0; }
.toc-title { font-size: 15px; color: var(--ink); font-family: var(--serif); }
.toc-arch { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-lock { font-size: 11px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px; }
.toc-read { font-size: 11px; color: var(--bamboo); }

.ch-verdict { text-align: center; }
.ch-arch { font-size: 12px; letter-spacing: 4px; color: var(--muted); }
.ch-verdict-text { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 8px 0 10px; line-height: 1.5; }
.ch-basis summary { cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
.ch-basis ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--text); }
.ch-basis li { margin-bottom: 4px; }
.ch-section { margin-bottom: 16px; }
.ch-section h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.ch-section p { margin: 0; font-size: 14px; line-height: 1.9; }
.ch-section.blurred { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.ch-lock { text-align: center; padding: 18px 10px 8px; border-top: 1px dashed var(--line); }
.lock-title { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.ch-advice { margin: 0; padding-left: 4px; list-style: none; }
.ch-advice li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; border-bottom: 1px dashed var(--line); }
.ch-advice li:last-child { border-bottom: none; }
.ch-advice li::before { content: '✦'; position: absolute; left: 4px; color: var(--cinnabar); }
.classic-ref { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.classic-ref:last-child { border-bottom: none; }
.ch-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* ===== FAQ / 分享卡 / 问命书 ===== */
.faq-item h3 { font-size: 15px; color: var(--ink); margin: 14px 0 4px; }
.faq-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.8; }
.faq-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-term { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); font-size: 13px; }
.share-modal { position: fixed; z-index: 110; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--card); border-radius: 16px; padding: 14px; max-width: 86vw; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.share-modal img { width: 100%; border-radius: 10px; display: block; }
.share-tip { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 8px; }
.ask-fab { position: fixed; right: 18px; bottom: 30px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--cinnabar); color: #FAF3E3; font-family: var(--serif); font-size: 14px; letter-spacing: 2px; box-shadow: 0 6px 18px rgba(192,57,43,.4); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { color: var(--ink); }
.ask-answer { margin-top: 14px; padding: 14px; background: var(--paper-2); border-radius: 12px; font-size: 14px; line-height: 1.8; }

/* ===== 今日运势 / 合盘 / 引导 / 运之书 ===== */
.today-card { padding: 14px 16px; }
.today-head { display: flex; justify-content: space-between; align-items: center; }
.today-date { font-size: 13px; color: var(--muted); }
.today-gz { font-size: 26px; color: var(--ink); letter-spacing: 2px; text-align: right; }
.today-gz span { display: block; font-size: 10px; color: var(--muted); letter-spacing: 3px; }
.today-personal { font-size: 13px; margin-top: 8px; padding: 8px 10px; background: var(--paper-2); border-radius: 8px; line-height: 1.7; }
.today-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.today-yi { font-size: 13px; margin-top: 6px; color: var(--text); }
.today-yi .muted { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px; margin-right: 8px; font-size: 12px; }
.today-yi .muted:first-child { background: rgba(62,124,91,.15); color: var(--bamboo); }
.today-yi + .today-yi .muted:first-child { background: rgba(192,57,43,.12); color: var(--cinnabar); }
.match-score { font-size: 52px; line-height: 1.2; }
.lens-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lens-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.lens-name { font-size: 12px; color: var(--muted); }
.lens-score { font-family: var(--serif); font-size: 30px; }
.lens-label { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.coach-mask { position: fixed; inset: 0; background: rgba(15,20,35,.55); z-index: 130; }
.coach-box { position: fixed; z-index: 131; left: 50%; bottom: 60px; transform: translateX(-50%); width: 86%; max-width: 400px;
  background: var(--card); border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.35); text-align: center; }
.coach-box h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.coach-box p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.coach-step { font-size: 11px; color: var(--cinnabar); letter-spacing: 2px; margin-bottom: 8px; }
.coach-btns { display: flex; justify-content: center; gap: 12px; align-items: center; }

/* ===== 轻测评 ===== */
.quiz-q { font-size: 17px; color: var(--ink); text-align: center; margin: 12px 0 16px; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; text-align: left; color: var(--text); }
.quiz-opt:hover { border-color: var(--ink); }
.quiz-result { font-size: 40px; color: var(--ink); margin: 10px 0 4px; letter-spacing: 6px; }

/* ===== 支付方式选择 ===== */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-m { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; }
.pay-m:hover { border-color: var(--ink); }
.pay-m b { color: var(--ink); font-size: 15px; }
.pay-ico { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 17px; flex: none; }
.pay-m div { flex: 1; }
