:root { color-scheme: light; --navy: #0f2b5c; --ink: #17304f; --muted: #52627a; --line: #dfe5ec; --surface: #f8f9fc; --orange: #ff4d26; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-header { width: min(100%, 1024px); margin: 0 auto; padding: 32px 16px 0; }
.brand { display: inline-flex; align-items: center; height: 42px; gap: 2px; text-decoration: none; }
.brand > img { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-wordmark { position: relative; display: block; width: 84px; height: 28px; overflow: hidden; }
.brand-wordmark img { position: absolute; display: block; width: 164px; height: 164px; max-width: none; left: -68px; top: -68px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; min-height: 24px; color: #434750; font-size: 12px; font-weight: 600; }
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover, .home-link:hover { color: var(--orange); text-decoration: underline; }
.breadcrumbs > span[aria-hidden] { color: #737781; font-size: 18px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.intro-page { display: flex; align-items: center; justify-content: center; min-height: min(740px, calc(100dvh - 120px)); padding: 64px 16px 100px; }
.intro-panel { width: min(100%, 800px); padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(15, 43, 92, .04); }
.intro-panel h1 { margin: 0 0 16px; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.25; }
.intro-copy { margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-grid > div { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.meta-grid > div:last-child { border-right: 0; }
.meta-grid dt { margin: 0; color: var(--muted); font-size: 19px; line-height: 1; }
.meta-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff3ed; color: var(--orange); }
.meta-icon svg { display: block; width: 19px; height: 19px; }
.meta-grid dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color .15s ease, transform .15s ease; }
.primary-button { background: var(--navy); color: #fff; }
.primary-button:hover { background: #1f497d; }
.primary-button:active { transform: scale(.98); }
.intro-panel .primary-button { border: 1px solid var(--line); background: #fff; color: var(--navy); }
.intro-panel .primary-button:hover { border-color: var(--orange); background: #fff7f2; color: var(--orange); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); }
.secondary-button:hover { background: #eef2f7; }
.disclaimer { margin: 20px 0 0; color: #738198; font-size: 13px; line-height: 1.6; }
.question-page { width: min(100%, 800px); min-height: calc(100dvh - 130px); margin: 0 auto; padding: 56px 16px 64px; }
.progress-header { margin-bottom: 36px; }
.progress-label { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.progress-label strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e2e9f2; }
.progress-track > div { width: 7.1429%; height: 100%; border-radius: inherit; background: var(--orange); transition: width .3s ease; }
.question-page h1 { margin: 0 0 28px; color: var(--ink); font-size: 18px; line-height: 1.5; white-space: nowrap; }
.question-image { width: 92%; aspect-ratio: 1690 / 931; margin: 0 auto 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #eef2f7; }
.question-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option-button { display: flex; align-items: center; width: 100%; min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.option-button:hover { border-color: var(--orange); background: #fff9f6; }
.option-button[aria-pressed="true"] { border-color: var(--orange); background: #fff0e9; }
.option-button:disabled { cursor: wait; }
.option-letter { display: grid; place-items: center; width: 30px; height: 30px; flex: none; margin-right: 12px; border-radius: 6px; background: #eff3f8; color: var(--navy); font-weight: 700; }
.option-button[aria-pressed="true"] .option-letter { background: var(--orange); color: #fff; }
.option-text { font-size: 15px; line-height: 1.55; }
.question-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.question-footer button { min-height: 44px; padding: 9px 24px; border: 1px solid #b9c5d3; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.question-footer button:hover:not(:disabled) { background: #eef2f7; }
.question-footer button:disabled { opacity: .4; cursor: not-allowed; }
.question-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.loading-error { color: #b42318; font-size: 14px; }
.result-page { display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - 130px); padding: 64px 16px 100px; }
.result-panel { width: min(100%, 768px); padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.result-panel h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(34px, 4vw, 48px); }
.result-score { margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.result-score strong { color: var(--ink); }
.result-image { display: block; width: 240px; height: 240px; margin: 0 auto 32px; border: 1px solid var(--line); border-radius: 10px; background: #eef2f7; object-fit: contain; }
.result-description { max-width: 600px; margin: 0 auto 32px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.dimension-section { margin: 0 0 32px; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; scroll-margin-top: 24px; }
.dimension-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dimension-heading h2 { margin: 0; font-size: 22px; }
.dimension-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.dimension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dimension-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dimension-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dimension-card h3 { margin: 0; font-size: 15px; }
.dimension-card strong { color: var(--orange); font-size: 14px; white-space: nowrap; }
.dimension-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #e8edf3; }
.dimension-bar > div { height: 100%; border-radius: inherit; background: #6185a6; }
.dimension-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.focus-note { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--orange); background: #fff5ef; color: var(--ink); font-size: 14px; line-height: 1.6; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.home-link { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .question-page h1 { white-space: normal; }
}
@media (max-width: 640px) {
  .site-header { padding-top: 24px; }
  .breadcrumbs { min-height: 44px; margin-top: 8px; font-size: 14px; }
  .intro-page, .result-page { min-height: auto; padding-top: 48px; padding-bottom: 64px; }
  .intro-panel { padding: 32px 24px; }
  .result-panel { padding: 32px 0; }
  .question-page { padding-top: 40px; }
  .question-image { width: 100%; margin-bottom: 24px; }
  .option-grid, .dimension-grid { grid-template-columns: 1fr; }
  .result-image { width: 208px; height: 208px; }
}
