/* ==========================================================================
   Zen Kids Wear · 前台样式
   扁平简约 / 阳光橙主色 / 移动端优先
   改主题色只需改下面 :root 里的 --brand 系列
   ========================================================================== */

:root {
  --brand: #F59E0B;
  --brand-600: #D97706;
  --brand-700: #B45309;
  --brand-50: #FFFBEB;
  --brand-100: #FEF3C7;

  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --line-2: #F3F4F6;

  --bg: #FFFFFF;
  --bg-2: #F9FAFB;
  --bg-3: #F3F4F6;

  --ok: #059669;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 4px 16px rgba(17, 24, 39, .07);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, .12);

  --maxw: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(28px, 4.6vw, 46px); }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: clamp(17px, 2vw, 20px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--gray { background: var(--bg-2); }

.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); }

.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.logo__sub { font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }

.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-3); color: var(--ink); }
.nav__link.is-active { color: var(--brand-600); }

.nav__item { position: relative; }

.nav__caret { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; opacity: .55; }

.nav__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__drop a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__drop a:hover { background: var(--brand-50); color: var(--brand-700); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header__actions { margin-left: 8px; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch a {
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.header__wa { display: none; }

.burger {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  flex: none;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.is-open { display: block; }

.drawer__mask {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.drawer.is-open .drawer__mask { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 330px);
  height: 100%;
  background: #fff;
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .24s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__close {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.drawer__group { margin-bottom: 4px; }
.drawer__link {
  display: block;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.drawer__link.is-active { color: var(--brand-600); }
.drawer__sub {
  display: block;
  padding: 11px 12px 11px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.drawer__sub::before {
  content: "";
  position: absolute; left: 13px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}
.drawer__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* ---------- flash ---------- */
.flash-wrap { max-width: var(--maxw); margin: 14px auto 0; padding: 0 var(--gutter); }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid;
}
.flash--ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.flash--err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.flash--warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: #1F2937 center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, .82) 0%, rgba(17, 24, 39, .58) 55%, rgba(17, 24, 39, .32) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 72px 0; max-width: 680px; }
.hero h1 { color: #fff; }
.hero__sub { margin-top: 16px; font-size: clamp(15px, 1.9vw, 18px); color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(245, 158, 11, .5);
  color: #FCD34D;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- page banner (内页头图) ---------- */
.page-banner {
  position: relative;
  padding: 58px 0;
  background: #1F2937 center/cover no-repeat;
  color: #fff;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, .74), rgba(17, 24, 39, .62));
}
.page-banner__inner { position: relative; z-index: 1; max-width: 720px; }
.page-banner h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.page-banner p { margin-top: 12px; color: rgba(255, 255, 255, .84); font-size: 16px; max-width: 620px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }

/* ---------- 商品详情页：顶部收紧 + 右上角返回列表 ---------- */
.section--detail-top { padding-top: 20px; }
.detail-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-top .breadcrumb { margin-bottom: 0; color: var(--muted); }
.detail-top .breadcrumb a { color: var(--muted); text-decoration: none; }
.detail-top .breadcrumb a:hover { color: var(--brand-600); }
.detail-top__back { margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .section--detail-top { padding-top: 10px; }
  .detail-top__back { margin-left: 0; }   /* 手机上面包屑会换行，返回键跟在下面靠左 */
  .detail-top { gap: 8px 12px; }
}

/* ---------- 未发布笔记的预览条（只有登录后台的人能看到） ---------- */
.preview-bar {
  background: var(--brand-50);
  border-bottom: 1px solid #FDE68A;
  box-shadow: inset 4px 0 0 var(--brand);
  padding: 10px 0;
}
.preview-bar__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--brand-700);
}
.preview-bar__tag {
  flex: none;
  background: var(--brand); color: #3F2A05;
  font-weight: 700; font-size: 12px; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 999px;
}
.preview-bar__text { flex: 1 1 240px; line-height: 1.5; }
.preview-bar__link {
  flex: none; font-weight: 600; color: var(--brand-700);
  text-decoration: underline; text-underline-offset: 2px;
}
.preview-bar__link:hover { color: var(--brand-600); }

/* ---------- sub tabs（关于我们的三个子项切换） ---------- */
.subtabs {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}
.subtabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subtabs__inner::-webkit-scrollbar { display: none; }
.subtabs a {
  flex: none;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subtabs a:hover { color: var(--ink); }
.subtabs a.is-active { color: var(--brand-600); border-bottom-color: var(--brand); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: #fff; padding: 24px 18px; text-align: center; }
.stat__num { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; line-height: 1.1; }
.stat__label { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #D1D5DB; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- product grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pcard:hover { border-color: #D1D5DB; box-shadow: var(--shadow); transform: translateY(-2px); }

.pcard__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }

.pcard__tag {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.pcard__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.pcard__price { font-size: 14px; font-weight: 700; color: var(--brand-700); }
.pcard__price--muted { font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard__moq { font-size: 12.5px; color: var(--muted); }

/* ---------- 列表：紧凑图文条（产品中心） ----------
   每个商品只出一张封面，整条是一个链接，点哪儿都进详情页。
   手机上进一步压缩：小图 + 两行描述截断，一屏能多看几款。
----------------------------------------------------- */
.nstrips {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.nstrip {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nstrip:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(17, 24, 39, .07); }
.nstrip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nstrip__pic {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-3);
}
.nstrip__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nstrip__count {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(17, 24, 39, .68); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
}

.nstrip__body { min-width: 0; }
.nstrip__title {
  font-size: 16.5px; line-height: 1.4; font-weight: 700;
  margin: 0 0 6px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nstrip__desc {
  margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nstrip__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.nstrip__price { font-weight: 800; color: var(--brand-700); }
.nstrip__price--muted { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.nstrip__moq { color: var(--ink-2); }
.nstrip__sku {
  color: var(--muted-2); font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 900px) {
  .nstrips { gap: 14px; }
  .nstrip { grid-template-columns: 156px minmax(0, 1fr); padding: 14px; }
  .nstrip__title { font-size: 17.5px; }
}

/* 手机：更紧凑，一屏多看好几款 */
@media (max-width: 560px) {
  .nstrips { gap: 10px; }
  .nstrip {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px; padding: 10px; border-radius: 10px;
  }
  .nstrip__pic { border-radius: 8px; }
  .nstrip__count { right: 4px; bottom: 4px; font-size: 10px; padding: 1px 6px; }
  .nstrip__title { font-size: 15px; margin-bottom: 4px; -webkit-line-clamp: 2; }
  .nstrip__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; -webkit-line-clamp: 2; }
  .nstrip__meta { font-size: 12px; gap: 8px; }
  .nstrip__sku { display: none; }
}

/* ---------- 笔记流（商品详情） ---------- */
.notes {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.note {
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-2);
}
.notes .note:first-child { padding-top: 10px; }
.notes .note:last-child { border-bottom: 0; }

.note__title { font-size: 18px; line-height: 1.45; margin: 0; font-weight: 700; }
.note--detail .note__title,
.note h1.note__title { font-size: clamp(21px, 3vw, 27px); }
.note__title a { color: var(--ink); text-decoration: none; }
.note__title a:hover { color: var(--brand-600); }

.note__desc { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.note__desc p { margin: 0 0 6px; }
.note__desc p:last-child { margin-bottom: 0; }

.note__meta {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  font-size: 14px;
}
.note__price { font-weight: 800; color: var(--brand-700); font-size: 15.5px; }
.note__price--muted { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.note__moq { color: var(--ink-2); }
.note__sku { color: var(--muted-2); font-size: 12.5px; }

.note__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.note__ph {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
}
.note__ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.note__ph:hover img { transform: scale(1.05); }

.note__tip { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-2); }

.note__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.note__extra { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 6px; }
.note__extra-row {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.note__extra-row:last-child { border-bottom: 0; }
.note__extra-row .k { flex: none; width: 110px; color: var(--muted); }
.note__extra-row .v { color: var(--ink); font-weight: 600; }

/* 分享条 */
.share-bar {
  max-width: 780px;
  margin: 0 auto 26px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.share-bar__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.share-bar__btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.share-bar__btns .btn.is-active { border-color: var(--brand); color: var(--brand-700); }
.share-qr { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.share-qr[hidden] { display: none; }
.share-qr img {
  width: 180px; height: 180px; flex: none;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.share-qr__text { font-size: 14px; line-height: 1.7; }
.share-qr__text p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .note { padding: 20px 0; }
  .note__title { font-size: 16.5px; }
  .note__grid { gap: 4px; border-radius: 6px; }
  .note__actions .btn { flex: 1; justify-content: center; }
  .share-bar { padding: 14px; }
  .share-bar__btns .btn { flex: 1; }
  .share-qr { flex-direction: column; }
}

.chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.load-more-wrap { margin-top: 32px; text-align: center; }
.load-more-hint { margin-top: 12px; font-size: 13px; color: var(--muted-2); }

/* ---------- 商品详情 ---------- */
.pd { display: grid; grid-template-columns: 1fr; gap: 28px; }

.pd-gallery__main {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 1 / 1;
}
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button {
  flex: none;
  width: 74px; height: 74px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.pd-thumbs button.is-active { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: clamp(21px, 3vw, 29px); }
.pd-sku { font-size: 13px; color: var(--muted-2); margin-top: 8px; }

.pd-price-box {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.pd-price-box .label { font-size: 13px; color: var(--muted); }
.pd-price-box .value { font-size: 22px; font-weight: 800; color: var(--brand-700); margin-top: 2px; }
.pd-price-box .value--muted { font-size: 16px; font-weight: 600; color: var(--muted); }

.pd-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pd-row .k { flex: none; width: 96px; color: var(--muted); }
.pd-row .v { color: var(--ink); font-weight: 600; }

.pd-desc { margin-top: 26px; }
.pd-desc h2 { font-size: 17px; margin-bottom: 10px; }
.pd-desc .body { font-size: 15px; color: var(--ink-2); }

.pd-actions { margin-top: 26px; display: grid; gap: 10px; }
.pd-note { font-size: 13px; color: var(--muted); text-align: center; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 24, 39, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: pan-y;          /* 横向手势留给 JS 做翻页，纵向不拦 */
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px;
  -webkit-user-drag: none; user-select: none;
}
.lightbox.is-dragging img { will-change: transform; }
.lightbox__counter {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 22px; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 24px; line-height: 1;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- 触屏设备：直接手指左右滑动翻图，箭头按钮反而挡图就藏起来 ---------- */
@media (hover: none) {
  .lightbox__nav { display: none; }
}

/* ---------- 图片墙 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.gallery--wide { grid-template-columns: 1fr; }

/* ---------- 直播入口卡片 ---------- */
.live-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.live-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.live-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.live-card__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
  font-size: 15px;
}
.live-card__title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.live-card__sub { font-size: 13.5px; color: var(--muted); }
.live-card__arrow { margin-left: auto; color: var(--muted-2); font-size: 20px; }

/* ---------- 内容排版 ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 34px 0 12px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 1em; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 15.5px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--brand-700);
}
.notice strong { color: var(--brand-700); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.info-list { display: grid; gap: 4px; }
.info-item {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.info-item__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  font-size: 17px;
}
.info-item__k { font-size: 13px; color: var(--muted); }
.info-item__v { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.info-item__v a:hover { color: var(--brand-600); }
.info-item__extra { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.map-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  background: var(--bg-3);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 地图容器：高德地图渲染前先显示地址（地图就绪后隐藏） */
.map-fallback {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
}
.map-fallback p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 420px; }
.map-fallback__hint { font-size: 13px !important; color: var(--muted) !important; }
.map-embed.is-ready .map-fallback { display: none; }

.qr-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.qr-box img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.qr-box p { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 52px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); margin-top: 10px; }
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--brand-700); }
.cta-band .btn--ghost:hover { background: var(--brand-50); }

/* ---------- 社媒图标行 ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease;
}
.social-link:hover { border-color: var(--brand); color: var(--brand-700); }
.social-link svg { width: 17px; height: 17px; }

/* ---------- footer ---------- */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 48px 0 24px;
  font-size: 14px;
  margin-top: 0;
}
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer a { color: #9CA3AF; }
.footer a:hover { color: var(--brand); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__brand .logo__name { color: #fff; }
.footer__links { display: grid; gap: 9px; }
.footer__contact { display: grid; gap: 9px; }
.footer__contact strong { color: #E5E7EB; font-weight: 600; }
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #6B7280;
}
.footer__note { color: #F59E0B; font-weight: 600; }

/* ---------- 悬浮 WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
}
.wa-float:active { transform: translateY(1px); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float__text { display: none; }

/* ---------- empty ---------- */
.empty {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  color: var(--muted);
}

/* ---------- 404 ---------- */
.err-page { padding: 90px 0; text-align: center; }
.err-page .code { font-size: 72px; font-weight: 800; color: var(--brand); line-height: 1; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .live-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--wide { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .wa-float__text { display: inline; }
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 68px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .pd { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
  .hero { min-height: 540px; }
  .page-banner { padding: 72px 0; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { margin-left: 8px; }
  .header__wa { display: inline-flex; }
  .burger { display: none; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .live-cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 打印 */
@media print {
  .header, .footer, .wa-float, .drawer, .subtabs { display: none !important; }
}
