:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --surface: #fffefa;
  --ink: #222821;
  --muted: #555e53;
  --line: #d9ded3;
  --pine: #284636;
  --pine-dark: #1d3629;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #2e6446; outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
::selection { color: #142e21; background: #dbe7d6; }

.shell { width: min(70rem, calc(100% - 5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 4.5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; white-space: nowrap; font-size: 1.125rem; font-weight: 650; letter-spacing: .07em; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pine); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid #f0f3e5; border-radius: 50%; aspect-ratio: 1; }
.brand-mark::before { width: 1.03rem; }
.brand-mark::after { width: .5rem; }
.main-nav { display: flex; gap: 2rem; align-items: center; color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.main-nav a, .back-link { padding-block: .55rem; }
.main-nav a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .28rem; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; padding: .6rem 1rem; color: white; background: var(--pine); z-index: 5; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 3.4rem 3.6rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { color: var(--pine); }
.hero-text p { margin-block: 1.25rem 1.65rem; color: var(--muted); line-height: 1.85; }
.hero-figure { overflow: hidden; background: #526052; border-radius: .25rem; }
.hero-figure img { aspect-ratio: 1.67; object-fit: cover; object-position: 50% 56%; }

.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .25rem; padding: .58rem 1.15rem; white-space: nowrap; font-size: .9375rem; font-weight: 600; line-height: 1.5; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--pine); color: #fff; }
.button-primary:hover { background: var(--pine-dark); }
.button-primary:disabled { background: #e3e7de; color: #596457; }
.button-outline { border-color: #bfc9bc; background: transparent; color: var(--pine); }
.button-outline:hover { background: #ecf0e8; }
.button-outline:disabled { opacity: .56; background: transparent; }
.button-text { color: var(--muted); background: transparent; }
.button-text:hover { text-decoration: underline; text-underline-offset: .23rem; }

.catalogue { border-top: 1px solid var(--line); padding-block: 1.45rem 3.65rem; scroll-margin-top: 1rem; }
.section-heading { margin-bottom: 1.25rem; }
.section-heading h2, .about h2, .result-section h2 { font-family: var(--serif); font-size: 1.72rem; font-weight: 700; letter-spacing: -.023em; }
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.theme-pine { --theme: #365644; --theme-soft: #e9efe5; --theme-secondary: #aabca9; }
.theme-clay { --theme: #8a4e3a; --theme-soft: #f3e9e1; --theme-secondary: #c9a18f; }
.theme-blue { --theme: #35596d; --theme-soft: #e8eff2; --theme-secondary: #a3bac8; }
.test-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: start; gap: .9rem; min-height: 15rem; padding: 1.25rem 1.35rem .86rem; background: var(--surface); border: 1px solid var(--line); border-radius: .32rem; transition: border-color .15s, background-color .15s; }
.test-card:hover { border-color: var(--theme-secondary); background-color: #fff; }
.quiz-icon { position: relative; display: grid; place-items: center; width: 3.15rem; height: 3.15rem; flex: 0 0 auto; background: var(--theme-soft); color: var(--theme); border-radius: .22rem; }
.quiz-icon i { position: absolute; display: none; }
.quiz-icon.ripple i { border: 1.3px solid currentColor; border-radius: 50%; width: 54%; height: 54%; display: block; }
.quiz-icon.ripple i:nth-child(2) { width: 36%; height: 36%; }
.quiz-icon.ripple i:nth-child(3) { width: 17%; height: 17%; }
.quiz-icon.ripple i:nth-child(4) { display: none; }
.quiz-icon.overlap i { width: 38%; height: 38%; border: 1.3px solid currentColor; border-radius: 50%; display: block; }
.quiz-icon.overlap i:nth-child(1) { transform: translateX(-19%); }
.quiz-icon.overlap i:nth-child(2) { transform: translateX(19%); }
.quiz-icon.overlap i:nth-child(n + 3) { display: none; }
.quiz-icon.corners i { display: block; width: 21%; height: 21%; border: solid currentColor; border-width: 1.3px 0 0 1.3px; }
.quiz-icon.corners i:nth-child(1) { transform: translate(-65%, -65%); }
.quiz-icon.corners i:nth-child(2) { transform: translate(65%, -65%) rotate(90deg); }
.quiz-icon.corners i:nth-child(3) { transform: translate(65%, 65%) rotate(180deg); }
.quiz-icon.corners i:nth-child(4) { transform: translate(-65%, 65%) rotate(270deg); }
.test-copy h3 { font-size: 1.25rem; line-height: 1.45; font-weight: 650; margin-bottom: .38rem; }
.test-copy p { color: var(--muted); line-height: 1.68; }
.test-action { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: auto; padding-top: .45rem; border-top: 1px solid #e3e7de; font-size: .875rem; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--theme); font-weight: 650; white-space: nowrap; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: .32rem; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--pine); outline-offset: 4px; }
.card-link:hover { text-decoration: underline; text-underline-offset: .22rem; }
.about { display: grid; grid-template-columns: 1fr 2.04fr; gap: 1.25rem; border-top: 1px solid var(--line); padding-block: 2rem 3rem; }
.about p { color: var(--muted); max-width: 38rem; }
.about p + p { margin-top: .52rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.5rem; padding-block: .75rem; font-size: .875rem; color: var(--muted); }
.footer-brand { font-size: .92rem; }
.footer-brand .brand-mark { width: 1.38rem; height: 1.38rem; }
.footer-brand .brand-mark::before { width: .83rem; }
.footer-brand .brand-mark::after { width: .4rem; }

.flow { max-width: 47rem; }
.quiz-page, .result-page { padding-block: 1.9rem 3.6rem; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.25rem; font-size: .9375rem; color: var(--muted); }
.quiz-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.quiz-name { display: flex; gap: .65rem; align-items: center; font-weight: 650; }
.quiz-name .quiz-icon { width: 2.3rem; height: 2.3rem; }
.quiz-step { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .875rem; }
.quiz-step strong { color: var(--theme); }
.quiz-progress { display: block; width: 100%; height: .38rem; margin-block: .85rem 1.3rem; border: none; border-radius: 999px; overflow: hidden; appearance: none; background: #e1e6de; color: var(--theme); }
.quiz-progress::-webkit-progress-bar { background: #e1e6de; }
.quiz-progress::-webkit-progress-value { background: var(--theme); border-radius: 999px; }
.quiz-progress::-moz-progress-bar { background: var(--theme); border-radius: 999px; }
.question-panel { padding: 1.85rem 2.15rem 1.7rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); }
.question-guide { color: var(--muted); font-size: .875rem; }
.question-panel h1 { margin-block: .78rem 1.34rem; font-family: var(--serif); font-size: clamp(1.54rem, 3.8vw, 2.03rem); line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.question-panel fieldset { padding: 0; border: 0; margin: 0; min-width: 0; display: grid; gap: .55rem; }
.answer { display: flex; align-items: center; gap: .7rem; min-height: 3.1rem; padding: .65rem .9rem; border: 1px solid #dce1d7; border-radius: .25rem; cursor: pointer; }
.answer:hover { border-color: var(--theme-secondary); background: #f8f9f5; }
.answer:has(input:checked) { background: var(--theme-soft); border-color: var(--theme); }
.answer:focus-within { outline: 2px solid var(--theme); outline-offset: 2px; }
.answer input { margin: 0; width: 1.05rem; height: 1.05rem; flex-shrink: 0; accent-color: var(--theme); }
.answer input:focus-visible { outline: none; }
.quiz-actions { margin-top: 1.25rem; display: flex; justify-content: space-between; gap: .75rem; }
.save-note { color: var(--muted); font-size: .875rem; margin-top: .75rem; min-height: 1.4rem; text-align: right; }

.result-intro { padding: clamp(1.25rem, 4vw, 2.3rem); border-radius: .35rem; background: var(--theme-soft); color: var(--ink); border: 1px solid var(--theme-secondary); }
.result-label { margin-bottom: .5rem; color: var(--theme); font-weight: 650; font-size: .95rem; }
.result-title { color: var(--theme); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .8rem; }
.result-title h1 { font-family: var(--serif); font-size: clamp(2.35rem, 7vw, 3.65rem); line-height: 1.19; letter-spacing: -.04em; }
.result-title > span { font-size: clamp(1.35rem, 4vw, 1.95rem); font-variant-numeric: tabular-nums; }
.result-subtitle { margin-top: .67rem; font-size: 1.11rem; font-weight: 600; }
.result-description { margin-top: .58rem; max-width: 35rem; color: var(--muted); }
.result-section { margin-top: 1.7rem; }
.result-section h2 { margin-bottom: .7rem; }
.profile-list { display: grid; gap: .72rem; }
.profile { min-width: 0; padding: 1.18rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; }
.profile-title { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.profile-title h3 { font-size: 1.125rem; }
.profile-title h3 small { margin-left: .25rem; font-size: .8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.profile-title > strong { color: var(--theme); font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile p { margin-top: .65rem; }
.profile .profile-prompt { color: var(--muted); padding-left: .7rem; border-left: 2px solid var(--theme-secondary); }
.meter { height: .36rem; border-radius: 999px; overflow: hidden; margin-top: .55rem; background: #e4e8e0; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--theme); }
.axis-meter { background: var(--theme-secondary); position: relative; }
.axis-meter::after { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: var(--surface); }
.axis-meter span { border-radius: 0; }
.all-results { margin-top: 1rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); }
.all-results summary { cursor: pointer; padding: .76rem 1.15rem; font-weight: 600; color: var(--theme); }
.score-list { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.35rem; padding: .4rem 1.15rem 1rem; list-style: none; }
.score-list li > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; }
.score-list strong { font-size: .875rem; color: var(--theme); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scoring-note { font-size: .875rem; color: var(--muted); margin-top: .65rem; }
.axis-list { display: grid; gap: 1rem; }
.axis-heading, .axis-labels { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.axis-heading h3 { font-size: 1.04rem; }
.axis-heading > span { color: var(--muted); font-size: .875rem; }
.axis-labels { margin-top: .35rem; font-size: .9375rem; }
.axis-labels strong { font-variant-numeric: tabular-nums; }
.axis-labels > span:first-child { color: var(--theme); }
.result-reflection p { color: var(--muted); }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }

dialog { width: min(28rem, calc(100% - 2rem)); border-radius: .35rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 1.4rem; }
dialog::backdrop { background: #1a271e75; }
dialog h2 { margin-bottom: .5rem; font-size: 1.25rem; }
dialog p { color: var(--muted); }
dialog textarea { display: block; width: 100%; min-height: 7.5rem; margin-top: .75rem; padding: .6rem; border: 1px solid var(--line); border-radius: .25rem; resize: vertical; color: var(--ink); background: var(--paper); }
.dialog-actions { display: flex; justify-content: end; gap: .55rem; margin-top: 1rem; }
.notice { position: fixed; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); padding: .58rem 1rem; background: var(--pine-dark); color: #fff; border-radius: .3rem; font-size: .9375rem; }

@media (max-width: 880px) {
  .shell { width: calc(100% - 3.5rem); }
  .hero { gap: 1.8rem; padding-block: 2.6rem 2.8rem; }
  .hero-figure img { aspect-ratio: 1.33; }
  .test-grid { gap: .7rem; }
  .test-card { padding-inline: .9rem; }
  .test-copy h3 { font-size: 1.12rem; }
  .test-action { flex-wrap: wrap; gap: 0 .5rem; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 3.75rem; }
  .main-nav { gap: .9rem; font-size: .875rem; }
  .brand { font-size: 1rem; gap: .45rem; letter-spacing: .04em; }
  .brand-mark { width: 1.55rem; height: 1.55rem; }
  .hero { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.15rem 2rem; }
  .hero h1 { font-size: clamp(2.8rem, 10.8vw, 3.55rem); }
  .hero-text p { margin-block: .95rem 1.2rem; }
  .hero-figure img { aspect-ratio: 2; object-position: 50% 52%; }
  .catalogue { padding-block: 1.1rem 2.2rem; }
  .section-heading { margin-bottom: .85rem; }
  .section-heading h2, .about h2, .result-section h2 { font-size: 1.5rem; }
  .test-grid { grid-template-columns: 1fr; gap: .65rem; }
  .test-card { display: grid; min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .65rem .78rem; padding: .85rem .95rem .3rem; }
  .test-card .quiz-icon { width: 2.7rem; height: 2.7rem; }
  .test-copy h3 { margin-bottom: .25rem; }
  .test-action { grid-column: 1 / -1; padding-top: .1rem; }
  .about { grid-template-columns: 1fr; gap: .5rem; padding-block: 1.5rem 2rem; }
  .footer-inner { min-height: 3.75rem; }
  .quiz-page, .result-page { padding-block: .9rem 2rem; }
  .back-link { margin-bottom: .65rem; }
  .question-panel { padding: 1.15rem; }
  .question-panel h1 { margin-bottom: .95rem; }
  .result-section { margin-top: 1.35rem; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { gap: .55rem; }
  .main-nav { gap: .7rem; }
  .question-panel { padding: .9rem; }
  .profile { padding-inline: .9rem; }
  .score-list { grid-template-columns: 1fr; }
  .footer-inner { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
