* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #4a3b45; background: #fdf7f8; line-height: 1.6;
}
.gate-scene {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px; overflow: hidden;
  background:
    radial-gradient(40% 45% at 16% 18%, #ffe2ec 0%, transparent 70%),
    radial-gradient(42% 48% at 84% 82%, #e7e0ff 0%, transparent 70%),
    linear-gradient(160deg, #fff9fa, #f9f4fb);
}
.gate-mote { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .55; pointer-events: none; }
.gate-mote-a { width: 190px; height: 190px; top: 12%; left: 10%; background: #ffcddf; }
.gate-mote-b { width: 230px; height: 230px; right: 8%; bottom: 6%; background: #ddd4fb; }
.gate-card {
  position: relative; width: min(100%, 380px);
  padding: 30px 32px 24px; border-radius: 26px;
  background: #fffdfdcc; backdrop-filter: blur(12px);
  border: 1px solid #fff; box-shadow: 0 20px 60px #7a557326;
}
.gate-heart {
  position: absolute; top: 18px; right: 24px;
  color: #e790ad; font-size: 24px; line-height: 1; transform: rotate(-12deg);
}
.gate-card h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.gate-subtitle { margin: 0 0 18px; color: #9c8490; font-size: 13px; }
.gate-tabs { display: flex; gap: 4px; padding: 4px; background: #f6ecf0; border-radius: 999px; margin-bottom: 18px; }
.gate-tabs a, .gate-tabs button {
  display: grid; place-items: center; text-decoration: none;
  flex: 1; min-height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #9c8490; font-size: 13px; font-family: inherit;
}
.gate-tabs a[aria-current="page"], .gate-tabs button.active {
  background: #fff; color: #6e4f5e; font-weight: 600;
  box-shadow: 0 2px 8px #7a55731f;
}
#gateForm { display: flex; flex-direction: column; gap: 12px; }
#gateForm [hidden] { display: none; }
#gateForm label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #7d6672; }
#gateForm input {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #ead9e1; background: #fff; color: #4a3b45;
  font-size: 15px; font-family: inherit;
}
#gateForm input:focus { outline: 2px solid #f3b9ce; outline-offset: 1px; border-color: #e790ad; }
#gateForm input::placeholder { color: #bca6b0; }
.gate-help { margin: -2px 0 2px; font-size: 11px; color: #a08a96; }
.gate-error { min-height: 18px; margin: 0; color: #d45570; font-size: 12px; }
.gate-submit {
  min-height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #f6b8cd, #d9c4f5); color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit;
  box-shadow: 0 8px 20px #e790ad33;
}
.gate-submit:hover { filter: brightness(1.03); }
.gate-submit[disabled] { opacity: .65; cursor: wait; }
.gate-footnote { margin: 14px 0 0; text-align: center; font-size: 11px; color: #a08a96; }
@media (max-width: 480px) {
  .gate-scene { padding: 18px 14px; }
  .gate-card { padding: 26px 22px 20px; border-radius: 22px; }
  .gate-mote-a { width: 130px; height: 130px; top: 6%; left: -40px; }
  .gate-mote-b { width: 150px; height: 150px; right: -50px; bottom: 4%; }
}
