/* ==================== CSS 变量定义 ==================== */
:root {
  /* 主色调 */
  --color-green-dark: #1b5e20;
  --color-green-primary: #2e7d32;
  --color-green-light: #4caf50;
  --color-green-bright: #66bb6a;
  --color-green-pale: #e8f5e9;
  --color-green-section: #33691e;

  /* 黄色系 */
  --color-yellow-primary: #ffd600;
  --color-yellow-light: #fff9c4;
  --color-yellow-pale: #fffde7;
  --color-yellow-cta: #ffc107;

  /* 其他颜色 */
  --color-blue: #1976d2;
  --color-blue-light: #42a5f5;
  --color-red: #e53935;
  --color-pink: #ec407a;
  --color-orange: #ff9800;
  --color-gold: #d4af37;
  --color-silver: #9e9e9e;
  --color-purple: #9c27b0;

  /* 中性色 */
  --color-text-dark: #212121;
  --color-text-gray: #616161;
  --color-text-light: #9e9e9e;
  --color-white: #ffffff;
  --color-bg-cream: #fafaf5;
  --color-bg-light-green: #f1f8e9;
  --color-bg-purple: #e1bee7;
  --color-bg-animation: #d4a5d4;

  /* 阴影 */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.15);

  /* 圆角 */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-xl: 16px;
  --radius-xxl: 20px;
  --radius-full: 9999px;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;

  /* 移动端宽度 */
  --mobile-width: 375px;

  --font-header: "Fredoka One", sans-serif;
  /* 字体 */
  --font-title: "Montserrat", "cursive", "cursive", sans-serif;
  --font-body: Arial, sans-serif;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}

/* ==================== PC端容器与移动端包装器 ==================== */
.pc-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  gap: var(--spacing-sm);
}

/* ==================== HOW TO PLAY 装饰图片脉动动画 ==================== */
@keyframes pulse-fast {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes pulse-fast-reverse {
  0%,
  100% {
    transform: rotate(180deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.25);
  }
}

.howto-decor-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  animation: pulse-fast 0.6s ease-in-out infinite;
}

.howto-decor-img:last-child {
  animation: pulse-fast-reverse 0.6s ease-in-out infinite;
  align-items: flex-start;
  padding: 0;
}

.mobile-wrapper {
  width: 100%;
  max-width: 100%;
  background-color: var(--color-white);
  overflow: hidden;
  position: relative;
}

