/* ============ 报告页专属样式（v1.4 八宫三段式） ============ */

.report-head {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
}
.report-head .back {
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
}
.report-head .back:hover { color: var(--text); }
.report-head h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 6px; }
.report-head .room-name { font-size: 15px; color: var(--text-2); }

.mock-banner {
  font-size: 12.5px; color: var(--med); background: #fdf8e8;
  border: 1px solid #f0e3b8; border-radius: 10px; padding: 11px 14px;
  margin: 20px 0; line-height: 1.55;
}

.demo-banner {
  font-size: 12.5px; color: #3f6b52; background: #eef8f2;
  border: 1px solid #b9dcc8; border-radius: 10px; padding: 11px 14px;
  margin: 20px 0; line-height: 1.55; font-weight: 600;
}

/* ---------- 立极 / 罗盘设定卡 ---------- */
.setting-card {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px; margin: 24px 0 36px;
  align-items: center;
}
.setting-card:empty { display: none; }
.set-row { display: flex; align-items: baseline; gap: 8px; }
.set-row .k {
  font-size: 11.5px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3);
}
.set-row .v { font-size: 16px; font-weight: 650; color: var(--text); }
.set-warn {
  flex-basis: 100%; font-size: 13px; color: var(--high);
  background: #fdf0ee; border: 1px solid #f2d5d0; border-radius: 9px;
  padding: 9px 13px; margin-top: 4px; font-weight: 600;
}

/* ---------- 通用区块标题 ---------- */
.sec-h {
  font-size: 13px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3);
  margin: 40px 0 14px;
}
.sub-h {
  font-size: 13px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3);
  margin: 26px 0 12px;
}
.sub-h:first-child { margin-top: 4px; }

/* ---------- 八宫网格（上南下北，左东右西） ---------- */
.bagua-wrap { margin: 0 0 8px; }
#baguaGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bagua-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 12px; min-height: 116px;
  display: flex; flex-direction: column; gap: 7px;
  border-top-width: 3px;
}
.bagua-cell.center {
  align-items: center; justify-content: center;
  background: var(--surface-2); gap: 4px;
}
.bagua-cell.center .bagua-sym { font-size: 30px; color: var(--text-3); }
.bagua-cell.center .bagua-name { font-size: 15px; font-weight: 700; color: var(--text-2); }
.bagua-cell.center::before { display: none; }

