:root {
  --ink: #382419;
  --wine: #7b2821;
  --red: #a54332;
  --gold: #d7a150;
  --cream: #fbf4e8;
  --paper: #fffaf1;
  --jade: #405d4b;
  --line: #d9b881;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: #562118;
}
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  background: #eee3d3;
}
button {
  font: inherit;
}
button:focus-visible {
  outline: 3px solid #d39837;
  outline-offset: 3px;
}
.shell {
  min-height: 100svh;
}
.hidden {
  display: none !important;
}
.view {
  min-height: 100svh;
}
.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(65, 17, 12, 0.26),
      rgba(81, 22, 16, 0.05) 37%,
      rgba(81, 22, 16, 0.05) 63%,
      rgba(65, 17, 12, 0.26)
    ),
    url("hero-palace.webp") center/cover no-repeat;
}
.intro:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 12, 10, 0.04),
    rgba(48, 11, 7, 0.52)
  );
}
.home-figures {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.home-figure {
  position: absolute;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 20px 16px rgba(32, 5, 4, 0.5)) saturate(0.96);
  user-select: none;
}
.figure-left {
  transform-origin: bottom left;
}
.figure-right {
  transform-origin: bottom right;
}
.figure-emperor {
  left: clamp(5%, 10vw, 184px);
  bottom: -1%;
  height: clamp(350px, 42vw, 670px);
}
.figure-anlingrong {
  left: clamp(16%, 20vw, 360px);
  bottom: 5%;
  height: clamp(195px, 23vw, 355px);
  opacity: 0.94;
}
.figure-shenmeizhuang {
  left: clamp(25%, 29vw, 500px);
  bottom: -4%;
  height: clamp(145px, 17vw, 265px);
  opacity: 0.76;
}
.figure-young-zhenhuan {
  left: clamp(15%, 20vw, 360px);
  top: 6%;
  height: clamp(140px, 17vw, 255px);
  opacity: 0.8;
}
.figure-yixiu {
  right: clamp(5%, 10vw, 184px);
  top: -1%;
  height: clamp(350px, 42vw, 670px);
}
.figure-zhenhuan {
  right: clamp(16%, 20vw, 360px);
  bottom: 3%;
  height: clamp(195px, 23vw, 355px);
  opacity: 0.96;
}
.figure-nian {
  right: clamp(25%, 29vw, 500px);
  bottom: -4%;
  height: clamp(145px, 17vw, 265px);
  opacity: 0.8;
}
.figure-yelanyi {
  right: clamp(15%, 20vw, 360px);
  top: 7%;
  height: clamp(140px, 17vw, 255px);
  opacity: 0.82;
}
.intro-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(620px, calc(100% - 36px));
  padding: 66px 44px 55px;
  text-align: center;
  color: #fff5e5;
  text-shadow: 0 2px 10px #321008;
}
.intro-content:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(244, 197, 114, 0.72);
  background:
    linear-gradient(135deg, rgba(109, 27, 20, 0.76), rgba(58, 10, 8, 0.82)),
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 206, 111, 0.16),
      transparent 48%
    );
  box-shadow:
    0 0 0 7px rgba(93, 19, 14, 0.42),
    0 26px 68px rgba(29, 4, 3, 0.55),
    inset 0 0 44px rgba(255, 213, 143, 0.1);
}
.intro-content:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px;
  border: 1px solid rgba(248, 212, 146, 0.26);
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 25px;
  color: #ffd98c;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.brand i {
  width: 24px;
  height: 1px;
  background: #e5bd70;
}
.brand b {
  font-family: "Songti SC", serif;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  border: 3px solid #e6ba72;
  background: linear-gradient(135deg, #ae442d, #72251d);
  box-shadow: 0 8px 22px #280a06cc;
  color: #fff2db;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 3px;
  transform: rotate(-3deg);
}
.eyebrow {
  width: fit-content;
  margin: 0 auto 17px;
  padding: 8px 22px;
  border-top: 1px solid rgba(238, 191, 106, 0.68);
  border-bottom: 1px solid rgba(238, 191, 106, 0.68);
  color: #f2d396;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.intro h1 {
  margin: 0;
  font-family: "STKaiti", "Kaiti SC", "Songti SC", serif;
  font-size: clamp(40px, 5.6vw, 67px);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: 0.08em;
}
.intro h1 span,
.intro h1 em {
  display: block;
}
.intro h1 span {
  color: #fff2d9;
}
.intro h1 em {
  margin-top: 4px;
  color: #f5bf55;
  font-style: normal;
  text-shadow: 0 3px 18px rgba(74, 8, 6, 0.94);
}
.lead {
  max-width: 550px;
  margin: 23px auto 25px;
  color: #ffecd0;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
  text-align-last: center;
}
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 25px auto 30px;
}
.stats span {
  display: grid;
  gap: 1px;
  min-width: 94px;
}
.stats b {
  color: #ffcb6d;
  font-size: 30px;
}
.stats small {
  color: #f5e2ba;
  font-size: 11px;
}
.stats > i {
  height: 31px;
  width: 1px;
  background: linear-gradient(transparent, #dab064, transparent);
}
.btn {
  border: 0;
  border-radius: 3px;
  padding: 14px 25px;
  min-width: 156px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    transform 0.2s,
    filter 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.primary {
  color: #fff9eb;
  background: linear-gradient(100deg, #b64f35, #8a2921);
  box-shadow: 0 12px 25px #320b08a8;
}
.primary span {
  padding-left: 7px;
  font-size: 18px;
}
.ghost {
  border: 1px solid rgba(132, 78, 42, 0.55);
  background: #fffaf0;
  color: #6f3c25;
}
.fine {
  margin: 19px 0 0;
  color: #edd9b7;
  font-size: 11px;
}
.petals {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.petals i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 10px 2px 10px 2px;
  background: #f4b0a7;
  opacity: 0.7;
  animation: petal 10s linear infinite;
}
.petals i:nth-child(1) {
  left: 16%;
  top: -2%;
  animation-delay: -1s;
}
.petals i:nth-child(2) {
  left: 31%;
  top: 10%;
  animation-delay: -4s;
  transform: scale(0.6);
}
.petals i:nth-child(3) {
  left: 68%;
  top: -5%;
  animation-delay: -7s;
}
.petals i:nth-child(4) {
  left: 83%;
  top: 18%;
  animation-delay: -3s;
  transform: scale(0.7);
}
.petals i:nth-child(5) {
  left: 54%;
  top: -9%;
  animation-delay: -9s;
  transform: scale(0.45);
}
@keyframes petal {
  to {
    transform: translate3d(115px, 108vh, 0) rotate(580deg);
    opacity: 0;
  }
}
.story,
.question {
  position: relative;
  background:
    linear-gradient(rgba(66, 12, 9, 0.75), rgba(72, 15, 10, 0.82)),
    url("hero-palace.webp") center/cover fixed;
}
.result {
  position: relative;
  background:
    linear-gradient(rgba(255, 249, 237, 0.87), rgba(255, 244, 225, 0.9)),
    url("hero-palace.webp") center/cover fixed;
}
.story {
  display: grid;
  place-items: center;
  padding: 24px;
}
.story-inner {
  width: min(630px, 100%);
  padding: 48px 45px;
  border: 1px solid rgba(235, 188, 100, 0.86);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(107, 28, 20, 0.96), rgba(55, 9, 8, 0.97)),
    radial-gradient(
      circle at 30% 5%,
      rgba(255, 214, 138, 0.16),
      transparent 42%
    );
  box-shadow:
    0 0 0 6px rgba(83, 17, 11, 0.58),
    0 22px 55px rgba(38, 5, 4, 0.62);
  text-align: center;
}
.chapter {
  color: #f4c875;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.seal.small {
  width: 52px;
  height: 52px;
  margin: 20px auto 13px;
  font-size: 20px;
  letter-spacing: 0;
}
.story h2 {
  margin: 0;
  color: #fff2d9;
  font-size: 31px;
}
.story p {
  margin: 16px auto;
  max-width: 450px;
  color: #f1d4ac;
  font-size: 14px;
  line-height: 1.95;
}
.ritual-list {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 23px 0;
}
.ritual-list span {
  padding: 8px 12px;
  border: 1px solid rgba(239, 196, 117, 0.72);
  background: rgba(55, 9, 7, 0.48);
  color: #ffe5b5;
  font-size: 12px;
}
.story-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 33px;
}
.story .ghost,
.question .ghost {
  border-color: rgba(244, 201, 120, 0.7);
  background: rgba(61, 9, 7, 0.48);
  color: #ffe7b7;
}
.quiz-chrome {
  position: sticky;
  z-index: 5;
  top: 0;
  padding: 16px max(20px, calc((100vw - 800px) / 2));
  background: linear-gradient(90deg, #642217, #9f442d, #642217);
  color: #ffe8bc;
  box-shadow: 0 3px 15px #43201655;
}
.quiz-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.quiz-label b {
  font-family: ui-monospace, monospace;
}
.progress {
  height: 4px;
  background: #ffc97055;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #ffe09a;
  transition: width 0.32s ease;
}
.question {
  display: grid;
  place-items: center;
  padding: 40px 18px 70px;
}
.question-inner {
  position: relative;
  width: min(800px, 100%);
  min-height: 610px;
  padding: 43px 48px;
  border: 1px solid rgba(237, 193, 105, 0.88);
  border-radius: 5px;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 207, 113, 0.14),
      transparent 33%
    ),
    linear-gradient(145deg, rgba(111, 26, 20, 0.96), rgba(51, 7, 7, 0.97));
  box-shadow:
    0 0 0 7px rgba(83, 16, 12, 0.62),
    0 18px 55px rgba(37, 4, 3, 0.66);
  overflow: hidden;
}
.question-inner:after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -210px;
  bottom: -250px;
  border: 1px solid rgba(238, 194, 112, 0.42);
  opacity: 0.7;
  border-radius: 50%;
  pointer-events: none;
}
.question-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f4ca78;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.question-number {
  position: absolute;
  right: 50px;
  top: 62px;
  color: rgba(247, 203, 124, 0.12);
  font-size: 112px;
  font-weight: 700;
  line-height: 1;
}
.question h2 {
  position: relative;
  max-width: 625px;
  margin: 58px 0 28px;
  color: #fff1d8;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.48;
  letter-spacing: 0.035em;
}
.question-instruction {
  position: relative;
  margin: -12px 0 27px;
  color: #e8c69a;
  font-size: 13px;
  line-height: 1.7;
}
.answer-list {
  display: grid;
  gap: 12px;
  position: relative;
}
.answer {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 75px;
  padding: 13px 17px;
  border: 1px solid rgba(238, 194, 112, 0.52);
  border-radius: 3px;
  background: rgba(53, 7, 7, 0.42);
  color: #fff0d7;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s,
    border 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.answer:hover,
.answer.selected {
  border-color: #f2c15d;
  background: rgba(166, 53, 35, 0.62);
  box-shadow: 0 8px 20px rgba(33, 3, 2, 0.34);
  transform: translateX(4px);
}
.answer b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #edbd61;
  background: rgba(91, 19, 14, 0.66);
  color: #ffe0a3;
  font-family: ui-monospace, monospace;
  font-size: 14px;
}
.answer strong {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}
.answer small {
  display: block;
  margin-top: 3px;
  color: #e7c38f;
  font-size: 11px;
}
.scale-list {
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.scale-list .answer {
  display: grid;
  min-height: 104px;
  padding: 10px;
  text-align: center;
}
.scale-list .answer b {
  margin: auto;
  width: 36px;
  height: 36px;
  background: rgba(84, 16, 12, 0.7);
}
.scale-list .answer strong {
  font-size: 12px;
}
.scale-list .answer small {
  display: none;
}
.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.compact {
  padding: 10px 15px;
  min-width: auto;
  font-size: 13px;
}
.question-nav span {
  color: #e9c28f;
  font-size: 12px;
}
.result {
  min-height: 100svh;
  padding: 46px 18px 74px;
}
.result-card,
.report-section {
  width: min(760px, 100%);
  margin: 0 auto 18px;
  border: 1px solid #dbc28f;
  background: linear-gradient(145deg, #fffdf7ee, #f8e8caed);
  box-shadow: 0 16px 36px #5423182e;
}
.result-card {
  padding: 31px 25px 28px;
  text-align: center;
}
.result-card .brand {
  color: #97472f;
}
.result-kicker {
  margin: 9px 0 15px;
  color: #8d4d33;
  font-size: 14px;
  letter-spacing: 0.12em;
}
.portrait-frame {
  width: min(100%, 430px);
  margin: auto;
  padding: 8px;
  border: 1px solid #a9442e;
  background: #b95a3d;
  box-shadow: 0 13px 25px #5c221740;
}
.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.result-card h1 {
  margin: 17px 0 4px;
  font-size: 45px;
  letter-spacing: 0.13em;
}
.result-archetype {
  margin: 0;
  color: #a34d32;
  font-size: 15px;
  letter-spacing: 0.1em;
}
.tags {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.tags span {
  padding: 5px 10px;
  border: 1px solid #d2ab6a;
  border-radius: 15px;
  color: #8b4b30;
  font-size: 12px;
}
.character-brief {
  max-width: 530px;
  margin: 16px auto;
  color: #765844;
  font-size: 14px;
  line-height: 1.85;
  text-align: justify;
}
.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 21px 0 17px;
  color: #915039;
}
.result-score span,
.result-score small {
  font-size: 12px;
}
.result-score b {
  color: #a9432e;
  font-size: 48px;
}
.result-score small {
  color: #94735a;
}
.result-card blockquote {
  max-width: 510px;
  margin: 0 auto;
  padding: 13px 17px;
  border-top: 1px solid #d9bb83;
  border-bottom: 1px solid #d9bb83;
  color: #5f3927;
  font-size: 17px;
  line-height: 1.7;
}
.result-heartline {
  max-width: 550px;
  margin: 17px auto 0;
  color: #7b513a;
  font-size: 13px;
  line-height: 1.8;
}
.report-section {
  padding: 28px;
}
.report-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  font-size: 24px;
}
.report-section h2 span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid #ad4d32;
  color: #a0472e;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.report-section > p {
  margin: 0;
  color: #6d503c;
  font-size: 15px;
  line-height: 1.9;
}
.quality-row {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.quality-row span {
  padding: 10px 12px;
  border-left: 3px solid #b44b32;
  background: #f8ebd5;
  color: #795840;
  font-size: 12px;
}
.quality-row b {
  color: #a6422d;
  font-size: 18px;
}
.dimension-grid {
  display: grid;
  gap: 13px;
}
.dim-row {
  display: grid;
  grid-template-columns: 64px 1fr 39px;
  align-items: center;
  gap: 10px;
  color: #6d4e39;
  font-size: 13px;
}
.dim-row i {
  display: block;
  height: 9px;
  background: linear-gradient(90deg, #b44731, #d9a954);
  transition: width 0.8s ease;
}
.dim-row .bar {
  overflow: hidden;
  height: 9px;
  background: #e8d4af;
}
.dim-row b {
  text-align: right;
  color: #9e472f;
}
.dim-row small {
  grid-column: 2/-1;
  margin-top: -7px;
  color: #a08973;
  font-size: 10px;
}
.method-note {
  margin-top: 22px !important;
  padding-top: 15px;
  border-top: 1px dashed #d6ba88;
  color: #99806c !important;
  font-size: 12px !important;
}
.common-grid {
  display: grid;
  gap: 10px;
}
.common-grid div {
  padding: 13px 15px;
  background: #fff7e9;
  border-left: 3px solid #bd603e;
}
.common-grid b {
  display: block;
  margin-bottom: 6px;
  color: #a0432d;
  font-size: 13px;
}
.common-grid p {
  margin: 0;
  color: #73543e;
  font-size: 13px;
  line-height: 1.75;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.split > div {
  padding: 16px;
  background: #fff8eb;
}
.split h3 {
  margin: 0 0 9px;
  color: #963e2b;
  font-size: 16px;
}
.split p {
  margin: 0;
  color: #72533c;
  font-size: 13px;
  line-height: 1.8;
}
.reality-theme {
  margin: -4px 0 14px !important;
  color: #9e472f !important;
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.reality-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.reality-card {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 13px;
  padding: 16px 15px;
  border: 1px solid #e1c694;
  background: linear-gradient(100deg, #fff9ec, #f8ebd1);
}
.reality-card > span {
  display: grid;
  place-items: center;
  align-self: start;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a44630;
  color: #ffedd0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.reality-card b {
  display: block;
  color: #8d3e2b;
  font-size: 15px;
}
.reality-card p {
  margin: 6px 0 0;
  color: #72533d;
  font-size: 13px;
  line-height: 1.82;
}
.reality-closing {
  margin-top: 20px !important;
  padding: 16px 18px;
  border-top: 1px solid #dec797;
  border-bottom: 1px solid #dec797;
  color: #8b593d !important;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 16px !important;
  line-height: 1.8 !important;
  text-align: center;
}
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(760px, 100%);
  margin: 25px auto 12px;
}
.share-actions #sharePosterBtn {
  grid-column: 1/-1;
}
.disclaimer {
  width: min(700px, 100%);
  margin: 14px auto 0;
  color: #806b5a;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.reveal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(#32120ddd, #4d1c14e8),
    url("hero-palace.webp") center/cover;
}
.reveal-card {
  width: min(410px, 100%);
  padding: 25px;
  border: 1px solid #e0bc78;
  background: linear-gradient(145deg, #fff7e8, #f2d9ad);
  box-shadow: 0 20px 50px #1c0807aa;
  text-align: center;
  animation: unfold 0.7s ease;
}
.reveal-card > p {
  margin: 2px 0 16px;
  color: #9c4b32;
  font-size: 13px;
  letter-spacing: 0.15em;
}
.reveal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid #9b3929;
}
.reveal-card small {
  display: block;
  margin-top: 16px;
  color: #8c563a;
}
.reveal-card h2 {
  margin: 7px 0;
  color: #572817;
  font-size: 38px;
  letter-spacing: 0.14em;
}
.reveal-card span {
  display: block;
  margin-bottom: 19px;
  color: #875a41;
  font-size: 13px;
}
.reveal-card .btn {
  width: 100%;
}
@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.poster-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #21100cd1;
  backdrop-filter: blur(8px);
}
.poster-shade {
  position: absolute;
  inset: 0;
}
.poster-card {
  position: relative;
  width: min(480px, 100%);
  padding: 20px 14px 14px;
  background: #fff8ea;
  text-align: center;
  box-shadow: 0 22px 50px #180706;
}
.poster-card > p {
  margin: 0 0 12px;
  color: #88422d;
}
.poster-card img {
  display: block;
  width: 100%;
  max-height: 67svh;
  object-fit: contain;
  background: #692419;
}
.poster-card > div {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.poster-card > div .btn {
  flex: 1;
  min-width: 0;
  padding: 12px;
}
.poster-card > small {
  display: block;
  margin-top: 10px;
  color: #8b725d;
  font-size: 11px;
}
.close {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 8px;
  border: 0;
  background: none;
  color: #7d3927;
  font-size: 29px;
  cursor: pointer;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  padding: 11px 17px;
  border-radius: 4px;
  background: #402018;
  color: #fff3da;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .figure-emperor {
    left: 3%;
    height: clamp(275px, 43vw, 420px);
  }
  .figure-yixiu {
    right: 3%;
    height: clamp(275px, 43vw, 420px);
  }
  .figure-anlingrong,
  .figure-zhenhuan {
    bottom: -2%;
    height: clamp(160px, 26vw, 250px);
  }
  .figure-shenmeizhuang,
  .figure-nian {
    display: none;
  }
  .figure-young-zhenhuan {
    left: 18%;
    top: 12%;
    height: 145px;
  }
  .figure-yelanyi {
    right: 18%;
    top: 12%;
    height: 145px;
  }
}
@media (max-width: 600px) {
  .intro {
    background-position: 58% center;
  }
  .intro:after {
    background:
      linear-gradient(
        90deg,
        rgba(59, 12, 9, 0.45),
        rgba(59, 12, 9, 0.13) 50%,
        rgba(59, 12, 9, 0.45)
      ),
      radial-gradient(
        ellipse at center,
        rgba(47, 12, 10, 0.12),
        rgba(48, 11, 7, 0.58)
      );
  }
  .home-figure {
    opacity: 0.45;
    filter: drop-shadow(0 13px 12px rgba(32, 5, 4, 0.46));
  }
  .figure-emperor {
    left: -10px;
    bottom: -2%;
    height: 310px;
  }
  .figure-yixiu {
    right: -12px;
    top: auto;
    bottom: -2%;
    height: 300px;
  }
  .figure-anlingrong,
  .figure-zhenhuan,
  .figure-shenmeizhuang,
  .figure-nian {
    display: none;
  }
  .figure-young-zhenhuan {
    left: 12%;
    top: 5%;
    height: 116px;
  }
  .figure-yelanyi {
    right: 12%;
    top: 5%;
    height: 116px;
  }
  .intro-content {
    width: min(100% - 28px, 470px);
    padding: 46px 23px 38px;
  }
  .intro h1 {
    font-size: 37px;
    letter-spacing: 0.055em;
  }
  .intro-content:before {
    box-shadow:
      0 0 0 4px rgba(93, 19, 14, 0.42),
      0 20px 40px rgba(29, 4, 3, 0.52),
      inset 0 0 32px rgba(255, 213, 143, 0.09);
  }
  .eyebrow {
    padding: 7px 11px;
    font-size: 11px;
  }
  .lead {
    text-align: left;
    font-size: 14px;
  }
  .stats {
    gap: 8px;
  }
  .stats span {
    min-width: 82px;
  }
  .stats b {
    font-size: 26px;
  }
  .story {
    padding: 13px;
  }
  .story-inner {
    padding: 36px 21px;
  }
  .story h2 {
    font-size: 27px;
  }
  .question {
    padding: 26px 12px 45px;
  }
  .question-inner {
    min-height: auto;
    padding: 31px 20px 25px;
  }
  .question-number {
    right: 16px;
    top: 48px;
    font-size: 90px;
  }
  .question h2 {
    margin-top: 47px;
    font-size: 27px;
  }
  .question-instruction {
    margin: -9px 0 22px;
    font-size: 12px;
  }
  .answer {
    min-height: 68px;
    padding: 11px;
  }
  .answer strong {
    font-size: 14px;
  }
  .scale-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .scale-list .answer {
    min-height: 92px;
    padding: 7px;
  }
  .scale-list .answer strong {
    font-size: 10px;
    line-height: 1.35;
  }
  .scale-list .answer b {
    width: 31px;
    height: 31px;
  }
  .question-nav {
    margin-top: 20px;
  }
  .question-nav span {
    font-size: 10px;
  }
  .result {
    padding: 24px 11px 50px;
  }
  .result-card,
  .report-section {
    padding: 23px 16px;
  }
  .result-card h1 {
    font-size: 38px;
  }
  .portrait-frame {
    max-width: 370px;
  }
  .report-section h2 {
    font-size: 21px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .dim-row {
    grid-template-columns: 52px 1fr 31px;
    gap: 7px;
  }
  .share-actions {
    grid-template-columns: 1fr;
  }
  .stats small {
    font-size: 10px;
  }
  .reality-theme {
    font-size: 16px !important;
  }
  .reality-card {
    padding: 14px 12px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .petals i {
    animation: none;
  }
}

/* 首页主视觉：九位人物组成一张横向宫廷群像，避免在不同屏幕上散落。 */
.intro {
  place-items: start center;
  padding-top: clamp(48px, 7.5vh, 104px);
}
.home-figures {
  overflow: hidden;
}
.hero-ensemble {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -1px;
  display: block;
  width: min(1210px, 116vw);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 20px 18px rgba(32, 5, 4, 0.48)) saturate(0.98);
  pointer-events: none;
  transform: translateX(-50%);
  user-select: none;
}
.intro-content {
  width: min(760px, calc(100% - 34px));
  z-index: 3;
  padding: 22px 30px 26px;
  background: radial-gradient(ellipse at center, rgba(72, 15, 11, 0.9), rgba(72, 15, 11, 0.56) 52%, transparent 76%);
  box-shadow: none;
}
.intro-content:before,
.intro-content:after {
  display: none;
}
.intro h1 {
  font-size: clamp(50px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: 0.1em;
}
.intro h1 span {
  margin-bottom: 5px;
  color: #fff4df;
  font-size: 0.48em;
  letter-spacing: 0.28em;
}
.intro h1 em {
  margin: 0;
  color: #f5c65e;
  text-shadow: 0 4px 22px rgba(47, 5, 3, 0.92);
}
.intro #startBtn {
  position: relative;
  z-index: 2;
  min-width: 222px;
  margin-top: 25px;
  padding: 15px 29px;
  border: 1px solid rgba(255, 219, 145, 0.5);
  font-size: 17px;
}
.home-kicker {
  margin: 0 0 11px;
  color: #f8d99a;
  font-size: 13px;
  letter-spacing: 0.17em;
}
.home-promise {
  max-width: 620px;
  margin: 18px auto 13px;
  color: #fff0d8;
  font-size: 15px;
  line-height: 1.82;
  text-align: center;
  text-shadow: 0 2px 12px #321008;
}
.home-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f4dfba;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.home-value b {
  margin-right: 3px;
  color: #ffd078;
  font-size: 19px;
}
.home-value i {
  width: 1px;
  height: 18px;
  background: linear-gradient(transparent, #d6ab62, transparent);
}
.home-deliver {
  margin: 13px 0 0;
  color: #edd8b1;
  font-size: 11px;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .intro {
    padding-top: clamp(42px, 8vh, 78px);
  }
  .hero-ensemble {
    width: min(1180px, 142vw);
  }
  .intro-content {
    width: min(680px, calc(100% - 28px));
  }
  .home-kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .home-promise {
    max-width: 340px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.62;
  }
  .home-value {
    gap: 7px;
    font-size: 10px;
  }
  .home-value b {
    font-size: 15px;
  }
  .home-value i {
    height: 14px;
  }
  .home-deliver {
    margin-top: 10px;
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .intro {
    padding-top: 58px;
    background-position: 56% center;
  }
  .intro-content {
    width: calc(100% - 22px);
    padding: 18px 12px 24px;
    background: radial-gradient(ellipse at center, rgba(72, 15, 11, 0.86), rgba(72, 15, 11, 0.36) 63%, transparent 78%);
  }
  .intro h1 {
    font-size: clamp(40px, 11.5vw, 56px);
    letter-spacing: 0.055em;
  }
  .intro h1 span {
    margin-bottom: 4px;
    font-size: 0.52em;
    letter-spacing: 0.21em;
  }
  .intro #startBtn {
    min-width: 190px;
    margin-top: 20px;
    padding: 13px 23px;
    font-size: 16px;
  }
  .hero-ensemble {
    width: 196vw;
    bottom: 0;
    filter: drop-shadow(0 12px 12px rgba(32, 5, 4, 0.43)) saturate(0.98);
  }
}

/* 付费测试链接的临时体验码提示。 */
body[data-view="access"]{display:grid;min-height:100svh;place-items:center;background:radial-gradient(circle at 50% 10%,rgba(181,105,51,.25),transparent 28%),linear-gradient(145deg,#2c0908,#651c12 55%,#1b0708);color:#fff0d5}
body[data-view="access"]:before{opacity:.16}
.zhenhuan-access{position:relative;width:min(100% - 32px,510px);padding:20px;z-index:1}
.zhenhuan-access__card{padding:48px 38px 40px;border:1px solid rgba(246,199,117,.55);background:linear-gradient(145deg,rgba(92,20,15,.96),rgba(42,8,9,.96));box-shadow:0 30px 80px rgba(0,0,0,.42);text-align:center}
.zhenhuan-access__card>p{margin:0;color:#ffd688;font-size:12px;font-weight:700;letter-spacing:.2em}.zhenhuan-access__card>span{display:grid;width:57px;height:57px;margin:22px auto 15px;place-items:center;border:1px solid #f2c26e;background:#821d1a;color:#ffe7b3;font-family:"Kaiti SC","STKaiti",serif;font-size:17px;font-weight:800;line-height:1.05}.zhenhuan-access__card h1{margin:0;font-family:"Kaiti SC","STKaiti",serif;font-size:30px;letter-spacing:.08em}.zhenhuan-access__card div{display:grid;gap:8px;margin-top:22px;padding:16px;border:1px solid rgba(246,199,117,.25);background:rgba(255,218,145,.09);color:#f4e0c3;text-align:left}.zhenhuan-access__card b{font-size:14px;line-height:1.7}.zhenhuan-access__card small{color:#e3bc9d;font-size:12px;line-height:1.7}.zhenhuan-access__card code{color:#ffd576}.zhenhuan-access__card a{display:inline-block;margin-top:25px;color:#ffcf78;font-size:13px;text-decoration:none}.zhenhuan-access__card a:hover{text-decoration:underline}
@media(max-width:520px){.zhenhuan-access__card{padding:42px 23px 34px}.zhenhuan-access__card h1{font-size:26px}}