/* PC端1.5倍缩放居中显示 */
@media (min-width: 600px) {
  .pc-container {
    padding: 0;
    justify-content: center;
  }
  .mobile-wrapper {
    width: var(--mobile-width);
    transform: scale(1.5);
    transform-origin: top center;
    margin-bottom: calc(var(--mobile-width) * 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}

/* ==================== Hero 区域 ==================== */
.hero-section {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 50%, #66bb6a 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='15' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='80' cy='60' r='20' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E")
    repeat;
  pointer-events: none;
}

/* 顶部标签行 */
.hero-top-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.fun-label {
  background-color: var(--color-yellow-primary);
  color: var(--color-green-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-ball-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Hero 内容区 */
.hero-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.1;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title-smile {
  color: var(--color-yellow-primary);
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--color-yellow-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-weight: 600;
}

.hero-image {
  flex-shrink: 0;
  width: 45%;
}

.hero-main-img {
  width: 100%;
  display: block;
}

/* ==================== 特点图标区 ==================== */
.features-section {
  padding: var(--spacing-lg) var(--spacing-lg);
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  background-color: var(--color-yellow-primary);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

/* 移动端 */
@media (max-width: 599px) {
  .feature-icon {
    width: 100%;
    height: auto;
  }
}

/* PC端 */
@media (min-width: 600px) {
  .feature-icon {
    width: 65px;
    height: 65px;
  }
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-label {
  font-size: 0.45rem;
  font-weight: 800;
  color: var(--color-green-dark);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==================== HOW TO PLAY 区域 ==================== */
.howto-section {
  padding-top: 100px;
  background-color: var(--color-white);
  position: relative;
  z-index: 1;
  margin-top: -90px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.howto-title {
  font-family: var(--font-header);
  font-size: 34px;
  color: var(--color-green-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* ==================== 标题文字柔和脉动 ==================== */
@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

.title-pulse {
  display: inline-block;
  animation: pulse-soft 1.2s ease-in-out infinite;
}

.howto-decoration {
  color: var(--color-green-light);
  font-size: 18px;
}

/* 步骤卡片 */
.step-card {
  position: relative;
  overflow: hidden;
  padding: 0 var(--spacing-lg);
  margin: 10px 0;
}

.step-image {
  width: 100%;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.step-content {
  position: absolute;
  top: 12px;
  left: 25px;
  right: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  z-index: 2;
  flex-direction: column;
  max-width: 30%;
}

.step-content:nth-child(2) {
  left: initial;
  right: 25px;
}

.step-number-badge {
  width: 38px;
  height: 38px;
  background-color: var(--color-green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.step-number {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--color-white);
  font-weight: bold;
}

.step-text {
  flex: 1;
}

.step-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  color: #2e7d32;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.5px;
}

.step-desc {
  font-size: 12px;
  color: var(--color-green-dark);
  line-height: 1.5;
  font-weight: bold;
}

.step-image img {
  width: 100%;
  object-fit: contain;
}

/* ==================== EASY TO LEARN 横幅 ==================== */
.easy-banner {
  background-color: #257d2f;
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin: 0 var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  margin-bottom: 20px;
}

.easy-star {
  width: 16px;
  height: 16px;
  object-fit: contain;
  position: absolute;
  left: calc(40% - 120px);
  top: 50%;
  transform: translateY(-60%);
}

.easy-text {
  font-family: var(--font-title);
  font-size: 12px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ==================== 动图占位区 ==================== */
.animation-section {
  padding: 0 var(--spacing-md) var(--spacing-lg);
  position: relative;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e0e0e0;
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #999999;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.video-loaded .video-placeholder {
  display: none;
}

.animation-video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
  display: block;
  object-fit: cover;
}

/* ==================== 40% OFF 促销区 ==================== */
.promo-section {
  overflow: hidden;
  background-color: var(--color-yellow-pale);
  position: relative;
}

/* 促销头部 */
.promo-header {
  position: relative;
  overflow: hidden;
}

.promo-header-img {
  width: 100%;
  height: auto;
  display: block;
}
/* 促销产品图片 */
.promo-product-image {
  position: relative;
}

.promo-badge {
  position: absolute;
  top: 15px;
  left: 10px;
  transform: rotate(-11deg);
  font-family: "Impact", "Anton", sans-serif;
  text-align: center;
  z-index: 3;
  width: 100px;
  user-select: none;
}

.badge-percent {
  display: block;
  font-size: 40px;
  font-weight: normal;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
  transform: skewX(-15deg);
  text-align: center;
}

.badge-off {
  display: block;
  font-size: 23px;
  font-weight: normal;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
  transform: skewX(-15deg);
}

.promo-main-img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.promo-product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.product-mask-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 促销产品信息 */
.promo-product-info {
  padding: var(--spacing-lg);
  background-color: var(--color-white);
}

/* 产品标题 */
.product-title-row {
  display: flex;
  margin-bottom: 4px;
}

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

.product-title-text {
  font-size: 20px;
  font-weight: 800;
  color: #000;
  text-align: left;
}

/* 价格行 */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: flex-start;
}

.product-price-current {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #d32f2f;
}

.product-price-original {
  font-size: 14px;
  color: #999999;
  text-decoration: line-through;
  font-weight: 600;
  padding-top: 5px;
}

.product-price-discount {
  background-image: url("icon23.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 80px;
  height: 30px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-top: 5px;
}

/* ==================== 随机抖动动画 ==================== */
@keyframes shake-random {
  0%,
  100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-3px) rotate(-1deg);
  }
  30% {
    transform: translateX(3px) rotate(1deg);
  }
  45% {
    transform: translateX(-2px) rotate(-0.5deg);
  }
  60% {
    transform: translateX(2px) rotate(0.5deg);
  }
  75% {
    transform: translateX(-1px);
  }
  90% {
    transform: translateX(1px);
  }
}

.shake-now {
  animation: shake-random 0.4s ease-out;
}

/* 选项组 */
.product-option-group {
  margin-bottom: 14px;
}

.option-label {
  font-size: 12px;
  font-weight: 600;
  color: #676767;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* 颜色选项 */
.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #e6e8df;
  background-color: #f5f5ef;
  color: #343e12;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 37px;
}

.option-btn.shoppaas-sku-active {
  border-color: #2e7d32;
  background-color: #2e7d32;
  color: var(--color-white);
}

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

/* 尺寸选项 */
.size-options {
  display: flex;
  gap: 10px;
}

.size-icon {
  font-size: 14px;
  margin-right: 2px;
}

/* 数量和加购行 */
.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid #cccccc;
  border-radius: 6px;
  overflow: hidden;
  width: 120px;
  height: 44px;
  flex: 1;
}

.qty-btn {
  width: 36px;
  height: 100%;
  background-color: #f5f5f5;
  color: #333333;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border: none;
}

.qty-btn:hover {
  background-color: #e0e0e0;
}

.qty-value {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.add-to-cart-btn {
  flex: 1;
  height: 44px;
  background-color: #c01d17;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(192, 29, 23, 0.3);
  transition: all 0.2s ease;
}

.cart-icon {
  width: 20px;
  height: 20px;
}

.add-to-cart-btn:hover {
  box-shadow: 0 4px 12px rgba(192, 29, 23, 0.4);
}

/* BUY NOW 按钮 */
.buy-now-btn {
  width: 100%;
  height: 50px;
  background-color: #ffc107;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.buy-now-btn:hover {
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5);
}

.buy-arrow {
  font-size: 24px;
  font-weight: 700;
}

/* 支付方式 */
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.payment-img {
  max-width: 100%;
  height: auto;
}

/* 支付方式 */
.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.payment-icon {
  height: 24px;
  padding: 2px 8px;
  border-radius: var(--radius-small);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
}

.payment-american-express {
  background-color: #006fcf;
  color: var(--color-white);
}

.payment-discover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.payment-jcb {
  background-color: #0e4c96;
  color: var(--color-white);
}

.payment-mastercard {
  background: linear-gradient(135deg, #eb001b, #f79e1b);
  color: var(--color-white);
}

.payment-visa {
  background-color: #1a1f71;
  color: var(--color-white);
}

.payment-paypal {
  background-color: #003087;
  color: var(--color-white);
}

/* ==================== 4种颜色选择区 ==================== */
.colors-section {
  background-color: #3a8635;
  padding: var(--spacing-md) var(--spacing-xl);
  text-align: center;
  border-radius: 10px;
  padding-bottom: 60px;
}

.colors-title {
  font-family: var(--font-header);
  font-size: 20px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.colors-subtitle-badge {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto var(--spacing-lg);
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-card-image {
  width: auto;
}

.color-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==================== 使用场景区 ==================== */
.occasions-section {
  background-color: #e8eecc;
  padding: var(--spacing-xl) var(--spacing-xl);
  text-align: center;
  border-radius: 10px 10px 0 0;
  margin-top: -40px;
}

.occasions-title {
  font-family: var(--font-header);
  font-size: 32px;
  line-height: 1;
  color: var(--color-green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.occasion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.occasion-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.occasion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.occasion-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-green-dark);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

/* ==================== 底部CTA ==================== */
.cta-section {
  padding: var(--spacing-lg) var(--spacing-md);
  background-color: var(--color-white);
}

.cta-button {
  margin-top: 20px;
  width: 100%;
  font-family: var(--font-title);
  height: 56px;
  background: linear-gradient(135deg, var(--color-yellow-cta), #ffb300);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
  transition: box-shadow 0.2s ease;
}

.cta-button:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.cta-cart-icon {
  font-size: 24px;
  color: var(--color-green-dark);
}

.cta-text {
  flex: 1;
  text-align: center;
}

.cta-main-text {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-green-dark);
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
}

.cta-sub-text {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  color: var(--color-green-primary);
  font-weight: 600;
  line-height: 1;
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: 1.8px solid var(--color-green-primary);
  border-radius: 50%;
  margin-left: 4px;
}

.cta-arrow::after {
  content: "";
  width: 3px;
  height: 3px;
  border-right: 1.8px solid var(--color-green-primary);
  border-top: 1.8px solid var(--color-green-primary);
  transform: rotate(45deg) translateX(-0.5px);
}

/* ==================== IntersectionObserver 滚动动画 ==================== */
/* 初始隐藏状态：动画触发前不可见 */
[data-animate] {
  opacity: 0;
}

/* 动画触发后由 animate.css 控制显示和动画过程 */
[data-animate].animate__animated {
  opacity: 1;
}

.promo-badge-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
}
.promo-badge-container img {
  width: 130px;
  margin-top: -10px;
}
