:root {
  --brand: #1f3a9e;
  --brand-2: #2f55d4;
  --brand-soft: #eef2fc;
  --text: #1c2333;
  --muted: #6a7385;
  --line: #e3e7ef;
  --err: #c0362c;
  --err-bg: #fdeeec;
  --ok: #1b7a46;
  --ok-bg: #e8f6ee;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: linear-gradient(180deg, #eef2fb 0%, #f7f8fb 280px, #f7f8fb 100%);
}
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 520px; margin: 0 auto; padding: 22px 16px 36px; }
.head { text-align: center; padding: 6px 0 16px; }
.head img { width: 190px; max-width: 62%; height: auto; }
.head h1 { font-size: 20px; margin: 12px 0 2px; letter-spacing: .5px; }
.head p { margin: 0; color: var(--muted); font-size: 13px; }

.tabs { display: flex; background: #fff; border: 1px solid #edf0f6; border-radius: 12px; padding: 4px; margin: 0 0 14px; box-shadow: 0 2px 10px rgba(31, 58, 158, .05); }
.tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; color: #4a5366; font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--brand); color: #fff; }
.entry { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #edf0f6;
  box-shadow: 0 4px 22px rgba(31, 58, 158, .06); color: var(--text); margin-bottom: 12px; }
.entry .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.entry .ic svg { width: 24px; height: 24px; stroke: var(--brand); }
.entry b { display: block; font-size: 16px; }
.entry span { color: var(--muted); font-size: 13px; }
.entry::after { content: "›"; margin-left: auto; color: #a5adbd; font-size: 22px; }
.sched { width: 100%; border-collapse: collapse; }
.sched td { padding: 9px 6px; border-bottom: 1px solid #f0f2f7; }
.sched td.t { color: var(--muted); width: 7.5em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched td.n { font-weight: 600; }
.sched tr.mine td { background: #fff7e0; }
.sched tr.mine td.n::after { content: " 我"; color: #b07800; font-size: 12px; font-weight: 600; }
.sched .empty-slot { color: #b6bdcb; font-weight: 400; }
.week-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.week-pick a { flex: 0 0 auto; padding: 6px 12px; border-radius: 18px; border: 1px solid #d5dcea; background: #fff; color: #4a5366; font-size: 13px; white-space: nowrap; }
.week-pick a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.stat-row div { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.stat-row small { display: block; color: var(--muted); font-size: 12px; }
.stat-row b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid #f0f2f7; color: var(--text); }
.mrow .m { font-weight: 600; min-width: 5.5em; }
.mrow .amt { margin-left: auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrow .amt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #eef0f4; color: #5a6376; font-weight: 500; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.blue { background: var(--brand-soft); color: var(--brand); }
.steps { display: flex; justify-content: space-between; margin: 4px 4px 16px; counter-reset: s; }
.steps div { flex: 1; text-align: center; font-size: 12px; color: #9aa3b5; position: relative; }
.steps div::before {
  counter-increment: s; content: counter(s); display: block; width: 24px; height: 24px; margin: 0 auto 4px;
  border-radius: 50%; background: #dfe4ef; color: #fff; line-height: 24px; font-weight: 600;
}
.steps div.on { color: var(--brand); font-weight: 600; }
.steps div.on::before { background: var(--brand); }
.steps div.done::before { background: #8fa3e0; content: "✓"; }

.card { background: #fff; border-radius: 14px; padding: 20px 18px; box-shadow: 0 4px 22px rgba(31, 58, 158, .07); border: 1px solid #edf0f6; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 16px; margin: 0 0 12px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.field label .req { color: var(--err); margin-left: 2px; }
.field .tip { color: var(--muted); font-size: 12px; margin-top: 4px; }
.field .err { color: var(--err); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=search], select {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 9px;
  background: #fff; color: var(--text); -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #8a93a6 50%), linear-gradient(135deg, #8a93a6 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 85, 212, .15); }
.has-err input, .has-err select { border-color: var(--err); }

.btn {
  display: block; width: 100%; font: inherit; font-size: 16px; font-weight: 600; padding: 12px; border-radius: 10px;
  border: none; background: var(--brand); color: #fff; cursor: pointer; text-align: center;
}
.btn:active { background: #18307f; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid #c8d1ea; font-weight: 500; }
.btn-row { display: flex; gap: 10px; margin-top: 6px; }
.btn-row .btn { flex: 1; }

.search { display: flex; gap: 8px; }
.search input { flex: 1; }
.search .btn { width: auto; padding: 0 18px; flex: 0 0 auto; }
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li a { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; color: var(--text); font-weight: 600; background: #fbfcfe; }
.list li a::after { content: "›"; color: #a5adbd; font-size: 20px; font-weight: 400; }

.notice { padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.info { background: var(--brand-soft); color: #243a80; }

.who { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.who b { font-size: 16px; }
.who span { color: var(--muted); font-size: 13px; }
.who a { margin-left: auto; font-size: 13px; white-space: nowrap; }

.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 10px 2px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; width: 7.5em; font-size: 14px; }
.kv td { font-weight: 600; word-break: break-all; }

.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #3c4558; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; }
.trust { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.trust div { text-align: center; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid #edf0f6; border-radius: 10px; padding: 10px 4px; }
.trust svg { width: 20px; height: 20px; display: block; margin: 0 auto 4px; stroke: var(--brand); }
details.policy { font-size: 13px; color: #4a5366; margin-top: 4px; }
details.policy summary { color: var(--brand); cursor: pointer; }
details.policy ol { padding-left: 18px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; color: #9aa3b5; font-size: 12px; margin-top: 22px; }
.done-icon { width: 58px; height: 58px; margin: 4px auto 8px; border-radius: 50%; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; }
.done-icon svg { width: 30px; height: 30px; stroke: var(--ok); }
