/* ============================================
 * 五行小宝 WXTI v6 · MBTI 极简明亮风（pp 反馈版）
 * 缟素白底 · 纯黑粗字 · 五行色动态切换
 * ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
 * 字体统一规范（v3 · 苹方风格全局极简黑体）
 * 中文优先级：苹方（macOS/iOS 原生）→ 思源黑体（Web fallback）→ 系统黑体
 * 拉丁文：Inter（现代几何无衬线）
 * 全站只用一种字体家族，仅以字重区分层级
 * ============================================ */

:root {
  --bg: #F5F3EE;
  --card: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #333333;
  --muted: #999999;
  --line: #E8E4DA;
  --line-strong: #1A1A1A;
  
  --theme: #FF461F;
  --theme-soft: #FFE8E0;
  --theme-text: #D63A18;
  
  /* 五行色 · 同步品牌手册（2026 版） */
  --wx-wood: #789262;
  --wx-fire: #FF461F;
  --wx-earth: #C89B40;
  --wx-metal: #6B7280;
  --wx-water: #1661AB;
  
  /* 全站统一字体栈：苹方优先（Apple原生最地道）→ 思源黑体（兜底）→ 系统黑体 */
  --f-base: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --f-heading: var(--f-base);
  --f-zh: var(--f-base);
  --f-zh-heavy: var(--f-base);
  --f-serif: var(--f-base);
  --f-mono: 'Inter', 'SF Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-zh);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,70,31,0.03), transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(46,111,232,0.03), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

#app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 24px 20px 40px;
  display: none;
  flex-direction: column;
  animation: fadeIn 0.4s ease;
}
.page.active { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   封面页（pp 反馈版）
   ============================================ */
.cover-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.cover-topbar-date {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cover-topbar-date .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #19C37D;
  box-shadow: 0 0 6px #19C37D;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Logo 居中放大 */
.cover-logo-center {
  text-align: center;
  margin: 16px 0 28px;
}
.cover-logo-big {
  width: 70%;
  max-width: 260px;
  height: auto;
  display: inline-block;
}

.cover-hero {
  text-align: center;
  margin-bottom: 28px;
}
.cover-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--ink);
  color: #FFEB00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  border-radius: 2px;
}
.cover-title {
  font-family: var(--f-zh-heavy);
  font-size: 38px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.cover-title-sub {
  font-family: var(--f-zh-heavy);
  font-size: 38px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.cover-title-sub .hl-red {
  color: var(--wx-fire);
}
.cover-title-en {
  font-family: var(--f-heading);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--muted);
}

/* 诗意文案卡 · 庆科黄油体（手写潮酷） */
.cover-poem {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
}
.poem-line {
  font-family: var(--f-base);
  font-size: 19px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
}
.poem-line.poem-emphasis {
  font-family: var(--f-base);
  font-weight: 500;
  font-size: 23px;
  color: var(--ink);
  margin: 6px 0;
  letter-spacing: 2px;
  background: linear-gradient(transparent 60%, #FFEB00 60%);
  display: inline-block;
  padding: 0 8px;
}

.cover-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 30px;
}
.cover-stat {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 12px 10px;
  text-align: center;
  border-radius: 3px;
}
.cover-stat-num {
  font-family: var(--f-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.cover-stat:nth-child(1) .cover-stat-num { color: var(--wx-wood); }
.cover-stat:nth-child(2) .cover-stat-num { color: var(--wx-fire); }
.cover-stat:nth-child(3) .cover-stat-num { color: var(--wx-water); }
.cover-stat-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

.cover-btn {
  width: 100%;
  padding: 18px 20px;
  background: var(--ink);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-family: var(--f-zh-heavy);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 0 #FFEB00, 4px 4px 0 1.5px var(--ink);
  text-indent: 8px;
}
.cover-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #FFEB00, 6px 6px 0 1.5px var(--ink); }
.cover-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #FFEB00, 2px 2px 0 1.5px var(--ink); }

.cover-footer {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

/* ============================================
   输入页
   ============================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-top: 4px;
}
.back-btn {
  width: 32px; height: 32px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  font-family: var(--f-zh);
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.back-btn:hover { background: var(--ink); color: #fff; }
.page-header-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--ink);
}

.input-title {
  font-family: var(--f-zh-heavy);
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.input-title .hl {
  background: #FFEB00;
  color: var(--ink);
  padding: 0 4px;
}
.input-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.form-section {
  margin-bottom: 22px;
}
.form-section-label {
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 900;
}
.form-section-label .zh {
  font-family: var(--f-zh);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  margin-left: 6px;
}

.date-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.4fr;
  gap: 8px;
}
.sel {
  width: 100%;
  padding: 14px 10px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-zh);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
  cursor: pointer;
  transition: all 0.15s;
}
.sel:focus { outline: 2px solid #FFEB00; outline-offset: 2px; }
.sel.full { grid-column: 1 / -1; }

.gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gender-btn {
  padding: 14px 10px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-zh-heavy);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.gender-btn.active {
  background: var(--ink);
  color: #FFEB00;
  box-shadow: 3px 3px 0 #FFEB00, 3px 3px 0 1.5px var(--ink);
}

/* 海外免责提示 */
.overseas-tip {
  margin-top: 10px;
  padding: 10px 12px;
  background: #F8F6F0;
  border: 1.5px dashed var(--wx-water);
  border-radius: 3px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
}
.overseas-tip strong {
  font-weight: 900;
  color: var(--wx-water);
}

.input-tip {
  margin: 20px 0 32px;
  padding: 14px 14px;
  background: #F8F6F0;
  border: 1.5px dashed var(--wx-water);
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.input-tip strong { font-weight: 900; color: var(--wx-water); }

.submit-btn {
  width: 100%;
  padding: 18px 20px;
  background: var(--ink);
  color: #FFEB00;
  border: none;
  border-radius: 4px;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 6px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--wx-fire);
  transition: all 0.2s;
  text-indent: 6px;
}
.submit-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--wx-fire); }
.submit-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--wx-fire); }

