/* ==== 新疆单列志愿填报助手 — GitHub 风格 ==== */
:root {
  --bg: #f6f8fa;
  --card: #ffffff;
  --ink: #1f2328;
  --muted: #656d76;
  --line: #d0d7de;
  --line-subtle: #d8dee4;
  --header-bg: #24292f;
  --header-ink: #ffffff;
  --accent: #2da44e;
  --accent-hover: #2c974b;
  --blue: #0969da;
  --blue-subtle: #ddf4ff;
  --green-subtle: #dafbe1;
  --amber: #9a6700;
  --amber-subtle: #fff8c5;
  --red: #cf222e;
  --red-subtle: #ffebe9;
  --radius: 6px;
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ——— Header ——— */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid #1b1f23;
}
.brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--header-ink);
  margin-right: 16px;
  white-space: nowrap;
}
.brand:hover { opacity: .9; text-decoration: none; }

nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
nav a, .button, button {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
nav a:hover, .button:hover, button:hover { background: #f3f4f6; }
nav .active, .button.primary, button.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
nav .active:hover, .button.primary:hover, button.primary:hover { background: var(--accent-hover); }
nav form { display: inline; }

.topbar nav a, .topbar nav button {
  background: transparent; border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
}
.topbar nav a:hover, .topbar nav button:hover { background: rgba(255,255,255,.1); }
.topbar nav .active { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.2); }

/* ——— Main layout ——— */
main { max-width: 1200px; margin: 0 auto; padding: 24px; }

.hero {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: 12px; margin-top: 20px; }

.grid, .auth-grid { display: grid; gap: 16px; }
.grid { grid-template-columns: repeat(3, 1fr); }
.auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.dashboard {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel, .pf-step, article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel.narrow { max-width: 460px; margin: 40px auto; }
.panel.wide { min-width: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; margin-top: 20px; }
h3 { font-size: 14px; font-weight: 600; }

/* ——— Profile form ——— */
.pf { display: flex; flex-direction: column; gap: 0; }

.pf-step {
  margin-bottom: 12px;
  padding: 16px 20px;
}
.pf-step-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
}
.pf-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.pf-step-title { font-size: 14px; font-weight: 600; }
.pf-step-sub { font-size: 12px; color: var(--muted); margin-left: auto; }

.pf-grid { display: grid; gap: 12px; }
.pf-grid.col2 { grid-template-columns: 1fr 1fr; }
.pf-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }

.pf-field { display: flex; flex-direction: column; gap: 4px; }
.pf-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-label em { font-weight: 400; font-style: normal; color: var(--blue); font-size: 11px; }

.pf-input, input, select {
  width: 100%; min-height: 36px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 14px; color: var(--ink); background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.pf-input:focus, input:focus, select:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(9,105,218,.15);
}
.pf-input[readonly] { background: #f6f8fa; color: var(--muted); }

/* Score hero */
.pf-score-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-score-hero input {
  min-height: 52px; font-size: 18px; font-weight: 700; text-align: center;
  border: 2px solid var(--line); border-radius: var(--radius);
}
.pf-score-hero input:focus { border-color: var(--accent); }
.pf-score-hint { text-align: center; font-size: 12px; color: var(--accent); min-height: 20px; margin: 4px 0 0; }

/* Segment control */
.pf-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.pf-seg input { display: none; }
.pf-seg input + label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; min-height: 36px; padding: 5px 14px;
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 500;
  cursor: pointer; border-right: 1px solid var(--line);
  transition: background .12s;
}
.pf-seg input + label:last-child { border-right: 0; }
.pf-seg input:checked + label {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

/* Tags */
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tag {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); color: var(--muted);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .12s;
}
.pf-tag:hover { border-color: var(--blue); color: var(--blue); }
.pf-tag.on { background: var(--blue-subtle); border-color: var(--blue); color: var(--blue); }

.pf-checks { display: flex; gap: 20px; margin-top: 10px; }
.pf-checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.pf-checks input { width: auto; min-height: auto; accent-color: var(--accent); }

.btn-lg {
  width: 100%; min-height: 40px; font-size: 14px; font-weight: 600;
  margin-top: 12px;
}

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.check input { width: auto; min-height: auto; }

/* ——— Misc ——— */
.meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  background: var(--blue-subtle); color: var(--blue);
  font-size: 11px; font-weight: 600;
}
.