/* ============================================================
   动效组件样式（原生实现，参数按 component-prompts-v2-final.md）
   ============================================================ */

/* ---------------- 1. MorphPillCard ---------------- */
.mp {
  position: relative;
  margin: 0 24px 14px;
}
.mp-ghost {
  visibility: hidden;
  pointer-events: none;
}
.mp-surface {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  overflow: hidden;
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 14px 30px -20px rgba(120, 62, 32, 0.5);
  will-change: width, height;
}
.mp-surface.is-expanding {
  box-shadow: 0 20px 44px -26px rgba(120, 62, 32, 0.55);
}
.mp-surface.is-open {
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}
.mp-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0a35e, #e2653c);
}
.mp-pill-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.mp-pill-adapt {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.mp-body {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
}
.mp-surface.is-open .mp-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.mp-surface.is-expanding .mp-body {
  opacity: 1;
}
.mp-surface.is-open .mp-body {
  position: static;
  transform: none;
  opacity: 1;
  width: auto !important;
}
.mp-card {
  padding: 22px 20px 18px;
  text-align: center;
}
.mp-seg {
  opacity: 0;
  transform: translateY(10px);
}
.mp.is-revealing .mp-seg {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mp.is-revealing .mp-seg1 {
  transition-delay: 0s;
}
.mp.is-revealing .mp-seg2 {
  transition-delay: 0.09s;
}
.mp.is-revealing .mp-seg3 {
  transition-delay: 0.18s;
}
.mp-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}
.mp-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mp-ring-track {
  fill: none;
  stroke: rgba(59, 42, 34, 0.08);
  stroke-width: 7;
}
.mp-ring-val {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
}
.mp-ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 27px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mp-ring b i {
  font-style: normal;
  font-size: 12px;
  color: var(--brand-ink);
}
.mp-ring span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-3);
}
.mp-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
  font-weight: 600;
}
.mp-line {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.mp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.mp-chips span {
  font-size: 11.5px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 99px;
  padding: 5px 11px;
}
.mp-cta {
  font-size: 13px;
  color: var(--brand-ink);
  font-weight: 600;
  padding: 8px 0;
}
@supports not (transform: translateX(-50%)) {
  .mp-surface {
    left: 0;
    transform: none;
    width: 100%;
  }
}

/* ---------------- 2. StepPathRitual ---------------- */
#screen-ritual {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  overflow: hidden;
}
#screen-ritual.is-active {
  display: flex;
}
.sp-skip {
  position: absolute;
  top: 62px;
  right: 24px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}
