/* 星轨命理 · 全站样式 */
:root {
  --gold: #E3C380;
  --gold-strong: #C79A47;
  --ink: #1A1030;
  --bg-deep: #05000F;
  --bg-mid: #140839;
  --text: #FFFFFF;
  --text-dim: #A8A8C2;
  --text-faint: #7E7E9A;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --font-title: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(120, 50, 220, 0.28), rgba(5, 0, 15, 0) 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ============ 顶栏 ============ */
/* ── 语言切换器 ── */
.lang-switch { display: flex; gap: 3px; align-items: center; background: rgba(227,195,128,.07); border: 1px solid rgba(227,195,128,.22); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-opt { background: none; border: 0; color: #9A9AB4; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: color .18s, background .18s; font-family: inherit; }
.lang-opt:hover { color: #E3C380; }
.lang-opt.active { background: #E3C380; color: #120A2E; font-weight: 600; }
@media (max-width: 720px) {
  .header { flex-wrap: wrap; gap: 10px 8px; }
  .header-lang { order: 3; }
  .lang-opt { padding: 5px 7px; font-size: 11px; }
}
.header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 22px; font-weight: 700; color: var(--gold); }
.logo svg { flex: none; }
.nav { display: flex; gap: 44px; }
.nav a { font-size: 15px; color: #C9C9DD; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.btn-gold-pill {
  display: inline-flex; align-items: center; padding: 10px 26px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .2s;
}
.btn-gold-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227, 195, 128, .35); }

/* ============ Hero ============ */
.hero { display: flex; align-items: center; gap: 64px; padding: 72px 0 88px; }
.hero-left { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; padding: 8px 18px; border-radius: 999px;
  background: rgba(227, 195, 128, .1); border: 1px solid rgba(227, 195, 128, .35);
  font-size: 13px; color: var(--gold);
}
.hero h1 { font-family: var(--font-title); font-size: 64px; line-height: 1.24; font-weight: 700; }
.hero .sub { font-size: 17px; line-height: 1.8; color: var(--text-dim); max-width: 520px; }
.cta-row { display: flex; gap: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; padding: 16px 36px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(227, 195, 128, .35); transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 16px 32px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 16px; transition: background .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.trust-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); }

/* ============ 排盘表单卡 ============ */
.form-card {
  width: 420px; flex: none; padding: 36px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 2px rgba(255, 255, 255, .15);
  display: flex; flex-direction: column; gap: 20px;
}
.form-card h2 { font-family: var(--font-title); font-size: 24px; }
.form-card .form-sub { font-size: 13px; color: var(--text-dim); margin-top: -12px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: #C9C9DD; }
.input, .select {
  width: 100%; padding: 13px 16px; border-radius: 12px; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-family: inherit; outline: none; appearance: none;
}
.input::placeholder { color: #6E6E8A; }
.input:focus, .select:focus { border-color: rgba(227, 195, 128, .6); }
.select { background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237E7E9A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; color: #C9C9DD; }
.select option { background: #1A1030; color: #fff; }
.date-row { display: flex; gap: 12px; }
.date-row .field { flex: 1; }
/* 年 / 月 / 日 三格独立下拉 */
.ymd-row { display: flex; gap: 10px; }
.ymd-cell { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ymd-cell label { font-size: 12px; color: var(--text-dim); padding-left: 4px; }
.ymd-cell .select { padding: 13px 10px; text-align: center; background-position: right 8px center; }
.ymd-cell .select:first-child { color: #fff; }
#date-tip.ok { color: var(--gold); }
.gender-row { display: flex; gap: 12px; }
.gender-btn {
  flex: 1; padding: 12px 0; border-radius: 12px; font-size: 14px; text-align: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #C9C9DD;
  transition: all .15s;
}
.gender-btn.active { background: var(--gold); color: var(--ink); font-weight: 600; box-shadow: 0 4px 16px rgba(227, 195, 128, .25); }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px 0;
  border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--ink);
  background: linear-gradient(90deg, #F2D48C, #C79C47);
  box-shadow: 0 10px 28px rgba(227, 195, 128, .4); transition: transform .15s, opacity .2s;
}
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-note { font-size: 12px; color: #6E6E8A; text-align: center; }
.form-tip { font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.form-tip.ok { color: #7EDBA1; }
.form-error { font-size: 13px; color: #FF8A8A; text-align: center; display: none; }

/* ============ 通用板块 ============ */
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; }
.kicker { font-size: 12px; letter-spacing: 3px; color: var(--gold); font-weight: 500; }
.section-head h2 { font-family: var(--font-title); font-size: 40px; font-weight: 700; }
.section-head p { font-size: 16px; color: var(--text-dim); }

/* 步骤 */
.steps-row { display: flex; gap: 24px; }
.step-card {
  flex: 1; padding: 32px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 16px;
}
.step-num { font-family: Georgia, serif; font-size: 36px; color: var(--gold); font-weight: 300; }
.step-card h3 { font-family: var(--font-title); font-size: 22px; }
.step-card p { font-size: 14px; line-height: 1.7; color: var(--text-dim); }

/* 报告类型 */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.type-card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 16px; transition: transform .2s, border-color .2s;
}
.type-card:hover { transform: translateY(-4px); }
.type-card.hot { background: #150B38; border-color: rgba(227, 195, 128, .4); box-shadow: 0 16px 48px rgba(227, 195, 128, .12); }
.type-card h3 { font-family: var(--font-title); font-size: 22px; }
.type-card p { font-size: 14px; line-height: 1.7; color: var(--text-dim); flex: 1; }
.type-price { font-size: 18px; font-weight: 600; color: var(--gold); }
.hot-tag {
  position: absolute; top: 22px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 600;
}
a.type-card { text-decoration: none; color: inherit; cursor: pointer; }
a.type-card:hover { transform: translateY(-4px); border-color: rgba(227, 195, 128, .45); }
.type-go { font-size: 12px; color: var(--gold); opacity: .7; margin-top: -6px; }
a.type-card:hover .type-go { opacity: 1; }

/* 表单内报告类型选择 */
.type-pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tpick {
  padding: 9px 14px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #C9C9DD; transition: all .15s;
}
.tpick.active { background: var(--gold); color: var(--ink); font-weight: 600; border-color: transparent; }
.type-hint { font-size: 12px; line-height: 1.6; color: #7E7E9A; }

/* 报告页：需人工跟进提示 */
.type-notice {
  display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 18px 22px;
  border-radius: 16px; background: rgba(227, 195, 128, .08);
  border: 1px solid rgba(227, 195, 128, .3);
}
.type-notice b { font-size: 14px; color: var(--gold); }
.type-notice span { font-size: 13px; line-height: 1.7; color: #C9C9DD; }

/* 口碑 */
.proof { background: rgba(255, 255, 255, .02); }
.stats-row { display: flex; margin-bottom: 56px; }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat b { font-family: Georgia, serif; font-weight: 300; font-size: 44px; color: var(--gold); }
.stat span { font-size: 14px; color: var(--text-dim); }
.quote-row { display: flex; gap: 24px; }
.quote-card {
  flex: 1; padding: 28px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 16px;
}
.quote-mark { font-family: Georgia, serif; font-size: 40px; line-height: 28px; color: var(--gold); }
.quote-card p { font-size: 15px; line-height: 1.75; color: #DDDDEB; flex: 1; }
.quote-author { font-size: 13px; color: var(--text-faint); }

/* 打赏联系 */
.support-row { display: flex; gap: 24px; }
.support-card {
  flex: 1; padding: 36px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.support-card h3 { font-family: var(--font-title); font-size: 24px; margin-bottom: 10px; }
.support-card .desc { font-size: 14px; line-height: 1.7; color: var(--text-dim); margin-bottom: 22px; }
.amount-row { display: flex; gap: 12px; margin-bottom: 22px; }
.amount {
  flex: 1; padding: 14px 0; border-radius: 12px; text-align: center; font-size: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #C9C9DD;
  transition: all .15s;
}
.amount.active { background: var(--gold); color: var(--ink); font-weight: 600; box-shadow: 0 4px 16px rgba(227, 195, 128, .25); }
.contact-row { display: flex; gap: 12px; flex-direction: column; }
.kv-row { display: flex; flex-direction: column; gap: 6px; }
.kv-label { font-size: 12px; color: var(--text-faint); }
.kv-value {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: var(--gold);
}
.kv-value.copyable { cursor: pointer; transition: background .18s, border-color .18s; }
.kv-value.copyable:hover { background: rgba(227, 195, 128, .1); border-color: rgba(227, 195, 128, .4); }
.kv-value.copyable:active { transform: scale(.99); }
.kv-value span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-value svg { flex: none; }
.copied-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(12px);
  background: rgba(20, 20, 34, .95); color: var(--gold); border: 1px solid rgba(227, 195, 128, .4);
  padding: 10px 20px; border-radius: 999px; font-size: 13px; z-index: 9999;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.copied-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.contact-flex { display: flex; gap: 28px; }
.contact-flex .contact-col { flex: 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; align-self: center; }
.qr-box { width: 176px; height: 176px; border-radius: 16px; background: #fff; overflow: hidden; flex: none; }
.qr-box img { width: 100%; height: auto; display: block; }
.qr-cap { font-size: 12px; color: var(--text-faint); letter-spacing: .02em; }

/* ============ 页脚 ============ */
.footer { background: #040009; padding: 56px 0 32px; }
.constellation { width: 100%; height: 60px; display: block; margin-bottom: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 80px; margin-bottom: 40px; }
.footer-brand { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--text-faint); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col b { font-size: 14px; font-weight: 600; color: #fff; }
.footer-col a { font-size: 13px; color: var(--text-faint); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: #565672; }

/* ============ 报告页 ============ */
.report-head { padding: 56px 0 40px; display: flex; flex-direction: column; gap: 24px; }
.report-no { font-size: 13px; letter-spacing: 1px; color: var(--gold); font-weight: 500; }
.report-title-row { display: flex; align-items: center; gap: 16px; }
.report-title-row h1 { font-family: var(--font-title); font-size: 48px; font-weight: 700; }
.version-tag {
  padding: 6px 14px; border-radius: 999px; background: rgba(227, 195, 128, .1);
  border: 1px solid rgba(227, 195, 128, .4); font-size: 13px; color: var(--gold);
}
.chips-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #C9C9DD;
}

/* 四柱卡 */
.bazi-card {
  display: flex; align-items: center; gap: 40px; padding: 36px 48px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.bazi-title-block { width: 150px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.bazi-title-block h2 { font-family: var(--font-title); font-size: 22px; }
.bazi-title-block span { font-size: 12px; color: var(--text-faint); }
.pillar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; border-radius: 16px; }
.pillar .p-label { font-size: 13px; color: var(--text-faint); }
.pillar .p-gz { font-family: var(--font-title); font-size: 38px; font-weight: 700; }
.pillar .p-wx { font-size: 12px; color: var(--gold); }
.pillar.day-pillar { background: var(--gold); box-shadow: 0 6px 20px rgba(227, 195, 128, .3); }
.pillar.day-pillar .p-label { color: var(--ink); font-weight: 600; }
.pillar.day-pillar .p-gz { color: var(--ink); }
.pillar.day-pillar .p-wx { color: #5C4A1E; font-weight: 600; }

/* 简评卡 */
.brief-card {
  padding: 40px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.brief-kicker { font-size: 13px; letter-spacing: 1px; color: var(--gold); font-weight: 500; }
.brief-text { font-family: var(--font-title); font-size: 18px; line-height: 1.9; color: #DDDDEB; }
.brief-note { font-size: 13px; color: var(--text-faint); }
.loading-dots::after { content: '…'; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* 解锁区 */
.unlock-row { display: flex; gap: 24px; }
.unlock-card {
  flex: 1; padding: 36px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px;
}
.unlock-card.detail { background: #150B38; border: 1px solid rgba(227, 195, 128, .4); box-shadow: 0 16px 48px rgba(227, 195, 128, .12); }
.unlock-card.liunian {
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.unlock-top { display: flex; justify-content: space-between; align-items: center; }
.unlock-top h3 { font-family: var(--font-title); font-size: 24px; }
.unlock-price { font-family: Georgia, serif; font-size: 28px; color: var(--gold); }
.unlock-desc { font-size: 13px; color: var(--text-dim); margin-top: -12px; }
.lock-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #C9C9DD; }
.btn-unlock-detail {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 0;
  border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--ink);
  background: linear-gradient(90deg, #F2D48C, #C79C47);
  box-shadow: 0 10px 28px rgba(227, 195, 128, .4); transition: transform .15s, opacity .2s;
}
.btn-unlock-detail:hover { transform: translateY(-2px); }
.btn-unlock-detail:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-unlock-liunian {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 0;
  border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--gold);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(227, 195, 128, .4);
  transition: background .2s, opacity .2s;
}
.btn-unlock-liunian:hover { background: rgba(255, 255, 255, .14); }
.btn-unlock-liunian:disabled { opacity: .6; cursor: wait; }
.bundle-strip {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; border-radius: 18px;
  background: rgba(227, 195, 128, .08); border: 1px solid rgba(227, 195, 128, .3);
}
.bundle-strip h4 { font-size: 18px; font-weight: 600; color: var(--gold); }
.bundle-strip p { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.btn-bundle {
  padding: 12px 28px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 14px; font-weight: 700; transition: transform .15s;
}
.btn-bundle:hover { transform: translateY(-1px); }

/* 双盘 / 终身 */
.dual-strip { background: rgba(227, 195, 128, .05); border-style: dashed; }
.btn-dual { background: rgba(227, 195, 128, .18); color: var(--gold); border: 1px solid rgba(227, 195, 128, .5); }
.lt-head { margin: 44px 0 20px; text-align: center; }
.lt-head h3 { font-family: var(--font-title); font-size: 24px; color: var(--text); margin: 6px 0 6px; }
.lt-head p { font-size: 13px; color: var(--text-dim); }
.lt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lt-card {
  position: relative; padding: 28px 26px 24px; border-radius: 20px;
  background: rgba(227, 195, 128, .07); border: 1px solid rgba(227, 195, 128, .28);
}
.lt-card.vip { background: rgba(227, 195, 128, .12); border-color: rgba(227, 195, 128, .5); }
.lt-tag {
  position: absolute; top: -11px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700;
}
.lt-card.vip .lt-tag { background: #fff; }
.lt-card h4 { font-family: var(--font-title); font-size: 20px; color: var(--gold); }
.lt-price { font-size: 32px; font-weight: 800; color: var(--text); margin: 8px 0 4px; }
.lt-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.lt-perks { list-style: none; margin: 0 0 18px; }
.lt-perks li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.9; color: #DDDDEB; }
.lt-perks li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.btn-lt {
  width: 100%; padding: 13px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 15px; font-weight: 700; transition: transform .15s;
}
.btn-lt:hover { transform: translateY(-1px); }
.btn-vip { background: #fff; }
.lt-note { margin-top: 9px; font-size: 12px; color: var(--gold); text-align: center; min-height: 17px; }
@media (max-width: 720px) {
  .lt-row { grid-template-columns: 1fr; }
}
.lt-teaser {
  margin-top: 22px; padding: 15px 22px; border-radius: 14px; text-align: center;
  background: rgba(227, 195, 128, .06); border: 1px dashed rgba(227, 195, 128, .32);
  font-size: 13px; line-height: 1.8; color: var(--text-dim);
}
.lt-teaser b { color: var(--gold); }

/* 已解锁长文 */
.paid-article {
  padding: 40px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
}
.paid-article h3 { font-family: var(--font-title); font-size: 22px; color: var(--gold); margin: 24px 0 12px; }
.paid-article h3:first-child { margin-top: 0; }
.paid-article p { font-size: 15px; line-height: 1.9; color: #DDDDEB; margin-bottom: 12px; }
.disclaimer { font-size: 12px; color: var(--text-faint); margin-top: 24px; }

/* 报告页加载/错误 */
.report-state { padding: 120px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.report-state h2 { font-family: var(--font-title); font-size: 28px; }
.report-state p { color: var(--text-dim); }

/* ============ 近十年流年回顾 ============ */
.past-strength {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 18px; margin-bottom: 22px; border-radius: 14px;
  background: rgba(227, 195, 128, .07); border: 1px solid rgba(227, 195, 128, .22);
  font-size: 12.5px; color: var(--text-dim);
}
.past-strength b { color: var(--gold); font-weight: 600; }
.past-strength .sp { color: rgba(255,255,255,.18); }

.past-timeline { display: flex; flex-direction: column; }
.past-item {
  display: flex; gap: 20px; padding: 18px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
  position: relative;
}
.past-item:last-child { border-bottom: none; }
.past-left { width: 92px; flex: none; text-align: left; }
.past-left .py { font-family: var(--font-title); font-size: 21px; color: #fff; line-height: 1.2; }
.past-left .pg { font-size: 12px; color: var(--gold); margin-top: 3px; letter-spacing: .04em; }
.past-left .pa { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.past-main { flex: 1; min-width: 0; }
.past-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.past-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, .09);
}
.past-tag.shen { color: #DCC9F0; border-color: rgba(180, 150, 220, .3); background: rgba(150, 120, 200, .12); }
.past-tag.good { color: var(--gold); border-color: rgba(227, 195, 128, .45); background: rgba(227, 195, 128, .12); }
.past-tag.warn { color: #FFC59A; border-color: rgba(255, 150, 90, .35); background: rgba(255, 150, 90, .1); }
.past-tag.dun { color: #9FB7C9; border-color: rgba(120, 170, 210, .3); background: rgba(120, 170, 210, .1); }
.past-rel { font-size: 11px; color: var(--text-faint); margin-bottom: 7px; }
.past-text { font-size: 13.5px; line-height: 1.75; color: #D6D6E4; }
.past-loading { font-size: 13px; color: var(--text-dim); padding: 18px 0; }

@media (max-width: 640px) {
  .past-item { gap: 12px; }
  .past-left { width: 62px; }
  .past-left .py { font-size: 17px; }
  .past-text { font-size: 13px; }
}

/* ============ 紫微斗数命盘 ============ */
.zw-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(227, 195, 128, .22); border-radius: 14px; overflow: hidden;
}
.zw-cell {
  background: #150E28; padding: 10px 8px; min-height: 98px;
  display: flex; flex-direction: column; gap: 5px;
}
.zw-cell.zw-soul { background: rgba(227, 195, 128, .10); box-shadow: inset 0 0 0 1px rgba(227, 195, 128, .25); }
.zw-cell.zw-body { background: rgba(126, 219, 161, .07); }
.zw-cell-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.zw-pname { font-family: var(--font-title); font-size: 12px; color: var(--gold); }
.zw-pname i { font-style: normal; font-size: 10px; margin-left: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(227, 195, 128, .18); color: var(--gold); }
.zw-pgz { font-size: 11px; color: #8E8EAA; font-family: var(--font-body); }
.zw-stars, .zw-minor { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.zw-minor { opacity: .78; }
.zw-star { font-size: 12px; color: #EDEDF5; line-height: 1.4; }
.zw-star i { font-style: normal; font-size: 10px; margin-left: 2px; padding: 0 3px; border-radius: 3px; }
.zw-empty { font-size: 11px; color: #6E6E8A; }
.zw-miao { color: #F2DCAB; } .zw-wang { color: #E3C380; }
.zw-de { color: #D2D2E6; } .zw-ping { color: #A8A8C0; } .zw-xian { color: #85859E; }
.zw-lu { background: rgba(126, 219, 161, .18); color: #7EDBA1; }
.zw-quan { background: rgba(200, 150, 255, .18); color: #C896FF; }
.zw-ke { background: rgba(120, 180, 255, .18); color: #78B4FF; }
.zw-ji { background: rgba(255, 110, 110, .18); color: #FF8080; }
.zw-center {
  grid-column: span 2; grid-row: span 2; background: #120C22;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 14px 10px; text-align: center;
}
.zw-ct-title { font-family: var(--font-title); font-size: 16px; color: var(--gold); }
.zw-ct-line { font-size: 12px; color: #C9C9DD; }
.zw-ct-lunar { font-size: 11px; color: #8E8EAA; }
.zw-ct-sihua { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; font-size: 11px; }
.zw-ct-sihua span { padding: 2px 7px; border-radius: 6px; }
.zw-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12px; color: #C9C9DD; }
.zw-summary span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.zw-summary b { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) {
  .zw-cell { min-height: 76px; padding: 7px 5px; }
  .zw-star { font-size: 11px; }
  .zw-pname { font-size: 11px; } .zw-pgz { font-size: 10px; }
  .zw-ct-title { font-size: 14px; } .zw-ct-line { font-size: 11px; }
}

/* ============ 悬浮客服 ============ */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 999px; z-index: 900;
  background: linear-gradient(135deg, #F2D48C, #C79C47);
  box-shadow: 0 10px 30px rgba(227, 195, 128, .45);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .unread {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #FF5A5A; color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.chat-panel {
  position: fixed; right: 24px; bottom: 92px; width: 408px; max-width: calc(100vw - 32px); height: 616px; max-height: calc(100vh - 120px);
  border-radius: 24px; z-index: 901; display: none; flex-direction: column; overflow: hidden;
  background: rgba(23, 13, 56, .96); border: 1px solid rgba(227, 195, 128, .35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
}
.chat-panel.open { display: flex; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--gold);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.chat-name { font-size: 15px; font-weight: 600; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.chat-status .dot { width: 7px; height: 7px; border-radius: 999px; background: #5AD07A; }
.chat-close { color: var(--text-faint); font-size: 18px; line-height: 1; padding: 4px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.msg-row { display: flex; gap: 8px; align-items: flex-start; }
.msg-row.user { justify-content: flex-end; }
.msg-mini-avatar { width: 26px; height: 26px; border-radius: 999px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.msg-bubble { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.65; color: #DDDDEB; background: rgba(255, 255, 255, .07); white-space: pre-wrap; word-break: break-word; }
.msg-row.user .msg-bubble { background: rgba(227, 195, 128, .18); border: 1px solid rgba(227, 195, 128, .4); color: #fff; }
.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 10px; }
.chat-chip {
  padding: 7px 12px; border-radius: 999px; font-size: 11px; color: var(--gold);
  background: rgba(227, 195, 128, .1); border: 1px solid rgba(227, 195, 128, .35); transition: background .2s;
}
.chat-chip:hover { background: rgba(227, 195, 128, .2); }
.chat-input-bar { display: flex; gap: 10px; padding: 14px 16px; background: rgba(255, 255, 255, .05); border-top: 1px solid rgba(255, 255, 255, .06); }
.chat-input {
  flex: 1; padding: 11px 14px; border-radius: 999px; font-size: 13px; color: #fff; font-family: inherit;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); outline: none;
}
.chat-input::placeholder { color: #6E6E8A; }
.chat-send { padding: 11px 18px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; }
.chat-send:disabled { opacity: .5; }
.chat-input:disabled { opacity: .55; }

/* 等待指示：发出去到首字之间有数秒空档，必须有可见反馈 */
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--gold); opacity: .35;
  animation: typing-blink 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.msg-bubble.waiting { color: var(--text-faint); font-size: 12px; }
.chat-chip.retry { color: #FFD9A8; border-color: rgba(255, 160, 90, .5); background: rgba(255, 160, 90, .12); }
/* 自检行：通道不通时给出可定位的一句小字，普通访客几乎不会触发 */
.msg-diag {
  margin: 6px 0 2px 22px; font-size: 11px; line-height: 1.5;
  color: rgba(227, 195, 128, .45); word-break: break-all;
}

/* ============ 解锁弹窗（激活码 / 支付） ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 500; padding: 20px;
  background: rgba(5, 0, 15, .74); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal-mask[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 420px; padding: 26px 24px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #1B1140 0%, #12092C 100%);
  border: 1px solid rgba(227, 195, 128, .28); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: #fff; }
.modal-sub { font-size: 12px; line-height: 1.6; color: var(--text-dim); margin-top: 6px; }
.modal-close { color: var(--text-faint); font-size: 20px; line-height: 1; padding: 2px 4px; }
.modal-close:hover { color: var(--gold); }
.code-field { display: flex; gap: 8px; margin-top: 18px; }
.code-input {
  flex: 1; padding: 12px 14px; border-radius: 10px; font-size: 14px; letter-spacing: 1.5px;
  font-family: inherit; color: #fff; text-transform: uppercase; outline: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.code-input::placeholder { color: #6E6E8A; letter-spacing: 0; text-transform: none; }
.code-input:focus { border-color: rgba(227, 195, 128, .55); }
.btn-code {
  padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: var(--gold); color: var(--ink); white-space: nowrap;
}
.btn-code:disabled { opacity: .5; }
.code-msg { min-height: 17px; margin-top: 10px; font-size: 12px; line-height: 1.5; color: #F0A9A9; }
.code-msg.ok { color: #7EDBA1; }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 11px; color: var(--text-faint); }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.btn-pay {
  width: 100%; padding: 13px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--gold); background: rgba(227, 195, 128, .08); border: 1px solid rgba(227, 195, 128, .4);
}
.btn-pay:hover { background: rgba(227, 195, 128, .16); }
.modal-tip { margin-top: 10px; font-size: 11px; line-height: 1.6; text-align: center; color: var(--text-faint); }
.unlock-code-entry {
  display: block; width: 100%; margin-top: 10px; padding: 11px; border-radius: 10px;
  font-size: 13px; color: var(--gold); background: rgba(227, 195, 128, .08);
  border: 1px dashed rgba(227, 195, 128, .45); text-align: center;
}
.unlock-code-entry:hover { background: rgba(227, 195, 128, .16); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero { flex-direction: column; }
  .hero h1 { font-size: 44px; }
  .form-card { width: 100%; }
  .steps-row, .quote-row, .support-row, .unlock-row { flex-direction: column; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .bazi-card { flex-wrap: wrap; }
  .bazi-title-block { width: 100%; }
  .pillar { min-width: 40%; }
  .footer-row { flex-direction: column; gap: 32px; }
  .footer-brand { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .nav { display: none; }
  .report-title-row h1 { font-size: 32px; }
  .contact-flex { flex-direction: column; }
  .contact-flex .qr-wrap { align-self: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .type-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 28px; }
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .stat { min-width: 40%; }
  .ymd-row { gap: 8px; }
  .ymd-cell .select { padding: 12px 6px; font-size: 13px; }
  .ymd-cell label { font-size: 11px; }

  /* 手机上客服面板改为贴底大屏，避免被地址栏挤成一条 */
  .chat-fab { right: 16px; bottom: 18px; width: 52px; height: 52px; }
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: none;
    height: 78dvh; max-height: none;
    border-radius: 20px 20px 0 0;
  }
}
