/* ============================================
   春节主题 - 加入群聊页面
   主色调：深红 #DC143C | 金色 #FFD700 | 背景 #FFF5F0
   ============================================ */

body#index-qun {
  background: linear-gradient(180deg, #FFF5F0 0%, #FFE8E0 100%);
  color: #333333;
  min-height: 100vh;
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  padding-bottom: 20px;
}

body#index-qun::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.qun-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================
   群二维码卡片
   ============================================ */
.qrcode-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 
    0 4px 16px rgba(220, 20, 60, 0.15),
    0 2px 8px rgba(255, 215, 0, 0.1);
  animation: cardFloatIn 0.6s ease-out;
  text-align: center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.header-icon {
  width: 32px;
  height: 32px;
  fill: #FFD700;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #DC143C;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.qrcode-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #FFD700;
  box-shadow: 
    0 4px 16px rgba(220, 20, 60, 0.2),
    0 2px 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qrcode-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(220, 20, 60, 0.3),
    0 4px 12px rgba(255, 215, 0, 0.4);
}

.qrcode-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  background: #FFFFFF;
}

.qrcode-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qrcode-wrapper:hover .qrcode-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 48px;
  height: 48px;
  fill: #FFD700;
  opacity: 0.8;
}

.qrcode-tip {
  font-size: 14px;
  color: #8B4513;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

/* ============================================
   下载APP区域
   ============================================ */
.download-section {
  animation: cardFloatIn 0.6s ease-out 0.1s both;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-icon {
  width: 28px;
  height: 28px;
  fill: #FFD700;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #DC143C;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.download-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F5 100%);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 4px 16px rgba(220, 20, 60, 0.15),
    0 2px 8px rgba(255, 215, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: #DC143C;
  box-shadow: 
    0 8px 24px rgba(220, 20, 60, 0.25),
    0 4px 12px rgba(255, 215, 0, 0.2);
}

.download-card:hover::before {
  opacity: 1;
}

.android-card {
  border-color: #7FB069;
}

.android-card:hover {
  border-color: #7FB069;
}

.ios-card {
  border-color: #8B4513;
}

.ios-card:hover {
  border-color: #8B4513;
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 16px;
  border: 3px solid #DC143C;
  margin-bottom: 16px;
  box-shadow: 
    0 4px 12px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

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

.card-icon {
  width: 36px;
  height: 36px;
  fill: #DC143C;
}

.android-card .card-icon {
  fill: #7FB069;
}

.ios-card .card-icon {
  fill: #8B4513;
}

.card-content {
  flex: 1;
  margin-bottom: 16px;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  color: #DC143C;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.card-desc {
  font-size: 14px;
  color: #8B4513;
  margin: 0;
  opacity: 0.9;
}

.download-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(255, 215, 0, 0.4),
    0 2px 6px rgba(220, 20, 60, 0.2);
}

.android-btn {
  background: linear-gradient(135deg, #7FB069 0%, #6FA05A 100%);
  color: #FFFFFF;
  border: 2px solid #7FB069;
}

.android-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.android-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 16px rgba(127, 176, 105, 0.5),
    0 4px 8px rgba(220, 20, 60, 0.3);
  background: linear-gradient(135deg, #6FA05A 0%, #7FB069 100%);
}

.android-btn:hover::before {
  opacity: 1;
}

.ios-btn {
  background: linear-gradient(135deg, #8B4513 0%, #6B3410 100%);
  color: #FFFFFF;
  border: 2px solid #8B4513;
}

.ios-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ios-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 16px rgba(139, 69, 19, 0.5),
    0 4px 8px rgba(220, 20, 60, 0.3);
  background: linear-gradient(135deg, #6B3410 0%, #8B4513 100%);
}

.ios-btn:hover::before {
  opacity: 1;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-text {
  font-weight: 600;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 375px) {
  .qun-container {
    padding: 12px;
  }
  
  .qrcode-card,
  .download-card {
    padding: 16px;
    border-radius: 12px;
  }
  
  .card-title,
  .section-title {
    font-size: 18px;
  }
  
  .qrcode-image {
    max-width: 240px;
  }
  
  .card-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .card-icon {
    width: 32px;
    height: 32px;
  }
  
  .card-name {
    font-size: 16px;
  }
  
  .download-btn {
    height: 48px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .qun-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .qrcode-card,
  .download-card {
    padding: 28px;
  }
  
  .card-title,
  .section-title {
    font-size: 22px;
  }
  
  .qrcode-image {
    max-width: 320px;
  }
  
  .download-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .card-icon-wrapper {
    width: 72px;
    height: 72px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
  }
  
  .card-name {
    font-size: 20px;
  }
  
  .download-btn {
    height: 52px;
    font-size: 17px;
  }
}

/* ============================================
   减少动画（性能优化）
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .qrcode-card,
  .download-section,
  .download-card,
  .card-icon-wrapper {
    animation: none !important;
  }
  
  .download-card,
  .download-btn {
    transition: none !important;
  }
}

