/* ============================================
   春节喜庆主题 - 中国红、金色、玉绿色、洋红色
   主色调：中国红 #DC143C | 金色 #FFD700 | 玉绿色 #7FB069 | 洋红色 #FF1493
   ============================================ */

/* ============================================
   全局样式重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE5E5 100%);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  color: #333333;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   页面容器
   ============================================ */
.home-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ============================================
   Hero Section - 首屏区域（重新设计）
   ============================================ */
.hero-section {
  position: relative;
  padding: 32px 20px 40px;
  margin: 20px 0 32px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.95), rgba(0, 20, 40, 0.85));
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  animation: floatParticle 6s ease-in-out infinite;
}

.hero-particles .particle-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.hero-particles .particle-2 {
  top: 60%;
  right: 20%;
  animation-delay: 1.5s;
  background: rgba(255, 184, 0, 0.6);
}

.hero-particles .particle-3 {
  bottom: 30%;
  left: 30%;
  animation-delay: 3s;
}

.hero-particles .particle-4 {
  top: 40%;
  right: 35%;
  animation-delay: 4.5s;
  background: rgba(255, 184, 0, 0.6);
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-30px) translateX(20px);
    opacity: 1;
  }
}

.hero-canvas {
  width: 100%;
  height: 100%;
  filter: blur(0.5px);
}

/* 金色曲线动画 */
.gold-curve {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawCurve 4s ease-in-out infinite;
}

@keyframes drawCurve {
  0% {
    stroke-dashoffset: 500;
    opacity: 0.5;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: -500;
    opacity: 0.5;
  }
}

/* 蓝色数据流动画 */
.data-stream {
  animation: dataFlow 5s linear infinite;
}

.cyber-line {
  stroke-dasharray: 20 10;
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 30;
  }
}

@keyframes dataFlow {
  0% {
    transform: translateX(-50px);
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(50px);
    opacity: 0.4;
  }
}

/* 数据点闪烁 */
.data-point {
  animation: pointPulse 2s ease-in-out infinite;
}

@keyframes pointPulse {
  0%, 100% {
    opacity: 0.6;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 4;
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #00D4FF;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.badge-icon {
  font-size: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 70%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.title-line {
  display: block;
}

.title-line:nth-child(2) {
  margin-top: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 212, 255, 0.3);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #00D4FF;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   关键数据展示区（优化布局）
   ============================================ */
.metrics-section {
  margin: 32px 0;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-header {
  margin-bottom: 20px;
  padding: 0 4px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.title-accent {
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #00D4FF, #FFB800);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.title-text {
  color: #00D4FF;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.section-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 16px;
  margin-top: 4px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.metric-card:hover::before {
  left: 100%;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.metric-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.metric-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #00D4FF;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.metric-trend {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.metric-trend.trend-up {
  color: #00D4FF;
}

.metric-trend.trend-down {
  color: #FFB800;
}

/* ============================================
   轮播图Banner区域
   ============================================ */
.banner-carousel-section {
  margin: 16px 0;
  animation: fadeInUp 0.6s ease-out;
}

.banner-carousel-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #DC143C 0%, #FF6B6B 100%);
  box-shadow: 
    0 4px 20px rgba(220, 20, 60, 0.3),
    0 0 40px rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  z-index: 2;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #DC143C 0%, #FF6B6B 50%, #FFD700 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.banner-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: bannerPattern 20s linear infinite;
}

@keyframes bannerPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: bounce 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.placeholder-icon .icon-svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.placeholder-text {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
}

/* 指示点 */
.banner-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
  width: 20px;
  border-radius: 3px;
  background: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.indicator:hover {
  background: rgba(51, 136, 255, 0.8);
  border-color: #3388FF;
}

/* ============================================
   产品展示区域
   ============================================ */
.products-section {
  margin: 20px 0;
}

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

.product-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFE5E5 50%, #FFF8E7 100%);
  border: 2px solid rgba(220, 20, 60, 0.2);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-all;
  box-shadow: 
    0 4px 16px rgba(220, 20, 60, 0.15),
    0 0 30px rgba(255, 215, 0, 0.1);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #7FB069, #FF1493, #DC143C);
  background-size: 200% 100%;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.product-card::after {
  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;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(220, 20, 60, 0.25),
    0 0 50px rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.5);
}

.product-card:hover::after {
  opacity: 1;
}

/* 产品头部 */
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: #DC143C;
  line-height: 1.4;
  flex: 1;
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
  letter-spacing: 1px;
}

.product-badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, #DC143C, #FF6B6B);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 
    0 2px 8px rgba(220, 20, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.product-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShine 2s linear infinite;
}

@keyframes badgeShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.badge-icon .icon-svg {
  width: 16px;
  height: 16px;
}

.badge-text {
  position: relative;
  z-index: 1;
}

.product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-tag {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}

.product-tag.tag-duration {
  background: rgba(127, 176, 105, 0.15);
  border-color: rgba(127, 176, 105, 0.4);
  color: #7FB069;
  font-weight: 600;
}

.product-tag.tag-profit {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  color: #DC143C;
  font-weight: 600;
}

.product-price-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 20, 60, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.product-price-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
  background-size: 200% 100%;
  animation: priceBorderGlow 2s linear infinite;
}

@keyframes priceBorderGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.price-main,
.profit-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.price-label,
.profit-label {
  font-size: 12px;
  color: #888888;
  white-space: nowrap;
  font-weight: 400;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.price-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  animation: sealPulse 2s ease-in-out infinite;
}

.price-seal .icon-svg {
  width: 20px;
  height: 20px;
}

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

.price-currency {
  font-size: 18px;
  color: #DC143C;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.5);
}

.price-value {
  font-size: 28px;
  color: #DC143C;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.2;
  text-shadow: 
    2px 2px 4px rgba(255, 215, 0, 0.6),
    0 0 10px rgba(255, 215, 0, 0.3);
  position: relative;
}

.price-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  animation: priceUnderline 2s ease-in-out infinite;
}

