* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #030914;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

/* =========================
   背景视频
========================= */

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030914;
}

.fallback-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 221, 214, 0.2), transparent 34%),
    radial-gradient(circle at 50% 82%, rgba(41, 132, 255, 0.18), transparent 42%),
    linear-gradient(145deg, #07192b 0%, #020713 100%);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.05) 28%,
      rgba(0, 0, 0, 0.18) 58%,
      rgba(0, 0, 0, 0.52) 100%
    ),
    radial-gradient(circle at 50% 12%, rgba(97, 225, 255, 0.13), transparent 34%);
}

/* =========================
   页面
========================= */

.page {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px;
}

/* =========================
   顶部 LOGO
========================= */

.top-logo {
  padding-top: 4.2vh;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.logo-stage {
  position: relative;
  width: min(82vw, 352px);
  height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 50%, rgba(36, 238, 220, 0.35), transparent 48%),
    radial-gradient(circle at 73% 50%, rgba(255, 225, 53, 0.2), transparent 44%),
    rgba(3, 16, 30, 0.2);
  filter: blur(20px);
  opacity: 0.9;
  animation: logoAura 4.5s ease-in-out infinite;
}

.logo-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(205, 246, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px) saturate(128%);
  -webkit-backdrop-filter: blur(8px) saturate(128%);
}

.logo-float {
  position: relative;
  z-index: 3;
  width: 90%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 28px;
}

.logo-float::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 42%;
  height: 230%;
  transform: rotate(22deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  animation: logoShine 5.2s ease-in-out infinite;
}

.top-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 318px;
  max-height: 84px;
  object-fit: contain;
  filter:
    drop-shadow(0 7px 16px rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 12px rgba(34, 228, 220, 0.38))
    brightness(1.22)
    contrast(1.08)
    saturate(1.18);
}

.logo-line {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 4;
  width: 42%;
  height: 1px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(74, 235, 255, 0.82), transparent);
  box-shadow: 0 0 14px rgba(74, 235, 255, 0.66);
  opacity: 0.75;
}

.pg-subtitle {
  margin-top: 2px;
  font-size: clamp(13px, 3.85vw, 17px);
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.68),
    0 0 12px rgba(64, 210, 255, 0.2);
}

@keyframes logoAura {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes logoShine {
  0% {
    left: -70%;
    opacity: 0;
  }

  35% {
    opacity: 0;
  }

  50% {
    opacity: 0.9;
  }

  65% {
    opacity: 0;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}

/* =========================
   底部 Dock
========================= */

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 13px;
  z-index: 6;
  width: calc(100% - 28px);
  max-width: 432px;
  transform: translateX(-50%);
  padding: 9px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(10, 28, 50, 0.26), rgba(3, 11, 24, 0.42));
  border: 1px solid rgba(206, 242, 255, 0.12);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.glass-card {
  border: 1px solid rgba(221, 245, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.032));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(14px) saturate(142%);
  -webkit-backdrop-filter: blur(14px) saturate(142%);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.13) 46%,
      transparent 72%
    );
  opacity: 0;
  transition: opacity 0.16s ease;
}

.glass-card:active {
  transform: scale(0.965);
  border-color: rgba(221, 245, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
}

.glass-card:active::before {
  opacity: 1;
}

/* =========================
   主入口
========================= */

.main-entry {
  width: 100%;
  height: 56px;
  border-radius: 19px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  background:
    radial-gradient(circle at 8% 16%, rgba(45, 228, 219, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(27, 96, 156, 0.38), rgba(6, 21, 45, 0.31));
}

.brand-icon {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.42))
    brightness(1.14)
    saturate(1.1);
}

.brand-text {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.98);
  white-space: nowrap;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(225, 243, 255, 0.62);
  white-space: nowrap;
}

.entry-tag {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(65, 209, 255, 0.32), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(198, 238, 255, 0.2);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================
   小按钮
========================= */

.mini-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mini-card {
  min-height: 47px;
  border-radius: 17px;
  padding: 6px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.026)),
    rgba(5, 19, 41, 0.23);
}

