/* 全局变量：以后改品牌色，优先改这里 */
:root {
  --bg: #fffaf7; /* 页面整体背景色 */
  --card: #ffffff; /* 卡片背景色 */
  --soft: #f8f3ef; /* 浅色分区背景 */
  --text: #222222; /* 主文字颜色 */
  --muted: #77706c; /* 次级说明文字颜色 */
  --primary: #7a685c; /* 主品牌色，用于按钮和标签 */
  --primary-dark: #887564; /* 深品牌色，用于 hover */
  --line: #eadfd9; /* 边框和分割线颜色 */
  --shadow: 0 24px 60px rgba(64, 43, 35, 0.12); /* 卡片阴影 */
  --radius: 28px; /* 全站统一圆角 */
  --header-height: 76px; /* 导航高度，首屏高度会用到 */
}

/* 清除默认样式，让不同浏览器显示更一致 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* 点击锚点时平滑滚动 */
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

/* 顶部优惠条 */
.topbar {
  height: 32px;
  display: grid;
  place-items: center;
  background: #1f1b1a;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* 导航整体，sticky 可以让导航吸顶 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(104, 56, 56, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 223, 217, 0.8);
}

.header-inner {
  height: var(--header-height);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 34px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.08em;
  text-transform: lowercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: #222;
}

.currency-btn {
  border: 1px solid #222;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #222;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
}

.mobile-nav.open {
  display: block;
}

/* 首屏通铺模块 */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 32px);
  overflow: hidden;
  background-color: #ead8c9;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.36),
      rgba(0, 0, 0, 0.16) 42%,
      rgba(0, 0, 0, 0.02) 70%
    ),
    url("./assets/hero-baby.svg");
  background-size: cover;
  background-position: center;
}

/* 视频通铺时使用。默认隐藏，取消 HTML 注释后即可生效 */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 24vh 8vw 0;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero-desc {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  margin-bottom: 34px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(117, 58, 63, 0.24);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.hero-cta span {
  font-size: 28px;
  line-height: 1;
}

/* 首屏底部产品导航线 */
.hero-progress-tabs {
  position: absolute;
  z-index: 2;
  left: 7vw;
  right: 7vw;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.hero-progress-tabs a {
  position: relative;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.hero-progress-tabs a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-progress-tabs a.active::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

/* 通用区块宽度 */
.products-section,
.shop-by-stage,
.benefits-section,
.story-section,
.reviews-section,
.faq-section,
.contact-section,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 34px;
  padding-right: 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-head h2,
.story-copy h2,
.faq-left h2,
.contact-section h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-head p,
.story-copy p,
.faq-left p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.products-section {
  padding-top: 96px;
  padding-bottom: 82px;
  background: #fff;
}

.product-head {
  margin-bottom: 22px;
}

.text-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: #f2f2f2;
  color: #4d4a48;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pill.active,
.pill:hover {
  background: var(--primary);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 28px 28px;
  border-radius: 18px;
  background: #f7f7f7;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card h3 {
  min-height: 58px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #3b3938;
}

.rating {
  margin: 12px 0 18px;
  color: #c72f61;
  letter-spacing: 0.05em;
  font-size: 17px;
  font-weight: 800;
}

.rating span {
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.badge,
.discount {
  position: absolute;
  right: 26px;
  top: 130px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  z-index: 2;
}

.badge.soft {
  background: #d7a08b;
}

.discount {
  background: #a95056;
}

.product-visual {
  width: 100%;
  height: 250px;
  margin: 8px 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.product-1 {
  background-image: url("./assets/product-1.svg");
}
.product-2 {
  background-image: url("./assets/product-2.svg");
}
.product-3 {
  background-image: url("./assets/product-3.svg");
}
.product-4 {
  background-image: url("./assets/product-4.svg");
}
.product-5 {
  background-image: url("./assets/product-5.svg");
}
.product-6 {
  background-image: url("./assets/product-6.svg");
}
.product-7 {
  background-image: url("./assets/product-7.svg");
}
.product-8 {
  background-image: url("./assets/product-8.svg");
}

.feature-tags {
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #625d59;
  font-size: 11px;
  font-weight: 700;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-weight: 800;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.card-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* 场景导购 */
.shop-by-stage {
  padding-top: 90px;
  padding-bottom: 90px;
}

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

.stage-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.stage-card:hover {
  transform: translateY(-6px);
}

.stage-card span {
  font-weight: 800;
  opacity: 0.8;
}

.stage-card h3 {
  margin: 12px 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

.stage-card p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.stage-1 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)),
    url("./assets/stage-1.svg");
}
.stage-2 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)),
    url("./assets/stage-2.svg");
}
.stage-3 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55)),
    url("./assets/stage-3.svg");
}

/* 品牌卖点 */
.benefits-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 46px;
  padding-bottom: 90px;
}

.benefit-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--muted);
}

/* 大图文模块 */
.story-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 100px;
}

.story-image {
  min-height: 560px;
  border-radius: var(--radius);
  background-image: url("./assets/story.svg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.story-copy {
  padding: 42px;
}

.story-copy p {
  margin: 22px 0 28px;
  font-size: 18px;
}

.outline-btn {
  display: inline-flex;
  padding: 14px 24px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.outline-btn:hover {
  background: var(--text);
  color: #fff;
}

/* 评价 */
.reviews-section {
  padding-top: 90px;
  padding-bottom: 90px;
  background: #fff;
}

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

.review-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--soft);
}

.review-stars {
  color: #c72f61;
  font-weight: 900;
  margin-bottom: 18px;
}

.review-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.review-card p:not(.review-stars) {
  color: var(--muted);
  margin-bottom: 18px;
}

/* FAQ */
.faq-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 800;
  font-size: 18px;
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* 联系模块 */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 80px;
  padding-top: 52px;
  padding-bottom: 52px;
  border-radius: var(--radius);
  background: #222;
  color: #fff;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
}

.contact-btn {
  flex: 0 0 auto;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-weight: 900;
}

/* 底部 */
.site-footer {
  padding-top: 70px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer h4 {
  margin-bottom: 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.newsletter-form button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 14px;
}

.chat-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #f47ca4;
  color: #111;
  font-size: 25px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* 响应式：平板 */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 150px 1fr auto;
    padding: 0 22px;
  }

  .desktop-nav {
    gap: 16px;
    font-size: 13px;
  }

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

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

/* 响应式：手机 */
@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    font-size: 12px;
    padding: 0 12px;
    text-align: center;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .currency-btn,
  .header-actions .icon-btn:nth-child(2) {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    min-height: 720px;
    background-position: center right;
  }

  .hero-copy {
    padding: 160px 24px 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-desc {
    font-size: 18px;
  }

  .hero-progress-tabs {
    left: 24px;
    right: 24px;
    bottom: 22px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-progress-tabs a:not(.active) {
    display: none;
  }

  .products-section,
  .shop-by-stage,
  .benefits-section,
  .story-section,
  .reviews-section,
  .faq-section,
  .contact-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-head,
  .contact-section,
  .footer-bottom {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 18px;
  }

  .product-grid,
  .stage-grid,
  .benefits-section,
  .story-section,
  .review-grid,
  .faq-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 520px;
  }

  .stage-card {
    min-height: 330px;
  }

  .story-image {
    min-height: 360px;
  }

  .story-copy {
    padding: 8px 0 0;
  }

  .contact-btn {
    display: inline-flex;
    margin-top: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}