@keyframes priceUnderline {
  0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

.profit-wrapper {
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.profit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: profitIconBounce 2s ease-in-out infinite;
}

.profit-icon .icon-svg {
  width: 20px;
  height: 20px;
}

@keyframes profitIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-10deg); }
  75% { transform: translateY(-5px) rotate(10deg); }
}

.profit-value {
  font-size: 22px;
  color: #FFD700;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.2;
  text-shadow: 
    2px 2px 4px rgba(220, 20, 60, 0.5),
    0 0 15px rgba(255, 215, 0, 0.6);
  animation: profitGlow 2s ease-in-out infinite;
}

@keyframes profitGlow {
  0%, 100% { text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.5), 0 0 15px rgba(255, 215, 0, 0.6); }
  50% { text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.7), 0 0 25px rgba(255, 215, 0, 0.9); }
}

/* 产品描述 */
.product-desc {
  font-size: 13px;
  color: #8B4513;
  line-height: 1.6;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.8), rgba(255, 229, 229, 0.6));
  border-radius: 10px;
  border-left: 4px solid #DC143C;
  border-right: 2px solid rgba(255, 215, 0, 0.3);
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(220, 20, 60, 0.1);
}

/* 操作按钮 */
.product-actions {
  margin-top: auto;
}

.product-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: visible;
  white-space: nowrap;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #DC143C, #B22222);
  color: #FFD700;
  box-shadow: 
    0 4px 16px rgba(220, 20, 60, 0.4),
    0 0 30px rgba(255, 215, 0, 0.3);
  border: 2px solid rgba(255, 215, 0, 0.3);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: visible;
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 
      0 4px 16px rgba(220, 20, 60, 0.4),
      0 0 30px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(220, 20, 60, 0.6),
      0 0 40px rgba(255, 215, 0, 0.5);
  }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #FFD700, #DC143C, #FF1493, #7FB069, #FFD700);
  background-size: 400% 400%;
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  animation: btnBorderGlow 3s linear infinite;
  transition: opacity 0.3s ease;
}

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

.btn-primary:hover::before {
  opacity: 0.6;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 6px 24px rgba(220, 20, 60, 0.5),
    0 0 50px rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, #FF1744, #DC143C);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  background: linear-gradient(135deg, #B22222, #8B0000);
}

.btn-primary .btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-disabled {
  background: #A0C4E8;
  color: #FFFFFF;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
  background: #A0C4E8;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: btnIconShake 2s ease-in-out infinite;
}

.btn-icon .icon-svg {
  width: 18px;
  height: 18px;
}

