:root { color-scheme: light; --paper: #f6f3ec; --ink: #303b34; --muted: #747a70; --line: #d9dacf; --green: #536b59; --wash: #e8ede5; --white: #fcfbf7; font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 3%, #e9eddf88, transparent 40%); min-height: 100svh; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
a { color: var(--green); }
.serif, h1, h2, h3, .brand, .letter { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif; font-weight: 400; }
.shell { max-width: 880px; margin: 0 auto; padding: 0 28px 36px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 90px; border-bottom: 1px solid var(--line); }
.brand { font-size: 32px; letter-spacing: .14em; }
.text-button { border: 0; background: transparent; padding: 9px 2px; min-height: 44px; color: var(--green); font-size: 13px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin: 0 0 22px; }
.intro { max-width: 580px; margin: 32px 0 0; position: relative; }
.intro h1 { font-size: clamp(35px, 6vw, 48px); line-height: 1.55; letter-spacing: .06em; margin: 0 0 18px; }
.hero-last-line { display: inline-block; }
.hero-last-line i { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.intro .lead { color: var(--muted); font-size: 14px; line-height: 2; max-width: 410px; margin: 0 0 36px; }
.mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 25px 0; }
.mode { text-align: left; border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: 19px; }
.mode[aria-pressed="true"] { border-color: var(--green); background: var(--wash); }
.mode strong { font-weight: 400; display: block; font-size: 18px; margin-bottom: 8px; }
.mode span { font-size: 12px; color: var(--muted); line-height: 1.7; display: block; }
label.field { display: block; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.primary, .secondary { border: 1px solid var(--green); border-radius: 3px; min-height: 46px; padding: 12px 24px; font-size: 14px; }
.primary { background: var(--green); color: var(--white); }
.secondary { background: transparent; border-color: var(--line); }
.subtle { color: var(--muted); font-size: 12px; line-height: 1.8; }
.intro .subtle { margin-top: 23px; margin-bottom: 0; }
.footer { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-align: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 60px; line-height: 2; }
.footer.footer-home { border-top: 0; margin-top: 0; padding-top: 0; }
.footer-credits { margin: 0 0 24px; text-align: left; font-size: 12px; line-height: 1.8; letter-spacing: 0; overflow-wrap: anywhere; }
.footer-wordmark { display: block; width: 100%; height: auto; max-width: 744px; margin: 0 auto; color: var(--green); }
.wordmark-flourish { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.contact-link { display: flex; align-items: center; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid #aeb8ab; color: var(--ink); font-size: 13px; line-height: 1.8; text-decoration: none; overflow-wrap: anywhere; }
.contact-link:hover { border-color: var(--green); background: var(--wash); }
.contact-feedback { color: #995a49; border-color: #c7a89b; }
.banner { margin: 22px 0; border: 1px solid #cfc5ac; padding: 16px 20px; background: #f1eadc; font-size: 13px; line-height: 1.8; }
.banner .actions { margin-top: 10px; }
.question-wrap { max-width: 620px; margin: 33px auto 0; }
.progress-line { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
progress { width: 100%; height: 3px; border: 0; border-radius: 0; display: block; appearance: none; background: var(--line); accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.question-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .13em; color: var(--muted); margin: 35px 0 18px; }
.question-title { font-size: clamp(23px, 4vw, 29px); line-height: 1.65; letter-spacing: .025em; margin: 0 0 28px; min-height: 76px; }
.question-title:focus { outline: none; }
.answers { border: 0; padding: 0; margin: 0; display: grid; gap: 11px; min-width: 0; }
.option { position: relative; display: flex; align-items: center; gap: 16px; min-height: 65px; padding: 16px 18px; background: #fcfbf788; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 14px; line-height: 1.8; }
.option:has(input:checked) { background: var(--wash); border-color: var(--green); }
.option:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.letter { color: var(--muted); font-size: 18px; min-width: 18px; }
.option:has(input:checked) .letter { color: var(--green); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
.question-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 27px; }
.question-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.question-bottom .text-button { font-size: 11px; }
.result { max-width: 660px; margin: 50px auto 0; }
.result-head { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 28px; }
.result-head h1 { margin: 16px 0; font-size: clamp(30px, 5vw, 42px); line-height: 1.6; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 11px; color: var(--green); background: var(--wash); padding: 6px 10px; letter-spacing: .07em; border-radius: 2px; }
.profile-card { border-top: 1px solid var(--line); padding: 28px 0; }
.profile-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 15px; }
.profile-top h2 { margin: 0; font-size: 29px; }
.points { color: var(--muted); font-size: 12px; white-space: nowrap; }
.portrait { font-size: 17px; line-height: 2; margin: 20px 0; }
.evidence-label { color: var(--muted); font-size: 14px; margin-top: 24px; }
.evidence { list-style: none; margin: 12px 0 0; padding: 0; }
.evidence li { border-left: 1px solid #a9b6a2; padding: 0 0 0 14px; margin: 16px 0; }
.evidence small { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; }
.evidence p { font-size: 16px; line-height: 1.9; margin: 5px 0 0; }
details { font-size: 12px; line-height: 1.9; margin-top: 14px; }
summary { cursor: pointer; color: var(--green); padding: 7px 0; }
.score-list { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 16px; }
.score-row { padding: 8px 0; margin: 0; border-bottom: 1px solid #dedfd555; }
.score-row summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.score-row summary::-webkit-details-marker { display: none; }
.score-row summary > span:first-child { color: var(--ink); min-width: 75px; }
.score-bar { display: block; width: 100%; max-width: 180px; height: 2px; background: var(--line); margin-left: auto; }
.score-bar i { display: block; background: #7a8b75; height: 2px; }
.comparison { padding: 18px 20px; background: #eeeede; margin: 20px 0; font-size: 13px; line-height: 1.9; }
.feedback { margin-top: 38px; border: 1px solid var(--line); padding: 26px; border-radius: 3px; }
.feedback h2 { font-size: 23px; margin: 0 0 12px; }
.feedback fieldset { padding: 0; border: 0; margin: 20px 0; }
.feedback legend { font-size: 13px; margin-bottom: 14px; }
.rating { display: flex; gap: 10px; }
.rating label { flex: 1; position: relative; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: block; text-align: center; border: 1px solid var(--line); padding: 10px; font-family: Georgia, serif; font-size: 19px; cursor: pointer; }
.rating input:checked + span { border-color: var(--green); background: var(--wash); }
.rating input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.rating-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 7px; }
textarea { width: 100%; color: var(--ink); border: 1px solid var(--line); padding: 12px; background: var(--white); min-height: 90px; border-radius: 2px; margin-top: 8px; resize: vertical; line-height: 1.8; font-size: 13px; }
.issue-add { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
select { min-width: 0; width: 100%; padding: 11px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.issue-add button { flex-shrink: 0; padding: 10px 14px; }
.issue-record { margin-top: 18px; }
.issue-record > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.review-button { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; line-height: 1.8; font-size: 12px; }
.review-button span { display: block; color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 14px; z-index: 2; background: var(--white); padding: 10px; }
.skip:focus { top: 10px; }
.boot { padding: 35px; color: var(--muted); }
.empty { padding: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.image-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #26352b99; overflow-y: auto; }
.image-dialog { width: min(100%, 560px); min-width: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--paper); padding: 20px; border-radius: 4px; }
.image-dialog:focus { outline: none; }
.image-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.image-header h2 { margin: 0; font-size: 23px; }
.image-status { min-height: 120px; font-size: 14px; line-height: 2; color: var(--muted); }
.result-image { display: block; width: 100%; height: auto; margin: 0; -webkit-touch-callout: default; user-select: auto; }
.image-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.image-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
@media (max-width: 560px) {
  .shell { padding: 0 21px 28px; }
  .header { min-height: 64px; }
  .brand { font-size: 30px; }
  .intro { margin-top: 28px; }
  .intro .eyebrow { margin-bottom: 16px; }
  .intro h1 { font-size: clamp(30px, 8vw, 36px); line-height: 1.5; }
  .intro .lead { margin-bottom: 24px; }
  .mode { padding: 12px; }
  .mode strong { font-size: clamp(14px, 3.8vw, 16px); white-space: nowrap; letter-spacing: 0; }
  .mode span { font-size: 11px; }
  .question-wrap { margin-top: 24px; }
  .question-meta { margin-top: 27px; }
  .question-title { font-size: 23px; margin-bottom: 22px; min-height: 75px; }
  .option { padding: 14px; min-height: 64px; gap: 12px; font-size: 13px; }
  .question-nav { margin-top: 22px; }
  .result { margin-top: 36px; }
  .result details { font-size: 16px; }
  .result-head .subtle, .result .comparison { font-size: 15px; }
  .feedback { padding: 20px 16px; }
  textarea, select { font-size: 16px; }
  .score-bar { max-width: 100px; }
  .footer { margin-top: 28px; padding-top: 14px; }
  .contact-panel { grid-template-columns: 1fr; gap: 10px; }
  .image-dialog { padding: 16px 12px; }
  .actions > .primary { flex-grow: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .option { transition: background-color .15s, border-color .15s; }
}

/* Preserve the desktop serif glyph design on phones without device font fallback. */
@font-face { font-family:"OCTI Web Serif"; src:url('./fonts/octi-serif.woff2') format('woff2'); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"OCTI Web Sans"; src:url('./fonts/octi-sans.woff2') format('woff2'); font-style:normal; font-weight:400; font-display:swap; }
.serif,h1,h2,h3,.brand,.letter { font-family:"OCTI Web Serif","Noto Serif CJK SC","Source Han Serif SC","Songti SC",SimSun,serif; }
@media (max-width:768px) { :root { font-family:"OCTI Web Sans",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; } }
