/* 闺蜜机工厂店 · 响应式官网样式
   断点策略：以 CSS Grid auto-fit 做流体栅格，仅在导航与排版细节上用 media query */

:root {
  --bg-light: #FBFBFD;
  --bg-card: #F5F5F7;
  --bg-dark: #1D1D1F;
  --text-1: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #86868B;
  --text-4: #A1A1A6;
  --accent: #0071E3;

  /* 流体间距：手机收紧，桌面放开 */
  --gutter: clamp(20px, 5vw, 120px);
  --section-y: clamp(56px, 9vw, 96px);
  --card-radius: clamp(16px, 2vw, 24px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Noto Sans SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text-1);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- 布局容器 ---------- */
.section {
  padding: var(--section-y) var(--gutter);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* ---------- 通用文字层级 ---------- */
.kicker {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-1);
}

.subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 17px);
  padding: 14px 28px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 13px 27px;
}

.btn-outline:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn-light {
  background: #fff;
  color: var(--text-1);
  padding: 14px 30px;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--text-1);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}

.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-1);
}

/* 汉堡按钮：仅移动端出现 */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text-1);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-cta {
  flex-shrink: 0;
}

/* 收进汉堡菜单里的 CTA，仅移动端出现 */
.nav-cta-mobile {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-light);
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
}

.hero-title {
  font-size: clamp(30px, 6.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 1000px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 21px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 780px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.hero-img {
  width: 100%;
  max-width: 1100px;
  border-radius: var(--card-radius);
  margin-top: clamp(32px, 5vw, 56px);
  overflow: hidden;
}

/* ---------- 流体栅格（核心响应式手段） ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 5vw, 56px);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---------- 卖点卡 ---------- */
.feature {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-title {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- 场景卡 ---------- */
.scenes {
  background: var(--bg-card);
}

.scene-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.scene-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.scene-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-title {
  font-size: 19px;
  font-weight: 600;
}

.scene-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- 产品细节（真实细节图带） ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(32px, 5vw, 56px);
}

.detail-item {
  text-align: center;
}

.detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: clamp(12px, 1.4vw, 18px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover .detail-img {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.detail-item figcaption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-title {
  font-size: 15px;
  font-weight: 600;
}

.detail-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* 平板：3 列两排 */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机：2 列三排 */
@media (max-width: 640px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 规格卡 ---------- */
.spec-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px) clamp(32px, 4.5vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.spec-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.spec-size {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  margin-top: 8px;
}

.spec-tag {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.spec-list li {
  font-size: 14px;
  color: #424245;
}

.spec-price {
  font-size: 17px;
  font-weight: 600;
  margin-top: 6px;
}

.price-note {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  margin-top: clamp(20px, 3vw, 32px);
}

/* ---------- OEM 深色区 ---------- */
.oem {
  background: var(--bg-dark);
}

.oem .kicker {
  color: var(--text-3);
}

.oem .title {
  color: #fff;
  max-width: 900px;
  margin: 10px auto 0;
}

.oem .subtitle {
  color: var(--text-4);
  max-width: 720px;
  margin: 14px auto 0;
}

.oem-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oem-card-title {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  color: #fff;
}

.oem-card-desc {
  font-size: 14px;
  color: var(--text-4);
  line-height: 1.65;
}

.oem-cta {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
}

/* ---------- 联系区 ---------- */
.contact {
  background: var(--bg-card);
}

.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 56px);
}

.contact-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 260px;
}

.contact-card.qr {
  gap: 12px;
}

.qr-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

.qr-label {
  font-size: 15px;
  font-weight: 500;
}

.qr-note {
  font-size: 13px;
  color: var(--text-3);
}

/* 手机上长按识别，桌面扫码 —— 提示文案按屏幕切换 */
.qr-hint-mobile {
  display: none;
}

.tel-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.tel-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.tel-number {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.tel-note {
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 40px var(--gutter);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner p {
  font-size: 13px;
  color: var(--text-3);
}

/* ================= 移动端 ================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    max-height: 340px;
    padding: 8px var(--gutter) 20px;
  }

  .nav-links a {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-cta {
    display: none; /* 手机上 CTA 收进菜单区域，避免挤压 */
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 16px;
    width: 100%;
  }

  /* 手机上主次按钮撑满，拇指更好点 */
  .hero-btns {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .btn-sm {
    width: auto;
  }

  /* 手机隐藏桌面扫码提示，改为长按识别 */
  .qr-hint-desktop {
    display: none;
  }

  .qr-hint-mobile {
    display: block;
  }

  .contact-card {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 小屏手机再收一点 */
@media (max-width: 400px) {
  .feature,
  .oem-card {
    padding: 28px 22px;
  }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
