:root {
  --bg: #050b14;
  --panel: rgba(10, 18, 33, 0.88);
  --panel-strong: rgba(12, 22, 40, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #edf4ff;
  --muted: #90a3c0;
  --gold: #ddb468;
  --gold-2: #a86c1c;
  --blue: #5dafff;
  --blue-2: #2e69c0;
  --ok: #71e7be;
  --warn: #ffd36a;
  --danger: #ff8989;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 175, 255, 0.12), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(221, 180, 104, 0.08), transparent 32%),
    linear-gradient(180deg, #06060e 0%, #0a0d18 42%, #06060e 100%);
  overflow: hidden;
}

body.entry-booting .entry-page {
  opacity: 0;
  visibility: hidden;
}

.hidden {
  display: none !important;
}

.entry-page {
  min-height: 100vh;
  position: relative;
}

.entry-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.entry-sky,
.entry-grid,
.entry-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry-sky {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 25% 30%, rgba(93, 175, 255, 0.14), transparent 22%),
    radial-gradient(circle at 75% 20%, rgba(221, 180, 104, 0.1), transparent 18%);
}

.entry-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

.entry-glow-a {
  background: radial-gradient(circle at 35% 55%, rgba(93, 175, 255, 0.18), transparent 28%);
}

.entry-glow-b {
  background: radial-gradient(circle at 68% 46%, rgba(221, 180, 104, 0.16), transparent 24%);
}

.entry-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 28px;
  align-items: center;
}

.entry-copy {
  position: relative;
  text-align: left;
  padding: 0.4rem 0 0.4rem 0.2rem;
}

.entry-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
}

.entry-title-block {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.entry-title-mark {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d9c08e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.entry-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 11vw, 92px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  font-weight: 900;
  color: #fff2d2;
  text-shadow: 0 0 28px rgba(221, 180, 104, 0.18);
  position: relative;
}

.entry-title::after {
  content: "";
  position: absolute;
  left: 0.18em;
  bottom: -0.12em;
  width: 2.8em;
  height: 0.18em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(221, 180, 104, 0.85), rgba(93, 175, 255, 0.08));
  box-shadow: 0 0 16px rgba(221, 180, 104, 0.14);
}

.entry-subtitle {
  width: min(520px, 100%);
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
}

.entry-copy-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.entry-copy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #c8d5ea;
  font-size: 13px;
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  box-shadow: 0 14px 26px rgba(168, 108, 28, 0.25);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 14px 26px rgba(46, 105, 192, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.auth-shell {
  position: relative;
  z-index: 1;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 17, 28, 0.94), rgba(10, 10, 18, 0.96));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.auth-shell-page {
  width: 100%;
}

.auth-shell-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.auth-shell-head p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.form-stack {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: rgba(5, 11, 20, 0.9);
  color: var(--text);
  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: rgba(93, 175, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(93, 175, 255, 0.12);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ready-tip {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  text-align: center;
}

.status-bar {
  margin-top: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
}

.status-bar.ok {
  color: var(--ok);
}

.status-bar.warn {
  color: var(--warn);
}

.status-bar.error {
  color: var(--danger);
}

.transition-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(circle at center, rgba(93, 175, 255, 0.16), transparent 18%),
    rgba(3, 8, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.transition-core {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  border-right-color: var(--blue);
  animation: spin 1s linear infinite;
}

.transition-text {
  color: #dfeaff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .entry-hero {
    align-items: flex-start;
    padding: 28px 18px 40px;
  }

  .entry-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .entry-copy {
    text-align: center;
    padding: 0;
  }

  .entry-title-block {
    justify-items: center;
  }

  .entry-title {
    font-size: clamp(42px, 13vw, 64px);
  }

  .entry-subtitle {
    width: min(100%, 420px);
    margin: 16px auto 0;
    font-size: 16px;
  }

  .entry-copy-meta {
    justify-content: center;
    margin-top: 18px;
  }

  .auth-shell {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 20px;
  }

  .auth-shell-head h2 {
    font-size: 28px;
  }
}
