:root {
  --bg-top: #fff8ef;
  --bg-bottom: #eef5ff;
  --panel: rgba(255, 255, 255, 0.96);
  --line: rgba(71, 109, 226, 0.14);
  --text: #20253f;
  --muted: #6c7590;
  --blue: #315fff;
  --blue-deep: #2548c8;
  --danger: #c14d73;
  --success: #2f8e71;
  --shadow: 0 18px 40px rgba(54, 67, 104, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 170, 0.36), transparent 20%),
    radial-gradient(circle at top right, rgba(111, 149, 255, 0.18), transparent 18%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.gate-shell {
  width: min(430px, 100%);
}

.gate-card {
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(49, 95, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.gate-card h1 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.gate-card p,
.gate-tip {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.gate-notice,
.gate-error,
.gate-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
}

.gate-notice {
  background: rgba(237, 245, 255, 0.96);
  color: #24456b;
}

.gate-error {
  background: rgba(255, 240, 244, 0.95);
  color: var(--danger);
}

.gate-tip {
  background: rgba(223, 246, 234, 0.9);
  color: var(--success);
}

.gate-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(71, 109, 226, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}

.gate-btn {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(49, 95, 255, 0.22);
}

.gate-btn:disabled,
.field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
