:root {
  font-family: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  color: #252c24;
  background: #f5f5ef;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.gate {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
  background: radial-gradient(ellipse at 20% 17%, #e8efe8 1%, transparent 52%), radial-gradient(ellipse at 84% 80%, #f0e8e5 0%, transparent 54%);
}
.gate-card {
  width: min(100%, 430px);
  padding: clamp(25px, 7vw, 40px);
  border: 1px solid #e2e7dd;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 16px 60px #243d2812;
  animation: appear .36s ease both;
}
.gate-rule { width: 36px; height: 1px; background: #adc2ac; margin: 26px 0 21px; }
.gate h1 { margin: 0; font: 700 clamp(1.55rem, 5vw, 2.02rem)/1.25 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }
.gate p { margin: 10px 0 0; color: #646c60; line-height: 1.6; }
.gate form { margin-top: 25px; }
.gate label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 700; }
.gate input, .gate button { width: 100%; font: inherit; border-radius: 9px; }
.gate input { padding: 11px 12px; border: 1px solid #dfe5d9; background: #fcfcf8; color: inherit; }
.gate button { margin-top: 15px; padding: 12px 15px; border: 0; background: #234333; color: #fffefa; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.gate button:hover { background: #315943; transform: translateY(-1px); }
.gate :focus-visible { outline: 2px solid #698867; outline-offset: 3px; }
.gate .gate-error { color: #903b36; font-size: .875rem; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
