/* 青花瓷风格：淡雾蓝底色、靛青线条、白瓷卡片 */
:root {
  --bg: #f3f4fb;
  --bg-2: #e7eaf8;
  --surface: #ffffff;
  --surface-2: #eef0fa;
  --text: #1b2350;
  --muted: #646b94;
  --line: #d5daf0;
  --brand: #3446b0;        /* 青花蓝 */
  --brand-deep: #23308a;
  --brand-soft: #e3e7fa;
  --brand-ink: #ffffff;
  --gold: #b8892b;
  --gold-soft: #f7efd9;
  --ok: #23845a;
  --ok-soft: #dff2e8;
  --bad: #c0392b;
  --bad-soft: #f9e1de;
  --warn: #9a5b00;
  /* 选项色：同一色系里拉开明度和色相，配合字母区分 */
  --o0: #2f40a8; --o1: #2c7fb0; --o2: #6a54b8; --o3: #3f8f8a;
  --o4: #8a4f9e; --o5: #4f6bd0; --o6: #2f9bb0; --o7: #6b7393;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(35, 48, 138, .06), 0 6px 22px rgba(35, 48, 138, .08);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

.btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--brand-deep);
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 4px 14px rgba(52, 70, 176, .28); }
.btn.primary:hover { background: var(--brand-deep); }
.btn.gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.small { padding: 5px 12px; font-size: 13px; }

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9em; height: 1.9em; border-radius: 50%; color: #fff; font-weight: 700; flex: none;
  font-family: var(--serif);
}
.o0 { background: var(--o0); } .o1 { background: var(--o1); } .o2 { background: var(--o2); } .o3 { background: var(--o3); }
.o4 { background: var(--o4); } .o5 { background: var(--o5); } .o6 { background: var(--o6); } .o7 { background: var(--o7); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.off { background: #c3c7da; }
.err { color: var(--bad); font-size: 14px; min-height: 1.4em; }

/* 天际线装饰：放在页面底部 */
.skyline {
  position: fixed; left: 0; right: 0; bottom: 0; height: max(16.25vw, 146px);
  background: url("/assets/skyline.svg") center bottom / max(100%, 900px) auto no-repeat;
  pointer-events: none; z-index: 0; opacity: .95;
}
/* 校徽位置：把 logo 图片放到 public/assets/logo.png 就会显示 */
.brandmark { display: flex; align-items: center; gap: 10px; }
.brandmark img { height: 34px; width: auto; }
.brandmark .en { font-size: 10px; letter-spacing: .12em; line-height: 1.35; color: var(--brand); font-weight: 600; text-transform: uppercase; }
