:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --ink: #26342f;
  --muted: #68746f;
  --line: #ddd8ce;
  --moss: #3f6b5b;
  --moss-dark: #2f5145;
  --moss-soft: #dce9e2;
  --gold: #c8954b;
  --gold-soft: #f3e7d2;
  --rose: #a96464;
  --rose-soft: #f3dfdc;
  --slate: #55727e;
  --slate-soft: #dce8ec;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 16px 44px rgba(38, 52, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(221, 216, 206, 0.8);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  gap: 3px;
  align-items: end;
  width: 29px;
  height: 24px;
}

.brand-mark span {
  display: block;
  width: 7px;
  border-radius: 5px 5px 2px 2px;
  background: var(--moss);
}

.brand-mark span:nth-child(1) { height: 13px; }
.brand-mark span:nth-child(2) { height: 22px; background: var(--gold); }
.brand-mark span:nth-child(3) { height: 17px; background: var(--rose); }

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--moss);
}

.header-cta,
.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.header-cta,
.primary-button {
  padding: 12px 22px;
  color: white;
  background: var(--moss);
}

.header-cta:hover,
.primary-button:hover {
  background: var(--moss-dark);
  transform: translateY(-1px);
}

.primary-button.large {
  padding: 15px 28px;
  font-size: 16px;
}

.secondary-button {
  padding: 11px 20px;
  color: var(--moss);
  border: 1px solid var(--moss);
  background: transparent;
}

.secondary-button:hover {
  background: var(--moss-soft);
}

.text-button {
  padding: 8px 4px;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--ink);
}

main {
  min-height: calc(100vh - 180px);
}

.page {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 64px 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: 610px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  color: var(--moss);
  border-radius: 999px;
  background: var(--moss-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Songti SC", "SimSun", serif;
}

.hero h1 {
  max-width: 700px;
  margin: 20px 0 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: var(--moss);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.microcopy {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 44% 44% 30% 30% / 38% 38% 24% 24%;
  background: #e9dfca;
}

.hero-orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(63, 107, 91, 0.35);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.hero-orbit::before { top: 9%; right: 14%; }
.hero-orbit::after { bottom: 9%; left: 12%; background: var(--moss); }

.figure {
  position: absolute;
  bottom: 14%;
  width: 118px;
  height: 210px;
}

.figure::before {
  position: absolute;
  top: 0;
  left: 37px;
  width: 48px;
  height: 54px;
  border-radius: 48% 48% 44% 44%;
  background: #e4b99a;
  content: "";
}

.figure::after {
  position: absolute;
  bottom: 0;
  width: 118px;
  height: 160px;
  border-radius: 58px 58px 18px 18px;
  background: var(--moss);
  content: "";
}

.figure.one { left: 18%; transform: rotate(-4deg); }
.figure.two { right: 17%; transform: rotate(5deg) scaleX(-1); }
.figure.two::after { background: var(--gold); }

.connection-line {
  position: absolute;
  z-index: 3;
  top: 46%;
  left: 31%;
  width: 38%;
  height: 52px;
  border-top: 5px solid var(--rose);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.connection-line::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stat-item {
  padding: 26px;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 25px;
}

.stat-item span {
  color: var(--muted);
  font-size: 13px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.page-title {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}

.section-heading p,
.page-lead {
  color: var(--muted);
}

.layer-grid,
.type-grid,
.science-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.layer-card,
.type-card,
.science-card,
.result-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.layer-card {
  padding: 28px;
}

.layer-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--moss);
  border-radius: 50%;
  background: var(--moss-soft);
  font-weight: 700;
}

.layer-card h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.layer-card p,
.science-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.layer-question {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  color: var(--moss);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.model-note {
  margin-top: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.model-note strong {
  color: var(--moss);
}

.model-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dimension-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dimension-pair {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pair-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pair-heading span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pair-heading strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
  text-align: right;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dimension-card {
  min-height: 220px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--moss-soft);
}

.dimension-v { background: var(--gold-soft); }
.dimension-r { background: var(--slate-soft); }
.dimension-i { background: var(--rose-soft); }

.dimension-code {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--ink);
  border: 1px solid rgba(33, 41, 36, 0.16);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.dimension-card h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.professional-name {
  display: block;
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.dimension-card p,
.pair-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pair-note strong {
  color: var(--ink);
}

.pair-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.formula-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: center;
}

.formula-strip span {
  display: grid;
  gap: 3px;
}

.formula-strip strong {
  color: white;
  font-size: 15px;
}

.formula-strip b {
  color: var(--gold);
  font-size: 20px;
}

.home-section {
  padding: 70px 0;
}

.matrix-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.matrix-cell {
  min-height: 104px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--moss-soft);
}

.matrix-cell:nth-child(4n + 2) { background: var(--gold-soft); }
.matrix-cell:nth-child(4n + 3) { background: var(--slate-soft); }
.matrix-cell:nth-child(4n + 4) { background: var(--rose-soft); }
.matrix-cell strong { display: block; margin-bottom: 5px; font-size: 14px; }
.matrix-cell span { color: var(--muted); font-size: 11px; }

.type-grid {
  grid-template-columns: repeat(4, 1fr);
}

.type-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.type-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  background: #f4efe5;
  object-fit: cover;
  object-position: center;
}

.type-card-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 20px 18px;
}

.type-card:hover {
  border-color: var(--moss);
  transform: translateY(-3px);
}

.type-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.type-card h3 {
  margin: 12px 0 8px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 18px;
}

.type-card p {
  color: var(--muted);
  font-size: 13px;
}

.type-symbol {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 92px;
  height: 92px;
  border: 18px solid rgba(63, 107, 91, 0.13);
  border-radius: 50%;
}

.type-symbol::after {
  position: absolute;
  top: -28px;
  left: 17px;
  width: 18px;
  height: 78px;
  border-radius: 20px;
  background: rgba(200, 149, 75, 0.25);
  transform: rotate(36deg);
  content: "";
}

.type-detail {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
}

.type-detail-aside {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--moss-soft);
}

