/* 知命 — 年轻时尚 · 电紫玫红渐变系统 v5 */

:root {
  /* 底色：冷调近白，比奶油粉更「杂志感」 */
  --paper: #f1f1f7;
  --paper-2: #fafaff;
  --card: #ffffff;

  /* 文字：高对比墨黑，年轻风格靠对比撑起来 */
  --ink-1: #14121f;
  --ink-2: #4f4a63;
  --ink-3: #8d88a3;
  --ink-inv: #ffffff;

  --line: #ececf4;
  --line-2: #dcd8e9;

  /* 主色：电光紫 → 品红 → 珊瑚 */
  --brand: #6c4dff;
  --brand-deep: #5533f5;
  --brand-soft: #eee9ff;
  --brand-2: #ff3d84;
  --brand-2-soft: #ffe9f2;
  --coral: #ff6a3d;
  --amber: #ffb020;

  --mint: #00bd88;
  --mint-soft: #dcfaef;
  --rose: #ff3564;
  --rose-soft: #ffe6ec;
  --peach: #ff9068;

  --grad: linear-gradient(118deg, #6c4dff 0%, #9b3cff 38%, #ff3d84 74%, #ff6a3d 100%);
  --grad-rev: linear-gradient(298deg, #6c4dff 0%, #9b3cff 38%, #ff3d84 74%, #ff6a3d 100%);
  --grad-soft: linear-gradient(118deg, #f0ecff 0%, #fbeaf7 62%, #ffeee7 100%);
  --grad-mint: linear-gradient(120deg, #00d69b, #00a6d8);
  --glass: rgba(20, 18, 31, .84);

  --shadow: 0 1px 2px rgba(28, 20, 60, .05), 0 8px 24px rgba(60, 40, 120, .07);
  --shadow-lift: 0 10px 30px rgba(108, 77, 255, .26);
  --shadow-pop: 0 14px 40px rgba(28, 20, 60, .16);

  --radius: 20px;
  --radius-sm: 13px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0a11;
    --paper-2: #131120;
    --card: #17151f;
    --ink-1: #f4f2fb;
    --ink-2: #b7b1ca;
    --ink-3: #837d99;
    --line: #262233;
    --line-2: #363048;
    --brand: #8b70ff;
    --brand-deep: #a087ff;
    --brand-soft: #241f3d;
    --brand-2: #ff5f9a;
    --brand-2-soft: #331d2c;
    --coral: #ff8560;
    --mint: #1fd6a0;
    --mint-soft: #10312a;
    --rose: #ff5e83;
    --rose-soft: #331c25;
    --grad-soft: linear-gradient(118deg, #221d3a 0%, #2e1c31 62%, #331f22 100%);
    --glass: rgba(10, 9, 16, .86);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 26px rgba(0, 0, 0, .34);
    --shadow-pop: 0 14px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 112px;
}

/* 光晕背景：大色块高斯感，比原来的粉雾更「潮」 */
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  background-image:
    radial-gradient(circle at 4% 0%, rgba(108, 77, 255, .26), transparent 40%),
    radial-gradient(circle at 100% 8%, rgba(255, 61, 132, .22), transparent 38%),
    radial-gradient(circle at 74% 100%, rgba(255, 106, 61, .16), transparent 44%),
    radial-gradient(circle at 0% 88%, rgba(0, 189, 136, .12), transparent 40%);
  background-attachment: fixed;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 14px calc(98px + var(--safe-b));
}

/* 拉丁微标：时尚编辑感的小字 */
.micro {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* --------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 11px;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.tb-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.tb-orb {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 13px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 5px 16px rgba(108, 77, 255, .34);
}
.tb-text { min-width: 0; }
.tb-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-sub {
  margin: -2px 0 0;
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: .1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-place {
  margin: 0;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-switch {
  flex: none;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-1);
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(28, 20, 60, .06);
  transition: transform .14s;
}
.tb-switch:active { transform: scale(.94); }
.tb-switch span { margin-left: 3px; font-size: 9px; color: var(--brand); }

/* --------------------------------------------------------- 悬浮胶囊导航（深色玻璃） */

.nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 30;
  width: min(440px, calc(100% - 24px));
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 14px 36px rgba(16, 10, 40, .34);
}
.nav-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 0;
  background: none;
  padding: 7px 0 6px;
  color: rgba(255, 255, 255, .56);
  font-family: inherit;
  cursor: pointer;
  border-radius: 19px;
  transition: color .2s, background .25s, transform .16s;
  min-height: 48px;
}
.nav-item:active { transform: scale(.93); }
.nav-icon { font-size: 16px; line-height: 1.25; filter: grayscale(.45) opacity(.8); transition: filter .25s; }
.nav-name { font-size: 10px; letter-spacing: .04em; font-weight: 700; }
.nav-item.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 5px 16px rgba(155, 60, 255, .45);
}
.nav-item.active .nav-icon { filter: none; }
.nav-lock {
  position: absolute;
  top: 3px; right: 50%;
  transform: translateX(20px);
  font-size: 8px; font-style: normal;
  opacity: .95;
}
.nav-free {
  position: absolute;
  top: 1px; right: 50%;
  transform: translateX(15px);
  font-size: 7.5px; font-style: normal; font-weight: 800;
  letter-spacing: .02em;
  color: #5a3b00;
  background: linear-gradient(118deg, #ffd76a, #ff9d3d);
  border-radius: 999px; padding: 1px 5px;
  box-shadow: 0 2px 6px rgba(255, 157, 61, .5);
}

/* --------------------------------------------------------- 卡片 */

.card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius);
  padding: 17px 16px;
  margin-bottom: 11px;
  box-shadow: var(--shadow);
  animation: rise .4s cubic-bezier(.22,.68,.42,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.card:nth-child(2) { animation-delay: .04s; }
.card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4) { animation-delay: .12s; }
.card:nth-child(5) { animation-delay: .16s; }
.card:nth-child(6) { animation-delay: .19s; }

.card-title {
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: '';
  flex: none;
  width: 5px; height: 17px;
  border-radius: 999px;
  background: var(--grad);
}
.card-title .sub {
  font-weight: 700; font-size: 10px; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase;
  margin-left: auto;
}
.card-title.em::before { display: none; }
.card-title .ct-emoji {
  flex: none;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--grad-soft);
  font-size: 14px;
}

.para { margin: 0 0 9px; color: var(--ink-2); font-size: 14px; }
.para:last-child { margin-bottom: 0; }
.note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  padding: 11px 13px;
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
}
.hint { margin: 7px 0 0; font-size: 12px; color: var(--ink-3); }
.empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 22px 0; margin: 0; }

