/* 設計系統：粉彩新粗獷 —— 奶油白圓點底、墨色 2px 粗框、實心偏移陰影、糖果色卡片 */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
}
/* 只含網站用到的中文字（tools/subset_fonts.py 產生）；沒收錄的字會退回系統字型 */
@font-face {
  font-family: "Noto Sans TC Site";
  src: url("/assets/fonts/NotoSansTC-site.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
}

:root {
  --cream: #FFFDF9;
  --ink: #1E232A;
  --ink-2: #2D333C;
  --muted: #4A5260;
  --line: #D5D8DD;
  --line-2: #AEB4BD;
  --soft: #F6F7F9;
  --white: #FFFFFF;
  --pink: #FFD6E0;
  --yellow: #FFF1A6;
  --blue: #C9EBFF;
  --green: #D7F9D0;
  --purple: #EADBFF;
  --peach: #FFE3C2;
  --ok: #1F9D55;
  --bad: #B3261E;
  --sans: "Plus Jakarta Sans", "Noto Sans TC Site", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-sm: 2.5px 2.5px 0 var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --border: 2px solid var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; min-height: 100vh;
  background-color: var(--cream);
  background-image: radial-gradient(rgb(30 35 42 / .22) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 500 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: var(--ink); }
a { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--white); border: var(--border); border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* 色塊 */
.bg-pink { background: var(--pink) !important; }
.bg-yellow { background: var(--yellow) !important; }
.bg-blue { background: var(--blue) !important; }
.bg-green { background: var(--green) !important; }
.bg-purple { background: var(--purple) !important; }
.bg-peach { background: var(--peach) !important; }
.bg-white { background: var(--white) !important; }

/* 互動：滑過往左上浮起 */
.pop { transition: transform .15s ease, box-shadow .15s ease; }
.pop:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

/* ---------- 公告列與頁首 ---------- */
.announce {
  background: var(--yellow); border-bottom: var(--border); padding: 8px 16px;
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-align: center;
}
.announce .ver { background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 8px; font: 700 11px/1.6 var(--mono); }

.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: var(--cream); border-bottom: var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.menu-label { font: 700 12px/1 var(--mono); letter-spacing: .1em; }
.brand { font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand small { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); background: var(--white);
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* 三橫杠選單：<details>，沒有 JavaScript 也能開關 */
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.icon-btn, .menu > summary {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  padding: 0; background: var(--white); color: var(--ink); border: var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.menu .ico-close { display: none; }
.menu[open] .ico-open { display: none; }
.menu[open] .ico-close { display: block; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: 16px; z-index: 30;
  width: 340px; max-width: calc(100% - 32px);
  background: var(--white); border: var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
}
.menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px 10px; border-bottom: 2px dashed var(--line);
  font: 700 11px var(--mono); letter-spacing: .1em; color: var(--muted);
}
.menu-head a { color: var(--muted); text-decoration: none; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px;
  border: 2px solid transparent; text-decoration: none; color: var(--ink);
}
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--cream); border-color: var(--ink); }
.menu-ico {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: 12px;
}
.menu-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.menu-txt b { font-size: 15px; font-weight: 800; }
.menu-txt span { font-size: 12px; color: var(--muted); }
.menu-no { font: 500 11px var(--mono); color: var(--muted); }

/* ---------- 版面 ---------- */
.page { max-width: 960px; margin: 0 auto; padding: 56px 20px 88px; display: flex; flex-direction: column; gap: 64px; }
.page.narrow { max-width: 920px; padding-top: 40px; gap: 40px; }
.page.wide { max-width: 1000px; gap: 48px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 16px; }

/* 視窗卡片 */
.window {
  background: var(--white); border: var(--border); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 28px clamp(20px, 4vw, 40px) 36px;
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 2px dashed var(--line);
}
.lights { display: flex; align-items: center; gap: 8px; }
.lights i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }
.lights i:nth-child(1) { background: #FF6B6B; }
.lights i:nth-child(2) { background: #FFD93D; }
.lights i:nth-child(3) { background: #6BCB77; }
.lights.soft i { width: 11px; height: 11px; }
.lights.soft i:nth-child(1) { background: var(--pink); }
.lights.soft i:nth-child(2) { background: var(--yellow); }
.lights.soft i:nth-child(3) { background: var(--green); }
.window-path { margin-left: 6px; font: 700 12px var(--mono); color: var(--muted); }
.window-body { padding-top: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.window-body.center { align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

.sticker {
  display: inline-block; transform: rotate(-1.5deg);
  border: var(--border); border-radius: 10px; padding: 4px 12px; box-shadow: var(--shadow-sm);
  font: 700 12px/1.6 var(--mono); letter-spacing: .08em;
}
.sticker.sans { font-family: var(--sans); font-weight: 800; letter-spacing: .06em; }
.display { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.display small { font: 500 clamp(18px, 2.4vw, 24px) var(--mono); color: var(--muted); }
.display.md { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.25; }
.display.heavy { font-weight: 900; letter-spacing: .01em; line-height: 1.3; font-size: clamp(32px, 4.6vw, 44px); }
.lead { font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 38em; }
.hl { padding: 1px 5px; border-radius: 5px; font-weight: 700; }

.specs {
  flex: 0 1 240px; background: var(--pink); border: var(--border); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.specs h2 { font-size: 12px; font-weight: 800; letter-spacing: .1em; padding-bottom: 8px; border-bottom: 1.5px solid rgb(30 35 42 / .3); }
.specs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.specs li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }

/* 區塊標題 */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 4px; }
.kicker { font: 700 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.title { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.title.sm { font-size: 20px; font-weight: 900; }
.subtle { font-size: 13px; color: var(--muted); }

/* 篩選按鈕 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  background: var(--white); color: var(--ink); border: var(--border); border-radius: 999px;
  padding: 7px 14px; font: 700 12px var(--sans); box-shadow: var(--shadow-sm); cursor: pointer;
}
.fbtn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.fbtn .n { font: 500 11px var(--mono); opacity: .75; }

/* 卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--white); border: var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.card.lg { border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(20px, 3.5vw, 32px); }
.slot {
  min-height: 260px; background: rgb(255 255 255 / .7); border: 2px dashed var(--ink); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--muted);
}
.slot-top { display: flex; justify-content: space-between; align-items: center; }
.slot h3 { font-size: 18px; font-weight: 800; }
.slot p { font-size: 13px; }
.placeholder {
  border: 2px dashed var(--line-2); border-radius: 14px; padding: 14px 16px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.slot .placeholder { margin-top: auto; border-width: 1.5px; padding: 12px; font-size: 12px; }
.placeholder b { color: var(--ink); font-weight: 800; margin-right: .6em; }
.tag {
  display: inline-block; border: 1.5px solid var(--ink); border-radius: 7px; padding: 2px 8px;
  font: 700 11px/1.6 var(--mono); white-space: nowrap;
}
.tag.shadow { box-shadow: 2px 2px 0 var(--ink); }
.tag.sans { font: 700 12px/1.6 var(--sans); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  background: var(--white); color: var(--ink); border: var(--border); border-radius: 12px;
  padding: 10px 16px; font: 700 13px var(--sans); text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer;
}
.btn.dark { background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 #6BCB77; font-size: 15px; font-weight: 800; }
.btn.dark:hover { box-shadow: 5px 5px 0 #6BCB77; }
.btn:disabled { opacity: .6; cursor: default; }

.footer-card {
  background: var(--purple); border: var(--border); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-card h2 { font-size: 26px; font-weight: 900; }
.footer-card p { font-size: 14px; color: var(--ink-2); max-width: 30em; }
.footer-card .chips { justify-content: center; gap: 12px; padding-top: 6px; }
.footer-card small { padding-top: 10px; font: 500 11px var(--mono); color: var(--muted); }

/* ---------- Swift Design ---------- */
.project { display: flex; flex-wrap: wrap; gap: 32px; }
.project-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.project-side { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-meta time { font: 500 12px var(--mono); color: var(--muted); }
.project h2 { font-size: 24px; font-weight: 800; }
.project-text > p { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.howto { background: var(--soft); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.6; }
.howto h3 { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.howto ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

.solver {
  width: 100%; max-width: 340px; align-self: center; background: #3C3C3C; border: var(--border); border-radius: 18px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--white); font-family: var(--mono);
}
.solver-row { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.solver-row i { flex: 1; height: 20px; background: var(--white); border-radius: 4px; }
.solver-res { display: flex; justify-content: space-between; padding: 6px 4px; border-block: 1px solid #5A5A5A; font-size: 12px; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.keys span { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #7A7A7A; font-size: 13px; font-weight: 700; }
.keys .fn { background: #5A5A5A; }
.keys .op { background: #FF9F0A; }

.arch-label { font: 700 11px var(--mono); letter-spacing: .1em; color: var(--muted); }
.arch-box { border: var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: 3px 3px 0 var(--ink); }
.arch-box b { display: block; font: 700 13px var(--mono); }
.arch-box span { font-size: 12px; color: var(--ink-2); }
.arch-arrow { text-align: center; font: 500 12px var(--mono); color: var(--muted); }
.arch-box.dashed { border-style: dashed; border-width: 1.5px; box-shadow: none; padding: 10px 14px; }
.arch-box.dashed b { display: inline; margin-right: .6em; }

.banner {
  background: var(--yellow); border: var(--border); border-radius: 24px; box-shadow: var(--shadow);
  padding: 24px clamp(20px, 3.5vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.banner > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.banner h2 { font-size: 20px; font-weight: 800; }
.banner p { font-size: 14px; color: var(--ink-2); }

/* ---------- HRT ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: var(--yellow); border: var(--border);
  border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.7;
}
.notice svg { margin-top: 3px; }
.hero-stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-top: 0; }
.hero-stack .placeholder { width: 100%; font-size: 15px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 18px; align-items: stretch; }
.tl-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.tl-dot {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: var(--border); border-radius: 50%; box-shadow: var(--shadow-sm); font: 700 14px var(--mono);
}
.tl-line { flex: 1; width: 2px; background: var(--ink); opacity: .35; }
.timeline li:last-child .tl-line { display: none; }
.tl-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 18px; color: var(--muted); }
.tl-card time { font: 500 12px var(--mono); }
.tl-card h3 { font-size: 18px; font-weight: 800; }
.tl-card p { font-size: 14px; }

.lib-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { border: var(--border); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--white); }
.stat-card b { font: 700 24px var(--mono); }
.stat-card b.text { font: 800 15px/1.4 var(--sans); }
.stat-card span { font-size: 12px; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 520px;
  background: var(--white); border: var(--border); border-radius: 12px; padding: 0 12px; box-shadow: var(--shadow-sm);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 14px var(--sans); color: var(--ink); padding: 10px 0; }
.search:focus-within { outline: 3px solid #2B6CB0; outline-offset: 2px; }
.papers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.paper { background: var(--white); border: var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.paper[hidden] { display: none; }
.paper-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paper-top time { font: 500 12px var(--mono); color: var(--muted); }
.paper h3 { font-size: 15px; line-height: 1.5; font-weight: 800; }
.paper .cite { font: 500 12px/1.6 var(--mono); color: var(--muted); }
.paper-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 8px; border-top: 1.5px dashed var(--line); font-size: 12px; color: var(--muted);
}
.paper-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.no-result { border: 2px dashed var(--line-2); border-radius: 16px; padding: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Audio ---------- */
.audio-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.audio-top .mono { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.audio-top b { font-size: 14px; font-weight: 800; }
.byline { font-size: 15px; font-weight: 800; }
.byline span { font-weight: 500; color: var(--muted); }
.persp {
  flex: 0 1 200px; transform: rotate(2deg); background: var(--purple); border: var(--border); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.persp h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 1.5px solid rgb(30 35 42 / .35); }
.persp p { font-size: 14px; line-height: 1.75; }
.exp { box-shadow: 5px 5px 0 var(--ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.exp .tag { align-self: flex-start; font-size: 12px; padding: 3px 8px; }
.exp h3 { font-size: 17px; font-weight: 900; }
.exp p { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.ask {
  background: var(--pink); border: var(--border); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
  padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 15px;
}
.ask b { font-weight: 900; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.story h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.story h3 i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--ink); }
.story p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.case { border: 2px dashed var(--ink); border-radius: 24px; background: rgb(255 255 255 / .7); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.case-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.case-steps div { background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.case-steps b { font: 700 11px var(--mono); color: var(--ink); }
.photo-ph { height: 180px; border: 1.5px dashed var(--line-2); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.audio-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.audio-foot .mono { letter-spacing: .06em; }

/* ---------- 登入與 404 ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 20px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--white); border: var(--border); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 24px clamp(20px, 5vw, 36px) 32px; display: flex; flex-direction: column; gap: 20px;
}
.auth-card .window-bar { padding-bottom: 16px; }
.auth-card .sticker { align-self: flex-start; }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.auth-card > div > p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.input {
  min-height: 46px; border: var(--border); border-radius: 12px; padding: 0 14px;
  font: 500 15px var(--sans); background: var(--cream); color: var(--ink);
}
.input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.form-msg { min-height: 1.4em; font-size: 13px; color: var(--bad); font-weight: 600; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--muted); }
.auth-note svg { margin-top: 2px; }
.notfound { text-align: center; }
.notfound .code { font: 800 72px/1 var(--mono); margin-bottom: 12px; }
.notfound .auth-card { align-items: center; }

/* ---------- 手機 ---------- */
@media (max-width: 560px) {
  .topbar { padding: 12px 16px; gap: 10px; }
  .menu-label, .brand small { display: none; }
  .page { padding: 36px 16px 64px; gap: 48px; }
  .window { padding: 20px 18px 26px; }
  .persp { transform: none; }
}
