:root {
  --bg: #0f0e1d;
  --bg-deep: #090912;
  --paper: rgba(28, 26, 49, 0.78);
  --paper-solid: #19172b;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.23);
  --text: #f6f0e7;
  --muted: #aaa4b8;
  --gold: #d9b978;
  --gold-light: #f2dca6;
  --violet: #8d7aed;
  --fire: #ed795e;
  --tide: #70b8c9;
  --moon: #a890eb;
  --rock: #c1a36c;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(113, 90, 190, 0.28), transparent 40%),
    linear-gradient(180deg, #111021 0%, var(--bg) 46%, var(--bg-deep) 100%);
  font-family:
    "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 15%;
  left: -220px;
  background: #6947d5;
}

.ambient-two {
  right: -200px;
  bottom: 12%;
  background: #bd7e56;
}

.noise {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(217, 185, 120, 0.4);
  border-radius: 50%;
}

.app-shell {
  width: min(980px, calc(100% - 40px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
}

.view {
  display: none;
  animation: view-in 0.55s ease both;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-view {
  padding: 76px 0 58px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow.centered {
  justify-content: center;
}

.intro-view h1,
.result-hero h1 {
  margin: 23px auto 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.04em;
}

.intro-copy {
  max-width: 610px;
  margin: 24px auto 0;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

.energy-orbit {
  position: relative;
  width: min(590px, 84vw);
  height: 280px;
  margin: 52px auto 38px;
}

.orbit-line {
  position: absolute;
  inset: 20px 70px;
  border: 1px solid rgba(217, 185, 120, 0.19);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.orbit-line::after {
  position: absolute;
  inset: 28px -30px;
  border: 1px dashed rgba(141, 122, 237, 0.15);
  border-radius: 50%;
  content: "";
  transform: rotate(15deg);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 185, 120, 0.15), rgba(17, 16, 33, 0.75));
  box-shadow: 0 0 50px rgba(217, 185, 120, 0.11);
  transform: translate(-50%, -50%);
}

.orbit-core span {
  color: var(--gold-light);
  font-size: 25px;
  animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
  50% {
    opacity: 0.5;
    transform: scale(0.78) rotate(45deg);
  }
}

.energy-node {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 118px;
  flex-direction: column;
  align-items: center;
  font-family: "Microsoft YaHei", sans-serif;
}

.energy-node.fire {
  top: 0;
  left: 4%;
}

.energy-node.tide {
  top: 8px;
  right: 3%;
}

.energy-node.moon {
  bottom: 0;
  left: 17%;
}

.energy-node.rock {
  right: 16%;
  bottom: 4px;
}

.energy-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(22, 20, 39, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.23);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.fire .energy-icon {
  color: var(--fire);
}

.tide .energy-icon {
  color: var(--tide);
}

.moon .energy-icon {
  color: var(--moon);
}

.rock .energy-icon {
  color: var(--rock);
}

.energy-node strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.energy-node small {
  margin-top: 5px;
  color: #817b91;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.intro-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.primary-button,
.ghost-button,
.resume-button,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  min-width: 210px;
  min-height: 54px;
  gap: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  color: #16131b;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), #c9a963);
  box-shadow: 0 14px 40px rgba(217, 185, 120, 0.18);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button:hover {
  box-shadow: 0 17px 48px rgba(217, 185, 120, 0.26);
  transform: translateY(-2px);
}

.primary-button.compact {
  min-width: 150px;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-button,
.resume-button {
  min-height: 46px;
  padding: 0 20px;
  color: #d4cfe0;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.resume-button {
  min-height: 54px;
}

.intro-meta {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 28px;
  color: #878091;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.intro-meta span {
  padding: 0 15px;
  border-right: 1px solid var(--line);
}

.intro-meta span:last-child {
  border-right: 0;
}

.micro-disclaimer {
  max-width: 560px;
  margin: 35px auto 0;
  color: #635e6e;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.7;
}

.quiz-view {
  padding: 50px 0 80px;
}

.quiz-topline {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 22px;
  align-items: end;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #a8a1b5;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  font-family: sans-serif;
  font-size: 21px;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.25;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #858092;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.progress-copy strong {
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 500;
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 3.333%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--gold-light));
  box-shadow: 0 0 14px rgba(217, 185, 120, 0.4);
  transition: width 0.45s ease;
}

.question-card {
  width: min(760px, 100%);
  min-height: 545px;
  margin: 56px auto 0;
  padding: 52px 58px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.question-kicker {
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
}

.question-card h2 {
  max-width: 630px;
  min-height: 86px;
  margin: 18px auto 30px;
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.answer-list {
  display: grid;
  gap: 11px;
}

.answer-option {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 34px 1fr 22px;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  color: #d8d3df;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.answer-option:hover {
  border-color: rgba(217, 185, 120, 0.42);
  background: rgba(217, 185, 120, 0.055);
  transform: translateX(3px);
}

.answer-option.selected {
  border-color: var(--gold);
  background: rgba(217, 185, 120, 0.11);
}

.option-letter {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #81798c;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
}

.answer-option.selected .option-letter {
  color: #17131b;
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.option-check {
  color: var(--gold-light);
  opacity: 0;
}

.answer-option.selected .option-check {
  opacity: 1;
}

.answer-tip {
  margin: 22px 0 0;
  color: #686273;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  text-align: center;
}

.question-card.swapping {
  animation: question-swap 0.32s ease;
}

@keyframes question-swap {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-view {
  min-height: 650px;
  padding-top: 170px;
  text-align: center;
}

.constellation-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 34px;
  border: 1px solid rgba(217, 185, 120, 0.17);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.constellation-loader::before,
.constellation-loader::after {
  position: absolute;
  content: "";
}

.constellation-loader::before {
  top: 50%;
  left: 15px;
  width: 88px;
  height: 1px;
  background: rgba(217, 185, 120, 0.22);
  transform: rotate(35deg);
}

.constellation-loader::after {
  top: 22px;
  left: 56px;
  width: 1px;
  height: 76px;
  background: rgba(141, 122, 237, 0.25);
  transform: rotate(22deg);
}

.constellation-loader span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 16px var(--gold);
}

.constellation-loader span:nth-child(1) {
  top: 15px;
  left: 48px;
}

.constellation-loader span:nth-child(2) {
  top: 48px;
  right: 8px;
}

.constellation-loader span:nth-child(3) {
  right: 39px;
  bottom: 8px;
}

.constellation-loader span:nth-child(4) {
  bottom: 36px;
  left: 9px;
}

.constellation-loader i {
  position: absolute;
  inset: 35px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-view h2 {
  margin: 20px 0 12px;
  font-size: 30px;
  font-weight: 500;
}

.loading-view p {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.result-view {
  padding: 65px 0 80px;
}

.result-hero {
  position: relative;
  padding: 28px 20px 54px;
  text-align: center;
}

.result-hero::before {
  position: absolute;
  z-index: -1;
  top: 100px;
  left: 50%;
  width: 420px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 122, 237, 0.13), transparent 70%);
  content: "";
  transform: translateX(-50%);
}

.result-label {
  margin: 30px 0 0;
  color: #8f8999;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.result-sigil {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  margin: 25px auto 20px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(217, 185, 120, 0.34);
  border-radius: 50%;
  background: rgba(217, 185, 120, 0.035);
  font-size: 35px;
  box-shadow:
    0 0 0 13px rgba(217, 185, 120, 0.025),
    0 0 80px rgba(141, 122, 237, 0.13);
}

.result-sigil::before,
.result-sigil::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(217, 185, 120, 0.6);
  content: "";
  transform: rotate(45deg);
}

.result-sigil::before {
  top: -7px;
}

.result-sigil::after {
  bottom: -7px;
}

.result-hero h1 {
  margin-top: 10px;
  font-size: clamp(42px, 6vw, 66px);
}

.result-share-line {
  max-width: 650px;
  margin: 16px auto 0;
  color: #f6d7ca;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}

.result-keywords {
  margin: 12px 0 0;
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.result-summary {
  max-width: 650px;
  margin: 28px auto 0;
  color: #c4becd;
  font-size: 16px;
  line-height: 2;
}

.result-code {
  display: inline-flex;
  margin-top: 25px;
  padding: 7px 13px;
  color: #777184;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.result-share-boost {
  max-width: 760px;
  margin: -18px auto 34px;
  padding: 0 20px;
  text-align: center;
}

.result-shadow-hook {
  padding: 0 0 21px;
  border-bottom: 1px solid rgba(246, 215, 202, 0.18);
}

.result-shadow-hook span {
  color: #817b8b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.result-shadow-hook p {
  max-width: 690px;
  margin: 15px auto 0;
  color: #f6d7ca;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.65;
}

.result-quick-actions {
  justify-content: center;
  margin-top: 21px;
}

.result-quick-actions .primary-button,
.result-quick-actions .ghost-button {
  min-width: 150px;
}

.quick-copy-feedback {
  margin: 10px 0 0;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.result-panel {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), transparent 55%),
    rgba(25, 23, 43, 0.7);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
}

.energy-panel {
  grid-column: span 2;
  min-height: auto;
}

.reminder-panel {
  grid-column: span 2;
  min-height: 190px;
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 185, 120, 0.09), transparent 35%),
    rgba(25, 23, 43, 0.7);
}

.compatibility-section {
  margin-top: 16px;
  padding: 30px;
  border: 1px solid rgba(112, 184, 201, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(112, 184, 201, 0.1), transparent 34%),
    rgba(25, 23, 43, 0.68);
}

.compatibility-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.compatibility-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 4vw, 38px);
}

.compatibility-heading p {
  margin: 10px 0 0;
  color: #8f8999;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.compatibility-tool {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 24px;
}

.compatibility-tool label {
  display: grid;
  gap: 8px;
  color: #817b8b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.compatibility-tool select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: #eee7dd;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  background: #161426;
  font-family: "Microsoft YaHei", sans-serif;
}

.compatibility-tool select:focus {
  border-color: rgba(217, 185, 120, 0.55);
}

.compatibility-result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compatibility-result-head {
  display: grid;
  gap: 8px;
}

.compatibility-result-head span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.compatibility-result-head strong {
  color: #f6f0e7;
  font-size: 22px;
  font-weight: 500;
}

.compatibility-result-head small {
  color: #817b8b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.compatibility-grid article {
  min-height: 170px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.compatibility-grid span {
  color: #d9b978;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.compatibility-grid p {
  margin: 13px 0 0;
  color: #aaa4b4;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.9;
}

.compatibility-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.compatibility-feedback {
  margin-top: 10px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  color: #eee7dd;
  font-size: 15px;
}

.panel-heading small {
  color: #6e6878;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.result-panel > p {
  margin: 22px 0 0;
  color: #aaa4b4;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 2;
}

.score-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 36px;
  padding-top: 24px;
}

.score-item {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 11px;
  align-items: center;
  font-family: "Microsoft YaHei", sans-serif;
}

.score-name {
  font-size: 12px;
}

.score-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.score-item.fire .score-fill {
  background: var(--fire);
}

.score-item.tide .score-fill {
  background: var(--tide);
}

.score-item.moon .score-fill {
  background: var(--moon);
}

.score-item.rock .score-fill {
  background: var(--rock);
}

.score-value {
  color: #777181;
  font-size: 10px;
  text-align: right;
}

.reminder-panel blockquote {
  max-width: 710px;
  margin: 30px auto 0;
  color: var(--gold-light);
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.8;
  text-align: center;
}

.share-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid rgba(217, 185, 120, 0.18);
  border-radius: 20px;
  background: rgba(217, 185, 120, 0.045);
}

.share-copy {
  display: flex;
  gap: 17px;
  align-items: center;
}

.share-star {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(217, 185, 120, 0.25);
  border-radius: 50%;
}

.share-copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
}

.share-copy p {
  margin: 0;
  color: #817b8b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.share-actions {
  display: flex;
  gap: 10px;
}

.copy-feedback {
  width: 100%;
  min-height: 0;
  margin: -8px 0 0;
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  text-align: right;
}

.feedback-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 25px;
  align-items: center;
  margin-top: 14px;
  padding: 21px 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.feedback-section strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.feedback-section p {
  margin: 0;
  color: #777181;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
}

.feedback-scores {
  display: flex;
  gap: 7px;
}

.feedback-scores button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #96909f;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: Georgia, serif;
}

.feedback-scores button:hover,
.feedback-scores button.selected {
  color: #17131b;
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.feedback-scores button:disabled:not(.selected) {
  opacity: 0.35;
}

.rating-feedback {
  grid-column: span 2;
  min-height: 0;
  color: #8fcbb8 !important;
  text-align: right;
}

.result-footer-actions {
  margin-top: 35px;
  text-align: center;
}

.text-button {
  padding: 10px 4px;
  color: #918a9b;
  border-bottom: 1px solid #5f5969;
  background: none;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.result-disclaimer {
  max-width: 610px;
  margin: 32px auto 0;
  color: #585360;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}

.premium-section {
  margin: 18px 0 16px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(217, 185, 120, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(217, 185, 120, 0.1), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(141, 122, 237, 0.09), transparent 35%),
    rgba(22, 20, 39, 0.82);
  box-shadow: var(--shadow);
}

.premium-heading {
  display: flex;
  gap: 25px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.premium-heading h2 {
  margin: 16px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
}

.premium-heading p {
  margin: 0;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.premium-badge {
  min-width: 104px;
  padding: 13px 16px;
  border: 1px solid rgba(217, 185, 120, 0.28);
  border-radius: 15px;
  background: rgba(217, 185, 120, 0.06);
  text-align: center;
}

.premium-badge small {
  display: block;
  margin-bottom: 3px;
  color: #8d8495;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
}

.premium-badge strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.premium-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 26px 0 12px;
  overflow: hidden;
}

.premium-preview article {
  display: flex;
  min-height: 104px;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.premium-preview article > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
}

.premium-preview strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
}

.premium-preview p {
  margin: 0;
  color: #716b7b;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.8;
  filter: blur(2.8px);
  user-select: none;
}

.premium-fade {
  position: absolute;
  inset: 43% 0 0;
  background: linear-gradient(transparent, rgba(22, 20, 39, 0.96));
}

.unlock-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: -14px;
  padding: 22px;
  border: 1px solid rgba(217, 185, 120, 0.2);
  border-radius: 18px;
  background: rgba(13, 12, 24, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.unlock-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(217, 185, 120, 0.3);
  border-radius: 50%;
  background: rgba(217, 185, 120, 0.05);
}

.unlock-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.unlock-card p {
  margin: 0;
  color: #7f7889;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.7;
}

.unlock-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.unlock-actions .text-button {
  border: 0;
  font-size: 10px;
}

.unlocked-banner {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 24px 0;
  padding: 17px 20px;
  border: 1px solid rgba(112, 184, 201, 0.18);
  border-radius: 15px;
  background: rgba(112, 184, 201, 0.055);
}

.unlocked-banner > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #c6eef5;
  border: 1px solid rgba(112, 184, 201, 0.35);
  border-radius: 50%;
}

.unlocked-banner strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
}

.unlocked-banner p {
  margin: 0;
  color: #7f8794;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.premium-report {
  display: grid;
  gap: 13px;
}

.report-opening {
  padding: 27px 28px 25px;
  border: 1px solid rgba(217, 185, 120, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 185, 120, 0.09), transparent 36%),
    rgba(255, 255, 255, 0.026);
}

.report-opening-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}

