/* gate.css —— 雷达智联 · 欢迎页与口令页视觉（与页面端同步维护） */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #EAE4D6; background: #0F0D0A;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }

/* ============================================================
   v4.9 欢迎页 + 邀请码（左视觉 / 右登录）
   ============================================================ */
.gate { position: fixed; inset: 0; z-index: 9999; display: none; background: #0F0D0A; }
.gate.show { display: block; }
.gate.ok { animation: gateOut .26s ease both; }
@keyframes gateOut { to { opacity: 0; transform: scale(1.01); } }
body.gate-lock { overflow: hidden; }
body.gate-lock .main { overflow: hidden; }

/* ---------------- 阶段一：欢迎 ---------------- */
.gw {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 24px; overflow-y: auto;
  background:
    radial-gradient(900px 520px at 50% -6%, rgba(176, 141, 82, .32), transparent 62%),
    radial-gradient(680px 460px at 82% 108%, rgba(18, 128, 90, .14), transparent 60%),
    linear-gradient(180deg, #16140F, #0F0D0A 72%);
  transition: opacity .42s ease, transform .42s ease;
}
.gw.out { opacity: 0; transform: scale(1.014); pointer-events: none; }
.gw-grid {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 32%, #000, transparent 72%);
}
.gw-glow {
  position: absolute; left: 50%; top: -300px; width: 680px; height: 680px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(176, 141, 82, .36), transparent 66%);
  filter: blur(16px); pointer-events: none;
}
.gw-inner { position: relative; width: 100%; max-width: 660px; text-align: center; color: #EAE4D6; }
.gw-inner > * { animation: gwIn .78s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gwIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gw-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 26px; animation-delay: .05s; }
.gw-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #B08D52, #A5854F);
  box-shadow: 0 16px 32px -18px rgba(165, 133, 79, .95);
}
.gw-mark svg { width: 22px; height: 22px; }
.gw-co { font-size: 11px; letter-spacing: .3em; color: rgba(245, 241, 232, .42); font-weight: 600; }

.gw-inner h1 { font-family: "Noto Serif SC","Songti SC","STSong",serif; font-weight: 700;
  margin: 0 0 14px; font-size: 40px; line-height: 1.16; font-weight: 750; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff, #C8BCA5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-delay: .13s;
}
.gw-lead { margin: 0 0 30px; font-size: 15px; line-height: 1.75; color: rgba(245, 241, 232, .6); animation-delay: .22s; }

.gw-points {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 0 0 30px; padding: 0; text-align: left; animation-delay: .3s;
}
.gw-points li {
  padding: 16px 15px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .038); border: 1px solid rgba(255, 255, 255, .075);
  transition: border-color .2s, background .2s, transform .2s;
}
.gw-points li:hover { border-color: rgba(186, 151, 90, .42); background: rgba(176, 141, 82, .1); transform: translateY(-2px); }
.gw-points b { display: block; font-size: 13.5px; font-weight: 650; color: #F3EEE1; margin-bottom: 6px; }
.gw-points span { display: block; font-size: 11.8px; line-height: 1.65; color: rgba(245, 241, 232, .46); }

.gw-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 620; color: #fff;
  background: linear-gradient(180deg, #B08D52, #A5854F);
  box-shadow: 0 20px 38px -20px rgba(165, 133, 79, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: filter .16s, transform .12s; animation-delay: .4s;
}
.gw-go svg { width: 18px; height: 18px; transition: transform .18s; }
.gw-go:hover { filter: brightness(1.07); }
.gw-go:hover svg { transform: translateX(3px); }
.gw-go:active { transform: translateY(1px); }
.gw-foot { margin: 20px 0 0; font-size: 11.5px; color: rgba(245, 241, 232, .28); animation-delay: .5s; }

/* ---------------- 阶段二：邀请码 ---------------- */
.gate-login {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 472px;
  opacity: 0; pointer-events: none; transition: opacity .55s ease .04s;
}
.gate-login.on { opacity: 1; pointer-events: auto; }

/* 左：视觉轮播 */
.gl-hero { position: relative; overflow: hidden; background: #131109; }
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.05s ease; }
.hero-slide.on { opacity: 1; }
.hs-art { position: absolute; inset: 0; overflow: hidden; }

.art1 { background: radial-gradient(circle at 50% 52%, rgba(176, 141, 82, .3), transparent 58%), linear-gradient(160deg, #171510, #12100C); }
.ring {
  position: absolute; left: 50%; top: 52%; border: 1px solid rgba(201, 168, 118, .16); border-radius: 50%;
  width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin;
}
.ring.r1 { width: 24vmin; height: 24vmin; margin: -12vmin 0 0 -12vmin; }
.ring.r2 { width: 42vmin; height: 42vmin; margin: -21vmin 0 0 -21vmin; }
.sweep {
  position: absolute; left: 50%; top: 52%; width: 60vmin; height: 60vmin; margin: -30vmin 0 0 -30vmin;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(176, 141, 82, .5), rgba(176, 141, 82, .06) 34%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 63%);
  mask-image: radial-gradient(circle, #000 62%, transparent 63%);
  animation: sweep 6.5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #D4B888;
  box-shadow: 0 0 14px rgba(201, 168, 118, .95); animation: blip 2.8s ease-in-out infinite;
}
.blip.b1 { left: 61%; top: 41%; }
.blip.b2 { left: 39%; top: 61%; animation-delay: 1s; }
.blip.b3 { left: 57%; top: 68%; animation-delay: 1.9s; }
@keyframes blip { 0%, 100% { opacity: .2; transform: scale(.65); } 50% { opacity: 1; transform: scale(1); } }

.art2 {
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 22%,
    linear-gradient(160deg, #16140F, #12100C);
}
.bars { position: absolute; left: 9%; right: 9%; bottom: 36%; height: 40%; display: flex; align-items: flex-end; gap: 2.6%; }
.bars i {
  flex: 1; border-radius: 5px 5px 0 0; transform-origin: bottom;
  background: linear-gradient(180deg, rgba(186, 151, 90, .9), rgba(176, 141, 82, .18));
  box-shadow: 0 0 22px -6px rgba(176, 141, 82, .8);
  animation: grow 3.8s ease-in-out infinite;
}
.bars i:nth-child(1) { height: 58%; animation-delay: .0s; }
.bars i:nth-child(2) { height: 86%; animation-delay: .22s; }
.bars i:nth-child(3) { height: 46%; animation-delay: .44s; }
.bars i:nth-child(4) { height: 92%; animation-delay: .66s; }
.bars i:nth-child(5) { height: 66%; animation-delay: .88s; }
.bars i:nth-child(6) { height: 88%; animation-delay: 1.1s; }
.bars i:nth-child(7) { height: 52%; animation-delay: 1.32s; }
@keyframes grow { 0%, 100% { transform: scaleY(.48); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }

.art3 { background: radial-gradient(circle at 50% 56%, rgba(165, 133, 79, .30), transparent 60%), linear-gradient(160deg, #16140F, #12100C); }
.pulse {
  position: absolute; left: 50%; top: 55%; width: 30vmin; height: 30vmin; margin: -15vmin 0 0 -15vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 118, .55), rgba(165, 133, 79, .05) 70%);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.55); opacity: .95; } 72% { opacity: .12; } 100% { transform: scale(1.3); opacity: 0; } }
.art3 .rings {
  position: absolute; left: 50%; top: 55%; width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin;
  border-radius: 50%; border: 1px solid rgba(201, 168, 118, .16);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 118, .05);
}
.scanline {
  position: absolute; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 118, .75), transparent);
  animation: scan 4.6s linear infinite;
}
@keyframes scan { 0% { top: 10%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 88%; opacity: 0; } }

.hs-cap { position: absolute; left: 8%; right: 8%; bottom: 14%; max-width: 460px; }
.hs-cap span { display: block; font-size: 10.5px; letter-spacing: .22em; color: rgba(245, 241, 232, .4); margin-bottom: 10px; }
.hs-cap h3 { font-family: "Noto Serif SC","Songti SC","STSong",serif; margin: 0 0 8px; font-size: 27px; font-weight: 700; letter-spacing: .01em; color: #F8F4EA; }
.hs-cap p { margin: 0; font-size: 13px; line-height: 1.72; color: rgba(245, 241, 232, .5); }

.hero-nav { position: absolute; left: 8%; bottom: 8%; display: flex; gap: 8px; z-index: 2; }
.hero-nav i { width: 24px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .18); cursor: pointer; transition: width .3s, background .3s; }
.hero-nav i.on { width: 38px; background: #BA9760; }
.hero-tag { position: absolute; left: 8%; top: 8%; font-size: 10px; letter-spacing: .3em; color: rgba(245, 241, 232, .26); }

/* 右：登录面板 */
.gl-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 44px 42px; border-left: 1px solid rgba(255, 255, 255, .065);
  background: linear-gradient(180deg, #171510, #12100C);
}
.gl-panel .gate-card {
  width: 100%; max-width: 372px; padding: 34px 30px 22px;
  animation: panelIn .6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gl-copy { margin: 0; font-size: 11px; color: rgba(245, 241, 232, .24); }

/* ---------------- 口令卡片 ---------------- */
.gate-card {
  border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(33, 29, 22, .94), rgba(26, 23, 17, .97));
  border: 1px solid rgba(255, 255, 255, .09); color: #EAE4D6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -46px rgba(0, 0, 0, .95);
}
.gate-mark {
  width: 44px; height: 44px; margin: 0 auto 15px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #B08D52, #A5854F);
  box-shadow: 0 14px 28px -16px rgba(165, 133, 79, .95);
}
.gate-mark svg { width: 23px; height: 23px; }
.gate-card h2 { font-family: "Noto Serif SC","Songti SC","STSong",serif; margin: 0 0 7px; font-size: 16.5px; font-weight: 700; letter-spacing: .01em; color: #F8F4EA; }
.gate-sub { margin: 0 0 20px; font-size: 12.5px; color: rgba(245, 241, 232, .56); }
.gate-field { display: flex; flex-direction: column; gap: 10px; }
#gateInput {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; text-align: center;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13);
  color: #fff; font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: .1em;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
#gateInput::placeholder { color: rgba(245, 241, 232, .3); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
#gateInput:focus { border-color: rgba(186, 151, 90, .82); background: rgba(255, 255, 255, .075); box-shadow: 0 0 0 3px rgba(176, 141, 82, .18); }
#gateGo {
  width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 13px;
  font-size: 14.5px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #AC8A50, #A5854F);
  box-shadow: 0 14px 28px -18px rgba(165, 133, 79, .95);
  transition: filter .16s, transform .1s;
}
#gateGo:hover { filter: brightness(1.07); }
#gateGo:active { transform: translateY(1px); }
.gate-err { min-height: 18px; margin: 9px 0 0; font-size: 12.5px; color: #ff8f96; }
.gate-foot { margin: 2px 0 0; font-size: 11.5px; color: rgba(245, 241, 232, .3); }
.gate.shake .gate-card { animation: gateShake .34s ease; }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-7px); }
  44% { transform: translateX(6px); }
  66% { transform: translateX(-4px); }
  86% { transform: translateX(2px); }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .gate-login { grid-template-columns: 1fr 420px; }
  .gl-panel { padding: 40px 26px; }
}
@media (max-width: 900px) {
  .gate-login { grid-template-columns: 1fr; grid-template-rows: 232px minmax(0, 1fr); }
  .gl-hero { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .hs-cap { left: 26px; right: 26px; bottom: 20px; }
  .hs-cap span { margin-bottom: 6px; }
  .hs-cap h3 { font-size: 19px; margin-bottom: 4px; }
  .hs-cap p { display: none; }
  .hero-nav { left: 26px; bottom: 12px; }
  .hero-nav i { width: 18px; }
  .hero-nav i.on { width: 28px; }
  .hero-tag { left: 26px; top: 16px; }
  .gl-panel { padding: 24px 20px 28px; gap: 14px; justify-content: flex-start; overflow-y: auto; }
  .gl-panel .gate-card { max-width: 100%; padding: 26px 22px 18px; }
  .gw-inner h1 { font-size: 30px; }
  .gw-lead { font-size: 13.5px; margin-bottom: 22px; }
  .gw-points { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .gw-points li { padding: 11px 13px; }
  .gw-go { width: 100%; }
}
@media (max-width: 560px) {
  .gw { padding: 28px 18px; }
  .gw-inner h1 { font-size: 26px; }
  .gw-brand { margin-bottom: 20px; }
  .gate-login { grid-template-rows: 196px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sweep, .blip, .bars i, .pulse, .scanline, .gw-inner > *, .gl-panel .gate-card { animation: none !important; }
}

