:root {
  --ink: #20342f;
  --muted: #667770;
  --paper: #f7f5ef;
  --card: rgba(255, 255, 252, 0.88);
  --line: rgba(33, 67, 58, 0.13);
  --sage: #739b8d;
  --sage-deep: #315e52;
  --sage-soft: #dce9e3;
  --amber: #d3a55f;
  --amber-soft: #f2e5cf;
  --shadow: 0 24px 70px rgba(46, 75, 67, 0.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(252, 251, 247, 0.97), rgba(245, 245, 238, 0.98)),
    radial-gradient(circle at 15% 10%, #dfeae5 0, transparent 34%);
}

button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient-one { top: -180px; right: -110px; background: #bcd6cc; }
.ambient-two { bottom: -220px; left: -130px; background: #ead8ba; }

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--sage-deep);
  box-shadow: 0 10px 25px rgba(49, 94, 82, 0.2);
}

.brand-mark svg { width: 28px; height: 28px; }
.brand-mark path:first-child { fill: #e7f0ec; }
.brand-mark path:last-child { fill: var(--sage-deep); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Songti SC", STSong, serif; font-size: 18px; letter-spacing: 0.08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }

.privacy-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #67a38d; box-shadow: 0 0 0 4px rgba(103, 163, 141, 0.14); }

.app-shell { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 170px); margin: 0 auto; }
.view { animation: view-in 360ms ease both; }
.hidden { display: none !important; }

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

.home-view { padding: 62px 0 38px; }
.hero-copy { max-width: 790px; }
.eyebrow { margin: 0 0 16px; color: var(--sage-deep); font-size: 12px; font-weight: 760; letter-spacing: 0.18em; text-transform: uppercase; }

.hero-copy h1,
.intro-panel h1,
.result-hero h1 {
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.hero-copy h1 { font-size: clamp(42px, 6.6vw, 78px); line-height: 1.12; }
.hero-lead { max-width: 720px; margin: 28px 0 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }

.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #788781; font-size: 12px; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: #9fb2aa; }

.assessment-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; margin-top: 58px; }
.assessment-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: 0 12px 40px rgba(49, 77, 68, 0.07);
  backdrop-filter: blur(18px);
}

.assessment-card::after {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 155, 141, 0.22), transparent 70%);
  content: "";
}

