:root {
  --navy: #243A74;
  --navy-d: #1B2C58;
  --blue: #3D5C9C;
  --gold: #FFD400;
  --red: #C0392B;
  --green: #2E7D5B;
  --orange: #C56A22;
  --purple: #6B4C9A;
  --bg: #F5F7FA;
  --ink: #24303F;
  --grey: #6B7686;
  --line: #D8E0EF;
  --card: #FFFFFF;
  --shadow: 0 6px 18px rgba(36, 58, 116, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* 顶栏 */
.topbar {
  height: 64px;
  background: linear-gradient(90deg, #1B2C58 0%, #243A74 55%, #3D5C9C 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; color: #fff; position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .emblem { width: 30px; height: 29px; display: block; }
.brand .school { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; white-space: nowrap; }
.brand .vline { width: 1px; height: 20px; background: rgba(255,255,255,.28); }
.brand .atitle { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-actions .step { color: #B9C8E4; font-size: 13px; font-weight: 600; margin-right: 4px; }

/* 按钮 */
.btn {
  border: 0; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 700;
  transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap;
}
.btn.primary { background: var(--gold); color: #3A2E00; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn.primary:hover { transform: translateY(-1px); background: #FFE23A; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.outline:hover { border-color: var(--navy); }
.btn.soft { background: #EAF0FA; color: var(--navy); }
.btn.soft:hover { background: #DDE7F7; }
.btn.danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* 页面骨架 */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 28px 46px; }
.activity-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.kicker { margin: 0 0 6px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: 2.5px; }
h1 { margin: 0; font-size: 30px; line-height: 1.25; color: var(--navy); font-weight: 800; }
.lede { margin: 8px 0 0; color: var(--grey); font-size: 15px; line-height: 1.6; }
.hintbar {
  margin-top: 22px; background: #EAF0FA; border-radius: 10px; padding: 11px 16px;
  color: var(--navy); font-size: 13.5px; font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap;
}
.hintbar span::before { content: "·"; color: var(--red); font-weight: 800; margin-right: 6px; }

/* 通用卡片 */
.card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.section-title .n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.muted { color: var(--grey); }
.gold { color: var(--orange); }
.big-num { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1; }

/* 输入 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.field input[type="text"], .field textarea, .field input[type="date"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 13px;
  font-size: 15px; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 86px; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36,58,116,.12); }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: var(--navy-d); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none; transition: .22s; z-index: 100; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--green); }
.toast.bad { background: var(--red); }

/* 结果出现 */
.reveal { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .brand .school, .brand .vline { display: none; }
  .page { padding: 20px 16px 90px; }
  h1 { font-size: 24px; }
  .activity-head { flex-direction: column; align-items: flex-start; }
  /* 手机触控目标 ≥44px */
  .btn { padding: 11px 18px; font-size: 15px; }
  button, .qbtn, .opt { min-height: 44px; }
  /* 避免输入聚焦时页面缩放跳动（iOS） */
  input, select, textarea { font-size: 16px; }
}