/* ============================================
   开屏引导广告 - 精美自适应样式
   支持PC端和移动端，24小时内仅弹出一次
   设计风格：大气、简约、精致、实用
   ============================================ */

/* 遮罩层 - 毛玻璃效果 */
.splash-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.splash-ad-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.splash-ad-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* 主卡片 - 简约大气 */
.splash-ad-card {
  position: relative;
  width: 92%;
  max-width: 460px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  padding: 48px 40px 40px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.splash-ad-overlay.active .splash-ad-card {
  transform: scale(1) translateY(0);
}

/* 顶部渐变装饰条 */
.splash-ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0188fb 0%, #00d4aa 50%, #0188fb 100%);
  background-size: 200% 100%;
  animation: splashGradient 3s ease infinite;
}

@keyframes splashGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 关闭按钮 - 明显易见 */
.splash-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.splash-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

.splash-close:active {
  transform: rotate(90deg) scale(0.9);
}

.splash-close svg {
  width: 18px;
  height: 18px;
  stroke: #666;
  stroke-width: 2.5;
  fill: none;
  transition: stroke 0.3s ease;
}

.splash-close:hover svg {
  stroke: #333;
}

/* 图标区域 */
.splash-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0188fb 0%, #00b8d4 50%, #00d4aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 30px rgba(1, 136, 251, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

.splash-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(1, 136, 251, 0.15);
  animation: splashIconPulse 2s ease-in-out infinite;
}

@keyframes splashIconPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0; }
}

.splash-icon-wrap svg {
  width: 38px;
  height: 38px;
  color: #fff;
}

/* 标题 */
.splash-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.splash-subtitle {
  font-size: 15px;
  color: #888;
  margin-bottom: 32px;
  font-weight: 400;
}

/* 引导提示框 */
.splash-guide {
  background: linear-gradient(135deg, rgba(1, 136, 251, 0.06) 0%, rgba(0, 212, 170, 0.06) 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(1, 136, 251, 0.12);
  position: relative;
}

.splash-guide::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0188fb, #00d4aa);
  border-radius: 3px 0 0 3px;
}

.splash-guide-text {
  font-size: 18px;
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 14px;
}

.splash-guide-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #0188fb;
  font-weight: 500;
}

.splash-arrow {
  display: inline-flex;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.7; }
}

/* CTA 按钮 */
.splash-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #0188fb 0%, #0077e6 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 
    0 8px 24px rgba(1, 136, 251, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.splash-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.splash-cta-btn:hover::before {
  left: 100%;
}

.splash-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(1, 136, 251, 0.5);
}

.splash-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(1, 136, 251, 0.35);
}

.splash-cta-btn svg {
  width: 22px;
  height: 22px;
}

/* 倒计时提示 */
.splash-countdown {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.splash-countdown-text {
  font-size: 13px;
  color: #999;
  letter-spacing: 1px;
}

.splash-countdown-bar {
  display: block;
  width: 100px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.splash-countdown-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0188fb, #00d4aa);
  border-radius: 3px;
  animation: countdownBar 3s linear forwards;
}

@keyframes countdownBar {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* ========== 移动端适配 ========== */
@media (max-width: 767px) {
  .splash-ad-card {
    padding: 40px 28px 32px;
    border-radius: 24px;
  }
  
  .splash-icon-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
  }
  
  .splash-icon-wrap svg {
    width: 32px;
    height: 32px;
  }
  
  .splash-title {
    font-size: 24px;
    letter-spacing: 3px;
  }
  
  .splash-subtitle {
    font-size: 14px;
    margin-bottom: 26px;
  }
  
  .splash-guide {
    padding: 20px 18px;
    margin-bottom: 26px;
    border-radius: 14px;
  }
  
  .splash-guide-text {
    font-size: 16px;
  }
  
  .splash-cta-btn {
    padding: 14px 30px;
    font-size: 17px;
  }
  
  .splash-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  
  .splash-close svg {
    width: 16px;
    height: 16px;
  }
}

/* 超小屏适配 */
@media (max-width: 360px) {
  .splash-ad-card {
    padding: 36px 24px 28px;
    border-radius: 20px;
  }
  
  .splash-icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .splash-icon-wrap svg {
    width: 28px;
    height: 28px;
  }
  
  .splash-title {
    font-size: 22px;
    letter-spacing: 2px;
  }
  
  .splash-subtitle {
    font-size: 13px;
    margin-bottom: 22px;
  }
  
  .splash-guide-text {
    font-size: 15px;
  }
  
  .splash-cta-btn {
    padding: 12px 26px;
    font-size: 16px;
  }
}

/* ========== 深色模式适配 ========== */
body.night .splash-ad-card {
  background: linear-gradient(145deg, #1e1e2e 0%, #16162a 100%);
}

body.night .splash-title {
  color: #e8e8f0;
}

body.night .splash-subtitle {
  color: #7777a0;
}

body.night .splash-guide {
  background: linear-gradient(135deg, rgba(1, 136, 251, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
  border-color: rgba(1, 136, 251, 0.2);
}

body.night .splash-guide-text {
  color: #e8e8f0;
}

body.night .splash-close {
  background: rgba(255, 255, 255, 0.1);
}

body.night .splash-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

body.night .splash-close svg {
  stroke: #aaa;
}

body.night .splash-close:hover svg {
  stroke: #fff;
}

body.night .splash-countdown-text {
  color: #666;
}

body.night .splash-countdown-bar {
  background: rgba(255, 255, 255, 0.1);
}
