/* ============ 纳甲六爻 · 新中式国风 ============ */
:root {
  --font-title: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}
html[data-theme="dark"] {
  --bg: #12100e;
  --bg2: #1a1714;
  --card: rgba(38, 34, 29, 0.72);
  --card-border: rgba(120, 106, 84, 0.28);
  --ink: #d8cfc0;
  --ink-strong: #e8dcc3;
  --gold: #c9a86a;
  --gold-hi: #e6c98f;
  --cyan: #5b7f8c;      /* 石青 */
  --cyan-soft: rgba(91, 127, 140, 0.18);
  --red: #a4432e;       /* 赭石 */
  --red-soft: rgba(164, 67, 46, 0.16);
  --muted: #8b8272;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --grad-hero: radial-gradient(120% 80% at 50% 0%, rgba(91,127,140,.16), transparent 60%), radial-gradient(90% 60% at 80% 100%, rgba(201,168,106,.08), transparent 55%);
}
html[data-theme="light"] {
  --bg: #f5f1e8;        /* 米白宣纸 */
  --bg2: #efe9dc;
  --card: rgba(255, 253, 247, 0.78);
  --card-border: rgba(120, 106, 84, 0.25);
  --ink: #33302b;       /* 炭黑 */
  --ink-strong: #1e1b17;
  --gold: #96783c;
  --gold-hi: #7d6231;
  --cyan: #6d8f9c;      /* 青灰 */
  --cyan-soft: rgba(109, 143, 156, 0.14);
  --red: #9c4a35;       /* 赭石 */
  --red-soft: rgba(156, 74, 53, 0.1);
  --muted: #8a8375;
  --shadow: 0 6px 24px rgba(90, 78, 55, .14);
  --grad-hero: radial-gradient(120% 80% at 50% 0%, rgba(109,143,156,.12), transparent 60%), radial-gradient(90% 60% at 80% 100%, rgba(150,120,60,.07), transparent 55%);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
#app { position: relative; height: 100%; }
input, textarea { user-select: text; -webkit-user-select: text; }

/* ---------- 页面与转场 ---------- */
.page {
  position: absolute; inset: 0;
  display: none;
  background: var(--bg);
  background-image: var(--grad-hero);
}
.page.active { display: block; }
html.anim .page.active { animation: pageIn .32s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px 0;
}
.safe-bottom { height: calc(env(safe-area-inset-bottom, 0px) + 96px); }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 34px 0 26px; }
.hero-seal {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold-hi);
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--red-soft), transparent);
  box-shadow: 0 0 24px rgba(201,168,106,.14), inset 0 0 12px rgba(201,168,106,.08);
  transform: rotate(-2deg);
}
.hero-title {
  font-size: 34px; letter-spacing: 14px; text-indent: 14px;
  color: var(--ink-strong); font-weight: 700;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 8px; font-size: 13px; letter-spacing: 6px; color: var(--muted); }

.card {
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.glass {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.field-label {
  display: block; font-size: 13px; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 10px;
}
textarea, input[type="search"], input[type="number"], input[type="text"] {
  width: 100%;
  background: rgba(127,127,127,.07);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
  resize: none;
}
textarea:focus, input:focus { border-color: var(--gold); }
.char-count { text-align: right; font-size: 11px; color: var(--muted); margin-top: 6px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 10px; }

/* 分类宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.cat-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 11px 8px;
  text-align: center;
  font-size: 14px; letter-spacing: 2px;
  color: var(--ink);
  background: rgba(127,127,127,.05);
  transition: all .2s;
}
.cat-item small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.cat-item.on {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: linear-gradient(160deg, rgba(201,168,106,.16), rgba(201,168,106,.05));
  box-shadow: 0 0 14px rgba(201,168,106,.15);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--card-border);
  font-size: 13px; color: var(--ink);
  background: rgba(127,127,127,.05);
}
.chip.on { border-color: var(--cyan); color: var(--gold-hi); background: var(--cyan-soft); }

/* 起卦方式 */
.mode-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.mode-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  border-radius: 18px; padding: 17px 16px;
  border: 1px solid var(--card-border);
  color: var(--ink); font-family: var(--font-body);
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.mode-btn:active { transform: scale(.98); }
.mode-icon { font-size: 26px; width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--cyan-soft); }
.mode-text b { display: block; font-size: 16.5px; letter-spacing: 2px; color: var(--ink-strong); }
.mode-text small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }

