:root {
  --bg: #faf8f5; --surface: #fff; --ink: #1c1917; --muted: #78716c; --line: #ece7e1;
  --brand: #ff5a36; --brand-ink: #fff; --brand-soft: #fff0eb; --brand-deep: #d9421f;
  --good: #16a34a; --good-soft: #e8f7ee; --warn: #d97706; --warn-soft: #fff4de; --bad: #dc2626; --bad-soft: #fdecec;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28,25,23,.04), 0 8px 24px rgba(28,25,23,.06);
  --shadow-lg: 0 2px 4px rgba(28,25,23,.05), 0 18px 40px rgba(28,25,23,.12);
  --font: "Inter", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; padding: 48px 16px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 20px 0 48px; }
.stack { display: grid; gap: 16px; } .row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; }
.between { justify-content: space-between; } .wrap-row { flex-wrap: wrap; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; }
.logo i { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #ff7a45, var(--brand-deep)); display: grid; place-items: center; color: #fff; font: 800 17px/1 var(--font); font-style: normal; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.plain { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); border: 0; background: none; cursor: pointer; position: relative; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--line); }
.lang { display: flex; background: var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dot { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }

/* 按钮与表单 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; min-height: 46px; box-shadow: 0 6px 16px rgba(255,90,54,.28); }
.btn:hover { background: var(--brand-deep); } .btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--line); }
.btn.good { background: var(--good); box-shadow: 0 6px 16px rgba(22,163,74,.25); }
.btn.sm { padding: 7px 14px; min-height: 34px; font-size: 13px; box-shadow: none; }
.btn.block { width: 100%; } .btn[disabled] { opacity: .45; pointer-events: none; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); min-height: 46px; transition: border-color .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--brand); padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* 卡片 */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pad { padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted); }
.badge.open { background: var(--brand-soft); color: var(--brand-deep); } .badge.formed, .badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffa066, var(--brand)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progress.done > i { background: linear-gradient(90deg, #4ade80, var(--good)); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; } .timer.urgent { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 99; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 92vw; animation: up .25s ease; }
.toast.bad { background: var(--bad); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 12px); } }
footer { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