.type-character-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
  border: 1px solid rgba(63, 107, 91, 0.16);
  border-radius: 22px;
  background: var(--surface);
  object-fit: cover;
  aspect-ratio: 1;
}

.type-detail-copy {
  padding: 20px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 10px;
  color: var(--moss);
  border-radius: 999px;
  background: var(--moss-soft);
  font-size: 12px;
  font-weight: 600;
}

.bullet-block {
  margin-top: 28px;
}

.bullet-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.test-shell {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 44px 0 88px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 7px;
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e0d7;
}

.test-shell {
  --phase: var(--moss);
  --phase-soft: var(--moss-soft);
}

.test-shell[data-phase="ideal"] {
  --phase: var(--gold);
  --phase-soft: var(--gold-soft);
}

.test-shell[data-phase="partner"] {
  --phase: var(--slate);
  --phase-soft: var(--slate-soft);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--phase);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-card {
  min-height: 480px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-card.enter-forward { animation: card-in-forward 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.question-card.enter-back { animation: card-in-back 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.question-card.leaving { animation: card-out 170ms ease-in forwards; }

@keyframes card-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-28px); }
}

.question-card.enter-forward .option-button,
.question-card.enter-back .option-button {
  animation: option-in 260ms ease both;
  animation-delay: calc(80ms + var(--delay, 0ms));
}

@keyframes card-in-forward {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes card-in-back {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: none; }
}

@keyframes option-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes option-pop {
  0% { transform: scale(1); }
  40% { transform: scale(0.975); }
  100% { transform: scale(1); }
}

@keyframes dot-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.question-context {
  margin-bottom: 18px;
  color: var(--phase);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.question-text {
  min-height: 122px;
  margin-bottom: 34px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.55;
}

.option-list {
  display: grid;
  gap: 10px;
}

.scenario {
  margin-bottom: 26px;
}

.scene-text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border-radius: 50%;
  background: var(--phase);
  font-size: 12px;
  font-weight: 700;
}

