:root {
  color-scheme: light;
  --ink: #16353b;
  --ink-soft: #52696b;
  --muted: #718789;
  --sea: #176d72;
  --sea-dark: #0c5057;
  --sea-light: #dcefee;
  --sky: #eaf5f5;
  --paper: #fbfaf5;
  --white: #fffefa;
  --sun: #f1c15a;
  --sun-pale: #fff4d7;
  --line: #dce7e3;
  --right: #236b4b;
  --right-bg: #e9f5eb;
  --wrong: #a5503f;
  --wrong-bg: #fff0e9;
  --shadow: 0 18px 44px rgba(22, 53, 59, 0.08);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 14%, rgba(23, 109, 114, .055) 0 1px, transparent 1.5px) 0 0 / 21px 21px,
    var(--paper);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible + .option-letter { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }
.site-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 110px; border-bottom: 1px solid rgba(22, 53, 59, .12); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 156px; max-height: 96px; height: auto; object-fit: contain; }
.topbar-note { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; }
.status-dot, .footnote-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #61a688; box-shadow: 0 0 0 4px rgba(97, 166, 136, .13); }
main { min-height: 600px; }
.start-screen { padding: 36px 0 54px; }
.hero-photo { position: relative; height: clamp(230px, 34vw, 370px); overflow: hidden; border-radius: 22px 22px 6px 22px; background: #c7e0df; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-photo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 44, 49, .10), transparent 62%), linear-gradient(0deg, rgba(9, 44, 49, .14), transparent 42%); }
.photo-tag { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--ink); border-radius: 99px; background: rgba(255, 254, 250, .93); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.intro-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 8%; padding: 42px 7% 40px 5.5%; }
.intro-copy { max-width: 600px; }
.eyebrow, .tiny-label { margin: 0; color: var(--sea); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow i { width: 24px; height: 1px; background: var(--sun); }
h1, h2, h3, p { margin-top: 0; }
.intro-copy h1 { margin: 17px 0 16px; font-size: clamp(38px, 5.3vw, 62px); line-height: 1.16; letter-spacing: -.035em; }
.intro-copy h1 em { color: var(--sea); font-style: normal; }
.intro-text { max-width: 470px; margin-bottom: 25px; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 7px; font-weight: 750; transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--sea-dark); box-shadow: 4px 4px 0 var(--sun); }
.button-primary:hover:not(:disabled) { background: var(--sea); }
.button-large { min-height: 56px; padding-inline: 25px; }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.mission-card { align-self: stretch; padding: 23px 25px 19px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: var(--white); box-shadow: var(--shadow); transform: rotate(.6deg); }
.mission-card-heading { display: flex; align-items: center; justify-content: space-between; }
.mission-number { color: #94a8a5; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.mission-stat { display: flex; align-items: baseline; gap: 12px; margin: 19px 0 13px; }
.mission-stat strong { color: var(--sea-dark); font-size: 50px; line-height: 1; letter-spacing: -.06em; }
.mission-stat span { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.mission-divider { display: flex; align-items: center; gap: 6px; margin: 15px 0; }
.mission-divider span { width: 5px; height: 5px; border-radius: 50%; background: #c7dcd5; }
.mission-divider span:first-child, .mission-divider span:last-child { width: 8px; height: 8px; background: var(--sun); }
.mission-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.mission-topics span { color: var(--ink-soft); font-size: 12px; }
.mission-topics span::before { content: '↗'; margin-right: 6px; color: var(--sea); font-weight: 900; }
.mission-note { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.65; }
.mission-stat strong { font-size: clamp(38px, 4.2vw, 50px); }
.safety-note { display: flex; align-items: flex-start; gap: 13px; margin: 0 5.5%; padding: 17px 19px; border-left: 3px solid var(--sun); background: var(--sun-pale); }
.safety-icon { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; color: var(--white); background: #8b713a; font-size: 12px; font-weight: 900; }
.safety-note p { margin: 0; color: #635639; font-size: 12px; line-height: 1.8; }
.safety-note strong { color: #4d4129; margin-right: 6px; }
.site-footer { display: flex; justify-content: space-between; gap: 22px; padding: 18px 0 25px; border-top: 1px solid rgba(22, 53, 59, .13); color: var(--muted); font-size: 10px; line-height: 1.6; }
.footer-cross { padding: 0 5px; color: var(--sun); }
.quiz-screen { padding: 49px 0 44px; }
.quiz-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 23px; padding: 0 2px 15px; border-bottom: 1px solid var(--line); }
.quiz-heading h1 { margin: 7px 0 0; font-size: clamp(27px, 3.5vw, 38px); letter-spacing: -.03em; }
.text-button { padding: 8px 0 8px 10px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.text-button span { margin-left: 6px; font-size: 18px; vertical-align: -2px; }
.quiz-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: clamp(24px, 6vw, 74px); align-items: start; }
.progress-rail { position: sticky; top: 22px; padding-top: 28px; }
.route-track { position: relative; width: 2px; height: 136px; margin: 17px 0 10px 5px; border-radius: 5px; background: #d4e2dc; }
.route-track::after { position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border: 2px solid var(--sea); border-radius: 50%; background: var(--paper); content: ''; }
#route-progress { position: absolute; left: 0; top: 0; width: 2px; height: var(--progress, 10%); border-radius: inherit; background: var(--sea); transition: height .35s ease; }
.route-count { display: flex; align-items: baseline; gap: 4px; margin: 0; color: #9aacaa; font-size: 16px; }
.route-count strong { color: var(--sea-dark); font-size: 34px; letter-spacing: -.06em; }
.route-caption { margin: 3px 0 27px; color: var(--muted); font-size: 11px; }
.rail-tip { display: flex; align-items: flex-start; gap: 10px; max-width: 170px; padding-top: 16px; border-top: 1px solid var(--line); }
.tip-spark { color: #d59e2f; font-size: 19px; }
.rail-tip p { margin: 2px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.question-panel { min-width: 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: var(--white); box-shadow: var(--shadow); }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-pill { padding: 7px 12px; border-radius: 99px; color: var(--sea-dark); background: var(--sea-light); font-size: 11px; font-weight: 800; }
#question-counter { color: var(--muted); font-size: 12px; font-weight: 650; }
.question-title { margin: 23px 0 8px; font-size: clamp(21px, 3vw, 29px); line-height: 1.55; letter-spacing: -.02em; }
.question-visual { display: flex; align-items: center; gap: 16px; margin: 16px 0 20px; padding: 16px 19px; border: 1px solid #d7e8e2; border-radius: 12px 12px 12px 3px; background: linear-gradient(110deg, #eef8f4, #fbf7e9); }
.question-emoji { display: grid; place-items: center; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.82); box-shadow: 0 3px 12px rgba(22,53,59,.08); font-size: 36px; }
.question-visual-copy { display: grid; gap: 5px; }
.question-visual-copy strong { color: var(--sea-dark); font-size: 11px; letter-spacing: .08em; }
.question-visual-copy span { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.55; }
.select-hint { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.answer-options { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.answer-option { position: relative; display: grid; grid-template-columns: 1px 34px minmax(0, 1fr) 18px; align-items: center; gap: 11px; min-height: 62px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.answer-option:hover { border-color: #78aaa2; background: #f7fbf9; transform: translateX(2px); }
.answer-option input { width: 1px; height: 1px; margin: 0; opacity: 0; }
.option-letter { display: grid; place-items: center; grid-column: 2; width: 30px; height: 30px; border: 1px solid #cddbd6; border-radius: 6px; color: var(--ink-soft); background: #f9fbf8; font-size: 12px; font-weight: 800; }
.option-text { display: grid; grid-column: 3; gap: 4px; color: var(--ink); line-height: 1.65; }
.option-child { font-size: 14px; font-weight: 700; }
.option-source { color: var(--muted); font-size: 10px; line-height: 1.5; }
.option-check { grid-column: 4; color: transparent; font-size: 17px; font-weight: 900; }
.answer-option:has(input:checked) { border-color: var(--sea); background: #f1f8f5; box-shadow: inset 0 0 0 1px var(--sea); }
.answer-option:has(input:checked) .option-letter { color: var(--white); border-color: var(--sea); background: var(--sea); }
.answer-option:has(input:checked) .option-check { color: var(--sea); }
.answer-option.is-correct { border-color: #77af8d; background: var(--right-bg); }
.answer-option.is-correct .option-letter { color: white; border-color: var(--right); background: var(--right); }
.answer-option.is-wrong { border-color: #d99886; background: var(--wrong-bg); }
.answer-option.is-wrong .option-letter { color: white; border-color: var(--wrong); background: var(--wrong); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.selection-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
.feedback { margin-top: 22px; padding: 19px; border-left: 3px solid var(--sea); border-radius: 3px 8px 8px 3px; background: var(--sea-light); }
.feedback.is-correct { border-color: var(--right); background: var(--right-bg); }
.feedback.is-wrong { border-color: var(--wrong); background: var(--wrong-bg); }
.feedback-top { display: flex; align-items: center; gap: 10px; }
.feedback-symbol { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--sea); font-size: 15px; font-weight: 900; }
.feedback.is-correct .feedback-symbol { background: var(--right); }
.feedback.is-wrong .feedback-symbol { background: var(--wrong); }
.feedback-top h3 { margin: 0; font-size: 16px; }
.feedback-answer { margin: 12px 0 6px; font-size: 13px; font-weight: 800; line-height: 1.6; }
.feedback-why { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.button-next { min-height: 40px; margin-top: 15px; padding: 0 16px; color: var(--white); background: var(--ink); font-size: 12px; }
.button-next:hover { background: var(--sea-dark); }
.quiz-footnote { display: flex; align-items: center; gap: 11px; margin: 18px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.footnote-dot { width: 6px; height: 6px; box-shadow: none; background: var(--sun); }
.result-screen { max-width: 740px; margin: 0 auto; padding: 60px 0 70px; text-align: center; }
.result-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 12px; border-radius: 99px; color: var(--sea-dark); background: var(--sea-light); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.result-spark { color: #ca942a; font-size: 16px; }
.result-screen h1 { margin: 8px 0; font-size: clamp(34px, 5vw, 48px); }
.result-message { min-height: 27px; margin-bottom: 23px; color: var(--ink-soft); font-size: 15px; }
.score-panel { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 480px; margin: 0 auto 26px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); text-align: left; }
.score-number { display: flex; align-items: baseline; gap: 4px; min-width: 116px; color: var(--sea-dark); }
.score-number strong { font-size: 62px; line-height: 1; letter-spacing: -.07em; }
.score-number span { color: var(--muted); font-weight: 700; }
.score-panel p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.topic-results { max-width: 480px; margin: 0 auto 26px; text-align: left; }
.topic-results h2 { margin-bottom: 10px; font-size: 14px; }
.topic-results ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-results li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--white); font-size: 11px; }
.topic-results li strong { color: var(--sea-dark); }
.result-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 760px) {
  .site-shell { width: min(100% - 32px, 620px); }
  .topbar { min-height: 92px; }
  .brand-logo { width: 130px; max-height: 80px; }
  .topbar-note { font-size: 11px; }
  .start-screen { padding-top: 22px; }
  .hero-photo { height: 245px; border-radius: 15px 15px 4px 15px; }
  .hero-photo img { object-position: center 12%; }
  .intro-layout { grid-template-columns: 1fr; gap: 24px; padding: 29px 3% 28px; }
  .intro-copy h1 { margin-top: 12px; font-size: clamp(40px, 11vw, 56px); }
  .intro-text { font-size: 14px; }
  .mission-card { transform: none; padding: 19px 21px 16px; }
  .safety-note { margin: 0 3%; padding: 14px; }
  .safety-note p { font-size: 11px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 15px 0 20px; }
  .quiz-screen { padding: 31px 0; }
  .quiz-layout { grid-template-columns: 1fr; gap: 12px; }
  .progress-rail { position: static; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 4px; }
  .progress-rail .tiny-label { grid-column: 1 / 2; }
  .route-track { grid-column: 2 / 3; grid-row: 1; width: auto; height: 3px; margin: 0; }
  .route-track::after { top: -3px; left: 0; }
  #route-progress { width: var(--progress, 10%); height: 3px; transition: width .35s ease; }
  .route-count { grid-column: 3; grid-row: 1; font-size: 12px; }
  .route-count strong { font-size: 20px; }
  .route-caption, .rail-tip { display: none; }
  .question-panel { padding: 23px 19px; }
  .question-title { margin-top: 20px; font-size: 22px; }
  .question-visual { gap: 12px; margin: 13px 0 17px; padding: 13px; }
  .question-emoji { flex-basis: 58px; width: 58px; height: 58px; font-size: 31px; }
  .question-visual-copy span { font-size: 14px; }
  .answer-option { grid-template-columns: 1px 31px minmax(0, 1fr) 14px; gap: 8px; min-height: 58px; padding: 9px 11px; }
  .option-child { font-size: 13px; }
  .option-source { font-size: 10px; }
  .submit-row { align-items: flex-end; }
  .selection-hint { max-width: 44%; }
  .result-screen { padding: 44px 0 54px; }
}
@media (max-width: 390px) {
  .site-shell { width: calc(100% - 24px); }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 7px; }
  .brand-mark { width: 39px; height: 39px; }
  .topbar-note { gap: 6px; font-size: 10px; }
  .hero-photo { height: 205px; }
  .photo-tag { right: 10px; bottom: 10px; font-size: 10px; }
  .quiz-heading { align-items: center; }
  .quiz-heading h1 { font-size: 27px; }
  .text-button { font-size: 11px; }
  .question-panel { padding: 20px 14px; }
  .question-meta { align-items: flex-start; }
  .question-meta #question-counter { padding-top: 7px; font-size: 11px; }
  .answer-option { grid-template-columns: 1px 29px minmax(0, 1fr) 12px; gap: 7px; padding-inline: 8px; }
  .option-letter { width: 27px; height: 27px; }
  .option-child { font-size: 12px; }
  .option-source { font-size: 9px; }
  .topic-results ul { grid-template-columns: 1fr; }
  .score-panel { gap: 14px; padding: 18px; }
  .score-number { min-width: 100px; }
  .score-number strong { font-size: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 430px) {
  .intro-copy h1 { font-size: clamp(30px, 8.1vw, 38px); letter-spacing: -.035em; }
  .intro-copy h1 em { white-space: nowrap; font-size: .82em; }
}
@media (min-width: 431px) {
  .intro-copy h1 { font-size: clamp(32px, 3.8vw, 48px); }
}


/* ---------- 浮水印 / 防複製 / 回官網 ---------- */
.wm { position: fixed; inset: -50%; z-index: 9999; pointer-events: none; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 54px 70px; transform: rotate(-24deg); user-select: none; overflow: hidden; }
.wm span { font-size: 19px; font-weight: 700; letter-spacing: .06em; color: #1A3A7A; opacity: .075; white-space: nowrap; }
main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.back-link { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.copyright { display: block; margin-top: 6px; opacity: .8; }
@media print { body * { display: none !important; } body::before { content: "本測驗內容受著作權保護，請勿列印。 © 飛吧國際 FLY8 International"; display: block; padding: 40px; font-size: 18px; } }
