/* V1 极简布局 + V3 校园蓝白配色 */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --nav: #0b1f3a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #dbeafe 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.badge {
  font-size: 12px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.muted { background: #f1f5f9; color: var(--muted); }

main {
  max-width: 560px;
  width: 100%;
  margin: 40px auto 32px;
  padding: 0 24px;
  flex: 1;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 750;
  text-align: center;
}

.hero p {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 22px;
  flex-wrap: wrap;
}

.step-pill {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

.step-pill.active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  font-weight: 650;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.label {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--ink);
}

.drop {
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 36px 20px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.drop:hover,
.drop.drag {
  border-color: var(--accent);
  background: #dbeafe;
}

.drop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.drop strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.drop > span {
  font-size: 13px;
  color: var(--muted);
}

.file-chip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.schools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.school {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.school:hover { border-color: var(--accent-border); }

.school.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.school .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.school .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.school .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
}

.school.selected .tag {
  background: #fff;
  color: var(--accent);
  font-weight: 650;
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 11px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.mode-card:hover { border-color: var(--accent-border); }

.mode-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.mode-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mode-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.mode-desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .mode-row { grid-template-columns: 1fr; }
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.cta {
  margin-top: 20px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  font-family: inherit;
}

.cta:hover:not(:disabled) { background: var(--accent-hover); }

.cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.err {
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.45;
  background: var(--red-soft);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
}

.result {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.result h3 {
  font-size: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.status.queued,
.status.running {
  background: var(--accent-soft);
  color: var(--accent);
}
.status.succeeded {
  background: var(--green-soft);
  color: var(--green);
}
.status.failed {
  background: var(--red-soft);
  color: var(--red);
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress > i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.stats b {
  color: var(--ink);
  font-weight: 700;
}

.dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.dl {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.dl:hover { border-color: var(--accent); }

.dl .t {
  font-size: 13px;
  font-weight: 700;
}

.dl .s {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.site-footer {
  text-align: center;
  padding: 8px 24px 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer .note { margin-bottom: 4px; }

.site-footer .beian a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .beian a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hidden { display: none !important; }

@media (max-width: 520px) {
  .schools,
  .dl-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .card { padding: 20px; }
}
