/* ============================================================
 * 天枢 · 深空金主题 v1（Cosmic Gold Theme）
 *
 * 配色：深空蓝黑底 / 金色主调 / 玻璃态卡片 / 动态星点
 * 字体：标题=ZCOOL XiaoWei，正文=Noto Serif SC
 * 特色：太极旋转动画 · 圆环评分 · 呼吸光晕 · 星空粒子
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=LXGW+WenKai+TC:wght@400;700&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  /* ---- 深空金七色 ---- */
  --void:         #0a0e1a;    /* 深空黑（底色） */
  --void-2:       #111827;    /* 次深 */
  --void-3:       #1a2035;    /* 卡片底 */
  --void-4:       #242b42;    /* 边框/分割 */
  --gold:         #D4AF37;    /* 亮金（主强调） */
  --gold-light:   #F0D060;
  --gold-deep:    #A07820;
  --gold-dim:     #8a6d2a;
  --text-p:       #e8dcc8;    /* 主文字（暖白） */
  --text-s:       #9ca3af;    /* 次要文字 */
  --text-f:       #6b7280;    /* 淡化文字 */
  --accent-r:     #ef4444;    /* 危险/忌 */
  --accent-g:     #4ade80;    /* 吉/宜 */
  --accent-b:     #3b82f6;    /* 信息/蓝 */
  --lan:          #60a5fa;    /* 靛青（文言区） */
  --lan-soft:     #93bbfc;
  --zhu:          #e0556b;    /* 朱红（总断/忌神强调） */
  --jade:         #4ade80;    /* 翡翠绿（用神/吉） */
  --mo:           #d4af37;    /* 金（命格名默认色） */
  --mo-soft:      #b6a06a;    /* 柔金（次要金文） */

  /* ---- 云台极光（suanlemeai 风格的科技光晕）---- */
  --cyan:         #38e1d0;    /* 云台青（科技强调） */
  --cyan-soft:    #7ff0e6;
  --violet:       #9a7bff;    /* 紫岚 */
  --aurora-1:     rgba(212,175,55,0.12);  /* 金辉 */
  --aurora-2:     rgba(56,225,208,0.10);  /* 青霞 */
  --aurora-3:     rgba(120,90,220,0.08);  /* 紫岚 */
  --glass-str:    rgba(255,255,255,0.07);

  /* ---- 功能色 ---- */
  --yi-green:     #34d399;
  --ji-red:       #f87171;
  --line:         rgba(212,175,55,0.10);
  --line-strong:  rgba(212,175,55,0.20);
  --line-hover:   rgba(212,175,55,0.35);
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.25);
  --shadow-md:    0 10px 32px rgba(0,0,0,0.35);
  --shadow-lg:    0 20px 52px rgba(0,0,0,0.45);
  --glow-gold:    0 0 28px rgba(212,175,55,0.15);
  --glow-gold-str:0 0 40px rgba(212,175,55,0.25);
  --glass:        rgba(255,255,255,0.03);
  --glass-hov:    rgba(255,255,255,0.06);
  --glass-bd:     rgba(212,175,55,0.12);

  /* ---- 圆角与间距 ---- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --sp-xs:  6px;
  --sp-sm:  12px;
  --sp-md:  20px;
  --sp-lg:  28px;
  --sp-xl:  44px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ==================== 星空背景 + 粒子 ==================== */
html, body {
  color: var(--text-p);
  background-color: var(--void);
  min-height: 100vh;
  line-height: 1.85;
  letter-spacing: 0.4px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 15px;
  /* 宇宙黑底 + 极光云台：深空之上叠金/青/紫光晕，营造推演云台纵深 */
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%,  var(--aurora-1) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 88% 18%, var(--aurora-2) 0%, transparent 58%),
    radial-gradient(ellipse 90% 70% at 78% 100%, var(--aurora-3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(28,34,56,0.55) 0%, transparent 70%),
    var(--void);
}

/* 极光星云层（模糊大色块，固定视口，营造云台光感 · 静态） */
body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(212,175,55,0.10), transparent 70%),
    radial-gradient(38% 32% at 82% 30%, rgba(56,225,208,0.08), transparent 70%),
    radial-gradient(45% 40% at 65% 88%, rgba(120,90,220,0.07), transparent 72%);
  filter: blur(40px);
}

/* ---- 标题字体 ---- */
h1, h2, h3, .brush, .brand .title,
.tab-btn, .btn, .seal-mark,
.shichen-opt, .score .v,
.classical-block::before {
  font-family: "ZCOOL XiaoWei", "LXGW WenKai TC", "STKaiti", "KaiTi", serif;
  font-weight: 400;
  letter-spacing: 3px;
}

/* ==================== 顶栏 ==================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(10,14,26,0.92), rgba(10,14,26,0.72));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--cyan) 65%, transparent);
  opacity: .5;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .seal-mark {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  display: grid; place-items: center;
  font-size: 23px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.2),
    0 3px 12px rgba(212,175,55,0.30),
    var(--glow-gold);
}
.brand .title {
  font-size: 26px;
  color: var(--gold);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.brand .sub {
  font-size: 10px;
  color: var(--text-f);
  letter-spacing: 6px;
  font-family: "Noto Serif SC", serif;
}

/* ==================== 导航 ==================== */
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  font-size: 15px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--glass);
  color: var(--text-s);
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  letter-spacing: 2px;
}
.tab-btn:hover {
  color: var(--gold);
  border-color: var(--line-hover);
  background: var(--glass-hov);
  text-shadow: 0 0 12px rgba(212,175,55,0.3);
}
.tab-btn.active {
  color: var(--void);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: var(--gold);
  box-shadow: var(--glow-gold), 0 4px 14px rgba(212,175,55,0.22);
  text-shadow: none;
}
.tab-btn.active::after {
  content: "印";
  position: absolute; top: -10px; right: -10px;
  width: 20px; height: 20px;
  background: var(--gold-deep); color: #fff;
  font-size: 11px;
  border-radius: 4px;
  display: grid; place-items: center;
  transform: rotate(7deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ==================== 布局 ==================== */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--sp-lg) 24px calc(var(--sp-xl) + 16px);
  position: relative;
  z-index: 1;
}
section.panel { display: none; }
section.panel.active {
  display: block;
  animation: panelIn .55s cubic-bezier(.22,.85,.25,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ==================== 首页 Hero ==================== */
.hero {
  text-align: center;
  padding: var(--sp-md) 16px calc(var(--sp-lg) - 6px);
}
.hero-copy { padding: 8px 0 6px; }
.hero-kicker {
  display: inline-block;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--cyan-soft);
  padding: 6px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(56,225,208,0.28);
  border-radius: 999px;
  background: rgba(56,225,208,0.06);
  box-shadow: 0 0 18px rgba(56,225,208,0.12);
}
.hero-title {
  font-family: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  font-size: 64px;
  letter-spacing: .12em;
  margin: 4px 0 10px;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-light) 38%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212,175,55,0.35);
  filter: drop-shadow(0 4px 10px rgba(160,120,72,0.25));
}
.hero-lead {
  color: var(--text-p);
  font-size: 18px;
  letter-spacing: .28em;
  text-indent: .28em;
  font-family: "Noto Serif SC", serif;
  text-shadow: 0 0 18px rgba(56,225,208,0.10);
}
.hero-sub {
  margin-top: 10px;
  color: var(--text-f);
  font-size: 13.5px;
  letter-spacing: .16em;
  text-indent: .16em;
  font-family: "Noto Serif SC", serif;
}

/* ==================== 卷首语 · 书画卷轴 ==================== */
.preface-scroll {
  position: relative;
  margin: var(--sp-lg) auto var(--sp-xl);
  width: fit-content;
  max-width: 96%;
  animation: scrollUnroll 1.2s cubic-bezier(.22,.85,.25,1) both;
}
@keyframes scrollUnroll {
  from { transform: scaleY(0.03); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.preface-scroll .scroll-frame {
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: upright;
  height: 340px;
  background: linear-gradient(180deg,
    rgba(26,32,53,0.9) 0%, rgba(17,24,39,0.95) 50%, rgba(26,32,53,0.9) 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 28px 38px;
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(212,175,55,0.04), 0 0 60px rgba(212,175,55,0.06);
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.scroll-frame::before,
.scroll-frame::after {
  content: "";
  position: absolute;
  top: -8px; bottom: -8px;
  width: 20px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep), var(--gold), var(--gold-light));
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.3);
}
.scroll-frame::before { left: -20px; border-radius: 5px 0 0 5px; }
.scroll-frame::after  { right: -20px; border-radius: 0 5px 5px 0; }

.scroll-frame .rope-left,
.scroll-frame .rope-right {
  position: absolute; top: -16px;
  width: 2px; height: 16px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  border-radius: 1px;
}
.rope-left  { left: -10px; }
.rope-right { right: -10px; }

.preface-scroll .vf-title {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", serif;
  font-size: 30px;
  letter-spacing: .22em;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(212,175,55,.6);
  margin-left: 26px;
}

.preface-scroll .vf-text {
  font-family: "Noto Serif SC", serif;
  font-size: 15.5px;
  line-height: 2.15;
  letter-spacing: .05em;
  color: var(--text-s);
  text-align: justify;
  text-indent: 2em;
  margin: 0;
}

/* 卷首语已重构为古风竖版，原「玄机」印章与 cloud-line 装饰线已移除 */

/* ==================== 功能卡片（玻璃态） ==================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.mcard {
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: var(--sp-lg) var(--sp-md);
  cursor: pointer;
  transition: all .4s cubic-bezier(.22,.85,.25,1);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
}
.mcard::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.mcard::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(212,175,55,0.06), transparent 60%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.mcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  border-color: var(--line-hover);
  background: linear-gradient(175deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}
.mcard:hover::before { opacity: 1; }
.mcard:hover::after { opacity: 1; }

.mcard .ic {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: var(--sp-sm);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(56,225,208,0.10));
  border: 1px solid rgba(212,175,55,0.28);
  box-shadow: inset 0 0 14px rgba(212,175,55,0.10), 0 4px 14px rgba(0,0,0,0.3);
  transition: transform .45s cubic-bezier(.22,.85,.25,1), box-shadow .4s, border-color .4s;
}
.mcard .ic .svg-ic { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 5px rgba(212,175,55,0.4)); }
.mcard:hover .ic {
  box-shadow: inset 0 0 18px rgba(212,175,55,0.18), 0 6px 22px rgba(56,225,208,0.20);
  border-color: rgba(56,225,208,0.45);
  transform: translateY(-2px) scale(1.06);
}
.mcard:hover .ic { transform: translateY(-2px) scale(1.08); }
.mcard:hover .ic .svg-ic { animation: iconFloat 2.4s ease-in-out infinite; }
@keyframes iconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.mcard h3 {
  margin: 0 0 var(--sp-xs);
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 16px rgba(212,175,55,0.2);
}
.mcard p {
  margin: 0;
  color: var(--text-s);
  font-size: 14px;
  line-height: 1.75;
}
.mcard .corner {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--gold-dim);
  font-size: 13px;
  font-family: "ZCOOL XiaoWei", serif;
  letter-spacing: 2px;
}

/* ==================== 通用表单与卡片 ==================== */
.card {
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  background:
    linear-gradient(175deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-md);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  border-radius: 1px;
}
.card h2 {
  color: var(--gold);
  font-size: 26px;
  margin: 0 0 var(--sp-md);
  border-left: 4px solid var(--gold);
  padding-left: 16px;
  position: relative;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(212,175,55,0.2);
}

label {
  display: block;
  font-size: 13.5px;
  color: var(--text-s);
  margin: var(--sp-sm) 0 6px;
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15px;
  background: rgba(255,255,255,0.05);
  color: var(--text-p);
  transition: border-color .25s, box-shadow .25s;
  backdrop-filter: blur(4px);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
  transform: none;
}
/* 固定字框：点击/聚焦时绝不发生位移或抖动 */
input:active, select:active, textarea:active,
input:focus, select:focus, textarea:focus {
  transform: none !important;
  animation: none !important;
}
input::placeholder, textarea::placeholder { color: var(--text-f); }
textarea { min-height: 130px; resize: vertical; line-height: 1.75; }

.row { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.row > div { flex: 1; min-width: 140px; }

/* 阳历/农历切换 */
.calendar-toggle {
  display: flex; align-items: center; gap: 16px;
  margin: var(--sp-sm) 0 8px;
  padding: 12px 18px;
  background: rgba(212,175,55,0.03);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.calendar-toggle label {
  margin: 0; cursor: pointer;
  font-size: 14.5px; color: var(--text-s);
  display: flex; align-items: center; gap: 8px;
  font-weight: 400;
}
.calendar-toggle input[type="radio"] { width: auto; accent-color: var(--gold); }

/* 十二时辰选择器 */
.shichen-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 8px 0 6px;
}
.shichen-opt {
  padding: 9px 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  background: var(--glass);
  color: var(--text-s);
  transition: all .25s;
  font-family: "Noto Serif SC", serif;
  line-height: 1.4;
}
.shichen-opt small { font-size: 11px; color: var(--text-f); }
.shichen-opt:hover {
  border-color: var(--lan);
  background: var(--glass-hov);
}
.shichen-opt.selected {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(212,175,55,0.28);
}
.shichen-opt.selected small { color: rgba(10,14,26,0.65); }

/* 按钮 */
.btn {
  margin-top: var(--sp-md);
  padding: 13px 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1a1206;
  font-size: 18px;
  cursor: pointer;
  letter-spacing: 4px;
  transition: all .3s ease;
  box-shadow: 0 6px 22px rgba(212,175,55,0.30), inset 0 0 0 1px rgba(255,255,255,0.25), var(--glow-gold);
  position: relative; overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left .55s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #fff0c0, var(--gold-light) 55%, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212,175,55,0.40), 0 0 46px rgba(212,175,55,0.18), inset 0 0 0 1px rgba(255,255,255,0.3);
}
.btn:hover::after { left: 100%; }
.btn.ghost {
  background: rgba(255,255,255,0.03);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(212,175,55,0.08); border-color: var(--gold); }

/* ==================== 报告容器 ==================== */
.report-container {
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212,175,55,0.04);
  animation: reportReveal .7s cubic-bezier(.22,.85,.25,1) both;
}
@keyframes reportReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.report-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(26,32,53,0.98), rgba(17,24,39,0.95));
  color: var(--gold-light);
  border-bottom: 1px solid var(--line);
}
.report-header h3 {
  margin: 0; font-size: 19px; color: var(--gold); letter-spacing: 3px;
  text-shadow: 0 0 16px rgba(212,175,55,0.2);
}
.report-header .seal-small {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 16px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25), var(--glow-gold);
  animation: sealStamp .5s cubic-bezier(.2,1.4,.4,1) .35s both;
}

