/* 登入頁、工作台、後台共用（官網首頁自帶樣式） */
:root {
  --ink: #1F3A6E; --ink2: #3F7BD9; --gold: #B0905C; --gold2: #E2C894;
  --sand: #E9E1D3; --cream: #FFFDF8; --paper: #F7F3EB; --line: #DDD3C2;
  --text: #22304A; --muted: #5C6370; --red: #C0392B; --ok: #1E7A4E;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--ink2); }
h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-gold { background: var(--cream); color: #7A5A26; border-color: var(--gold2); }
.btn[disabled] { opacity: .55; cursor: wait; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 16px/1.5 inherit; font-family: inherit; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(63,123,217,.25); border-color: var(--ink2); }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.msg { margin: 0; min-height: 1.5em; font-weight: 700; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--red); }

/* 頂端列 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--ink); color: #fff; }
.top .brand { font-weight: 900; font-size: 18px; color: #fff; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.top .brand small { display: block; font-size: 11px; font-weight: 700; color: var(--gold2); letter-spacing: .12em; }
.top .sp { flex: 1; }
.top .who { font-size: 14px; color: rgba(255,255,255,.85); text-align: right; line-height: 1.35; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top .who b { color: var(--gold2); font-weight: 700; }
.top button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 700 14px inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.narrow { max-width: 440px; margin: 0 auto; padding: 48px 16px; }
@media (max-width: 640px) {
  .top { padding: 8px 12px; gap: 10px; }
  .top .brand { font-size: 16px; }
  .top .who { font-size: 12px; }
  .card { padding: 20px 16px; }
}