.chat-bubble {
  position: relative;
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--phase-soft);
  font-size: clamp(17px, 3.4vw, 20px);
  line-height: 1.5;
}

.question-card.enter-forward .chat-bubble,
.question-card.enter-back .chat-bubble {
  animation: bubble-in 320ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.scenario-prompt {
  margin: 0;
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(19px, 3.6vw, 24px);
}

.option-button.scenario-option {
  align-items: flex-start;
  min-height: 56px;
  line-height: 1.55;
}

.option-button.scenario-option .option-dot {
  flex: none;
  margin-top: 3px;
}

.option-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.option-button:hover,
.option-button.selected {
  border-color: var(--phase);
  background: var(--phase-soft);
}

.option-button:active {
  transform: scale(0.985);
}

.option-button.just-selected {
  animation: option-pop 220ms ease;
}

.option-button.just-selected .option-dot {
  animation: dot-pop 260ms ease;
}

@media (hover: none) {
  .option-button:hover:not(.selected) {
    border-color: var(--line);
    background: var(--surface);
  }
}

.option-dot {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  border: 2px solid #aaa69d;
  border-radius: 50%;
}

.option-button.selected .option-dot {
  border: 5px solid var(--phase);
}

.option-button.na {
  margin-top: 6px;
  color: var(--muted);
  border-style: dashed;
  font-size: 13px;
}

.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.keyboard-hint {
  color: var(--muted);
  font-size: 12px;
}

@media (hover: none), (max-width: 620px) {
  .keyboard-hint { display: none; }
}

.intro-panel {
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}

.intro-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border: 18px solid var(--moss-soft);
  border-radius: 50%;
  background: var(--gold);
}

.intro-panel h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.intro-panel p {
  max-width: 580px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.intro-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 30px auto;
}

.intro-list span {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--moss);
  color: white;
}

.result-hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 310px;
  height: 310px;
  border: 52px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.78;
}

.result-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 7vw, 68px);
}

.result-hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.82);
}

.result-code {
  display: grid;
  place-items: center;
  min-height: 180px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 52px;
  font-weight: 700;
}

.result-section {
  padding-top: 50px;
}

.result-grid {
  grid-template-columns: repeat(2, 1fr);
}

.result-card {
  padding: 26px;
}

.result-card.featured {
  border-color: var(--moss);
}

.result-card .layer-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-card h3 {
  margin: 8px 0 10px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 24px;
}

.score-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.score-row {
  display: grid;
  grid-template-columns: 74px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.score-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e4db;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
}

.score-row:nth-child(2) .score-bar span { background: var(--gold); }
.score-row:nth-child(3) .score-bar span { background: var(--slate); }
.score-row:nth-child(4) .score-bar span { background: var(--rose); }

.gap-panel,
.share-panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
}

.share-panel {
  background: var(--moss-soft);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.notice {
  padding: 16px 18px;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  font-size: 13px;
}

.role-hero {
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  align-items: center;
}

.role-hero::after { display: none; }

.role-portrait {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #f7f1e3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.role-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.role-copy {
  position: relative;
  z-index: 1;
}

.role-hero h1 {
  margin: 8px 0 14px;
}

.hero-tag {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.role-tagline {
  margin: 20px 0 8px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: clamp(19px, 2.4vw, 24px);
  color: white !important;
}

.light-button,
.ghost-button {
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.light-button {
  color: var(--moss-dark);
  border: 0;
  background: white;
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}

.light-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.border-panel {
  padding: 24px 26px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.border-panel > p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.neighbor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.neighbor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.neighbor-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.neighbor-card img {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #f7f1e3;
}

.neighbor-card span {
  display: grid;
  gap: 2px;
}

.neighbor-card small {
  color: var(--muted);
  font-size: 12px;
}

.neighbor-card strong {
  font-size: 16px;
}

.neighbor-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reading-card {
  --tone: var(--moss);
  --tone-soft: var(--moss-soft);
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--tone);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.reading-V { --tone: var(--gold); --tone-soft: var(--gold-soft); }
.reading-R { --tone: var(--slate); --tone-soft: var(--slate-soft); }
.reading-I { --tone: var(--rose); --tone-soft: var(--rose-soft); }

.reading-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reading-head span {
  display: grid;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
}

.reading-head small {
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reading-head strong {
  color: var(--tone);
  font-size: 28px;
  line-height: 1;
}

.reading-bar {
  position: relative;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e8e4db;
}

.reading-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tone);
}

.reading-bar i,
.compare-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
  opacity: 0.35;
}

.band-tag {
  display: inline-block;
  padding: 3px 10px;
  color: var(--tone);
  border-radius: 999px;
  background: var(--tone-soft);
  font-size: 12px;
  font-weight: 700;
}

.reading-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ideal-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) 1fr;
  align-items: start;
  gap: 26px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--gold-soft);
}

