/* 瀚森命理 · 前台样式 —— 宣纸 · 墨 · 朱砂 */
:root {
  --paper: #f3ede1;
  --paper-2: #ebe2d0;
  --card: #fbf8f1;
  --ink: #1f1b16;
  --ink-2: #4a4238;
  --muted: #8a7e6d;
  --line: #d9ccb4;
  --line-soft: #e7dcc8;
  --red: #a8322b;
  --red-deep: #7c231e;
  --gold: #9c7a43;
  --night: #17140f;
  --wx-木: #4b7a58;
  --wx-火: #b5443a;
  --wx-土: #a27a3c;
  --wx-金: #9a8a62;
  --wx-水: #34557a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.75;
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(156,122,67,.08), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--red); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.serif { font-family: var(--serif); }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ———— 顶栏 ———— */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 600px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.seal {
  display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: #fbeee4;
  font-family: var(--serif); font-size: 14px; line-height: 1.05; letter-spacing: 0; border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255,240,230,.25); writing-mode: vertical-rl; text-orientation: upright; padding: 2px 0;
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; }
.topbar .link { font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ———— 首屏 ———— */
.hero {
  position: relative; color: #efe6d6; background: var(--night); overflow: hidden;
  margin: 0 auto; max-width: 600px; border-radius: 0 0 22px 22px; padding: 34px 22px 30px;
  background-image:
    radial-gradient(500px 260px at 85% 10%, rgba(168,50,43,.35), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(156,122,67,.22), transparent 70%);
}
.hero::after { /* 淡淡的八卦圆环 */
  content: ""; position: absolute; right: -90px; top: 40px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(239,230,214,.10); box-shadow: 0 0 0 26px rgba(239,230,214,.03), 0 0 0 54px rgba(239,230,214,.025);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.hero-title {
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 46px; line-height: 1.05; letter-spacing: .14em;
  color: #f6eddc; text-shadow: 0 2px 30px rgba(0,0,0,.4); margin: 0;
}
.hero-title small { display: block; font-size: 15px; letter-spacing: .4em; color: var(--gold); margin-right: 10px; }
.hero-copy { padding-top: 6px; }
.hero-copy .eyebrow { font-size: 12px; letter-spacing: .3em; color: #c9a873; }
.hero-copy h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.45; margin: 8px 0 12px; color: #fbf3e4; }
.hero-copy p { margin: 0 0 14px; color: #cbbfa9; font-size: 14px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; color: #e4d8c3; }
.hero-points li::before { content: "◆"; color: var(--red); font-size: 9px; margin-right: 8px; vertical-align: 2px; }
.price-line { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.price-line .now { font-size: 30px; color: #f3d9a4; }
.price-line .now small { font-size: 15px; }
.price-line .old { color: #8f826c; text-decoration: line-through; font-size: 14px; }

/* ———— 按钮 ———— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--red); color: #fff6ec; padding: 13px 22px; border-radius: 999px; font-size: 16px; letter-spacing: .08em;
  box-shadow: 0 8px 20px -10px rgba(168,50,43,.8), inset 0 -2px 0 rgba(0,0,0,.15); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.gold { background: linear-gradient(180deg, #c7a160, #9c7a43); color: #21190e; }

/* ———— 卡片与分节 ———— */
.section { padding: 28px 0 8px; }
.sec-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--serif); font-size: 20px; letter-spacing: .1em; }
.sec-title::before { content: ""; width: 4px; height: 20px; background: var(--red); border-radius: 2px; }
.sec-title .en { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .2em; margin-left: auto; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -24px rgba(60,40,10,.35); }
.card + .card { margin-top: 12px; }

/* ———— 表单 ———— */
.form-card { padding: 20px 18px 22px; }
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .05em; }
.label .opt { color: var(--muted); font-size: 12px; margin-left: 4px; }
.input, select.input {
  width: 100%; height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none;
  -webkit-appearance: none; appearance: none; font-size: 15px;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(156,122,67,.15); }
.row { display: grid; gap: 8px; }
.row.c3 { grid-template-columns: 1.2fr 1fr 1fr; }
.row.c2 { grid-template-columns: 1fr 1fr; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper-2); border-radius: 8px; padding: 3px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 8px 0; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink-2); margin: 0; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.check input { margin-top: 4px; accent-color: var(--red); width: 15px; height: 15px; flex: none; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }

/* ———— 目录预览 ———— */
.toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: 0; }
.toc li { counter-increment: toc; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc, cjk-ideographic); font-family: var(--serif); color: var(--red); width: 2.2em; flex: none; }
.toc b { font-family: var(--serif); font-weight: 600; letter-spacing: .05em; }
.toc span { color: var(--muted); font-size: 13px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.steps .n { font-family: var(--serif); font-size: 26px; color: var(--red); line-height: 1; }
.steps b { display: block; font-size: 14px; margin-top: 6px; }
.steps span { font-size: 12px; color: var(--muted); }

details.faq { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 18px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

/* ———— 命盘 ———— */
.pan { width: 100%; border-collapse: collapse; text-align: center; font-family: var(--serif); table-layout: fixed; }
.pan th { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.pan td { padding: 6px 2px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pan tr td:first-child, .pan tr th:first-child { font-family: var(--sans); font-size: 12px; color: var(--muted); width: 3.8em; text-align: left; }
.pan .big { font-size: 30px; line-height: 1.2; }
.pan .ss { font-size: 12px; color: var(--ink-2); font-family: var(--sans); }
.pan .hide { font-size: 12px; line-height: 1.5; font-family: var(--sans); }
.pan .dm { color: var(--red); }
.wx-木 { color: var(--wx-木); } .wx-火 { color: var(--wx-火); } .wx-土 { color: var(--wx-土); } .wx-金 { color: var(--wx-金); } .wx-水 { color: var(--wx-水); }

.wxbars { display: grid; gap: 8px; }
.wxbar { display: grid; grid-template-columns: 2em 1fr 3.4em; gap: 8px; align-items: center; font-size: 13px; }
.wxbar .k { font-family: var(--serif); font-size: 16px; }
.wxbar .track { height: 10px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.wxbar .fill { height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.wxbar .v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line-soft); }
.chip.red { background: #f6e3dd; color: var(--red-deep); border-color: #ecc9bf; }
.chip.gold { background: #f3e9d4; color: #6d5226; border-color: #e5d3ad; }

/* ———— 预览锁 ———— */
.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; opacity: .7; }
.locked .lock-mask { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(251,248,241,.2), rgba(251,248,241,.95) 60%); text-align: center; padding: 16px; }
.teaser-num { font-family: var(--serif); font-size: 34px; color: var(--red); line-height: 1; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.teaser-grid > div { background: var(--paper); border-radius: 8px; padding: 12px 4px; border: 1px solid var(--line-soft); }
.teaser-grid span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ———— 底部固定 CTA ———— */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(243,237,225,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky-cta .inner { max-width: 568px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky-cta .p { font-family: var(--serif); color: var(--red); font-size: 22px; white-space: nowrap; }
.sticky-cta .p s { color: var(--muted); font-size: 12px; margin-left: 4px; }
.sticky-cta .btn { flex: 1; }
body.has-sticky { padding-bottom: 90px; }

/* ———— 弹窗 ———— */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(23,20,15,.55); }
.modal.show { display: flex; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 600px; background: var(--card); border-radius: 18px 18px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .25s cubic-bezier(.2,.8,.2,1); max-height: 92vh; overflow: auto; }
@media (min-width: 640px) { .modal { align-items: center; } .sheet { border-radius: 16px; } }
.sheet h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 19px; letter-spacing: .06em; }
.paylist { display: grid; gap: 10px; margin: 16px 0; }
.payopt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.payopt input { accent-color: var(--red); width: 18px; height: 18px; margin-left: auto; }
.payopt .ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.payopt .ico.wx { background: #1aad19; } .payopt .ico.ali { background: #1677ff; } .payopt .ico.mock { background: var(--gold); }
.qr-box { text-align: center; } .qr-box img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(30px); opacity: .4; } }

.toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.96); background: rgba(23,20,15,.88); color: #f6eee0; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 99; max-width: 80vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px 36px; line-height: 1.9; }
.footer a { color: var(--muted); }

.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) { .hero-title { font-size: 38px; } .hero-copy h2 { font-size: 19px; } .row.c3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.stars { color: var(--red); letter-spacing: 1px; font-size: 14px; } .stars .off { color: var(--line); }

.payopt .ico.bank { background: #c0392b; }
.payopt .ico.intl { background: #635bff; }
.bq-amt { text-align: center; font-family: var(--serif); font-size: 16px; margin-top: 8px; }
.bq-amt b { font-size: 34px; color: var(--red); font-weight: 600; margin-left: 4px; }
.bq-steps { background: var(--paper); border-radius: 8px; padding: 8px 12px; color: var(--ink-2); }
.bq-steps p { margin: 4px 0; }

/* 简繁切换 */
.top-right { display: inline-flex; align-items: center; gap: 12px; }
.lang-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--serif); font-size: 15px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle.floating { position: fixed; bottom: 18px; right: 14px; width: 40px; height: 40px; font-size: 17px; z-index: 40; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); background: rgba(251,248,241,.95); }
@media print { .lang-toggle { display: none; } }

/* 过去三年对照验证 */
.past-year { padding: 12px 0; border-top: 1px dashed var(--line-soft); }
.past-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.past-head b { font-size: 18px; }
.past-stars { color: var(--gold); letter-spacing: 1px; margin-left: auto; }
.past-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 4px; }
.past-btns { display: flex; gap: 6px; }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 0; }
.btn.ghost.on { background: var(--red); color: #fff; border-color: var(--red); }

/* 命主反馈 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-row > div { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-row b { display: block; font-family: var(--serif); font-size: 26px; color: var(--red); }
.stat-row span { font-size: 12px; color: var(--muted); }
.rv-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-st { margin-left: auto; color: var(--gold); letter-spacing: 1px; }
.rv-st i { font-style: normal; color: var(--line); }
.rv p { margin: 8px 0 0; }
.rv-reply { border-left: 2px solid var(--line); padding-left: 8px; }

/* ———————— 产品切换（八字 / 紫微） ———————— */
.prodtabs { max-width: 600px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 8px; }
.prodtabs a { flex: 1; text-align: center; text-decoration: none; font-family: var(--serif); font-size: 15px; padding: 8px 6px; border-radius: 999px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-soft); }
.prodtabs a small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .05em; margin-top: -2px; }
.prodtabs a.on { background: var(--red); color: #fbeee4; border-color: var(--red); }
.prodtabs a.on small { color: #f0c9bf; }
.prodtabs a .new { font-family: var(--sans); font-size: 10px; background: var(--gold); color: #fff; border-radius: 6px; padding: 0 4px; margin-left: 4px; vertical-align: 2px; }

/* ———————— 紫微命盘十二宫 ———————— */
.zw-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(118px, auto)); gap: 2px; background: var(--line); border: 2px solid var(--ink-2); border-radius: 6px; overflow: hidden; font-size: 12px; line-height: 1.35; }
.zw-cell { background: var(--card); padding: 4px 4px 3px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.zw-cell.ming { background: #fbefe8; }
.zw-cell .stars-major { display: flex; flex-wrap: wrap; gap: 0 4px; }
.zw-cell .mj { font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--red-deep); white-space: nowrap; }
.zw-cell .mj i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 1px; }
.zw-cell .borrow { font-size: 11px; color: var(--muted); }
.zw-cell .stars-minor { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 2px; }
.zw-cell .mn { font-size: 11.5px; color: #3d6b52; white-space: nowrap; }
.zw-cell .mn.sha { color: #8a7e6d; }
.hua { display: inline-block; font-style: normal; font-size: 10px; line-height: 14px; padding: 0 2px; border-radius: 3px; color: #fff; margin-left: 1px; vertical-align: 1px; font-family: var(--sans); font-weight: 400; }
.hua.h禄 { background: #3f7d4f; } .hua.h权 { background: #7a4e9c; } .hua.h科 { background: #3a6a9a; } .hua.h忌 { background: #b5443a; }
.zw-cell .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 3px; }
.zw-cell .pname { font-family: var(--serif); font-size: 13px; color: var(--ink); background: var(--paper-2); padding: 0 4px; border-radius: 3px; }
.zw-cell.ming .pname { background: var(--red); color: #fff; }
.zw-cell .pname b { font-weight: 400; font-size: 10px; background: var(--gold); color: #fff; border-radius: 3px; padding: 0 2px; margin-left: 2px; }
.zw-cell .gz { font-size: 11px; color: var(--muted); text-align: right; }
.zw-cell .ages { font-size: 10.5px; color: var(--muted); }
.zw-center { grid-column: 2 / 4; grid-row: 2 / 4; background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px; font-size: 12.5px; color: var(--ink-2); }
.zw-center .nm { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.zw-center .ju { font-family: var(--serif); font-size: 16px; color: var(--red); margin: 4px 0; }
.zw-center .meta { line-height: 1.6; }
.zw-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 400px) {
  .zw-grid { grid-template-rows: repeat(4, minmax(108px, auto)); font-size: 11px; }
  .zw-cell { padding: 3px 2px; }
  .zw-cell .mj { font-size: 13px; }
  .zw-cell .mn { font-size: 10.5px; }
  .zw-cell .pname { font-size: 12px; }
}
.zw-star { display: flex; gap: 12px; align-items: flex-start; }
.zw-star + .zw-star { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.zw-star .big { font-family: var(--serif); font-size: 26px; color: var(--red); line-height: 1.1; min-width: 58px; }
.zw-star .big small { display: block; font-size: 12px; color: var(--muted); }
.zw-pat { padding: 10px 0; border-top: 1px dashed var(--line-soft); }
.zw-pat:first-of-type { border-top: 0; padding-top: 0; }
.zw-pat b { font-family: var(--serif); font-size: 15px; }
.zw-pat .lv { font-size: 11px; padding: 0 6px; border-radius: 6px; margin-left: 6px; }
.lv.excellent { background: #f6e3dd; color: var(--red-deep); } .lv.good { background: #e6efe5; color: #2f5e3c; } .lv.neutral { background: var(--paper-2); color: var(--ink-2); } .lv.caution { background: #ede6da; color: #6b5a3c; }
.zw-tones .tn { padding: 9px 0; border-top: 1px dashed var(--line-soft); }
.zw-tones .tn:first-child { border-top: 0; }
.zw-tones .tn b { font-family: var(--serif); }
.zw-tones .tn .pl { font-size: 11px; color: var(--muted); margin-left: 6px; }
.zw-tones .tn p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.zw-tones .tn.lock p { filter: blur(4px); user-select: none; }

/* ================================================================
   中国风字体（自托管，按字分片加载：页面用到哪些字才下载哪些）
   · 毛笔楷书「马善政」：品牌名、首屏大标题、栏目标题
   · 霞鹜文楷 GB 屏幕版：正文与小标题
   ================================================================ */
:root {
  --brush: "Ma Shan Zheng", "LXGW WenKai GB Screen", "STXingkai", "Xingkai SC", "KaiTi", "STKaiti", serif;
  --kai: "LXGW WenKai GB Screen", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --serif: var(--kai);
  --sans: var(--kai);
}
.brand-name, .hero-title, .sec-title, .seal { font-family: var(--brush); font-weight: 400; }
.brand-name { font-size: 22px; letter-spacing: .08em; }
.seal { font-size: 15px; }
.sec-title { font-size: 24px; letter-spacing: .06em; }
.sec-title .en { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: .12em; }
input, select, textarea { font-family: var(--kai); }

/* ================================================================
   首页底图：山水 · 罗盘 · 朱砂云（八字、紫微两个产品首页）
   ================================================================ */
body.home { background: #efe3cb; }
body.home::before { /* 固定底图：手机端不支持 background-attachment: fixed，改用固定定位的伪元素 */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #efe3cb url(/img/bg-shanshui.jpg) center top / cover no-repeat;
  background-image: image-set(url(/img/bg-shanshui.webp) type("image/webp"), url(/img/bg-shanshui.jpg) type("image/jpeg"));
}
body.home::after { /* 往下滚动时让底图稍微退后，保证正文清晰 */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243,235,220,0) 0%, rgba(243,235,220,.18) 55%, rgba(243,235,220,.42) 100%);
}
body.home .topbar .link { background: rgba(251,247,238,.7); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-soft); }
body.home .prodtabs a { background: rgba(251,248,241,.82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
body.home .prodtabs a.on { background: var(--red); color: #fff6ec; border-color: var(--red); }
body.home .prodtabs a.on small { color: #f3d9c4; }

/* 首屏：从夜色改为宣纸山水上的墨字 */
body.home .hero { background: transparent; color: var(--ink); border-radius: 0; padding: 26px 22px 36px; overflow: visible; }
body.home .hero::after { display: none; }
body.home .hero-grid::before { /* 文字背后的一团柔光，保证在底图上清晰 */
  content: ""; position: absolute; inset: -18px -10px -14px; z-index: -1; border-radius: 28px;
  background: radial-gradient(closest-side, rgba(250,243,229,.88), rgba(250,243,229,.6) 60%, rgba(250,243,229,0));
}
body.home .hero-title { font-size: 60px; line-height: 1.02; letter-spacing: .06em; color: #1c1712; text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 0 18px rgba(250,243,229,.9); }
body.home .hero-title small { font-family: var(--kai); font-size: 15px; letter-spacing: .35em; color: var(--red-deep); }
body.home .hero-copy .eyebrow { color: #8a6a35; font-weight: 600; }
body.home .hero-copy h2 { color: var(--ink); font-weight: 700; font-size: 23px; }
body.home .hero-copy p { color: var(--ink-2); }
body.home .hero-points { color: var(--ink-2); }
body.home .price-line .now { color: var(--red); }
body.home .price-line .old { color: var(--muted); }

/* 内容区：半透明宣纸卡片浮在底图上 */
body.home .card { background: rgba(251,248,241,.93); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
body.home .sec-title { text-shadow: 0 0 10px rgba(250,243,229,.95), 0 0 2px rgba(250,243,229,.9); }
body.home .sec-title .en { color: #6f624f; }
body.home .footer { background: rgba(243,235,220,.85); border-radius: 14px 14px 0 0; }
@media (max-width: 360px) { body.home .hero-title { font-size: 46px; } }
@media (min-width: 900px) { body.home::before { background-position: center 30%; } }

/* 繁体模式：毛笔字体只含简体字形。首屏题字与品牌名作为「书法题字」保持原样不转换（书即書的草书写法）；
   栏目标题等会转成繁体的文字改用霞鹜文楷，避免同一行里毛笔字与其他字体混排 */
:lang(zh-Hant) .sec-title { font-family: var(--kai); font-weight: 700; font-size: 22px; letter-spacing: .1em; }

/* 首屏书法题字（图片）：简体显示「十年命书」，繁体显示「十年命書」 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-title.has-art { writing-mode: horizontal-tb; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 4px; position: relative; }
.hero-title.has-art small { writing-mode: vertical-rl; margin: 4px 0 0; }
.title-art { display: block; height: 270px; width: auto; filter: drop-shadow(0 0 10px rgba(250,243,229,.85)); }
.title-art.tw { display: none; }
:lang(zh-Hant) .title-art.cn { display: none; }
:lang(zh-Hant) .title-art.tw { display: block; }
@media (max-width: 360px) { .title-art { height: 220px; } }
