/* Vanta 独立门禁：单栏、结构线、无图片、无阴影、无装饰动画。 */
body.license-gate-open {
  background: #e5e7eb;
}

.license-gate {
  --vg-bg: #e5e7eb;
  --vg-ink: #000000;
  --vg-accent: #fd630c;
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px clamp(20px, 5vw, 80px) 48px;
  overflow-x: hidden;
  background: var(--vg-bg);
  color: var(--vg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.license-gate.hidden { display: none !important; }

.license-gate .license-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--vg-ink);
  color: var(--vg-ink);
  font-family: "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.license-gate .license-brand small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
}

.license-gate .license-card {
  display: block;
  width: min(680px, 100%);
  margin: clamp(88px, 16vh, 180px) 0 0 clamp(0px, 7vw, 112px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.license-gate .license-content {
  width: 100%;
  padding: 0;
}

.license-gate .license-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--vg-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
}

.license-gate .license-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vg-ink);
}

.license-gate #license-title {
  margin: 30px 0 24px;
  color: var(--vg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-style: normal;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.license-gate .license-intro {
  max-width: 65ch;
  margin: 0;
  color: var(--vg-ink);
  font-size: 17px;
  line-height: 1.75;
}

.license-gate .license-form {
  display: block;
  margin-top: 48px;
}

.license-gate .license-label {
  display: block;
  margin-bottom: 8px;
  color: var(--vg-ink);
  font-family: "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 12px;
  font-weight: 500;
}

.license-gate .license-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--vg-ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--vg-ink);
  box-shadow: none;
  font-family: "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 18px;
  line-height: 1.5;
  transition: border-color .2s ease, border-width .2s ease;
}

.license-gate .license-input::placeholder { color: rgba(0, 0, 0, .48); }
.license-gate .license-input:focus { border-bottom: 3px solid var(--vg-accent); }
.license-gate .license-input:focus-visible { outline: 0; }

.license-gate .license-hint {
  margin: 12px 0 0;
  color: var(--vg-ink);
  font-size: 13px;
  line-height: 1.65;
  opacity: .72;
}

.license-gate .license-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 12px 24px;
  border: 1px solid var(--vg-ink);
  border-radius: 0;
  background: var(--vg-accent);
  color: var(--vg-ink);
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.license-gate .license-submit:hover:not(:disabled) {
  background: var(--vg-ink);
  color: var(--vg-accent);
}

.license-gate .license-submit:active:not(:disabled) { transform: translateY(1px); }
.license-gate .license-submit:disabled { cursor: wait; opacity: .58; }
.license-gate .license-submit:focus-visible,
.license-gate .license-retry:focus-visible {
  outline: 3px solid var(--vg-accent);
  outline-offset: 3px;
}

.license-gate .license-retry {
  min-height: 44px;
  margin: 18px 0 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--vg-ink);
  box-shadow: none;
  text-decoration: underline;
  cursor: pointer;
}

.license-gate .license-message {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--vg-ink);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .license-gate { padding: 20px 20px 36px; }
  .license-gate .license-brand { gap: 12px; font-size: 16px; }
  .license-gate .license-brand small { font-size: 9px; }
  .license-gate .license-card { margin: 72px 0 0; }
  .license-gate #license-title { margin-top: 26px; font-size: 48px; }
  .license-gate .license-intro { font-size: 16px; }
  .license-gate .license-form { margin-top: 40px; }
  .license-gate .license-input { font-size: 16px; }
  .license-gate .license-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .license-gate * { transition: none !important; }
}