.assessment-card.featured { border-color: rgba(64, 113, 99, 0.28); background: linear-gradient(145deg, rgba(247, 252, 249, 0.95), rgba(242, 246, 241, 0.92)); box-shadow: var(--shadow); }
.card-topline { display: flex; min-height: 30px; align-items: center; justify-content: space-between; }
.card-index { color: #9aaba5; font-family: Georgia, serif; font-size: 13px; }
.recommended, .standard-tag { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.recommended { color: #3f6c5e; background: var(--sage-soft); }
.standard-tag { color: #8a6329; background: var(--amber-soft); }
.assessment-card h2 { margin: 35px 0 12px; font-family: "Songti SC", STSong, serif; font-size: 27px; }
.assessment-card p { min-height: 58px; margin: 0; color: var(--muted); line-height: 1.75; }
.assessment-card ul { display: grid; gap: 9px; margin: 24px 0 28px; padding: 0; color: #526760; font-size: 13px; list-style: none; }
.assessment-card li::before { margin-right: 8px; color: var(--sage); content: "✓"; }

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 720;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button { border: 1px solid var(--sage-deep); color: #fff; background: var(--sage-deep); box-shadow: 0 12px 24px rgba(49, 94, 82, 0.16); }
.secondary-button { border: 1px solid rgba(49, 94, 82, 0.22); color: var(--sage-deep); background: rgba(255, 255, 255, 0.74); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:hover { box-shadow: 0 16px 30px rgba(49, 94, 82, 0.23); }
.wide { width: 100%; }

.route-help {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px dashed rgba(49, 94, 82, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-align: left;
}
.route-help > span:nth-child(2) { flex: 1; }
.route-help strong, .route-help small { display: block; }
.route-help small { margin-top: 3px; color: var(--muted); }
.route-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-family: Georgia, serif; }

.method-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.method-note > div { display: flex; gap: 14px; align-items: flex-start; }
.method-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.method-note strong { color: var(--ink); }
.note-number { display: grid; min-width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--sage-deep); font-family: Georgia, serif; }

.text-button { padding: 8px 2px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.text-button:hover { color: var(--sage-deep); }

#intro-view { padding: 28px 0 70px; }
.back-home { margin-bottom: 20px; }
.intro-panel { max-width: 740px; margin: 0 auto; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow); }
.instrument-badge { display: inline-grid; height: 38px; min-width: 64px; place-items: center; margin-bottom: 28px; padding: 0 14px; border-radius: 10px; color: var(--sage-deep); background: var(--sage-soft); font-family: Georgia, serif; font-weight: 700; }
.intro-panel h1 { font-size: clamp(36px, 5vw, 54px); }
.intro-description { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.anchor-box { display: flex; gap: 14px; margin: 30px 0; padding: 20px; border-radius: var(--radius-md); background: #eef3ef; }
.anchor-box span { color: var(--sage-deep); font-size: 22px; }
.anchor-box p { margin: 0; color: #486058; line-height: 1.75; }
.before-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.before-start div { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.56); }
.before-start strong, .before-start span { display: block; }
.before-start strong { font-size: 14px; }
.before-start span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.screening-note { margin: 18px auto 0; color: #87938f; font-size: 11px; line-height: 1.6; text-align: center; }

#question-view { max-width: 820px; margin: 0 auto; padding: 35px 0 70px; }
.progress-header { display: flex; align-items: center; justify-content: space-between; }
.progress-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.progress-track { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #e2e8e4; }
.progress-bar { width: 100%; height: 100%; overflow: hidden; border: 0; border-radius: inherit; appearance: none; background: transparent; }
.progress-bar::-webkit-progress-bar { background: transparent; }
.progress-bar::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); transition: width 260ms ease; }
.progress-bar::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); }
.is-invisible { visibility: hidden; }
.copy-fallback { position: fixed; opacity: 0; pointer-events: none; }
.question-panel { margin-top: 34px; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow); }
.question-kicker { margin: 0 0 22px; color: var(--sage-deep); font-size: 12px; font-weight: 750; letter-spacing: 0.14em; }
.question-panel h2 { min-height: 104px; margin: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(25px, 4vw, 35px); line-height: 1.48; }
.question-prompt { margin: 16px 0 25px; color: var(--muted); font-size: 13px; }
.option-list { display: grid; gap: 10px; }
.option-button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #40554e;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  text-align: left;
  transition: border 150ms ease, transform 150ms ease, background 150ms ease;
}
.option-button:hover, .option-button.selected { border-color: rgba(49, 94, 82, 0.45); background: #edf4f0; transform: translateX(3px); }
.option-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--sage-deep); background: var(--sage-soft); font-family: Georgia, serif; }
.option-arrow { color: #9bb0a8; }
.question-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 23px; color: #97a39f; font-size: 11px; }

#result-view { padding: 36px 0 72px; }
.result-hero { position: relative; min-height: 250px; padding: 42px 220px 42px 44px; overflow: hidden; border: 1px solid rgba(49, 94, 82, 0.2); border-radius: var(--radius-xl); background: linear-gradient(135deg, #e8f1ed, #f7f3e8); box-shadow: var(--shadow); }
.result-hero::after { position: absolute; right: -80px; bottom: -110px; width: 360px; height: 360px; border: 1px solid rgba(49, 94, 82, 0.12); border-radius: 50%; content: ""; }
.result-hero h1 { max-width: 700px; font-size: clamp(34px, 5vw, 58px); line-height: 1.18; }
.result-summary { max-width: 650px; margin: 20px 0 0; color: var(--muted); line-height: 1.75; }
.score-ring { position: absolute; z-index: 1; top: 50%; right: 58px; display: flex; width: 130px; height: 130px; align-items: baseline; justify-content: center; padding-top: 39px; border: 1px solid rgba(49, 94, 82, 0.2); border-radius: 50%; background: rgba(255, 255, 255, 0.56); transform: translateY(-50%); }
.score-ring span { font-family: Georgia, serif; font-size: 43px; }
.score-ring small { color: var(--muted); }
.result-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-top: 22px; }
.result-card, .handoff-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 12px 35px rgba(49, 77, 68, 0.06); }
.section-title { display: flex; gap: 12px; align-items: center; }
.section-title span { color: #97aaa2; font-family: Georgia, serif; font-size: 12px; }
.section-title h2 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: 22px; }
.dimension-list { display: grid; gap: 18px; margin-top: 25px; }
.dimension-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.dimension-head span:last-child { color: var(--muted); }
.dimension-progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #e7ebe8; }
.dimension-progress::-webkit-progress-bar { border-radius: inherit; background: #e7ebe8; }
.dimension-progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #9dbdaf, #4e7f71); }
.dimension-progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #9dbdaf, #4e7f71); }
.route-card > p { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.route-list { display: grid; gap: 10px; }
.route-item { padding: 13px 14px; border-radius: 12px; color: #486158; background: #eef3ef; font-size: 13px; }
.route-item::before { margin-right: 8px; color: var(--sage-deep); content: "↗"; }
.handoff-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-top: 22px; background: #263e38; color: #eff6f2; }
.handoff-card .eyebrow { color: #a7c8bc; }
.handoff-card h2 { max-width: 680px; margin: 0; font-family: "Songti SC", STSong, serif; font-size: 25px; line-height: 1.45; }
.handoff-card p:not(.eyebrow) { margin: 12px 0 0; color: #b9c8c3; font-size: 12px; }
.handoff-actions { display: grid; gap: 10px; min-width: 188px; }
.handoff-actions .primary-button { border-color: #dbece5; color: var(--sage-deep); background: #e7f2ed; box-shadow: none; }
.handoff-actions .secondary-button { border-color: rgba(255,255,255,.2); color: #e8f1ee; background: rgba(255,255,255,.06); }
.copy-status { grid-column: 1 / -1; min-height: 18px; color: #bdd9cf; font-size: 12px; }
.result-details { margin-top: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.45); }
.result-details summary { cursor: pointer; font-weight: 700; }
.result-details div { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.result-footer-actions { display: flex; justify-content: center; gap: 24px; margin-top: 22px; }

.route-dialog { width: min(620px, calc(100% - 28px)); padding: 32px; border: 0; border-radius: 24px; color: var(--ink); background: #f9faf6; box-shadow: 0 28px 90px rgba(30, 51, 45, 0.3); }
.route-dialog::backdrop { background: rgba(28, 44, 40, 0.52); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 24px; }
.route-dialog h2 { margin: 0 0 24px; font-family: "Songti SC", STSong, serif; font-size: 28px; }
.dialog-choice { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.dialog-choice + .dialog-choice { margin-top: 12px; }
.dialog-choice p { margin: 8px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.site-footer { display: flex; justify-content: space-between; padding: 28px 0 36px; border-top: 1px solid var(--line); color: #84918d; font-size: 11px; }

@media (max-width: 760px) {
  .site-header, .site-footer, .app-shell { width: min(100% - 24px, 1120px); }
  .site-header { padding-top: 18px; }
  .privacy-pill { padding: 8px; font-size: 0; }
  .privacy-pill .privacy-dot { margin: 0; }
  .home-view { padding-top: 36px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-lead { font-size: 15px; }
  .assessment-grid, .method-note, .result-layout, .handoff-card { grid-template-columns: 1fr; }
  .assessment-card { padding: 24px; }
  .method-note { gap: 22px; }
  .intro-panel, .question-panel { padding: 26px 20px; }
  .before-start { grid-template-columns: 1fr; }
  .question-panel h2 { min-height: 140px; font-size: 27px; }
  .result-hero { padding: 30px 24px 180px; }
  .score-ring { top: auto; right: 24px; bottom: 26px; transform: none; }
  .handoff-actions { min-width: 0; }
  .site-footer { gap: 16px; }
}

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