.report-opening-head span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.report-opening h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.report-opening ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: opening-moment;
}

.report-opening li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: #b7b0c0;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.85;
  counter-increment: opening-moment;
}

.report-opening li::before {
  color: var(--gold);
  content: "0" counter(opening-moment);
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 2.4;
}

.report-chapter {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.report-chapter-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-chapter-number {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(217, 185, 120, 0.25);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
}

.report-chapter h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
}

.report-chapter-lead {
  color: #777081;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.report-quote {
  margin: 18px 0 0;
  padding: 14px 17px;
  color: #d7c8a6;
  border-left: 2px solid rgba(217, 185, 120, 0.65);
  background: rgba(217, 185, 120, 0.045);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.report-chapter-body {
  padding-top: 18px;
}

.report-chapter-body p {
  margin: 0 0 13px;
  color: #b7b0c0;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 2;
}

.report-chapter-body p:last-child {
  margin-bottom: 0;
}

.report-list,
.action-plan {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li,
.action-plan li {
  position: relative;
  padding: 14px 16px 14px 40px;
  color: #aaa4b4;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.8;
}

.report-list li::before {
  position: absolute;
  top: 17px;
  left: 17px;
  color: var(--gold);
  content: "✦";
  font-size: 9px;
}

.action-plan li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 13px;
  padding-left: 16px;
}

.action-plan strong {
  color: var(--gold);
  font-weight: 500;
}

.action-plan-content {
  display: grid;
  gap: 9px;
}

.action-plan-minimum {
  display: block;
  padding-top: 8px;
  color: #d1c5aa;
  border-top: 1px solid rgba(217, 185, 120, 0.13);
  font-size: 11px;
  line-height: 1.7;
}

.premium-report-disclaimer {
  max-width: 680px;
  margin: 20px auto 0;
  color: #676170;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.premium-download-row {
  margin-top: 20px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(5, 5, 11, 0.78);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(470px, 100%);
  padding: 38px;
  border: 1px solid rgba(217, 185, 120, 0.23);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 122, 237, 0.12), transparent 36%),
    #171529;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #878090;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.modal-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(217, 185, 120, 0.3);
  border-radius: 50%;
}