.report-body { padding: var(--sp-md) var(--sp-lg) var(--sp-lg); }

/* ---- 文言文批辞区 ---- */
.classical-block {
  margin-bottom: var(--sp-md);
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(96,165,250,0.04), rgba(212,175,55,0.03));
  border-left: 3px solid var(--lan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
}
.classical-block::before {
  content: "批";
  position: absolute; top: -12px; left: 14px;
  background: var(--lan); color: var(--void);
  font-size: 13px;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 2px;
}
.classical-block h4 {
  color: var(--lan);
  font-size: 16px;
  margin: 8px 0 12px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: "Noto Serif SC", serif;
}
.classical-block p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-p);
  text-align: justify;
  margin: 0;
  text-indent: 2em;
}
/* 古文横排（总结板块用，不强约束竖排） */
.classical-horizontal {
  padding: 18px 20px;
}
.classical-horizontal p {
  font-size: 15.5px;
  line-height: 2.2;
  text-indent: 0;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}
.classical-horizontal .source-ref {
  display: block; margin-top: 8px;
}

/* 白话译文折叠按钮 */
.btn-translate {
  margin-left: auto;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-sans, system-ui, sans-serif);
  transition: background 0.2s;
}
.btn-translate:hover { background: rgba(212,175,55,0.22); }
.summary-vernacular-collapsed {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}
.summary-vernacular:not(.summary-vernacular-collapsed) {
  max-height: 4000px;
  opacity: 1;
}

/* 典籍出处 */
.source-ref {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---- 白话翻译区 ---- */
.vernacular-block {
  padding: 18px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.vernacular-block h4 {
  color: var(--text-s);
  font-size: 14px;
  margin: 0 0 12px;
  font-weight: 600;
  font-family: "Noto Serif SC", serif;
}
.vernacular-block p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-s);
  margin: 0;
}

/* 打卡白话 · 结构化行 */
.vn-row { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.vn-k {
  font-weight: 600; color: var(--gold); font-size: 14px;
  min-width: 72px; flex-shrink: 0;
}
.vn-v { font-size: 14.5px; color: var(--text-s); line-height: 1.7; }
.vn-v strong { color: var(--gold-light); }
.vn-section { margin: 12px 0; }
.vn-section .vn-k { display: block; margin-bottom: 4px; font-size: 13px; color: var(--lan); }
.vn-section .vn-v { display: block; }

/* 解梦样式 */
.dream-emo-section { margin: 14px 0; padding: 14px 16px; background: rgba(212,175,55,0.04); border-left: 3px solid var(--gold-dim); border-radius: 0 8px 8px 0; }
.dream-emo-section strong { color: var(--gold); }
.dream-action-section { margin: 14px 0; padding: 12px 16px; background: rgba(59,130,246,0.04); border-left: 3px solid var(--lan); border-radius: 0 8px 8px 0; }
.dream-action-section strong { color: var(--lan); }
.dream-hit-item { margin: 10px 0; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid var(--line); }
.dream-hit-item > strong { color: var(--accent-g); }
.dream-summary { margin: 16px 0; padding: 14px 18px; background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(240,208,96,0.04)); border-radius: 10px; line-height: 1.85; }

/* 分隔符 */
.divider-ink {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0;
  color: var(--gold-dim);
  font-size: 12px;
  letter-spacing: 5px;
}
.divider-ink::before,
.divider-ink::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ==================== 年龄段时间线报告样式 ==================== */
.age-timeline {
  margin: var(--sp-md) 0;
  counter-reset: age-section;
}
.age-section {
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--sp-lg);
  border-left: 2px solid var(--gold-dim);
  padding-bottom: var(--sp-md);
}
.age-section:last-child { border-left-color: transparent; }
.age-section::before {
  counter-increment: age-section;
  content: counter(age-section);
  position: absolute;
  left: -15px; top: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-family: "ZCOOL XiaoWei", serif;
  box-shadow: 0 2px 8px rgba(212,175,55,0.25);
}
.age-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  letter-spacing: 3px;
}
.age-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}
.age-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: all .25s ease;
}
.age-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
}
.age-card .ac-icon { font-size: 20px; margin-bottom: 6px; }
.age-card .ac-label {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: "ZCOOL XiaoWei", serif;
}
.age-card .ac-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-s);
}

/* ==================== 命格卡片 ==================== */
.mingge-card {
  position: relative;
  margin: 0 auto var(--sp-lg);
  max-width: 640px;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(212,175,55,0.012) 10px,
      rgba(212,175,55,0.012) 20px
    );
  border: 1.5px solid var(--gold-dim);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(212,175,55,0.06);
  backdrop-filter: blur(8px);
  animation: minggeReveal .8s cubic-bezier(.22,.85,.25,1) both;
}
@keyframes minggeReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.mingge-card .card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(26,32,53,0.98), rgba(17,24,39,0.95));
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--line);
}
.mingge-card .card-top-bar .badge-ge {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
}

.mingge-card .card-body {
  padding: var(--sp-md) 26px var(--sp-lg);
}

.mingge-card .ge-name-row {
  text-align: center;
  margin-bottom: var(--sp-md);
  position: relative;
}
.mingge-card .ge-name {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 34px;
  color: var(--gold);
  letter-spacing: 6px;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(212,175,55,0.35);
}
.mingge-card .ge-subtitle {
  font-size: 14px;
  color: var(--text-s);
  letter-spacing: 4px;
  font-family: "Noto Serif SC", serif;
}

.mingge-card .ge-level-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: var(--sp-md);
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.mingge-card .ge-level {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 3px;
}
.mingge-card .ge-rank {
  font-size: 14px;
  color: var(--gold-dim);
  letter-spacing: 2px;
}

.mingge-card .ge-traits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-md);
}
.mingge-card .ge-traits li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-s);
  border-bottom: 1px dotted rgba(212,175,55,0.12);
}
.mingge-card .ge-traits li:last-child { border-bottom: none; }
.mingge-card .ge-traits li::before {
  content: "◆";
  position: absolute;
  left: 6px;
  top: 10px;
  color: var(--gold-dim);
  font-size: 11px;
}

.mingge-card .ge-tags-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--sp-sm);
  border-top: 1.5px solid var(--gold-dim);
}
.mingge-card .ge-tag {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 16px;
  color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.1), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.2);
  padding: 7px 22px;
  border-radius: 24px;
  letter-spacing: 4px;
  box-shadow: inset 0 1px 3px rgba(212,175,55,0.08);
}

.mingge-card .ge-classic {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-f);
  margin-top: var(--sp-sm);
  letter-spacing: 1px;
}

.mingge-card .ge-index {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 18px;
  box-shadow:
    0 4px 14px rgba(212,175,55,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.25),
    var(--glow-gold);
  z-index: 2;
}

.mingge-card .ge-side-tag {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  padding: 12px 6px;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.04), transparent);
  border-radius: 2px;
  opacity: 0.7;
}

/* ==================== 八字命盘 ==================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  position: relative; overflow: hidden;
  backdrop-filter: blur(4px);
}
.pillar::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--lan), var(--gold));
  opacity: 0.35;
}
.pillar .pname { font-size: 12px; color: var(--text-f); letter-spacing: 3px; }
.pillar .pgz { font-size: 36px; color: var(--text-p); margin: 8px 0; text-shadow: 0 0 12px rgba(212,175,55,0.15); }
.pillar .psub { font-size: 13px; color: var(--gold); font-weight: 600; }
.pillar .plabel { font-size: 11px; color: var(--text-f); margin-top: 6px; }

.wx-bars { margin: 20px 0; }
.wx-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.wx-bar .lab { width: 28px; font-size: 15px; color: var(--text-s); }
.wx-bar .track { flex: 1; height: 16px; background: rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; }
.wx-bar .fill { height: 100%; border-radius: 8px; transition: width 1s ease; }
.wx-bar .num { width: 28px; text-align: right; font-size: 13px; color: var(--text-f); }

.daymaster-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 24px;
  color: var(--gold);
  font-size: 14px;
  background: rgba(212,175,55,0.08);
  letter-spacing: 1px;
}
.dayun { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dayun span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--glass);
  font-size: 14px;
  color: var(--text-s);
  transition: all .25s;
}
.dayun span:hover { border-color: var(--gold-dim); background: var(--glass-hov); }

.note {
  font-size: 13px;
  color: var(--text-f);
  margin-top: 14px;
  border-left: 3px solid var(--gold-dim);
  padding-left: 12px;
  line-height: 1.8;
}

/* ==================== 解梦报告 ==================== */
.report-block { margin: 18px 0; }
.report-block h4 { color: var(--gold); margin: 0 0 8px; font-size: 18px; }
.report-block p { margin: 0; white-space: pre-line; color: var(--text-s); line-height: 1.9; }

/* ==================== 打卡 ==================== */
.checkin-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.score {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  backdrop-filter: blur(4px);
  transition: all .25s ease;
}
.score:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold-dim); }
.score .v { font-size: 34px; color: var(--gold); text-shadow: 0 0 16px rgba(212,175,55,0.25); }
.score .k { font-size: 13px; color: var(--text-f); margin-top: 4px; }

.yiji { display: flex; gap: 20px; flex-wrap: wrap; }
.yiji .box {
  flex: 1; min-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  background: rgba(255,255,255,0.02);
}
.yiji .yi { border-left: 4px solid var(--accent-g); }
.yiji .ji { border-left: 4px solid var(--accent-r); }

.open-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.open-grid .o {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 20px;
  background: var(--glass);
  font-size: 14.5px;
  transition: all .25s;
}
.open-grid .o:hover { border-color: var(--gold-dim); transform: translateY(-2px); background: var(--glass-hov); }

.streak { font-size: 16px; color: var(--gold); font-weight: 600; }

/* ==================== 页脚 ==================== */
footer {
  text-align: center;
  color: var(--text-f);
  font-size: 12px;
  padding: var(--sp-lg) 24px;
  border-top: 1px solid var(--line);
  letter-spacing: 1.5px;
  line-height: 1.8;
}
.disclaimer {
  color: var(--text-f);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-top: var(--sp-md);
  background: rgba(255,255,255,0.02);
  line-height: 1.8;
}

/* ==================== 装饰 ==================== */
.deco { opacity: .9; }
.ink-blot { position: absolute; pointer-events: none; }

/* ==================== 八字详批报告（八段式） ==================== */
.lunar-note {
  font-size: 13px;
  color: var(--text-f);
  margin: 0 0 14px;
  font-style: italic;
}
.lunar-note::before { content: "※ "; color: var(--gold); font-style: normal; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
}
.table-scroll table { min-width: 520px; }

.bazi-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14.5px;
}
.bazi-table th, .bazi-table td {
  border: 1px solid var(--line);
  padding: 12px 10px;
  text-align: center;
  color: var(--text-s);
  vertical-align: middle;
}
.bazi-table thead th {
  background: linear-gradient(135deg, rgba(26,32,53,0.98), rgba(17,24,39,0.95));
  color: var(--gold-light);
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
  letter-spacing: 2px;
}
.bazi-table .corner-th {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  font-size: 13px;
}
.bazi-table tbody th {
  background: rgba(96,165,250,0.05);
  color: var(--lan);
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
  letter-spacing: 1px;
}
.bazi-table td .dm-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--void);
  background: var(--gold);
  border-radius: 10px;
  letter-spacing: 1px;
  vertical-align: middle;
}

.wx-dist {
  font-size: 14px;
  color: var(--text-s);
  margin: 10px 0 4px;
  padding: 10px 14px;
  background: rgba(212,175,55,0.04);
  border-left: 3px solid var(--gold-dim);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.birth-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.birth-info .bi-row { display: flex; align-items: baseline; gap: 10px; }
.birth-info .bi-k {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
}
.birth-info .bi-v { font-size: 16px; color: var(--text-p); }
.birth-info .bi-v.gz {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
}

.sec-h {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 3px;
  margin: 28px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  position: relative;
  text-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.core-sec { margin: 14px 0; }
.core-sec h4 {
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 600;
  font-family: "Noto Serif SC", serif;
}
.core-sec p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-s);
  margin: 0;
  text-align: justify;
}

.pers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 8px 0;
}
.pers-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lan);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: all .25s ease;
}
.pers-cell:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-top-color: var(--gold); background: rgba(255,255,255,0.05); }
.pers-cell .pc-title {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 15px;
  color: var(--lan);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.pers-cell p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-s);
  margin: 0;
}

.dayun-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14px;
}
.dayun-table th, .dayun-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--text-s);
  vertical-align: top;
}
.dayun-table thead th {
  background: linear-gradient(135deg, rgba(26,32,53,0.98), rgba(17,24,39,0.95));
  color: var(--gold-light);
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
  letter-spacing: 2px;
}
.dayun-table td.stage {
  font-family: "ZCOOL XiaoWei", serif;
  color: var(--gold);
  font-size: 16px;
  white-space: nowrap;
  background: rgba(212,175,55,0.03);
}
.dayun-vernacular td {
  padding: 10px 14px !important;
  background: rgba(212,175,55,0.025) !important;
  font-size: 13.5px !important;
  color: var(--text-s) !important;
  line-height: 1.75 !important;
  border-bottom: 1px dashed var(--line);
}
.dayun-vernacular .dv-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}

.liunian {
  margin: 14px 0 4px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(96,165,250,0.04), rgba(212,175,55,0.03));
  border-left: 4px solid var(--lan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-s);
}
.liunian b {
  font-family: "ZCOOL XiaoWei", serif;
  color: var(--lan);
  font-size: 17px;
  letter-spacing: 2px;
}

.health-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.health-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-s);
  border-bottom: 1px dotted var(--line-strong);
}
.health-list li:last-child { border-bottom: none; }
.health-list li::before {
  content: "护";
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px;
  background: var(--accent-g);
  color: var(--void);
  font-size: 11px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: "ZCOOL XiaoWei", serif;
}

