/* ============================================================
   恋爱人格测试 · 样式
   移动端优先；宽屏时居中成一栏。

   本文件与站点 style.css 同页加载，因此做了两层隔离：
   1. 变量统一 --lp-* 前缀，类名冲突的 .btn/.bar/.brand/.progress/
      .pill/.toast 改为 .lp-* 前缀
   2. 全局选择器（html/body/button/h1/img 等）全部收进 .app 作用域，
      只在测试页容器内生效，不会影响站点导航与页脚
   ============================================================ */

:root {
  --lp-bg: #fff8f3;
  --lp-ink: #2b2230;
  --lp-body: #4a3f4d;
  --lp-muted: #7d7180;
  --lp-faint: #a89ba8;
  --lp-line: #f1e5df;
  --lp-card: #ffffff;
  --lp-primary: #e85d75;
  --lp-primary-dark: #cf405d;
  --lp-primary-soft: #fdeef0;
  --lp-gold: #f3cf8a;
  --lp-radius: 16px;
  --lp-radius-lg: 22px;
  --lp-shadow: 0 12px 32px rgba(107, 63, 99, .10);
  --lp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --lp-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
             -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

/* ---------- 外层容器 ---------- */
.app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lp-bg);
  font-family: var(--lp-font);
  color: var(--lp-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.app *,
.app *::before,
.app *::after { box-sizing: border-box; }
/* 用 :where() 把重置特异性压到 0：否则 .app p 会盖掉 .intro__lead 的 margin，
   .app ul 会盖掉 .type-grid 的 margin */
.app :where(button) { font: inherit; color: inherit; }
.app :where(h1, h2, h3, p, ul, figure, blockquote) { margin: 0; }
.app :where(img) { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 22px calc(32px + var(--lp-safe-bottom));
}
.screen[hidden] { display: none; }
.screen:not([hidden]) { animation: screen-in .4s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 560px) {
  .app {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(107, 63, 99, .16);
    overflow: clip;
  }
  .screen {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app *,
  .app *::before,
  .app *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 按钮 ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, filter .2s ease, opacity .2s ease;
}
.lp-btn:active { transform: scale(.97); }
.lp-btn:disabled { opacity: .6; cursor: default; transform: none; }

.lp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #f07a8c, var(--lp-primary) 55%, var(--lp-primary-dark));
  box-shadow: 0 10px 24px rgba(232, 93, 117, .32);
}
.lp-btn--primary:hover { filter: brightness(1.05); }

.lp-btn--ghost {
  color: var(--lp-ink);
  background: #fff;
  border: 1px solid var(--lp-line);
}
.lp-btn--ghost:disabled { color: var(--lp-faint); }

.lp-btn--lg { width: 100%; min-height: 56px; font-size: 17px; }

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 首页 ---------- */
.intro__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.lp-brand { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.lp-brand::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lp-primary);
  vertical-align: 1px;
}

.lp-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--lp-line);
  font-size: 12.5px;
  color: var(--lp-muted);
}

.intro__title {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: .01em;
}

.hl { position: relative; z-index: 0; color: var(--lp-primary); white-space: nowrap; }
/* 记号笔式下划线：收在字形下方，不压住文字 */
.hl::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 6px;
  border-radius: 3px;
  background: rgba(232, 93, 117, .32);
}

.intro__lead { margin-bottom: 26px; color: var(--lp-muted); font-size: 15.5px; }

