/**
 * H5 主样式 — 与设计稿/截图一致
 * Token 与设计系统见 .cursor/rules/design_system_rules.mdc
 */

:root {
  --color-primary: #FFA500;
  --color-primary-dark: #FF8C00;
  --color-accent-yellow: #FFD700;
  --color-accent-orange-red: #FF4500;
  --color-tag-bg: #FFFACD;
  --color-tag-border: #FFA500;
  --color-card-beige: #FFF8DC;
  --color-text-primary: #333333;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-bg-white: #FFFFFF;
  --color-video-bg: #000000;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  overflow-x: hidden;
  min-width: 320px;
}

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

/* ========== 产品头部 + 轮播 ========== */
.hero {
  position: relative;
  width: 100%;
  background: #f5f5f5;
}
.hero-title {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
.hero-tag {
  position: absolute;
  top: 48px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-inner { display: flex; transition: transform 0.3s ease; }
.carousel-item { flex: 0 0 100%; width: 100%; }
.carousel-item img { width: 100%; object-fit: cover; max-height: 60vh; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  left: auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.carousel-dots span.active { background: #fff; }

/* 轮播图下方波浪 */
.carousel-wave {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -26px;
}
.carousel-wave img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* ========== TikTok 横幅 + 信任卡片（与截图一致） ========== */
.tiktok-trust-card {
  margin: 0 16px 16px;
  border-radius: 8px;
  overflow: hidden;
  /*box-shadow: 0 2px 12px rgba(0,0,0,0.08);*/
  /*background: var(--color-bg-white);*/
}
.tiktok-banner {
  /*background: var(--color-bg-white);*/
  padding: 14px 16px;
  /*border-bottom: 1px solid #f0f0f0;*/
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiktok-hot { width: 35px; height: 35px; flex-shrink: 0; }
.tiktok-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.trust-card {
  background: var(--color-bg-white);
  padding: 4px 24px 20px;
}
.trust-card .trust-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}
.trust-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 8px;
}
.trust-stars { color: var(--color-primary); font-size: 16px; letter-spacing: 1px; }
.trust-score { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.trust-pipe { color: #bbb; font-size: 14px; }
.trust-count { font-size: 13px; color: #c2410c; }
.trust-guarantee {
  font-size: 13px;
  color: var(--color-text-primary);
  margin: 0 0 16px;
  line-height: 1.4;
}
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  /*gap: 10px;*/
  width: 100%;
  /*padding: 14px 20px;*/
  /*background: var(--color-primary);*/
  /*color: #fff;*/
  /*border: none;*/
  /*border-radius: 8px;*/
  /*font-size: 16px;*/
  /*font-weight: 700;*/
  /*cursor: pointer;*/
  text-decoration: none;
  transition: background 0.2s;
  box-sizing: border-box;
}
.btn-buy:hover { background: var(--color-primary-dark); }
.btn-buy img {     width: 100%;
  height: auto;
  flex-shrink: 0; }

/* ========== 保障 2x2 网格（截图5：标题+副标题） ========== */
.guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 16px;
  background: #fff8dc;
  padding: 20px 16px;
}
.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.guarantee-item img { width: 32px; height: 32px; flex-shrink: 0; }
.guarantee-item > div { display: flex; flex-direction: column; gap: 2px; }
.guarantee-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.guarantee-desc { font-size: 12px; color: var(--color-text-muted); }

/* ========== 新年订单奖励卡片（米色） ========== */
.reward-card {
  /*background: var(--color-card-beige);*/
  padding: 20px 16px;
  margin: 0;
}
.reward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.reward-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0;
}
.reward-title img { width: 22px; height: 22px; }
.reward-tag {
  display: inline-block;
  background: #ffa500;
  color: #fbfaf9;
  border-radius: 15px;
  font-size: 14px;
  padding: 1px 17px;
}
.reward-desc {
  font-size: 13px;
  color: var(--color-text-primary);
  margin: 0 0 12px;
  line-height: 1.6;
}
.reward-warning {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.reward-warning-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.claim-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 12px 0 6px;
}
.claim-label:first-of-type { margin-top: 0; }
.claim-hint {
  font-size: 12px;
  color: var(--color-primary);
  margin: 6px 0 12px;
  line-height: 1.4;
}
.reward-extra {
  font-size: 13px;
  color: var(--color-text-primary);
  margin: 0 0 16px;
  line-height: 1.5;
}
.btn-verify {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-verify img { width: 22px; height: 22px; }
.btn-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  padding: 14px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-claim:hover { background: var(--color-primary-dark); }
.btn-claim img { width: 20px; height: 20px; }

/* 申请表单 */
.claim-form { max-width: 360px; margin: 0 auto 16px; }
.claim-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.claim-form button {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.claim-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.claim-form button img { width: 20px; height: 20px; }
.claim-form .btn-verify { border-radius: 8px; margin-top: 8px; }
#claim-result { margin-top: 16px; padding: 16px; border-radius: 8px; display: none; }
#claim-result.success { background: #dcfce7; border: 1px solid #22c55e; display: block; }
#claim-result.error { background: #fee2e2; border: 1px solid #ef4444; display: block; }
#claim-result .gift-card { text-align: center; margin-top: 12px; }
#claim-result .gift-card img { max-height: 120px; margin: 0 auto 8px; }

/* ========== 神秘礼物清单（同米色） ========== */
.gift-list-section {
  background: var(--color-card-beige);
  padding: 20px 16px;
}
.gift-list-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px;
}
.gift-list-section h2 img { width: 22px; height: 22px; }
.gift-list { display: flex; flex-direction: column; gap: 0; }
.gift-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.gift-item:last-child { margin-bottom: 0; }
.gift-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.gift-item .name { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--color-text-primary); }
.gift-item .desc { font-size: 13px; color: var(--color-text-muted); }

/* ========== 演示视频 ========== */
.video-section {
  background: var(--color-bg-white);
  padding: 20px 16px;
}
.video-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}
.video-section h2 img { width: 22px; height: 22px; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--color-video-bg);
  border-radius: 8px;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-placeholder {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--color-video-bg);
  border-radius: 8px;
  overflow: hidden;
}
.video-placeholder .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.video-placeholder .play-btn img { width: 28px; height: 28px; }

/* ========== 客户评价 ========== */
.reviews-section {
  background: var(--color-bg-white);
  padding: 20px 16px;
}
.reviews-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}
.reviews-section h2 img { width: 22px; height: 22px; }
.review-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.review-item:last-child { border-bottom: none; }
.review-user { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.review-stars { color: var(--color-accent-yellow); margin-bottom: 6px; }
.review-content { font-size: 13px; color: var(--color-text-muted); line-height: 1.4; }
.review-item img { max-height: 80px; margin-top: 8px; border-radius: 4px; }

/* ========== FAQ（米色） ========== */
.faq-section {
  /*background: var(--color-card-beige);*/
  /*padding: 20px 16px;*/
  /*padding-bottom: 80px;*/
}
.faq-section h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}
.faq-section h2 img { width: 22px; height: 22px; }
.faq-section .faq-image { width: 100%; height: auto; display: block; vertical-align: top; }
.faq-item { margin-bottom: 16px; }
.faq-item q { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; color: var(--color-text-primary); }
.faq-item p { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* ========== 客服悬浮 ========== */
.customer-service-float {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  /*padding: 10px 14px;*/
  /*background: linear-gradient(180deg, #FFFACD 0%, #FFF8DC 100%);*/
  /*border-radius: 24px;*/
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.12);*/
  /*transition: box-shadow 0.2s;*/
  /*border: 1px solid rgba(255,165,0,0.2);*/
}
/*.customer-service-float:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.18); }*/
.customer-service-float img {
  width: 81px;
  height: 101px;
}
.customer-service-float .label { font-size: 14px; font-weight: 600; color: #2563eb; }
.customer-service-menu {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 8px;
  min-width: 140px;
  display: none;
}
.customer-service-menu.show { display: block; }
.customer-service-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}
.customer-service-menu a:hover { background: #f1f5f9; }

/* ========== 响应式 ========== */
@media (max-width: 375px) {
  .hero-title { font-size: 20px; }
  .reward-tag { font-size: 12px; }
  .customer-service-float { right: 12px; bottom: 16px; padding: 8px 12px; }
  .customer-service-float img { width: 36px; height: 36px; }
}
@media (min-width: 768px) {
  .reward-card, .gift-list-section, .faq-section { padding: 28px 24px; }
  .trust-card, .video-section, .reviews-section { padding: 28px 24px; }
  .gift-item img { width: 80px; height: 80px; }
  .customer-service-float { right: 24px; bottom: 32px; }
}