.ideal-summary img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f7f1e3;
}

.ideal-tag {
  color: #8a6430;
  background: rgba(200, 149, 75, 0.18);
}

.ideal-copy > p {
  margin-top: 10px;
}

.ideal-summary .ideal-lead {
  margin-top: 14px;
  color: var(--ink);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 18px;
}

.ideal-points {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ideal-points > div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.75);
}

.ideal-points strong {
  color: #8a6430;
  font-size: 13px;
}

.ideal-points p {
  margin-top: 2px !important;
}

.ideal-summary .ideal-note {
  margin-top: 14px;
  font-size: 13px;
}

.ideal-link {
  margin-top: 8px;
  color: #8a6430;
}

.back-report-button {
  margin-top: 26px;
}

.premium-section .section-heading .kicker {
  color: #8a6430;
  background: var(--gold-soft);
}

.premium-locked {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid #e6d3b3;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), var(--gold-soft));
  box-shadow: var(--shadow);
}

.premium-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.premium-preview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 10px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.premium-preview-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: blur(14px) saturate(0.7);
  transform: scale(1.1);
}

.premium-preview-card span {
  margin-top: 8px;
  color: #8a6430;
  font-size: 12px;
  font-weight: 700;
}

.premium-preview-card strong {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.premium-offer ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
  line-height: 1.8;
}

.premium-price {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.premium-price strong {
  color: #8a6430;
  font-size: 30px;
}

.premium-price span {
  color: var(--muted);
  font-size: 13px;
}

.unlock-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.unlock-row {
  display: flex;
  gap: 10px;
}

.unlock-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unlock-row input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.unlock-error {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--rose);
  font-size: 13px;
}

