:root {
  color-scheme: dark;
  --page: #141615;
  --surface: #1b1e1c;
  --surface-raised: #222622;
  --surface-soft: #272b27;
  --ink: #f0eee7;
  --muted: #a5aaa2;
  --muted-strong: #c4c8c0;
  --line: #343936;
  --line-strong: #555d55;
  --accent: #e2685e;
  --accent-strong: #ff897d;
  --accent-soft: rgba(226, 104, 94, 0.14);
  --accent-faint: rgba(226, 104, 94, 0.07);
  --shadow: rgba(0, 0, 0, 0.24);
  --shadow-accent: rgba(226, 104, 94, 0.16);
  --radius: 8px;
  --max: 1240px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

[data-theme="light"] {
  color-scheme: light;
  --page: #f3f1ec;
  --surface: #fbfaf7;
  --surface-raised: #ffffff;
  --surface-soft: #e9e7e1;
  --ink: #1b1e1b;
  --muted: #6b716b;
  --muted-strong: #444a44;
  --line: #d5d7d1;
  --line-strong: #aeb4aa;
  --accent: #c84f47;
  --accent-strong: #a83e37;
  --accent-soft: rgba(200, 79, 71, 0.11);
  --accent-faint: rgba(200, 79, 71, 0.05);
  --shadow: rgba(24, 30, 25, 0.09);
  --shadow-accent: rgba(200, 79, 71, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

.site-shell {
  min-height: 100dvh;
  overflow: hidden;
}

.topbar,
.screen,
.site-footer {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-button,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-button {
  font-size: 14px;
}

.brand-mark,
.question-marker {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-lock {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-strong);
  font-size: 9px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(10deg);
}

.screen {
  padding: 60px 0 112px;
}

.hidden {
  display: none !important;
}

.eyebrow,
.section-kicker,
.visual-topline,
.signal-number,
.question-topline,
.report-code,
.report-date,
.metric-label,
.score-caption,
.dimension-score,
.practice-index,
.section-index {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  gap: clamp(48px, 8vw, 126px);
  align-items: center;
  min-height: 610px;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 22px 0 25px;
  font-size: clamp(48px, 6.3vw, 88px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-strong);
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff9f5;
  box-shadow: 0 12px 26px var(--shadow-accent);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: 0 15px 30px var(--shadow-accent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.compact-button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 12px;
}

.hero-disclaimer {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero-visual {
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 18px 18px 0 var(--accent-faint);
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 15px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.radar-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--page);
}

.radar-stage::before {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  opacity: 0.5;
}

.radar-stage::after {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  opacity: 0.24;
}

.radar-chart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 390px;
  height: auto;
  overflow: visible;
  color: var(--accent);
}

.radar-chart text {
  fill: var(--ink);
}

.radar-chart .radar-muted {
  stroke: var(--line);
}

.radar-chart .radar-spoke {
  stroke: var(--line);
}

.radar-chart .radar-shape {
  fill: var(--accent-soft);
  stroke: var(--accent);
}

.radar-chart .radar-point {
  fill: var(--accent-strong);
}

.visual-readout {
  display: grid;
  gap: 7px;
  padding: 17px 2px 1px;
}

.visual-readout span {
  color: var(--muted);
  font-size: 12px;
}

.visual-readout strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.signal-section,
.method-section {
  margin-top: 132px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.section-heading {
  max-width: 690px;
}

.section-heading h2,
.method-copy h2 {
  max-width: 680px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading h2 span {
  color: var(--accent-strong);
}

.section-heading > p:last-child,
.method-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.signal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.signal-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.signal-card-wide {
  grid-column: span 7;
}

.signal-card-accent {
  grid-column: span 5;
  background: var(--accent-soft);
}

.signal-card-outline {
  grid-column: span 5;
  background: transparent;
}

.signal-card-deep {
  grid-column: span 7;
  background: var(--surface-raised);
}

.signal-number {
  color: var(--accent-strong);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.signal-card h3 {
  max-width: 300px;
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.signal-card p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.signal-word {
  align-self: flex-end;
  margin-top: 28px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.signal-card-accent .signal-word,
.signal-card-deep .signal-word {
  color: var(--accent-strong);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 9vw, 128px);
}

.method-copy h2 {
  font-size: clamp(34px, 4.8vw, 58px);
}

.method-list {
  display: grid;
  align-content: start;
}

.method-step {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.method-step:first-child {
  padding-top: 0;
}

.method-step > span {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.method-step strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
}

.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cover-footer-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 74px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.test-screen {
  padding-top: 42px;
}

.test-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: clamp(48px, 8vw, 122px);
}

.test-sidebar {
  min-width: 0;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
}

.back-link:hover {
  color: var(--ink);
}

.test-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 74px;
}

.test-progress-copy strong {
  font-size: 44px;
  letter-spacing: -0.06em;
}

.test-progress-copy p {
  max-width: 180px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.progress-track {
  height: 5px;
  margin-top: 21px;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.dimension-index {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.dimension-index-row {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.dimension-index-row em {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dimension-index-row.is-active {
  color: var(--ink);
  font-weight: 750;
}

.dimension-index-row.is-active em {
  background: var(--accent);
}

.dimension-index-row b {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

.sidebar-note {
  display: flex;
  gap: 12px;
  margin-top: 56px;
}

.note-line {
  flex: 0 0 1px;
  background: var(--accent);
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.test-main {
  min-width: 0;
}

.question-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.question-topline span:last-child {
  color: var(--accent-strong);
  letter-spacing: 0;
}

.question-panel {
  margin-top: 20px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 13px 15px 0 var(--shadow);
}

.question-panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.question-marker {
  width: 25px;
  height: 25px;
  border-color: var(--accent);
  color: var(--accent-strong);
  font-size: 10px;
}

.question-panel h1 {
  max-width: 625px;
  margin: 35px 0 17px;
  font-size: clamp(29px, 4.25vw, 52px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.question-helper {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.choice-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.choice-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}

.choice-button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.choice-radio {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.choice-button.is-selected .choice-radio {
  border: 4px solid var(--accent);
}

.choice-label {
  font-size: 14px;
  font-weight: 700;
}

.choice-note {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.question-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.answer-hint {
  min-height: 18px;
  margin: 15px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.report-screen {
  padding-top: 38px;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line-strong);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(40px, 8vw, 118px);
  align-items: center;
  padding: 74px 0 58px;
}

.report-hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1;
}

.report-hero-lede {
  max-width: 680px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.75;
}

.profile-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.profile-keyword {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 12px;
}

.radar-report-card {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.radar-report-card .radar-chart {
  max-width: 340px;
  margin: 0 auto;
}

.radar-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.report-notice {
  padding: 17px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
}

.report-section {
  padding: 60px 0;
  border-top: 1px solid var(--line-strong);
}

.report-section-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 30px;
}

.report-section-header span {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.report-section-header h2 {
  margin: 0;
  font-size: clamp(27px, 3.7vw, 46px);
  font-weight: 720;
  letter-spacing: -0.05em;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 110px);
}

.report-summary-copy {
  max-width: 500px;
}

.report-summary-copy h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.045em;
}

.report-summary-copy p {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.report-summary-copy p + p {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.strength-list {
  display: grid;
  gap: 18px;
}

.strength-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.strength-rank {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.strength-item h3 {
  margin: 0;
  font-size: 17px;
}

.strength-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.strength-score {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.score-legend {
  max-width: 680px;
  margin: -6px 0 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.dimension-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 46px;
}

.dimension-report-row {
  min-width: 0;
}

.dimension-report-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.dimension-report-topline strong {
  font-size: 16px;
}

.dimension-score {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.score-meter {
  height: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.score-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 500ms ease;
}

.dimension-report-row p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.scene-card {
  min-height: 238px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.scene-card:nth-child(2) {
  background: var(--accent-soft);
}

.scene-card:nth-child(3) {
  background: transparent;
}

.scene-card:nth-child(4) {
  background: var(--surface-raised);
}

.scene-card h3 {
  margin: 52px 0 11px;
  font-size: 17px;
}

.scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.scene-index {
  color: var(--accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 13px;
}

.practice-card {
  min-height: 235px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.practice-card:first-child {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.practice-index {
  color: var(--accent-strong);
  font-size: 10px;
}

.practice-card h3 {
  max-width: 250px;
  margin: 49px 0 11px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.report-save-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-top: 12px;
  padding: 29px 25px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.report-save-copy h2 {
  max-width: 620px;
  margin: 16px 0 10px;
  font-size: clamp(27px, 4vw, 45px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.report-save-copy > p:not(.eyebrow):not(.report-date) {
  max-width: 540px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.75;
}

.report-date {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.report-save-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.report-save-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.save-image-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
}

.text-link {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

/* 分享卡导出：只在生成图片时离屏渲染，不参与页面布局。
   颜色全部写死为品牌深色，保证深浅主题导出一致、且在 SVG 导出上下文中可读。 */
.report-export-surface {
  position: absolute;
  top: 0;
  left: -12000px;
  width: 720px;
  pointer-events: none;
}

.report-export-root {
  width: 720px;
  background: #141615;
  color: #f0eee7;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

.export-card {
  display: grid;
  gap: 24px;
  padding: 34px 36px 28px;
  border: 1px solid #343936;
  border-radius: 8px;
  background: #1b1e1c;
}

.export-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #a5aaa2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.export-profile {
  display: grid;
  gap: 10px;
}

.export-profile .eyebrow {
  color: #ff897d;
}

.export-profile h1 {
  margin: 0;
  color: #f0eee7;
  font-size: 46px;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.export-profile > p {
  margin: 0;
  color: #a5aaa2;
  font-size: 14px;
}

.export-summary {
  padding: 13px 16px;
  border-left: 3px solid #e2685e;
  background: rgba(226, 104, 94, 0.12);
  color: #c4c8c0;
  font-size: 13px;
  line-height: 1.7;
}

.export-card .radar-chart {
  width: 330px;
  max-width: none;
  margin: 0 auto;
  color: #e2685e;
}

.export-card .radar-chart text {
  fill: #f0eee7;
}

.export-card .radar-muted,
.export-card .radar-spoke {
  stroke: #3a403c;
}

.export-card .radar-shape {
  fill: rgba(226, 104, 94, 0.16);
  stroke: #e2685e;
}

.export-card .radar-point {
  fill: #ff897d;
}

.export-rows {
  display: grid;
  gap: 15px;
}

.export-row-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.export-row-topline strong {
  color: #f0eee7;
  font-size: 13px;
}

.export-row-topline span {
  color: #a5aaa2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.export-meter {
  height: 7px;
  overflow: hidden;
  background: #272b27;
}

.export-meter span {
  display: block;
  height: 100%;
  background: #e2685e;
}

.export-foot {
  padding-top: 15px;
  border-top: 1px solid #343936;
  color: #8b918a;
  font-size: 11px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
}

.screen-entering {
  animation: screen-enter 420ms ease both;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .radar-stage::after {
    animation: radar-breathe 3.8s ease-in-out infinite;
  }
}

@keyframes radar-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.17;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.34;
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 7vw, 68px);
  }

  .test-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 45px;
  }

  .report-hero {
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 45px;
  }

  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .screen,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .topbar {
    min-height: 66px;
  }

  .privacy-note {
    display: none;
  }

  .screen {
    padding: 38px 0 78px;
  }

  .hero-layout,
  .method-section,
  .test-layout,
  .report-hero,
  .report-summary-grid,
  .report-save-section {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 44px;
    min-height: auto;
  }

  .hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(43px, 13vw, 63px);
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-visual {
    padding: 12px;
  }

  .radar-stage {
    min-height: 330px;
  }

  .signal-section,
  .method-section {
    margin-top: 86px;
    padding-top: 24px;
  }

  .section-heading h2,
  .method-copy h2 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .signal-card-wide,
  .signal-card-accent,
  .signal-card-outline,
  .signal-card-deep {
    grid-column: auto;
  }

  .signal-card {
    min-height: 205px;
    padding: 21px;
  }

  .method-section {
    gap: 36px;
  }

  .cover-footer-note,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .test-screen {
    padding-top: 28px;
  }

  .test-layout {
    gap: 34px;
  }

  .test-progress-copy {
    gap: 11px;
    margin-top: 44px;
  }

  .test-progress-copy strong {
    font-size: 38px;
  }

  .test-progress-copy p,
  .sidebar-note {
    max-width: 500px;
  }

  .dimension-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 30px;
  }

  .sidebar-note {
    margin-top: 31px;
  }

  .question-panel {
    margin-top: 16px;
    padding: 25px 18px 20px;
  }

  .question-panel h1 {
    margin-top: 27px;
    font-size: clamp(29px, 8.4vw, 43px);
  }

  .choice-button {
    grid-template-columns: 21px minmax(0, 1fr);
    min-height: 56px;
    padding: 0 13px;
  }

  .choice-note {
    display: none;
  }

  .question-footer {
    margin-top: 28px;
  }

  .question-footer .button {
    min-width: 0;
    padding-inline: 14px;
  }

  .report-screen {
    padding-top: 28px;
  }

  .report-toolbar {
    align-items: flex-start;
  }

  .report-hero {
    gap: 35px;
    padding: 48px 0 40px;
  }

  .report-hero h1 {
    font-size: clamp(45px, 13vw, 68px);
  }

  .report-hero-lede {
    font-size: 16px;
  }

  .report-section {
    padding: 42px 0;
  }

  .report-section-header {
    gap: 11px;
    margin-bottom: 24px;
  }

  .report-section-header h2 {
    font-size: 31px;
  }

  .report-summary-grid {
    gap: 32px;
  }

  .dimension-report-grid,
  .scene-grid,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .scene-card,
  .practice-card {
    min-height: 190px;
  }

  .scene-card h3,
  .practice-card h3 {
    margin-top: 34px;
  }

  .report-save-section {
    align-items: start;
    gap: 25px;
    padding: 23px 18px;
  }

  .report-save-buttons {
    width: 100%;
  }

  .report-save-buttons .button {
    flex: 1 1 auto;
  }
}

@media print {
  /* 打印时把主题变量统一覆盖成白纸配色，避免深色主题导出浅色文字。 */
  :root,
  [data-theme="light"] {
    --page: #ffffff;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: #eceae4;
    --ink: #17191a;
    --muted: #4d534d;
    --muted-strong: #323732;
    --line: #c7c9c3;
    --line-strong: #a7aca4;
    --accent: #b8453d;
    --accent-strong: #a23a33;
    --accent-soft: rgba(184, 69, 61, 0.08);
    --accent-faint: rgba(184, 69, 61, 0.05);
    --shadow: transparent;
    --shadow-accent: transparent;
  }

  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .report-toolbar,
  .report-save-section,
  .site-footer {
    display: none !important;
  }

  .site-shell,
  .screen,
  .report-screen {
    width: 100%;
    padding: 0;
  }

  .report-hero {
    grid-template-columns: 1fr 300px;
    padding: 24px 0 28px;
  }

  .report-section {
    break-inside: avoid;
    padding: 28px 0;
  }

  .radar-report-card,
  .scene-card,
  .practice-card,
  .report-notice {
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #677068;
    --line-strong: #9da69c;
    --muted: #d0d4ce;
  }
}
