:root{--ink:#16323f;--ink-2:#4a6270;--muted:#7b8f99;--deep:#0d3a52;--river:#1d7591;--shallow:#cfe6ec;--mist:#eef6f8;--sand:#f6f1e7;--clay:#c8743a;--line:#dbe5e9;
--sans:"Noto Sans TC",system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--mist);line-height:1.7;font-size:16px}
a{color:var(--river)}
.sw-top{position:sticky;top:0;z-index:1000;display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;padding-top:env(safe-area-inset-top);background:var(--deep);color:#fff}
.sw-top b{flex:1;font-size:17px;letter-spacing:.05em}
.sw-top img{border-radius:6px;background:#fff}
.sw-back{color:#fff;text-decoration:none;font-size:30px;line-height:1;width:32px;text-align:center}
.sw-link{color:#fff;font-size:14px;border:1px solid rgba(255,255,255,.6);border-radius:999px;padding:4px 12px;text-decoration:none}
.sw-main{max-width:560px;margin:0 auto;padding:12px 12px 40px}
.sw-intro h1{font-size:22px;margin:8px 4px 4px;color:var(--deep)}
.sw-intro p{margin:0 4px 12px;color:var(--ink-2)}
.sw-note{background:#fff4e6;border:1px solid #f0c48f;color:#8a4b12;border-radius:12px;padding:10px 14px;margin:0 0 12px}
.card{background:#fff;border:0;border-radius:16px;padding:16px;margin:0 0 12px;box-shadow:0 1px 0 var(--line)}
fieldset.card{min-width:0}
legend{float:left;width:100%;font-weight:700;font-size:17px;margin-bottom:10px;padding:0}
legend span{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--river);color:#fff;font-size:14px;margin-right:8px}
legend em{font-style:normal;font-weight:400;font-size:13px;color:var(--muted);margin-left:6px}
.hint{font-size:13px;color:var(--muted);margin:8px 0 0;clear:both}
.hint.priv{color:var(--river)}
.q{font-weight:500;margin:14px 0 6px;clear:both}.q small{color:var(--muted);font-weight:400}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:10px 18px;border-radius:999px;border:2px solid var(--river);background:var(--river);color:#fff;font:700 16px var(--sans);text-decoration:none;cursor:pointer}
.btn.outline{background:#fff;color:var(--river)}
.btn.wide{width:100%;margin-top:8px}
.btn.send{width:100%;min-height:56px;font-size:18px;background:var(--clay);border-color:var(--clay)}
.btn:disabled{opacity:.6}
.sw-photo-btn{display:flex;justify-content:center;align-items:center;min-height:56px;border:2px dashed var(--river);border-radius:14px;color:var(--river);font-weight:700;cursor:pointer;clear:both}
.sw-photo-btn input{position:absolute;opacity:0;width:1px;height:1px}
.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.th{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--shallow)}
.th img{width:100%;height:100%;object-fit:cover}
.th button{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:18px;line-height:1}
.mini-map{height:240px;border-radius:12px;margin-top:10px;z-index:0}
.chips{display:flex;flex-wrap:wrap;gap:8px;clear:both}
.chips label{position:relative}
.chips input{position:absolute;opacity:0}
.chips span{display:flex;flex-direction:column;justify-content:center;min-height:44px;padding:6px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font-size:15px;line-height:1.35}
.chips span small{font-size:12px;color:var(--muted)}
.chips input:checked+span{border-color:var(--river);background:var(--mist);color:var(--deep);font-weight:700;box-shadow:inset 0 0 0 1px var(--river)}
.chips input:focus-visible+span{outline:3px solid var(--shallow)}
.stepper{display:flex;align-items:center;gap:10px;clear:both}
.stepper button{width:52px;height:52px;border-radius:50%;border:2px solid var(--river);background:#fff;color:var(--river);font-size:26px;line-height:1}
.stepper input{width:90px;height:52px;text-align:center;font-size:22px;border:1.5px solid var(--line);border-radius:12px}
.field{display:block;margin:0 0 12px;font-weight:500;clear:both}
.field small{color:var(--muted);font-weight:400}
.field input,textarea{display:block;width:100%;margin-top:4px;min-height:48px;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;font:16px var(--sans);clear:both}
.check{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink-2)}
.check input{width:22px;height:22px;flex:none;margin-top:2px}
.hp{position:absolute;left:-9999px}
.err{background:#fdecea;color:#a12a1c;border-radius:12px;padding:10px 14px}
.done{text-align:center}.done h2{color:var(--deep)}
.sw-foot{text-align:center;font-size:12px;color:var(--muted);padding:20px 12px 32px}
/* map page */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 12px}
.stat{background:#fff;border-radius:14px;padding:10px 12px}
.stat b{display:block;font-size:24px;color:var(--deep);line-height:1.2}
.stat span{font-size:13px;color:var(--muted)}
@media(min-width:520px){.stats{grid-template-columns:repeat(4,1fr)}}
.tabs{display:flex;gap:6px;margin:0 0 10px;background:#fff;padding:4px;border-radius:999px}
.tabs button{flex:1;min-height:42px;border:0;border-radius:999px;background:none;font:500 15px var(--sans);color:var(--ink-2)}
.tabs button[aria-selected="true"]{background:var(--river);color:#fff}
.big-map{height:62vh;min-height:360px;border-radius:16px;z-index:0}
.legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin:8px 4px 0;flex-wrap:wrap}
.legend i{display:inline-block;width:16px;height:12px;border-radius:3px}
.board h3{font-size:16px;margin:0 0 2px;color:var(--deep)}
.board p.d{font-size:13px;color:var(--muted);margin:0 0 8px}
.board ol{list-style:none;margin:0;padding:0}
.board li{display:flex;align-items:center;gap:10px;padding:9px 2px;border-top:1px solid var(--mist)}
.board li .r{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;background:var(--mist);color:var(--deep);flex:none}
.board li:nth-child(1) .r{background:#e7b84a;color:#fff}.board li:nth-child(2) .r{background:#a9b7bf;color:#fff}.board li:nth-child(3) .r{background:#c8743a;color:#fff}
.board li .n{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board li .v{font-weight:700;color:var(--river)}
.empty{color:var(--muted);text-align:center;padding:18px 0;font-size:14px}
.cta{position:sticky;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--mist) 30%)}
.cta .btn{width:100%;min-height:54px;font-size:17px;background:var(--clay);border-color:var(--clay);box-shadow:0 6px 18px rgba(13,58,82,.2)}
.upd{font-size:12px;color:var(--muted);text-align:right;margin:-4px 4px 8px}
.code-card{background:#fff8ee;box-shadow:none;border:1px solid #f0dcc0;padding:12px 16px}
.code-card ul{margin:4px 0 4px;padding-left:1.2em;font-size:14px;color:var(--ink-2)}
.code-card a{font-size:13px}
.check+.check{margin-top:10px}
.season{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.season label{font-size:14px;color:var(--ink-2)}
.season select{flex:1;min-height:44px;border:1.5px solid var(--line);border-radius:12px;padding:0 12px;font:500 16px var(--sans);background:#fff;color:var(--deep)}
.returned{background:#fff;border-radius:14px;padding:10px 14px;margin:0 0 10px;font-size:15px}
.returned b{color:var(--clay)}
.hero-ph{margin:0 0 12px;border-radius:16px;overflow:hidden;position:relative;background:var(--shallow)}
.hero-ph img{display:block;width:100%;height:clamp(140px,38vw,240px);object-fit:cover}
.hero-ph.band img{height:clamp(96px,26vw,160px)}
.hero-ph figcaption{position:absolute;left:0;right:0;bottom:0;padding:18px 12px 6px;font-size:12px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.period{background:#fff;border-radius:14px;padding:10px 14px;margin:0 0 10px;font-size:14px;color:var(--deep)}