/* ============================================
   加载页（pp 反馈：只要图形 + 放大）
   ============================================ */
#page-loading {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.loading-logo-wrap {
  margin-bottom: 40px;
}
.loading-logo-mark {
  width: 140px;
  height: 140px;
  animation: spin 3s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-text {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 4px;
  line-height: 2.2;
  text-align: center;
}

/* ============================================
   结果页
   ============================================ */
.bazi-section {
  margin-bottom: 18px;
  padding: 14px 14px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.bazi-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.bazi-label-zh {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink);
}
.bazi-label-en {
  font-family: var(--f-heading);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.bazi-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
}
.pillar {
  text-align: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
}
.pillar.day {
  background: var(--theme);
  border: 1.5px solid var(--ink);
  color: #fff;
}
.pillar-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.pillar.day .pillar-label { color: rgba(255,255,255,0.85); font-weight: 700; }
.pillar-tg, .pillar-dz {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.pillar-dz { margin-top: 2px; }
.pillar.day .pillar-tg, .pillar.day .pillar-dz { color: #fff; }

/* ============ 八字四柱五行染色（与全站一致：木青/火朱/土褐/金黄/水蓝） ============ */
.pillar-tg[data-wx="木"], .pillar-dz[data-wx="木"]   { color: #789262; }   /* 木 · 竹青 */
.pillar-tg[data-wx="火"], .pillar-dz[data-wx="火"]   { color: #C8473A; }   /* 火 · 朱砂 */
.pillar-tg[data-wx="土"], .pillar-dz[data-wx="土"]   { color: #A0612E; }   /* 土 · 赭石褐 */
.pillar-tg[data-wx="金"], .pillar-dz[data-wx="金"]   { color: #D4A017; }   /* 金 · 亮金 */
.pillar-tg[data-wx="水"], .pillar-dz[data-wx="水"]   { color: #1661AB; }   /* 水 · 靛青 */
/* 日柱保持白字（深蓝底反白），五行色不覆盖日柱 */
.pillar.day .pillar-tg[data-wx], .pillar.day .pillar-dz[data-wx] { color: #fff; }

/* 人格主卡 */
.persona-card {
  position: relative;
  background: var(--card);
  border: none;
  border-radius: 12px;
  padding: 22px 20px 24px;
  box-shadow: none;
  margin-bottom: 24px;
}

/* 人格图（彻底无框，无背景，只显示 PNG 透明部分） */
.persona-img,
.persona-img * {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.persona-img {
  position: relative;
  width: 86%;            /* 略小，留呼吸空间 */
  max-width: 380px;
  margin: 0 auto 18px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}
.persona-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.persona-img .fallback {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 72px;
  color: var(--theme);
  letter-spacing: -2px;
}

/* pp 反馈：日柱和人格名同字号 */
.persona-hint-big {
  text-align: center;
  font-family: var(--f-zh-heavy);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.persona-name-row {
  text-align: center;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}
.persona-gz {
  font-size: 48px;
  color: var(--theme);
  vertical-align: baseline;
}
.persona-dot {
  font-size: 42px;
  color: var(--ink);
  margin: 0 6px;
  font-weight: 900;
  vertical-align: baseline;
}
.persona-name {
  font-size: 48px;
  color: var(--ink);
  vertical-align: baseline;
}

/* 分段标题 */
.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.section-divider .sd-icon { font-size: 14px; }
.section-divider .sd-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 3px;
}
.section-divider .sd-en {
  margin-left: auto;
  font-family: var(--f-heading);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* 灵魂弹幕 */
.lines { display: flex; flex-direction: column; gap: 8px; }
.line {
  font-family: var(--f-zh);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 3px solid var(--theme);
  border-radius: 2px;
  letter-spacing: 0.2px;
}

/* 技能 */
.skills { display: flex; flex-direction: column; gap: 10px; }
.skill {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.skill-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.skill-icon { font-size: 16px; width: 24px; text-align: center; }
.skill-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 1px;
}
.skill-desc {
  font-family: var(--f-zh);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-left: 32px;
  letter-spacing: 0.3px;
}

/* 解读 */
.explain {
  font-family: var(--f-zh);
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  text-align: justify;
  letter-spacing: 0.3px;
}

/* 正确/错误用法 */
.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.usage-box {
  padding: 12px 12px;
  border-radius: 3px;
  border: 1.5px solid;
}
.usage-box.good { background: #F0FAEA; border-color: var(--wx-wood); }
.usage-box.bad { background: #FFF1EC; border-color: var(--wx-fire); }
.usage-title {
  font-family: var(--f-zh-heavy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.usage-box.good .usage-title { color: var(--wx-wood); }
.usage-box.bad .usage-title { color: var(--wx-fire); }
.usage-content {
  font-family: var(--f-zh);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.2px;
}

/* 签名 */
.seal {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.seal-stamp {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 11px;
  color: var(--theme);
  letter-spacing: 3px;
  padding: 4px 10px;
  border: 1.5px solid var(--theme);
  border-radius: 2px;
  transform: rotate(-2deg);
  background: var(--theme-soft);
}

/* 按钮区 */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.action-btn {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 3px;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: all 0.15s;
}
.action-btn.primary {
  background: var(--ink);
  color: #FFEB00;
  box-shadow: 3px 3px 0 var(--theme);
}
.action-btn.primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--theme); }
.action-btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--theme); }
.action-btn.premium {
  background: #07C160;  /* 微信绿 */
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.action-btn.premium:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.action-btn.premium:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.action-btn.secondary { background: var(--card); color: var(--ink); }
.action-btn.secondary:hover { background: var(--ink); color: #fff; }

.result-tip {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.8;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}

/* ============================================
   天选搭子 / 避雷对象
   pp 反馈：日柱放前面，称号放后面
   ============================================ */
.pair-list { display: flex; flex-direction: column; gap: 10px; }
.pair-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.pair-item:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--theme); }
.pair-list.avoid .pair-item { background: #FFF6F2; }
.pair-list.avoid .pair-item:hover { box-shadow: 3px 3px 0 var(--wx-fire); }

.pair-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #1A1A2E;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pair-img img { width: 100%; height: 100%; object-fit: cover; }
.pair-img .fb {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 20px;
  color: var(--theme);
  letter-spacing: -1px;
}
.pair-body { flex: 1; min-width: 0; }
.pair-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
/* 日柱在前（黑粗）人格名在后（次要） */
.pair-gz {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.pair-name {
  font-family: var(--f-zh);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.pair-relation-tag {
  display: inline-block;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 4px;
}
.pair-relation-tag.sanhe { background: #EAF1E2; color: #556B43; border: 1px solid var(--wx-wood); }
.pair-relation-tag.liuhe { background: #F6ECD4; color: #8A6A26; border: 1px solid var(--wx-earth); }
.pair-relation-tag.liuchong { background: #FFE8E0; color: #D63A18; border: 1px solid #FF461F; }
.pair-relation-tag.liuhai { background: #F3E8FF; color: #6D28D9; border: 1px solid #A855F7; }
.pair-quote {
  font-family: var(--f-zh);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}

/* 测测 TA CTA */
.ta-cta {
  margin-top: 24px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #FFEB00 0%, #FFD600 100%);
  border: 2px solid var(--ink);
  border-radius: 4px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}
.ta-cta-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.ta-cta-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.ta-cta-btn {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: #FFEB00;
  border: none;
  border-radius: 3px;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.ta-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--wx-fire); }
.ta-cta-btn:active { transform: translateY(1px); }

/* ============================================
   五行能量模块 · 东方美学（饼图+太极+喜忌）
   ============================================ */
.wx-module {
  margin: 8px 0 20px;
}
.wx-chart-wrap {
  position: relative;
  width: 280px;
  max-width: 80%;
  margin: 16px auto 14px;
  aspect-ratio: 1 / 1;
}
.wx-pie {
  width: 100%;
  height: 100%;
  display: block;
  /* 苹果极简：极淡漂浮投影，保留高级感 */
  filter: drop-shadow(0 2px 8px rgba(60, 70, 90, 0.06));
}

/* 5 列图例 */
.wx-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 14px 0 16px;
  padding: 0 4px;
}
.wx-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
}
.wx-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wx-legend-zh {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.wx-legend-pct {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* 喜忌行 */
.wx-yongshen {
  margin-top: 10px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #FAF6EC 0%, #F4EFE2 100%);
  border-radius: 10px;
  position: relative;
}
.ys-day-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
.ys-day-label #ys-day-wx {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.ys-day-label #ys-strength {
  color: var(--theme-text);
  font-weight: 700;
  font-size: 14px;
}
.ys-divider {
  margin: 0 8px;
  color: var(--muted);
}
.ys-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ys-row:last-child { margin-bottom: 0; }
.ys-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}
.ys-tag-xi {
  background: #2D7A5F;
  color: #fff;
}
.ys-tag-ji {
  background: #C8473A;
  color: #fff;
}
.ys-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.ys-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.ys-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ys-item-name {
  font-weight: 700;
  color: var(--ink);
}
.ys-item-role {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ============================================
   全盘解读 CTA（替代旧测TA） · 一句钩子+锁内容
   ============================================ */
.full-cta {
  margin-top: 28px;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, rgba(255,70,31,0.04) 0%, rgba(255,70,31,0.01) 100%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.full-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,70,31,0.08), transparent 60%);
  pointer-events: none;
}
.full-cta-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--theme-text);
  background: rgba(255,70,31,0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.full-cta-hook {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}
.full-cta-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.025);
  border: 1px dashed rgba(0,0,0,0.12);
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.full-cta-locked-icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: grayscale(0.3);
}
.full-cta-locked-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.full-cta-locked-text #full-insight-count {
  font-weight: 800;
  color: var(--theme);
  font-size: 16px;
  margin: 0 2px;
}
.full-cta-locked-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.full-cta-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--f-base);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.full-cta-btn:hover {
  background: var(--theme);
  transform: translateY(-1px);
}
.full-cta-btn:active { transform: translateY(0); }

/* ============================================
   分享卡浮层 · 1080×1920
   ============================================ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 12px;
  overflow-y: auto;
}
.overlay.active { display: flex; }

.overlay-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 101;
  font-weight: 900;
}

#share-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 分享卡 · 固定宽 360 · 自适应高度（pp 反馈：解读不能截断） */
#share-card {
  width: 360px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 22px 20px;
  box-shadow: 6px 6px 0 var(--theme);
  position: relative;
  display: flex;
  flex-direction: column;
}

.sc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.sc-logo { height: 22px; width: auto; }
.sc-top-right { flex: 1; text-align: right; }
.sc-brand-zh {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 1px;
}
.sc-brand-en {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}

.sc-bazi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.sc-bazi-label {
  font-family: var(--f-zh-heavy);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 900;
}
.sc-bazi {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3px;
  flex: 1;
}
.sc-bazi .p {
  text-align: center;
  padding: 2px 0;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 12px;
  color: var(--ink);
}
.sc-bazi .p.day { background: var(--theme); color: #fff; border-radius: 2px; }

.sc-persona {
  text-align: center;
  margin-bottom: 12px;
}
.sc-persona-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-persona-img img { width: 100%; height: 100%; object-fit: contain; background: transparent !important; }
.sc-persona-img .fallback {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 48px;
  color: var(--theme);
}
.sc-persona-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.sc-persona-name {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.sc-gz {
  font-size: 30px;
  color: var(--theme);
}
.sc-dot { font-size: 26px; color: var(--ink); margin: 0 4px; }
.sc-name { font-size: 30px; color: var(--ink); }

.sc-section-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
}

.sc-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.sc-lines .sl {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink);
  padding: 6px 10px;
  background: var(--bg);
  border-left: 3px solid var(--theme);
  font-weight: 500;
}

.sc-explain {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 4px;
}

.sc-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}
.sc-pair-item {
  padding: 6px 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
}
.sc-pair-item.avoid { background: #FFF6F2; border-color: #FF461F33; }
.sc-pair-gz {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0;
}
.sc-pair-name {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* 底部 · 双二维码 */
.sc-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sc-footer-left { flex: 1; min-width: 0; }
.sc-footer-brand {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.sc-footer-tip {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.sc-footer-wx {
  font-size: 10px;
  color: var(--theme);
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.sc-qr-group {
  display: flex;
  gap: 6px;
}
.sc-qr-item {
  text-align: center;
}
.sc-qr-img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  display: block;
}
.sc-qr-placeholder {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: #FFEB00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 9px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
  border-radius: 2px;
}
.sc-qr-label {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.share-actions-bottom { display: flex; gap: 10px; }
.share-actions-bottom button {
  padding: 12px 22px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #FFEB00;
}

/* ============================================
   公众号引流弹窗 · 极简版
   ============================================ */
#premium-modal {
  width: 320px;
  max-width: 90vw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
  box-shadow: 5px 5px 0 #07C160;
}
.modal-title {
  font-family: var(--f-zh-heavy);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.modal-wechat-name-big {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.modal-sep {
  width: 30px;
  height: 3px;
  background: #07C160;
  margin: 0 auto 18px;
  border-radius: 2px;
}
.modal-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 12px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}
.modal-qr-tip {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  font-weight: 500;
}

/* ============================================
   测测 TA 弹窗
   ============================================ */
#ta-modal {
  width: 360px;
  max-width: 90vw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 28px 22px;
  box-shadow: 6px 6px 0 var(--wx-fire);
}
.ta-form { margin-top: 20px; }
.ta-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-zh);
  font-weight: 500;
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
}
.ta-input:focus { outline: 2px solid #FFEB00; outline-offset: 2px; }

.ta-result-header { text-align: center; margin-bottom: 20px; }
.ta-result-title {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ta-result-subtitle {
  display: inline-block;
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 5px 14px;
  border-radius: 2px;
  margin-top: 6px;
}
.ta-result-subtitle.match { background: #EAF1E2; color: #556B43; border: 1.5px solid var(--wx-wood); }
.ta-result-subtitle.avoid { background: #FFE8E0; color: #D63A18; border: 1.5px solid #FF461F; }
.ta-result-subtitle.neutral { background: var(--bg); color: var(--muted); border: 1.5px solid var(--line-strong); }

.ta-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.ta-duo-card {
  padding: 12px 8px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 3px;
  text-align: center;
}
.ta-duo-card.me { box-shadow: 3px 3px 0 var(--theme); }
.ta-duo-card.ta { box-shadow: -3px 3px 0 var(--wx-water); }
.ta-duo-label {
  font-family: var(--f-heading);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 900;
}
.ta-duo-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #1A1A2E;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ta-duo-img img { width: 100%; height: 100%; object-fit: cover; }
.ta-duo-img .fb {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 28px;
  color: var(--theme);
  letter-spacing: -1px;
}
.ta-duo-gz {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.ta-duo-name {
  font-family: var(--f-zh);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.ta-duo-relation {
  font-family: var(--f-zh-heavy);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  padding: 4px 0;
}

.ta-verdict-box {
  padding: 16px 16px;
  background: var(--bg);
  border: 1.5px dashed var(--ink);
  border-radius: 3px;
  margin-bottom: 18px;
}
.ta-verdict-quote {
  font-family: var(--f-zh);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.3px;
}

.ta-actions { display: flex; flex-direction: column; gap: 8px; }