.disclaimer {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.85;
  padding: 13px 15px;
  margin: 6px 0 0;
  background: color-mix(in srgb, var(--card) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ------------------------------------------------- 行内术语标注 */

.term {
  display: inline;
  color: inherit;
  cursor: pointer;
  border-bottom: 1.5px dotted color-mix(in srgb, var(--brand) 62%, transparent);
  padding-bottom: .5px;
  transition: background .18s, border-color .18s;
  border-radius: 3px;
}
.term::after {
  content: '?';
  display: inline-block;
  margin-left: 1.5px;
  font-size: .62em;
  font-weight: 800;
  line-height: 1;
  vertical-align: super;
  color: var(--brand);
  opacity: .8;
}
.term:hover, .term:focus-visible {
  background: var(--brand-soft);
  border-bottom-color: var(--brand);
  outline: none;
}
.term:active { background: var(--brand-soft); }

/* 「说人话」白话块 */
.plain {
  position: relative;
  margin: 0 0 12px;
  padding: 13px 14px 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  border-image-slice: 1;
  border-width: 0 0 0 3px;
  border-style: solid;
}
.plain-tag {
  display: inline-block;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}
.plain p { margin: 0; font-size: 13.5px; line-height: 1.78; color: var(--ink-1); }
.card > .plain:last-child { margin-bottom: 0; }

/* 「怎么看」折叠指引 */
.guide {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand-soft) 55%, transparent);
  border: 1px dashed color-mix(in srgb, var(--brand) 26%, transparent);
  overflow: hidden;
}
.guide summary {
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-deep);
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary i {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-style: normal; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.guide summary::after { content: '展开'; margin-left: auto; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.guide[open] summary::after { content: '收起'; }
.guide-body { padding: 0 13px 12px; }
.guide-dl { margin: 0; font-size: 12.5px; }
.guide-dl dt {
  font-weight: 700; color: var(--ink-1);
  margin-top: 8px;
}
.guide-dl dt:first-child { margin-top: 0; }
.guide-dl dd { margin: 1px 0 0; color: var(--ink-2); line-height: 1.7; }

/* 首次引导条 */
.tip {
  position: relative;
  padding: 15px 40px 15px 16px;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  margin-bottom: 11px;
  box-shadow: var(--shadow-lift);
  animation: rise .4s cubic-bezier(.22,.68,.42,1) both;
}
.tip b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.tip p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.72; opacity: .96; }
.tip-close {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .22); color: #fff;
  font-size: 13px; cursor: pointer; line-height: 1;
}

/* 命盘一句话摘要 */
.hero-quote {
  background: var(--grad);
  color: #fff;
  border: 0;
  padding: 18px 17px;
}
.hero-quote .micro { color: rgba(255, 255, 255, .72); }
.hero-quote h2 {
  margin: 6px 0 0;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.5;
}
.hero-quote p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; opacity: .95; }
.hero-quote .term { border-bottom-color: rgba(255, 255, 255, .6); }
.hero-quote .term::after { color: rgba(255, 255, 255, .85); }
.hero-quote .term:hover { background: rgba(255, 255, 255, .18); }
.hq-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hq-tag {
  font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 3px 11px;
  backdrop-filter: blur(4px);
}

/* 章节快速跳转 */
.secnav {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  margin: -4px -14px 6px;
  padding-inline: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 92%, transparent) 62%, transparent);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.secnav::-webkit-scrollbar { display: none; }
.secnav-item {
  flex: none;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px; font-weight: 700;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  min-height: 40px;
}
.secnav-item:active { transform: scale(.94); }
.secnav-item.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(108, 77, 255, .3); }