.sp-stage {
  width: min(300px, 74vw);
}
.sp-svg {
  width: 100%;
  height: auto;
  display: block;
}
.sp-track {
  fill: none;
  stroke: #e8d9c9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
}
.sp-path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.sp-node {
  fill: #fff;
  stroke: #ddc9b8;
  stroke-width: 2;
  transition: fill 0.35s ease, stroke 0.35s ease;
}
.sp-node.on {
  fill: var(--brand);
  stroke: var(--brand);
  filter: drop-shadow(0 3px 8px rgba(226, 101, 60, 0.45));
}
.sp-lines {
  margin-top: 26px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.sp-line {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  margin: 0;
}
.sp-line.on {
  opacity: 1;
  transform: none;
  color: var(--ink);
}
.sp-enter {
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0954f, #e2653c);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------------- 3. GlassTabs ---------------- */
.gt {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 46px;
  background: linear-gradient(180deg, #fdf6ee 0%, #fdf6ee 92%, rgba(253, 246, 238, 0.86) 100%);
}
.gt-bar {
  position: relative;
  display: block;
  padding: 6px 16px 10px;
}
.gt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.gt-back {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px -14px rgba(80, 50, 30, 0.8);
}
.gt-back:active {
  background: #fff;
}
.gt-tabs {
  display: flex;
  gap: 2px;
}
.gt-lens {
  position: absolute;
  left: 0;
  top: 6px;
  height: 38px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px -10px rgba(120, 62, 32, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.3s ease;
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gt-lens {
    background: #fff;
  }
}
.gt-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 44px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s ease;}
.gt-tab[aria-current='true'] {
  color: var(--ink);
  font-weight: 600;
}
.rp-sec {
  scroll-margin-top: 112px;
  padding: 0 24px;
}
.rp-sec:last-child {
  padding-bottom: 40px;
}

/* ---------------- 4. StepAccordion ---------------- */
.sa-item {
  border-bottom: 1px solid var(--line-2);
}
.sa-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
}
.sa-no {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--brand-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.sa-name {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.sa-brief {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-score {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.sa-panel {
  height: 0;
  overflow: hidden;
}
.sa-inner {
  padding: 2px 0 16px;
}
.sa-body {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.sa-evi {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-3);
  border-left: 2px solid rgba(226, 101, 60, 0.3);
  padding-left: 10px;
  margin-bottom: 6px;
}
.sa-need {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream-2);
  border-radius: 10px;
  padding: 9px 11px;
  margin: 10px 0 0;
}
@media (max-width: 340px) {
  .sa-brief {
    display: none;
  }
}

/* ---------------- 5. ReceiptCard ---------------- */
#shareRoot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.rc {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 24px 0;
}
.rc-slot {
  width: 300px;
  max-width: 100%;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ecdccb, #d9c5b2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px -10px rgba(90, 60, 30, 0.7);
  margin-bottom: 8px;
}
.rc-paper {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 0;
  overflow: hidden;
  background: #fffdf8;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 18px 34px -24px rgba(90, 60, 30, 0.7);
  transition: height 0.12s linear;
}
.rc-paper.wobble {
  animation: rc-wobble 0.14s steps(2, end) 1;
}
@keyframes rc-wobble {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(0);
  }
}
.rc-inner {
  padding: 20px 18px 4px;
  background: #fffdf8;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(120, 90, 60, 0.02) 0 1px, transparent 1px 3px);
  font-family: var(--sans);
}
.rc-head {
  text-align: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: #9a8577;
}
.rc-dash {
  height: 1px;
  margin: 12px 0;
  background-image: repeating-linear-gradient(90deg, rgba(90, 70, 55, 0.35) 0 4px, transparent 4px 9px);
}
.rc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 12px;
  color: #9a8577;
}
.rc-row b {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 2px;
}
.rc-tags span {
  font-size: 10.5px;
  color: var(--brand-ink);
  border: 1px solid rgba(226, 101, 60, 0.35);
  border-radius: 99px;
  padding: 2px 9px;
}
.rc-label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #b0a094;
  margin-bottom: 4px;
}
.rc-combo {
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.rc-quote {
  font-size: 12px;
  line-height: 1.75;
  color: #5a463b;
}
.rc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9.5px;
  color: #b0a094;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-top: 2px;
}
.rc-tear {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 8px;
  margin-top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0 L6 8 L12 0 Z' fill='%23FFFDF8'/%3E%3C/svg%3E")
    repeat-x 0 0 / 12px 8px;
}
.rc-viewer {
  margin-top: 16px;
  text-align: center;
}
.rc-viewer img {
  width: 260px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 14px 30px -20px rgba(90, 60, 30, 0.7);
}
.rc-viewer p {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
}
.rc-actions {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.rc-actions .btn {
  width: 240px;
  height: 48px;
  border-radius: 14px;
  font-size: 14px;
}
.rc-err {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--warn);
}
.rc-err button {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* 报告页容器：整页滚动，sticky 才能正常工作 */
#screen-report.is-active,#screen-duo.is-active,#screen-share.is-active,#screen-home.is-active,#screen-duo-quiz.is-active{display:block}
.rp{padding-top:58px}
.rp-hero{padding:0}


/* ---------------- 深度模块 ---------------- */
.tension .tension-lead{font-size:13px;line-height:1.95;color:var(--ink);font-weight:500;margin:12px 0 10px}
.tension p{font-size:12.5px;line-height:1.95;color:var(--ink-2);margin-bottom:10px}
.tension p:last-child{margin-bottom:0}

.traps{margin-top:16px;padding-top:14px;border-top:1px dashed var(--line-2)}
.traps-h{font-size:11px;letter-spacing:2px;color:var(--warn);margin-bottom:8px}
.traps p{font-size:12px;line-height:1.85;color:var(--ink-2);margin-bottom:6px}
.traps p::before{content:"⚠ ";color:var(--brand-2)}

.script{padding:14px 0;border-top:1px dashed var(--line-2)}
.script:first-of-type{border-top:0;padding-top:8px}
.script-title{font-size:12.5px;font-weight:600;color:var(--ink);margin-bottom:10px}
.script-lines{display:flex;flex-direction:column;gap:7px}
.script-line{display:flex;gap:8px;font-size:12.5px;line-height:1.7}
.script-line .who{flex:0 0 auto;color:var(--ink-3);font-size:11px;padding-top:2px;min-width:20px}
.script-line.me{color:var(--ink)}
.script-line.them{color:var(--ink-2)}
.script-line.narr{color:var(--ink-3);font-size:11.5px;font-style:normal}
.script-line.narr .who{visibility:hidden}
.script-note{margin:10px 0 0;font-size:11.5px;line-height:1.85;color:var(--brand-ink);background:var(--cream-2);border-radius:10px;padding:9px 11px}

.zodiac{padding:14px 16px}
.zodiac-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:13px;color:var(--ink-2)}
.zodiac-toggle i{font-style:normal;color:var(--ink-3);transition:transform .2s}
.zodiac-body{margin-top:12px}
.zodiac-label{font-size:12px;letter-spacing:1px;color:var(--brand-ink);margin-bottom:8px}
.zodiac-body p{font-size:12.5px;line-height:1.9;color:var(--ink-2);margin-bottom:8px}
.zodiac-note{font-size:10.5px;color:var(--ink-3);border-top:1px dashed var(--line-2);padding-top:8px}