/* ---------- 摇卦 ---------- */
.coin-head { padding: 22px 2px 16px; }
.coin-head h2 { font-size: 24px; letter-spacing: 6px; color: var(--ink-strong); }
.coin-head p { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.coin-head b { color: var(--gold-hi); }

.coin-stage {
  position: relative;
  height: 300px;
  margin: 6px 0 10px;
  perspective: 900px;
  overflow: hidden;
}
.coin-bowl {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 78%; height: 96px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, rgba(91,127,140,.10), rgba(91,127,140,.22));
  border: 1px solid var(--card-border);
  border-top: none;
  box-shadow: inset 0 -14px 30px rgba(0,0,0,.25);
}
.coin {
  position: absolute; top: 40px; left: 50%;
  width: 74px; height: 74px;
  transform-style: preserve-3d;
  will-change: transform;
}
.coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.22), inset 0 3px 8px rgba(255,255,255,.28), 0 6px 14px rgba(0,0,0,.4);
}
.coin-face.front {
  background: radial-gradient(circle at 34% 30%, #c9a86a, #8a6d3b 58%, #6e5528);
  color: #3a2c12;
}
.coin-face.front::before { content: ""; position: absolute; width: 22px; height: 22px; background: #171310; border-radius: 3px; box-shadow: inset 0 0 0 2px #cbb27f; }
.coin-face.front::after { content: "字"; position: absolute; top: 7px; font-size: 11px; color: #f0dfae; letter-spacing: 0; }
.coin-face.back {
  background: radial-gradient(circle at 34% 30%, #b08d54, #7a5f31 58%, #5d471f);
  transform: rotateY(180deg);
  color: #e8d5a3;
}
.coin-face.back::before { content: ""; position: absolute; width: 22px; height: 22px; background: #171310; border-radius: 3px; box-shadow: inset 0 0 0 2px #b89c68; }
.coin.shaking { animation: shake .5s ease-in-out; }
@keyframes shake {
  0% { transform: translate(-50%, 0) rotateX(0) rotateY(0); }
  30% { transform: translate(-58%, -90px) rotateX(280deg) rotateY(120deg); }
  60% { transform: translate(-42%, -120px) rotateX(560deg) rotateY(300deg); }
  100% { transform: translate(-50%, -60px) rotateX(720deg) rotateY(360deg); }
}
html:not(.anim) .coin.shaking { animation: none; }

.toss-result { min-height: 30px; text-align: center; font-size: 17px; letter-spacing: 3px; color: var(--gold-hi); margin-bottom: 8px; }
.toss-result .dong { color: var(--red); }

/* 已摇之爻堆叠（自上而下显示：后摇的在上，初爻在最下） */
.yao-stack { display: flex; flex-direction: column-reverse; gap: 7px; margin-bottom: 16px; }
.yao-line { display: flex; align-items: center; gap: 9px; opacity: 0; }
html.anim .yao-line { animation: yaoIn .45s ease both; }
@keyframes yaoIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.yao-line .no { width: 30px; font-size: 11px; color: var(--muted); text-align: right; flex: none; }
.yao-line .bar { flex: 1; display: flex; gap: 8px; height: 13px; }
.yao-line .bar i { border-radius: 4px; flex: 1; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 1px 5px rgba(201,168,106,.35); }
.yao-line.yin .bar i:nth-child(2) { display: none; }
.yao-line.yin .bar { justify-content: space-between; }
.yao-line.yin .bar i { flex: 0 0 42%; }
.yao-line.dong .bar i { background: linear-gradient(180deg, #d0684f, var(--red)); box-shadow: 0 1px 6px rgba(164,67,46,.45); }
.yao-line .tag { width: 58px; flex: none; font-size: 11.5px; color: var(--muted); }
.yao-line.dong .tag { color: var(--red); }

/* ---------- 按钮 ---------- */
.primary-btn {
  display: block; width: 100%;
  padding: 15px;
  border: none; border-radius: 15px;
  font-family: var(--font-title);
  font-size: 17px; letter-spacing: 6px; text-indent: 6px;
  color: #211a0e;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 60%, #a8884e);
  box-shadow: 0 6px 20px rgba(201,168,106,.3), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s, opacity .15s;
}
.primary-btn:active { transform: scale(.985); }
.primary-btn:disabled { opacity: .45; }
.ghost-btn {
  display: block; width: 100%;
  margin-top: 12px; padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px; letter-spacing: 4px;
}
.ghost-btn.small { width: auto; display: inline-block; padding: 8px 18px; margin-top: 10px; font-size: 13px; }
.ghost-btn.danger { color: var(--red); border-color: var(--red); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--ink); font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 报数/时间 ---------- */
.num-row { display: flex; gap: 12px; }
.num-field { flex: 1; }
.num-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.time-now { text-align: center; padding: 8px 0 16px; }
.time-now .big { font-size: 30px; letter-spacing: 3px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.time-now .sm { margin-top: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.lng-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lng-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.lng-row output { width: 68px; text-align: right; font-size: 13px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.formula-text { font-size: 13px; line-height: 1.9; color: var(--ink); }

/* ---------- 结果页 ---------- */
.result-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 2px 14px; }
.result-head h2 { font-size: 22px; letter-spacing: 4px; color: var(--ink-strong); }
.result-actions { display: flex; gap: 9px; }
#board-wrap { margin-bottom: 14px; }
.report-sec { margin-bottom: 14px; }
.report-sec h3 {
  font-size: 16px; letter-spacing: 3px; color: var(--gold-hi);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
.report-sec h3::before { content: "◈ "; color: var(--cyan); }
.report-sec p { font-size: 14.5px; line-height: 2; color: var(--ink); text-align: justify; margin-bottom: 9px; text-indent: 2em; }
.report-sec p.risk { color: var(--red); }
.verdict-band {
  text-align: center; padding: 14px; margin-bottom: 14px;
  border-radius: 16px; border: 1px solid var(--gold);
  background: linear-gradient(160deg, rgba(201,168,106,.14), transparent);
}
.verdict-band .lv { font-size: 26px; letter-spacing: 10px; text-indent: 10px; color: var(--gold-hi); font-weight: 700; }
.verdict-band.bad { border-color: var(--red); background: linear-gradient(160deg, var(--red-soft), transparent); }
.verdict-band.bad .lv { color: var(--red); }
.verdict-band .tx { margin-top: 5px; font-size: 13px; color: var(--muted); letter-spacing: 2px; }

/* ---------- 历史 ---------- */
.search-bar { margin-bottom: 14px; }
.hist-item { padding: 14px 16px; margin-bottom: 11px; position: relative; }
.hist-item .h1 { display: flex; justify-content: space-between; align-items: baseline; }
.hist-item .gua { font-size: 16.5px; color: var(--gold-hi); letter-spacing: 1px; }
.hist-item .date { font-size: 11px; color: var(--muted); }
.hist-item .q { margin-top: 6px; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-item .meta { margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; }
.hist-item .m-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan); border: 1px solid transparent; }
.hist-item .m-tag.verdict { background: var(--red-soft); color: var(--red); }
.hist-item .m-tag.gold { background: rgba(201,168,106,.14); color: var(--gold); }
.hist-item .note-flag { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: var(--muted); }
.empty-tip { text-align: center; color: var(--muted); font-size: 13.5px; padding: 48px 0; letter-spacing: 2px; }

/* ---------- 文库 ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.lib-cell {
  aspect-ratio: 1; border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink);
}
.lib-cell .gname { font-size: 17px; color: var(--gold-hi); font-weight: 700; }
.lib-cell .gno { font-size: 10px; color: var(--muted); }
.lib-cell .mini { display: flex; flex-direction: column-reverse; gap: 2px; width: 26px; }
.lib-cell .mini i { height: 3px; border-radius: 1.5px; background: var(--cyan); }
.lib-cell .mini i.split { background: linear-gradient(90deg, var(--cyan) 42%, transparent 42%, transparent 58%, var(--cyan) 58%); }

/* 弹层 */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 60; backdrop-filter: blur(3px); }
.sheet.open { display: block; }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; top: 8%;
  background: var(--bg2);
  border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--card-border);
}
html.anim .sheet.open .sheet-body { animation: sheetUp .3s ease both; }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--card-border); }
.sheet-head h3 { font-size: 19px; letter-spacing: 3px; color: var(--gold-hi); }
.sheet-mini .sheet-body { max-height: 76%; }
.as-btns { padding-top: 12px; }
.sheet-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 20px calc(env(safe-area-inset-bottom, 0px) + 26px); }
.ls-sec { margin-bottom: 18px; }
.ls-sec h4 { font-size: 14px; color: var(--gold); letter-spacing: 3px; margin-bottom: 9px; }
.ls-sec p, .ls-sec li { font-size: 14.5px; line-height: 2; color: var(--ink); text-align: justify; }
.ls-sec ul { list-style: none; }
.ls-sec li { padding-left: 1em; border-left: 2px solid var(--card-border); margin-bottom: 8px; }
.ls-sec .zhu { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- 设置 ---------- */
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--card-border); font-size: 15px; letter-spacing: 1px; }
.set-row:last-child { border-bottom: none; }
.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(127,127,127,.25);
  transition: background .2s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(22px); }
.about { text-align: center; font-size: 11.5px; color: var(--muted); line-height: 2; margin-top: 26px; letter-spacing: 1px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: var(--card);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-top: 1px solid var(--card-border);
}
.tab {
  flex: 1; border: none; background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0;
}
.tab-ico { font-size: 19px; }
.tab.active { color: var(--gold-hi); }

/* ---------- Toast / Loading ---------- */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,18,15,.92); color: #e8dcc3;
  border: 1px solid rgba(201,168,106,.4);
  padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; letter-spacing: 1px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 99;
  max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { position: fixed; inset: 0; background: rgba(10,9,8,.45); display: none; align-items: center; justify-content: center; z-index: 90; backdrop-filter: blur(2px); }
