* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-page {
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #000;
}

.home-page::before,
.home-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-page::before {
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 60px);
  animation: grid-shift 20s linear infinite;
  z-index: 0;
}

.home-page::after {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0) 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 191, 255, 0.7) 0%, rgba(0, 191, 255, 0) 70%),
    radial-gradient(ellipse at 50% 80%, rgba(50, 205, 50, 0.6) 0%, rgba(50, 205, 50, 0) 65%),
    radial-gradient(circle at center, transparent 70%, rgba(10, 5, 32, 0.9) 100%),
    linear-gradient(135deg, #000000 0%, #0a0520 100%);
  background-blend-mode: overlay, screen, hard-light, normal;
  animation: aurora-drift 25s infinite alternate ease-in-out, aurora-pulse 8s infinite alternate;
  z-index: 0;
}

.container {
  width: min(92vw, 540px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 60px 14px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.container > *:not(.pyramid-loader) {
  position: relative;
  z-index: 1;
}

.pyramid-loader {
  position: absolute;
  top: 118px;
  right: -26px;
  width: 300px;
  height: 300px;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) scale(0.56);
}

.pyramid-loader .wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 4s linear infinite;
}

.pyramid-loader .wrapper .side {
  width: 70px;
  height: 70px;
  position: absolute;
  inset: 0;
  margin: auto;
  transform-origin: center top;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pyramid-loader .wrapper .side1 {
  transform: rotateZ(-30deg) rotateY(90deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}

.pyramid-loader .wrapper .side2 {
  transform: rotateZ(30deg) rotateY(90deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}

.pyramid-loader .wrapper .side3 {
  transform: rotateX(30deg);
  background: conic-gradient(#2f2585, #d8cce6, #f028fd, #2bdeac);
}

.pyramid-loader .wrapper .side4 {
  transform: rotateX(-30deg);
  background: conic-gradient(#2bdeac, #f028fd, #d8cce6, #2f2585);
}

.pyramid-loader .wrapper .shadow {
  width: 60px;
  height: 60px;
  background: #8b5ad5;
  position: absolute;
  inset: 0;
  margin: auto;
  transform: rotateX(90deg) translateZ(-40px);
  filter: blur(12px);
}

.title {
  font-size: clamp(38px, 7.2vw, 64px);
  line-height: 1.05;
  margin: 28px 0 48px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(153, 205, 255, 0.2);
}

.api-status {
  margin: -32px 0 20px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #ffe8e8;
  background: rgba(180, 40, 40, 0.45);
  border: 1px solid rgba(255, 120, 120, 0.5);
  border-radius: 10px;
  text-align: center;
}

.site-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-btn {
  width: 100%;
  border: none;
  border-radius: 20px;
  background: linear-gradient(32deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  font-family: "Ropa Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05rem;
  padding: 0;
  cursor: pointer;
  transition: all 1.5s ease;
}

.site-btn > span {
  display: inline-block;
  width: 100%;
  padding: 22px 26px;
  border-radius: 20px;
  font-size: clamp(26px, 4.5vw, 38px);
  color: #f5f8ff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  background: #ffffff10;
  backdrop-filter: blur(20px);
  transition: 0.4s ease-in-out;
}

.site-btn:hover > span {
  backdrop-filter: blur(0px);
  color: #fff;
}

.tips {
  margin: auto 0 18px;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.65;
  color: rgba(245, 248, 255, 0.98);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.62);
  background: rgba(8, 12, 24, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
}

.action-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(18, 39, 55, 0.74);
  border-radius: 14px;
  font-size: clamp(14px, 2.6vw, 22px);
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-bar > span {
  color: #eaf2ff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

@keyframes aurora-drift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(30deg) brightness(1.2); }
  100% { filter: hue-rotate(60deg) brightness(1); }
}

@keyframes grid-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

@keyframes spin {
  100% { transform: rotateY(360deg); }
}

@keyframes aurora-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}

@media (max-width: 620px) {
  .pyramid-loader {
    top: 86px;
    left: 50%;
    right: auto;
    opacity: 0.5;
    transform: translateX(-50%) rotateX(-20deg) scale(0.42);
  }
}
