:root {
  color-scheme: light;
  --bg: #f8f5f3;
  --surface: #fdfbf9;
  --surface-alt: #f4f0ed;
  --ink: #281b32;
  --muted: #817789;
  --line: #ebe5e1;
  --accent: #3da1a5;
  --accent-deep: #288c91;
  --soft-accent: #e1f0ef;
  --shadow: 0 2px 4px rgba(35, 23, 42, .06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17141d;
  --surface: #24202a;
  --surface-alt: #2d2933;
  --ink: #f4eef6;
  --muted: #b6aebc;
  --line: #3c3540;
  --accent: #57b5b5;
  --accent-deep: #42a5a6;
  --soft-accent: #283f40;
  --shadow: 0 2px 5px rgba(0, 0, 0, .2);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #86c5c4; outline-offset: 3px; }
[hidden] { display: none !important; }
.site-header { height: 64px; border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { position: relative; width: min(100% - 48px, 1104px); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: var(--accent); color: white; font-size: 22px; box-shadow: var(--shadow); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
.brand small { color: var(--muted); font-size: 10px; }
.header-status { position: absolute; left: 50%; transform: translateX(-50%); padding: 5px 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 12px; }
.theme-toggle { border: 0; background: none; color: var(--accent-deep); font-size: 23px; line-height: 1; }
.page-width { width: min(100% - 48px, 1010px); margin: 0 auto; }
.home { padding: 48px 0 70px; }
.hero { padding: 47px 24px 44px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, rgba(196, 227, 227, .42), var(--surface) 66%); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; padding: 8px 15px; border: 1px solid rgba(61, 161, 165, .16); border-radius: 30px; background: rgba(61, 161, 165, .09); color: var(--accent-deep); font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.hero h1 { margin: 25px 0 17px; font-size: clamp(38px, 5vw, 62px); line-height: 1.12; letter-spacing: -.05em; font-weight: 850; }
.hero > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.mobile-break { display: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 28px auto 32px; gap: 12px; }
.hero-stats > div { min-height: 73px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.hero-stats strong { color: var(--accent); font-size: 23px; line-height: 1; font-weight: 800; }
.hero-stats > div:nth-child(2) strong { color: #edae43; }
.hero-stats > div:nth-child(3) strong { color: #e39db4; }
.hero-stats > div:nth-child(4) strong { color: #53b8d8; font-size: 19px; }
.hero-stats span { color: var(--muted); font-size: 11px; }
.hero-actions { display: flex; align-items: center; flex-direction: column; gap: 10px; }
.version-heading { margin: 0 0 4px; font-size: 17px; }
.version-options { width: min(100%, 680px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.version-option { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.version-option > div { display: flex; flex-direction: column; gap: 6px; }
.version-option strong { font-size: 15px; }
.version-option small { color: var(--muted); font-size: 12px; }
.version-option .button { width: 100%; }
@media (max-width: 540px) { .version-options { grid-template-columns: 1fr; } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.button.primary { border: 1px solid var(--accent-deep); background: var(--accent); color: white; box-shadow: 0 3px 7px rgba(40, 140, 145, .18); }
.button.primary:not(:disabled):hover { background: var(--accent-deep); }
.button.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.hero-button { min-width: min(100%, 316px); min-height: 48px; font-size: 15px; }
.hero-button span { margin-left: 12px; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.resume-note { margin: 0; color: var(--muted); font-size: 12px; }
.section-heading { margin: 57px 0 19px; }
.section-heading h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.virtue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.virtue-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.virtue-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); font-weight: 800; }
.virtue-card h3 { margin: 14px 0 6px; font-size: 17px; }
.virtue-card p { margin: 0 0 17px; min-height: 20px; color: var(--muted); font-size: 12px; }
.strength-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.strength-chips button { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--c); font-size: 11px; }
.home-feature { display: flex; gap: 20px; margin-top: 55px; padding: 28px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(115deg, var(--soft-accent), var(--surface)); }
.feature-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: white; font-size: 26px; }
.home-feature .eyebrow { padding: 0; border: 0; background: transparent; }
.home-feature h2 { margin: 8px 0; font-size: 21px; }
.home-feature p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tips-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tips-grid b { color: var(--accent); font-size: 12px; }
.tips-grid h3 { margin: 10px 0 6px; font-size: 15px; }
.tips-grid p, .source-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-note { margin-top: 38px; }
.site-footer { padding: 27px 24px 34px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; line-height: 1.7; }
.site-footer strong { color: var(--accent); }
.site-footer p { margin: 5px 0; }
.quiz { max-width: 886px; padding: 48px 0 70px; }
.quiz-progress, .question-card, .quiz-actions { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.quiz-progress { padding: 15px 17px 12px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 11px; }
.progress-top > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.progress-top b { padding: 4px 10px; border-radius: 20px; background: var(--accent); color: white; font-size: 11px; }
.progress-top span { color: var(--muted); }
.progress-top button { padding: 4px; border: 0; background: none; color: var(--accent-deep); font-size: 11px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 10px; background: var(--soft-accent); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s; }
.page-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.page-nav button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.page-nav button.active { background: var(--accent); color: white; }
.page-nav button.complete:not(.active) { background: var(--soft-accent); color: var(--accent-deep); }
.question-list { display: grid; gap: 14px; }
.question-card { padding: 18px 23px 22px; }
.question-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; }
.answered-mark { color: var(--accent-deep); font-family: inherit; }
.question-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; padding-top: 18px; }
.question-copy { min-width: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-alt); }
.question-copy p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.7; }
.question-copy details { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.question-copy summary { cursor: pointer; }
.question-copy details span { display: block; margin-top: 6px; }
.answer-group { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; row-gap: 7px; }
.answer-option { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 2px solid #e9777e; border-radius: 50%; background: transparent; color: white; }
.answer-option.answer-1, .answer-option.answer-5 { width: 46px; height: 46px; }
.answer-option.answer-3 { width: 32px; height: 32px; border-color: var(--ink); }
.answer-option.answer-4, .answer-option.answer-5 { border-color: #4cc99b; }
.answer-option.selected { background: #e9777e; }
.answer-option.answer-3.selected { background: var(--ink); }
.answer-option.answer-4.selected, .answer-option.answer-5.selected { background: #36b986; }
.answer-option span { line-height: 1; }
.answer-labels { grid-column: 1 / -1; display: flex; justify-content: space-between; width: 100%; color: var(--muted); font-size: 10px; }
.quiz-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; padding: 13px 16px; }
.quiz-actions > span { color: var(--muted); font-size: 11px; }
.quiz-hint { color: var(--muted); text-align: center; font-size: 11px; }
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translate(-50%, 15px); padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--surface); opacity: 0; pointer-events: none; font-size: 13px; transition: .2s; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(22, 15, 28, .55); }
#sheet > .box { position: relative; width: min(100%, 500px); max-height: min(85vh, 850px); overflow: auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
#sheet .close { position: absolute; top: 18px; right: 18px; border: 0; background: none; color: var(--muted); font-size: 25px; }
#sheet h3 { margin: 10px 0; font-size: 24px; }
#sheet .mono { color: var(--accent-deep); font-size: 12px; font-weight: 700; }
#sheet .sdef, #sheet .fine { color: var(--muted); font-size: 13px; line-height: 1.8; }
#sheet .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
#sheet .duo > div { padding: 15px; border-radius: 12px; background: var(--surface-alt); font-size: 12px; line-height: 1.7; }
#sheet .duo b, #sheet .duo span { display: block; margin-bottom: 5px; }
#sheet .poster { display: block; width: 100%; margin: 18px 0; border-radius: 8px; }
#sheet .btn { padding: 13px; border-radius: 30px; background: var(--accent); color: white; }
.printing { width: min(100% - 48px, 600px); margin: 120px auto; text-align: center; }
.printing .mono, .printing .fine, .printing .log { color: var(--muted); font-size: 13px; }
:root[data-theme="dark"] .rv-report { --rv-ink: #f4eef6; --rv-muted: #b6aebc; --rv-border: #3c3540; --rv-bg: #17141d; }
:root[data-theme="dark"] .rv-hero { background: linear-gradient(115deg, #253d3a, #24252b); border-color: #3c4e49; }
:root[data-theme="dark"] .rv-hero-main > p, :root[data-theme="dark"] .rv-hero-side p { color: #b8c7c0; }
:root[data-theme="dark"] .rv-top-card, :root[data-theme="dark"] .rv-overview, :root[data-theme="dark"] .rv-domain, :root[data-theme="dark"] .rv-ranking, :root[data-theme="dark"] .rv-action, :root[data-theme="dark"] .rv-dialog { background: #24202a; color: #f4eef6; }
:root[data-theme="dark"] .rv-action-primary { background: #247f71; color: white; }
:root[data-theme="dark"] .rv-domain-items button, :root[data-theme="dark"] .rv-rank-row { color: #e5dfe7; }
@media (max-width: 700px) {
  .page-width { width: min(100% - 28px, 1010px); }
  .header-inner { width: calc(100% - 28px); }
  .home, .quiz { padding-top: 22px; }
  .hero { padding: 35px 16px; border-radius: 18px; }
  .hero h1 { margin-top: 23px; font-size: 39px; }
  .hero > p { font-size: 14px; }
  .mobile-break { display: block; }
  .desktop-break { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .virtue-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .virtue-card { padding: 15px; }
  .virtue-card p { line-height: 1.5; }
  .tips-grid { grid-template-columns: 1fr; }
  .home-feature { padding: 20px; }
  .question-card { padding: 14px; }
  .question-body { grid-template-columns: 1fr; gap: 18px; }
  .answer-group { max-width: 330px; width: 100%; margin: 0 auto; }
  .answer-option.answer-1, .answer-option.answer-5 { width: 43px; height: 43px; }
  .quiz-actions { bottom: 6px; padding: 10px; }
  .quiz-actions .button { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .page-nav { gap: 4px; }
  .page-nav button { width: 29px; }
}
@media (max-width: 380px) {
  .virtue-grid { grid-template-columns: 1fr; }
  .header-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .site-header, .site-footer, #toast, #sheet { display: none !important; }
  body { background: white; }
}
