:root { --nav: #26304a; --bg: #eef0f4; --card: #fff; --text: #1f2430; --muted: #566072; --line: #d9dde5; --primary: #3d5a99; --link: #2f5bb7; --danger: #b3261e; --warn-bg: #fff3d6; --warn: #5c4300; --tab: 60px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 24px); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 12px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #d97706; outline-offset: 2px; }
main:focus, h1:focus { outline: none; }
.top { background: var(--nav); color: #fff; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; padding-top: env(safe-area-inset-top); }
.logo { color: #fff; font-size: 20px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.top button { background: none; border: 1px solid #aeb7cc; color: #fff; border-radius: 6px; min-height: 44px; padding: 0 14px; font: inherit; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; margin: 4px 0 12px; line-height: 1.3; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.tabs { position: fixed; inset: auto 0 0 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs a { min-height: var(--tab); display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: 17px; border-top: 4px solid transparent; }
.tabs a[aria-current] { color: var(--primary); font-weight: 700; border-top-color: var(--primary); }
.card { background: var(--card); border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow: hidden; }
.pad { padding: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; border: 1px solid var(--primary); border-radius: 8px; overflow: hidden; }
.seg a { min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--primary); background: #fff; }
.seg a[aria-current] { background: var(--primary); color: #fff; font-weight: 700; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-bottom: 12px; align-items: end; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--primary); background: #fff; color: var(--primary); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.main { background: var(--primary); color: #fff; width: 100%; }
.btn:disabled { opacity: .6; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
input { width: 100%; min-height: 48px; font: inherit; padding: 8px 12px; border: 1px solid #838b9a; border-radius: 8px; background: #fff; color: var(--text); }
.field { margin-bottom: 16px; }
.pick label { font-size: 14px; }
.big { font-size: 34px; font-weight: 700; line-height: 1.2; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding: 16px; }
.grid div { min-width: 0; }
dt { color: var(--muted); font-size: 15px; }
dd { margin: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; color: var(--text); text-decoration: none; }
a.row::after { content: '›'; color: var(--link); font-size: 24px; line-height: 1; flex: none; }
a.row .t { color: var(--link); font-weight: 700; }
.row > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .s { display: block; color: var(--muted); font-size: 15px; }
.row .n { font-weight: 700; white-space: nowrap; text-align: right; }
.tag { display: inline-block; background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 8px; font-size: 14px; font-weight: 700; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.error { background: #fdecea; color: #7d1a14; border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.search { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 700; text-decoration: none; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details summary .row::after { content: '▾'; color: var(--link); flex: none; }
details[open] summary .row::after { content: '▴'; }
details .grid { border-top: 1px solid var(--line); background: #f6f8fb; }
.foot { color: var(--muted); font-size: 14px; margin: 24px 0 0; }
.pre { white-space: pre-line; margin: 0; }
.mt { margin-top: 12px; }
.mid { text-align: center; align-self: center; }
[aria-busy] { opacity: .6; }
