:root {
  color: #333333;
  background: #1565c0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --border: #d8dde6;
  --muted: #707780;
  --error: #c62828;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}
button, select { font: inherit; }
[hidden] { display: none !important; }

.school-entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.select-card {
  width: 400px;
  max-width: 92vw;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  text-align: center;
}

.logo {
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1;
}

h1 {
  margin: 0;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.subtitle {
  margin: 8px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

form { text-align: left; }
label {
  display: block;
  margin-bottom: 8px;
  color: #444444;
  font-size: 14px;
  font-weight: 600;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #66717f;
  border-bottom: 2px solid #66717f;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 13px;
  color: #333333;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
}
select:hover:not(:disabled) { border-color: #9da8b6; }
select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, .14);
  outline: none;
}
select:disabled { color: #8b929b; background: #f5f6f8; cursor: not-allowed; }

button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--primary);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}
button:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(21, 101, 192, .24);
}
button:focus-visible { outline: 3px solid rgba(25, 118, 210, .28); outline-offset: 3px; }
button:disabled { background: #aeb8c4; cursor: not-allowed; }

.error-message {
  margin: 14px 0 0;
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 480px) {
  .school-entry { padding: 18px; }
  .select-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
