/* =========================================================
   ChansyM 工厂家具团队 - 全站样式 v4
   ========================================================= */

:root {
  --bg: #FAF7F2;
  --bg-warm: #F5F0E8;
  --bg-alt: #F2EBE0;
  --card: #FFFFFF;
  --text: #2D2420;
  --text-soft: #5B4E45;
  --muted: #8A7B70;
  --line: #E8E0D5;
  --line-soft: #F0E8DC;
  --primary: #8B6F47;
  --primary-dark: #5C4A30;
  --primary-darker: #3E2F1C;
  --secondary: #7A8471;
  --secondary-light: #A8B5A0;
  --accent: #C8956D;
  --red: #B45309;
  --shadow-sm: 0 2px 8px rgba(45, 36, 32, .06);
  --shadow: 0 12px 40px rgba(45, 36, 32, .08);
  --shadow-lg: 0 24px 60px rgba(45, 36, 32, .12);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1240px;
  --floating-edge: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  --header-h: 72px;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-darker); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 111, 71, .25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139, 111, 71, .3); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-warm); }
.btn-whatsapp {
  background: #1FA855;
  color: #fff;
  border-color: #1FA855;
  box-shadow: 0 6px 18px rgba(31, 168, 85, .22);
}
.btn-whatsapp:hover { background: #168B45; border-color: #168B45; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 168, 85, .28); }
.btn-block { display: flex; width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand svg { height: 56px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--primary); background: var(--bg-warm); }
.nav-link.active { color: var(--primary); }
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--primary-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-darker);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: var(--floating-edge);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(139, 111, 71, .32);
  cursor: pointer;
  z-index: 88;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.96);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.02); }
.back-to-top:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }
.back-to-top.home-back-to-top {
  width: auto;
  min-width: 52px;
  height: 48px;
  padding: 0 16px;
  gap: 6px;
  border-radius: 999px;
}
.back-to-top-label { font-size: 13px; letter-spacing: .02em; }

/* ---------- Hero 品牌名+焦点 ---------- */
.hero-brand { font-size: 1em; font-weight: 700; color: var(--primary); }
.hero-focus { font-size: 1em; }
.hero-subtitle { margin-top: 12px; font-size: 16px; color: var(--text-soft); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- 产品编号 ---------- */
.card-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-warm);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}
.detail-code {
  font-size: 14px;
  color: var(--text-soft);
}
.detail-code b { color: var(--primary); font-size: 16px; }

/* ---------- 返回列表 / 独立咨询页继续浏览 ---------- */
.detail-floating-actions {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: var(--floating-edge);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.detail-main { padding-top: 58px; }
.detail-back,
.detail-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s ease;
  pointer-events: auto;
}
.detail-continue {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}
.detail-back:hover { border-color: var(--primary); color: var(--primary); }
.detail-continue:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.inquiry-top-actions {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: var(--floating-edge);
  z-index: 90;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}
.inquiry-top-actions .detail-back,
.inquiry-top-actions .detail-continue { pointer-events: auto; }
.inquiry-main { padding-top: 38px; }
.inquiry-head { padding-bottom: 8px; }
.inquiry-main > .section {
  padding-top: 14px;
  padding-bottom: 40px;
}
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 34px;
  background: linear-gradient(135deg, #fff, var(--bg-warm));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 36px;
  box-shadow: var(--shadow);
}
.inquiry-grid .lead-text h2 { margin-bottom: 12px; }
.inquiry-grid .lead-text p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.inquiry-grid .lead-form { gap: 10px; }
.inquiry-grid .lead-form input,
.inquiry-grid .lead-form textarea { padding: 11px 14px; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pagination:empty { display: none; }
.page-info { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.page-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 通用 section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-warm); }
.section-categories { padding: 52px 0 44px; }
.section-categories .section-head { margin-bottom: 24px; }
.section-categories + .section-browse { margin-top: -1px; }
.section-browse { padding: 28px 0 26px; }
.section-browse .wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: center;
}
.section-browse .section-head {
  display: block;
  margin-bottom: 0;
}
.section-browse .section-head h2 {
  font-size: clamp(24px, 2.2vw, 32px);
}
.section-browse .section-head p {
  max-width: 340px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
}
.section-browse .pill-groups {
  max-width: none;
  align-self: center;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.link-more { font-weight: 700; color: var(--primary); }
.link-more:hover { color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(139, 111, 71, .08), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(122, 132, 113, .08), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  margin-top: 20px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero-lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 560px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}
.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-warm);
  aspect-ratio: 4 / 3;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 空间分类 ---------- */
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.space-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: block;
}
.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-light);
}
.space-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-warm);
}
.space-body { padding: 20px; }
.space-body h3 { font-size: 18px; margin-bottom: 6px; }
.space-body p { color: var(--muted); font-size: 14px; }