@keyframes btnIconShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.btn-text {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-arrow {
  font-size: 18px;
}

/* ============================================
   CTA 按钮区域（优化设计）
   ============================================ */
.cta-section {
  margin: 40px 0 32px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-wrapper {
  padding: 0 4px;
}

.cta-button {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #FFB800, #FF9500);
  border: none;
  border-radius: 28px;
  font-size: 18px;
  font-weight: 700;
  color: #0A0E1A;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(255, 184, 0, 0.4),
    0 0 40px rgba(255, 184, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(255, 184, 0, 0.5),
    0 0 60px rgba(255, 184, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-icon {
  font-size: 20px;
  position: relative;
  z-index: 2;
}

.cta-text {
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
}

.cta-arrow {
  font-size: 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.6) 0%, transparent 70%);
  border-radius: 28px;
  animation: ctaGlowPulse 2s ease-in-out infinite;
  z-index: 0;
}

@keyframes ctaGlowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.cta-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

.cta-particles .particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.cta-particles .particle:nth-child(2) {
  top: 40%;
  right: 20%;
  animation-delay: 0.5s;
}

.cta-particles .particle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 1s;
}

.cta-particles .particle:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation-delay: 1.5s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

/* ============================================
   弹窗样式
   ============================================ */
/* 购买弹窗样式 - 符合UI风格规范 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-container {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(220, 20, 60, 0.3),
    0 0 60px rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #7FB069, #FF1493, #DC143C);
  background-size: 200% 100%;
  animation: modalTopBorder 3s linear infinite;
}

@keyframes modalTopBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, #DC143C, #FF6B6B);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFD700;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  font-family: PingFang SC, Microsoft YaHei, Helvetica Neue, Arial, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-title .title-icon {
  font-size: 20px;
  display: inline-block;
}

.modal-title .title-text {
  display: inline-block;
}

.modal-close {
  color: #FFD700;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 215, 0, 0.6);
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  background: #FFFFFF;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
}

.modal-content p {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
  font-weight: 400;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #E6E6E6;
  background: #FFFFFF;
}

.modal-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #DC143C, #B22222);
  color: #FFD700;
  font-weight: 700;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-btn-primary:hover {
  background: linear-gradient(135deg, #FF1744, #DC143C);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
  transform: translateY(-2px);
}

.modal-btn-primary:active {
  background: linear-gradient(135deg, #B22222, #8B0000);
  transform: translateY(0);
}

.modal-btn-secondary {
  background: #FFFFFF;
  color: #888888;
  border: 1px solid #E6E6E6;
}

.modal-btn-secondary:hover {
  background: #F4F6F9;
  border-color: #CCCCCC;
}

.modal-btn-secondary:active {
  background: #E6E6E6;
}

/* 公告弹窗样式 */
.layui-layer-content .announcement-modal,
.announcement-modal {
  background: #FFFFFF !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.announcement-header {
  background: linear-gradient(135deg, #DC143C, #FF6B6B) !important;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}

.announcement-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.title-icon .icon-svg {
  width: 20px;
  height: 20px;
}

.title-text {
  color: #FFD700 !important;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.announcement-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  background: rgba(255, 215, 0, 0.2) !important;
  color: #FFD700 !important;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.announcement-close:hover {
  background: rgba(255, 215, 0, 0.3) !important;
  transform: scale(1.1) rotate(90deg);
  border-color: rgba(255, 215, 0, 0.6) !important;
}

.announcement-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  background: #FFFFFF !important;
}

.announcement-content {
  color: #333333 !important;
  background: #FFFFFF !important;
}

.announcement-content * {
  color: #333333 !important;
}

.content-text {
  font-size: 15px !important;
  color: #333333 !important;
  line-height: 1.8;
  word-wrap: break-word;
  word-break: break-all;
  background: transparent !important;
}

.content-text p {
  margin: 0 0 12px 0;
  color: #333333 !important;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-text span,
.content-text div,
.content-text strong,
.content-text em {
  color: #333333 !important;
}

/* 确保 layui 容器不影响文字颜色 */
.layui-layer-content {
  background: transparent !important;
}

.layui-layer.layui-layer-custom {
  background: transparent !important;
}

.layui-layer.layui-layer-custom .layui-layer-content {
  background: transparent !important;
}

/* ============================================
   动画定义
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 375px) {
  .banner-carousel {
    height: 160px;
  }
  
  .products-grid {
    gap: 12px;
  }
  
  .product-card {
    padding: 16px;
    gap: 14px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .product-tag {
    font-size: 12px;
    padding: 5px 10px;
  }

  .product-price-section {
    padding: 14px;
    gap: 10px;
  }

  .price-label,
  .profit-label {
    font-size: 13px;
  }

  .price-currency {
    font-size: 14px;
  }

  .price-value {
    font-size: 24px;
  }

  .profit-value {
    font-size: 18px;
  }

  .product-desc {
    font-size: 13px;
    padding: 10px;
  }

  .product-btn {
    height: 48px;
    font-size: 15px;
  }
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .product-card {
    padding: 18px;
    gap: 16px;
  }
  
  .product-title {
    font-size: 17px;
  }
  
  .price-value {
    font-size: 26px;
  }
  
  .profit-value {
    font-size: 19px;
  }
}

@media (min-width: 768px) {
  .home-container {
    max-width: 750px;
    margin: 0 auto;
  }
  
  .banner-carousel {
    height: 200px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card {
    padding: 24px;
    gap: 18px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-badge {
    font-size: 13px;
    padding: 5px 12px;
  }

  .product-tag {
    font-size: 14px;
    padding: 7px 14px;
  }

  .product-price-section {
    padding: 20px;
    gap: 14px;
  }

  .price-label,
  .profit-label {
    font-size: 15px;
  }

  .price-currency {
    font-size: 18px;
  }

  .price-value {
    font-size: 32px;
  }

  .profit-value {
    font-size: 22px;
  }

  .product-desc {
    font-size: 15px;
    padding: 14px;
  }

  .product-btn {
    height: 52px;
    font-size: 17px;
  }
}

/* ============================================
   滚动条样式
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F4F6F9;
}

::-webkit-scrollbar-thumb {
  background: #CCCCCC;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/* ============================================
   SVG图标通用样式
   ============================================ */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.icon-falling {
  width: 24px;
  height: 24px;
}

/* ============================================
   春节主题动画效果
   ============================================ */

/* 金币/梅花飘落动画 */
.falling-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.falling-particle {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fallingAnimation linear forwards;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.falling-particle .icon-svg {
  width: 100%;
  height: 100%;
}

@keyframes fallingAnimation {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

/* 烟花爆竹动画 */
.fireworks-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.firework-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: fireworkExplode 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes fireworkExplode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}