.mini-icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 12px rgba(0,0,0,0.16);
}

.mini-icon span {
  position: relative;
  z-index: 2;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
}

.mini-gift span {
  color: #ffe08a;
}

.mini-vip span {
  color: #9ee9ff;
}

.mini-wechat span {
  color: #67f5a4;
}

.mini-qq span {
  color: #7abbff;
}

.mini-group span {
  color: #65edff;
}

.mini-service span {
  color: #ffbf72;
}

.mini-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
}

.mini-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 780;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-text span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.08;
  color: rgba(225, 243, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  padding: 7px 0 0;
  text-align: center;
  font-size: 9px;
  color: rgba(225, 243, 255, 0.34);
}

/* =========================
   弹窗：多图切换
========================= */

.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(45, 201, 255, 0.14), transparent 36%),
    rgba(0, 0, 0, 0.78);
}

.popup-mask.show {
  display: flex;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  animation: popupIn 0.2s ease;
  background:
    linear-gradient(180deg, rgba(13, 40, 73, 0.72), rgba(4, 12, 26, 0.92));
  border: 1px solid rgba(210, 242, 255, 0.14);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.popup-img-wrap {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-img-wrap img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  cursor: pointer;
}

.popup-nav {
  position: absolute;
  top: 43%;
  z-index: 5;
  width: 36px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-prev {
  left: 8px;
}

.popup-next {
  right: 8px;
}

.popup-info {
  padding: 13px 15px 14px;
  text-align: center;
}

.popup-title {
  font-size: 17px;
  font-weight: 850;
  color: rgba(255,255,255,0.96);
}

.popup-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(230, 246, 255, 0.62);
}

.popup-link {
  margin-top: 11px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(56, 216, 255, 0.88), rgba(35, 134, 255, 0.76));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(35, 172, 255, 0.28);
}

.popup-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 0 13px;
}

.popup-dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.popup-dot.active {
  width: 18px;
  background: rgba(77, 226, 255, 0.88);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* =========================
   手机小屏
========================= */

@media (max-width: 370px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-logo {
    padding-top: 3.6vh;
  }

  .logo-stage {
    width: min(88vw, 330px);
    height: 104px;
  }

  .logo-orbit {
    height: 76px;
  }

  .logo-float {
    height: 84px;
    padding: 9px 10px;
  }

  .top-brand-logo {
    max-height: 74px;
  }

  .pg-subtitle {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .bottom-dock {
    width: calc(100% - 20px);
    bottom: 10px;
    padding: 8px;
    border-radius: 22px;
  }

  .main-entry {
    height: 52px;
    border-radius: 17px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 13px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text span {
    font-size: 9px;
  }

  .entry-tag {
    height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .mini-grid {
    gap: 6px;
  }

  .mini-card {
    min-height: 44px;
    border-radius: 15px;
    padding: 5px 6px;
    gap: 6px;
  }

  .mini-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 11px;
  }

  .mini-icon span {
    font-size: 13px;
  }

  .mini-text strong {
    font-size: 12px;
  }

  .mini-text span {
    font-size: 8.5px;
  }

  .footer {
    padding-top: 6px;
    font-size: 8.5px;
  }
}

/* =========================
   PC 端：全屏，不再小窗口
========================= */

@media (min-width: 768px) {
  .page {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }

  .bg-video,
  .fallback-bg,
  .bg-overlay {
    left: 0;
    width: 100%;
    transform: none;
  }

  .top-logo {
    position: fixed;
    top: 7vh;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0;
    z-index: 8;
  }

  .logo-stage {
    width: 420px;
    height: 132px;
  }

  .logo-orbit {
    height: 96px;
  }

  .top-brand-logo {
    max-width: 380px;
    max-height: 96px;
  }

  .pg-subtitle {
    font-size: 18px;
  }

  .bottom-dock {
    left: 50%;
    bottom: 28px;
    width: 430px;
    max-width: 430px;
    transform: translateX(-50%);
  }

  .popup-box {
    max-width: 520px;
  }
}