.modal-kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.modal-card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
}

.modal-copy {
  margin: 17px 0 22px;
  color: #9992a3;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.9;
}

.purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.purchase-summary strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
}

.purchase-consent {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  margin: 0 2px 16px;
  color: #908998;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.7;
  text-align: left;
}

.purchase-consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.purchase-consent a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.modal-primary,
.modal-secondary {
  width: 100%;
}

.modal-primary {
  margin-bottom: 10px;
}

.modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-secondary + .modal-secondary {
  margin-top: 10px;
}

button:disabled {
  cursor: not-allowed;
}

.disabled-link {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.modal-note {
  min-height: 18px;
  margin: 15px 0 0;
  color: #777080;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  line-height: 1.7;
}

.modal-note.error {
  color: #ed8f7b;
}

.modal-note.success {
  color: #8fd2c2;
}

.modal-policy-links {
  margin: 9px 0 0;
  color: #686270;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
}

.modal-policy-links a {
  color: #908798;
  text-underline-offset: 3px;
}

.code-field {
  display: block;
  margin: 4px 0 17px;
  text-align: left;
}

.code-field span {
  display: block;
  margin-bottom: 8px;
  color: #8d8697;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.code-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-field input:focus {
  border-color: rgba(217, 185, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 185, 120, 0.07);
}

.site-footer {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  color: #524d5c;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #625d6c;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #958b9d;
}

#share-canvas {
  position: fixed;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .ambient {
    display: none;
  }

  .site-header,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 64px;
  }

  .site-footer {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .brand {
    font-size: 11px;
  }

  .app-shell {
    width: min(100% - 28px, 980px);
  }

  .intro-view {
    padding-top: 52px;
  }

  .intro-view h1 {
    font-size: 40px;
  }

  .intro-copy {
    font-size: 13px;
  }

  .energy-orbit {
    height: 300px;
    margin-top: 38px;
  }

  .orbit-line {
    inset: 32px 36px;
  }

  .energy-node.fire {
    top: 0;
    left: 0;
  }

  .energy-node.tide {
    top: 0;
    right: 0;
  }

  .energy-node.moon {
    bottom: 0;
    left: 4%;
  }

  .energy-node.rock {
    right: 4%;
    bottom: 0;
  }

  .intro-actions {
    flex-direction: column;
  }

  .primary-button,
  .resume-button {
    width: min(100%, 320px);
  }

  .quiz-view {
    padding-top: 30px;
  }

  .quiz-topline {
    grid-template-columns: 38px 1fr 38px;
    gap: 12px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .question-card {
    min-height: auto;
    margin-top: 35px;
    padding: 38px 18px 26px;
    border-radius: 22px;
  }

  .question-card h2 {
    min-height: 77px;
    margin-bottom: 24px;
    font-size: 22px;
  }

  .answer-option {
    grid-template-columns: 31px 1fr 18px;
    gap: 10px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .result-view {
    padding-top: 42px;
  }

  .result-hero {
    padding-inline: 0;
  }

  .result-hero h1 {
    font-size: 40px;
  }

  .result-share-line {
    padding-inline: 12px;
    font-size: 16px;
    line-height: 1.7;
  }

  .result-summary {
    font-size: 14px;
  }

  .result-share-boost {
    margin-top: -12px;
    padding-inline: 0;
  }

  .result-shadow-hook p {
    font-size: 23px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .energy-panel,
  .reminder-panel {
    grid-column: auto;
  }

  .compatibility-section {
    padding: 24px 20px;
  }

  .compatibility-tool {
    grid-template-columns: 1fr;
  }

  .compatibility-tool .primary-button {
    width: 100%;
  }

  .compatibility-grid {
    grid-template-columns: 1fr;
  }

  .compatibility-grid article {
    min-height: auto;
  }

  .compatibility-actions {
    flex-direction: column;
  }

  .compatibility-actions .ghost-button {
    width: 100%;
  }

  .result-panel {
    min-height: auto;
    padding: 24px 20px;
  }

  .score-bars {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .share-section {
    align-items: stretch;
    padding: 22px 18px;
  }

  .share-actions {
    width: 100%;
    flex-direction: column;
  }

  .share-actions .primary-button,
  .share-actions .ghost-button {
    width: 100%;
  }

  .copy-feedback {
    text-align: center;
  }

  .feedback-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feedback-scores {
    justify-content: center;
  }

  .rating-feedback {
    grid-column: auto;
    text-align: center;
  }

  .premium-section {
    padding: 27px 17px;
  }

  .premium-heading {
    align-items: flex-start;
  }

  .premium-badge {
    min-width: 86px;
    padding-inline: 10px;
  }

  .premium-preview {
    grid-template-columns: 1fr;
  }

  .unlock-card {
    grid-template-columns: 43px 1fr;
    padding: 18px;
  }

  .unlock-icon {
    width: 40px;
    height: 40px;
  }

  .unlock-actions {
    grid-column: span 2;
    width: 100%;
    margin-top: 6px;
  }

  .unlock-actions .primary-button {
    width: 100%;
  }

  .report-chapter {
    padding: 22px 17px;
  }

  .report-opening {
    padding: 22px 17px;
  }

  .report-opening-head {
    display: grid;
    gap: 6px;
  }

  .action-plan li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .modal-card {
    padding: 34px 21px 27px;
  }

  .site-footer {
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    line-height: 2;
  }
}

@media print {
  body {
    color: #17131f;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .result-hero,
  .result-grid,
  .premium-heading .premium-badge,
  .share-section,
  .feedback-section,
  .result-footer-actions,
  .result-disclaimer,
  .unlocked-banner,
  .premium-download-row,
  .ambient,
  .noise {
    display: none !important;
  }

  .app-shell {
    width: 100%;
  }

  .view {
    display: none !important;
  }

  #result-view {
    display: block !important;
    padding: 0;
  }

  .premium-section {
    margin: 0;
    padding: 0;
    color: #17131f;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .premium-heading {
    display: block;
    border-color: #ddd;
  }

  .premium-heading h2,
  .premium-heading p,
  .report-opening h3,
  .report-opening li,
  .report-chapter h3,
  .report-quote,
  .report-chapter-body p,
  .report-list li,
  .action-plan li,
  .action-plan-minimum,
  .premium-report-disclaimer {
    color: #17131f;
  }

  .report-opening,
  .report-quote {
    border-color: #ccc;
    background: #fff;
  }

  .report-chapter {
    break-inside: avoid;
    border-color: #ddd;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