.loading.show { display: flex; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(201,168,106,.25);
  border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
html:not(.anim) * { animation-duration: .001s !important; transition-duration: .001s !important; }

/* ---------- v2.0 门庭 / 模块入口 ---------- */
.gate-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 22px; padding: 0 2px;
}
.gate-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 22px 10px 18px;
  border-radius: 16px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gate-item:active { transform: scale(.965); }
.gate-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(230, 201, 143, .12);
}
.gate-seal {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, inherit);
  font-size: 24px; font-weight: 700; color: var(--gold-hi);
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(201,168,106,.14), rgba(201,168,106,.05));
  box-shadow: 0 2px 10px rgba(0,0,0,.18), inset 0 0 8px rgba(201,168,106,.12);
}
.gate-item b { font-size: 15px; letter-spacing: 3px; color: var(--ink-strong); }
.gate-item small { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-align: center; line-height: 1.5; }
.gate-note {
  margin-top: 20px; padding: 0 10px;
  font-size: 11px; line-height: 1.8; letter-spacing: 1px;
  color: var(--muted); text-align: center; opacity: .8;
}
.disclaimer-card p { font-size: 11.5px; line-height: 1.9; color: var(--muted); letter-spacing: .5px; text-align: justify; }
.lib-cat { font-size: 12px; letter-spacing: 2px; color: var(--gold-hi); margin-bottom: 10px; }