.type-grid {
  list-style: none;
  padding: 0;
  display: grid;
  /* 手机上一种类型一行；宽到能放下两列时再并排 */
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 26px;
}
@media (min-width: 480px) {
  .type-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.type-chip {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* 单行卡片：名称与标语横向排开，高度由内容决定 */
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--lp-radius);
  color: #fff;
  box-shadow: 0 8px 20px rgba(107, 63, 99, .12);
}
@media (min-width: 480px) {
  .type-chip {
    justify-content: flex-end;
    min-height: 108px;
    padding: 16px 14px;
    gap: 0;
  }
}
.type-chip b { font-size: 19px; line-height: 1.3; }
.type-chip span { margin-top: 4px; font-size: 12.5px; line-height: 1.45; opacity: .92; }
.type-chip--secure  { background: linear-gradient(150deg, #5cc3a7, #1f8a80); }
.type-chip--anxious { background: linear-gradient(150deg, #f6a37b, #e85d75); }
.type-chip--avoidant { background: linear-gradient(150deg, #7fa2ee, #4a5ec0); }
.type-chip--fearful { background: linear-gradient(150deg, #b98be6, #7350ad); }

.fineprint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--lp-faint);
}

/* ---------- 答题 ---------- */
.quiz__head {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.quiz__back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--lp-muted);
  cursor: pointer;
}
.lp-progress { height: 6px; border-radius: 999px; background: #f3e6e0; overflow: hidden; }
.lp-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f39aa8, var(--lp-primary));
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}
.quiz__count {
  min-width: 48px;
  text-align: right;
  font-size: 13px;
  color: var(--lp-muted);
  font-variant-numeric: tabular-nums;
}

.quiz__body { flex: 1; }
.quiz__body[data-dir="next"] { animation: q-next .32s ease both; }
.quiz__body[data-dir="back"] { animation: q-back .32s ease both; }
@keyframes q-next {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes q-back {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}

.quiz__question {
  min-height: 4.5em;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
}
.quiz__hint { margin-bottom: 26px; font-size: 13.5px; color: var(--lp-faint); }

.options { display: grid; gap: 8px; }
.option {
  position: relative;
  min-height: 48px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--lp-line);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.option::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 1.5px solid #e6d7d1;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.option:hover { border-color: #f4b4bf; }
.option:active { transform: scale(.985); }
.option.is-selected { border-color: var(--lp-primary); background: var(--lp-primary-soft); }
.option.is-selected::before {
  border-color: var(--lp-primary);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--lp-primary);
}

.quiz__foot { padding-top: 28px; }

/* ---------- 分析中 ---------- */
.screen--analyzing { align-items: center; justify-content: center; text-align: center; }
.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
}
.ring__arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #fbe0e4;
  border-top-color: var(--lp-primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing__text { min-height: 1.6em; margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.analyzing__sub { font-size: 13.5px; color: var(--lp-faint); }

/* ---------- 报告：结果卡 ---------- */
.screen--report { padding-bottom: calc(40px + var(--lp-safe-bottom)); }

.tcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 24px 22px 26px;
  border-radius: var(--lp-radius-lg);
  color: #fff;
  /* --g1/--g2 由 report.js 按结果类型内联注入，不参与主题变量前缀 */
  background: linear-gradient(150deg, var(--g1), var(--g2));
  box-shadow: var(--lp-shadow);
}
.tcard::before,
.tcard::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.tcard::before { top: -96px; right: -84px; width: 230px; height: 230px; background: rgba(255, 255, 255, .13); }
.tcard::after { bottom: -100px; left: -76px; width: 170px; height: 170px; background: rgba(0, 0, 0, .07); }

.tcard__brand { display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: .04em; }
.tcard__brand > span { opacity: .88; }
.tcard__save {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
}
.tcard__name { margin: 34px 0 4px; font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: .04em; }
.tcard__nick { margin-bottom: 12px; font-size: 19px; font-weight: 600; }
.tcard__tag { margin-bottom: 26px; font-size: 15px; line-height: 1.6; opacity: .92; }

.tbars { display: grid; gap: 10px; }
.tbar {
  display: grid;
  grid-template-columns: 64px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.tbar__track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .26); overflow: visible; }
.tbar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #fff;
  transform-origin: left;
  animation: grow .9s cubic-bezier(.2, .7, .2, 1) both .25s;
}
/* 大样本均值刻度线（left 由 report.js 按常模注入） */
.tbar__cut {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .75);
}
.tbar b { text-align: right; font-variant-numeric: tabular-nums; }
.tcard__scale { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .75); }

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- 报告：内容区块 ---------- */
.block {
  margin-bottom: 14px;
  padding: 22px 20px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-card);
  box-shadow: 0 2px 10px rgba(107, 63, 99, .04);
}
.block__kicker { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--lp-primary); }
.block__title { margin-bottom: 16px; font-size: 20px; line-height: 1.4; font-weight: 700; }
/* 正文段落用 :where 压低优先级，避免盖掉 kicker、note 等带类名的 <p> */
:where(.block) p { margin-bottom: 12px; font-size: 15.5px; color: var(--lp-body); }
:where(.block) p:last-child { margin-bottom: 0; }
.block h3 { font-size: 16px; font-weight: 700; }

