* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== 意向确认首屏 ========== */
#age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

#age-gate.hidden {
  display: none;
}

.age-bg {
  position: absolute;
  top: 0;
  left: auto;
  width: 500px;
  height: 100%;
  z-index: -1;
}

.age-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.age-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #000;
}

.age-box {
  position: relative;
  z-index: 2;
  padding: 5px 5px 20px 0;
  border-radius: 20px;
  text-align: center;
  max-width: 92%;
}

.age-box h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #df4f9e;
  font-weight: bold;
}

.age-box p {
  font-size: 20px;
  margin-bottom: 35px;
  color: #ff64b4;
  line-height: 1.6;
  padding: 0 0 0 5px;
}

.age-box p strong {
  font-size: 25px;
}

.age-buttons button {
  padding: 14px 50px;
  margin: 0 12px;
  font-size: 19px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  min-width: 120px;
}

.age-buttons .yes {
  background: #28a745;
  color: white;
}

/* ========== 轮播 + 下载遮罩（点击「有」后显示） ========== */
.main-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

.main-wrap.show {
  display: block;
}

.swiper-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}

.swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 6%;
}

.overlay.show {
  display: flex;
}

.overlay-text {
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ========== 纯 CSS 超高级下载按钮 ========== */
.download-btn-outer {
  perspective: 800px;
  display: inline-block;
}

.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 48px;
  min-width: 280px;
  border: none;
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease,
    filter 0.4s ease;
  animation: download-btn-float 4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(168, 85, 247, 0.2),
    0 0 80px rgba(236, 72, 153, 0.15);
}

.download-btn-outer:hover .download-btn {
  transform: scale(1.05) rotateX(-4deg) translateZ(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(168, 85, 247, 0.45),
    0 0 120px rgba(236, 72, 153, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.1);
  animation: none;
}

.download-btn-outer:active .download-btn {
  transform: scale(0.98) rotateX(0) translateZ(0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(168, 85, 247, 0.3);
}

.download-btn-outer:focus-visible .download-btn {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

/* 旋转霓虹锥形渐变边框（外圈 conic，内填渐变） */
.download-btn__border {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    #ff6b9d,
    #c44569,
    #a855f7,
    #6366f1,
    #ec4899,
    #ff6b9d
  );
  z-index: -2;
}

.download-btn__border::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #ff6b9d 0%,
    #c44569 20%,
    #a855f7 50%,
    #6366f1 80%,
    #ec4899 100%
  );
  background-size: 400% 400%;
  animation: download-btn-bg 8s ease infinite;
  z-index: 0;
}

/* 玻璃高光层 */
.download-btn__glass {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(0, 0, 0, 0.03) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* 双层扫光 */
.download-btn__shine {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.download-btn__shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: download-btn-shine 2.5s ease-in-out infinite;
}

.download-btn__shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: download-btn-shine 2.5s ease-in-out infinite 0.8s;
}

.download-btn__label {
  position: relative;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  z-index: 2;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 255, 255, 0.15);
}

@keyframes download-btn-float {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 4px 20px rgba(0,0,0,0.15), 0 0 40px rgba(168,85,247,0.2), 0 0 80px rgba(236,72,153,0.15); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 8px 28px rgba(0,0,0,0.18), 0 0 55px rgba(168,85,247,0.28), 0 0 100px rgba(236,72,153,0.22); }
}

@keyframes download-btn-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes download-btn-shine {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* 外层可点区域保持手型 */
.download-btn-outer.overlay-text {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ========== 微信/QQ 内打开引导蒙层 ========== */
#wechat-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#wechat-mask .wechat-mask-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#wechat-mask .wechat-mask-pop {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
}

#wechat-mask .wechat-mask-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

#wechat-mask .wechat-mask-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

#wechat-mask .wechat-mask-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

#wechat-mask .wechat-mask-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
}

#wechat-mask .wechat-mask-steps {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 16px;
}

#wechat-mask .wechat-mask-steps .step-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: #07c160;
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 12px;
}

#wechat-mask .wechat-mask-divider {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: 16px 0;
}

#wechat-mask .wechat-mask-divider span {
  background: #fff;
  padding: 0 10px;
}

#wechat-mask .wechat-mask-copy {
  display: flex;
  gap: 8px;
}

#wechat-mask #wechat-url {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}

#wechat-mask #wechat-copy-btn {
  padding: 10px 20px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* 兼容旧版页面用到的类（若 next 等页引用） */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}

.text strong {
  color: #c41e3a;
}

.btn {
  display: inline-block;
  padding: 12px 48px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #c41e3a, #e63950);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.btn:active {
  transform: scale(0.98);
}
