* {
  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;
}

body {
  position: relative;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
}

/* =========================
   背景：优先由 HTML 读取 link.js 的 SITE_BACKGROUND.image
========================= */

.bg-video {
  display: none !important;
}

.fallback-bg,
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../picture/bg-main.jpg?v=20260602");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #030914;
  pointer-events: none;
}

.fallback-bg::after,
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.02) 40%,
      rgba(0, 0, 0, 0.12) 70%,
      rgba(0, 0, 0, 0.36) 100%
    );
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 105%, rgba(35, 177, 255, 0.12), transparent 42%),
    rgba(0, 0, 0, 0.03);
}

/* =========================
   页面主体
========================= */

.page {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px;
}

/* =========================
   原超级大 LOGO 区：隐藏
========================= */

.top-logo,
.logo-stage,
.logo-aura,
.logo-orbit,
.logo-float,
.top-brand-logo,
.logo-line,
.pg-subtitle,
.main-entry {
  display: none !important;
}

/* =========================
   底部 2 按钮区域
========================= */

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 8;
  width: calc(100% - 32px);
  max-width: 430px;
  transform: translateX(-50%);
  padding: 10px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(10, 28, 50, 0.28), rgba(3, 11, 24, 0.52));
  border: 1px solid rgba(206, 242, 255, 0.14);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.mini-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(221, 245, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px) saturate(142%);
  -webkit-backdrop-filter: blur(14px) saturate(142%);
  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.14) 46%,
      transparent 72%
    );
  opacity: 0;
  transition: opacity 0.16s ease;
}

.glass-card:active {
  transform: scale(0.965);
  border-color: rgba(221, 245, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055));
}

.glass-card:active::before {
  opacity: 1;
}

.mini-card {
  min-height: 62px;
  border-radius: 20px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  text-align: left;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 228, 219, 0.2), transparent 38%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(5, 19, 41, 0.3);
}

.mini-card:nth-child(n + 3) {
  display: none !important;
}

.mini-icon {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    0 4px 12px rgba(0,0,0,0.18);
}

.mini-icon span {
  position: relative;
  z-index: 2;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
}

.mini-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1;
}

.mini-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-text span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.1;
  color: rgba(225, 243, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-qq span {
  color: #7abbff;
}

.mini-wechat span {
  color: #78f5c2;
}

.footer {
  display: none !important;
}

/* =========================
   左侧在线咨询按钮
========================= */

.side-consult {
  position: fixed;
  left: 0;
  top: 34%;
  z-index: 9998;
  width: 58px;
  min-height: 166px;
  border-radius: 0 24px 24px 0;
  background: linear-gradient(180deg, #76a8ff 0%, #3c86ff 100%);
  box-shadow:
    0 10px 26px rgba(30, 110, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  animation: sidePulse 2s infinite;
}

.side-consult::before {
  content: "💬";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #4a8cff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.side-consult span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.12;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.side-consult:active {
  transform: scale(0.96);
}

@keyframes sidePulse {
  0% {
    box-shadow:
      0 10px 26px rgba(30, 110, 255, 0.42),
      0 0 0 0 rgba(62, 130, 255, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  70% {
    box-shadow:
      0 10px 26px rgba(30, 110, 255, 0.42),
      0 0 0 13px rgba(62, 130, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  100% {
    box-shadow:
      0 10px 26px rgba(30, 110, 255, 0.42),
      0 0 0 0 rgba(62, 130, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

/* =========================
   弹窗
========================= */

.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  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-nav.hide {
  display: none !important;
}

.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);
  cursor: pointer;
}

.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);
  }
}

/* =========================
   微信 / QQ 内置浏览器遮罩
========================= */

.browser-guide-mask {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

.browser-guide-mask.show {
  display: block;
}

.browser-guide-arrow {
  position: fixed;
  right: 18px;
  top: 10px;
  width: 88px;
  height: 88px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  border-radius: 0 18px 0 0;
  transform: rotate(-10deg);
  opacity: 0.95;
}

.browser-guide-arrow::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -9px;
  width: 16px;
  height: 16px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(45deg);
}

.browser-guide-box {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 420px;
  text-align: center;
  padding: 28px 22px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 60px rgba(0,0,0,0.42);
}

.browser-guide-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd36a, #ff8f35);
  color: #111;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 10px 32px rgba(255, 170, 60, 0.45);
}

.browser-guide-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.browser-guide-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
  margin-bottom: 18px;
}

.browser-guide-steps {
  text-align: left;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
}

.browser-guide-steps b {
  color: #ffd36a;
}

.browser-guide-tip {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

body.browser-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* =========================
   手机小屏
========================= */

@media (max-width: 370px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bottom-dock {
    width: calc(100% - 20px);
    bottom: 12px;
    padding: 8px;
    border-radius: 22px;
  }

  .mini-grid {
    gap: 7px;
  }

  .mini-card {
    min-height: 56px;
    border-radius: 17px;
    padding: 7px 8px;
    gap: 7px;
  }

  .mini-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 12px;
  }

  .mini-icon span {
    font-size: 14px;
  }

  .mini-text strong {
    font-size: 14px;
  }

  .mini-text span {
    font-size: 9px;
  }

  .side-consult {
    width: 54px;
    min-height: 154px;
    border-radius: 0 22px 22px 0;
  }

  .side-consult span {
    font-size: 17px;
  }
}

/* =========================
   PC 端
========================= */

@media (min-width: 768px) {
  .page {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }

  .fallback-bg,
  .page-bg {
    background-size: contain;
    background-position: center center;
  }

  .bottom-dock {
    left: 50%;
    bottom: 28px;
    width: 430px;
    max-width: 430px;
    transform: translateX(-50%);
  }

  .side-consult {
    top: 36%;
  }

  .popup-box {
    max-width: 520px;
  }
}