/* ---------- 分类 pills ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-groups {
  display: grid;
  gap: 10px;
}
.pill-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
}
.pill-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  min-width: 80px;
}
.pill {
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-soft);
  transition: all .2s ease;
  display: inline-block;
}
.pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.card-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-light);
}
.card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card-product:hover .card-img img { transform: scale(1.04); }
.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(180, 83, 9, .3);
  z-index: 2;
}
.badge-saved {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-darker);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin-bottom: 4px;
}
.card-title a { color: inherit; }
.card-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
}
.card-updated {
  font-size: 12px;
  color: var(--muted);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
  min-height: 24px;
}
.meta-chip {
  font-size: 12px;
  background: var(--bg-warm);
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease;
  text-align: center;
}
.card-cta:hover { background: var(--primary-dark); }

.public-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-grid h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.about-grid > div > p { color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.value-list { display: grid; gap: 16px; }
.value-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.value-item b { font-size: 17px; color: var(--primary-darker); }
.value-item span { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ---------- 询价表单 ---------- */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  background: linear-gradient(135deg, #fff, var(--bg-warm));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow);
}
.lead-text h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.lead-text p { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.lead-mobile-summary { display: none; }
.lead-list { display: grid; gap: 8px; color: var(--text-soft); font-weight: 600; }

.lead-form {
  display: grid;
  gap: 14px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}
.lead-form input,
.lead-form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, .12);
}
.lead-form .hpot { display: none; }
.form-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}
.form-note {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.form-note.success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-note.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 列表页头部 ---------- */
.page-head {
  padding: 22px 0 4px;
  background: var(--bg);
}
.page-head h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 6px;
}
.page-head p { color: var(--text-soft); font-size: 15px; }
.product-list-section { padding-top: 8px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(112px, .78fr) minmax(112px, .78fr) minmax(88px, .55fr) minmax(88px, .55fr) minmax(142px, .88fr) 74px;
  gap: 8px;
  margin-bottom: 22px;
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, .12);
}
.filter-reset {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .2s ease;
  white-space: nowrap;
}
.filter-reset:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--text-soft); max-width: 480px; margin: 0 auto 24px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 详情页 ---------- */
.detail-main { padding-bottom: 0; }
.detail-hero {
  padding: 48px 0 64px;
  background: var(--bg-warm);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.gallery-thumbs .gallery-item,
.gallery-large .gallery-item {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease;
}
.gallery-thumbs .gallery-item img,
.gallery-large .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs .gallery-item:hover { border-color: var(--primary); }
.gallery-thumbs .gallery-item.active { border-color: var(--primary); }

.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.detail-tags .meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(151, 111, 68, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(64, 48, 33, .06);
}
.detail-title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; }
.detail-summary { color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.detail-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.detail-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.detail-updated { color: var(--muted); font-size: 13px; }
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}
.detail-specs > div {
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-specs dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.detail-specs dd { font-size: 15px; color: var(--text); font-weight: 700; }
.detail-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail-cta-row.has-whatsapp { grid-template-columns: minmax(0, 1.15fr) minmax(150px, .85fr); }
.detail-note { font-size: 13px; color: var(--text-soft); line-height: 1.7; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }

/* ---------- 详情页 - 产品亮点 ---------- */
.selling-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.selling-list li {
  background: #fff;
  padding: 16px 20px 16px 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
}
.selling-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- 详情页 - 配送 ---------- */
.delivery {
  max-width: 880px;
}
.delivery h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.delivery p { color: var(--text-soft); font-size: 15px; line-height: 1.8; }

/* ---------- 详情页 - 视频 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.video-card video {
  width: 100%;
  max-height: 560px;
  border-radius: 12px;
  background: #000;
  display: block;
}
.video-card p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 详情页 - 大图列表 ---------- */
.gallery-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------- 选购指南 ---------- */
.guide-head .wrap { max-width: 920px; }
.guide-head h1 { max-width: 860px; }
.guide-head p { max-width: 760px; }
.guide-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.guide-intro h2 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 10px; }
.guide-intro p { color: var(--text-soft); line-height: 1.85; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(139,111,71,.35); }
.guide-card a { display: block; padding: 24px; min-height: 230px; }
.guide-card h2 { font-size: 21px; line-height: 1.35; margin-bottom: 12px; }
.guide-card p { color: var(--text-soft); font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide-more { display: inline-block; margin-top: 18px; color: var(--primary); font-weight: 800; font-size: 14px; }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.guide-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.guide-section + .guide-section,
.guide-faq { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.guide-section h2,
.guide-faq h2 { font-size: clamp(22px, 2.2vw, 29px); margin-bottom: 14px; }
.guide-section p { color: var(--text-soft); line-height: 1.95; margin-bottom: 14px; }
.guide-section ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-top: 10px;
}
.guide-faq details {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.guide-faq summary { cursor: pointer; font-weight: 800; color: var(--primary-darker); }
.guide-faq p { color: var(--text-soft); margin-top: 10px; line-height: 1.8; }
.guide-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.guide-aside h3 { font-size: 18px; margin-bottom: 10px; }
.guide-aside p { color: var(--text-soft); font-size: 14px; line-height: 1.75; margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--primary-darker);
  color: var(--bg-warm);
  padding: 56px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: rgba(250, 247, 242, .7);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-col a:hover { color: #fff; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(250, 247, 242, .7); line-height: 1.7; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250, 247, 242, .5);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 32, .95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .lead-grid { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .inquiry-grid { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-gallery { position: static; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section-categories { padding: 44px 0 36px; }
  .section-browse { padding: 28px 0 26px; }
  .section-browse .wrap { grid-template-columns: 1fr; gap: 16px; }
  .section-browse .section-head { margin-bottom: 0; }
  .product-list-section { padding-top: 8px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; }
  .filter-reset { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-categories { padding: 34px 0 28px; }
  .section-categories .section-head { margin-bottom: 18px; }
  .section-browse { padding: 22px 0 22px; }
  .section-browse .wrap { grid-template-columns: 1fr; gap: 12px; }
  .section-browse .section-head { margin-bottom: 14px; }
  .section-browse .section-head h2 { font-size: 25px; }
  .section-browse .section-head p { font-size: 13px; line-height: 1.5; }
  .section-browse .pill-groups { gap: 8px; }
  .section-browse .pill-group { min-height: 30px; gap: 5px; }
  .section-browse .pill-label { min-width: 72px; font-size: 12px; }
  .section-browse .pill { padding: 6px 12px; font-size: 12px; }
  .page-head { padding: 22px 0 4px; }
  .product-list-section { padding-top: 6px; }
  .filter-bar { gap: 8px; padding: 10px; }
  .hero-title { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1; }
  .space-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .guide-intro,
  .guide-content,
  .guide-aside { padding: 18px; border-radius: 18px; }
  .guide-card a { min-height: auto; padding: 20px; }
  .lead-grid { padding: 24px; }
  .inquiry-main { padding-top: 48px; }
  .inquiry-head {
    display: block;
    padding: 0;
  }
  .inquiry-head h1,
  .inquiry-head p { display: none; }
  .inquiry-head .wrap { min-height: 0; }
  .inquiry-head .inquiry-top-actions {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    left: 16px;
    right: 16px;
    z-index: 92;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    pointer-events: none;
  }
  .inquiry-head .inquiry-top-actions .detail-back,
  .inquiry-head .inquiry-top-actions .detail-continue {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(47, 38, 27, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .inquiry-head .inquiry-top-actions .detail-back { background: rgba(255,255,255,.88); }
  .inquiry-head .inquiry-top-actions .detail-continue { flex: 0 0 auto; }
  .inquiry-head .inquiry-top-actions .detail-back { flex: 0 0 auto; }
  .inquiry-grid {
    padding: 16px;
    gap: 18px;
    border-radius: 22px;
  }
  .inquiry-grid .lead-text {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .inquiry-grid .lead-text h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .inquiry-grid .lead-text p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
  }
  .inquiry-grid .lead-desktop-copy,
  .inquiry-grid .lead-list { display: none; }
  .inquiry-grid .lead-mobile-summary { display: block; }
  .inquiry-grid .lead-form { gap: 10px; }
  .inquiry-grid .lead-form label { gap: 5px; font-size: 12px; }
  .inquiry-grid .lead-form input,
  .inquiry-grid .lead-form textarea {
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 15px;
  }
  .inquiry-grid .lead-form textarea { min-height: 92px; }
  .inquiry-grid .form-disclaimer { font-size: 11px; margin-top: 0; }
  .inquiry-grid .btn-block { min-height: 44px; }
  .detail-main { padding-top: 44px; }
  .detail-floating-actions {
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    justify-content: flex-start;
    gap: 8px;
  }
  .detail-floating-actions .detail-back { padding: 8px 12px; font-size: 13px; }
  .detail-cta-row.has-whatsapp { grid-template-columns: 1fr; }
  .back-to-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .back-to-top.home-back-to-top {
    min-width: 44px;
    width: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .back-to-top-label { display: none; }
  .detail-specs { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 16px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
