/* ==================== CSS 变量 ==================== */
:root {
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --primary-blue: #1254a4;
  --primary-dark: #0b2d6e;
  --primary-light: #e8f0fe;
  --bg-white: #ffffff;
  --bg-light-gray: #f5f5f5;
  --bg-dark-blue: #0b2d6e;
  --text-dark: #222222;
  --text-gray: #666666;
  --text-light: rgba(255, 255, 255, 0.7);
  --warning-red: #e53935;
  --success-green: #4caf50;
  --accent-gold: #ffc107;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --pc-width: 375px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #d8eef8;
}

body {
  font-size: 1.4rem;
}

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

ul,
li {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* ==================== 通用 section 标题 ==================== */
.section-title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #0b2d6e;
  font-size: 2.65rem;
}

/* ==================== 1. 首屏英雄区 ==================== */
.hero-section {
  position: relative;
  overflow: hidden;
  z-index: 9999;
}

/* 背景主图 */
.hero-bg-img {
  width: 100%;
  display: block;
}

/* 文字内容叠加层 */
.hero-text-col {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 42%;
}

/* 标题层 */

.hero-title-line1 {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #0b2d6e;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.hero-title-line2 {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 3.3rem;
  font-weight: bold;
  color: #2d8dd9;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.3px;
}

/* 副标题 */
.hero-subtitle {
  font-family: "Oswald-Bold", sans-serif;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background-color: #2d8dd9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 10px;
}

/* 卖点列表 */
.hero-features {
  padding: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: #222;
  font-weight: 500;
}

.hero-features span {
  font-size: 0.75rem;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background-color: #2d8dd9;
  border-radius: 50%;
  flex-shrink: 0;
}

.check-icon::after {
  content: "✓";
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
}

/* ==================== 2. 工作原理区 ==================== */
.how-it-works {
  padding: var(--spacing-xl) var(--spacing-md);
  background: radial-gradient(ellipse at center, #ffffff 0%, #d8eef8 100%);
  margin-top: -17px;
  padding-top: 20px;
}

.how-description {
  font-size: 1.3rem;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.5;
  /* margin-bottom: var(--spacing-lg); */
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

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

/* .step-item.step-center {
  flex: 0.5;
} */

.step-circle-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.step-arrow-img {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}

.step-product-img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.step-label {
  /* font-family: 'Oswald-Bold', sans-serif; */
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-arrow {
  flex-shrink: 0;
}

/* ==================== 3. 产品利益点区 ==================== */
.benefits-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: #094b9a;
}

.benefits-section .section-title {
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.benefit-card {
  background-color: transparent;
  padding: 0 var(--spacing-sm);
  text-align: center;
}

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

.benefit-icon img {
  object-fit: contain;
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.benefit-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ==================== 4. 限时优惠区 ==================== */
.special-offer {
  /* padding: var(--spacing-md); */
  background-color: #e8f4fb;
}



.product-images {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}
.option-group {
  margin-bottom: 15px;
}
.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;
}

/* ==================== 5. 产品变体选择区 ==================== */
.product-options {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-xl);
  background-color: #f0f4fd;
}

/* 价格行 */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  color: #e53935;
}

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

/* 选择器 */
.size-selector {
  margin-bottom: var(--spacing-md);
}

.selector-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sku-btn {
  padding: 5px 10px;
  border: 1.5px solid #0590dd;
  border-radius: 15px;
  background-color: white;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0590dd;
  background-color: #f3f8fe;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.option-btn {
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    color 0.15s ease-out;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: background-color, border-color, color;
  -webkit-user-select: none;
  user-select: none;
  height: 35px;
}
.sku-btn.shoppaas-sku-active {
  border-color: #0590dd;
  background-color: #0590dd;
  color: white;
}

/* 数量 + 加购行 */
.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--spacing-md);
}

.cart-row > * {
  flex: 1;
  min-width: 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: var(--radius-sm);
  overflow: hidden;
  justify-content: space-between;
  border-radius:8px;
}

.qty-btn {
  width: 36px;
  height: 42px;
  background-color: var(--bg-light-gray);
  font-size: 1.8rem;
  color: var(--text-dark);
  transition: background-color 0.2s;
}

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

.qty-number {
  width: 40px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  outline: none;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  cursor: default;
}
.qty-number::-webkit-inner-spin-button,
.qty-number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


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

.price-current {
  font-size: 3rem;
  font-weight: 900;
  color: #b31c1c;
  line-height: 1;
}

.price-original {
  font-size: 1.65rem;
  color: #999999;
  text-decoration: line-through;
  line-height: 1.3;
}

.price-discount {
  background: #ffeb3b;
  color: #111111;
  padding: 4px 10px 4px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 加入购物车按钮 */
.btn-add-cart {
  flex: 1;
  width: 100%;
  background-color: #e53935;
  color: white;
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 12px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s;
}

.btn-add-cart:hover {
  filter: brightness(1.15);
}

/* BUY NOW 按钮 */
.btn-buy-now {
  width: 100%;
  background-color: #0590dd;
  color: white;
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.5px;
  transition: filter 0.2s;
}

.btn-buy-now:hover {
  filter: brightness(1.1);
}

/* 支付方式 */
.payment-methods {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--spacing-sm);
}

/* 安全标识 */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.lock-icon {
  font-size: 1.4rem;
}

/* ==================== 6. 使用步骤区 ==================== */
.easy-to-use {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: #f0f4fd;
  padding-top: 0;
}

.easy-to-use .section-title {
  color: #0b2d6e;
  font-size: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 10px;
}

/* 中间竖线：左列右侧，高度可调 */
.step-card:nth-child(2n-1)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background-color: #b8d4ea;
}

.step-img-wrap {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.step-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.step-title {
  /* font-family: 'Oswald-Bold', sans-serif; */
  font-size: 1.5rem;
  font-weight: bold;
  color: #1254a4;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 1.1rem;
  color: #020202;
  line-height: 1.4;
}

/* ==================== 7. 使用场景区 ==================== */
.scenarios-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: #f0f4fd;
  padding-top: 0;
}

.scenarios-section .section-title {
  color: #0b2d6e;
  font-size: 2rem;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.scenario-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f0f4fd;
}

.scenario-img {
  width: auto;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ==================== 8. 用户评价区 ==================== */
.testimonials-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: #fff;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-sm);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

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

.user-info {
  flex: 1;
}

.user-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
}

.star-rating {
  color: var(--accent-gold);
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.4rem;
  color: var(--text-gray);
  line-height: 1.6;
  font-style: italic;
}

/* ==================== 9. 底部行动号召区 ==================== */
.cta-footer {
  background-color: #044da2;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  color: white;
}

.cta-title {
  font-family: "Oswald-Bold", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  line-height: 1.3;
}

.btn-cta {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  font-family: "Oswald-Bold", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 16px 48px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.product-title {
  font-size: 2rem;
  font-weight: bold;
  color: #111111;
  margin-bottom: 4px;
}


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

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

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff413d;
  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; */
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 374px) {
  .hero-title {
    font-size: 2.4rem;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}