.advice-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}
.advice-table th, .advice-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
}
.advice-table th {
  width: 92px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--void);
  font-family: "ZCOOL XiaoWei", serif;
  font-weight: 400;
  letter-spacing: 3px;
  text-align: center;
  font-size: 16px;
  white-space: nowrap;
}
.advice-table td { color: var(--text-s); line-height: 1.95; }

.zongduan {
  margin: 6px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(212,175,55,0.025));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-md);
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--text-p);
  text-align: justify;
  position: relative;
}
.zongduan::before {
  content: "断";
  position: absolute; top: -12px; left: 18px;
  background: var(--void); color: var(--gold);
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: 2px;
  border: 1px solid var(--gold-dim);
}

.shensha-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.ss-chip {
  font-size: 13px;
  color: var(--text-s);
  background: var(--glass);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 4px 14px 4px 12px;
  letter-spacing: 1px;
}
.ss-chip small { color: var(--text-f); font-size: 11px; }
.ss-chip.ss-ji {
  color: var(--accent-r);
  border-color: rgba(239,113,113,0.3);
  background: rgba(239,113,113,0.05);
}
.muted-sm {
  font-size: 12.5px;
  color: var(--text-f);
  font-style: italic;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  body { font-size: 14.5px; }

  .topbar { padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
  .brand .title { font-size: 22px; }
  .tabs { width: 100%; justify-content: center; }

  .wrap { padding: 20px 16px 48px; }

  .hero { padding: 24px 12px 16px; }
  .hero h1 { font-size: 40px; letter-spacing: 5px; }

  .preface-scroll { margin: 20px 12px; max-width: 96%; width: fit-content; }
  .scroll-frame { height: 280px; padding: 20px 20px; }
  .scroll-frame::before, .scroll-frame::after { width: 16px; }
  .scroll-frame::before { left: -16px; }
  .scroll-frame::after  { right: -16px; }
  .vf-title { font-size: 24px; margin-left: 18px; }
  .vf-text { font-size: 14px; line-height: 2; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .mcard { padding: 20px; }

  .pillars { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pillar .pgz { font-size: 28px; }

  .scores { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .shichen-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .shichen-opt { padding: 7px 0; font-size: 13px; }

  .report-body { padding: 16px 18px 22px; }
  .classical-block { padding: 16px 18px; }
  .classical-block p { font-size: 14.5px; line-height: 2; }
  .vernacular-block { padding: 14px 18px; }
  .vernacular-block p { font-size: 14px; line-height: 1.85; }

  .age-section { padding-left: 36px; }
  .age-section::before { width: 24px; height: 24px; left: -12px; font-size: 12px; }
  .age-grid { grid-template-columns: 1fr; }
  .age-title { font-size: 18px; }

  .card { padding: 20px; }
  .card h2 { font-size: 22px; }

  .yiji { flex-direction: column; }
  .yiji .box { min-width: 0; }

  .open-grid { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .shichen-grid { grid-template-columns: repeat(3, 1fr); }
  .tab-btn { padding: 7px 14px; font-size: 14px; }
  .btn { padding: 11px 24px; font-size: 16px; }
}

/* ==================== 子页切换 ==================== */
.subtabs { display: flex; gap: 10px; margin: 4px 0 18px; }
.subtab {
  flex: 1; padding: 11px 8px; border: 1px solid var(--gold-dim);
  background: var(--glass); color: var(--text-s);
  border-radius: 9px; cursor: pointer; font-family: 'ZCOOL XiaoWei', serif;
  letter-spacing: 3px; font-size: 15px; transition: all 0.25s ease;
}
.subtab:hover { border-color: var(--gold); color: var(--gold); }
.subtab.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--void); border-color: var(--gold); box-shadow: 0 4px 14px rgba(212,175,55,0.25); }
.subpane { display: none; }
.subpane.active { display: block; animation: fadeUp 0.5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ==================== 求签桶 ==================== */
.qian-wrap { text-align: center; }
.qian-bucket {
  width: 200px; margin: 26px auto 14px; position: relative;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5));
}
.bucket-svg { display: block; width: 200px; height: auto; }
.bucket-svg .bk {
  font-family: 'Ma Shan Zheng', 'STKaiti', serif; font-size: 56px; font-weight: 700;
  fill: rgba(255,238,180,0.20); text-anchor: middle;
}
.qian-stick-btn {
  position: absolute; left: 50%; top: 60%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50% !important;
  background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold-deep) 70%);
  color: var(--void); border: 2px solid var(--gold-light);
  font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', serif; font-size: 22px; line-height: 1.2;
  letter-spacing: 3px; cursor: pointer; z-index: 3;
  box-shadow: 0 5px 16px rgba(0,0,0,0.4), var(--glow-gold);
  transition: transform 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.qian-stick-btn:hover { transform: translate(-50%,-50%) scale(1.05); }
.qian-stick-btn:active { transform: translate(-50%,-50%) scale(0.96); }
.qian-stick-btn.disabled,
.qian-stick-btn[disabled] {
  opacity: 0.45; cursor: not-allowed; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 32% 28%, #555, #333 70%);
  border-color: #666;
}
/* 出签飞签动画 */
.fly-stick {
  position: absolute; left: 50%; top: 4px; width: 24px; height: 160px;
  transform: translateX(-50%); opacity: 0; pointer-events: none; z-index: 2;
}
.qian-bucket.shaking .fly-stick { animation: stickFly 0.9s ease-out; }
@keyframes stickFly {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0) rotate(0); }
  18%  { opacity: 1; transform: translateX(-50%) translateY(-28px) rotate(-7deg); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-150px) rotate(10deg); }
}
.qian-hint { font-size: 13px; color: var(--text-f); letter-spacing: 1px; min-height: 20px; }
.qian-topic-row { display: flex; justify-content: center; margin: 4px 0 10px; }
.qian-topic {
  width: min(320px, 86%); padding: 9px 14px; text-align: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text); font-size: 14px;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif; letter-spacing: 1px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.qian-topic::placeholder { color: var(--text-f); }
.qian-topic:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.qian-ask { text-align: center; font-size: 13px; color: var(--text-f); margin: 2px 0 10px; letter-spacing: 1px; }
.qian-ask b { color: var(--gold); font-weight: 600; }
.qian-seal-wrap { display: flex; justify-content: flex-end; margin-top: 12px; }
.qian-seal {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-family: 'Ma Shan Zheng', 'STKaiti', serif; font-size: 19px; font-weight: 700; line-height: 1.04;
  color: #fff; background: #b3242a; border: 2px solid #8e1c22; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.28);
  transform: rotate(-7deg); opacity: .92; letter-spacing: 1px;
}

@keyframes qianShake {
  0% { transform: rotate(0); } 15% { transform: rotate(-4deg); }
  30% { transform: rotate(4deg); } 45% { transform: rotate(-3deg); }
  60% { transform: rotate(3deg); } 75% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0); }
}
.qian-bucket.shaking { animation: qianShake 0.55s ease; }