/* ===== v2.1 白话解析卡片 ===== */
.plain-card { margin-top: 12px; }
.pl-p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink); text-align: justify; letter-spacing: .5px; white-space: pre-line; }
.pl-p:first-of-type { margin-top: 4px; }
.pl-p b { color: var(--gold-hi); font-weight: 600; margin-right: 2px; }

/* ===== v2.0.4 模块讲解 ===== */
.gate-good {
  margin-top: 6px; display: block;
  font-size: 10px; letter-spacing: 1px; line-height: 1.5;
  color: var(--gold); opacity: .9;
}
.mod-intro { margin-top: 12px; }
.mod-intro p { font-size: 12.5px; line-height: 1.9; color: var(--ink); text-align: justify; letter-spacing: .5px; }
.mod-intro .mi-good { margin-top: 8px; color: var(--gold-hi); font-size: 12px; letter-spacing: 2px; text-align: left; }

/* ===== 浏览器宽屏：居中应用列，底部导航与弹层同宽 ===== */
@media (min-width: 780px) {
  body { background: #0a0908; }
  html[data-theme="light"] body { background: #d9cfbc; }
  #app {
    position: relative; width: 520px; margin: 0 auto;
    box-shadow: 0 0 0 1px var(--card-border), 0 30px 90px rgba(0, 0, 0, .5);
  }
  .tabbar { left: 50%; right: auto; width: 520px; margin-left: -260px; }
  .sheet-body { left: 50%; right: auto; width: 520px; margin-left: -260px; border-radius: 22px 22px 0 0; }
}
