/* ---------- 进入页：深色未来感 ---------- */
:root {
  --lg-bg: #060a18;
  --lg-text: #e8edf7;
  --lg-muted: #93a0b8;
  --lg-line: rgba(148, 163, 184, .14);
  --lg-blue: #60a5fa;
  --lg-violet: #a78bfa;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--lg-text);
  min-height: 100vh;
  background: linear-gradient(160deg, #060a18 0%, #0a1226 45%, #0e1733 100%);
  overflow-x: hidden;
}

/* 背景层 */
.landing-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.zoom-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%);
}
.zoom-layer {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(148, 163, 184, .34) 0, rgba(148, 163, 184, .34) 1.5px, transparent 1.5px, transparent 46px),
    repeating-linear-gradient(120deg, rgba(148, 163, 184, .34) 0, rgba(148, 163, 184, .34) 1.5px, transparent 1.5px, transparent 46px);
  animation: zoomLayer 16s linear infinite;
  will-change: transform, opacity;
}
.zl-1 { animation-delay: 0s; }
.zl-2 { animation-delay: -4s; }
.zl-3 { animation-delay: -8s; }
.zl-4 { animation-delay: -12s; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.glow-1 { width: 480px; height: 480px; left: -120px; top: -140px; background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 70%); animation: glowFloat 9s ease-in-out infinite alternate; }
.glow-2 { width: 520px; height: 520px; right: -160px; bottom: -180px; background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 70%); animation: glowFloat 11s ease-in-out infinite alternate-reverse; }

/* 顶部导航 */
.landing-nav {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  animation: riseIn .7s ease-out both;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-logo { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(96, 165, 250, .5)); }
.guest-link {
  color: var(--lg-blue); text-decoration: none; font-size: 14px;
  padding: 8px 16px; border: 1px solid rgba(96, 165, 250, .35); border-radius: 999px;
  transition: all .2s;
}
.guest-link:hover { background: rgba(96, 165, 250, .12); box-shadow: 0 0 18px rgba(96, 165, 250, .25); }
.arrow { display: inline-block; margin-left: 4px; }

/* 主区：左 hero 右卡片 */
.landing-main {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  padding: 40px 40px 60px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  min-height: calc(100vh - 150px);
}
.hero { animation: riseIn .8s ease-out both; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lg-blue); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(96, 165, 250, .3); border-radius: 999px; padding: 6px 14px;
  background: rgba(96, 165, 250, .08);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lg-blue); box-shadow: 0 0 8px var(--lg-blue); }
.hero h1 { font-size: 52px; line-height: 1.22; margin: 24px 0 18px; font-weight: 800; letter-spacing: 1px; }
.grad {
  background: linear-gradient(92deg, #7dd3fc, #a78bfa 45%, #60a5fa 70%, #7dd3fc);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleShine 7s ease-in-out infinite;
}
.hero-sub { color: var(--lg-muted); font-size: 16px; line-height: 1.8; max-width: 30em; margin: 0 0 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span {
  font-size: 13px; color: var(--lg-text);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--lg-line); background: rgba(255, 255, 255, .04);
}

/* 登录/注册卡片 */
.auth-card {
  background: rgba(15, 23, 42, .55);
  animation: riseIn .8s ease-out .15s both;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 30px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(96, 165, 250, .06), 0 0 60px rgba(96, 165, 250, .08);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 4px; }
.tab {
  flex: 1; padding: 10px 0; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--lg-muted); font-size: 15px; font-weight: 600;
  transition: all .2s;
}
.tab.active { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; box-shadow: 0 4px 16px rgba(99, 102, 241, .4); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--lg-muted); letter-spacing: .5px; }
.field input {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--lg-text); font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--lg-blue); box-shadow: 0 0 0 3px rgba(96, 165, 250, .18); }
.field input::placeholder { color: rgba(147, 160, 184, .55); }
.btn-glow {
  margin-top: 6px; padding: 13px 0; border: none; border-radius: 10px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 4px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-glow:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 30px rgba(99, 102, 241, .5); }
.btn-glow:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.msg { min-height: 20px; margin: 0; font-size: 13px; color: #fda4af; text-align: center; }
.msg.ok { color: #6ee7b7; }
.guest-enter {
  display: block; text-align: center; margin-top: 18px;
  color: var(--lg-muted); font-size: 13px; text-decoration: none;
  transition: color .2s;
}
.guest-enter:hover { color: var(--lg-blue); }

.landing-foot {
  position: relative; z-index: 1;
  text-align: center; color: rgba(147, 160, 184, .6); font-size: 12px;
  padding: 0 24px 28px;
}

/* 移动端 */
@media (max-width: 820px) {
  .landing-nav { padding: 16px 20px; }
  .zl-glyph { font-size: 12px; opacity: .4; }
  .zl-glyph svg { width: 20px; height: 20px; }
  .g-b, .g-d { display: none; }
  .g-a { left: 8%; top: 14%; }
  .g-c { left: 16%; top: auto; bottom: 20%; }
  .landing-main { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 48px; min-height: auto; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 14px; }
  .auth-card { padding: 22px 18px; }
}

/* ---------- 动态背景（克制级） ---------- */
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); opacity: .45; }
  to { transform: translate(28px, 22px) scale(1.12); opacity: .68; }
}
@keyframes zoomLayer {
  0%   { transform: scale(.22); opacity: 0; }
  25%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(4.4); opacity: 0; }
}

/* 层内发光字样与图标（按 46px 网格周期摆放在格子里，随层缩放） */
.zl-glyph {
  position: absolute;
  color: rgba(125, 211, 252, .6);
  font-size: 15px; font-weight: 600; letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(96, 165, 250, .8), 0 0 28px rgba(96, 165, 250, .4);
  opacity: .55;
  pointer-events: none;
}
.zl-glyph svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 0 8px rgba(96, 165, 250, .9)); }
.g-a { left: 184px; top: 138px; }
.g-b { left: 920px; top: 230px; }
.g-c { left: 322px; top: 552px; }
.g-d { left: 1012px; top: 644px; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes titleShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom-layer, .glow-1, .glow-2, .grad,
  .landing-nav, .hero, .auth-card { animation: none !important; }
  .zl-2, .zl-3, .zl-4 { display: none; }
}