.scenes, .pairs, .weeks { margin: 0; padding: 0; list-style: none; }
.dims { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--lp-line); }

.block__sub { margin: -8px 0 16px; font-size: 13.5px; color: var(--lp-faint); }

.note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbf4f0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--lp-muted);
}

/* 核心特质 */
.traits { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 9px; }
.traits li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--lp-body); }
.traits svg { flex: none; margin-top: 4px; color: #3fa98c; }

/* 最像你的表现 */
.evidence { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.evidence li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fdf5f1;
  font-size: 15px;
  font-weight: 600;
}
.evidence em {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.evidence + .note { margin-top: 12px; }

/* 依恋地图 */
.map {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(to right, transparent calc(50% - .5px), #fff calc(50% - .5px), #fff calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), #fff calc(50% - .5px), #fff calc(50% + .5px), transparent calc(50% + .5px));
}
.map__quad { position: absolute; width: 50%; height: 50%; padding: 12px 14px; font-size: 12.5px; font-weight: 700; color: var(--lp-faint); }
.map__quad--tl { top: 0; left: 0; background: #fdecea; }
.map__quad--tr { top: 0; right: 0; background: #f5eefb; text-align: right; }
.map__quad--bl { bottom: 0; left: 0; background: #e9f6f1; }
.map__quad--br { bottom: 0; right: 0; background: #edf1fb; text-align: right; }
.map__quad small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.map__quad.is-you { color: var(--lp-ink); }
.map__axis { position: absolute; font-size: 11px; color: var(--lp-faint); pointer-events: none; }
.map__axis--x { right: 10px; bottom: calc(50% + 6px); }
.map__axis--y { left: calc(50% + 8px); top: 8px; }
.map__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--lp-primary);
  box-shadow: 0 2px 10px rgba(232, 93, 117, .5);
  animation: dot-in .6s cubic-bezier(.2, .9, .3, 1.3) both .3s;
}
.map__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(232, 93, 117, .5);
  animation: ping 1.8s ease-out .9s infinite;
}
@keyframes dot-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ping {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(2.8); opacity: 0; }
}
/* 大样本均值位置（灰色圆点） */
.map__norm {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 2px solid rgba(43, 34, 48, .55);
  background: rgba(255, 255, 255, .6);
}
.map__caption { margin-top: 14px; font-size: 13.5px; color: var(--lp-muted); }

/* 细分倾向 */
/* 维度分大数（报告 01 板块） */
.dimrow { padding: 14px 0; border-top: 1px solid var(--lp-line); }
.dimrow:first-child { padding-top: 0; border-top: 0; }
.dimrow__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.dimrow__head span { flex: 1; min-width: 0; }
.dimrow__head small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--lp-faint);
}
.dimrow__score {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dimrow__score i {
  margin-left: 2px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-faint);
}

.facet { padding: 14px 0; border-top: 1px solid var(--lp-line); }
.facet:first-child { padding-top: 0; border-top: 0; }
.facet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; }
.facet__head small { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--lp-faint); }
.lp-bar {
  position: relative;
  height: 8px;
  margin: 10px 0 0;
  border-radius: 999px;
  background: #f4eae5;
}
.lp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5a0ae, var(--lp-primary));
  transform-origin: left;
  animation: grow .8s cubic-bezier(.2, .7, .2, 1) both;
}
.lp-bar[data-dim="avoidance"] i { background: linear-gradient(90deg, #9db3f2, #5568c8); }
.lp-bar::after {
  content: '';
  position: absolute;
  left: calc(50% - 1px);
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 2px;
  background: rgba(43, 34, 48, .3);
}
/* 大样本均值标记（深色虚线，left 由 report.js 按常模注入） */
.lp-bar__norm {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 0;
  border-left: 2px dashed rgba(43, 34, 48, .55);
}
.facet p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.7; }
.lv { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lv--high { color: #c23b58; background: #fde7eb; }
.lv--mid { color: #9a6f24; background: #fdf3dc; }
.lv--low { color: #1f7f6e; background: #e3f5ef; }
.bar-legend { margin-top: 12px; font-size: 12.5px; color: var(--lp-faint); }
.bar-legend + .note, .note + .note { margin-top: 12px; }

/* 典型场景 */
.scene { padding: 16px 0; border-top: 1px solid var(--lp-line); }
.scene:first-child { padding-top: 0; border-top: 0; }
.scene__title { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.scene__title .no { flex: none; font-size: 13px; font-weight: 800; color: #c59a45; font-variant-numeric: tabular-nums; }
.scene__row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin-bottom: 8px; }
.scene__row b { padding-top: 2px; font-size: 13px; color: #b8862b; }
.scene__row p { margin: 0; font-size: 14.5px; line-height: 1.7; }

/* 相处指南 */
.pair { padding: 16px 0; border-top: 1px solid var(--lp-line); }
.pair:first-child { padding-top: 0; border-top: 0; }
.pair__title { font-size: 16px; font-weight: 700; }
.pair__names { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: #b8862b; letter-spacing: .04em; }
.pair p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; }

/* 21 天练习 */
.week { padding: 16px 0; border-top: 1px solid var(--lp-line); }
.week:first-child { padding-top: 0; border-top: 0; }
.week h3 { font-size: 16px; }
.week h3 span { margin-right: 10px; font-size: 13px; color: #b8862b; }
.week ul { display: grid; gap: 8px; padding: 10px 0 0; list-style: none; }
.week li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.7; color: var(--lp-body); }
.week li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-gold); }

/* 沟通话术 */
.script { padding: 16px 0; border-top: 1px solid var(--lp-line); }
.script:first-child { padding-top: 0; border-top: 0; }
.script h3 { font-size: 16px; }
.script blockquote {
  margin: 10px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--lp-gold);
  border-radius: 0 12px 12px 0;
  background: #fff7e6;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.7;
}
.script p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--lp-muted); }

.report-foot { padding: 8px 12px 0; text-align: center; }
.report-foot p { margin-bottom: 12px; font-size: 12.5px; line-height: 1.7; color: var(--lp-faint); }

/* 「写在最后」AI 段落:加载占位呼吸动画,完成后恢复常态 */
.closing__ai { min-height: 4.6em; }
.closing__ai:not(.is-done) {
  color: var(--lp-faint);
  animation: closing-pulse 1.6s ease-in-out infinite;
}
.closing__ai.is-done { min-height: 0; animation: none; }
@keyframes closing-pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: .95; }
}

/* AI 替换深度解读段落时的淡入 */
.deep-updated { animation: deep-fade .6s ease both; }
@keyframes deep-fade {
  from { opacity: .3; }
  to { opacity: 1; }
}
/* 深度解读等待 AI 生成期间:整体呼吸闪烁,替换后移除 */
.deep-pending { animation: closing-pulse 1.8s ease-in-out infinite; }

/* 方法论板块 */
.block h3.method-h,
:where(.block) h3 { margin-top: 18px; }
:where(.block) h3:first-of-type { margin-top: 0; }
.refs {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lp-faint);
}

/* ---------- 弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__mask { position: absolute; inset: 0; background: rgba(43, 34, 48, .52); animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: min(100%, 340px);
  padding: 30px 24px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  animation: pop-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.modal__panel--card { width: min(100%, 330px); padding: 14px 14px 18px; }
.modal__panel--card img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.modal__hint { margin: 14px 0 12px; font-size: 13.5px; color: var(--lp-muted); }

/* ---------- 轻提示 ---------- */
.lp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(32px + var(--lp-safe-bottom));
  z-index: 80;
  max-width: 86vw;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(43, 34, 48, .92);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
  animation: fade .2s ease both;
}
.lp-toast[hidden] { display: none; }
