@import url('./base.css?v=2');

body.homepage {
  overflow: hidden;
  position: relative;
}

@media (max-width: 520px) {
  body.homepage {
    overflow-y: auto;
    min-height: 100dvh;
    height: auto;
  }

  .hero {
    min-height: 100dvh;
    padding: 80px 16px 80px;
  }
}

#bg-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.015) 2px,
    rgba(0, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 28%,
    rgba(2, 11, 20, 0.78) 68%,
    rgba(2, 11, 20, 0.94) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.hud-top {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 200, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  z-index: 7;
}

.corner {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 6;
}

.corner svg { width: 100%; height: 100%; }
.corner.tl { top: 24px; left: 24px; }
.corner.tr { top: 24px; right: 24px; transform: scaleX(-1); }
.corner.bl { bottom: 24px; left: 24px; transform: scaleY(-1); }
.corner.br { bottom: 24px; right: 24px; transform: scale(-1, -1); }

.hud-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  align-items: center;
  z-index: 7;
  color: rgba(0, 200, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.hud-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-bar .dot {
  width: 4px;
  height: 4px;
  background: var(--line-cyan-strong);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--line-cyan-strong);
  animation: blink 2s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-outer {
  position: absolute;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

.ring-outer::before,
.ring-outer::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--line-cyan-strong);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--line-cyan-strong), 0 0 20px var(--line-cyan-strong);
  transform: translateX(-50%);
}

.ring-outer::before { top: -3px; }
.ring-outer::after { bottom: -3px; }

.ring-mid {
  position: absolute;
  width: 510px;
  height: 510px;
  border: 1px dashed rgba(0, 180, 255, 0.2);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite reverse;
}

.ring-hud {
  position: absolute;
  width: 540px;
  height: 540px;
}

.logo-img {
  width: 420px;
  height: 420px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 20px rgba(0, 200, 255, 0.6))
    drop-shadow(0 0 60px rgba(0, 150, 255, 0.3));
  animation: logo-pulse 4s ease-in-out infinite;
}

.enter-stack {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.system-copy {
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.8;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.14);
}

.enter-button {
  position: relative;
  min-width: 260px;
  padding: 18px 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 180, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(10, 35, 60, 0.94), rgba(5, 18, 35, 0.96));
  box-shadow:
    0 0 24px rgba(0, 160, 255, 0.35),
    0 0 48px rgba(0, 120, 200, 0.25),
    0 0 72px rgba(0, 80, 160, 0.18),
    inset 0 0 28px rgba(0, 160, 220, 0.16),
    inset 0 1px 0 rgba(160, 220, 255, 0.12);
  cursor: pointer;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(0, 200, 255, 0.6),
    0 0 16px rgba(0, 180, 255, 0.4),
    0 0 24px rgba(0, 140, 220, 0.3);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast), background var(--transition-fast);
  overflow: hidden;
}

.enter-button::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  border: 1px solid rgba(180, 230, 255, 0.12);
  pointer-events: none;
}

.enter-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(0, 200, 255, 0.22) 50%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(0, 220, 255, 0.75);
  box-shadow:
    0 0 32px rgba(0, 180, 255, 0.55),
    0 0 64px rgba(0, 140, 220, 0.38),
    0 0 96px rgba(0, 100, 180, 0.28),
    0 0 140px rgba(0, 80, 160, 0.18),
    inset 0 0 36px rgba(0, 180, 240, 0.22),
    inset 0 1px 0 rgba(200, 240, 255, 0.18);
  text-shadow:
    0 0 12px rgba(0, 220, 255, 0.8),
    0 0 24px rgba(0, 200, 255, 0.6),
    0 0 36px rgba(0, 160, 220, 0.4);
}

.enter-button:hover::after,
.enter-button:focus-visible::after {
  transform: translateX(130%);
}

.enter-button:active {
  transform: translateY(-1px) scale(1.01);
}

/* 按钮两侧赛博装饰 */
.enter-button::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  border: 1px solid rgba(180, 230, 255, 0.12);
  pointer-events: none;
}

.enter-stack::before,
.enter-stack::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6), transparent);
  bottom: 50%;
}

.enter-stack::before {
  left: -80px;
}

.enter-stack::after {
  right: -80px;
}

.enter-subhint {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

@keyframes logo-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 20px rgba(0, 200, 255, 0.6))
      drop-shadow(0 0 60px rgba(0, 150, 255, 0.3));
  }
  50% {
    filter:
      drop-shadow(0 0 30px rgba(0, 230, 255, 0.92))
      drop-shadow(0 0 80px rgba(0, 180, 255, 0.5))
      drop-shadow(0 0 120px rgba(0, 100, 255, 0.3));
  }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 终端窗口样式 */
.terminal-box {
  position: fixed;
  bottom: 80px;
  left: 32px;
  width: 320px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 180, 255, 0.18);
  background: rgba(2, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(140, 220, 255, 0.85);
  z-index: 20;
  box-shadow:
    0 0 24px rgba(0, 140, 200, 0.12),
    inset 0 0 18px rgba(0, 120, 180, 0.06);
}

.terminal-title {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 180, 255, 0.55);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.12);
}

.terminal-line {
  display: flex;
  gap: 8px;
}

.terminal-line .prompt {
  color: rgba(0, 200, 255, 0.45);
}

.terminal-line .success {
  color: #66ff99;
  text-shadow: 0 0 8px rgba(102, 255, 153, 0.5);
}

.terminal-line .cursor {
  color: rgba(0, 200, 255, 0.7);
  animation: blink-cursor 1s step-end infinite;
  text-shadow: 0 0 6px rgba(0, 200, 255, 0.5);
}

@media (max-width: 900px) {
  .terminal-box { display: none; }
  .ring-outer { width: 420px; height: 420px; }
  .ring-mid { width: 360px; height: 360px; }
  .ring-hud { width: 390px; height: 390px; }
  .logo-img { width: 290px; height: 290px; }
  .enter-stack { bottom: -32px; }
  .hud-bar { gap: 14px; font-size: 10px; flex-wrap: wrap; justify-content: center; width: calc(100% - 40px); }
}

@media (max-width: 520px) {
  .ring-outer { width: 300px; height: 300px; }
  .ring-mid { width: 256px; height: 256px; }
  .ring-hud { width: 278px; height: 278px; }
  .logo-img { width: 200px; height: 200px; }
  .enter-stack { bottom: -48px; }
  .enter-button { min-width: 200px; padding: 15px 28px; font-size: 14px; letter-spacing: 0.32em; }
  .corner { width: 48px; height: 48px; }
  .corner.tl { top: 12px; left: 12px; }
  .corner.tr { top: 12px; right: 12px; }
  .corner.bl { bottom: 52px; left: 12px; }
  .corner.br { bottom: 52px; right: 12px; }
  .hud-bar { bottom: 16px; gap: 10px; font-size: 9px; }
  .hud-bar span:nth-child(2) { display: none; }
}
