/* 广告页面样式 */

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

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ad-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ad-content {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideIn 0.8s ease-in-out 0.2s both;
  position: relative;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ad-content h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  animation: textSlideIn 0.6s ease-in-out 0.3s both;
}

@keyframes textSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ad-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  animation: textSlideIn 0.6s ease-in-out 0.4s both;
}

/* 广告内容区域样式 */
.ad-banner {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: textSlideIn 0.6s ease-in-out 0.5s both;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.ad-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

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

.ad-text h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
  animation: textSlideIn 0.6s ease-in-out 0.6s both;
}

.ad-text p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  animation: textSlideIn 0.6s ease-in-out 0.7s both;
}

/* 联系方式样式 */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  animation: textSlideIn 0.6s ease-in-out 0.8s both;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

.contact-icon {
  font-size: 20px;
  margin-right: 10px;
  animation: bounce 2s ease-in-out infinite;
}

.contact-text {
  color: white !important;
  font-size: 16px !important;
  font-weight: bold;
  margin: 0 !important;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.countdown-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite, textSlideIn 0.6s ease-in-out 0.9s both;
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 50%);
}

#countdown {
  color: white;
  font-size: 48px;
  font-weight: bold;
  animation: pulse 1s ease-in-out infinite, textSlideIn 0.6s ease-in-out 1s both;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.close-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  margin-top: 20px;
  animation: textSlideIn 0.6s ease-in-out 1.1s both;
  position: relative;
  overflow: hidden;
}

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

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

.close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.close-btn:active {
  transform: translateY(0);
}

/* 响应式适配 - 桌面端 */
@media (min-width: 1024px) {
  .ad-container {
    max-width: 600px;
  }
  
  .ad-content {
    padding: 50px 40px;
  }
  
  .ad-content h1 {
    font-size: 32px;
  }
  
  .ad-text h2 {
    font-size: 28px;
  }
  
  .contact-text {
    font-size: 18px !important;
  }
}

/* 响应式适配 - 平板端 */
@media (max-width: 768px) {
  .ad-container {
    max-width: 90%;
  }
  
  .ad-content {
    padding: 35px 25px;
  }
  
  .ad-content h1 {
    font-size: 26px;
  }
  
  .ad-text h2 {
    font-size: 22px;
  }
  
  .contact-text {
    font-size: 17px !important;
  }
  
  .countdown-box {
    width: 130px;
    height: 130px;
  }
  
  #countdown {
    font-size: 42px;
  }
}

/* 响应式适配 - 手机端 */
@media (max-width: 480px) {
  .ad-container {
    padding: 15px;
  }
  
  .ad-content {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .ad-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .ad-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .ad-banner {
    padding: 20px;
    margin: 20px 0;
  }
  
  .ad-text h2 {
    font-size: 20px;
  }
  
  .ad-text p {
    font-size: 14px;
  }
  
  .contact-item {
    padding: 10px 15px;
  }
  
  .contact-icon {
    font-size: 18px;
  }
  
  .contact-text {
    font-size: 15px !important;
  }
  
  .countdown-box {
    width: 120px;
    height: 120px;
    margin: 20px auto;
  }
  
  #countdown {
    font-size: 36px;
  }
  
  .close-btn {
    padding: 12px 40px;
    font-size: 16px;
  }
}

/* 响应式适配 - 小屏手机 */
@media (max-width: 375px) {
  .ad-content {
    padding: 25px 15px;
  }
  
  .ad-content h1 {
    font-size: 22px;
  }
  
  .ad-text h2 {
    font-size: 18px;
  }
  
  .contact-item {
    padding: 8px 12px;
  }
  
  .contact-icon {
    font-size: 16px;
  }
  
  .contact-text {
    font-size: 14px !important;
  }
  
  .countdown-box {
    width: 100px;
    height: 100px;
  }
  
  #countdown {
    font-size: 30px;
  }
  
  .close-btn {
    padding: 10px 30px;
    font-size: 14px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 防止文本选择 */
.ad-content {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 增加触摸反馈 */
@media (hover: none) and (pointer: coarse) {
  .qq-contact, .close-btn {
    touch-action: manipulation;
  }
  
  .qq-contact:active, .close-btn:active {
    transform: scale(0.95);
  }
}
