:root {
  --purple: #6D4FA3;        /* 主紫（对齐设计稿·更深沉稳） */
  --purple-deep: #3B2560;  /* 深紫（夜空星盘） */
  --purple-soft: #8B6FC0;  /* 浅紫 */
  --magenta: #C44FA0;      /* 品红 */
  --rose: #FF6B9D;         /* 玫瑰粉 */
  --rose-deep: #E44C88;
  --gold: #F5C77E;
  --gold-deep: #D9A44A;
  --ink: #2a2233;
  --muted: #8a8294;
  --bg-soft: #fbf7fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(109, 79, 163, 0.12);
  --grad-main: linear-gradient(135deg, #6D4FA3 0%, #C44FA0 55%, #FF6B9D 100%);
  --grad-night: linear-gradient(160deg, #2a1c3f 0%, #4a2a5e 55%, #7a2f63 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f3ecfb 0%, #fdeef5 55%, #fdf3ec 100%);
  min-height: 100vh;
}

.app {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 14px 90px;
}

/* ===== 双端响应式：自动识别终端，桌面端加宽并启用多列栅格 ===== */
@media (min-width: 600px) {
  .app { max-width: 540px; }
}
@media (min-width: 900px) {
  .app { max-width: 720px; padding: 22px 18px 90px; }
}
@media (min-width: 1200px) {
  .app { max-width: 820px; }
}

/* 通用响应式栅格工具类：桌面多列，窄屏自动塌为单列 */
.duo, .tri { display: grid; gap: 16px; }
.duo { grid-template-columns: 1fr; }
.tri { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .tri { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .duo { gap: 22px; }
}

/* 头部 */
.hero { text-align: center; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 4px 16px rgba(123,94,167,.18), inset 0 0 0 1.5px rgba(123,94,167,.08); }
.brand-text h1 { margin: 0; font-size: 26px; letter-spacing: 1px; color: var(--ink); }
.brand-text .mono { font-family: Georgia, serif; color: var(--magenta); }
.tagline { margin: 2px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.hero-desc { margin: 14px 4px 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 模式切换 */
.mode-tabs {
  display: flex; gap: 8px; margin-top: 16px;
}
.mode-tab {
  flex: 1; padding: 10px 4px; border: none; border-radius: 14px;
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px;
}
.tab-sil { width: 22px; height: 22px; }
.title-sil { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.sil-wrap { display: flex; justify-content: center; margin: 6px 0 2px; }
.sil-result { height: 86px; width: auto; }
.mode-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--rose));
  color: #fff;
}

/* 卡片 */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 15px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.section-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

/* 表单 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
input[type="text"], input[type="date"], select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid #ece6f3; border-radius: 12px; background: var(--bg-soft);
  color: var(--ink); outline: none; transition: border-color .2s;
}
input:focus, select:focus { border-color: var(--magenta); }

/* 移动端友好日期选择器：年/月/日 三个下拉，避免弹出原生日历滚轮 */
.date-picker { display: flex; gap: 8px; width: 100%; }
.date-picker select {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 8px;
  font-size: 15px;
  text-align: center;
}
/* Hero 卡片内让日期与时辰并排时自适应 */
.hc-row .date-picker { flex: 1.6; }

.radio-row, .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; padding: 8px 14px;
  border: 1.5px solid #ece6f3; border-radius: 20px; background: var(--bg-soft); cursor: pointer; }
.radio input { accent-color: var(--magenta); }

.tag { font-size: 13px; padding: 7px 13px; border-radius: 20px; border: 1.5px solid #ece6f3;
  background: var(--bg-soft); color: var(--muted); cursor: pointer; user-select: none; transition: all .15s; }
.tag.active { background: linear-gradient(135deg, var(--purple), var(--rose)); color: #fff; border-color: transparent; }

.btn-primary {
  width: 100%; margin-top: 6px; padding: 15px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  box-shadow: 0 8px 20px rgba(196, 79, 160, 0.35);
}
.btn-primary:active { transform: translateY(1px); }
.btn-small { padding: 8px 14px; border: none; border-radius: 10px; background: var(--purple); color: #fff; font-size: 13px; cursor: pointer; }
.btn-ghost { margin-top: 14px; padding: 11px 20px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px;
  background: transparent; color: #fff; font-size: 14px; cursor: pointer; }
.form-hint { margin: 12px 2px 0; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* 双人分块 */
.person-block { background: var(--bg-soft); border-radius: 14px; padding: 14px 14px 4px; margin-bottom: 14px; }
.person-title { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.person-title .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--rose)); }

/* 报告 */
.report { margin-top: 16px; }
.page {
  background: var(--card); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.page-cover {
  text-align: center;
  background: linear-gradient(160deg, #2a1c3f, #5b2a5e 60%, #8a2f63);
  color: #fff;
}
.page-cover .cover-logo { width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 4px 16px rgba(123,94,167,.18); }
.cover-brand { font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #fff; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.cover-brand span { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; opacity: .9; }
.cover-product { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.page-cover h2 { margin: 6px 0; font-size: 21px; }
.page-cover .sub { font-size: 12px; opacity: .8; letter-spacing: 1px; }
.page-cover .score-big { font-size: 52px; font-weight: 800; margin: 14px 0 2px;
  background: linear-gradient(135deg, var(--gold), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-cover .score-label { font-size: 12px; opacity: .75; }

/* 真爱画像分区 */
.section-divider { position: relative; padding-top: 34px; }
.section-divider::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--magenta));
}
.section-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--magenta);
  background: #fbeef6; border: 1px solid #f3dcea; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}

/* 报告内的「两部分」分隔：第一部分 / 第二部分 */
.part-divider {
  position: relative; margin: 26px 0 18px; padding: 16px 18px;
  border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(123,94,167,.08), rgba(196,79,160,.08));
  border: 1px dashed #e7d7ee;
}
.part-divider .part-no {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--magenta);
}
.part-divider .part-title {
  font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 4px;
}
.part-divider .part-desc {
  font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6;
}

/* 表单内的 MBTI / 手相面相自测入口 */
.extra-tests {
  margin: 6px 0 16px; padding: 12px 12px 4px; border-radius: 12px;
  background: #faf5fd; border: 1px solid #efe5f6;
}
.test-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed #ece2f3;
}
.test-row:last-child { border-bottom: none; }
.btn-test {
  flex: 1; text-align: left; padding: 10px 14px; border: 1.5px solid #e7d7ee; border-radius: 12px;
  background: #fff; color: var(--purple); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; min-width: 0;
}
.btn-test:active { transform: translateY(1px); border-color: var(--magenta); }
.test-status {
  flex: 0 0 auto; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 999px;
  background: #f1eaf7; white-space: nowrap;
}
.test-status.done { color: #fff; background: linear-gradient(135deg, var(--purple), var(--rose)); }

.page h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.page h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--rose)); }
.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f0e9f6; font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); min-width: 76px; }
.kv .v { color: var(--ink); flex: 1; line-height: 1.6; }