/* ==================== 签文卡 ==================== */
.qian-card {
  max-width: 460px; margin: 22px auto 0;
  background: rgba(17,24,39,0.9);
  border-radius: 14px; padding: 24px 22px 20px; position: relative;
  border: 1px solid var(--glass-bd);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212,175,55,0.05);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.5s ease both;
}
.qian-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-radius: 14px 0 0 14px;
}
.qian-card.f-shang::before { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.qian-card.f-shangzhong::before { background: linear-gradient(180deg, var(--accent-g), #2f7d56); }
.qian-card.f-shangji::before { background: linear-gradient(180deg, #3f9e6f, #2f7d56); }
.qian-card.f-zhongji::before { background: linear-gradient(180deg, var(--lan), #357a80); }
.qian-card.f-zhong::before { background: linear-gradient(180deg, var(--text-s), #4a4540); }
.qian-card.f-xia::before { background: linear-gradient(180deg, var(--accent-r), #8e2418); }

.qian-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qian-no {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 19px; color: var(--text-p);
  letter-spacing: 2px;
}
.qian-fortune {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 17px; padding: 2px 14px;
  border-radius: 14px; color: var(--void); letter-spacing: 2px;
}
.f-shang .qian-fortune { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.f-shangzhong .qian-fortune { background: linear-gradient(135deg, var(--accent-g), #2f7d56); }
.f-shangji .qian-fortune { background: linear-gradient(135deg, #3f9e6f, #2f7d56); }
.f-zhongji .qian-fortune { background: linear-gradient(135deg, var(--lan), #357a80); }
.f-zhong .qian-fortune { background: linear-gradient(135deg, #7a7066, #5a524a); }
.f-xia .qian-fortune { background: linear-gradient(135deg, var(--accent-r), #8e2418); }
.qian-palace {
  font-size: 13px; color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 2px 10px; border-radius: 12px; letter-spacing: 1px;
}
.qian-title {
  text-align: center; font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', serif;
  font-size: 28px; color: var(--gold); letter-spacing: 4px; margin: 4px 0 16px;
  text-shadow: 0 0 20px rgba(212,175,55,0.25);
}
.qian-poem {
  text-align: center; font-family: 'Noto Serif SC', serif; font-size: 17px;
  line-height: 2.1; color: var(--text-p); letter-spacing: 2px; margin-bottom: 16px;
}
.qian-poem .poem-line { display: block; }
.qian-summary {
  text-align: center; font-size: 14.5px; color: var(--accent-g);
  background: rgba(74,222,128,0.06); border-radius: 8px;
  padding: 9px 12px; letter-spacing: 1px; margin-bottom: 18px;
}
.qian-note {
  font-family: 'Noto Serif SC', serif; font-size: 14.5px; line-height: 1.9;
  color: var(--text-s); text-align: justify; text-indent: 2em;
  background: rgba(255,255,255,0.025); border-left: 3px solid var(--accent-g);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 4px;
}
.qian-foot {
  text-align: center; font-size: 12px; color: var(--text-f);
  margin-top: 16px; letter-spacing: 1px;
}

@media (max-width: 420px) {
  .qian-note { font-size: 14px; }
  .qian-title { font-size: 24px; }
  .qian-poem { font-size: 15.5px; }
}

/* ==================== 移动端适配补充 ==================== */
@media (max-width: 768px) {
  .birth-info { flex-direction: column; gap: 8px 0; }
  .birth-info .bi-row { justify-content: flex-start; }
  .sec-h { font-size: 19px; margin: 24px 0 12px; }
  .pers-grid { grid-template-columns: 1fr; gap: 12px; }
  .zongduan { padding: 18px 16px; font-size: 14.5px; }
  .advice-table th { width: 72px; font-size: 14px; letter-spacing: 2px; }
  .bazi-table, .dayun-table { font-size: 13px; }
  .bazi-table th, .bazi-table td,
  .dayun-table th, .dayun-table td { padding: 9px 7px; }
  .health-list li { font-size: 14px; }
}

/* ==================== 命格组合列表 ==================== */
.ge-combo {
  margin-top: 14px; margin-bottom: 6px;
  background: linear-gradient(180deg, rgba(212,175,55,0.04), rgba(74,222,128,0.03));
  border: 1px solid rgba(212,175,55,0.15); border-radius: 12px; padding: 14px 16px;
}
.ge-combo-head {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--gold);
  letter-spacing: 2px; margin-bottom: 10px;
}
.ge-combo-head b { color: var(--accent-g); font-size: 18px; }
.ge-combo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ge-combo-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 10px; background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent-g); border-radius: 0 8px 8px 0;
}
.ge-combo-rank {
  font-family: 'ZCOOL XiaoWei', serif; color: var(--void); background: var(--gold);
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.ge-combo-name { font-weight: 600; color: var(--text-p); font-size: 14.5px; white-space: nowrap; }
.ge-combo-sub { color: var(--text-f); font-size: 12px; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ge-combo-score { color: var(--accent-g); font-size: 12px; flex: 0 0 auto; }

/* ==================== 弃用样式（原「每日打卡/每日一签」，2026-07-29 已取消保留）==================== */
.ck-mingge {
  text-align: center; font-size: 14px; color: var(--text-s);
  background: rgba(74,222,128,0.05); border: 1px solid rgba(74,222,128,0.15);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; letter-spacing: 1px;
}
.ck-mingge b { color: var(--gold); }

/* ==================== 灵签版本切换 ==================== */
.qian-version {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin: 4px 0 16px; flex-wrap: wrap;
}
.qv-label { font-size: 13px; color: var(--text-f); letter-spacing: 1px; }
.qv-btn {
  font-family: 'Noto Serif SC', serif; font-size: 14px; cursor: pointer;
  padding: 7px 18px; border-radius: 20px; border: 1px solid rgba(212,175,55,0.25);
  background: var(--glass); color: var(--text-s); transition: all .2s;
}
.qv-btn:hover { border-color: var(--gold); color: var(--gold); }
.qv-btn.active {
  background: var(--gold); color: var(--void); border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(212,175,55,0.25);
}

/* ==================== 求签详情 ==================== */
.qian-version-tag {
  text-align: center; font-size: 12px; color: var(--gold);
  letter-spacing: 1px; margin: 6px 0 4px;
}
.qian-yiji {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px;
}
.yj-cell {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(255,255,255,0.03); border-radius: 8px; padding: 8px 10px;
  border: 1px solid var(--line);
}
.yj-k {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 13px; color: #fff;
}
.yj-yi { background: var(--accent-g); }
.yj-ji { background: var(--accent-r); }
.yj-fw { background: var(--lan); }
.yj-yy { background: var(--gold-dim); }
.yj-v { font-size: 13px; line-height: 1.5; color: var(--text-s); }

.qian-details {
  border: 1px solid var(--glass-bd); border-radius: 10px;
  background: rgba(255,255,255,0.02); padding: 0; margin: 8px 0 14px; overflow: hidden;
}
.qian-details summary {
  cursor: pointer; list-style: none; padding: 11px 16px;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold);
  letter-spacing: 2px; background: rgba(212,175,55,0.04);
  display: flex; align-items: center; justify-content: space-between;
}
.qian-details summary::-webkit-details-marker { display: none; }
.qian-details summary::after { content: '▾'; font-size: 13px; transition: transform .2s; }
.qian-details[open] summary::after { transform: rotate(180deg); }
.qian-story {
  font-family: 'Noto Serif SC', serif; font-size: 14.5px; line-height: 1.95;
  color: var(--text-s); text-align: justify; text-indent: 2em;
  padding: 12px 16px 4px; border-top: 1px dashed var(--line);
}
.qian-notes { padding: 6px 16px 14px; }
.pn-item { padding: 9px 0; border-bottom: 1px dotted var(--line); }
.pn-item:last-child { border-bottom: none; }
.pn-line {
  font-family: 'Ma Shan Zheng', cursive; font-size: 17px; color: var(--gold);
  letter-spacing: 1px; margin-bottom: 3px;
}
.pn-note { font-size: 14px; line-height: 1.8; color: var(--text-s); text-align: justify; }

@media (max-width: 480px) {
  .ge-combo-list { grid-template-columns: 1fr; }
  .qian-yiji { grid-template-columns: 1fr; }
}

/* ==================== 圆环评分组件（新增） ==================== */
.score-ring {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto;
}
.score-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.score-ring .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}
.score-ring .ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.22,.85,.25,1);
}
.score-ring .ring-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.score-ring .ring-num {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.score-ring .ring-label {
  font-size: 11px;
  color: var(--text-f);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ==================== 卜卦页面专用样式（新增） ==================== */
.divination-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-md);
  align-items: start;
}
@media (max-width: 900px) {
  .divination-layout { grid-template-columns: 1fr; }
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.topic-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .3s ease;
  border-left: 3px solid transparent;
}
.topic-card:hover {
  border-color: var(--line-hover);
  border-left-color: var(--gold);
  background: var(--glass-hov);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.topic-card.selected {
  border-color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212,175,55,0.06);
  box-shadow: var(--glow-gold);
}
.topic-card .tc-icon { font-size: 22px; margin-bottom: 8px; }
.topic-card .tc-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.topic-card .tc-desc {
  font-size: 13px;
  color: var(--text-f);
  line-height: 1.6;
}

.cast-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.cast-method {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
}
.cast-method:hover {
  border-color: var(--gold-dim);
  background: var(--glass-hov);
}
.cast-method.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
  box-shadow: var(--glow-gold);
}
.cast-method .cm-icon { font-size: 28px; margin-bottom: 8px; }
.cast-method .cm-name {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
}
.cast-method .cm-desc {
  font-size: 12px;
  color: var(--text-f);
  margin-top: 4px;
}

/* 铜钱摇掷动画 */
.coin-toss-area {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.coin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold-deep) 60%, #8a6920);
  display: flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 24px;
  color: var(--void);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.2);
  transition: transform 0.1s;
  cursor: default;
  user-select: none;
}
.coin.yang { color: var(--void); }
.coin.yin { color: var(--accent-r); text-shadow: 0 0 8px rgba(239,113,113,0.5); }
.coin.tossing {
  animation: coinFlip 0.4s ease-in-out;
}
@keyframes coinFlip {
  0%   { transform: translateY(0) rotateX(0deg) scale(1); }
  25%  { transform: translateY(-40px) rotateX(720deg) scale(1.1); }
  50%  { transform: translateY(-60px) rotateX(1440deg) scale(1.15); }
  75%  { transform: translateY(-20px) rotateX(2160deg) scale(1.05); }
  100% { transform: translateY(0) rotateX(2880deg) scale(1); }
}

/* 六爻卦象展示 */
.hexagram-display {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 20px 0;
}
.hexagram-line {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 280px;
}
.hex-line-visual {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.hex-yao {
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
  transition: all .3s ease;
}
.hex-yao.yang { width: 80px; }
.hex-yao.yin { width: 36px; }
.hex-yao.old-yang {
  background: var(--accent-r);
  box-shadow: 0 0 8px rgba(239,113,113,0.4);
}
.hex-yao.old-yin {
  background: var(--accent-g);
  box-shadow: 0 0 8px rgba(74,222,128,0.4);
}
.hex-line-label {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 13px;
  color: var(--text-f);
  width: 24px;
  text-align: right;
}
.hex-line-najia {
  font-size: 12px;
  color: var(--lan);
  width: 40px;
  text-align: left;
}
.hex-line-shen {
  font-size: 11px;
  color: var(--text-f);
  width: 28px;
}
.hex-line-shi {
  color: var(--gold);
  font-weight: 600;
}
.hex-line-ying {
  color: var(--accent-r);
}

/* 解卦结果卡片网格 */
.interpret-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.interpret-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  border-top: 3px solid var(--gold-dim);
  transition: all .25s ease;
}
.interpret-card:hover {
  border-color: var(--gold-dim);
  background: rgba(255,255,255,0.04);
}
.interpret-card.ic-primary { border-top-color: var(--gold); }
.interpret-card.ic-action { border-top-color: var(--accent-g); }
.interpret-card.ic-risk { border-top-color: var(--accent-r); }
.interpret-card.ic-extra { border-top-color: var(--lan); }
.interpret-card .ic-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.interpret-card .ic-icon { font-size: 18px; }
.interpret-card .ic-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-s);
}
.interpret-card .ic-body p { margin: 0 0 8px; }
.interpret-card .ic-body p:last-child { margin-bottom: 0; }

/* 卦象信息条 */
.gua-info-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-md);
  margin: 16px 0;
  flex-wrap: wrap;
}
.gua-info-bar .gua-name {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 3px;
}
.gua-info-bar .gua-symbol {
  font-size: 28px;
  color: var(--gold-dim);
}
.gua-info-bar .gua-meta {
  font-size: 13px;
  color: var(--text-s);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.gua-info-bar .gua-meta span {
  padding: 3px 10px;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* 变卦/互卦展示 */
.related-gua {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.related-gua-item {
  flex: 1;
  min-width: 140px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}
.related-gua-item .rg-label {
  font-size: 12px;
  color: var(--text-f);
  margin-bottom: 6px;
}
.related-gua-item .rg-name {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ============ 周易卜卦 ============ */
.div-block { margin-top: 18px; }
.div-label { font-size: 14px; color: var(--gold); margin-bottom: 10px; letter-spacing: 1px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-s); font-size: 14px; transition: .2s;
}
.topic-chip:hover { border-color: var(--line-hover); color: var(--text-p); }
.topic-chip.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border-color: var(--gold); color: #1a1209; font-weight: 600; }

.method-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.method-btn {
  padding: 8px 16px; border-radius: var(--r-md); cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-s); font-size: 14px; transition: .2s;
}
.method-btn:hover { border-color: var(--line-hover); color: var(--text-p); }
.method-btn.active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); border-color: var(--gold); color: #1a1209; font-weight: 600; }
.method-pane { display: none; margin-top: 14px; }
.method-pane.active { display: block; }

.coin-slots { display: flex; gap: 14px; justify-content: center; margin: 8px 0 18px; flex-wrap: wrap; }
.coin-slot {
  position: relative; width: 54px; height: 54px;
  perspective: 500px;
  display: inline-flex; align-items: center; justify-content: center;
}
.coin3d {
  position: relative; width: 54px; height: 54px;
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.coin-slot.is-yin .coin3d { transform: rotateY(180deg); }
.coin-tumbler { position: relative; width: 54px; height: 54px; transform-style: preserve-3d; }
.coin-slot.tossing .coin-tumbler { animation: coinTumble .5s ease-in-out; }
@keyframes coinTumble {
  0%   { transform: translateY(0) rotateX(0); }
  50%  { transform: translateY(-26px) rotateX(720deg) scale(1.08); }
  100% { transform: translateY(0) rotateX(1440deg); }
}
.coin-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.coin-face.back { transform: rotateY(180deg); }
.coin-svg { width: 54px; height: 54px; display: block; }
.coin-svg .ck { font-family: 'ZCOOL XiaoWei', 'STKaiti', serif; font-size: 21px; font-weight: 700; fill: #4a3a12; text-anchor: middle; }
.coin-slot.is-changing { filter: drop-shadow(0 0 7px rgba(212,175,55,.85)); }
.chg-badge {
  position: absolute; top: -6px; right: -6px; z-index: 4;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0c2, var(--gold-deep) 75%);
  color: #2a1c06; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 1px solid #6e521a; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.div-hint { text-align: center; color: var(--text-f); font-size: 13px; margin-top: 8px; }

.div-result { margin-top: 16px; }
.div-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--glass); border: 1px solid var(--glass-bd); border-radius: var(--r-lg); }
.div-guan { font-size: 13px; color: var(--text-f); }
.div-hname { font-family: 'ZCOOL XiaoWei', serif; font-size: 26px; color: var(--gold); letter-spacing: 3px; }
.div-score { text-align: center; min-width: 96px; }
.ds-num { font-size: 34px; font-weight: 700; line-height: 1; }
.ds-v { font-size: 15px; margin-top: 2px; letter-spacing: 2px; }
.v-大吉 .ds-num, .v-大吉 .ds-v { color: #4ade80; }
.v-吉 .ds-num, .v-吉 .ds-v { color: var(--gold-light); }
.v-中平 .ds-num, .v-中平 .ds-v { color: #fbbf24; }
.v-凶 .ds-num, .v-凶 .ds-v { color: #fb923c; }
.v-大凶 .ds-num, .v-大凶 .ds-v { color: #f87171; }

.gua-main { margin: 16px 0; padding: 12px 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); }
.yao-row { display: flex; align-items: center; gap: 16px; padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.yao-row:last-child { border-bottom: none; }
.yao-row.changing { background: rgba(212,175,55,0.06); border-radius: 6px; }
.yao-pos { width: 48px; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; }
.yao-line { font-size: 15px; letter-spacing: 1px; color: var(--text-p); white-space: pre; flex: 1; font-family: 'Courier New', monospace; }
.yao-shen { width: 40px; color: var(--text-s); font-size: 13px; text-align: center; }
.yao-najia { width: 54px; color: var(--text-f); font-size: 13px; text-align: center; }
.yao-mark { width: 30px; text-align: center; }
.sy-tag { display: inline-block; background: var(--gold); color: #1a1209; font-size: 12px; padding: 1px 7px; border-radius: 4px; font-weight: 700; }
.sy-tag.ying { background: var(--gold-deep); color: #fff; }

.gua-text { padding: 12px 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; line-height: 1.7; }
.gt-jud { color: var(--text-p); margin-bottom: 6px; }
.gt-img { color: var(--text-s); }
.gua-relatives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.gua-mini { padding: 12px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; }
.gm-tag { font-size: 12px; color: var(--gold); margin-bottom: 6px; letter-spacing: 2px; }
.gm-name { font-family: 'ZCOOL XiaoWei', serif; font-size: 17px; color: var(--text-p); margin-bottom: 6px; }
.gm-jud { font-size: 12px; color: var(--text-f); line-height: 1.5; }

.interpret-card { padding: 18px; background: linear-gradient(160deg, rgba(212,175,55,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--glass-bd); border-radius: var(--r-lg); }
.ic-core { line-height: 1.8; color: var(--text-p); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--gold); }
.ic-sub { font-size: 14px; color: var(--gold); margin-bottom: 8px; letter-spacing: 1px; }
.ic-king { margin-bottom: 14px; }
.king-item { padding: 10px 12px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.king-lbl { color: var(--gold-light); font-size: 13px; margin-bottom: 4px; }
.king-text { color: var(--text-p); font-size: 15px; font-family: 'ZCOOL XiaoWei', serif; }
.king-note { color: var(--text-s); font-size: 13px; margin-top: 3px; }
.king-none { color: var(--text-f); font-size: 13px; }
.ic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.ic-col ul { margin: 0; padding-left: 18px; }
.ic-col li { color: var(--text-s); font-size: 14px; line-height: 1.7; }
.ic-timing { color: var(--gold-dim); font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.div-foot { margin-top: 16px; font-size: 12px; color: var(--text-f); text-align: center; line-height: 1.6; }

/* 六爻 · 六亲 / 旺衰 / 空亡 / 用神 / 标签 / 动变 */
.yao-qin { width: 44px; color: var(--mo-soft); font-size: 13px; text-align: center; }
.yao-wang { width: 32px; font-size: 13px; text-align: center; border-radius: 4px; padding: 1px 0; }
.yao-wang.w-wang { color: #4ade80; background: rgba(74,222,128,0.1); }
.yao-wang.w-ruo { color: #f87171; background: rgba(248,113,113,0.1); }
.yao-wang.w-ping { color: var(--text-s); }
.yao-kong { width: 22px; color: #fbbf24; font-size: 12px; text-align: center; }
.yao-row.yong-row { background: rgba(212,175,55,0.1); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(212,175,55,0.35); }
.yong-row-info { margin: 12px 0; padding: 10px 14px; background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.3); border-radius: var(--r-md); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-p); }
.yong-row-info.missing { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.25); }
.yong-tag { font-size: 12px; color: #1a1209; background: var(--gold); padding: 2px 9px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; }
.yong-row-info b { color: var(--gold-light); }
.yong-fu { width: 100%; font-size: 12px; color: #fbbf24; margin-top: 2px; }
.tag-pills { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.tag-pill { font-size: 12px; padding: 3px 12px; border-radius: 999px; background: rgba(96,165,250,0.12); color: var(--lan); border: 1px solid rgba(96,165,250,0.3); letter-spacing: 1px; }
.change-list { margin: 14px 0; padding: 12px 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); }
.change-item { font-size: 14px; color: var(--text-p); line-height: 1.7; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.change-item:last-child { border-bottom: none; }
.change-none { font-size: 13px; color: var(--text-f); }

@media (max-width: 640px) {
  .gua-relatives { grid-template-columns: repeat(2, 1fr); }
  .ic-cols { grid-template-columns: 1fr; }
}

/* ============ 十二宫位 ============ */
.palace-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px;
}
.palace-cell {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.palace-cell:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: var(--shadow-sm); }
.pc-name { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold); letter-spacing: 2px; }
.pc-zhi { font-size: 13px; color: var(--text-s); margin: 3px 0 2px; }
.pc-wx { color: var(--mo-soft); font-size: 12px; }
.pc-ss { display: inline-block; background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); font-size: 12px; padding: 1px 8px; border-radius: 4px; }
.pc-tags { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.ps-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(96,165,250,0.12); color: var(--lan); border: 1px solid rgba(96,165,250,0.25); }
.pc-note { font-size: 12px; line-height: 1.7; color: var(--mo-soft); margin-top: 4px; }
@media (max-width: 640px) { .palace-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ 顶光 + 底部压暗，营造纵深立体（静态） ============ */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 112%, rgba(5,7,14,0.82), transparent 55%);
}
/* 卡片（取消倾斜/上抬动画，仅保留金边光晕反馈） */
.card, .mcard {
  transition: box-shadow .45s, border-color .45s;
}
.card:hover, .mcard:hover {
  box-shadow: var(--shadow-lg), var(--glow-gold-str);
  border-color: var(--line-hover);
}
/* 首页英雄：太阳系导航 */
.hero { padding: 10px 16px 4px; }

/* 经典出处脚注 */
footer {
  position: relative; z-index: 1;
  max-width: 880px; margin: 40px auto 30px; padding: 22px 26px;
  background: linear-gradient(160deg, rgba(26,32,53,0.85), rgba(17,24,39,0.92));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.85; color: var(--text-s);
}
.src-title {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 17px; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 10px; text-align: center;
}
.src-list { margin: 0; padding-left: 20px; }
.src-list li { margin-bottom: 6px; }
.src-list b { color: var(--text-p); }
.src-note {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--text-f); text-align: center;
}
.src-note b { color: var(--gold-dim); }

/* 原文 / 推演 标签 */
.tag-origin, .tag-infer {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 8px;
  border-radius: 999px; margin-left: 8px; vertical-align: middle; letter-spacing: 1px;
}
.tag-origin { background: rgba(74,222,128,0.14); color: var(--accent-g); border: 1px solid rgba(74,222,128,0.3); }
.tag-infer  { background: rgba(96,165,250,0.14); color: var(--lan); border: 1px solid rgba(96,165,250,0.3); }

/* ==================== 算命结果 · 专业风（全展开 · 层次化） ==================== */
.report-wz { padding: var(--sp-md) var(--sp-lg) var(--sp-lg); }

/* 概览大卡：结论前置 */
.wz-overview {
  display: flex; gap: var(--sp-md); align-items: stretch;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(26,32,53,0.55) 42%, rgba(17,24,39,0.95));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-md), inset 0 0 70px rgba(212,175,55,0.05);
  margin-bottom: var(--sp-lg);
  position: relative; overflow: hidden;
}
.wz-overview::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 30%, rgba(212,175,55,0.10), transparent 55%);
  pointer-events: none;
}
.ov-badge {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 140px; padding: 8px 16px 8px 4px;
  border-right: 1px solid var(--line-strong);
}
.ov-badge-t { font-family: 'ZCOOL XiaoWei', serif; font-size: 13px; letter-spacing: 5px; color: var(--gold-dim); }
.ov-badge-n { font-family: 'Ma Shan Zheng', serif; font-size: 38px; line-height: 1.1; margin: 8px 0 6px; text-shadow: 0 0 22px rgba(212,175,55,.45); }
.ov-badge-l { font-size: 12px; color: var(--text-s); letter-spacing: 3px; }
.ov-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ov-zongduan-label { font-family: 'ZCOOL XiaoWei', serif; font-size: 13px; letter-spacing: 4px; color: var(--zhu); margin-bottom: 8px; }
.ov-zongduan { font-size: 16px; line-height: 1.95; color: var(--text-p); }
.ov-yj { margin-top: 14px; font-size: 14.5px; color: var(--text-s); letter-spacing: 1px; }

/* 分区卡片 */
.sec-card {
  background: linear-gradient(160deg, rgba(26,32,53,0.72), rgba(17,24,39,0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: var(--sp-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .4s, box-shadow .4s;
}
.sec-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow-md); }
.sec-head {
  display: flex; align-items: center; gap: 11px;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 20px; letter-spacing: 3px; color: var(--gold);
  margin: -2px 0 18px; padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.sec-head-ic {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--void); font-family: 'ZCOOL XiaoWei', serif;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 0 16px rgba(212,175,55,.35);
}
.sec-head b { color: var(--gold-light); }
/* 标题内小字：取消悬停放大/晃动 */
.sec-head small { font-size: 12px; letter-spacing: 0; color: var(--text-f); font-family: var(--font-sans, system-ui, sans-serif); transition: none; transform: none; }
.sec-head small:hover { font-size: 12px; transform: none; }

/* 格局与用忌 段落 */
.pat-verdict { font-size: 15px; line-height: 1.95; color: var(--mo-soft); margin-bottom: 12px; }
.pat-detail  { font-size: 14px; line-height: 1.9; color: var(--text-s); margin-bottom: 9px; }
.pat-yj      { font-size: 15px; line-height: 1.9; color: var(--text-p); margin-bottom: 9px; }
.pat-extra   { font-size: 13px; line-height: 1.85; color: var(--text-f); }

@media (max-width: 640px) {
  .report-wz { padding: 16px 16px 22px; }
  .wz-overview { flex-direction: column; gap: 14px; padding: 20px; }
  .ov-badge { border-right: none; border-bottom: 1px solid var(--line-strong); padding: 0 0 14px; min-width: 0; }
  .sec-card { padding: 18px 16px; }
  .sec-head { font-size: 18px; }
}

/* ==================== 首页 Hero · 太极八卦沉浸装饰 ==================== */
.hero { padding: 18px 16px 6px; position: relative; }
.hero-taiji {
  position: relative; width: 230px; height: 230px; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
}
.hero-taiji .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.18);
}
.hero-taiji .ring.r2 { inset: 26px; border-color: rgba(212,175,55,0.12); }
.hero-taiji .ring.r3 { inset: 52px; border-color: rgba(212,175,55,0.08); }
.hero-taiji .bagua {
  position: absolute; inset: -14px;
}
.hero-taiji .bagua span {
  position: absolute; left: 50%; top: 50%;
  font-family: 'ZCOOL XiaoWei', serif; color: var(--gold);
  font-size: 20px; transform-origin: 0 0;
  text-shadow: 0 0 12px rgba(212,175,55,.5);
}
.hero-taiji .taiji-core {
  width: 96px; height: 96px; border-radius: 50%;
  background:
    linear-gradient(90deg, #f3ead0 0 50%, #1a2035 50% 100%);
  position: relative; box-shadow: 0 0 30px rgba(212,175,55,.3);
}
.hero-taiji .taiji-core::before,
.hero-taiji .taiji-core::after {
  content: ""; position: absolute; left: 50%; width: 48px; height: 48px; border-radius: 50%;
}
.hero-taiji .taiji-core::before { top: 0;  background: #f3ead0; transform: translateX(-50%); box-shadow: inset 0 0 0 14px #1a2035; }
.hero-taiji .taiji-core::after  { bottom: 0; background: #1a2035; transform: translateX(-50%); box-shadow: inset 0 0 0 14px #f3ead0; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ==================== 结果页操作条 ==================== */
.result-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin: var(--sp-md) 0 var(--sp-sm);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.btn-act {
  padding: 10px 22px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: rgba(212,175,55,0.08);
  color: var(--gold-light); font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; letter-spacing: 2px;
  cursor: pointer; transition: all .3s;
}
.btn-act:hover { background: rgba(212,175,55,0.18); border-color: var(--gold); box-shadow: var(--glow-gold); }

/* ==================== 合参报告（天机命府） ==================== */
.hc-report { margin-top: 4px; }

/* 封面式标题 */
.hc-cover { text-align: center; padding: 26px 0 18px; position: relative; }
.hc-cover-kicker { font-size: 12px; letter-spacing: 6px; color: var(--gold); margin-bottom: 10px; }
.hc-cover-title { font-family: 'ZCOOL XiaoWei', serif; font-size: 28px; letter-spacing: 4px; color: var(--gold-light); margin: 0; font-weight: 400; }
.hc-cover-line { width: 64px; height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* 段头（序号 + 主标题 + 分隔线） */
.hc-sechead { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; }
.hc-sechead-no {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 18px; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 14px rgba(212,175,55,.28);
}
.hc-sechead-tx { flex: none; }
.hc-sechead-cn { font-family: 'ZCOOL XiaoWei', serif; font-size: 20px; letter-spacing: 3px; color: var(--gold); line-height: 1.2; }
.hc-sechead-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }

/* 命格卡分区（置于报告末尾 · 横排命格条） */
/* 命格卡置于报告顶部（竖版外观 · 横版尺寸） */
.hc-mgtop { display: flex; justify-content: center; margin: 10px 0 6px; }
.hc-mgtop .mg-premium { max-width: 720px; width: 100%; }
/* 横版尺寸变体：外框压扁、内部横向排布，但保留竖版命格卡的视觉元素 */
.mg-p-wide .mg-p-frame {
  padding: 16px 24px 14px;
  display: flex; flex-direction: column; align-items: center;
}
.mg-p-wide .mg-p-name { font-size: 30px; margin-top: 2px; }
.mg-p-wide .mg-p-sub { margin-top: 2px; font-size: 13px; color: var(--mo-soft); letter-spacing: 1px; }
.mg-p-wide .mg-p-essence { max-width: 100%; margin: 10px auto 12px; padding: 10px 16px; }
.mg-p-wide .mg-p-foot { gap: 28px; font-size: 14px; }
.mg-p-wide .mg-p-meta { margin: 6px 0 10px; }
.mg-p-wide .mg-p-xinfa { margin: 14px 0 2px; padding: 16px 22px 14px; }
.mg-p-wide .mg-p-xinfa-tx { font-size: 14.5px; line-height: 1.95; }

/* 区块通用 */
.hc-block { margin: 18px 0; }
.hc-block .sec-head { margin-top: 0; }

/* 各板块运势网格 */
.hc-fortune-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-fcard {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 18px 18px; transition: all .3s; overflow: hidden;
}
.hc-fcard::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
.hc-fcard:hover { border-color: var(--line-hover); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hc-fcard-no {
  position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold); background: rgba(212,175,55,.1);
}
.hc-fcard-title {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 18px; letter-spacing: 2px;
  color: var(--gold-light); margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hc-fcard .ai-p, .hc-fcard p { font-size: 14px; line-height: 1.92; color: var(--text-p); margin: 0 0 8px; }
.hc-fcard .ai-p:last-child, .hc-fcard p:last-child { margin-bottom: 0; }
.hc-fcard strong { color: var(--gold); }
.hc-fcard b { color: var(--gold-light); }

/* 大运时间轴 */
.hc-timeline { display: flex; flex-direction: column; }
.hc-tl-row {
  display: grid; grid-template-columns: 28px 132px 1fr; gap: 14px; align-items: stretch;
  padding: 14px 4px 14px 6px; border-left: 2px solid var(--gold-dim); position: relative;
}
.hc-tl-row::before {
  content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,.5);
}
.hc-tl-idx {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 14px; color: var(--gold); padding-top: 1px; text-align: center;
}
.hc-tl-time {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold-light);
  letter-spacing: 1px; padding-top: 1px;
}
.hc-tl-event { font-size: 14px; line-height: 1.85; color: var(--text-p); }

/* 合参操作条 */
.hc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 生成中等待提示 */
.hc-loading { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(212,175,55,0.05); }
.hc-loading-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold-dim); border-top-color: var(--gold); animation: hc-spin 0.9s linear infinite; }
.hc-loading-tx { font-size: 14px; letter-spacing: 1px; color: var(--text-p); }
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* 两盘底部「合参提要」：真实数据驱动的八字·紫微互证 */
.hec-note { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: rgba(212,175,55,0.06); }
.hec-head { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; letter-spacing: 2px; color: var(--gold); margin-bottom: 6px; }
.hec-note p { font-size: 14px; line-height: 1.9; color: var(--text-p); margin: 0; }

@media (max-width: 640px) {
  .hc-fortune-grid { grid-template-columns: 1fr; }
  .hc-tl-row { grid-template-columns: 24px 96px 1fr; gap: 8px; }
  .hc-cover-title { font-size: 24px; }
  .hc-sechead-cn { font-size: 17px; }
  .hc-sechead-no { width: 32px; height: 32px; font-size: 15px; }
}

/* ==================== 板块切换 loading ==================== */
.tab-loading {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 60px 0; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; letter-spacing: 3px;
}
.tab-loading .spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(212,175,55,0.2); border-top-color: var(--gold);
  animation: spinSlow .8s linear infinite;
}

/* ==================== 解梦模块（v3 深度解析）==================== */
.chip {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1px;
  background: rgba(212,175,55,0.12); color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.3);
}
.chip-dim { background: rgba(148,163,184,0.12); color: #aeb9cc; border-color: rgba(148,163,184,0.25); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }

.dream-echo {
  margin: 4px 0 18px; padding: 14px 18px;
  background: rgba(212,175,55,0.05); border-left: 3px solid var(--gold-dim);
  border-radius: 0 8px 8px 0;
}
.dream-echo-label { font-size: 12.5px; letter-spacing: 2px; color: var(--gold); }
.dream-echo p { margin: 8px 0 0; font-size: 15px; line-height: 1.9; color: var(--text-p); white-space: pre-wrap; word-break: break-word; }

.tone-tag {
  display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px;
  letter-spacing: 1px; vertical-align: middle;
}
.tone-ji    { background: rgba(74,222,128,0.15); color: #5fd98a; border: 1px solid rgba(74,222,128,0.35); }
.tone-xiong { background: rgba(248,113,113,0.15); color: #f8837a; border: 1px solid rgba(248,113,113,0.35); }
.tone-zhong { background: rgba(148,163,184,0.15); color: #a9b6cc; border: 1px solid rgba(148,163,184,0.3); }

.dream-guide { list-style: none; padding-left: 0; margin: 4px 0 0; }
.dream-guide li {
  position: relative; padding: 10px 14px 10px 30px; margin-bottom: 10px;
  background: rgba(96,165,250,0.06); border-left: 2px solid var(--lan);
  border-radius: 0 8px 8px 0; color: var(--text-s); line-height: 1.85; font-size: 14.5px;
}
.dream-guide li::before {
  content: '◈'; position: absolute; left: 10px; top: 10px; color: var(--lan); font-size: 13px;
}
.dream-psy { color: var(--mo-faint); font-size: 13px; line-height: 1.7; }
.dream-ctx { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 4px; }
.dream-ctx-item { display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; min-width: 140px; }
.dream-ctx-item > span { font-size: 12.5px; color: var(--mo-faint); letter-spacing: .5px; }
.dream-ctx select, .dream-ctx input {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--text-s); font-size: 14px;
  font-family: inherit; outline: none;
}
.dream-ctx select:focus, .dream-ctx input:focus { border-color: var(--lan); }
.dream-classic { border-left: 3px solid rgba(212,175,55,0.5) !important; }
.dream-classic .sec-head-ic { color: #d4af37; }
.dream-classic .dc-note {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--mo-faint); line-height: 1.7;
}

/* ==================== 主人入口 + 支付弹窗 ==================== */
.owner-btn {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  padding: 4px 12px; font-size: 12px; letter-spacing: 1px; cursor: pointer;
  color: rgba(212,175,55,0.55); background: transparent;
  border: 1px solid rgba(212,175,55,0.3); border-radius: 20px;
  font-family: 'STKaiti', 'Noto Serif SC', serif; transition: all .2s;
}
.owner-btn:hover { color: #d4af37; border-color: #d4af37; background: rgba(212,175,55,0.08); }

.pay-mask {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(10,12,20,0.72); backdrop-filter: blur(4px);
}
.pay-dlg {
  position: relative; width: 320px; max-width: 90vw; padding: 26px 24px 18px;
  border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, #1a2030 0%, #12161f 100%);
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.pay-close {
  position: absolute; right: 12px; top: 10px; width: 26px; height: 26px;
  line-height: 24px; text-align: center; cursor: pointer; color: #8ea0c0;
  border-radius: 50%; font-size: 20px;
}
.pay-close:hover { color: #d4af37; background: rgba(255,255,255,0.06); }
.pay-title {
  font-family: 'Ma Shan Zheng', 'STKaiti', serif; font-size: 22px;
  color: #d4af37; margin-bottom: 10px; letter-spacing: 2px;
}
.pay-amt { font-size: 17px; color: #f3e6c4; margin-bottom: 14px; font-weight: 600; }
.pay-qr { min-height: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-qr img { width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 8px; }
.pay-link a { color: #7fb2ff; font-size: 12.5px; text-decoration: none; }
.pay-link a:hover { text-decoration: underline; }
.pay-tip { font-size: 13px; color: #a9b6cc; line-height: 1.7; margin: 12px 4px 6px; }
.pay-foot { font-size: 11.5px; color: #6b7689; margin-top: 12px; }
.owner-input {
  width: 100%; padding: 11px 13px; margin: 12px 0 8px; border-radius: 9px;
  border: 1px solid rgba(212,175,55,0.35); background: rgba(0,0,0,0.25);
  color: #f3e6c4; font-size: 15px; text-align: center; font-family: inherit; outline: none;
}
.owner-input:focus { border-color: #d4af37; }
.owner-submit { width: 100%; margin-top: 6px; padding: 11px; font-size: 15px; }

/* ==================== 合规模块（Compliance） ==================== */
.compliance-card {
  margin: 24px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(139,160,200,0.25);
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(139,160,200,0.04) 100%);
}
.compliance-resolve {
  border-color: rgba(74,222,128,0.3);
  background: linear-gradient(135deg, rgba(74,222,128,0.06) 0%, rgba(52,211,153,0.04) 100%);
}
.cmp-head {
  padding: 10px 18px; font-size: 14px; letter-spacing: 2px;
  background: rgba(59,130,246,0.08); color: var(--lan); font-weight: 600;
  border-bottom: 1px solid rgba(139,160,200,0.15);
}
.compliance-resolve .cmp-head {
  background: rgba(74,222,128,0.08); color: #5fd98a;
}
.cmp-body {
  padding: 16px 18px; font-size: 13.5px; color: var(--mo-soft); line-height: 1.9;
}
.cmp-body ul { padding-left: 20px; margin: 8px 0; }
.cmp-body li { margin-bottom: 6px; }
.cmp-seal {
  margin-top: 14px; text-align: center; font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', serif;
  font-size: 22px; color: var(--gold-light); letter-spacing: 4px; opacity: .8;
}

/* ==================== 三段式黄金公式（Golden Formula） ==================== */
.golden-formula {
  margin: 28px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.25);
  background: linear-gradient(160deg, rgba(212,175,55,0.06) 0%, rgba(10,14,26,0.4) 60%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.gf-part {
  padding: 20px 24px;
}
.gf-part-head {
  display: flex; align-items: center; gap: 10px;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 17px; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 14px;
}
.gf-part-icon {
  font-size: 22px; line-height: 1;
}
.gf-part-body {
  font-size: 14.5px; color: var(--mo-soft); line-height: 2; letter-spacing: .6px;
}
.gf-divider {
  text-align: center; color: var(--gold-dim); font-size: 12px; padding: 4px 0; opacity: .5;
  letter-spacing: 6px;
}

.gf-see .gf-part-head { color: var(--lan); }
.gf-see .gf-part-body {
  position: relative; padding: 14px 18px;
  background: rgba(59,130,246,0.05); border-radius: 10px;
  border-left: 3px solid var(--lan);
  font-style: italic;
}

.gf-because .gf-part-head { color: var(--zhu); }
.gf-because .gf-part-body {
  position: relative; padding: 14px 18px;
  background: rgba(220,100,80,0.05); border-radius: 10px;
  border-left: 3px solid var(--zhu);
}

.gf-try .gf-part-head { color: var(--jade); }
.gf-sug-list { display: flex; flex-direction: column; gap: 12px; }

.gf-sug-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  background: rgba(74,222,128,0.05); border-radius: 10px;
  border: 1px solid rgba(74,222,128,0.15);
}
.gf-sug-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(74,222,128,0.18); color: var(--jade);
  display: flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; font-weight: 700;
}
.gf-sug-domain {
  flex-shrink: 0; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(74,222,128,0.12); color: #5fd98a;
  letter-spacing: 1px; margin-top: 2px;
}
.gf-sug-text {
  font-size: 14px; color: var(--mo-soft); line-height: 1.8;
}

/* ============================================================
 * 专业式细盘表格样式（dp- = detail panel）
 * 参考「传统八字」App排盘格式
 * ============================================================ */

/* ---- 顶部信息卡 ---- */
.dp-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(20,18,15,0.95), rgba(30,26,22,0.9));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dp-header-icon { flex-shrink: 0; }
.dp-header-text { flex: 1; }
.dp-h-lunar {
  font-size: 16px; font-weight: 700; color: var(--gold);
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif;
  letter-spacing: 1px;
}
.dp-h-solar {
  font-size: 13px; color: var(--mo-faint); margin-top: 4px;
}

/* ---- 命格卡（含文言文总结）---- */
.mg-card {
  padding: 20px; margin-bottom: 4px;
  background: linear-gradient(145deg, rgba(30,26,22,0.95), rgba(24,20,17,0.98));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.mg-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mg-taiji { flex-shrink: 0; }
.mg-info { flex: 1; }
.mg-title-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-name {
  font-size: 22px; font-weight: 800;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif;
}
.mg-level {
  font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: rgba(212,175,55,0.15); color: var(--gold);
  letter-spacing: 1px;
}
.mg-rank { font-size: 14px; color: var(--mo-faint); }
.mg-subtitle { font-size: 12px; color: var(--mo-faint); margin-top: 2px; }

/* 文言文区域 */
.mg-wenyan {
  padding: 16px; margin: 14px 0;
  background: rgba(0,0,0,0.25);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.mg-wy-label {
  font-size: 11px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 8px;
  opacity: 0.7;
}
.mg-wy-text {
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', 'FangSong', serif;
  font-size: 15px; line-height: 2; color: #d8d0c4;
  text-align: justify;
}
.mg-wy-source {
  text-align: right; font-size: 11px; color: var(--mo-faint);
  margin-top: 8px; opacity: 0.6;
}
.mg-yj-row {
  font-size: 13px; color: var(--mo-soft); padding: 10px 14px;
  background: rgba(212,175,55,0.05); border-radius: 8px;
  margin-top: 12px;
}
.mg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ── 命格卡·高端短卡（mg-premium） ── */
.mg-premium { padding: 0; margin: 0 0 6px; }
.mg-p-frame {
  position: relative;
  padding: 26px 22px 20px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(212,175,55,0.16), transparent 60%),
    linear-gradient(160deg, rgba(34,29,24,0.98), rgba(20,17,14,0.99));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.mg-p-frame::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(212,175,55,0.18); border-radius: 12px; pointer-events: none;
}
.mg-p-corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--gold); opacity: 0.7; }
.mg-p-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.mg-p-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.mg-p-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.mg-p-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.mg-p-seal {
  display: inline-block; margin-bottom: 10px;
  font-family: 'ZCOOL XiaoWei','STKaiti',serif; font-size: 12px; letter-spacing: 4px;
  color: #1a140d; background: var(--gold); padding: 3px 12px; border-radius: 3px;
  box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}
.mg-p-name {
  font-family: 'ZCOOL XiaoWei','STKaiti','KaiTi',serif;
  font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(212,175,55,0.35);
}
.mg-p-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 14px; }
.mg-p-level {
  font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: rgba(212,175,55,0.16); color: var(--gold); letter-spacing: 2px;
  border: 1px solid rgba(212,175,55,0.3);
}
.mg-p-rank { font-size: 15px; color: var(--gold); letter-spacing: 2px; opacity: 0.85; }
.mg-p-essence {
  font-size: 14px; line-height: 1.9; color: #ddd4c6;
  max-width: 92%; margin: 0 auto 16px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25); border-radius: 10px;
  border-left: 3px solid var(--gold); border-right: 3px solid rgba(212,175,55,0.25);
  text-align: justify;
}
.mg-p-foot { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--mo-soft); }
.mg-p-foot b { color: var(--gold); }
.mg-p-dm { color: #cdbfa6; }
.mg-p-combo { margin-top: 10px; font-size: 12px; color: var(--mo-faint); letter-spacing: 1px; }
.mg-p-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.mg-p-tags .ge-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: rgba(212,175,55,0.1); color: var(--gold); border: 1px solid rgba(212,175,55,0.22); }

/* ── 专属心法（禅意 · 金笺） ── */
.mg-p-xinfa {
  position: relative;
  margin: 16px 0 2px;
  padding: 20px 22px 18px;
  text-align: justify;
  background:
    linear-gradient(135deg, rgba(212,175,55,0.12), rgba(18,15,12,0.55) 72%),
    radial-gradient(120% 80% at 100% 0%, rgba(212,175,55,0.10), transparent 55%);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.mg-p-xinfa::before {
  content: '专 属 心 法';
  position: absolute; top: -12px; left: 18px;
  font-family: 'ZCOOL XiaoWei','STKaiti',serif; font-size: 12px; letter-spacing: 4px;
  color: #1a140d; background: linear-gradient(180deg,#eccb6e,#c9a23f);
  padding: 3px 14px; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(212,175,55,0.5);
}
.mg-p-xinfa-ic { display: none; }
.mg-p-xinfa-tx {
  font-family: 'STKaiti','KaiTi','ZCOOL XiaoWei',serif;
  font-size: 15.5px; line-height: 2.05; color: #efe6d4;
  letter-spacing: 0.6px; text-indent: 0;
}
.mg-p-xinfa-tx::after {
  content: '〰';
  display: block; text-align: right; color: var(--gold); opacity: 0.5;
  font-size: 18px; margin-top: 4px; letter-spacing: 4px;
}
/* 命格卡整体更通透高端 */
.mg-premium { filter: drop-shadow(0 2px 0 rgba(0,0,0,0.2)); }
.mg-p-frame { border-radius: 18px; transition: box-shadow .3s; }
.mg-p-frame:hover { box-shadow: 0 12px 40px rgba(212,175,55,0.18), inset 0 1px 0 rgba(255,255,255,0.06); }
.mg-p-name { font-size: 40px; }

/* ---- 细盘表格容器 ---- */
.dp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.12);
  background: rgba(0,0,0,0.2);
}
.dp-table {
  width: 100%; min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
/* 表头行 */
.dp-head-row th {
  padding: 12px 8px; text-align: center;
  background: linear-gradient(180deg, rgba(40,35,28,0.95), rgba(30,26,22,0.95));
  color: var(--gold); font-weight: 700;
  font-size: 13px; letter-spacing: 2px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.dp-th-label {
  width: 56px; font-size: 11px !important;
  color: var(--mo-faint) !important; letter-spacing: 1px !important;
  background: rgba(0,0,0,0.3) !important;
  position: sticky; left: 0; z-index: 2;
}
.dp-th-col { width: auto; }

/* 数据行通用 */
.dp-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
.dp-table tbody tr:hover { background: rgba(212,175,55,0.03); }
.dp-td {
  padding: 9px 6px; text-align: center;
  vertical-align: middle; font-size: 14px;
}
.dp-th-label + td, .dp-th-label ~ td { padding: 10px 4px; }

/* 主星行（十神）*/
.dp-row-mainstar .dp-td { font-size: 13px; color: #b8a070; }
.dp-ss { font-weight: 600; }

/* 天干行 */
.dp-row-gan .dp-gan { white-space: nowrap; }
.dp-char {
  font-size: 26px; font-weight: 900;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif;
  line-height: 1; display: inline-block;
  min-width: 32px; text-align: center;
}
.dp-sx { font-size: 12px; margin-left: 2px; vertical-align: middle; }
.wx-mini {
  font-size: 10px; margin-left: 2px; vertical-align: middle;
  opacity: 0.7; font-weight: 500;
}

/* 地支行 */
.dp-row-zhi .dp-zhi { white-space: nowrap; }

/* 藏干行 */
.dp-cangang { text-align: left !important; }
.dp-cg-item {
  display: inline-block; margin: 1px 3px 1px 0;
  font-size: 13px; font-weight: 600;
}
.dp-cg-item span:first-child { font-size: 15px; }

/* 副星行（藏干十神）*/
.dp-fustar { text-align: left !important; }
.dp-fs-item {
  display: block; font-size: 11px; color: #a08868;
  line-height: 1.6;
}

/* 藏干内嵌副星（问真式：藏干下方小字十神） */
.dp-cg-item {
  position: relative;
  vertical-align: top;
  line-height: 1.3;
}
.dp-cg-fs {
  display: block; font-size: 10px; color: #9a8468;
  margin-top: 1px; letter-spacing: 0;
}

/* ═══ 起运块（问真式） ═══ */
.qi-yun-block { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.qi-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.qi-line b {
  min-width: 48px; color: var(--gold); font-size: 14px; font-weight: 700;
  letter-spacing: 1px;
}
.qi-line span { color: var(--mo-soft); font-size: 14px; }

/* ═══ 大运/小运/流年 简单表（问真式） ═══ */
.dayun-simple, .xiaoyun-table, .liunian-table {
  width: 100%; min-width: 320px; border-collapse: collapse; font-size: 14px;
}
.dayun-simple th, .xiaoyun-table th, .liunian-table th,
.dayun-simple td, .xiaoyun-table td, .liunian-table td {
  padding: 9px 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dayun-simple thead th, .xiaoyun-table thead th, .liunian-table thead th {
  background: rgba(40,35,28,0.9); color: var(--gold); font-weight: 700;
  font-size: 12px; letter-spacing: 2px;
}
.dy-year, .xy-year, .ln-year { color: var(--mo-soft); }
.dy-gz, .xy-gz, .ln-gz { font-size: 16px; font-weight: 700; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; letter-spacing: 2px; }
.dy-age { color: #989080; }

/* ═══ 流月（问真式） ═══ */
.ly-block-title {
  font-size: 12px; color: var(--gold); letter-spacing: 1px;
  margin: 14px 0 8px; padding-left: 8px; border-left: 2px solid var(--gold);
}
.ly-jie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ly-jie-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; border-radius: 8px; background: rgba(255,255,255,0.015);
}
.ly-jie-name { font-size: 13px; color: var(--mo-text); }
.ly-jie-date { font-size: 12px; color: var(--cyan); }
.ly-gz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.ly-gz-cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px; border-radius: 8px; background: rgba(255,255,255,0.015);
}
.ly-gz-shen { font-size: 13px; color: #9a8468; }
.ly-gz-val { font-size: 16px; font-weight: 700; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; letter-spacing: 1px; }
.ly-tip {
  margin-top: 12px; padding: 8px 12px; border-radius: 8px;
  background: rgba(212,175,55,0.06); border: 1px solid rgba(212,175,55,0.14);
  color: var(--mo-soft); font-size: 13px;
}

/* ═══ 流年神煞 收起/展开按钮 ═══ */
.btn-ss-toggle {
  margin-left: auto; cursor: pointer;
  background: transparent; border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold); border-radius: 20px; font-size: 11px; padding: 2px 12px;
  font-family: inherit; transition: background 0.2s;
}
.btn-ss-toggle:hover { background: rgba(212,175,55,0.18); }
.ss-ln-collapsed { display: none; }

/* 神煞总览 子分组标题 */
.ss-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gold); font-weight: 700;
  letter-spacing: 1px; margin: 14px 0 6px; padding-left: 8px;
  border-left: 2px solid var(--gold);
}
.ss-group-title:first-of-type { margin-top: 4px; }

/* 平板/手机自适应 */
@media (max-width: 768px) {
  .dayun-simple, .xiaoyun-table, .liunian-table { font-size: 13px; }
  .dayun-simple th, .xiaoyun-table th, .liunian-table th,
  .dayun-simple td, .xiaoyun-table td, .liunian-table td { padding: 8px 6px; }
  .dy-gz, .xy-gz, .ln-gz { font-size: 15px; }
  .ly-jie-grid { grid-template-columns: repeat(4, 1fr); }
  .ly-gz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .ly-jie-grid { grid-template-columns: repeat(3, 1fr); }
  .ly-gz-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 星运/自坐/空亡/纳音 行 */
.dp-dt-xy, .dp-dt-kong, .dp-dt-nayin {
  font-size: 13px; color: #989080;
}
.dp-dt-kong { color: var(--zhu); opacity: 0.7; }
.dp-dt-nayin { color: #8890a0; }

/* 神煞行 */
.dp-td-dp-shensha { text-align: left !important; max-width: 200px; }
.dp-ss-chip {
  display: inline-block; font-size: 11px; padding: 1px 7px;
  margin: 1px 2px; border-radius: 4px;
  background: rgba(74,222,128,0.08); color: #6cd99a;
  white-space: nowrap; line-height: 1.6;
}
.dp-ss-chip.dp-ss-ji {
  background: rgba(220,100,80,0.1); color: #e88868;
}
.dp-none { color: var(--mo-faint); font-size: 12px; }

/* 细盘底部五行信息 */
.dp-wx-footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  padding: 12px 4px 4px;
  font-size: 13px; color: var(--mo-soft);
  border-top: 1px solid rgba(255,255,255,0.04); margin-top: 4px;
}
.dp-wx-dist { font-weight: 600; }
.dp-wx-verdict { color: var(--mo-faint); }

/* ==================== 紫微斗数命盘 ==================== */
.sub-title { font-family: 'ZCOOL XiaoWei', serif; font-size: 18px; letter-spacing: 2px; color: var(--gold); margin: 6px 0 14px; }

.ziwei-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zw-cell {
  background: var(--glass); border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: 10px; min-height: 96px;
  display: flex; flex-direction: column; gap: 6px;
}
.zw-cell.zw-ming {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 18px rgba(212,175,55,0.18);
  background: linear-gradient(160deg, rgba(212,175,55,0.12), rgba(20,20,30,0.4));
}
.zw-cell-head { display: flex; justify-content: space-between; align-items: baseline; }
.zw-pal { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--text-s); letter-spacing: 1px; }
.zw-dz { font-size: 12px; color: var(--gold); }
.zw-stars { display: flex; flex-wrap: wrap; gap: 4px; }
.zw-star {
  font-size: 12px; padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.05); color: var(--mo-soft);
  border: 1px solid rgba(212,175,55,0.18);
}
.zw-star.zw-empty { background: transparent; border-style: dashed; color: var(--mo-faint); font-size: 11px; }
.zw-hua-tag { font-size: 9px; margin-left: 3px; opacity: 0.85; }
.zw-hua-禄 { color: #ffd76a; border-color: rgba(255,215,106,0.5); }
.zw-hua-权 { color: #7fd0ff; border-color: rgba(127,208,255,0.5); }
.zw-hua-科 { color: #9affc0; border-color: rgba(154,255,192,0.5); }
.zw-hua-忌 { color: #ff9a9a; border-color: rgba(255,154,154,0.5); }
.zw-read { font-size: 11px; color: var(--mo-faint); line-height: 1.65; }

.zw-hua-list { display: flex; flex-wrap: wrap; gap: 10px; }
.zw-hua-item {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--gold-dim); color: var(--text-s);
}
.zw-dy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zw-dy-item {
  background: var(--glass); border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.zw-dy-item b { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); font-size: 14px; }
.zw-dy-item span { font-size: 12px; color: var(--text-s); }
.zw-dy-item small { font-size: 11px; color: var(--mo-faint); }

/* ==================== 基本盘 / 细盘 分区标签 ==================== */
.bz-part-label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 32px 0 18px; padding: 8px 0; position: relative;
}
.bz-part-label::before, .bz-part-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.bz-part-cn {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 26px; letter-spacing: 10px;
  color: var(--gold); text-shadow: 0 0 18px rgba(212,175,55,.5);
  padding: 5px 24px 5px 34px; border: 1px solid var(--gold-dim); border-radius: 4px;
  background: linear-gradient(160deg, rgba(26,32,53,0.6), rgba(17,24,39,0.85));
}
.bz-part-en {
  font-size: 11px; letter-spacing: 4px; color: var(--gold-dim);
  align-self: flex-end; margin-bottom: 8px; text-transform: uppercase;
}
.bz-detail .bz-part-cn {
  color: var(--cyan); border-color: rgba(56,225,208,.5);
  text-shadow: 0 0 18px rgba(56,225,208,.45);
}
.bz-detail::before, .bz-detail::after {
  background: linear-gradient(90deg, transparent, rgba(56,225,208,.45), transparent);
}
.bz-mingge .bz-part-cn {
  color: #c4a7ff; border-color: rgba(196,167,255,.5);
  text-shadow: 0 0 18px rgba(196,167,255,.45);
}
.bz-mingge::before, .bz-mingge::after {
  background: linear-gradient(90deg, transparent, rgba(196,167,255,.45), transparent);
}
.bz-summary .bz-part-cn {
  color: #e0b15e; border-color: rgba(224,177,94,.5);
  text-shadow: 0 0 18px rgba(224,177,94,.45);
}
.bz-summary::before, .bz-summary::after {
  background: linear-gradient(90deg, transparent, rgba(224,177,94,.45), transparent);
}
/* 总结·白话译文（对应古文） */
.summary-vernacular { padding: 16px 18px; line-height: 2; font-size: 14.5px; color: var(--text); }
.summary-vernacular p { margin: 0 0 12px; text-align: justify; }
.summary-vernacular p:last-child { margin-bottom: 0; }

/* ==================== 三垣 ==================== */
.sanyuan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sanyuan-cell {
  text-align: center; padding: 16px 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--glass);
}
.sy-name { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold-dim); letter-spacing: 3px; }
.sy-gz {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 30px; color: var(--gold);
  margin: 6px 0; text-shadow: 0 0 14px rgba(212,175,55,.4);
}
.sy-desc { font-size: 12px; color: var(--text-f); line-height: 1.6; }

/* ==================== 日主旺衰详解 ==================== */
.ws-verdict { font-size: 15px; color: var(--text-p); margin-bottom: 14px; }
.ws-verdict b {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 20px; color: var(--gold);
  margin: 0 4px; text-shadow: 0 0 14px rgba(212,175,55,.4);
}
.wangshuai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ws-cell { padding: 16px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.ws-cell.ws-good { border-color: rgba(74,222,128,.4); box-shadow: inset 0 0 18px rgba(74,222,128,.06); }
.ws-cell.ws-bad  { border-color: rgba(224,85,107,.4); box-shadow: inset 0 0 18px rgba(224,85,107,.06); }
.ws-title { font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 8px; }
.ws-status { font-size: 13px; color: var(--text-s); line-height: 1.7; }
.ws-sub { font-size: 12px; color: var(--mo-faint); margin-top: 6px; }

/* ==================== 用神忌神详解 ==================== */
.yj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yj-col { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.yj-yong { border-color: rgba(74,222,128,.35); }
.yj-ji   { border-color: rgba(224,85,107,.35); }
.yj-tag {
  display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--gold-dim);
  border: 1px solid var(--gold-dim); border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.yj-char { font-family: 'ZCOOL XiaoWei', serif; font-size: 34px; line-height: 1; margin-bottom: 10px; }
.yj-reason { font-size: 13px; color: var(--text-s); line-height: 1.8; }
.yj-guide {
  margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--gold);
  background: rgba(212,175,55,.06); font-size: 13px; color: var(--text-s);
  line-height: 1.85; border-radius: 0 8px 8px 0;
}

/* ==================== 十神力量分布 ==================== */
.ss-power { display: flex; flex-direction: column; gap: 8px; }
.ss-row { display: flex; align-items: center; gap: 12px; }
.ss-name { flex: 0 0 56px; font-size: 13px; color: var(--text-s); text-align: right; }
.ss-track { flex: 1; height: 12px; background: rgba(255,255,255,.05); border-radius: 6px; overflow: hidden; }
.ss-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 6px; }
.ss-num { flex: 0 0 24px; font-size: 13px; color: var(--gold); text-align: right; font-family: 'ZCOOL XiaoWei', serif; }

/* ==================== 六亲专项 ==================== */
.sixqin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sq-cell { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.sq-role {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--gold);
  letter-spacing: 2px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.sq-text { font-size: 13px; color: var(--text-s); line-height: 1.85; margin: 0; }

/* ==================== 事业·婚姻·财运·学业 专项 ==================== */
.zhuanxiang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zx-cell { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.zx-field {
  font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--cyan);
  letter-spacing: 2px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.zx-text { font-size: 13px; color: var(--text-s); line-height: 1.85; margin: 0; }

/* ==================== 响应式：基本盘/细盘新增模块 ==================== */
@media (max-width: 640px) {
  .sanyuan-grid, .wangshuai-grid, .yj-row, .sixqin-grid, .zhuanxiang-grid { grid-template-columns: 1fr; }
  .bz-part-cn { font-size: 21px; letter-spacing: 6px; padding: 5px 16px 5px 22px; }
}

/* ==================== 紫微斗数 · 传统紫微斗数式排版 ==================== */
/* 星曜类型色 */
.zw-star.zw-t-main { color: #ffe7a0; border-color: rgba(212,175,55,0.45); background: rgba(212,175,55,0.10); font-weight: 600; }
.zw-star.zw-t-ji   { color: #9affc0; border-color: rgba(154,255,192,0.40); background: rgba(74,222,128,0.08); }
.zw-star.zw-t-sha  { color: #ff9a9a; border-color: rgba(255,154,154,0.40); background: rgba(239,68,68,0.08); }
.zw-star.zw-t-fu   { color: #9ec5ff; border-color: rgba(158,197,255,0.35); background: rgba(59,130,246,0.07); }

/* 身宫标记 */
.zw-shen-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--violet); color: #fff; letter-spacing: 1px; }
.zw-cell.zw-shen { border-color: var(--violet); }

/* 庙旺角标 */
.zw-bright { font-style: normal; font-size: 9px; margin-left: 3px; padding: 0 3px; border-radius: 3px; }
.zw-b-庙 { background: #ffd76a; color: #3a2a00; }
.zw-b-旺 { background: #ffb84d; color: #3a2400; }
.zw-b-得 { background: #cfe8a0; color: #2a3a00; }
.zw-b-利 { background: #a0d8c0; color: #003a2a; }
.zw-b-平 { background: rgba(255,255,255,0.12); color: var(--text-s); }
.zw-b-陷 { background: #ff9a9a; color: #3a0000; }

/* 四化小标 */
.zw-hua-mini { font-style: normal; font-size: 9px; margin-left: 2px; opacity: 0.9; }

/* 图例 */
.zw-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mo-soft); }
.zw-legend span { margin-left: 4px; font-weight: 700; }
.zw-legend .zw-t-main { color: #ffe7a0; }
.zw-legend .zw-t-ji   { color: #9affc0; }
.zw-legend .zw-t-sha  { color: #ff9a9a; }
.zw-legend .zw-t-fu   { color: #9ec5ff; }

/* 命宫总论 */
.zw-ming-lun { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.zw-ml-row { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.zw-ml-k { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); min-width: 64px; font-size: 14px; letter-spacing: 1px; }
.zw-ml-v { color: var(--text-p); font-size: 13px; }
.zw-ml-sum { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--text-s); line-height: 1.8; }

/* 三方四正 */
.zw-sf-line { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); font-size: 15px; letter-spacing: 1px; margin-bottom: 8px; }
.zw-sf-read { font-size: 13px; color: var(--text-s); line-height: 1.85; margin: 0; }

/* 格局 */
.zw-pat { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--glass); }
.zw-pat-吉 { border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); }
.zw-pat-凶 { border-color: rgba(248,113,113,0.4); background: rgba(239,68,68,0.08); }
.zw-pat-name { font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--gold); letter-spacing: 1px; margin-right: 10px; }
.zw-pat-type { font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.zw-pat-吉 .zw-pat-type { background: var(--jade); color: #062; }
.zw-pat-凶 .zw-pat-type { background: var(--accent-r); color: #fff; }
.zw-pat p { font-size: 13px; color: var(--text-s); line-height: 1.8; margin: 6px 0 0; }
.zw-pat-none { font-size: 13px; color: var(--mo-faint); margin: 0; }

/* 四化飞星卡 */
.zw-hua-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.zw-hua-item { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); }
.zw-hua-item b { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold); letter-spacing: 1px; }
.zw-hua-pal { display: block; font-size: 12px; color: var(--text-f); margin: 3px 0 5px; }
.zw-hua-item p { font-size: 12px; color: var(--text-s); line-height: 1.7; margin: 0; }
.zw-hua-禄 { border-left: 3px solid #ffd76a; }
.zw-hua-权 { border-left: 3px solid #8fd0ff; }
.zw-hua-科 { border-left: 3px solid #9affc0; }
.zw-hua-忌 { border-left: 3px solid #ff9a9a; }
.zw-hua-trace { font-size: 12.5px; color: var(--text-f); line-height: 1.8; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(212,175,55,0.06); border: 1px dashed var(--gold-dim); }

/* 主星组合断语 */
.zw-combo-item { padding: 10px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--glass); margin-bottom: 10px; }
.zw-combo-item b { font-family: 'ZCOOL XiaoWei', serif; font-size: 14px; color: var(--gold); letter-spacing: 1px; margin-right: 8px; }
.zw-combo-item { font-size: 12.5px; color: var(--text-s); line-height: 1.75; }

/* 专项报告四化联动行 */
.zw-sp-hua { font-size: 12px; color: var(--cyan); margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }

/* 十二宫详批 */
.zw-detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.zw-detail-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); }
.zw-di-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.zw-di-pal { font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--text-p); letter-spacing: 1px; }
.zw-di-dz { font-size: 12px; color: var(--gold); }
.zw-di-stars { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.zw-di-read { font-size: 12px; color: var(--text-s); line-height: 1.75; margin: 0; }

/* 流年 */
.zw-ln-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zw-ln-item { background: var(--glass); border: 1px solid var(--gold-dim); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.zw-ln-item b { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); font-size: 14px; }
.zw-ln-item span { font-size: 12px; color: var(--text-s); }
.zw-ln-item small { font-size: 11px; color: var(--mo-faint); }
.zw-ln-item em { font-size: 11px; color: var(--cyan); font-style: normal; }

/* 大限四化 em */
.zw-dy-item em { font-size: 11px; color: var(--cyan); font-style: normal; }

/* 流月 / 流日 */
.zw-ly-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.zw-ly-item { background: var(--glass); border: 1px solid var(--gold-dim); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.zw-ly-item b { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); font-size: 13px; }
.zw-ly-item span { font-size: 12px; color: var(--text-s); }
.zw-ly-item em { font-size: 10.5px; color: var(--cyan); font-style: normal; }
.zw-lr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.zw-lr-item { background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.zw-lr-item b { font-family: 'ZCOOL XiaoWei', serif; color: var(--gold); font-size: 12px; }
.zw-lr-item span { font-size: 11px; color: var(--text-s); }
.zw-lr-item em { font-size: 10px; color: var(--cyan); font-style: normal; }
.ov-solar { font-size: 11.5px; color: var(--mo-faint); margin-top: 2px; }

/* 排盘参数确认回执卡（采集透明化） */
.collect-receipt {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 4px 0 14px;
}
.cr-title {
  font-size: 13px; color: var(--gold-light); letter-spacing: 2px;
  font-weight: 600; margin-bottom: 8px;
  border-left: 3px solid var(--gold-light); padding-left: 8px;
}
.cr-row {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; line-height: 1.9;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  padding: 2px 0;
}
.cr-row:last-child { border-bottom: none; }
.cr-row > span {
  flex: 0 0 72px; color: var(--mo-faint); text-align: right;
}
.cr-row > b {
  flex: 1; color: #e8e2d0; font-weight: 500;
}

/* 专项报告 */
.zw-sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zw-sp-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.zw-sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--cyan); letter-spacing: 1px; }
.zw-sp-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(56,225,208,0.15); border: 1px solid var(--cyan); color: var(--cyan); font-size: 13px; }
.zw-sp-stars { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.zw-sp-card p { font-size: 12px; color: var(--text-s); line-height: 1.75; margin: 0; }

/* 响应式补充 */
@media (max-width: 640px) {
  .zw-ming-lun, .zw-detail-list, .zw-sp-grid { grid-template-columns: 1fr; }
}

/* ==================== 专业式细盘补充样式 ==================== */

/* 细盘表格7列增强 */
.dp-ln-gz, .dp-xy-gz { text-align: center; font-size: 13px; color: var(--cyan); font-weight: 600; letter-spacing: 1px; }
.dp-ln-note, .dp-xy-note { text-align: center; color: var(--text-dim); font-size: 11px; }

/* 起运信息卡片 */
.qi-yun-info { display: flex; flex-direction: column; gap: 8px; }
.qi-row { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(212,175,55,0.15); }
.qi-row:last-child { border-bottom: none; }
.qi-row b { min-width: 56px; color: var(--gold); font-weight: 600; font-family: 'ZCOOL XiaoWei', serif; font-size: 14px; }
.qi-row span { color: var(--text-s); font-size: 13px; line-height: 1.5; }
.qi-jiao-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qi-jiao-item { display: inline-block; padding: 3px 10px; border-radius: 20px; background: rgba(56,225,208,0.08); border: 1px solid rgba(56,225,208,0.2); color: var(--cyan); font-size: 12px; font-weight: 500; }
.qi-jiao-item small { opacity: 0.6; font-weight: normal; margin-left: 2px; }

/* 智能干支图示 */
.gz-rel-grid { display: flex; flex-direction: column; gap: 4px; }
.gz-rel-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); }
.gz-rel-row.gz-rel-div { height: 1px; background: rgba(212,175,55,0.15); margin: 4px 0; padding: 0; }
.gz-rel-k { min-width: 72px; color: var(--gold); font-weight: 600; font-size: 13px; font-family: 'ZCOOL XiaoWei', serif; }
.gz-rel-v { color: var(--text-s); font-size: 12.5px; line-height: 1.6; word-break: break-all; }

/* 四柱/大运/流年神煞（按柱展开） */
.ss-pillar-list { display: flex; flex-direction: column; gap: 3px; }
.ss-pillar-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.015); transition: background 0.2s; }
.ss-pillar-row:hover { background: rgba(255,255,255,0.04); }
.ss-pillar-gz { min-width: 48px; font-size: 16px; font-weight: 700; color: var(--gold); font-family: 'ZCOOL XiaoWei', serif; letter-spacing: 2px; }
.ss-pillar-gz.ss-ln-year { min-width: 64px; color: var(--cyan); }
.ss-pillar-gz.ss-ln-year b { color: var(--gold); margin-left: 4px; }
.ss-pillar-items { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.ss-pillar-chip { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; white-space: nowrap; background: rgba(80,200,120,0.08); border: 1px solid rgba(80,200,120,0.18); color: #50c878; }
.ss-pillar-chip.ss-p-ji { background: rgba(220,80,80,0.08); border-color: rgba(220,80,80,0.18); color: #dc5050; }
.ss-ln-body.ss-collapsed { max-height: 240px; overflow: hidden; position: relative; }
.ss-ln-body.ss-collapsed::after { content:''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--glass)); pointer-events: none; }

/* 流月表 */
.liuyue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.ly-cell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); border: 1px solid rgba(212,175,55,0.1); }
.ly-name { min-width: 36px; color: var(--gold); font-weight: 600; font-size: 13px; font-family: 'ZCOOL XiaoWei', serif; }
.ly-date { color: var(--text-dim); font-size: 11px; }
.ly-gz { margin-left: auto; color: var(--cyan); font-weight: 600; font-size: 13px; letter-spacing: 1px; }

/* 细盘格式统一：字体与间距 */
.bz-part-label { text-align: center; padding: 14px 0 10px; margin: 24px 0 16px; position: relative; }
.bz-part-label::before { content:''; position: absolute; left: 50%; top: 0; width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.bz-part-cn { display: block; font-family: 'ZCOOL XiaoWei', serif; font-size: 22px; color: var(--gold); letter-spacing: 6px; margin-bottom: 2px; }
.bz-part-en { display: block; font-size: 10px; color: var(--text-dim); letter-spacing: 3px; text-transform: uppercase; }
.sec-card { margin-bottom: 16px; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(212,175,55,0.12); font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; color: var(--gold); letter-spacing: 1px; }
.sec-head-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: rgba(212,175,55,0.1); font-size: 12px; }

/* 响应式：细盘新模块 */
@media (max-width: 640px) {
  .gz-rel-row { flex-wrap: wrap; }
  .gz-rel-k { min-width: 60px; font-size: 12px; }
  .gz-rel-v { font-size: 11.5px; }
  .ss-pillar-row { flex-wrap: wrap; gap: 6px; }
  .ss-pillar-gz { min-width: 40px; font-size: 14px; }
  .qi-row { flex-wrap: wrap; gap: 6px; }
  .qi-row b { min-width: 44px; font-size: 13px; }
  .liuyue-grid { grid-template-columns: repeat(2, 1fr); }
  .ly-cell { padding: 6px 8px; }
}

/* ===== 子平月令格局（子平真诠） ===== */
.zp-ge-block { margin: 2px 0 10px; padding: 12px 14px; border: 1px solid var(--gold, #c9a24b); border-radius: 10px; background: rgba(201,162,75,0.06); }
.zp-ge-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.zp-ge-label { font-size: 14px; font-weight: 500; color: var(--gold, #e9c46a); letter-spacing: 1px; }
.zp-ge-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.zp-ge-name { font-size: 22px; font-weight: 500; color: #fff; }
.zp-ge-cat { font-size: 12px; color: #9fb0c0; border: 1px solid #3a4a5e; border-radius: 6px; padding: 1px 8px; }
.zp-ge-cb { font-size: 12px; border-radius: 6px; padding: 2px 10px; font-weight: 500; }
.zp-cb-cheng { color: #bfe6b0; background: rgba(99,153,34,0.18); border: 1px solid #639922; }
.zp-cb-jy { color: #f5d98a; background: rgba(250,207,117,0.16); border: 1px solid #ef9f27; }
.zp-cb-bai { color: #f7b3b3; background: rgba(226,75,74,0.16); border: 1px solid #e24b4a; }
.zp-ge-tou { font-size: 12px; color: #8fa3b6; margin-bottom: 6px; }
.zp-ge-desc { font-size: 13px; line-height: 1.7; color: #cdd8e4; margin: 0; }
.zp-ge-divider { height: 1px; background: #3a4a5e; margin: 12px 0; }
.zp-src { font-size: 11px; color: #7f93a6; font-style: italic; }
.pat-verdict b { color: #e9c46a; }
.zp-cb-wai { color: #9fb0c0; background: rgba(159,176,192,0.12); border: 1px solid #5f6e7e; }


/* ═════════ AI 智能解读 ═════════ */
.ai-deepread { margin: 4px 0 18px; }
.ai-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  font-family: 'ZCOOL XiaoWei', serif; font-size: 15px; letter-spacing: 2px;
  color: var(--void); cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 18px rgba(212,175,55,0.35);
  transition: box-shadow .3s, opacity .3s;
}
.ai-btn:hover { box-shadow: 0 0 26px rgba(212,175,55,0.55); }
.ai-btn:disabled { opacity: .6; cursor: progress; }
.ai-result { margin-top: 14px; }
.free-badge { display:inline-block; margin-left:12px; padding:3px 11px; font-size:12px; line-height:1.6; color:#2e7d32; background:rgba(46,125,50,0.10); border:1px solid rgba(46,125,50,0.35); border-radius:999px; vertical-align:middle; letter-spacing:1px; font-family:'PingFang SC','Microsoft YaHei',sans-serif; }
.ai-loading { color: var(--text-f); font-size: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: aiPulse 1s infinite; }
@keyframes aiPulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.ai-card {
  border: 1px solid rgba(212,175,55,0.35); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(26,32,53,0.85), rgba(17,24,39,0.95));
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.ai-card-head { font-family: 'ZCOOL XiaoWei', serif; font-size: 17px; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(212,175,55,0.2); }
.ai-card-body { font-size: 15px; line-height: 1.95; color: var(--text-p); font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; }
.ai-card-body .ai-h1 { font-family: 'ZCOOL XiaoWei', serif; font-size: 23px; color: var(--gold); letter-spacing: 1px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold-dim); text-align: center; }
.ai-card-body .ai-h1:first-child { margin-top: 0; }
.ai-card-body .ai-h2 { font-family: 'ZCOOL XiaoWei', serif; font-size: 19px; color: var(--gold); letter-spacing: 1px; margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--gold); }
.ai-card-body .ai-h2:first-child { margin-top: 0; }
.ai-card-body .ai-h3 { font-family: 'ZCOOL XiaoWei', serif; font-size: 16px; color: var(--gold-light); margin: 12px 0 6px; }
.ai-card-body .ai-p { margin: 0 0 10px; text-align: justify; }
.ai-card-body .ai-ul { margin: 0 0 10px; padding-left: 22px; }
.ai-card-body .ai-ul li { margin-bottom: 5px; }
.ai-card-body code { background: rgba(212,175,55,0.12); padding: 1px 5px; border-radius: 4px; font-size: 13px; color: var(--gold-light); }
.ai-card-foot { margin-top: 12px; font-size: 12px; color: var(--text-f); text-align: right; }
.ai-card.ai-err { border-color: rgba(224,85,107,0.4); }
.ai-card.ai-err .ai-card-body { color: #e0798c; }

/* 城市自定义下拉（可浏览列表 + 直接搜索两种模式） */
.city-wrap { position: relative; width: 300px; max-width: 100%; }
.city-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(212,175,55,0.35); border-radius: 6px; background: rgba(20,18,14,0.6); color: var(--text); font-size: 14px; }
.city-input:focus { outline: none; border-color: var(--gold); }
.city-panel { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; background: #1c1814; border: 1px solid rgba(212,175,55,0.4); border-radius: 6px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.city-item { padding: 7px 12px; font-size: 14px; color: var(--text); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); }
.city-item:hover { background: rgba(212,175,55,0.16); color: var(--gold-light); }
