:root { --navy: #021434; --yellow: #fed455; --ink: #1d2433; --sub: #5a6478; --line: #e3e7ef; --blue: #1f4fa3; --bg: #f3f5f9; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans TC", system-ui, -apple-system, sans-serif; line-height: 1.6; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 22px 20px; }
.tag { display: inline-flex; border: 1.5px solid var(--yellow); border-radius: 99px; overflow: hidden; font-weight: 900; font-size: 13px; }
.tag b { padding: 2px 10px; }
.tag b:first-child { background: var(--yellow); color: var(--navy); }
.tag b:last-child { color: var(--yellow); }
h1 { font-size: 28px; font-weight: 900; line-height: 1.3; margin: 14px 0 6px; }
h1 em { color: var(--yellow); font-style: normal; }
.hero p { margin: 6px 0 0; color: #dfe6f3; font-size: 15px; }
.hero .sub { color: var(--yellow); font-weight: 700; }
.card { background: #fff; border-radius: 14px; padding: 18px; margin-top: 14px; box-shadow: 0 1px 3px rgba(2, 20, 52, .06); }
.q { font-weight: 900; color: var(--navy); font-size: 16px; margin: 0 0 10px; }
.q .n { display: inline-block; background: var(--yellow); color: var(--navy); border-radius: 6px; padding: 0 7px; margin-right: 6px; font-size: 14px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; cursor: pointer; font-size: 15px; background: #fff; }
.opt input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--navy); background: #eef2fa; font-weight: 700; }
input[type=text], input[type=number], textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 16px; background: #fff; }
textarea { min-height: 84px; resize: vertical; }
label.f { display: block; font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.req { color: #c62828; margin-left: 2px; }
.btn { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--navy); color: var(--yellow); font: 900 18px "Noto Sans TC", sans-serif; padding: 15px; cursor: pointer; margin-top: 16px; text-align: center; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.alt { background: var(--yellow); color: var(--navy); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.privacy { font-size: 13px; color: var(--sub); margin-top: 10px; }
.err { color: #c62828; font-weight: 700; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.missing { outline: 2px solid #c62828; outline-offset: 4px; border-radius: 12px; }
/* 結果 */
.res-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.res-score .big { font-size: 46px; font-weight: 900; color: var(--navy); line-height: 1; }
.res-score .lv { background: var(--yellow); color: var(--navy); font-weight: 900; border-radius: 8px; padding: 2px 10px; font-size: 16px; }
.res-hours { font-size: 17px; margin: 12px 0 0; }
.res-hours b { color: var(--blue); font-size: 22px; }
.res-note { color: var(--sub); margin: 10px 0 0; }
.res-top { background: #fffbea; border-left: 4px solid var(--yellow); padding: 10px 12px; margin-top: 12px; font-weight: 700; }
.thanks { font-weight: 700; color: var(--navy); margin-top: 6px; }
/* 100 清單 */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.how div { background: #fff; border-radius: 10px; padding: 10px; font-size: 13px; color: var(--sub); }
.how b { display: block; color: var(--navy); font-size: 14px; }
.sec h2 { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 900; margin: 22px 0 6px; padding: 9px 12px; border-radius: 10px; position: sticky; top: 0; z-index: 2; }
.sec h2 .no { background: var(--yellow); color: var(--navy); border-radius: 5px; padding: 0 7px; font-size: 14px; }
.sec h2 .cnt { margin-left: auto; font-size: 13px; color: var(--yellow); font-weight: 700; }
.item { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 11px 12px; margin-top: 6px; cursor: pointer; border: 1.5px solid transparent; }
.item input { accent-color: var(--navy); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.item .num { flex: none; width: 26px; font-weight: 900; color: var(--blue); text-align: right; }
.item .before { font-size: 15px; }
.item .after { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.item .after::before { content: "→ "; color: #d99a00; font-weight: 900; }
.item:has(input:checked) { border-color: var(--navy); background: #eef2fa; }
.star { flex: none; margin-left: auto; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 2px 8px; font-size: 12px; color: var(--sub); cursor: pointer; display: none; white-space: nowrap; }
.item:has(input:checked) .star { display: inline-block; }
.star.on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 900; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.bar .in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .count { font-weight: 900; font-size: 16px; }
.bar .count b { color: var(--yellow); font-size: 22px; }
.bar .btn { width: auto; margin: 0 0 0 auto; padding: 10px 18px; font-size: 16px; background: var(--yellow); color: var(--navy); }
.levels div { padding: 8px 10px; border-radius: 8px; margin-top: 6px; background: var(--bg); font-size: 14px; }
.levels div.on { background: #fff6d6; outline: 2px solid var(--yellow); font-weight: 700; }
.top3 li { margin: 4px 0; font-weight: 700; }
@media (max-width: 420px) { h1 { font-size: 25px; } .how { grid-template-columns: 1fr; } }