/* --------------------------------------------------- 信息网格 */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.info-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
}
.info-grid span { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; font-weight: 600; }
.info-grid b { font-size: 13.5px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.info-card { padding-block: 15px; }

/* --------------------------------------------------- 命盘主体 */

.pan-card { padding: 15px 12px; overflow: hidden; }
.pan {
  display: grid;
  grid-template-columns: 38px repeat(4, 1fr);
  gap: 5px;
}
.pan-labels { display: flex; flex-direction: column; padding-top: 34px; }
.pan-rowname {
  font-size: 10px;
  color: var(--ink-2);
  font-weight: 600;
  text-align: center;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pan-rowname .term { border-bottom: 0; border-left: 1.5px dotted color-mix(in srgb, var(--brand) 60%, transparent); padding-left: 2px; }
.pan-rowname .term::after { content: ''; margin: 0; }
.pan-labels .pan-rowname:nth-child(1) { height: 26px; }
.pan-labels .pan-rowname:nth-child(2),
.pan-labels .pan-rowname:nth-child(3) { height: 67px; }
.pan-labels .pan-rowname:nth-child(4) { height: 56px; }
.pan-labels .pan-rowname:nth-child(5),
.pan-labels .pan-rowname:nth-child(6) { height: 26px; }

.pan-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 16px;
  padding: 5px 4px;
  background: color-mix(in srgb, var(--brand-soft) 62%, transparent);
}
.pan-col.is-day {
  background: var(--grad-soft);
  outline: 1.5px solid color-mix(in srgb, var(--brand) 38%, transparent);
  outline-offset: -1px;
}
.pan-head {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  padding: 2px 0 3px;
  color: var(--ink-1);
}
.pan-head em {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: -.02em;
}
.pan-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pan-god { height: 26px; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.pan-god .dm {
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  box-shadow: 0 3px 9px rgba(108, 77, 255, .34);
}
.pan-gz {
  height: 67px;
  position: relative;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(40, 26, 90, .08);
  padding-top: 10px;
}
.pan-gz .glyph {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--wx);
}
.pan-gz em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: var(--wx);
  margin-top: 6px;
  letter-spacing: .3px;
}
.pan-gz .kong {
  position: absolute;
  top: 4px; right: 5px;
  font-style: normal;
  font-size: 8.5px;
  color: #fff;
  background: var(--brand-2);
  border-radius: 5px;
  padding: 0 4px;
  line-height: 1.5;
  z-index: 2;
}
.pan-hidden {
  min-height: 56px;
  gap: 2px;
  justify-content: flex-start;
  padding: 4px 1px 0;
  align-items: center;
}
.pan-hidden span { font-size: 10.5px; line-height: 1.3; font-weight: 700; }
.pan-hidden i { font-style: normal; font-size: 8.5px; color: var(--ink-3); margin-left: 1px; font-weight: 600; }
.pan-small { height: 26px; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.pan-foot {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: center;
}

/* ------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.chip-good { background: var(--mint-soft); color: var(--mint); }
.chip-bad { background: var(--rose-soft); color: var(--rose); }
.chip-term { cursor: pointer; transition: transform .14s; }
.chip-term:active { transform: scale(.94); }
.chip-filter { cursor: pointer; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip-filter.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ------------------------------------------------------- 神煞 */

.ss-list { display: flex; flex-direction: column; gap: 9px; }
.ss-item { padding: 12px 13px; border-radius: var(--radius-sm); background: var(--grad-soft); }
.ss-head { display: flex; align-items: center; gap: 8px; }
.ss-head b {
  font-size: 13px;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 2px 12px;
  box-shadow: 0 3px 10px rgba(108, 77, 255, .28);
}
.ss-head b .term { border-bottom-color: rgba(255,255,255,.65); }
.ss-head b .term::after { color: rgba(255,255,255,.9); }
.ss-head span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ss-item p { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini {
  text-align: center;
  padding: 10px 2px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
}
.mini span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.mini b { display: block; font-size: 15px; font-family: "Songti SC", serif; margin: 1px 0; color: var(--ink-1); }
.mini em { display: block; font-style: normal; font-size: 10px; color: var(--brand); font-weight: 700; }

/* ------------------------------------------------------- 五行 */

.radar-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.radar { width: 250px; height: auto; }

.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 26px 1fr 88px; align-items: center; gap: 9px; }
.bar-name {
  font-family: "Songti SC", serif;
  font-size: 15px; font-weight: 700; text-align: center;
}
.bar-track { height: 10px; background: color-mix(in srgb, var(--brand-soft) 90%, transparent); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.22,.68,.42,1); }
.bar-val { font-size: 11.5px; color: var(--ink-2); text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-weight: 600; }
.tag { font-size: 9.5px; font-weight: 800; padding: 1.5px 7px; border-radius: 999px; letter-spacing: .02em; }
.tag-fav { background: var(--mint-soft); color: var(--mint); }
.tag-avoid { background: var(--rose-soft); color: var(--rose); }

.verdict { text-align: center; padding: 2px 0 12px; }
.verdict-main { display: flex; align-items: center; justify-content: center; gap: 10px; }
.verdict-main b { font-family: "Songti SC", serif; font-size: 36px; line-height: 1.1; }
.verdict-level {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 3px 15px;
  box-shadow: 0 4px 14px rgba(108, 77, 255, .3);
}
.verdict-sub { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-3); }

.strength { margin: 6px 0 16px; }
.strength-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c4dff, #9b3cff, #ff3d84, #ff6a3d, #ffb020);
}
.strength-marker {
  position: absolute;
  top: 50%;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--brand);
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(108, 77, 255, .45);
  transition: left .7s cubic-bezier(.22,.68,.42,1);
}
.strength-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--ink-3); font-weight: 600; }