/* 判定态着色 */
.bagua-cell.manifest     { border-top-color: var(--high); background: #fdf5f3; }
.bagua-cell.latent       { border-top-color: var(--med);  background: #fdfaf1; }
.bagua-cell.activated    { border-top-color: var(--good); background: #f3f9f5; }
.bagua-cell.inactive     { border-top-color: var(--border); }
.bagua-cell.needs_support{ border-top-color: var(--text-3); background: var(--surface-2); }
.bagua-cell.top { box-shadow: 0 0 0 2px rgba(194,168,120,.35); }

.bagua-head { display: flex; align-items: baseline; gap: 7px; }
.bagua-sym { font-size: 21px; line-height: 1; color: var(--text); }
.bagua-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.bagua-dir {
  font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3);
}
.bagua-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.bt {
  font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 5px;
  letter-spacing: .02em; white-space: nowrap;
}
.bt.sha  { background: #eef1f7; color: #5a6a8a; }
.bt.shui { background: #eaf4f5; color: #4a7d82; }
.bt.actual-sha   { background: #efe7d8; color: #8a7448; }
.bt.actual-shui  { background: #e2eff2; color: #3f7680; }
.bt.actual-empty { background: var(--surface-2); color: var(--text-3); }
.bt.actual-mixed { background: #f2ede4; color: #7d6f57; }

.bagua-objs {
  font-size: 12px; color: var(--text-2); line-height: 1.45; margin-top: auto;
}
.bagua-star {
  font-size: 11.5px; font-weight: 600; color: var(--text-3);
  padding-top: 6px; border-top: 1px dashed var(--border);
}
.bagua-trigger {
  font-size: 11px; font-weight: 650; color: var(--med);
}
.bagua-cell.manifest .bagua-trigger { color: var(--high); }

.bagua-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 14px 0 0; font-size: 12px; color: var(--text-2);
}
.bagua-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bagua-legend .lg {
  width: 11px; height: 11px; border-radius: 3px; display: inline-block;
  border: 1px solid var(--border);
}
.lg.good    { background: #cfe6d8; border-color: #a9d0b9; }
.lg.bad     { background: #f2d5d0; border-color: #e2b3ac; }
.lg.weak    { background: var(--surface-2); }
.lg.active  { background: #f0c979; border-color: #d9ab4d; }
.lg.dormant { background: #e6e0d4; border-color: #cfc5b2; }

/* ---------- 三段式 section ---------- */
.stage {
  margin: 44px 0;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.stage-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.stage-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #FFFEFB; font-weight: 700; font-size: 16px;
  font-family: var(--mono);
  display: grid; place-items: center; margin-top: 2px;
}
.stage-head h2 { margin: 0 0 4px; font-size: clamp(20px, 2.6vw, 25px); letter-spacing: -.02em; }
.stage-sub { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.stage-close {
  margin-top: 20px; font-size: 14.5px; line-height: 1.7; color: var(--text);
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 14px 18px;
}
.stage-close:empty { display: none; }

/* ---------- 宫位明细（第一段） ---------- */
.sector-list { display: flex; flex-direction: column; gap: 10px; }
.sector {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 18px; border-left: 3px solid var(--border);
}
.sector.manifest      { border-left-color: var(--high); }
.sector.latent        { border-left-color: var(--med); }
.sector.activated     { border-left-color: var(--good); }
.sector.needs_support { border-left-color: var(--text-3); }

.sector-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.sector-sym { font-size: 19px; line-height: 1; }
.sector-name { font-size: 16px; font-weight: 700; }
.sector-dir {
  font-size: 11.5px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3);
}
.sector-code {
  font-size: 11.5px; color: var(--text-3); margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.sector-body { display: flex; flex-direction: column; gap: 7px; }
.sector-line { display: flex; gap: 9px; font-size: 14px; line-height: 1.55; }
.sector-line b {
  flex: none; min-width: 74px; font-size: 11.5px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-3);
  padding-top: 2px;
}
.sector-line span { color: var(--text); }

/* ---------- 断语卡片（第二段） ---------- */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  border-left: 3px solid var(--border);
}
.finding.high { border-left-color: var(--high); }
.finding.med  { border-left-color: var(--med); }
.finding.good { border-left-color: var(--good); }

.finding .top {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.finding h4 { margin: 0; font-size: 16px; font-weight: 650; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.tag.high { background: #fdf0ee; color: var(--high); }
.tag.med  { background: #fdf8e8; color: var(--med); }
.tag.good { background: #eff7f1; color: var(--good); }

.finding .advice { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.finding .why {
  margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65;
  padding-top: 10px; border-top: 1px dashed var(--border);
}
.finding .why b {
  color: var(--text-3); font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .05em; margin-right: 6px;
}

/* ---------- 化解卡片（第三段） ---------- */
.remedy-list { display: flex; flex-direction: column; gap: 10px; }
.remedy {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.remedy.empty {
  font-size: 13.5px; color: var(--text-3); background: var(--surface-2);
  border-style: dashed; text-align: center; padding: 14px;
}
.remedy-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.remedy-name { font-size: 15.5px; font-weight: 700; }
.remedy-at {
  font-size: 12px; font-weight: 650; color: var(--text-3);
  background: var(--surface-2); padding: 2px 8px; border-radius: 6px;
}
.remedy-problem { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.remedy-items {
  font-size: 13.5px; line-height: 1.7; color: var(--text);
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.remedy-items b {
  font-size: 11.5px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-3); margin-right: 2px;
}
.item-chip {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: #f2ede4; color: #7d6f57; border: 1px solid #e6dcc9;
  cursor: help;
  font-family: inherit; line-height: 1.4;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .14s;
}
.item-chip:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.item-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.item-chip img {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--surface); border: 1px solid var(--border); object-fit: contain;
  padding: 1px;
}
.item-chip .ph {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-3);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* 形煞卡片下的化解物小图 */
.cure-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--border);
}
.cure-thumbs .item-chip { font-size: 12px; padding: 3px 10px 3px 4px; }

/* ---------- 法器详解（C） ---------- */
.items-detail-help {
  margin: -4px 0 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.6;
}
.item-detail-list { display: flex; flex-direction: column; gap: 14px; }
.item-detail {
  display: grid; grid-template-columns: 168px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; align-items: start;
}
.item-detail-visual {
  width: 168px; height: 168px; border-radius: 14px;
  background: linear-gradient(160deg, #fbf9f4, #f3efe6);
  border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.item-detail-visual img {
  width: 148px; height: 148px; object-fit: contain;
}
.item-detail-visual .ph {
  font-size: 46px; color: #cdc2ad; font-weight: 700;
}
.item-detail-body { min-width: 0; }
.item-detail-body h4 {
  margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.item-detail-el, .item-detail-use, .item-detail-place {
  font-size: 13.5px; line-height: 1.65; color: var(--text); margin-bottom: 8px;
}
.item-detail-el b, .item-detail-use b, .item-detail-place b {
  display: inline-block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
  margin-right: 8px; vertical-align: 1px;
}
.item-detail-svg {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.placement-svg { display: block; max-width: 100%; height: auto; }
.item-detail-legend {
  font-size: 11.5px; color: var(--text-3); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.item-detail-legend::before {
  content: ''; width: 11px; height: 11px; border-radius: 3px; flex: none;
  background: #f0dcae; border: 1px solid #b0893a;
}

/* ---------- 法器详情弹窗 ---------- */
.item-modal { display: none; }
.item-modal.show { display: block; position: fixed; inset: 0; z-index: 200; }
.item-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,26,23,.55); backdrop-filter: blur(3px);
  animation: im-fade .18s ease;
}
@keyframes im-fade { from { opacity: 0 } to { opacity: 1 } }
.item-modal-panel {
  position: fixed; z-index: 201;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 24px 70px rgba(28,26,23,.28);
  animation: im-pop .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes im-pop { from { opacity: 0; transform: translate(-50%,-46%) scale(.97) } to { opacity: 1; transform: translate(-50%,-50%) scale(1) } }
.item-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 19px; line-height: 1;
  cursor: pointer; font-family: inherit; display: grid; place-items: center;
  transition: all .14s;
}
.item-modal-close:hover { background: var(--surface-2); color: var(--text); }
.item-modal-body {
  display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 26px;
}
.im-visual {
  width: 230px; height: 230px; border-radius: 16px;
  background: linear-gradient(160deg, #fbf9f4, #f3efe6);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.im-visual img { width: 200px; height: 200px; object-fit: contain; }
.im-visual .ph { font-size: 62px; color: #cdc2ad; font-weight: 700; }
.im-info { min-width: 0; }
.im-info h3 { margin: 0 0 16px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.im-row {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.65; color: var(--text);
}
.im-row b {
  font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3);
}
.im-svg {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border);
  display: flex; justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .item-modal-backdrop, .item-modal-panel { animation: none; }
  .item-modal-panel { transform: translate(-50%,-50%); }
}

/* ---------- 打油诗 ---------- */
.mnemonic {
  margin-top: 30px; padding: 22px 24px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text); font-size: 15.5px; line-height: 1.95;
  white-space: pre-line; text-align: center; letter-spacing: .02em;
}
.mnemonic:empty { display: none; }

/* ---------- 反馈 ---------- */
.feedback {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 32px 0; text-align: center;
}
.feedback h3 { margin: 0 0 18px; font-size: 16.5px; font-weight: 650; }
.fb-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fb-btn {
  border: 1.5px solid var(--border); background: var(--surface);
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; color: var(--text);
  transition: all .15s;
}
.fb-btn:hover { border-color: var(--text-3); }
.fb-btn.sel-yes { border-color: var(--good); background: #eff7f1; color: var(--good); }
.fb-btn.sel-no  { border-color: var(--high); background: #fdf0ee; color: var(--high); }
.fb-comment { margin-top: 16px; display: none; }
.fb-comment.show { display: block; }
.fb-comment textarea {
  width: 100%; min-height: 70px; border-radius: 10px; padding: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-family: inherit; font-size: 14px; resize: vertical; color: var(--text);
}
.fb-thanks { font-size: 14px; color: var(--good); margin-top: 14px; display: none; font-weight: 600; }
.fb-thanks.show { display: block; }

/* ---------- 付费墙 / 假门（浅色：纸白卡 + 朱砂主按钮） ---------- */
.paywall {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 20px; padding: 38px 32px; margin: 32px 0;
  position: relative; overflow: hidden;
}
/* 顶部一条朱砂细线，替代深色渐变带来的「暗块感」 */
.paywall::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}
.paywall .badge {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); margin-bottom: 14px;
}
.paywall .price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 20px; }
.paywall .price { font-size: 34px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.paywall .price-note { font-size: 13.5px; color: var(--text-3); }
.paywall ul { list-style: none; padding: 0; margin: 0 0 26px; }
.paywall li {
  font-size: 14.5px; padding: 9px 0 9px 26px; position: relative;
  color: var(--text-2); border-bottom: 1px solid var(--border);
}
.paywall li:last-child { border-bottom: none; }
.paywall li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.paywall .btn-unlock {
  width: 100%; background: var(--accent); color: #FFFEFB;
  padding: 15px; border-radius: 999px; border: none;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform .12s, background .2s;
}
.paywall .btn-unlock:hover { transform: translateY(-1px); background: var(--accent-2); }
.paywall .btn-unlock:active { transform: translateY(1px); }

.early-access {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; margin-top: 20px; display: none;
}
.early-access.show { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.early-access h4 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.early-access p { margin: 0 0 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.early-access .row { display: flex; gap: 10px; flex-wrap: wrap; }
.early-access input {
  flex: 1; min-width: 200px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-size: 14.5px; font-family: inherit;
}
.early-access input::placeholder { color: var(--text-4); }
.early-access input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.early-access button {
  padding: 12px 22px; border-radius: 10px; border: none;
  background: var(--accent); color: #FFFEFB; font-weight: 700;
  font-size: 14.5px; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.early-access .note { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.early-access .ok-msg { color: var(--good); font-weight: 600; font-size: 14.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 767.98px) {
  .bagua-cell { min-height: 96px; padding: 10px 9px; }
  .bagua-sym { font-size: 18px; }
  .bagua-name { font-size: 13.5px; }
  .bagua-objs { font-size: 11px; }
  .paywall { padding: 28px 22px; }
  .stage-num { width: 30px; height: 30px; font-size: 14px; }
  .sector-line { flex-direction: column; gap: 2px; }
  .sector-line b { min-width: 0; }

  /* 法器详解：竖排 */
  .item-detail { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .item-detail-visual { width: 100%; height: 190px; }
  .item-detail-visual img { width: 168px; height: 168px; }
  .item-detail-svg { align-items: center; }
  .placement-svg { width: 100%; max-width: 260px; }

  /* 弹窗：整屏贴合 */
  .item-modal-panel {
    top: 0; left: 0; transform: none;
    width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0;
  }
  @keyframes im-pop { from { opacity: 0 } to { opacity: 1 } }
  .item-modal-body { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .im-visual { width: 100%; height: 210px; }
  .im-visual img { width: 180px; height: 180px; }
  .item-chip img, .item-chip .ph { width: 23px; height: 23px; }
  .item-chip { font-size: 12px; padding: 3px 10px 3px 4px; }
}

/* ================= 三态对比图（阶段3） ================= */

.annotate-help {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  margin: 0 0 10px;
}
.annotate-note {
  font-size: 12px; color: var(--text-3); line-height: 1.65;
  padding: 10px 13px; border-radius: 10px; margin: 0 0 20px;
  background: var(--bg-3, #f6f6f4);
  border-left: 3px solid var(--accent);
}

#compareList { display: flex; flex-direction: column; gap: 26px; }

.cmp-item {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; background: var(--bg-2, #fcfcfb);
}
.cmp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.cmp-title { font-size: 14px; font-weight: 700; color: var(--text); }
.cmp-facing { font-size: 12px; color: var(--text-3); }

.cmp-tabs {
  display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.cmp-tab {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); transition: all .15s;
}
.cmp-tab:hover { border-color: var(--text-3); color: var(--text); }
.cmp-tab.on {
  background: var(--text); color: #fff; border-color: var(--text);
}
.cmp-tab.off {
  opacity: .38; cursor: not-allowed; border-style: dashed;
}
.cmp-tab.off:hover { border-color: var(--border); color: var(--text-2); }

.cmp-stage {
  position: relative; border-radius: 11px; overflow: hidden;
  background: #ececea; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cmp-img {
  display: block; width: 100%; height: auto; max-height: 560px;
  object-fit: contain; cursor: zoom-in;
}

.cmp-legend {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.lg {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 5px;
}
.lg::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: currentColor;
}
.lg-good  { color: rgb(39,133,90);  border-color: rgba(39,133,90,.35); }
.lg-bad   { color: rgb(211,47,47);  border-color: rgba(211,47,47,.35); }
.lg-gold  { color: rgb(176,137,58); border-color: rgba(176,137,58,.4); }
.lg-plain { color: var(--text-3); }
.lg-plain::before { background: var(--text-3); opacity: .5; }

/* 放大镜 */
.cmp-lightbox { display: none; }
.cmp-lightbox.show { display: block; position: fixed; inset: 0; z-index: 300; }
.cmp-lb-backdrop {
  position: absolute; inset: 0; background: rgba(12,12,12,.92);
  animation: cmp-fade .18s ease-out;
}
.cmp-lb-img {
  position: absolute; inset: 0; margin: auto;
  max-width: 94vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.6);
  animation: cmp-pop .2s cubic-bezier(.2,.9,.3,1.1);
}
.cmp-lb-close {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4);
  color: #fff; font-size: 24px; line-height: 1; font-family: inherit;
}
/* 关闭按钮点击区 ≥48px（移动端） */
@media (max-width: 767.98px) {
  .cmp-lb-close { width: 48px; height: 48px; top: 10px; right: 12px; }
}
@keyframes cmp-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cmp-pop  { from { opacity: 0; transform: scale(.94) } to { opacity: 1; transform: scale(1) } }

@media (prefers-reduced-motion: reduce) {
  .cmp-lb-backdrop, .cmp-lb-img { animation: none; }
}

@media (max-width: 767.98px) {
  .cmp-item { padding: 11px; }
  .cmp-tab { padding: 6px 11px; font-size: 12px; }
  .cmp-img { max-height: 380px; }
  .cmp-lb-close { top: 8px; right: 10px; width: 36px; height: 36px; }
}

/* ================= PDF 下载条 ================= */

.pdf-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin: 26px 0 10px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(180deg, #fdfbf6 0%, #fffefb 100%);
}
.pdf-bar.busy { opacity: .75; }
.pdf-bar-text { display: flex; flex-direction: column; gap: 3px; min-width: 220px; flex: 1 1 260px; }
.pdf-bar-text b { font-size: 14.5px; color: var(--text); }
.pdf-bar-text span { font-size: 12px; color: var(--text-3); line-height: 1.55; }

.pdf-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--accent, #b0893a);
  background: var(--accent, #b0893a); color: #fff;
  transition: all .15s; white-space: nowrap;
}
.pdf-btn:hover:not(:disabled) { filter: brightness(1.06); }
.pdf-btn:disabled { cursor: progress; opacity: .7; }

@media (max-width: 767.98px) {
  .pdf-bar { flex-direction: column; align-items: stretch; padding: 14px; }
  .pdf-btn { width: 100%; text-align: center; }
}

/* ================= 综合评分卡（免费预览） ================= */

.score-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px;
  align-items: center;
  margin: 22px 0 26px; padding: 24px 26px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 12% 0%, var(--accent-soft), transparent 58%),
    var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}
@media (max-width: 767.98px) {
  .score-card { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 20px 18px; }
  .score-gauge { margin: 0 auto; max-width: 190px; }
}
.score-gauge { width: 200px; height: 200px; }
.score-gauge svg { width: 100%; height: auto; display: block; }
.score-meta { min-width: 0; }
.score-meta .sc-label {
  font-size: 10.5px; letter-spacing: var(--tracking-wide, .14em);
  text-transform: uppercase; color: var(--text-3, #6E7681); margin-bottom: 6px;
}
.score-meta .sc-grade {
  font-size: 22px; font-weight: 700; color: var(--text, #F2F4F7);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.score-meta .sc-sum {
  font-size: 14.5px; color: var(--text-2, #A7AEB9); line-height: 1.72;
  max-width: 560px;
}
.score-meta .sc-free {
  margin-top: 12px; font-size: 12px; color: var(--gold, #C9A227); opacity: .85;
  display: inline-flex; align-items: center; gap: 6px;
}
.score-meta .sc-free::before {
  content: '✦'; font-size: 11px;
}

/* ================= 锁定区 ================= */

.lock-glyph { display: flex; justify-content: center; margin-bottom: 6px; }
.lock-glyph svg { width: 132px; height: 132px; opacity: .92; }

.paywall .locked-note {
  font-size: 13.5px; color: var(--text-2); line-height: 1.7;
  margin: 0 0 16px; max-width: 520px;
}
.paywall .lock-commitment {
  font-size: 13px; color: var(--accent); font-weight: 600;
  padding: 11px 15px; border-radius: 11px; margin-bottom: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  line-height: 1.65;
}
.paywall .lock-commitment:empty { display: none; }

/* 模糊预览的正文（对应 F4：首句可见，其余模糊） */
.remedy-locked {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: .55;
}
.remedy-locked::after {
  content: '';
}
@media (prefers-reduced-motion: reduce) {
  .score-card, .paywall { animation: none; }
}

/* ==========================================================================
   交付物仪式感：文档元信息 / 落款印章
   --------------------------------------------------------------------------
   让报告看起来像一份正式文书而不是一个网页。编号可作客服引用凭证；
   印章是分享 PDF 时最强的品牌水印。
   ========================================================================== */

/* 头部元信息行 */
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
}
.doc-meta > span { display: inline-flex; align-items: baseline; gap: 7px; }
.doc-meta i {
  font-style: normal; color: var(--text-3);
  letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px;
}
.doc-meta b { font-weight: 600; color: var(--text); }
.doc-meta .mono { font-family: var(--mono); letter-spacing: .03em; }
.doc-meta .dm-wide { flex-basis: 100%; }

/* 落款印章块 */
.doc-seal {
  display: flex; align-items: center; gap: 18px;
  margin: 46px 0 10px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.doc-seal::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.doc-seal[hidden] { display: none; }
.ds-seal {
  flex: none;
  display: grid; place-items: center;
  width: 76px; height: 76px;
}
.ds-seal svg { width: 100%; height: 100%; display: block; }
.ds-text b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: .04em; margin-bottom: 5px;
}
.ds-text span {
  display: block;
  font-size: 12.3px; color: var(--text-2); line-height: 1.68;
  max-width: 56ch;
}
@media (max-width: 767.98px) {
  .doc-seal { gap: 14px; padding: 16px; }
  .ds-seal { width: 60px; height: 60px; }
}

/* ==========================================================================
   示例报告转化引导条
   --------------------------------------------------------------------------
   内容保持完整可读（不加付费墙），只在顶部说明这份报告的来源，
   并给出「生成你自己的报告」的下一步。避免用户看完即走、无转化路径。
   ========================================================================== */

.sample-cta {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 24px; padding: 15px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2);
}
.sample-cta[hidden] { display: none; }
.sample-cta .sc-ic {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; color: var(--accent);
}
.sample-cta .sc-ic svg { width: 22px; height: 22px; }
.sample-cta .sc-body { flex: 1 1 auto; min-width: 0; }
.sample-cta .sc-body b {
  display: block; font-size: 13.2px; font-weight: 650; color: var(--text);
  margin-bottom: 3px;
}
.sample-cta .sc-body span { display: block; font-size: 12.4px; color: var(--text-2); line-height: 1.6; }
.sample-cta .btn { flex: none; }
@media (max-width: 767.98px) {
  .sample-cta { flex-wrap: wrap; gap: 12px; }
  .sample-cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   付费墙 · 游客态（P0-⑩）
   未登录访客看到的是「登录解锁」而不是价格墙 —— 先给价值，再要账号。
   ========================================================================== */
.btn-unlock.is-guest {
  background: var(--accent);
  color: #fff;
}
.guest-foot {
  margin-top: 10px;
  font-size: 12.2px;
  color: var(--text-3);
  text-align: center;
}
/* P1-⑤ 单次付费醒目提示 */
.paywall .one-time-note {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.8px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-2);
}
.paywall .one-time-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
}

/* ==========================================================================
   两档定价 + 赠礼（P1-②④ / P1-⑥）
   --------------------------------------------------------------------------
   明码标价美元、单次付费、不使用点数代币 —— 这一条要在付费区直接看见。
   ========================================================================== */
.tier-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 16px 0 4px; text-align: left;
}
.tier {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); padding: 14px 16px;
  display: grid; gap: 3px;
}
.tier-name {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.tier-price {
  font-size: 24px; font-weight: 700; color: var(--text);
  font-family: var(--font-display); line-height: 1.1;
}
.tier-desc { font-size: 12.3px; line-height: 1.62; color: var(--text-2); }

.gift-row {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12.4px; color: var(--text-2); line-height: 1.6;
}
.gift-row::before {
  content: ''; flex: none;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); opacity: .8;
  transform: rotate(45deg);
}
.price-note-usd { margin-top: 9px; font-size: 11.6px; color: var(--text-3); line-height: 1.6; }

@media (max-width: 767.98px) {
  .tier-grid { grid-template-columns: 1fr; }
}
