/* 按钮脉冲动画持续播放 */
.animate__pulse {
  animation-iteration-count: infinite;
}

/* 调整animate.css动画时长（可选） */
:root {
  --animate-duration: 2s;
}

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

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  width: 100%;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f5f5f5;
}

.page-container {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.page-wrapper {
  width: 350px;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(2);
  transform-origin: top center;
  overflow: hidden;
}

@media screen and (max-width: 750px) {
  .page-wrapper {
    width: 100%;
    position: relative;
    left: auto;
    transform: none;
  }
}

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

/* ============ Hero - 美工图背景 ============ */
.hero {
  position: relative;
  width: 100%;
  background: #4a5c3c;
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  aspect-ratio: 1920 / 1220;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0;
  text-align: center;
  width: 51%;
  padding-top: 45px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.hero-title-line1 {
  font-family: "Grandista", sans-serif;
  font-size: 1.2rem;
  color: #395716;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.hero-title-main {
  font-family: Impact, sans-serif;
  font-size: 1.7rem;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin: 3px 0;
  text-shadow:
    -1px -1px 0 #395716,
    1px -1px 0 #395716,
    -1px 1px 0 #395716,
    1px 1px 0 #395716,
    -1px 0 0 #395716,
    1px 0 0 #395716,
    0 -1px 0 #395716,
    0 1px 0 #395716;
}

.hero-title-line2 {
  font-family: "Grandista", sans-serif;
  font-size: 1.2rem;
  color: #395716;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.hero-tagline {
  display: block;
  width: 85%;
}

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

.hero-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin-top: -10px;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  position: relative;
  padding-right: 10px;
}

.hero-feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-feature-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-icon img {
  width: 100%;
  height: auto;
}

.hero-feature-text {
  text-align: center;
}

.hero-feature-text span {
  display: block;
  font-size: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}

/* ============ 红色促销条 - 1:1还原 ============ */
.promo-banner {
  background: #d31b1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 15px;
  position: relative;
  min-height: 70px;
}

.promo-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.promo-label {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

.promo-discount {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fcd839;
  line-height: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

.promo-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  width: 50%;
}

.promo-timer-badge {
  width: 60%;
  margin-bottom: -5px;
}

.promo-time {
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.promo-time-labels {
  display: flex;
  gap: 10px;
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============ 特性区域 ============ */
.features-section {
  padding: 25px 10px;
  background: linear-gradient(to bottom, #f0f0eb, #fff);
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  color: #395716;
  margin-bottom: 6px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.section-subtitle {
  font-size: 0.75rem;
  color: #395716;
  margin-bottom: 20px;
  text-align: center;
}
.scenario-title {
  font-size: 0.85rem;
  padding: 5px 0px;
  color: #395716;
  text-align: center;
  font-weight: 600;
}

.features-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.features-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature-name {
  font-size: 0.65rem;
  color: #395716;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.feature-sub {
  font-size: 0.55rem;
  color: #395716;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
}

.features-comparison {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.comparison-bg {
}

.comparison-label {
  position: absolute;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
}

.comparison-label.before {
  top: 6px;
  right: 6px;
}

.comparison-label.after {
  bottom: 6px;
  left: 6px;
}

.features-leaf-decoration {
  position: absolute;
  right: 0px;
  top: 51px;
  width: 100px;
  height: 150px;
  opacity: 0.25;
  z-index: 1;
}

.features-leaf-decoration svg {
  width: 100%;
  height: 100%;
  fill: #395716;
}

/* ============ 懒人园艺 - 动图区域 ============ */
.lazy-section {
  padding: 20px;
  text-align: center;
  background: #fff;
}

.lazy-section h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  color: #395716;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.lazy-gifs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lazy-gif {
  width: 100%;
  background: rgb(0 150 136 / 22%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  min-height: 200px;
  aspect-ratio: 1;
}

.lazy-gif::before {
  content: "Loading...";
  position: absolute;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(57, 87, 22, 0.6);
  z-index: 1;
}

.lazy-gif.has-video::before {
  display: none;
}

.lazy-gif img,
.lazy-gif video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.lazy-gif video.playing {
  opacity: 1;
}

.lazy-gif:has(video.playing)::before {
  display: none;
}

/* ============ 产品详情区域 ============ */
.product-section {
  padding: 25px 20px;
  background: #fff;
  padding-top: 0;
}

.product-images {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}

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

.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-mask img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-promo-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.product-tag {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.product-tag.green {
  background: #5a7a3a;
  color: #e8f0d8;
}

.product-tag.dark {
  background: #333;
  color: #fff;
}

.product-title {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3px;
  margin-top: 40px;
  font-weight: 600;
}

.product-subtitle {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 12px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.price-current {
  font-size: 1.5rem;
  color: #d73020;
  font-weight: 700;
}

.price-original {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.price-discount {
  background: #c5d64b;
  color: #333;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.option-group {
  margin-bottom: 20px;
}

.option-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
  display: block;
}

.option-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #f5f5f0;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    color 0.15s ease-out;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #395716;
  white-space: nowrap;
  height: 35px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: background-color, border-color, color;
  -webkit-user-select: none;
  user-select: none;
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn.shoppaas-sku-active {
  background: #6e8c1f;
  color: #fff;
  border-color: #6e8c1f;
}

.option-btn.gold {
  background: linear-gradient(135deg, #c5a028, #8b7314);
  color: #fff;
  border-color: #c5a028;
}

.option-btn.gold.shoppaas-sku-active {
  background: linear-gradient(135deg, #e0b830, #a08018);
}

.quantity-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #333;
}

.btn-add-cart {
  flex: 1;
  background: #c2231d;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
}

.btn-buy-now {
  width: 100%;
  background: #c5c32c;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 15px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  margin: 8px 0;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 0;
}

.payment-icon {
  background: #fff;
  border: 1px solid #ddd;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #555;
}

/* ============ 场景区域 ============ */
.scenarios-section {
  padding: 25px 20px;
  text-align: center;
  background: #fff;
  position: relative;
  padding-bottom: 0;
}

.scenarios-section .section-title {
  color: #395716;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.scenario-card {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.scenario-image {
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.1);
}

.scenario-label {
  padding: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

/* ============ 产品细节区域 ============ */
.details-section {
  padding: 25px 20px;
  text-align: center;
  background: #fff;
  position: relative;
}

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

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

.detail-circle {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: #395716;
  margin-bottom: 2px;
}

.detail-desc {
  font-size: 0.45rem;
  color: #395716;
  line-height: 1.3;
}

/* ============ 底部促销区域 ============ */

.bottom-promo-badge {
  display: inline-block;
  width: 80%;
}

.bottom-promo-discount {
  font-size: 4rem;
  color: #d31b1b;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  font-family: "Oswald", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.bottom-promo-discount span {
  font-size: 1.3rem;
  vertical-align: top;
}

.bottom-promo-text {
  font-size: 0.95rem;
  color: #395716;
  margin-bottom: 2px;
  font-weight: 700;
}

.bottom-promo-desc {
  font-size: 0.6rem;
  color: #395716;
  margin-bottom: 0;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.btn-shop-large {
  background: #c2231d;
  color: #fff;
  padding: 3px 15px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  --animate-duration: 1s;
}

.btn-shop-large img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.bottom-promo-product {
  position: absolute;
  right: 10px;
  bottom: 20px;
  width: 35%;
}

.bottom-promo-inner {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-promo-product-placeholder {
  height: 180px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.7rem;
}

/* ============ 页脚信任区域 ============ */
.footer-trust {
  background: #4e6d1e;
  color: #9fb14d;
  padding: 10px 15px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trust-icon {
  width: 30%;
}

.trust-icon img {
  width: 100%;
  height: auto;
}

.trust-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #d6d160;
}

.trust-desc {
  font-size: 0.6rem;
  color: #cdcdcd;
}

.quantity-control-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  height: 40px;
  margin-top: 20px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background-color: white;
  font-size: 1.4rem;
  cursor: pointer;
  color: #2d3748;
  transition: all 0.3s ease;
}

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

.qty-value {
  font-size: 1.3rem;
  font-weight: bold;
  width: 80px;
  text-align: center;
  padding: 12px 0;
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
}

.btn-add-to-cart {
  flex: 1;
  height: 100%;
  border: none;
  background-color: #c11d17;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  --animate-duration: 1s;
  gap: 5px;
  padding: 0 5px;
}

.btn-add-to-cart:hover {
  background-color: #6b7a36;
}

.btn-add-to-cart i {
  margin-right: 8px;
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 22px;
  left: 50px;
  z-index: 10;
}

.cart-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #000;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  /* transition: opacity 0.5s ease; */
}

@keyframes shake {
  0%, 4%, 100% { transform: translateX(0); }
  1% { transform: translateX(-3px); }
  2% { transform: translateX(3px); }
  3% { transform: translateX(-3px); }
}

.discount-badge {
  animation: shake 4.2s ease-in-out infinite;
}


@media screen and (max-width: 768px) {
  .bottom-promo-inner {
    gap: 4px;
  }
  .features-icons {
    gap: 8px;
  }

  .detail-circle {
    width: 105px;
    height: 105px;
  }

  .section-title{
    font-size: 1.4rem;
  }
}