.premium-intro {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.match-list {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}

.match-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.match-head {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
}

.match-head img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.match-rank {
  color: #8a6430;
  font-size: 12px;
  font-weight: 700;
}

.match-head h3 {
  margin: 2px 0 8px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px;
}

.match-head h3 small {
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.match-badge {
  color: #8a6430;
  background: var(--gold-soft);
}

.match-reasons {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.match-reason {
  padding-left: 14px;
  border-left: 3px solid var(--moss-soft);
}

.match-reason p {
  margin: 4px 0;
  line-height: 1.75;
}

.match-reason cite {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.match-example {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--moss-soft);
}

.match-example span {
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 700;
}

.match-example p {
  margin: 6px 0 0;
  line-height: 1.8;
}

.match-caution {
  margin: 16px 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.ideal-summary .layer-name {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.ideal-summary h3 {
  margin: 2px 0 6px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 24px;
}

.ideal-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ideal-match {
  margin-top: 6px !important;
  color: var(--moss) !important;
}

.compare-chart {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.compare-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-legend i {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 999px;
}

.legend-actual { background: var(--moss); }
.legend-ideal { background: var(--gold); }
.legend-line { width: 2px !important; height: 14px !important; background: var(--ink); opacity: 0.35; }

.compare-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
}

.compare-row.highlight {
  background: var(--gold-soft);
}

.compare-label {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.compare-label strong {
  font-size: 15px;
}

.gap-badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.gap-badge.large { color: white; background: var(--gold); }
.gap-badge.close { color: var(--moss); background: var(--moss-soft); }

.compare-bars {
  position: relative;
  display: grid;
  gap: 6px;
}

.compare-bar {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
  align-items: center;
}

.compare-track {
  height: 10px;
  border-radius: 999px;
  background: #ece7de;
}

.compare-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--moss);
}

.compare-bar.ideal .compare-track span { background: var(--gold); }

.compare-bar b {
  color: var(--muted);
  font-size: 12px;
}

.compare-threshold {
  top: -3px;
  bottom: -3px;
  left: calc((100% - 42px) * var(--threshold) / 100);
}

.compare-diff {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.compare-row.highlight .compare-diff {
  color: var(--gold);
}

.science-grid {
  grid-template-columns: repeat(3, 1fr);
}

.science-card {
  padding: 25px;
}

.science-card a {
  color: var(--moss);
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 38px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  color: var(--ink);
  font-size: 15px;
}

.site-footer p {
  margin: 5px 0 0;
}

.footer-note {
  max-width: 560px;
  justify-self: end;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 18px;
  color: white;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }
  .hero-art { min-height: 390px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .layer-grid,
  .science-grid,
  .dimension-pairs { grid-template-columns: 1fr; }
  .type-detail { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; }
  .result-code { display: none; }
  .role-portrait { width: min(320px, 100%); margin: 0 auto; }
  .role-copy { text-align: center; }
  .role-copy .tag-row,
  .role-copy .share-actions { justify-content: center; }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 60px;
    padding: 0 18px;
  }
  .brand { font-size: 14px; }
  .brand-mark { transform: scale(0.86); transform-origin: left center; }
  .header-cta { padding: 9px 14px; font-size: 12px; }
  .page { width: min(100% - 32px, 1160px); padding: 36px 0 64px; }
  .role-portrait { width: min(240px, 80%); }
  .role-copy .share-actions { flex-direction: column; }
  .role-copy .share-actions button { width: 100%; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-card { padding: 20px; }
  .ideal-summary { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .ideal-summary img { width: min(200px, 70%); margin: 0 auto; }
  .back-report-button { width: 100%; }
  .premium-locked { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .premium-offer .primary-button { width: 100%; }
  .unlock-row { flex-direction: column; }
  .match-card { padding: 20px; }
  .match-head { grid-template-columns: 76px 1fr; gap: 14px; }
  .match-head img { width: 76px; height: 76px; }
  .match-head h3 { font-size: 22px; }
  .compare-chart { padding: 16px 12px; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 10px 6px; }
  .compare-label { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
  .compare-diff { text-align: left; }
  .hero {
    min-height: auto;
    gap: 32px;
  }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions button { width: 100%; }
  .hero-art { min-height: 330px; border-radius: var(--radius-lg); }
  .figure { bottom: 10%; transform: scale(0.8) !important; }
  .figure.one { left: 11%; }
  .figure.two { right: 11%; transform: scale(-0.8, 0.8) !important; }
  .stats-strip { grid-template-columns: 1fr; margin-bottom: 52px; }
  .stat-item + .stat-item { border-top: 1px solid var(--line); border-left: 0; }
  .home-section { padding: 44px 0; }
  .dimension-pair { padding: 18px; }
  .dimension-grid { grid-template-columns: 1fr; }
  .dimension-card { min-height: auto; }
  .pair-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pair-heading strong { text-align: left; }
  .formula-strip { align-items: stretch; flex-direction: column; gap: 9px; }
  .formula-strip b { line-height: 1; }
  .matrix-preview { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: 1fr; }
  .type-card {
    grid-template-columns: minmax(130px, 0.85fr) minmax(0, 1.15fr);
    min-height: 180px;
  }
  .type-card-image { min-height: 180px; }
  .test-shell { width: min(100% - 24px, 760px); padding-top: 24px; }
  .question-card { min-height: 530px; border-radius: 20px; box-shadow: none; }
  .question-text { min-height: 145px; font-size: 22px; }
  .option-button { min-height: 48px; }
  .intro-list { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-hero { padding: 30px 24px; border-radius: 20px; }
  .share-actions { flex-direction: column; }
  .share-actions button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 20px; }
  .footer-note { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
