/* ============================================================
   道士全盘 · C端视觉系统 v3「东方极简」
   米白宣纸 · 宋体排版 · 细线分割 · 大量留白 · 一点朱砂
   ============================================================ */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #181613;
  --ink-2: #6E675C;
  --ink-3: #A39B8E;
  --line: #E8E3D6;
  --line-2: #D9D2C2;
  --red: #A63821;
  --red-soft: #F7EDE9;
  --green: #2E5E4E;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #EFE6D2; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }
svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* 入场动效 */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 26px; height: 26px; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: 5px; }
.nav-links { display: none; gap: 30px; font-size: 13px; color: var(--ink-2); }
.nav-links a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta {
  font-size: 13px; letter-spacing: 2px; padding: 9px 20px;
  background: var(--ink); color: #fff; border-radius: 2px;
}
@media (min-width: 800px) { .nav-links { display: flex; } }

/* 移动端侧边抽屉导航（≤799px：行内链接/购物车/登录/CTA 收进抽屉，顶行只留 brand+汉堡） */
.nav-burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.nav-burger svg { width: 24px; height: 24px; display: block; }
@media (max-width: 799px) {
  .nav .nav-ico, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }
}
.navdraw-mask { position: fixed; inset: 0; z-index: 90; background: rgba(24,22,19,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.navdraw-mask.show { opacity: 1; visibility: visible; }
.navdraw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: 280px; max-width: 82vw; background: var(--surface); border-left: 1px solid var(--line-2); transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.3,1); display: flex; flex-direction: column; padding: 16px 22px 28px; overflow-y: auto; }
.navdraw.show { transform: none; }
.navdraw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.navdraw-close { background: none; border: 0; font-size: 18px; color: var(--ink-3); cursor: pointer; padding: 6px; }
.navdraw-close:hover { color: var(--red); }
.navdraw-links { display: flex; flex-direction: column; }
.navdraw-links a { padding: 13px 2px; font-size: 15px; color: var(--ink); border-bottom: 1px dashed var(--line-2); letter-spacing: 2px; }
.navdraw-ops { margin-top: 12px; display: flex; flex-direction: column; }
.navdraw-ops a { padding: 13px 2px; font-size: 14px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.navdraw-cta { margin-top: 24px; text-align: center; font-size: 14px; letter-spacing: 2px; padding: 13px 0; background: var(--ink); color: #fff; border-radius: 2px; }
.navdraw .qp-cart-badge { position: static; margin-left: 4px; display: inline-block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; font-size: 14px; letter-spacing: 3px;
  background: var(--ink); color: #fff; border-radius: 2px;
  transition: opacity .18s ease, transform .18s ease;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.98); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }
.btn-red { background: var(--red); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 42px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 13px; letter-spacing: 2px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 2px;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}

/* ---------- 区块标题 ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 12px; letter-spacing: 5px; color: var(--ink-3); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 42px; height: 1px; background: var(--line-2); }
.sec-title { font-family: var(--serif); font-size: 30px; letter-spacing: 6px; text-align: center; font-weight: 600; }
.sec-sub { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 12px; letter-spacing: 1px; }
.section { padding: 96px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 全局宣纸纹理 ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 3000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 0; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .bg-enso {
  position: absolute; width: 520px; height: 520px; right: -110px; top: -40px;
  color: #E7E1D0; animation: bgSpin 90s linear infinite;
}
.hero-bg .bg-enso.e2 { width: 340px; height: 340px; left: -100px; top: 320px; right: auto; animation-duration: 70s; animation-direction: reverse; }
@keyframes bgSpin { to { transform: rotate(360deg); } }
.hero-bg .bg-hills { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 200px; }
.hero-vertical {
  position: absolute; right: 48px; top: 90px;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 14px;
  letter-spacing: 14px; color: #DCD5C4; display: none;
}
@media (min-width: 1000px) { .hero-vertical { display: block; } }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: .14em; line-height: 1.5; margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { color: var(--ink-2); max-width: 540px; margin: 0 auto 44px; font-size: 15px; }
.hero-ctas { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-stats {
  margin-top: 90px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-stats > div { padding: 34px 10px 38px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 1px; }
.hero-stats span { font-size: 12px; color: var(--ink-3); letter-spacing: 2px; }

/* ---------- 测算表单 ---------- */
.divine-form { max-width: 580px; margin: 0 auto; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.f-field { margin-bottom: 34px; }
.f-field label { display: block; font-size: 12px; letter-spacing: 3px; color: var(--ink-3); margin-bottom: 4px; }
.f-field label i { font-style: normal; color: var(--red); margin-left: 2px; }
.f-field input[type="text"], .f-field input[type="date"], .f-field select {
  width: 100%; border: none; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; padding: 10px 2px; outline: none; color: var(--ink);
  transition: border-color .2s;
}
.f-field input:focus, .f-field select:focus { border-bottom-color: var(--ink); }
.f-field input::placeholder { color: #C6BFaf; }

/* ---------- 出生日期三段选 + 时辰卡（醒目的日期/时间选择器） ---------- */
/* 框式控件与极简下划线输入形成「可点」反差，年/月/日、十二时辰一眼可知在哪选 */
.dtp { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
.dtp select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: #FAF8F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239B947F'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line); padding: 12px 10px; font-size: 15px; color: var(--ink); outline: none; cursor: pointer;
}
.dtp select:focus { border-color: var(--red); }
/* 农历模式闰月勾选（仅 lunar 显示；与下拉同节奏的小字注） */
.dtp-leap { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-3); letter-spacing: 1px; cursor: pointer; }
.dtp-leap input { accent-color: var(--red); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot-grid .sl {
  border: 1px solid var(--line); background: #FAF8F3; padding: 12px 4px 10px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s; font-family: inherit;
}
.slot-grid .sl .zi { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.3; }
.slot-grid .sl .alt { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.slot-grid .sl .tm { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.slot-grid .sl.unk .zi { font-size: 14px; font-family: inherit; font-weight: 400; }
.slot-grid .sl:hover { border-color: var(--ink-3); }
.slot-grid .sl.on { border: 1.5px solid var(--red); background: rgba(159,43,43,.05); }
.slot-grid .sl.on .zi { color: var(--red); }
@media (max-width: 640px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.f-seg { display: flex; gap: 28px; }
.f-seg button {
  padding: 10px 2px; font-size: 14px; color: var(--ink-3); letter-spacing: 1px;
  border-bottom: 2px solid transparent; transition: all .18s;
}
.f-seg button.on { color: var(--ink); border-bottom-color: var(--ink); }
.f-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.f-chips .chip {
  padding: 7px 18px; font-size: 13px; letter-spacing: 1px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
  transition: all .18s;
}
.f-chips .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 26px; letter-spacing: 1px; }
.f-note i { color: var(--red); font-style: normal; }

/* ---------- 服务（编号式） ---------- */
.svc-grid { display: grid; gap: 48px; grid-template-columns: 1fr; margin-top: 64px; }
@media (min-width: 800px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.svc-item { border-top: 1px solid var(--ink); padding-top: 26px; }
.svc-item .idx { font-family: var(--serif); font-size: 14px; color: var(--red); letter-spacing: 3px; }
.svc-item h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 4px; margin: 12px 0 14px; }
.svc-item p { font-size: 13px; color: var(--ink-2); }
.svc-item .price { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); letter-spacing: 1px; }
.svc-item .price b { color: var(--red); font-family: var(--serif); }

/* ---------- 见证 ---------- */
.wit-grid { display: grid; gap: 48px; margin-top: 64px; }
@media (min-width: 800px) { .wit-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.wit-item { border-top: 1px solid var(--line-2); padding-top: 24px; }
.wit-item p { font-family: var(--serif); font-size: 15px; line-height: 2; }
.wit-item p::before { content: "「"; color: var(--ink-3); }
.wit-item p::after { content: "」"; color: var(--ink-3); }
.wit-item .who { margin-top: 16px; font-size: 12px; color: var(--ink-3); letter-spacing: 2px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; text-align: center; }
.footer .f-links { display: flex; justify-content: center; gap: 28px; font-size: 13px; color: var(--ink-2); margin-bottom: 26px; flex-wrap: wrap; }
.footer .f-links a:hover { color: var(--ink); }
.footer .disclaimer { font-size: 11px; color: var(--ink-3); max-width: 620px; margin: 0 auto; line-height: 2; }
.footer .copy { font-size: 11px; color: var(--ink-3); margin-top: 18px; letter-spacing: 1px; }

/* ---------- 生成中 ---------- */
.loading-stage {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
}
.enso-draw { width: 120px; height: 120px; margin-bottom: 44px; }
.enso-draw path {
  stroke-dasharray: 252; stroke-dashoffset: 252;
  animation: ensoDraw 2.4s ease-in-out infinite;
}
@keyframes ensoDraw {
  0% { stroke-dashoffset: 252; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -252; }
}
.loading-text { font-family: var(--serif); font-size: 17px; letter-spacing: 6px; min-height: 30px; }
.loading-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 2px; margin-top: 14px; }
.loading-line { width: 200px; height: 1px; background: var(--line-2); margin-top: 34px; position: relative; overflow: hidden; }
.loading-line i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--ink); transition: width .5s ease; }

/* ---------- 报告页 ---------- */
.r-head { text-align: center; padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.r-seal {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--kai); font-size: 12px; letter-spacing: 2px;
  color: var(--red); border: 1px solid var(--red); border-radius: 2px;
  padding: 4px 10px; margin-bottom: 22px; transform: rotate(-2deg);
}
.r-head h1 { font-family: var(--serif); font-size: 27px; letter-spacing: 4px; font-weight: 600; }
.r-head .r-meta { font-size: 13px; color: var(--ink-2); margin-top: 14px; letter-spacing: 1px; }
.r-head .r-meta b { color: var(--red); font-weight: 600; }
.r-body { max-width: 760px; margin: 0 auto; padding: 24px 24px 60px; }
.qp-master { max-width: 720px; margin: 28px auto 0; padding: 28px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card, #fff); text-align: center; scroll-margin-top: 90px; }
.qp-master:empty { display: none; }
.qp-master h2 { margin: 10px 0; font-family: var(--serif); font-size: 24px; letter-spacing: 2px; }
.qp-master-eye { color: var(--red); font-size: 10px; letter-spacing: 3px; }
.qp-master-sub { color: var(--ink-3); font-size: 12px; line-height: 1.8; }
.qp-master-state { margin: 18px 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.qp-master-live, .qp-master-video { display: block; width: 100%; height: min(68vh, 620px); margin: 18px 0; border: 0; background: #111; }
.qp-master-audio { display: block; width: 100%; margin: 18px 0; }
.qp-master-progress { height: 4px; margin: 16px 0; overflow: hidden; background: var(--line); }
.qp-master-progress i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.qp-master-error { color: var(--red); font-size: 12px; line-height: 1.8; }
@media (max-width: 799px) { .qp-master { margin: 20px 16px 0; padding: 22px 18px; } .qp-master-live, .qp-master-video { height: 65vh; } }

.chapter { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding-top: 52px; margin-top: 52px; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: none; }
.ch-num { font-family: var(--serif); font-size: 32px; color: #D8D1BF; line-height: 1.2; }
.ch-title { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.ch-title span { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; color: var(--ink-3); font-weight: 400; }

/* 命盘 */
.pillar-table { width: 100%; border-collapse: collapse; text-align: center; }
.pillar-table th {
  font-size: 12px; letter-spacing: 3px; color: var(--ink-3); font-weight: 400;
  padding: 10px 4px; border-bottom: 1px solid var(--ink);
}
.pillar-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.pillar-table .gz { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.pillar-table .gz.red { color: var(--red); }
.pillar-table .ten { font-size: 12px; color: var(--red); letter-spacing: 1px; }
.pillar-table .rowlabel { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; width: 54px; }

/* 四柱大楷卡（竖格并排 · 日柱朱砂框） */
.gz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gz-card { background: #FAF8F3; border: 1px solid var(--line); padding: 18px 4px 14px; text-align: center; }
.gz-card.day { border: 1.5px solid var(--red); }
.gz-card .h { font-size: 11px; letter-spacing: 3px; color: var(--ink-3); }
.gz-card .ten { font-size: 12px; color: var(--red); letter-spacing: 1px; margin-top: 10px; min-height: 15px; }
.gz-card .gz { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.3; }
.gz-card.day .gz { color: var(--red); }
.gz-card .ny { font-size: 11px; color: var(--ink-3); margin-top: 10px; }
.gz-card .hg { font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: 2px; }
@media (max-width: 640px) {
  .gz-cards { gap: 8px; }
  .gz-card { padding: 12px 2px 10px; }
  .gz-card .gz { font-size: 30px; }
}

/* 卷次分区带（报告三大块分类） */
.sec-band { text-align: center; margin: 88px auto -8px; }
.sec-band .sb-eye { font-size: 11px; letter-spacing: 5px; color: var(--red); }
.sec-band .sb-title { font-family: var(--serif); font-size: 26px; letter-spacing: 8px; margin-top: 12px; font-weight: 600; }
.sec-band .sb-line { width: 56px; height: 1px; background: var(--ink); margin: 20px auto 0; }

/* 章节白话注解（文言正文下的大白话） */
.ch-plain { margin-top: 20px; background: #F5F2EA; border-left: 3px solid var(--red); padding: 14px 18px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.ch-plain b { color: var(--red); font-weight: 600; margin-right: 10px; letter-spacing: 2px; }

/* 五行 */
.wx-rows { display: grid; gap: 20px; margin-top: 10px; }
.wx-row { display: flex; align-items: center; gap: 14px; }
.wx-row .n { width: 34px; font-family: var(--serif); font-size: 18px; }
.wx-row .track { flex: 1; height: 10px; background: #EDE9DC; position: relative; border-radius: 5px; overflow: hidden; }
.wx-row .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.wx-row .p { width: 48px; text-align: right; font-size: 14px; color: var(--ink-2); }
.wx-jin .track i { background: #BFAE87; } .wx-mu .track i { background: #5F8A6E; }
.wx-shui .track i { background: #5A7A99; } .wx-huo .track i { background: #B05A41; }
.wx-tu .track i { background: #A8843C; }

/* 要点 */
.pts { list-style: none; display: grid; gap: 14px; }
.pts li { padding-left: 22px; position: relative; font-size: 14px; }
.pts li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

/* 流年 */
.luck-grid { display: grid; gap: 32px; }
@media (min-width: 680px) { .luck-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.luck-item h4 { font-family: var(--serif); font-size: 16px; letter-spacing: 3px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.luck-item h4 .stars { font-family: var(--sans); font-size: 11px; color: var(--red); letter-spacing: 2px; }
.luck-item p { font-size: 13px; color: var(--ink-2); }

/* ---------- 饰品带（变现核心） ---------- */
.charm-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.charm-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.charm-note {
  border-left: 2px solid var(--red); padding: 4px 0 4px 18px;
  font-size: 13px; color: var(--ink-2); margin: 40px 0 36px;
}
.charm-note b { color: var(--ink); }
.charm-grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .charm-grid { grid-template-columns: repeat(3, 1fr); } }
.charm-card {
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s ease; display: flex; flex-direction: column;
}
.charm-card:hover { border-color: var(--ink); }
.charm-fig { background: var(--bg); padding: 30px 0; display: flex; justify-content: center; position: relative; }
.charm-fig svg { width: 74px; height: 74px; }
.charm-fig img.charm-img { width: 74px; height: 74px; object-fit: cover; } /* 商城商品图（无图时回落手绘 SVG） */
.charm-kg {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--kai); font-size: 10px; letter-spacing: 2px; color: var(--red);
  border: 1px solid var(--red); border-radius: 2px; padding: 2px 7px; transform: rotate(3deg);
}
.charm-info { padding: 20px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.charm-info h4 { font-family: var(--serif); font-size: 16px; letter-spacing: 2px; }
.charm-info .tag { font-size: 11px; color: var(--ink-3); margin: 8px 0 14px; letter-spacing: 1px; }
.charm-info .price { font-family: var(--serif); color: var(--red); font-size: 18px; margin-bottom: 16px; }
.charm-info .price s { color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.charm-info .btn { margin-top: auto; }
.charm-tip { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 26px; letter-spacing: 1px; }

/* ---------- 锁定详细版 ---------- */
.locked { border: 1px solid var(--line); margin: 72px 0; }
.locked-preview { filter: blur(8px); user-select: none; pointer-events: none; padding: 40px 32px; }
.locked-mask { padding: 48px 32px; text-align: center; border-top: 1px solid var(--line); }
.locked-mask .lk-label { font-size: 11px; letter-spacing: 4px; color: var(--ink-3); margin-bottom: 14px; }
.locked-mask h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; margin-bottom: 12px; }
.locked-mask > p { font-size: 13px; color: var(--ink-2); margin-bottom: 24px; }
.locked-chapters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; max-width: 460px; margin-left: auto; margin-right: auto; }
.locked-chapters span { font-size: 12px; padding: 5px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); letter-spacing: 1px; }
.locked-price { font-family: var(--serif); font-size: 30px; color: var(--red); margin-bottom: 22px; }
.locked-price small { font-size: 13px; color: var(--ink-3); text-decoration: line-through; margin-left: 8px; font-family: var(--sans); }

/* ---------- 底部固定栏 ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.dock-inner { max-width: 760px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.dock .btn { flex: 1; padding: 13px 8px; font-size: 13px; }
.dock-info { flex: 1.3; min-width: 0; }
.dock-info .t { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-info .p { font-family: var(--serif); font-size: 18px; color: var(--red); }
.dock-spacer { height: 84px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(24,22,19,.45);
  display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--surface); width: 100%; max-width: 440px;
  padding: 36px 28px calc(28px + env(safe-area-inset-bottom));
  animation: up .25s ease; position: relative;
}
@media (min-width: 640px) { .modal-mask { align-items: center; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; text-align: center; }
.modal .m-sub { text-align: center; font-size: 12px; color: var(--ink-3); margin: 10px 0 26px; letter-spacing: 1px; }
.pay-amount { text-align: center; font-family: var(--serif); font-size: 34px; color: var(--red); margin-bottom: 26px; }
.pay-amount small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); text-decoration: line-through; margin-left: 8px; }
.pay-methods { border-top: 1px solid var(--line); margin-bottom: 28px; }
.pay-m {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 2px; font-size: 14px; border-bottom: 1px solid var(--line); text-align: left;
}
.pay-m svg { width: 20px; height: 20px; }
.pay-m .radio { margin-left: auto; width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 50%; }
.pay-m.on .radio { border: 5px solid var(--ink); }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 18px; color: var(--ink-3); }
.m-note { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 18px; letter-spacing: 1px; }

/* toast */
.toast {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: #fff; padding: 13px 28px; border-radius: 2px;
  font-size: 13px; display: none; letter-spacing: 2px; max-width: 86vw; text-align: center;
}
.toast.show { display: block; }

/* ---------- 1V1 预约 ---------- */
.step-label { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 24px; }
.step-label .no { font-family: var(--serif); font-size: 14px; color: var(--red); letter-spacing: 2px; }
.step-label h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; font-weight: 600; }
/* 命理师横排滑动卡片 */
.master-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; margin: 0 -2px; scrollbar-width: none;
}
.master-scroll::-webkit-scrollbar { display: none; }
.m-card {
  flex: 0 0 204px; scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; text-align: center;
  padding: 24px 16px 18px; position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.m-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24,22,19,.07); }
.m-card.on { border-color: var(--ink); border-width: 1.5px; }
.m-card.on::after {
  content: "已选"; position: absolute; top: 10px; right: 10px; font-size: 9px;
  letter-spacing: 2px; color: var(--red); border: 1px solid var(--red); padding: 2px 6px; border-radius: 2px;
}
.m-cert { position: absolute; top: 10px; left: 10px; font-family: var(--kai); font-size: 9px; letter-spacing: 2px; color: var(--green); border: 1px solid var(--green); padding: 2px 6px; border-radius: 2px; }
.m-ava {
  width: 86px; height: 86px; margin: 2px auto 14px; border-radius: 50%;
  background: #F5F1E6; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.m-ava svg { width: 66px; height: 66px; }
.m-card h4 { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; }
.m-title { font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: 1px; }
.m-tags2 { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 12px; }
.m-tags2 span { font-size: 10px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 7px; letter-spacing: 1px; }
.m-rate { font-size: 11px; color: var(--ink-3); margin-top: 12px; }
.m-rate b { color: var(--red); font-weight: 600; }
.m-price { margin-top: 8px; font-family: var(--serif); font-size: 19px; }
.m-price small { font-family: var(--sans); font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.m-more { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 2px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.scroll-hint { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 2px; color: var(--ink-3); margin-top: 2px; }
.scroll-hint::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line-2); }

/* 大师详情弹层 */
.md-head { display: flex; gap: 20px; align-items: center; text-align: left; }
.md-ava {
  width: 96px; height: 96px; border-radius: 50%; background: #F5F1E6; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.md-ava svg { width: 74px; height: 74px; }
.md-head h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; display: flex; align-items: center; gap: 10px; }
.md-head .m-title { margin-top: 5px; }
.md-stats { display: flex; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.md-stats > div { flex: 1; text-align: center; padding: 14px 4px; }
.md-stats > div + div { border-left: 1px solid var(--line); }
.md-stats b { font-family: var(--serif); font-size: 18px; display: block; }
.md-stats span { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.md-sec { text-align: left; margin-top: 18px; }
.md-sec h5 { font-size: 12px; letter-spacing: 3px; color: var(--ink-3); font-weight: 400; margin-bottom: 8px; }
.md-sec p { font-size: 13.5px; color: var(--ink-2); line-height: 2; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-card { border: 1px solid var(--line); padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s; background: var(--surface); }
.plan-card.on { border-color: var(--ink); border-width: 1.5px; }
.plan-card .t { font-size: 13px; letter-spacing: 2px; color: var(--ink-2); }
.plan-card b { display: block; font-family: var(--serif); font-size: 22px; color: var(--red); margin-top: 8px; }

.date-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.date-cell {
  flex-shrink: 0; width: 70px; padding: 12px 0; text-align: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); transition: all .15s;
}
.date-cell b { display: block; font-size: 14px; font-weight: 500; }
.date-cell small { font-size: 11px; color: var(--ink-3); }
.date-cell.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.date-cell.on small { color: rgba(255,255,255,.6); }
.time-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.time-cell {
  width: calc(33.33% - 7px); padding: 11px 0; text-align: center; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: all .15s;
}
.time-cell.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.time-cell.off { color: #C9C2B2; background: var(--bg); cursor: not-allowed; }

/* 成功印章 */
.success-stage { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.success-seal {
  width: 84px; height: 84px; border: 2px solid var(--red); border-radius: 4px;
  color: var(--red); font-family: var(--kai); font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-5deg); margin-bottom: 30px;
}

/* ============================================================
   动效库
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 按钮微交互 */
.btn { transition: opacity .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.link-arrow { transition: gap .2s ease; }
.link-arrow:hover { gap: 14px; }

/* 逐字标题 */
.split span { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
.split.play span { opacity: 1; transform: none; }

/* 印章盖印 */
.r-seal { animation: stampIn .55s cubic-bezier(.2,.9,.3,1.35) .35s both; }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-2deg) scale(2.4); }
  60% { opacity: 1; transform: rotate(-2deg) scale(.92); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* 命盘字逐个浮出 */
.pillar-table .gz { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.pillar-table.go .gz { opacity: 1; transform: none; }
.pillar-table.go td:nth-child(2) .gz { transition-delay: .05s; }
.pillar-table.go td:nth-child(3) .gz { transition-delay: .18s; }
.pillar-table.go td:nth-child(4) .gz { transition-delay: .31s; }
.pillar-table.go td:nth-child(5) .gz { transition-delay: .44s; }

/* 五行条生长 */
.wx-row .track i { width: 0; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.anim.go .wx-row .track i { width: var(--w); }
.anim.go .wx-row:nth-child(2) .track i { transition-delay: .12s; }
.anim.go .wx-row:nth-child(3) .track i { transition-delay: .24s; }
.anim.go .wx-row:nth-child(4) .track i { transition-delay: .36s; }
.anim.go .wx-row:nth-child(5) .track i { transition-delay: .48s; }

/* 底部固定栏滑入 */
.dock { animation: dockUp .5s cubic-bezier(.2,.7,.3,1) .5s both; }
@keyframes dockUp { from { transform: translateY(100%); } }

/* 弹窗遮罩淡入 */
.modal-mask.show { animation: maskIn .22s ease; }
@keyframes maskIn { from { opacity: 0; } }

/* toast 下落 */
.toast.show { animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-10px); } }

/* 卡片悬停 */
.charm-card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.charm-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24,22,19,.08); }
.charm-card .charm-fig svg { transition: transform .3s ease; }
.charm-card:hover .charm-fig svg { transform: scale(1.06); }
.date-cell, .time-cell, .plan-card { transition: all .18s ease; }
.date-cell:not(.on):hover, .time-cell:not(.on):not(.off):hover, .plan-card:not(.on):hover { border-color: var(--ink); }
.f-chips .chip { transition: all .18s ease; }
.f-chips .chip:not(.on):hover { border-color: var(--ink); color: var(--ink); }

/* Hero 圆相缓慢自转 */
.brand svg, .enso-mark { transition: transform .5s ease; }
.brand:hover svg { transform: rotate(120deg); }

/* ============================================================
   今日运势卡（web / intl 共享；命中历史档案显示命盘个性层）
   ============================================================ */
.section-fortune { padding-top: 0; padding-bottom: 24px; }
.ft-wrap {
  border: 1px solid var(--line); background: var(--surface);
  padding: 28px 32px; max-width: 860px; margin: 0 auto;
}
.ft-wrap:empty { display: none; } /* 接口失败/未返回时整块隐藏，不留空框 */
.ft-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.ft-title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 2px; }
.ft-date { font-size: 13px; color: var(--ink-2); }
.ft-date b { color: var(--ink); font-weight: 600; }
.ft-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ft-score b { font-size: 46px; font-family: var(--serif); font-weight: 600; line-height: 1; }
.ft-stars { display: block; color: var(--red); font-size: 13px; letter-spacing: 2px; margin-top: 6px; }
.ft-kw { font-size: 15px; color: var(--ink); border: 1px solid var(--line); padding: 6px 14px; letter-spacing: 4px; }
.ft-sum { font-size: 14px; color: var(--ink-2); flex: 1; min-width: 200px; line-height: 1.8; }
.ft-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; margin-bottom: 16px; }
.ft-dim { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ft-dn { color: var(--ink-2); width: 40px; flex: none; }
.ft-bar { flex: 1; height: 3px; background: var(--line); position: relative; }
.ft-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.ft-dim b { width: 24px; text-align: right; font-weight: 600; }
.ft-delta { font-style: normal; font-size: 11px; width: 26px; flex: none; }
.ft-delta.up { color: var(--red); }
.ft-delta.down { color: var(--ink-3); }
.ft-yiji { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.ft-yiji em { font-style: normal; color: var(--ink); border: 1px solid var(--line-2); padding: 1px 7px; margin-right: 8px; font-size: 12px; }
.ft-yiji .yi em { color: var(--red); border-color: var(--red); }
.ft-lucky { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-2); }
.ft-lucky b { color: var(--ink); font-weight: 600; }
.ft-personal { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.ft-p-tag { font-size: 12px; color: var(--red); letter-spacing: 1px; margin-bottom: 8px; }
.ft-p-verdict { font-family: var(--serif); font-size: 16px; line-height: 1.9; color: var(--ink); }
.ft-p-advice { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; }
.ft-cta { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 14px; font-size: 13px; color: var(--ink-3); }
.ft-gate { text-align: center; }
.ft-gate-t { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; }
.ft-gate-btn { display: inline-block; background: var(--red); color: #fff; border: 0; padding: 11px 30px; font-size: 14px; letter-spacing: 2px; cursor: pointer; text-decoration: none; border-radius: 2px; }
/* 缺资料轻引导：低调文字链（可忽略），不用红按钮强制卡 */
.ft-gate-soft { text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.ft-gate-soft .ft-gate-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
/* 状态卡：生成中 / 失败重试——ft-wrap 非空即显示，运势块绝不再凭空消失 */
.ft-state { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 34px 0; font-size: 13px; color: var(--ink-2); line-height: 1.9; text-align: center; }
.ft-spin { width: 15px; height: 15px; flex: none; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: ftspin .9s linear infinite; }
@keyframes ftspin { to { transform: rotate(360deg); } }
.ft-failed { color: var(--ink-3); }
.ft-retry { background: none; border: 1px solid var(--red); color: var(--red); padding: 7px 22px; font-size: 13px; letter-spacing: 2px; cursor: pointer; border-radius: 2px; }
.ft-retry:hover { background: var(--red); color: #fff; }
/* 骨架条：固定层加载过渡（呼吸感，无文字，不混淆「生成中」语义） */
.ft-skel { height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--line) 25%, #F4F0E4 50%, var(--line) 75%); background-size: 200% 100%; animation: ftskel 1.2s ease infinite; }
@keyframes ftskel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* 专属层生成中：轻提示条（spin + 文案），挂在固定层下方 */
.ft-pending { display: flex; align-items: center; justify-content: center; gap: 9px; }
@media (max-width: 640px) {
  .ft-wrap { padding: 20px 18px; }
  .ft-score b { font-size: 38px; }
}

/* ============================================================
   法物商城（web / intl 共享；五行大类 + 品类人群二级筛选 + 下单弹窗）
   ============================================================ */
/* 五行大类 tab：色点 + 下划线选中 */
.shop-wx { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 34px; }
.shop-wx-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--ink-3);
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: all .18s;
}
.shop-wx-tab .wx-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.shop-wx-tab:hover { color: var(--ink); }
.shop-wx-tab.on { color: var(--ink); border-bottom-color: var(--red); }

/* 二级筛选行：品类 / 人群 */
.shop-sub { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-sub-label { font-size: 12px; letter-spacing: 3px; color: var(--ink-3); flex: none; }

/* 货架网格 */
.shop-grid { display: grid; gap: 22px; margin-top: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
@media (min-width: 1080px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
.shop-card { cursor: pointer; }
.shop-card .charm-fig { padding: 38px 0; }
.shop-card .charm-fig svg { width: 86px; height: 86px; }
.shop-img { width: 86px; height: 86px; object-fit: cover; }
.shop-empty { text-align: center; color: var(--ink-3); font-size: 13px; letter-spacing: 2px; padding: 60px 0; }

/* 详情下单弹窗（比通用 modal 略宽） */
.shop-modal { max-width: 520px; max-height: 92vh; overflow-y: auto; }
.shop-d-fig { background: var(--bg); display: flex; justify-content: center; padding: 26px 0; margin: -8px 0 18px; }
.shop-d-fig svg { width: 96px; height: 96px; }
.shop-d-fig .shop-img { width: 96px; height: 96px; }
.shop-d-desc { font-size: 13px; color: var(--ink-2); line-height: 2; margin-bottom: 18px; }
.shop-d-row { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 18px; }
.shop-d-label { font-size: 12px; letter-spacing: 3px; color: var(--ink-3); }
.qty-ctl { display: inline-flex; align-items: center; gap: 14px; }
.qty-ctl button { width: 28px; height: 28px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.qty-ctl button:active { background: var(--bg); }
.qty-ctl b { font-family: var(--serif); font-size: 16px; min-width: 16px; text-align: center; }
.shop-d-price { margin-left: auto; font-family: var(--serif); font-size: 19px; color: var(--red); }
.shop-form .f-field { margin-bottom: 18px; }
@media (max-width: 640px) {
  .shop-wx { gap: 4px 16px; }
  .shop-wx-tab { font-size: 15px; }
}

/* ---------- 运势白话解释（个性层专属：术语翻译成大白话，小白零门槛） ---------- */
.ft-p-plain {
  margin-top: 12px; padding: 12px 14px; background: var(--bg); border-radius: 4px;
  font-size: 13px; color: var(--ink-2); line-height: 1.9;
}

/* ---------- 导航：账号 / 购物车入口 ---------- */
.nav-ico {
  font-size: 13px; letter-spacing: 1px; color: var(--ink-2); margin-left: 18px;
  position: relative; cursor: pointer; white-space: nowrap;
}
.nav-ico:hover { color: var(--ink); }
.qp-cart-badge {
  position: absolute; top: -9px; right: -16px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 16px;
  text-align: center; border-radius: 999px; font-style: normal;
}
.qp-user-menu {
  position: fixed; z-index: 300; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(24,22,19,.12); padding: 6px 0; min-width: 124px;
}
.qp-user-menu a { display: block; padding: 10px 18px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.qp-user-menu a:hover { background: var(--bg); color: var(--ink); }

/* ---------- 登录 / 注册弹层 ---------- */
.auth-modal { max-width: 420px; }
.auth-tabs { display: flex; justify-content: center; gap: 26px; margin: 6px 0 24px; }
.auth-tabs button {
  font-size: 15px; letter-spacing: 3px; color: var(--ink-3); padding-bottom: 6px;
  border-bottom: 2px solid transparent; transition: all .18s;
}
.auth-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.auth-modal .f-field { margin-bottom: 18px; }
.f-field input[type="password"] {
  width: 100%; border: none; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; padding: 10px 2px; outline: none; color: var(--ink);
  transition: border-color .2s;
}
.f-field input[type="password"]:focus { border-bottom-color: var(--ink); }

/* ---------- 购物车弹层 ---------- */
.cart-items { max-height: 44vh; overflow-y: auto; margin-bottom: 16px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ci-fig {
  width: 52px; height: 52px; flex: none; background: var(--bg);
  display: flex; align-items: center; justify-content: center; border-radius: 4px; overflow: hidden;
}
.ci-fig img { width: 100%; height: 100%; object-fit: cover; }
.ci-wx {
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-price { font-size: 13px; color: var(--red); margin-top: 4px; font-family: var(--serif); }
.ci-ops { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-del { font-size: 11px; color: var(--ink-3); cursor: pointer; }
.ci-del:hover { color: var(--red); }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; }
.cart-qty button { width: 24px; height: 24px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.cart-qty b { font-size: 13px; min-width: 14px; text-align: center; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.cart-foot .ct { font-size: 13px; color: var(--ink-3); letter-spacing: 1px; }
.cart-foot .ct b { font-family: var(--serif); font-size: 22px; color: var(--red); margin-left: 6px; font-weight: 600; }
.cart-empty { text-align: center; padding: 40px 0; font-size: 13px; color: var(--ink-3); }
.co-sum { background: var(--bg); padding: 12px 14px; margin-bottom: 18px; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.co-sum div { overflow: hidden; }

/* ---------- 详情层动作（两步走：先看详情 → 再恭请） ---------- */
.shop-d-actions { display: flex; gap: 12px; margin-top: 8px; }
.shop-d-actions .btn { flex: 1; }
.shop-d-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.shop-d-price-row .p { font-family: var(--serif); font-size: 26px; color: var(--red); }
.shop-d-price-row s { font-size: 13px; color: var(--ink-3); }

/* ---------- 商品详情弹窗（图集/规格/评价/长图/AI 佩戴 360°） ---------- */
.pd-modal { max-width: 560px; }
.pd-gall { position: relative; background: var(--bg); margin: -8px 0 18px; display: flex; justify-content: center; align-items: center; min-height: 220px; }
.pd-gall-img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.pd-gall-empty { padding: 30px 0; }
.pd-gall-wx { width: 72px; height: 72px; font-size: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.pd-gall-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.9); font-size: 18px; color: var(--ink-2); cursor: pointer; }
.pd-gall-btn.prev { left: 10px; }
.pd-gall-btn.next { right: 10px; }
.pd-gall-dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.pd-gall-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); margin: 0 3px; }
.pd-gall-dots i.on { background: var(--red); }
.pd-skus { margin: -6px 0 16px; }
.pd-sec { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 4px; }
.pd-sec-t { font-size: 14px; font-weight: 600; letter-spacing: 2px; margin-bottom: 10px; }
.pd-sec-sub { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.pd-rev { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pd-rev:last-child { border-bottom: 0; }
.pd-rev-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pd-rev-stars { color: var(--red); letter-spacing: 1px; }
.pd-rev-date { margin-left: auto; color: var(--ink-3); }
.pd-rev-body { font-size: 13px; color: var(--ink-2); line-height: 1.9; margin-top: 6px; }
.pd-rev-imgs { display: flex; gap: 8px; margin-top: 8px; }
.pd-rev-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.pd-rev-empty { font-size: 12px; color: var(--ink-3); padding: 8px 0; }
.pd-rev-more { text-align: center; padding: 8px 0; }
.pd-rev-more a { font-size: 12px; color: var(--ink-2); cursor: pointer; border-bottom: 1px solid var(--line-2); }
.pd-rev-form { margin-top: 10px; background: var(--bg); padding: 12px; border-radius: 6px; }
.pd-rev-rate { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.pd-rev-pick i { font-style: normal; font-size: 20px; color: var(--line-2); cursor: pointer; }
.pd-rev-pick i.on { color: var(--red); }
.pd-rev-form textarea { width: 100%; min-height: 72px; border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 10px; font-size: 13px; resize: vertical; background: #fff; }
.pd-rev-ops { text-align: right; margin-top: 8px; }
.pd-detail img { width: 100%; display: block; margin-bottom: 10px; border-radius: 4px; }
/* 富文本商品详情（后台编辑器产出）：图文混排自适应 */
.pd-rich { font-size: 14px; line-height: 1.9; color: var(--ink-2); margin-bottom: 14px; overflow-wrap: break-word; }
.pd-rich h1, .pd-rich h2, .pd-rich h3 { font-family: var(--serif); color: var(--ink); margin: 14px 0 8px; letter-spacing: 1px; }
.pd-rich p { margin: 8px 0; }
.pd-rich ul, .pd-rich ol { padding-left: 22px; margin: 8px 0; }
.pd-rich img { max-width: 100%; display: block; margin: 10px 0; border-radius: 4px; }
.pd-tv-cta { text-align: center; padding: 10px 0; }
.pd-tv-view { background: var(--bg); border-radius: 8px; overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.pd-tv-view:active { cursor: grabbing; }
.pd-tv-view img { width: 100%; display: block; pointer-events: none; }
.pd-tv-ops { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
/* 详情弹层三 tab：图文详情 / 缘主评价 / AI 佩戴效果 */
.pd-tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); margin-top: 16px; }
.pd-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 4px 10px; font-size: 14px; color: var(--ink-3); cursor: pointer; font-family: var(--serif); letter-spacing: 2px; }
.pd-tabs button.on { color: var(--red); border-bottom-color: var(--red); }
.pd-pane { padding: 14px 0 4px; }
.pd-rev-sum { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.pd-rev-sku { font-size: 10px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; }
.pd-rev-gate { margin-top: 12px; }
.pd-tv-sub { margin: 0 0 12px; }
.pd-tv-models { justify-content: center; margin-bottom: 12px; }
.pd-tv-note { margin-top: 16px; }

/* ---------- 我的（基础信息 + 测算/预约/恭请记录） ---------- */
.me-head { margin-bottom: 18px; }
.me-nick { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.me-acct { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.me-card { background: var(--card, #fff); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.me-card-t { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-card-sub { font-size: 12px; color: var(--ink-3); margin: -6px 0 12px; }
.me-pf { margin-bottom: 12px; }
.me-pf-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.me-pf-row:last-child { border-bottom: 0; }
.me-pf-row span { color: var(--ink-3); }
.me-pf-row b { color: var(--ink); font-weight: 500; }
.me-pf-ok { font-size: 11px; color: var(--green, #2E5E4E); border: 1px solid currentColor; border-radius: 3px; padding: 2px 8px; font-family: var(--sans); }
.me-pf-warn { font-size: 11px; color: var(--red); border: 1px solid currentColor; border-radius: 3px; padding: 2px 8px; font-family: var(--sans); }
.me-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.me-row:last-child { border-bottom: 0; }
.me-row-m { flex: 1; min-width: 0; }
.me-row-m b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row-s { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.me-st { flex-shrink: 0; font-size: 11px; border: 1px solid var(--line-2); color: var(--ink-3); border-radius: 3px; padding: 2px 8px; }
.me-st.st-done, .me-st.st-paid { color: var(--green, #2E5E4E); border-color: currentColor; }
.me-st.st-generating, .me-st.st-pending { color: #A8843C; border-color: currentColor; }
.me-st.st-failed, .me-st.st-cancelled, .me-st.st-refunded { color: var(--ink-3); }
.me-st.st-shipped { color: #5A7A99; border-color: currentColor; }
.me-view { flex-shrink: 0; font-size: 12px; color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.me-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 18px 0 8px; }
.me-gate { text-align: center; padding: 44px 20px; }
.me-gate-t { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.8; }
/* 个人中心：头部退出 + 四 tab + 订单详情 + 地址簿 */
.me-head { position: relative; padding-right: 72px; }
.me-logout { position: absolute; right: 0; top: 4px; background: none; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-3); font-size: 12px; padding: 5px 12px; cursor: pointer; }
.me-logout:hover { color: var(--red); border-color: currentColor; }
.me-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 4px 0 16px; }
.me-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 4px 9px; font-size: 14px; color: var(--ink-3); cursor: pointer; font-family: var(--serif); letter-spacing: 1px; }
.me-tab.on { color: var(--red); border-bottom-color: var(--red); }
.me-pane { display: none; }
.me-pane.on { display: block; }
.me-od { padding: 2px 0 14px; font-size: 12.5px; color: var(--ink-2); }
.me-od-t { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; margin: 10px 0 5px; }
.me-od-row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; line-height: 1.6; }
.me-od-row span { color: var(--ink-3); flex-shrink: 0; }
.me-od-row b { font-weight: 500; color: var(--ink); text-align: right; word-break: break-all; }
.me-od-r { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.me-rv-btn { font-size: 12px; color: var(--red); cursor: pointer; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.me-rv-done { font-size: 11px; color: var(--ink-3); }
.me-goods-row { cursor: pointer; }
.me-goods-row .me-view { border-bottom: 0; }
.me-gorder .me-row { border-bottom: 0; }
.me-gorder { border-bottom: 1px dashed var(--line-2); }
.me-gorder:last-child { border-bottom: 0; }
.me-addr { border-bottom: 1px dashed var(--line-2); padding: 10px 0; }
.me-addr:last-of-type { border-bottom: 0; }
.me-addr-m { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.me-addr-m b { color: var(--ink); font-weight: 500; }
.me-addr-m span { color: var(--ink-3); font-size: 12px; }
.me-addr-d { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.me-addr-ops { margin-top: 6px; display: flex; gap: 14px; }
.me-addr-ops a { font-size: 12px; color: var(--ink-3); cursor: pointer; text-decoration: none; }
.me-addr-ops a:hover { color: var(--red); }
.me-addr-badge { font-size: 10px; color: var(--red); border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px; }
.me-addr-add { margin-left: auto; }
.me-addr-form-t { font-size: 12px; color: var(--ink-3); margin: 4px 0 10px; }
.me-addr-ck { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 10px 0; cursor: pointer; }
.me-addr-ops-btn { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- 下单收货地址选择器（地址簿卡片 + 省市区三级联动） ---------- */
.addr-loading { font-size: 12px; color: var(--ink-3); padding: 10px 0; }
.addr-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.addr-card { display: block; position: relative; border: 1px solid var(--line-2, #e2ddd2); border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.addr-card input.ap-sel { position: absolute; opacity: 0; pointer-events: none; }
.addr-card.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.addr-card-m { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.addr-card-m b { color: var(--ink); }
.addr-card-m span { color: var(--ink-3); font-size: 12.5px; }
.addr-def { font-style: normal; font-size: 10px; color: var(--red); border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px; }
.addr-card-a { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.addr-card.addr-new span { font-size: 13px; color: var(--ink-2); }
.addr-pca { display: flex; gap: 8px; }
.addr-pca select { flex: 1; min-width: 0; padding: 10px 8px; border: 1px solid var(--line-2, #e2ddd2); border-radius: 6px; background: #fff; font-size: 13px; color: var(--ink); }
.addr-pca select:disabled { color: var(--ink-3); background: #f7f5f0; }
.addr-save { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 8px 0 2px; cursor: pointer; }
.addr-save input { accent-color: var(--red); }