.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.keyword { font-size: 13px; padding: 6px 12px; border-radius: 16px; color: var(--magenta);
  background: #fbeef6; font-weight: 600; }

/* 图表 */
.chart-wrap { display: flex; justify-content: center; margin: 10px 0; }
.chart-wrap.small svg { max-width: 220px; }
.chart-radar, .chart-ring, .chart-pair, .chart-wx { width: 100%; max-width: 280px; height: auto; }
.chart-pair text { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.two-chart { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.two-chart > div { flex: 1; min-width: 130px; max-width: 180px; display: flex; justify-content: center; }
.notice { margin-top: 10px; padding: 10px 12px; background: #fff8e7; border-radius: 10px; font-size: 12px; color: #8a6d3b; line-height: 1.5; }

/* 雷达替代：进度条（备用） */
.bars { margin-top: 4px; }
.bar { margin: 10px 0; }
.bar .bl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.bar .bl .bv { color: var(--magenta); font-weight: 700; }
.bar .track { height: 8px; background: #f0e9f6; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--rose)); }

/* 塔罗牌阵：flex 居中换行，避免 grid auto-fit 在个别宽度下把卡片压成竖条 */
.tarot-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; justify-content: center; align-items: stretch; }
.tarot-card {
  flex: 0 0 150px;
  width: 150px;
  max-width: 150px;
  height: 200px;
  perspective: 900px;
  cursor: pointer;
  box-sizing: border-box;
}
@media (min-width: 520px) {
  .tarot-card { flex: 0 0 170px; width: 170px; max-width: 170px; height: 220px; }
}
@media (min-width: 900px) {
  .tarot-card { flex: 0 0 190px; width: 190px; max-width: 190px; height: 240px; }
}
.tarot-card .tc-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.tarot-card.flipped .tc-inner { transform: rotateY(180deg); }
.tarot-card .tc-front, .tarot-card .tc-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.tarot-card .tc-front {
  background: linear-gradient(135deg, var(--purple), var(--magenta)); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.tarot-card .tc-front .tc-q { font-size: 34px; font-weight: 800; opacity: .9; }
.tarot-card .tc-back {
  transform: rotateY(180deg); background: var(--bg-soft);
  border: 1.5px solid #ece6f3;
  overflow: hidden;
}
.tarot-card .tc-pos { font-size: 11px; color: var(--muted); margin: 2px 0 6px; }
.tarot-card .tc-name { font-size: 13px; font-weight: 700; color: var(--purple); margin-bottom: 6px; }
.tarot-card .tc-name .tc-rev { font-size: 10px; color: #fff; background: var(--magenta); border-radius: 8px; padding: 1px 6px; margin-left: 3px; vertical-align: middle; }
.tarot-card .tc-mean { font-size: 11px; color: var(--ink); line-height: 1.5; }
.tarot-card .tc-kw { font-size: 10.5px; color: var(--gold); margin-top: 6px; }
.tarot-card.reversed .tc-back { border-color: var(--magenta); }
.tarot-redraw { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tarot-redraw .tarot-note { font-size: 11px; color: var(--muted); }
.tarot-redraw .btn-ghost { margin-top: 0; border-color: var(--purple); color: var(--purple); }

/* 融合引擎（Fusion Engine） */
.fe-dims { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 4px; }
.fe-dim { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; }
.fe-dim-head { display: flex; justify-content: space-between; align-items: baseline; }
.fe-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fe-score { font-size: 12.5px; font-weight: 700; }
.fe-bar { height: 7px; border-radius: 4px; background: #ece6f3; margin: 7px 0 8px; overflow: hidden; }
.fe-bar span { display: block; height: 100%; border-radius: 4px; }
.fe-srcs { display: flex; flex-direction: column; gap: 3px; }
.fe-src { font-size: 11px; color: var(--muted); }
.fe-src b { color: var(--purple); }
.fe-tension { margin-top: 14px; background: #fff6fb; border: 1px solid #f3d8ec; border-radius: 12px; padding: 12px; }
.fe-t-title { font-size: 13px; font-weight: 700; color: var(--magenta); margin-bottom: 8px; }
.fe-t-item { padding: 8px 0; border-top: 1px dashed #ecd6e6; }
.fe-t-item:first-child { border-top: none; }
.fe-t-dim { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fe-t-row { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.fe-t-a { color: var(--green-book); }
.fe-t-b { color: var(--magenta); }
.fe-t-res { font-size: 11.5px; color: var(--ink); margin-top: 5px; background: #fff; border-radius: 8px; padding: 6px 8px; }
.fe-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 分享卡片 */
.share-card {
  text-align: center;
  background: linear-gradient(160deg, #3a2150, #7a2f63);
  color: #fff;
}
.share-card .qr { width: 110px; height: 110px; margin: 14px auto; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 12px; }
.share-card .cta { font-size: 14px; margin-top: 6px; }

/* 浮动分享栏 */
.share-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 12px 14px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-top: 1px solid #f0e9f6; box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  z-index: 50;
}
.btn-share { flex: 1; padding: 13px 4px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--rose)); cursor: pointer; }
.btn-share.gold { background: linear-gradient(135deg, #e6b54c, #f5d88a); color: #4a3b1f; }
.btn-share.ghost { background: #fff; color: var(--ink); border: 1.5px solid #ece6f3; }

/* 推广人后台 */
.promoter-head { display: flex; gap: 10px; }
.promoter-head.three > div { flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 12px 4px; text-align: center; }
.ph-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ph-code { font-size: 20px; font-weight: 800; color: var(--magenta); }
.ph-num { font-size: 22px; font-weight: 800; color: var(--purple); }
.promoter-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: var(--bg-soft); border-radius: 10px; }
.promoter-link span { flex: 1; font-size: 12px; color: var(--muted); word-break: break-all; }
.promoter-actions { display: flex; gap: 8px; margin-top: 12px; }
.promoter-actions .btn-share { flex: 1; border-radius: 12px; font-size: 13px; padding: 12px 4px; }
.promoter-actions .btn-share.ghost { line-height: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.promoter-list { list-style: none; padding: 0; margin: 8px 0 0; max-height: 220px; overflow-y: auto; }
.promoter-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #f0e9f6; font-size: 13px; color: var(--ink); }
.promoter-list li.empty { color: var(--muted); justify-content: center; border: none; }

/* 推广海报浮层 */
.promo-card-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 16px; }
.promo-card-overlay.hidden { display: none !important; }
.promo-card-inner { background: #fff; border-radius: var(--radius); padding: 16px; width: 100%; max-width: 340px; text-align: center; }
.promo-card { text-align: center; background: linear-gradient(160deg, #3a2150, #7a2f63); color: #fff; border-radius: 14px; padding: 24px 18px; margin-bottom: 14px; }
.promo-card .pc-logo { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 4px 16px rgba(123,94,167,.18); }
.promo-card .pc-brand { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.promo-card .pc-brand span { font-family: Georgia, serif; font-weight: 500; opacity: .9; }
.promo-card .pc-code { font-size: 38px; font-weight: 800; margin: 16px 0 6px; letter-spacing: 2px; }
.promo-card .pc-tip { font-size: 12px; opacity: .85; line-height: 1.6; }
.promo-card .pc-qr { width: 120px; height: 120px; margin: 16px auto 0; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 11px; padding: 6px; }
.promo-card-close { margin-top: 4px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-card { background: #fff; border-radius: var(--radius); padding: 20px; width: 100%; max-width: 360px; text-align: center; }
.modal-card h3 { margin: 0 0 14px; }
.card-preview { margin-bottom: 14px; }
.card-preview .share-card { margin-bottom: 0; }

/* 自测弹窗（MBTI / 手相面相） */
.modal-card.quiz-card { position: relative; text-align: left; max-width: 380px; }
.quiz-close { position: absolute; top: 8px; right: 12px; border: none; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0; }
.quiz-card h3 { margin: 0 0 12px; text-align: center; padding-right: 24px; }
.quiz-progress { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.quiz-progress .qp-track { height: 6px; background: #f0e9f6; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.quiz-progress .qp-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--rose)); transition: width .2s; }
.quiz-body { margin: 4px 0 16px; }
.quiz-q { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.6; margin-bottom: 14px; }
.quiz-group-title { font-size: 13px; font-weight: 700; color: var(--purple); margin: 2px 0 12px; }
.quiz-opt { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 9px; border: 1.5px solid #ece6f3; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: 14px; cursor: pointer; transition: all .15s; }
.quiz-opt.sel { border-color: var(--magenta); background: #fbeef6; color: var(--magenta); font-weight: 600; }
.quiz-opt:active { transform: translateY(1px); }
.quiz-nav { display: flex; gap: 10px; }
.quiz-nav .btn-primary { margin-top: 0; }
.quiz-summary { font-size: 13px; color: var(--ink); line-height: 1.7; }
.quiz-summary .qs-line { padding: 6px 0; border-bottom: 1px dashed #f0e9f6; }
.quiz-summary .qs-line:last-child { border-bottom: none; }

/* 真实命盘展示板 */
.bazi-plate { background: linear-gradient(160deg,#faf3ff,#fdeef6); border:1px solid #f0e2f4; border-radius:14px; padding:14px 14px 12px; margin-bottom:14px; }
.bazi-plate.love-plate { background: linear-gradient(160deg,#fff8fb,#f7f0ff); border-color:#f3dcea; }
.bp-title { font-size:14px; font-weight:700; color:var(--purple); margin-bottom:10px; }
.bp-row { display:flex; gap:6px; justify-content:space-between; }
.bp-col { flex:1; text-align:center; background:#fff; border-radius:10px; padding:8px 2px; box-shadow:0 2px 8px rgba(123,94,167,.08); }
.bp-col .bp-lbl { display:block; font-size:11px; color:var(--muted); margin-bottom:3px; }
.bp-col b { font-size:17px; color:var(--ink); font-family:Georgia,serif; letter-spacing:1px; }
.bp-nayin { display:block; font-size:10px; color:var(--muted); font-weight:400; margin-top:3px; letter-spacing:.5px; }
.bp-shensha { background:linear-gradient(90deg,rgba(214,51,132,.06),transparent); border-radius:8px; padding:4px 8px; }
.bp-shensha b { color:var(--magenta); }
.bp-meta { margin-top:8px; font-size:12.5px; color:var(--ink); line-height:1.6; }
.bp-meta b { color:var(--magenta); }
.bp-note { margin-top:8px; font-size:10.5px; color:var(--muted); opacity:.8; }
.bp-couple { display:flex; flex-direction:column; gap:12px; }
.bp-person { background:#fff; border-radius:12px; padding:10px 12px; box-shadow:0 2px 8px rgba(123,94,167,.08); }
.bp-name { font-size:13px; font-weight:700; color:var(--ink); margin-bottom:8px; }

.hidden { display: none !important; }
.disclaimer { margin-top: 22px; padding: 14px; font-size: 11px; color: var(--muted); line-height: 1.7;
  background: #fff7fb; border-radius: 12px; border: 1px solid #f3e6f1; }
.disclaimer strong { color: var(--magenta); }

/* 人生 K 线图 */
.kline-summary { font-size:13px; color:var(--ink); line-height:1.7; margin:2px 0 12px; }
.kline-scroll {
  width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
  background:#fbf7fe; border:1px solid #f0e8f6; border-radius:12px; padding:4px 0;
}
.kline-scroll .chart-kline { display:block; }
.kline-legend { font-size:11px; color:var(--muted); margin-top:8px; }
.kline-cards { margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.kline-card {
  background:#fff; border-radius:12px; padding:10px 12px;
  box-shadow:0 2px 8px rgba(123,94,167,.08); border-left:4px solid var(--magenta);
}
.kc-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:5px; }
.kc-label { font-size:13px; font-weight:700; color:var(--ink); }
.kc-range { font-size:11px; color:var(--magenta); }
.kc-text { font-size:12.5px; color:#4a4458; line-height:1.65; }

/* 多维度走势：阶段卡片 */
.sub-h { font-size:14px; font-weight:700; color:var(--purple); margin:20px 0 8px; }
.kline-sub { font-size:12.5px; color:var(--muted); line-height:1.7; margin:0 0 10px; }
.kline-sub b { color:var(--ink); }
.stage-cards { display:flex; flex-direction:column; gap:10px; }
.stage-card { background:#fff; border:1px solid #f0e8f6; border-radius:13px; padding:11px 12px; box-shadow:0 2px 8px rgba(123,94,167,.06); }
.stage-card-head { display:flex; align-items:center; gap:8px; margin-bottom:5px; }
.stage-card-name { font-size:13px; font-weight:700; color:var(--ink); }
.stage-card-range { font-size:11px; color:var(--muted); }
.stage-card-trend { margin-left:auto; font-size:11px; padding:1px 7px; border-radius:10px; background:#f1ebf7; color:var(--purple); }
.stage-card-trend.up { background:#fdeaea; color:#d6453f; }
.stage-card-trend.down { background:#e9f6ef; color:#1f9e6e; }
.stage-card-overall { font-size:12px; color:#4a4458; margin-bottom:8px; }
.stage-card-overall b { color:var(--magenta); }
.stage-card-bars { display:flex; flex-direction:column; gap:6px; }
.stage-bar { display:flex; align-items:center; gap:8px; }
.stage-bar-name { flex:none; width:42px; font-size:11.5px; font-weight:600; text-align:right; }
.stage-bar-track { flex:1; height:7px; background:#f1ebf7; border-radius:4px; overflow:hidden; }
.stage-bar-fill { height:100%; border-radius:4px; transition:width .4s ease; }
.stage-bar-num { flex:none; width:30px; font-size:11px; color:var(--muted); text-align:right; }
.stage-card-note { margin-top:8px; font-size:11.5px; color:var(--muted); line-height:1.55; }

/* 人生终点落点 */
.endpoint-card { background:linear-gradient(160deg,#faf3ff,#fdeef6); border:1px solid #f0e2f4; border-radius:14px; padding:14px; display:flex; gap:14px; align-items:center; }
.ep-score { flex:none; font-size:34px; font-weight:800; color:var(--magenta); font-family:Georgia,serif; line-height:1; }
.ep-score span { font-size:12px; color:var(--muted); font-weight:500; margin-left:2px; }
.ep-text { font-size:12.5px; color:#4a4458; line-height:1.75; }
.ep-text b { color:var(--purple); }

/* 支付/分享解锁弹窗 */
.pay-card { max-width:360px; }
.pay-product { background:linear-gradient(135deg,#7b5ea7,#b05ea0); border-radius:12px; padding:12px 14px; margin-bottom:12px; text-align:center; }
.pay-product-name { font-size:20px; font-weight:800; color:#fff; letter-spacing:2px; }
.pay-product-desc { font-size:11.5px; color:rgba(255,255,255,.9); margin-top:4px; line-height:1.5; }
.pay-desc { font-size:12.5px; color:var(--muted); line-height:1.6; margin:8px 0 14px; }
.pay-options { display:flex; flex-direction:column; gap:12px; }
.pay-option { background:#faf8fc; border:1.5px solid #efe8f6; border-radius:12px; padding:14px; text-align:center; }
.pay-active { border-color:var(--primary); background:#fff8fb; }
.pay-price { font-size:32px; font-weight:800; color:var(--magenta); line-height:1; }
.pay-price span { font-size:28px; }
.pay-label { font-size:12px; color:var(--muted); margin-top:4px; }
.pay-or { font-size:12px; color:var(--muted); text-align:center; position:relative; }
.pay-or::before, .pay-or::after { content:''; position:absolute; top:50%; width:38%; height:1px; background:#efe8f6; }
.pay-or::before { left:0; }
.pay-or::after { right:0; }
.pay-qr { width:120px; height:120px; margin:10px auto 0; background:#fff; border:1px dashed #d9cfe3; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:11px; color:#b9a9c9; }
.pay-share-title { font-size:15px; font-weight:700; color:var(--ink); }
.pay-share-title b { color:var(--magenta); }
.pay-progress { height:8px; background:#f1ebf7; border-radius:4px; margin:10px 0 6px; overflow:hidden; }
.pay-progress-bar { height:100%; width:0%; background:linear-gradient(90deg,var(--primary),var(--magenta)); border-radius:4px; transition:width .3s ease; }
.pay-progress-text { font-size:11.5px; color:var(--muted); }
.pay-progress-text b { color:var(--magenta); }

/* 手相/面相：上传照片 AI 识别 */
.palm-land { text-align:center; padding:6px 2px; }
.palm-tip { font-size:12.5px; color:var(--muted); line-height:1.6; margin:0 0 14px; }
.palm-kind { display:flex; gap:10px; margin:10px 0 14px; }
.palm-kind .quiz-opt { flex:1; margin:0; text-align:center; }
.palm-kind-pick.is-active { border-color:var(--magenta); background:#fbeef6; color:var(--magenta); font-weight:600; }
.palm-pick { display:block; width:100%; margin:10px 0; font-size:14px; font-weight:600; padding:14px; }
.palm-note { font-size:11px; color:#b3a6c2; line-height:1.5; margin:14px 4px 0; }
.palm-up { text-align:center; padding:6px 2px; }
.upload-box { display:block; border:2px dashed #d9cfe3; border-radius:14px; padding:26px 12px; color:#9a8bb0;
  font-size:13px; cursor:pointer; background:#faf8fc; transition:.2s; }
.upload-box:hover { border-color:var(--primary); color:var(--primary); }
.upload-box span { pointer-events:none; }
.palm-preview { margin:12px 0; }
.palm-preview img { max-width:100%; max-height:240px; border-radius:12px; border:1px solid #ece4f3; }
#palm-recog { width:100%; margin-top:10px; padding:13px; font-size:14px; }
.palm-msg { font-size:12.5px; color:var(--muted); line-height:1.6; margin-top:12px; min-height:18px; }
.palm-msg:empty { margin-top:0; }
.palm-key-row { text-align:left; margin:14px 0 8px; }
.palm-key-row label { display:block; font-size:12px; font-weight:600; color:var(--ink); margin-bottom:5px; }
.palm-key-row small { display:block; font-size:10.5px; color:#b3a6c2; line-height:1.5; margin-top:5px; }
.palm-key-row small a { color:var(--primary); text-decoration:underline; }
.palm-key { width:100%; box-sizing:border-box; padding:11px 12px; font-size:13px; border:1px solid #d9cfe3; border-radius:10px; background:#fff; font-family:monospace; }
.palm-key:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(160,120,200,.12); }
.palm-key-row .key-help { margin-top:8px; font-size:11px; color:var(--muted); }
.palm-key-row .palm-key-actions { display:block; font-size:10.5px; color:#b3a6c2; margin-top:6px; }
.palm-key-row .palm-key-actions a { color:var(--primary); text-decoration:underline; cursor:pointer; }
.palm-key-row .palm-key-actions code { background:#f3edf8; padding:1px 5px; border-radius:5px; font-family:monospace; font-size:10.5px; color:#7a5aa6; }
.palm-key-row .key-help summary { cursor:pointer; color:var(--primary); font-weight:600; user-select:none; }
.palm-key-row .key-help summary:hover { text-decoration:underline; }
.palm-key-row .key-steps { margin:6px 0 0; padding-left:18px; line-height:1.7; }
.palm-key-row .key-steps li { margin:2px 0; }
.palm-key-row .key-steps code { background:#f3edf8; padding:1px 5px; border-radius:5px; font-family:monospace; font-size:10.5px; color:#7a5aa6; }
.palm-key-row .key-steps a { color:var(--primary); }
.hidden { display:none !important; }
.spin { display:inline-block; width:13px; height:13px; border:2px solid #e7dcef; border-top-color:var(--primary);
  border-radius:50%; animation:pir2spin .7s linear infinite; vertical-align:-2px; margin-right:6px; }
@keyframes pir2spin { to { transform:rotate(360deg); } }

/* 报告打印工具条（仅屏幕显示） */
.report-toolbar { padding:14px 16px; text-align:right; }
.report-toolbar .btn-primary { display:inline-block; }

/* 人生 K 线（蜡烛图，参考 life-kline） */
.life-kline-wrap { margin: 6px 0 0; }
.life-kline { display:block; width:100%; height:auto; background:#fff; border:1px solid #f0eaf6; border-radius:10px; }
.kline-legend { display:flex; flex-wrap:wrap; gap:10px; font-size:11px; color:var(--muted); margin-top:6px; }
.kline-legend .up { color:#d9534f; font-weight:600; }
.kline-legend .down { color:#3aab6b; font-weight:600; }
.kline-legend .mut { color:#b3a6c2; }
.kline-cap { font-size:11.5px; color:var(--muted); line-height:1.6; margin:6px 0 0; }
.hr-kline { margin-top:10px; }
.hr-person .life-kline { border:none; }

/* ============ 报告阅读模式：隐藏营销区块，让报告置顶 ============ */
body.report-mode .lp-hidden-for-report { display:none !important; }
body.report-mode #console-section { padding-top:20px !important; }

/* ============ 首页广告位（自营/联盟，非 AdSense） ============ */
.ad-slot { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:18px 0; box-shadow:var(--shadow-sm); position:relative; z-index:1; }
.ad-slot .ad-tag { flex:0 0 auto; font-size:11px; font-weight:700; color:#fff; background:var(--grad-main); padding:4px 10px; border-radius:20px; }
.ad-slot .ad-body { flex:1 1 auto; display:flex; flex-direction:column; gap:3px; min-width:0; }
.ad-slot .ad-body b { font-size:15px; color:var(--ink); }
.ad-slot .ad-body span { font-size:12.5px; color:var(--muted); }
.ad-slot .ad-btn { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; background:var(--grad-main); color:#fff; font-size:14px; font-weight:700; padding:10px 18px; border-radius:12px; text-decoration:none; cursor:pointer; box-shadow:var(--shadow-sm); transition:.2s; }
.ad-slot .ad-btn:hover { transform:translateY(-2px); box-shadow:0 12px 24px -8px rgba(196,79,160,.4); }
@media (max-width:640px){
  .ad-slot { flex-wrap:wrap; gap:10px; padding:14px; }
  .ad-slot .ad-btn { width:100%; }
}

/* ============ 打印样式：只打印报告内容，避免空白页 ============ */
@media print {
  html, body { background:#fff !important; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }

  /* 隐藏所有顶层页面区块，只保留承载报告的控制台区域 */
  body > header, body > section:not(#console-section), body > footer { display:none !important; }

  /* 控制台区域内隐藏介绍头与所有表单，只保留两个报告输出容器 */
  #console-section .lp-console-head,
  #console > *:not(#report-section):not(#deep-report-view) { display:none !important; }

  /* 仅对当前可见的报告容器取消 .hidden 并置顶 */
  #report-section:not(.hidden), #deep-report-view:not(.hidden) {
    display:block !important; visibility:visible !important;
    position:absolute; left:0; top:0; width:100%; padding:0 !important; margin:0 !important;
  }

  /* 工具栏 / 按钮 / 分享卡 / 评分卡 / 反馈按钮 / 弹窗浮层 不打印 */
  .report-toolbar, .dr-toolbar, .no-print, .share-card, .rating-card,
  #pir2-fb-btn, #pir2-fb-modal,
  #warm-overlay, #share-modal, #pay-modal, #term-modal, #promo-card-overlay, #quiz-modal,
  button, .btn-primary, .btn-share { display:none !important; }

  /* 封面独占第一页 */
  .page-cover, .dr-cover { page-break-after:always; break-after:page; }

  /* 章节尽量不被分页截断 */
  .page, .dr-chapter, .dr-cover, .dr-two-col, .dr-item, .tarot-card { break-inside:avoid; }

  /* 报告内页去阴影/边框，适配纸张 */
  .page, .dr-chapter { box-shadow:none !important; border:none !important; margin:0 0 18px !important; padding:20px 4px !important; }

  /* 深度报告包装器保持可见 */
  .deep-report, .harmony-report, .master-report { visibility:visible !important; }
}