.kv {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-bottom: 7px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  font-size: 13.5px;
}
.kv span { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.kv b.fav { color: var(--mint); font-family: "Songti SC", serif; font-size: 18px; }
.kv b.avoid { color: var(--rose); font-family: "Songti SC", serif; font-size: 18px; }

.pattern { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pattern b {
  font-size: 17px; font-weight: 800;
  color: #fff; background: var(--grad);
  border-radius: 999px; padding: 3px 17px;
  box-shadow: 0 4px 14px rgba(108, 77, 255, .28);
}
.pattern b .term { border-bottom-color: rgba(255,255,255,.6); }
.pattern b .term::after { color: rgba(255,255,255,.9); }
.pattern span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.gstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 13px 0; }
.gstat { text-align: center; padding: 9px 0; background: var(--grad-soft); border-radius: var(--radius-sm); }
.gstat b { display: block; font-size: 19px; font-weight: 800; color: var(--brand); line-height: 1.25; }
.gstat span { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }

.god-list { display: flex; flex-direction: column; gap: 8px; }
.god-item { padding: 12px 13px; background: var(--grad-soft); border-radius: var(--radius-sm); }
.god-item b { font-size: 13.5px; color: var(--brand-deep); font-weight: 800; }
.god-item p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

.details summary { cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; color: var(--ink-1); }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ' ▾'; color: var(--brand); font-size: 11px; }
.details[open] summary::after { content: ' ▴'; }
.detail-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.detail-table th { text-align: left; color: var(--ink-3); font-weight: 700; padding: 6px 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.detail-table tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.detail-table td { padding: 5px 8px; }
.detail-table tbody tr td:first-child { border-radius: 8px 0 0 8px; }
.detail-table tbody tr td:last-child { border-radius: 0 8px 8px 0; }
.detail-table td:last-child, .detail-table th:last-child { text-align: right; }

/* ------------------------------------------------------- 大运 */

.cycles {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cycles::-webkit-scrollbar { height: 3px; }
.cycles::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.cycle {
  flex: none;
  width: 70px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 16px;
  border: 0;
  background: var(--grad-soft);
  font-family: inherit;
  cursor: pointer;
  transition: all .22s;
}
.cycle em { font-style: normal; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.cycle-gz { display: flex; flex-direction: column; line-height: 1.08; }
.cycle-gz i { font-style: normal; font-family: "Songti SC", serif; font-size: 21px; font-weight: 700; }
.cycle.active {
  background: var(--grad);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.cycle.active em { color: rgba(255,255,255,.9); }
.cycle.active .cycle-gz i { color: #fff !important; }
.cycle.current { outline: 2px dashed color-mix(in srgb, var(--brand-2) 65%, transparent); outline-offset: -2px; }
.cycle.current .cycle-year { color: var(--brand-2); font-weight: 800; }
.cycle.active.current .cycle-year { color: #fff; }

.years { display: flex; flex-direction: column; gap: 6px; }
.year-row {
  display: grid;
  grid-template-columns: 42px 34px 34px 34px 1fr 54px;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--grad-soft);
}
.y-year { font-weight: 800; font-size: 12px; }
.y-gz { font-family: "Songti SC", serif; font-size: 13.5px; }
.y-age, .y-god { color: var(--ink-3); font-weight: 600; }
.y-track { height: 7px; background: color-mix(in srgb, var(--card) 72%, transparent); border-radius: 999px; overflow: hidden; }
.y-fill { height: 100%; background: var(--ink-3); border-radius: 999px; }
.y-level { text-align: right; font-size: 11px; font-weight: 700; }
.lvl-a .y-fill { background: linear-gradient(90deg, #ff6a3d, #ff3d84); } .lvl-a .y-level { color: var(--brand-2); font-weight: 800; }
.lvl-b .y-fill { background: linear-gradient(90deg, #9b3cff, #6c4dff); } .lvl-b .y-level { color: var(--brand); }
.lvl-c .y-fill { background: #c3bed4; } .lvl-c .y-level { color: var(--ink-3); }
.lvl-d .y-fill { background: #98a6c4; } .lvl-d .y-level { color: #7787a8; }

/* ------------------------------------------------------- 今日 */

.today-card { background: var(--grad-soft); border: 0; }
.today-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.today-date { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.today-gz {
  margin: 5px 0 0; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--grad);
  display: inline-block; border-radius: 999px; padding: 2px 13px;
  letter-spacing: .04em;
  box-shadow: 0 4px 13px rgba(108, 77, 255, .3);
}
.gauge { width: 128px; height: 128px; flex: none; }
.gauge-arc { transition: stroke-dashoffset .9s cubic-bezier(.22,.68,.42,1); }
.today-card .para { margin-top: 12px; }

.score-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.score-row { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 10px; font-size: 12px; }
.score-name { color: var(--ink-2); font-weight: 700; }
.score-track { height: 8px; background: color-mix(in srgb, var(--card) 78%, transparent); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .8s cubic-bezier(.22,.68,.42,1); }
.score-val { text-align: right; color: var(--ink-2); font-weight: 700; }

.yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yi, .ji { padding: 13px; border-radius: var(--radius-sm); }
.yi { background: var(--mint-soft); }
.ji { background: var(--rose-soft); }
.yi b, .ji b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; border-radius: 9px;
  font-size: 13px; font-family: "Songti SC", serif; color: #fff;
}
.yi b { background: var(--grad-mint); }
.ji b { background: var(--grad); }
.yi p, .ji p { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

.lucky { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lucky-item { text-align: center; padding: 12px 2px; background: var(--grad-soft); border-radius: var(--radius-sm); }
.lucky-item span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.lucky-item b { display: block; font-size: 15px; margin-top: 2px; font-weight: 800; }
.trend { width: 100%; height: auto; }

/* ------------------------------------------------------- 我的 */

.profiles { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--grad-soft);
  cursor: pointer;
  transition: all .2s;
}
.profile-row:active { transform: scale(.985); }
.profile-row.active { box-shadow: 0 0 0 2px var(--brand) inset, 0 6px 18px rgba(108, 77, 255, .16); }
.pf-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  font-family: "Songti SC", serif; font-size: 20px; color: #fff;
  box-shadow: 0 5px 14px rgba(108, 77, 255, .3);
}
.pf-body { flex: 1; min-width: 0; }
.pf-body b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.pf-body span { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-actions { flex: none; display: flex; gap: 2px; }
.pf-edit, .pf-del {
  border: 0; background: none; color: var(--ink-3);
  font-size: 14px; cursor: pointer; padding: 6px 5px; border-radius: 9px;
  transition: background .18s, color .18s;
}
.pf-edit:hover { color: var(--brand); background: var(--brand-soft); }
.pf-del:hover { color: var(--rose); background: var(--rose-soft); }

.switch-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  cursor: pointer;
}
.switch-row div { flex: 1; }
.switch-row b { display: block; font-size: 13.5px; font-weight: 800; }
.switch-row span { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.switch-row input {
  flex: none;
  appearance: none; -webkit-appearance: none;
  width: 48px; height: 28px; border-radius: 999px;
  background: var(--line-2); position: relative;
  cursor: pointer; transition: background .25s; margin: 0;
}
.switch-row input::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.switch-row input:checked { background: var(--brand); }
.switch-row input:checked::after { transform: translateX(20px); }

/* 会员状态卡 */
.vip-card { background: var(--grad); color: #fff; border: 0; }
.vip-card .card-title { color: #fff; }
.vip-card .card-title .ct-emoji { background: rgba(255,255,255,.2); }
.vip-state { display: flex; flex-direction: column; gap: 8px; }
.vip-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
}
.vip-row b { flex: 1; font-weight: 700; }
.vip-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--brand-deep);
}
.vip-badge.off { background: rgba(0,0,0,.22); color: rgba(255,255,255,.85); }
.vip-note { margin: 11px 0 0; font-size: 11.5px; line-height: 1.75; opacity: .92; }
.vip-card .btn-ghost { background: rgba(255,255,255,.2); color: #fff; margin-top: 11px; }

/* 词典入口 */
.gl-entry {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  padding: 14px 15px; border: 0;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  font-family: inherit; cursor: pointer;
  transition: transform .14s;
}
.gl-entry:active { transform: scale(.985); }
.gl-entry-icon {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: 0 5px 14px rgba(108, 77, 255, .3);
}
.gl-entry div { flex: 1; min-width: 0; }
.gl-entry b { display: block; font-size: 14px; font-weight: 800; color: var(--ink-1); }
.gl-entry span { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.gl-entry i { flex: none; font-style: normal; color: var(--brand); font-size: 16px; font-weight: 700; }

/* ------------------------------------------------------- 术语词典页 */

.gl-hero { padding: 16px; }
.gl-back {
  border: 0; background: none; padding: 0 0 8px;
  color: var(--brand); font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.gl-hero h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.gl-hero > p { margin: 6px 0 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.gl-search { position: relative; margin-bottom: 12px; }
.gl-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .6; }
.gl-search input {
  width: 100%;
  padding: 12px 13px 12px 36px;
  font-size: 14.5px; font-family: inherit;
  color: var(--ink-1);
  background: var(--grad-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
}
.gl-search input:focus { outline: none; border-color: var(--brand); }
.gl-filter { margin-bottom: 10px; }
.gl-count { margin: 0; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }

.gl-list { display: flex; flex-direction: column; gap: 7px; }
.gl-item {
  position: relative;
  padding: 11px 34px 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  cursor: pointer;
  transition: transform .14s;
}
.gl-item:active { transform: scale(.985); }
.gl-item-main { display: flex; align-items: baseline; gap: 8px; }
.gl-item-main b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.gl-latin { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.gl-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.gl-arrow { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 14px; font-weight: 700; }

/* ------------------------------------------------------- 术语抽屉 */

.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-wrap[hidden] { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 10, 28, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s;
}
.sheet {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: min(560px, 100%);
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(18px + var(--safe-b));
  box-shadow: var(--shadow-pop);
  transition: transform .32s cubic-bezier(.22,.68,.42,1);
  -webkit-overflow-scrolling: touch;
}
.sheet-wrap.show .sheet-backdrop { opacity: 1; }
.sheet-wrap.show .sheet { transform: translate(-50%, 0); }
.sheet-tools { position: sticky; top: 0; z-index: 2; height: 42px; background: linear-gradient(var(--card) 76%, transparent); }
.sheet-grab { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 999px; background: var(--line-2); }
.sheet-close {
  position: absolute; top: 0; right: -4px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--grad-soft); color: var(--ink-2);
  font: 700 22px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}
.sheet-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sheet-cat { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.sheet-title { margin: 3px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.sheet-latin { font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }
.sheet-body { margin-top: 14px; }
.sheet-short {
  font-size: 15px; font-weight: 700; line-height: 1.7;
  color: var(--ink-1);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
}
.sheet-short b, .sheet-oral b, .sheet-detail > b {
  display: block; margin-bottom: 4px;
  font-size: 10px; line-height: 1.4; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
}
.sheet-short span { display: block; }
.sheet-oral {
  margin-top: 10px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: var(--radius-sm); background: var(--card);
}
.sheet-oral p { margin: 0; font-size: 13.5px; line-height: 1.78; color: var(--ink-2); }
.sheet-detail { margin-top: 13px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.sheet-detail > b { color: var(--ink-3); }
.sheet-detail p { margin: 0; }
.sheet-rel { margin-top: 15px; }
.sheet-rel-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 7px; }
.sheet-foot { display: flex; gap: 9px; margin-top: 18px; }
.sheet-foot .btn { padding: 12px 0; font-size: 14px; }

/* 回到顶部 */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(84px + var(--safe-b));
  z-index: 25;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-1);
  font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab[hidden] { display: none; }

/* ------------------------------------------------------- 表单 */

.form-wrap { max-width: 480px; margin: 0 auto; padding-top: 18px; }
.form-hero { text-align: center; margin-bottom: 22px; position: relative; }
.hero-seal {
  position: relative;
  width: 80px; height: 80px; margin: 0 auto 14px;
  border-radius: 26px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 38px; font-weight: 700;
  box-shadow: 0 14px 38px rgba(108, 77, 255, .4);
  animation: float 4.5s ease-in-out infinite;
}
.hero-seal::before,
.hero-seal::after {
  content: '✦';
  position: absolute;
  font-size: 15px;
  color: var(--brand-2);
  animation: twinkle 2.6s ease-in-out infinite;
}
.hero-seal::before { top: -8px; right: -10px; }
.hero-seal::after { bottom: -4px; left: -12px; font-size: 11px; animation-delay: 1.3s; color: var(--coral); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

.form-hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.form-hero p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

.form-card { padding: 20px 17px; }
.field { display: block; margin-bottom: 16px; }
.field[hidden] { display: none; }
.field > span { display: block; font-size: 12.5px; color: var(--ink-1); font-weight: 700; margin-bottom: 7px; }
.field input[type=text], .field input[type=number], .field select {
  width: 100%;
  padding: 12px 13px;
  font-size: 16px;
  min-height: 46px;
  font-family: inherit;
  color: var(--ink-1);
  background: var(--grad-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c4dff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.date-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.region-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.region-custom { margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.info-place { grid-column: 1 / -1; }
.info-place span { color: var(--ink-3); }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1;
  padding: 11px 0;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--grad-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
}
.seg button.on {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 77, 255, .32);
}

.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.btn {
  flex: 1;
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .01em;
  border-radius: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .14s, box-shadow .2s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 9px 26px rgba(108, 77, 255, .36);
}
.btn-ghost { background: var(--grad-soft); color: var(--ink-1); }

/* ------------------------------------------------------- 付费 / 锁定 */

.span-sec {
  background: var(--grad-soft);
  border: 1px dashed color-mix(in srgb, var(--brand) 34%, transparent);
}
.span-sec .card-title::before,
.span-sec .card-title.em::before { display: none; }
.span-sec .card-title { margin-bottom: 7px; }
.sec-sub { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.65; }

.paywall { padding: 0; overflow: hidden; }
.pw-hero {
  text-align: center;
  padding: 28px 18px 22px;
  background: var(--grad);
  color: #fff;
}
.pw-lock {
  width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.pw-hero h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pw-hero p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.75; opacity: .95; padding: 0 6px; }
.pw-bullets {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.pw-bullets li {
  font-size: 12.5px; line-height: 1.6;
  background: rgba(255,255,255,.16);
  border-radius: 10px; padding: 7px 11px;
}

.plans { display: flex; flex-direction: column; gap: 11px; padding: 16px 14px 6px; }
.plan-card {
  position: relative;
  text-align: left;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  border-radius: 17px;
  padding: 14px 15px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .14s, border-color .2s, box-shadow .2s;
}
.plan-card:active { transform: scale(.985); }
.plan-card.plan-best {
  border-color: var(--brand);
  box-shadow: 0 8px 26px rgba(108, 77, 255, .2);
}
.plan-tag {
  position: absolute; top: -9px; right: 13px;
  font-size: 10px; font-weight: 800;
  color: #fff; background: var(--brand-2);
  border-radius: 999px; padding: 2px 11px;
  box-shadow: 0 4px 12px rgba(255, 61, 132, .38);
}
.plan-name { font-size: 14.5px; font-weight: 800; color: var(--ink-1); letter-spacing: -.01em; }
.plan-price { margin: 4px 0 2px; color: var(--brand-deep); }
.plan-price b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.plan-period { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.plan-desc { margin: 7px 0 10px; font-size: 12px; color: var(--ink-2); line-height: 1.65; }
.plan-btn {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  color: #fff; background: var(--grad);
  border-radius: 999px; padding: 7px 17px;
  box-shadow: 0 6px 18px rgba(108, 77, 255, .3);
}
/* 限时免费：金色替代主色 */
.plan-tag.lf {
  background: linear-gradient(118deg, #ffb02e, #ff6a3d);
  box-shadow: 0 4px 12px rgba(255, 106, 61, .42);
}
.plan-btn.lf {
  background: linear-gradient(118deg, #ffb02e, #ff6a3d);
  box-shadow: 0 6px 18px rgba(255, 106, 61, .4);
}
.pw-lf-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
  color: #5a3b00;
  background: linear-gradient(118deg, #ffd76a, #ff9d3d);
  border-radius: 999px; padding: 4px 14px;
  box-shadow: 0 5px 16px rgba(255, 157, 61, .5);
}
.paywall.lf { border-color: rgba(255, 157, 61, .5); }
.pw-note {
  margin: 4px 14px 16px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.75;
  padding: 10px 12px;
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------- 合盘 */

.hp-pick { padding: 15px 16px; }
.hp-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
}
.hp-pickers .field > span { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; }
.hp-swap {
  flex: none;
  width: 38px; height: 38px;
  border: 0; border-radius: 13px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 18px; cursor: pointer;
  margin-bottom: 1px;
  transition: transform .2s;
}
.hp-swap:active { transform: rotate(180deg) scale(.92); }

.hp-result { background: var(--grad-soft); }
.hp-persons {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hp-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.hp-p-avatar {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 22px;
  box-shadow: 0 6px 16px rgba(108, 77, 255, .3);
}
.hp-p-body b { display: block; font-size: 13.5px; font-weight: 800; }
.hp-p-body span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.hp-p-body em {
  display: block; font-style: normal;
  font-size: 10px; color: var(--ink-2);
  font-family: "Songti SC", serif; letter-spacing: .5px;
  margin-top: 2px;
}
.hp-vs {
  font-size: 12px; font-weight: 800; color: var(--brand-2);
  background: var(--card); border-radius: 999px; padding: 3px 9px;
  box-shadow: 0 2px 8px rgba(28, 20, 60, .12);
}
.hp-score { text-align: center; margin-top: 8px; }
.hp-score .gauge { width: 150px; height: 150px; }
.hp-rating {
  margin-top: 4px;
  display: inline-block;
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--grad);
  border-radius: 999px; padding: 5px 19px;
  box-shadow: 0 5px 16px rgba(108, 77, 255, .3);
}

.hp-dim { margin-bottom: 14px; }
.hp-dim:last-child { margin-bottom: 0; }
.hp-dim .score-row { grid-template-columns: 62px 1fr 30px; }
.hp-dim .score-name .term { border-bottom: 0; }
.hp-dim .score-val { font-size: 11px; font-weight: 800; }
.hp-tag { border-radius: 999px; padding: 1px 8px; }
.hp-tag-good { background: var(--mint-soft); color: var(--mint); }
.hp-tag-mid { background: var(--brand-soft); color: var(--brand-deep); }
.hp-tag-bad { background: var(--rose-soft); color: var(--rose); }
.hp-dim-text { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* 相处模式 banner */
.hp-pattern {
  display: flex; gap: 14px; align-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(108, 77, 255, .26);
}
.hp-pattern .hp-pat-emoji {
  flex: none; width: 58px; height: 58px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: rgba(255, 255, 255, .18);
}
.hp-pat-body { flex: 1; min-width: 0; }
.hp-pat-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  opacity: .82; text-transform: uppercase;
}
.hp-pat-body h3 { margin: 3px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.hp-pat-body p { margin: 0; font-size: 12.5px; line-height: 1.7; opacity: .94; }

/* 亮点 / 留意 */
.hp-insights .ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ins-col {
  border-radius: var(--radius-sm); padding: 12px 13px;
  background: var(--grad-soft);
}
.ins-good { background: rgba(0, 200, 143, .08); }
.ins-bad { background: rgba(255, 61, 107, .07); }
.ins-h { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.ins-good .ins-h { color: var(--mint); }
.ins-bad .ins-h { color: var(--rose); }
.ins-item { margin-bottom: 10px; }
.ins-item:last-child { margin-bottom: 0; }
.ins-key {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 1px 8px; border-radius: 999px; margin-bottom: 3px;
}
.ins-good .ins-key { background: var(--mint); color: #fff; }
.ins-bad .ins-key { background: var(--rose); color: #fff; }
.ins-item p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.65; }

/* 两人五行画像 */
.hp-wx { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-card { border-radius: var(--radius-sm); padding: 13px; background: var(--grad-soft); }
.wx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.wx-ava {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 15px;
}
.wx-head b { font-size: 13px; font-weight: 800; }
.wx-dm { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--brand-deep); }
.wx-row { display: grid; grid-template-columns: 16px 1fr 22px; align-items: center; gap: 7px; margin-bottom: 7px; }
.wx-name { font-size: 12px; font-weight: 800; text-align: center; }
.wx-track { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.wx-fill { height: 100%; border-radius: 999px; }
.wx-pct { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-align: right; }
.wx-fav { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); }
.wx-fav b { font-weight: 800; }

/* 缘分宜忌 */
.hp-zn-note { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.hp-zn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hp-zn-col .hp-zn-h { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.hp-zn-h.good { color: var(--mint); }
.hp-zn-h.bad { color: var(--rose); }
.chips.sm { gap: 6px; }
.chips.sm .chip { font-size: 12px; padding: 4px 11px; }
.hp-years { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.hp-yr-col b { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.hp-yr { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ink-1); background: var(--grad-soft); border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0; }

/* 报告内 相处模式 / 小结 */
.rp-pattern { display: flex; gap: 13px; align-items: center; }
.rp-pat-emoji {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; background: var(--grad-soft);
}
.rp-pattern b { font-size: 15px; font-weight: 800; }
.rp-pattern p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.rp-summary { background: var(--grad-soft); }

@media (max-width: 430px) {
  .hp-insights .ins-grid, .hp-wx, .hp-zn-row, .hp-years, .open-grid { grid-template-columns: 1fr; }
}

.hp-empty { text-align: center; padding: 30px 20px; }
.hp-empty-emoji { font-size: 46px; }
.hp-empty h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hp-empty p { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.hp-empty .btn { max-width: 260px; margin: 0 auto; }

/* ------------------------------------------------------- 轻提示 */

.toast {
  position: fixed;
  left: 50%; bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 20px);
  z-index: 90;
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13.5px; font-weight: 700;
  padding: 11px 21px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------- 响应式 */

@media (min-width: 560px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .pan-gz .glyph { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------- 会员卡片（我的页） */
.vip-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.18); }
.vip-row:first-of-type { border-top: 0; }
.vip-row > span { flex: 1; font-size: 14px; font-weight: 700; }
.vip-row b.on { color: #b6ffd9; font-size: 12.5px; font-weight: 800; }
.vip-row b.off { color: #ffd2e2; font-size: 12.5px; font-weight: 800; }
.vip-row .btn-ghost { margin: 0; padding: 7px 13px; font-size: 12.5px; }
.vip-row b.lf { color: #ffe08a; font-size: 12.5px; font-weight: 800; }
.vip-card.lf { box-shadow: 0 0 0 2px rgba(255, 180, 60, .55), 0 10px 30px rgba(108, 77, 255, .28); }
.btn-ghost.btn-lf {
  background: linear-gradient(118deg, #ffb02e, #ff6a3d);
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 106, 61, .4);
}
.lf-row {
  background: linear-gradient(118deg, #fff4dc, #ffe9d6);
  border: 1px solid rgba(255, 157, 61, .45);
}
.lf-row b { color: #a45a00; }
.lf-row span { color: #8a5a1e; }
.lf-row input:checked { background: linear-gradient(118deg, #ffb02e, #ff6a3d); }

/* ------------------------------------------------------- 报告（详细解读 + 导出 PDF） */

.report-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px -14px 10px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.report-bar .rb-btn {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-1);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .14s;
}
.report-bar .rb-btn:active { transform: scale(.95); }
.report-bar .rb-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 5px 16px rgba(108, 77, 255, .3); }
.report-bar .rb-title { flex: 1; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink-1); }

/* 分享 CTA 卡（命盘/大运/合盘/今日 底部） */
.share-cta { display: flex; align-items: center; gap: 12px; }
.share-cta .sc-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.share-cta .sc-head > div { min-width: 0; }
.share-cta .sc-emoji {
  font-size: 22px; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-soft);
}
.share-cta .sc-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink-1); }
.share-cta .sc-head .hint { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.share-cta .btn { flex: none; width: auto; white-space: nowrap; }

/* 分享面板（底部 sheet） */
.share-sheet .sp-head { padding: 6px 4px 14px; }
.share-sheet .sp-head h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-1); }
.share-sheet .sp-head .hint { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.share-list { display: flex; flex-direction: column; gap: 10px; }
.share-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  text-align: left; font-family: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 15px;
  transition: transform .14s, border-color .14s, background .14s;
}
.share-item:active { transform: scale(.98); }
.share-item .si-emoji {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  font-size: 22px; border-radius: 14px; background: var(--grad-soft);
}
.share-item .si-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-item .si-main b { font-size: 15px; font-weight: 800; color: var(--ink-1); }
.share-item .si-main i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.share-item .si-go { font-size: 22px; color: var(--ink-3); flex: none; }

/* 长图预览（底部 sheet） */
.poster-preview { display: flex; flex-direction: column; gap: 12px; }
.poster-preview .pp-head { padding: 6px 4px 2px; }
.poster-preview .pp-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-1); }
.poster-preview .pp-head .hint { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.poster-scroll {
  max-height: 52vh; overflow-y: auto; border-radius: 18px;
  background: var(--grad-soft); padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.poster-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lift); }
.poster-preview .pp-loading, .poster-preview .pp-error {
  text-align: center; padding: 40px 12px; color: var(--ink-3); font-size: 14px;
}
.poster-actions { display: flex; gap: 9px; }
.poster-actions .btn { flex: 1; padding: 13px 0; font-size: 14px; font-weight: 800; }

/* 添加到桌面横幅 */
.install-banner {
  max-width: 692px;
  margin: 8px auto 2px;
  padding: 0 14px;
}
.install-banner[hidden] { display: none; }
.install-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 11px 42px 11px 12px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(145,92,255,.28), transparent 42%),
    linear-gradient(135deg, #21172f 0%, #342343 54%, #211c34 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 19px;
  box-shadow: 0 12px 28px rgba(38,20,58,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.install-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #9a6bff, #f24aaa 58%, #ff7654);
}
.install-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, rgba(151,95,255,.96), rgba(221,65,162,.9));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(14,8,25,.3);
  font-family: "Songti SC", serif;
  font-size: 22px; font-weight: 800;
}
.install-copy { flex: 1; min-width: 0; }
.install-copy b { display: block; color: #fff; font-size: 14px; line-height: 1.45; letter-spacing: .01em; }
.install-copy span { display: block; margin-top: 2px; color: #d8cfe6; font-size: 11.5px; line-height: 1.45; }
.install-action {
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
  background: linear-gradient(135deg, #ffe18b, #ffbc55); color: #3b2448;
  box-shadow: 0 5px 14px rgba(13,8,22,.25);
  font-family: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer;
}
.install-action:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(13,8,22,.22); }
.install-dismiss {
  position: absolute; top: 5px; right: 5px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent; color: rgba(255,255,255,.7);
  font: 700 20px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}
.install-guide { text-align: center; padding: 0 2px 4px; }
.install-guide .ig-icon { font-size: 42px; line-height: 1; }
.install-guide h3 { margin: 10px 0 0; font-size: 20px; line-height: 1.4; }
.install-guide > .hint { margin: 5px auto 16px; max-width: 360px; }
.install-guide ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; text-align: left; }
.install-guide li { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; background: var(--grad-soft); }
.install-guide li > span { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
.install-guide li b { display: block; font-size: 13.5px; line-height: 1.4; }
.install-guide li p { margin: 2px 0 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }

@media (max-width: 559px) {
  .app { padding-inline: 12px; padding-bottom: calc(108px + var(--safe-b)); }
  .topbar { padding-inline: 14px; }
  .secnav { margin-inline: -12px; padding-inline: 12px; }
  .share-cta { flex-direction: column; align-items: stretch; gap: 13px; }
  .share-cta .sc-head { width: 100%; }
  .share-cta .btn { width: 100%; }
  .poster-actions { display: grid; grid-template-columns: 1.25fr 1fr 1fr; }
  .poster-actions .btn { min-width: 0; padding-inline: 4px; }
}

@media (max-width: 374px) {
  .date-row { grid-template-columns: 1.15fr .9fr .9fr; gap: 6px; }
  .region-row { grid-template-columns: 1fr 1fr; }
  .region-row > :first-child { grid-column: 1 / -1; }
  .install-banner { padding-inline: 10px; }
  .install-banner-inner { gap: 9px; padding-left: 10px; }
  .install-icon { width: 40px; height: 40px; }
  .install-copy span { display: none; }
}

/* 渐变封面卡 */
.report-cover {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 26px 20px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-lift);
}
.report-cover .micro { color: rgba(255, 255, 255, .78); }
.report-cover h1 { margin: 8px 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.report-cover .rc-sub { margin: 0; font-size: 13px; opacity: .95; }
.report-cover .rc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.rc-tag {
  font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 4px 12px;
  backdrop-filter: blur(4px);
}
.report-cover .hp-cover-score {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 16px; gap: 6px;
}
.report-cover .hp-cover-score .gauge { width: 150px; height: 150px; }

/* 大运总览时间轴 */
.luck-toc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.toc-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 14px; padding: 9px 4px;
  cursor: pointer; font-family: inherit;
  transition: transform .14s, border-color .2s;
}
.toc-item:active { transform: scale(.95); }
.toc-gz { display: flex; gap: 2px; }
.toc-gz i { font-style: normal; font-family: "Songti SC", serif; font-size: 18px; font-weight: 700; line-height: 1.1; }
.toc-age { font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.toc-dot { width: 8px; height: 8px; border-radius: 50%; }
.toc-label { font-size: 10px; font-weight: 800; }
.dot-up { background: var(--mint); } .dot-mid { background: var(--brand); } .dot-down { background: var(--rose); }
.tend-up { color: var(--mint); } .tend-mid { color: var(--brand); } .tend-down { color: var(--rose); }
.toc-label.tend-up { color: var(--mint); } .toc-label.tend-mid { color: var(--brand); } .toc-label.tend-down { color: var(--rose); }

/* 单步大运详批：趋势徽标 */
.tend-badge { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-left: auto; }
.tend-badge.tend-up { background: var(--mint-soft); color: var(--mint); }
.tend-badge.tend-mid { background: var(--brand-soft); color: var(--brand-deep); }
.tend-badge.tend-down { background: var(--rose-soft); color: var(--rose); }

.pw-bullets { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.pw-bullets li { margin-bottom: 3px; }
.pw-bullets b { color: var(--ink-1); }

/* 合盘：分场景建议 */
.scene-list { display: flex; flex-direction: column; gap: 9px; }
.scene { display: flex; gap: 11px; padding: 12px 13px; border-radius: var(--radius-sm); background: var(--grad-soft); }
.scene .sc-ic { flex: none; font-size: 19px; line-height: 1.4; }
.scene b { display: block; font-size: 13.5px; font-weight: 800; }
.scene p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* 专属开运建议 */
.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-card { padding: 13px; border-radius: var(--radius-sm); background: var(--grad-soft); }
.open-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.open-avatar {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Songti SC", serif; font-size: 14px;
}
.open-head b { font-size: 13.5px; font-weight: 800; }
.open-head span { font-size: 11px; color: var(--ink-3); margin-left: auto; font-family: "Songti SC", serif; }
.open-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; padding: 5px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.open-row:first-of-type { border-top: 0; }
.open-row span { color: var(--ink-3); font-weight: 600; }
.open-row b { font-weight: 700; }

/* 报告底部说明 */
.report-foot { margin-top: 6px; font-size: 11px; color: var(--ink-3); line-height: 1.7; text-align: center; }

/* 报告入口卡片（大运 / 合盘视图内） */
.report-cta { text-align: center; padding: 16px; background: var(--grad-soft); }
.report-cta .hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }

/* ------------------------------------------------------- 打印（导出 PDF） */

@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  body { background-image: none !important; }
  #topbar, #install-banner, #nav, #fab, #sheet-wrap, .tip, .report-bar, .secnav, .share-cta, .no-print { display: none !important; }
  .app { max-width: none; padding: 0 !important; margin: 0 !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .card, .cycle-deep, .dim-deep, .report-cover, .luck-toc, section,
  .scene, .open-card, .report-cta { break-inside: avoid; }
  .report-cover { break-after: avoid; }
  .report-cover, .card { box-shadow: none !important; }
  .disclaimer { break-inside: avoid; }
}
