:root {
  --paper: #f7f3e9;
  --paper-2: #eee8d9;
  --ink: #283b3e;
  --muted: #637375;
  --line: #d5d9cf;
  --coral: #e8795c;
  --teal: #64b9b2;
  --green: #93b887;
  --gold: #e7bc60;
  --white: #fffdf7;
  --shadow: 0 24px 60px rgba(38, 55, 55, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
button { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-shell { max-width: 1560px; margin: auto; min-height: 100vh; border-left: 1px solid rgba(94, 114, 108, .12); border-right: 1px solid rgba(94, 114, 108, .12); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 86px; padding: 0 clamp(24px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 22px; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand-small { margin-left: 7px; font-weight: 500; letter-spacing: .04em; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 3px; }
.brand-mark span:nth-child(1) { background: var(--coral); }
.brand-mark span:nth-child(2) { background: var(--gold); }
.brand-mark span:nth-child(3) { background: var(--teal); }
.brand-mark span:nth-child(4) { background: var(--green); }
.text-button { color: var(--ink); background: none; border: 0; padding: 10px 0 10px 10px; font-weight: 700; font-size: 13px; letter-spacing: .02em; cursor: pointer; }
.text-button:hover { color: #c75c46; }
.text-button span { font-size: 16px; margin-left: 5px; }
.view { padding: clamp(28px, 4vw, 58px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 86px); }

.landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); column-gap: clamp(36px, 6vw, 100px); align-items: center; }
.landing-copy { padding-top: clamp(20px, 4vw, 66px); }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; text-transform: uppercase; color: #41686b; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 4px #e8795c24; }
.landing h1 { max-width: 740px; margin: 24px 0 26px; font-size: clamp(47px, 5.35vw, 88px); line-height: 1.18; letter-spacing: -.09em; font-weight: 800; }
.landing h1 em { font-style: normal; color: var(--coral); }
.lead { max-width: 540px; margin: 0; color: #536669; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.9; }
.landing-actions { display: flex; align-items: center; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 13px 22px; border: 1.5px solid transparent; border-radius: 15px; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--ink); box-shadow: 0 8px 0 #283b3e17; }
.button-primary:hover { background: #36565a; }
.button-primary span { font-size: 20px; vertical-align: -1px; margin-left: 26px; }
.button-quiet { color: var(--ink); background: transparent; border-color: #b9c5bd; }
.button-quiet:hover { background: #ffffffa8; }
.time-note { color: #71817d; font-size: 13px; font-weight: 650; }
.landing-stats { display: flex; gap: clamp(18px, 2.2vw, 40px); margin-top: clamp(42px, 5vw, 80px); padding-top: 20px; border-top: 1px solid #cdd3c9; }
.landing-stats div { min-width: 87px; display: flex; align-items: baseline; gap: 6px; }
.landing-stats strong { font-size: 27px; font-weight: 800; letter-spacing: -.08em; }
.landing-stats span { color: #71817d; font-size: 12px; }

.landing-visual { position: relative; width: 100%; min-height: 590px; margin-top: 6px; background: #e8eee5; border: 1px solid #cdd7cc; border-radius: 34px; padding: 20px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.4deg); }
.landing-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 9px #ffffff68; }
.landing-visual img { width: 100%; height: 100%; min-height: 548px; object-fit: cover; display: block; border-radius: 19px; }
.visual-label { position: absolute; z-index: 2; top: 32px; left: 32px; right: 32px; width: fit-content; max-width: calc(100% - 64px); padding: 11px 14px; border-radius: 11px; background: #fffdf6e8; backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px #34484416; }
.mini-cross { color: var(--coral); font-size: 17px; margin-right: 5px; }
.visual-stamp { position: absolute; right: 37px; bottom: 29px; width: 112px; height: 112px; display: grid; place-content: center; border: 1.5px dashed var(--ink); border-radius: 50%; transform: rotate(13deg); background: #fffaf0e8; text-align: center; font-size: 11px; line-height: 1.7; font-weight: 800; }
.landing-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(45px, 7vw, 105px); padding-top: 22px; border-top: 1px solid var(--line); }
.landing-bottom p { margin: 0; color: #6a7a78; font-size: 14px; line-height: 1.8; }
.role-preview { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.role-preview span { padding: 8px 14px; border-radius: 999px; border: 1px solid #c6d2c7; font-size: 12px; font-weight: 800; }
.role-preview span:nth-child(1) { background: #e8c1ae; }.role-preview span:nth-child(2) { background: #b9d9d4; }.role-preview span:nth-child(3) { background: #d4e0b7; }.role-preview span:nth-child(4) { background: #f2dfa3; }

.quiz { min-height: calc(100vh - 160px); }
.quiz-topline, .result-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.quiz-count, .result-topline > span:last-child { color: #75837f; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.progress-track { height: 8px; margin-top: 21px; overflow: hidden; border-radius: 999px; background: #e0e4d9; }
.progress-track span { display: block; width: 8.33%; height: 100%; background: var(--coral); border-radius: inherit; transition: width .25s ease; }
.question-layout { display: grid; grid-template-columns: minmax(185px, .35fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); padding-top: clamp(40px, 6vw, 86px); }
.question-side { align-self: start; }
.question-scene-mark { width: min(210px, 100%); aspect-ratio: 1; position: relative; border-radius: 50%; border: 2px dashed #9bb5ad; display: grid; place-items: center; background: #e8eee1; box-shadow: 15px 16px 0 #dce6d8; }
.scene-number { position: absolute; top: 16px; left: 28px; color: #517a73; font-size: 16px; font-weight: 800; }
.scene-icon { color: var(--coral); font-size: 85px; font-weight: 700; line-height: 1; transform: rotate(-10deg); }
.question-side p { max-width: 220px; margin-top: 35px; color: #75837d; font-size: 13px; line-height: 1.9; }
.question-side p span { color: var(--ink); font-weight: 800; }
.question-main { max-width: 795px; }
.question-scene { margin: 0; color: #b75e49; font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.question-main h2 { max-width: 760px; margin: 15px 0 34px; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.48; letter-spacing: -.045em; }
.question-main h2:focus, .identity-card h1:focus { outline: none; }
.options { display: grid; gap: 11px; }
.option { width: 100%; display: flex; align-items: center; gap: 20px; min-height: 75px; padding: 14px 19px; text-align: left; color: var(--ink); background: var(--white); border: 1.5px solid #d9ded3; border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.option:hover { border-color: #92bbb3; transform: translateX(3px); }
.option[aria-pressed="true"] { border-color: var(--teal); background: #e8f5ed; box-shadow: 0 0 0 2px #64b9b234; }
.option-letter { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #e8ece4; color: #6c807b; font-size: 13px; font-weight: 900; }
.option[aria-pressed="true"] .option-letter { background: var(--teal); color: white; }
.option-text { font-size: clamp(14px, 1.3vw, 17px); font-weight: 650; line-height: 1.65; }
.question-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.question-controls-right { display: flex; justify-content: end; gap: 11px; }
.quiz-hint { color: #84918a; font-size: 12px; line-height: 1.7; margin-top: 24px; }

.result { padding-top: 35px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: clamp(35px, 6vw, 90px); align-items: center; margin-top: 38px; }
.identity-card { --role-bg: #f4d6c7; --role-accent: #d1674e; min-height: 600px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; position: relative; border-radius: 30px; background: var(--role-bg); box-shadow: 18px 18px 0 #d8dfd2, var(--shadow); }
.identity-card::before { content: ""; position: absolute; width: 410px; height: 410px; border: 1.5px dashed #ffffffa3; border-radius: 50%; top: 97px; left: 15px; }
.identity-card::after { content: ""; position: absolute; width: 560px; height: 1px; background: #ffffff7d; transform: rotate(-35deg); left: -45px; top: 267px; }
.identity-card-top, .identity-card-bottom { z-index: 2; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.identity-card-top { border-bottom: 1px solid #ffffffa9; padding-bottom: 14px; }
.identity-card-bottom { border-top: 1px solid #ffffffa9; padding-top: 13px; margin-top: auto; }
.identity-art { position: relative; z-index: 1; width: min(100%, 355px); height: 310px; margin: 22px auto 0; }
.identity-art svg { width: 100%; height: 100%; filter: drop-shadow(0 15px 13px #394b3d21); }
.identity-card-copy { z-index: 2; margin-top: auto; }
.identity-small { margin: 0 0 5px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.identity-card h1 { margin: 0 0 9px; font-size: clamp(54px, 5vw, 75px); letter-spacing: -.1em; line-height: 1.1; }
.identity-card.dual h1 { font-size: clamp(38px, 4vw, 54px); letter-spacing: -.07em; }
.identity-card-copy > p:last-child { max-width: 340px; margin: 0 0 23px; font-size: 15px; line-height: 1.75; font-weight: 700; }
.result-summary .eyebrow { color: #b7624f; }
.result-summary h2 { margin: 22px 0 20px; max-width: 650px; font-size: clamp(31px, 4vw, 57px); line-height: 1.33; letter-spacing: -.07em; }
.summary-copy { max-width: 570px; color: #5c6d6b; font-size: 17px; line-height: 1.95; }
.nearby { margin-top: 30px; padding: 17px 21px; border-left: 4px solid var(--teal); border-radius: 0 15px 15px 0; background: #e7f0e7; color: #4e6560; font-size: 15px; line-height: 1.7; }
.nearby strong { color: var(--ink); }
.result-actions { display: flex; gap: 12px; margin-top: 35px; flex-wrap: wrap; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(65px, 9vw, 130px); }
.score-panel, .evidence-panel { padding: clamp(26px, 3vw, 43px); background: var(--white); border: 1px solid #dce1d6; border-radius: 25px; box-shadow: 0 14px 38px #3448440a; }
.score-panel h2, .evidence-panel h2 { margin: 15px 0 9px; font-size: clamp(25px, 2.6vw, 35px); letter-spacing: -.05em; }
.panel-intro { margin: 0 0 26px; color: #71817a; font-size: 13px; line-height: 1.8; }
.score-bars { display: grid; gap: 22px; margin-top: 32px; }
.score-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.score-row-head strong { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.score-row-head span { color: #647773; font-size: 13px; font-weight: 700; }
.score-track { height: 11px; background: #e9ede5; border-radius: 999px; overflow: hidden; }
.score-track span { display: block; height: 100%; border-radius: 999px; background: var(--bar-color); transition: width .5s ease; }
.score-footnote { color: #8a968c; font-size: 12px; margin-top: 25px; line-height: 1.7; }
.evidence-list { display: grid; gap: 12px; margin-top: 25px; }
.evidence-item { display: grid; grid-template-columns: 43px 1fr; gap: 12px; padding: 16px 17px; border: 1px solid #e0e5da; border-radius: 15px; background: #f7f9f3; }
.evidence-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--evidence-color); color: white; font-size: 12px; font-weight: 900; }
.evidence-item small { display: block; color: #73877c; font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.evidence-item p { margin: 0; font-size: 14px; line-height: 1.65; font-weight: 650; }
.answer-details { margin-top: 20px; border: 1px solid #cfd9cf; border-radius: 18px; background: #edf2e8; overflow: hidden; }
.answer-details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: 20px 25px; font-size: 14px; font-weight: 800; }
.answer-details summary::-webkit-details-marker { display: none; }
.answer-details summary span { font-size: 20px; }
.answer-details[open] summary span { transform: rotate(45deg); }
#answerReview { padding: 0 25px 22px; display: grid; gap: 0; }
.review-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: start; gap: 14px; border-top: 1px solid #d3ddd2; padding: 13px 0; font-size: 13px; line-height: 1.65; }
.review-item span:first-child { color: #8a988a; font-weight: 900; }.review-item span:last-child { color: #3e7774; font-weight: 800; white-space: nowrap; }
.result-note { max-width: 840px; display: flex; gap: 16px; margin: 33px auto 0; color: #7d8b82; }
.result-note > span { color: var(--coral); font-size: 25px; }
.result-note p { font-size: 12px; line-height: 1.9; margin: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 14px; padding: 27px clamp(24px, 5vw, 80px); border-top: 1px solid var(--line); color: #8a978c; font-size: 11px; line-height: 1.5; }
.info-dialog { width: min(620px, calc(100vw - 24px)); max-height: min(820px, calc(100vh - 28px)); padding: clamp(24px, 4vw, 40px); border: 1px solid #d4dfd3; border-radius: 25px; background: var(--white); color: var(--ink); box-shadow: 0 30px 90px #14282a39; }
.info-dialog::backdrop { background: #172b2bb2; backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-close { width: 33px; height: 33px; border: 0; border-radius: 50%; color: var(--ink); background: #eef1e8; cursor: pointer; font-size: 23px; line-height: 1; }
.info-dialog h2 { font-size: 32px; margin: 20px 0 9px; letter-spacing: -.05em; }
.info-dialog h3 { font-size: 17px; margin: 24px 0 7px; }
.info-dialog p { color: #617571; font-size: 14px; line-height: 1.85; margin: 0; }
.info-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.info-roles div { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; padding: 13px; border: 1px solid #e1e7dc; border-radius: 12px; }
.info-roles strong { font-size: 13px; }.info-roles span { grid-column: 2; color: #7b8b82; font-size: 11px; margin-top: 3px; }
.dot { width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; }.dot-path { background: var(--coral); }.dot-bridge { background: var(--teal); }.dot-mend { background: var(--green); }.dot-record { background: var(--gold); }
.dialog-done { margin-top: 28px; }
.card-dialog { width: min(570px, calc(100vw - 20px)); max-height: calc(100vh - 20px); padding: 24px; border: 1px solid #d4dfd3; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 30px 90px #14282a39; text-align: center; }
.card-dialog::backdrop { background: #172b2bc4; backdrop-filter: blur(5px); }
.card-dialog .dialog-head { text-align: left; }.card-dialog h2 { font-size: 24px; margin: 14px 0 6px; }.card-dialog p { margin: 0 0 16px; color: #6c7c75; font-size: 12px; line-height: 1.7; }
.card-dialog img { display: block; width: min(100%, 390px); max-height: min(58vh, 520px); object-fit: contain; margin: 0 auto 18px; border-radius: 14px; box-shadow: 0 8px 22px #26383524; }
.card-download-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; transform: translate(-50%, 80px); opacity: 0; pointer-events: none; padding: 13px 20px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 10px 30px #1b302c30; font-size: 13px; font-weight: 700; transition: transform .25s ease, opacity .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .landing { grid-template-columns: 1fr; }
  .landing-copy { padding-top: 20px; }
  .landing h1 { max-width: 700px; }
  .landing-visual { max-width: 680px; min-height: 0; margin-top: 50px; transform: rotate(0); }
  .landing-visual img { min-height: 0; aspect-ratio: 1.22; }
  .result-layout { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 35px; }
  .identity-card { min-height: 555px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 67px; }.brand { font-size: 18px; }.brand-mark { width: 25px; height: 25px; }
  .text-button { font-size: 11px; }.view { padding: 29px 20px 58px; }
  .landing h1 { font-size: clamp(43px, 10vw, 65px); margin: 24px 0 23px; }.lead { font-size: 16px; }
  .landing-actions { margin-top: 32px; }.landing-stats { margin-top: 45px; }
  .landing-visual { margin-top: 36px; padding: 11px; border-radius: 23px; }.landing-visual img { border-radius: 15px; }
  .visual-label { top: 21px; left: 20px; max-width: calc(100% - 40px); font-size: 10px; }.visual-stamp { right: 20px; bottom: 18px; width: 84px; height: 84px; font-size: 9px; }
  .landing-bottom { margin-top: 48px; align-items: start; flex-direction: column; }.role-preview { justify-content: start; }
  .question-layout { grid-template-columns: 1fr; gap: 25px; padding-top: 38px; }.question-side { display: none; }.question-main h2 { margin-bottom: 24px; font-size: 30px; }
  .result-layout, .result-details { grid-template-columns: 1fr; }.result-layout { gap: 50px; }.identity-card { width: min(100%, 440px); min-height: 590px; margin: auto; }.result-details { margin-top: 75px; }
  .site-footer { flex-direction: column; gap: 5px; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .brand-small { display: none; }.landing h1 { font-size: 43px; }
  .landing-stats { gap: 12px; justify-content: space-between; }.landing-stats div { min-width: 0; flex-direction: column; gap: 0; }.landing-stats strong { font-size: 24px; }
  .landing-visual img { aspect-ratio: 1.06; }.visual-stamp { display: none; }
  .question-main h2 { font-size: 27px; }.option { min-height: 72px; padding: 12px 13px; gap: 12px; }.option-letter { flex-basis: 32px; height: 32px; }.option-text { font-size: 14px; }
  .question-controls { align-items: stretch; }.question-controls > .button { min-width: 70px; padding-left: 10px; padding-right: 10px; }.question-controls-right { gap: 7px; }.question-controls-right .button { padding-left: 11px; padding-right: 11px; font-size: 13px; }.question-controls-right .button-primary span { margin-left: 4px; }
  .identity-card { min-height: 540px; padding: 20px; }.identity-art { height: 270px; }.identity-card h1 { font-size: 58px; }.result-summary h2 { font-size: 34px; }.summary-copy { font-size: 15px; }
  .result-actions .button { flex: 1 1 auto; }.score-panel, .evidence-panel { padding: 25px 20px; }.review-item { grid-template-columns: 40px 1fr; }.review-item span:last-child { grid-column: 2; }
  .info-roles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
