/* ==========================================================================
   ZHUANG JIN ATELIER — 壮锦非遗独立站
   设计系统 / Design System
   ========================================================================== */

/* 字体：自托管于 ../fonts，见 css/fonts.css（无外部 CDN 依赖） */

:root {
  /* 色板 */
  --ink:        #332f28;
  --ink-soft:   #57503f;
  --muted:      #7d7666;
  --cream:      #f7f2e9;
  --cream-2:    #f1eadd;
  --cream-3:    #fbf8f2;
  --line:       #e2d9c7;
  --line-soft:  #ece4d5;
  --sage:       #8d9c8b;
  --sage-deep:  #65735f;
  --sage-band:  #e9ece3;
  --navy:       #242b33;
  --footer:     #46543f;
  --gold:       #c0a071;
  --gold-deep:  #a8875a;
  --gold-soft:  #dcc7a4;

  /* 字体 */
  --serif: 'Playfair Display', 'Songti SC', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;

  /* 度量 */
  --wrap: 1240px;
  --pad: 40px;
  --radius: 6px;
  --shadow-card: 0 2px 10px rgba(74, 62, 40, .06);
  --shadow-soft: 0 10px 40px rgba(74, 62, 40, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--cream);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy);
  height: 64px;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #f4ece0;
  padding-left: 2px;
}
.brand span { display: block; line-height: 1; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #e9e1d3;
  opacity: .9;
  transition: opacity .25s, color .25s;
}
.nav a:hover { opacity: 1; color: #fff; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 4px;
  background: var(--gold-soft);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 30px;
  border: 0;
  border-radius: 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .045em;
  color: #fffdf8;
  cursor: pointer;
  background: linear-gradient(180deg, #c9a878 0%, #b4915f 55%, #a8834f 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 4px 12px rgba(140, 110, 66, .22);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 20px rgba(140, 110, 66, .28);
}
.btn--full { width: 100%; padding: 11px 20px; border-radius: 24px; font-size: 12.5px; }
.btn--sm { padding: 10px 24px; font-size: 12.5px; }
.btn--sage {
  background: linear-gradient(180deg, #7f8f77 0%, #66765f 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 12px rgba(70, 84, 63, .22);
}

/* ---------- 装饰：花卉 / 织纹水印 ---------- */
.floral {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .95;
  z-index: 2;
}
.floral--left  { left: -84px; top: -30px; width: 330px; transform: rotate(-4deg); }
.floral--right { right: -74px; top: -20px; width: 300px; transform: scaleX(-1) rotate(-6deg); }
.floral--tr    { right: -30px; top: -40px; width: 240px; transform: scaleX(-1); opacity: .85; }

.weave-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/weave.svg");
  background-size: 118px 118px;
  opacity: .28;
  pointer-events: none;
}

/* ---------- Hero 通用 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-2);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 72%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(247, 242, 233, .95) 0%,
      rgba(247, 242, 233, .82) 26%,
      rgba(247, 242, 233, .35) 46%,
      rgba(247, 242, 233, 0) 62%);
}
.hero__inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 600px;
}
.hero__copy { max-width: 660px; padding: 60px 0 74px; }
.display {
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin-bottom: 16px;
  white-space: nowrap;
}
.display em { font-style: normal; }
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: #4e4a3d;
  max-width: 430px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__actions .btn { min-width: 210px; }

/* ---------- 通用 section ---------- */
.section { position: relative; padding: 46px 0 0; overflow: hidden; }
.section--pad { padding: 70px 0 80px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- 三栏卡片 ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card__media { height: 232px; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 18px 22px 22px; }
.card__body h3 { font-size: 19px; line-height: 1.35; margin-bottom: 4px; }
.card__body p { font-size: 13.2px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- 底部服务条 ---------- */
.trust-strip {
  background: var(--footer);
  color: #ece6d6;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 12.5px;
  letter-spacing: .06em;
  position: relative;
  z-index: 6;
}
.trust-strip__item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.trust-strip svg { width: 15px; height: 15px; opacity: .9; }
.trust-strip .dot { opacity: .55; font-size: 11px; }

/* ---------- 页脚（首页用简版） ---------- */
.mini-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
  padding: 30px 0;
  font-size: 12.5px;
  color: var(--muted);
}
.mini-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mini-footer b { font-family: var(--serif); font-weight: 400; letter-spacing: .18em; font-size: 12px; color: var(--ink); }

/* ==========================================================================
   商品列表页
   ========================================================================== */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 46px 0 30px;
  background: linear-gradient(180deg, #eef0e7 0%, var(--cream) 78%);
}
.page-head__inner { position: relative; z-index: 4; }
.page-head h1 { font-size: 42px; line-height: 1.2; }
.page-head p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; }
.page-head .floral--left { top: -130px; left: -250px; width: 350px; transform: rotate(-8deg); }
.page-head .floral--right { top: -110px; right: -170px; width: 300px; transform: scaleX(-1) rotate(-6deg); }

.shop-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 34px;
  padding-bottom: 60px;
  align-items: start;
}
.filters { position: relative; z-index: 4; padding-top: 4px; }
.filter-group { padding: 16px 0 18px; border-bottom: 1px solid var(--line-soft); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.filter-group li { font-size: 13.5px; color: var(--ink-soft); padding: 3px 0; cursor: pointer; transition: color .2s; }
.filter-group li:hover { color: var(--gold-deep); }
.filter-group li.is-active { color: var(--ink); font-weight: 400; }
.filter-group li.is-active::before { content: "· "; color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product {
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.product__media { height: 196px; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product__media img { transform: scale(1.04); }
.product__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--serif); font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.product__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 11px;
  font-size: 11.8px;
  color: var(--muted);
}
.product__price { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }

/* ==========================================================================
   品牌故事页
   ========================================================================== */
.story-hero {
  position: relative;
  overflow: hidden;
  background: url("../img/brocade-sage.jpg") center/cover no-repeat;
  padding: 0 0 96px;
}
.story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 38, 30, .62) 0%, rgba(30, 38, 30, .50) 24%, rgba(30, 38, 30, .18) 44%, rgba(30, 38, 30, 0) 60%);
}
.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 242, 233, 0) 62%, rgba(247, 242, 233, .55) 86%, var(--cream) 100%);
}
.story-hero .wrap { position: relative; z-index: 5; display: grid; grid-template-columns: 400px 1fr; gap: 46px; }
.story-copy { padding: 86px 0 0; color: #f4efe3; }
.story-copy h1 { font-size: 52px; margin-bottom: 22px; color: #fdfaf3; }
.story-copy p { font-size: 15.5px; color: #efe9db; max-width: 300px; margin-bottom: 26px; }

.story-visual { position: relative; padding: 40px 0 0; }
.story-visual__main {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(60, 50, 30, .18);
  height: 404px;
  width: 100%;
}
.story-visual__main img { width: 100%; height: 100%; object-fit: cover; }
.story-visual__small {
  position: absolute;
  left: -104px;
  bottom: -26px;
  display: flex;
  gap: 10px;
  z-index: 6;
}
.story-visual__small div {
  width: 196px;
  height: 132px;
  border-radius: 4px;
  overflow: hidden;
  border: 4px solid #fbf8f2;
  box-shadow: 0 10px 26px rgba(60, 50, 30, .16);
}
.story-visual__small img { width: 100%; height: 100%; object-fit: cover; }

.story-values {
  position: relative;
  z-index: 8;
  margin-top: -46px;
  padding-bottom: 6px;
}
.value-cards {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  position: relative;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.value-card__icon {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fffefb;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.value-card__icon svg { width: 17px; height: 17px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 12.8px; line-height: 1.7; color: var(--muted); margin: 0; }

.tagline {
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  padding: 66px 0 74px;
  position: relative;
  z-index: 5;
}
.tagline::before,
.tagline::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto 20px;
}
.tagline::after { margin: 20px auto 0; }

/* ==========================================================================
   非遗纹样文化页
   ========================================================================== */
.heritage-hero {
  position: relative;
  overflow: hidden;
  background: url("../img/weaver.jpg") 66% center/cover no-repeat;
  padding-bottom: 58px;
}
.heritage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 242, 233, .97) 0%, rgba(247, 242, 233, .93) 26%, rgba(247, 242, 233, .42) 46%, rgba(247, 242, 233, .06) 63%, rgba(247, 242, 233, 0) 72%);
}
.heritage-hero .wrap { position: relative; z-index: 5; }
.heritage-copy { padding: 74px 0 60px; max-width: 480px; }
.heritage-copy h1 { font-size: 48px; line-height: 1.14; margin-bottom: 16px; }
.heritage-copy p { font-size: 15.5px; color: #45412f; max-width: 340px; margin-bottom: 26px; }

.heritage-collage {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 56%;
  display: flex;
  gap: 0;
  z-index: 3;
}
.heritage-collage__a { width: 34%; overflow: hidden; }
.heritage-collage__a img { width: 100%; height: 100%; object-fit: cover; }
.heritage-collage__b { width: 32%; background: url("../img/woman-loom.jpg") center 40%/cover; }
.heritage-collage__c {
  width: 34%;
  background: url("../img/pattern-tan.jpg") center/cover;
}
.heritage-collage > div { position: relative; }
.heritage-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,242,233,.55), rgba(247,242,233,0) 28%);
}

.heritage-cards-wrap {
  position: relative;
  z-index: 8;
  margin-top: -48px;
}
.heritage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.heritage-card {
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-card);
  align-items: flex-start;
}
.heritage-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-band);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
}
.heritage-card__icon svg { width: 20px; height: 20px; }
.heritage-card h3 { font-size: 17px; margin-bottom: 5px; }
.heritage-card p { font-size: 12.8px; line-height: 1.65; color: var(--muted); margin: 0; }

.library { padding: 62px 0 70px; position: relative; }
.library h2 { font-size: 24px; margin-bottom: 20px; }
.pattern-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pattern-tile { background: #fffefb; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-card); }
.pattern-tile__media { height: 150px; overflow: hidden; }
.pattern-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.pattern-tile h4 { font-size: 15px; padding: 11px 12px 3px; }
.pattern-tile p { font-size: 11.5px; line-height: 1.6; color: var(--muted); padding: 0 12px 14px; margin: 0; }

/* ==========================================================================
   关于我们页
   ========================================================================== */
.about-hero {
  position: relative;
  overflow: hidden;
  background: url("../img/woman-loom.jpg") center 45%/cover no-repeat;
  padding: 76px 0 82px;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(66% 80% at 50% 36%, rgba(251, 247, 240, .96) 0%, rgba(251, 247, 240, .74) 42%, rgba(251, 247, 240, .26) 70%, rgba(251, 247, 240, .04) 88%, rgba(251, 247, 240, 0) 100%);
}
.about-hero .floral--left { left: -96px; top: -26px; width: 236px; opacity: .88; }
.about-hero .floral--right { right: -84px; top: -34px; width: 228px; opacity: .88; }
.about-hero__inner { position: relative; z-index: 5; text-align: center; }
.about-hero h1 { font-size: 50px; margin-bottom: 12px; }
.about-hero p { font-size: 14.5px; color: #4a4634; margin-bottom: 22px; }

.about-cols {
  background: var(--cream-3);
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 54px;
  position: relative;
}
.about-cols .weave-bg { opacity: .35; }
.about-cols__grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.about-col { display: flex; flex-direction: column; }
.about-col h3 { font-size: 18px; margin-bottom: 8px; }
.about-col p { font-size: 12.9px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; flex: 1 1 auto; }
.about-col__media { margin-top: auto; height: 150px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.about-col__media img { width: 100%; height: 100%; object-fit: cover; }

.cta-band {
  position: relative;
  background: var(--cream);
  padding: 44px 0 56px;
  text-align: center;
  overflow: hidden;
}
.cta-band .inner { position: relative; z-index: 5; }
.cta-band h2 { font-size: 21px; margin-bottom: 8px; }
.cta-band p { font-size: 12.5px; color: var(--muted); max-width: 520px; margin: 0 auto 20px; }

/* ==========================================================================
   布料 / 私标定制页
   ========================================================================== */
.fabric-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 0;
}
.fabric-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  background: url("../img/fabric-rolls.jpg") center/cover no-repeat;
}
.fabric-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(247, 242, 233, .92) 9%, rgba(247, 242, 233, .45) 24%, rgba(247, 242, 233, 0) 44%);
}
.fabric-hero .wrap { position: relative; z-index: 5; }
.fabric-copy { padding: 68px 0 74px; max-width: 470px; }
.fabric-copy h1 { font-size: 46px; line-height: 1.16; margin-bottom: 18px; }
.fabric-copy p { font-size: 15px; color: #4a4634; max-width: 360px; margin-bottom: 26px; }

.fabric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0 0;
  position: relative;
  z-index: 6;
}
.fabric-card {
  background: #fffefb;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-soft);
  border-radius: 4px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
}
.fabric-card h3 { font-size: 18px; text-align: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.fabric-card p { font-size: 12.9px; line-height: 1.7; color: var(--muted); margin: 0; text-align: left; }

.customize { padding: 46px 0 64px; position: relative; }
.customize h2 { text-align: center; font-size: 27px; margin-bottom: 26px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.step { display: flex; gap: 10px; align-items: flex-start; }
.step__num {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  flex: 0 0 auto;
}
.step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.45; }

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}
.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fffefb;
  border: 1px solid #cfc4ae;
  border-radius: 4px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9182; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 160, 113, .12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field--message textarea { min-height: 84px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-soft);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
}

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .display { font-size: 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .value-cards, .about-cols__grid, .fabric-cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .story-hero .wrap { grid-template-columns: 1fr; }
  .story-visual__small { position: static; margin-top: 14px; }
  .heritage-collage { display: none; }
  .fabric-hero__media { width: 100%; opacity: .58; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .nav { display: none; }
  .display { font-size: 32px; }
  .hero__inner { min-height: 440px; }
  .product-grid, .cards-3, .value-cards, .about-cols__grid, .fabric-cards, .steps, .pattern-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 14px; font-size: 10.5px; flex-wrap: wrap; height: auto; padding: 12px; }
  .inquiry-form { grid-template-columns: 1fr; }
  .field--message { grid-column: auto; }
  .form-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- 纹样色调变体（同一面料不同配色） ---------- */
.tint-warm { filter: sepia(.28) saturate(1.2) hue-rotate(-14deg) brightness(1.02); }
.tint-cool { filter: hue-rotate(-22deg) saturate(.82) brightness(1.04); }
.tint-fade { filter: saturate(.62) brightness(1.08) contrast(.96); }
.tint-sage { filter: hue-rotate(96deg) saturate(.55) brightness(1.05); }

.pattern-tile__media img.crop-in { transform: scale(1.95); }
.pattern-tile__media img.crop-in2 { transform: scale(1.45); }

/* ==========================================================================
   V2 追加：壮锦纹样底墙 · 茉莉花装饰 · 工厂实拍 · 页脚
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

/* ---------- 茉莉花装饰：按新的插画枝条重新定位 ---------- */
.floral--left  { left: -58px;  top: -6px;  width: 252px; transform: rotate(-4deg); }
.floral--right { right: -48px; top: 6px;   width: 244px; transform: scaleX(-1) rotate(-3deg); }
.floral--tr    { right: -42px; top: -44px; width: 252px; transform: scaleX(-1); opacity: .9; }
.page-head .floral--left  { top: -150px; left: -210px; width: 300px; }
.page-head .floral--right { top: -130px; right: -190px; width: 290px; }

/* ---------- 工厂实拍 ---------- */
.factory-band {
  position: relative;
  background: var(--cream-3);
  border-top: 1px solid var(--line-soft);
  padding: 66px 0 62px;
}
.factory-head {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}
.factory-head h2 { font-size: 36px; line-height: 1.22; }
.factory-head p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0; max-width: 460px; }
.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 176px;
  gap: 14px;
}
.factory-grid figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--cream-2); }
.factory-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.factory-grid figure:hover img { transform: scale(1.04); }
.factory-grid__main { grid-column: span 2; grid-row: span 2; }

.factory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.factory-stats b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 2px;
}
.factory-stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 页脚：米白壮锦底墙 ---------- */
.site-footer {
  position: relative;
  background: #f4ede0;
  border-top: 1px solid var(--line);
  padding: 58px 0 20px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern-zhuang.svg");
  background-size: 124px 124px;
  opacity: .22;
  pointer-events: none;
}
.site-footer > .wrap { position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1.25fr;
  gap: 42px;
  padding-bottom: 38px;
}
.footer-brand .brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-brand p { font-size: 13px; line-height: 1.85; color: var(--ink-soft); max-width: 340px; margin: 14px 0 0; }
.footer-brand .footer-note {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 14px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3px 0 14px;
}
.footer-col a, .footer-col p { display: block; font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 9px; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(120, 105, 80, .2);
  padding-top: 15px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .factory-head { grid-template-columns: 1fr; gap: 18px; }
  .factory-stats { grid-template-columns: 1fr 1fr; }
}

/* V2 微调 */
.site-footer::before { background-size: 134px 134px; opacity: .16; }
.story-values { margin-top: 26px; }
.story-hero .floral--tr { top: 6px; right: -36px; width: 240px; }

/* 数字/标准号尺寸微调 */
.factory-stats b { letter-spacing: 0; font-variant-numeric: lining-nums; }
.factory-stats b.is-code { font-size: 22px; letter-spacing: .01em; line-height: 1.45; }
.page-head .floral--left  { top: -96px;  left: -150px; width: 260px; opacity: .9; }
.page-head .floral--right { top: -84px;  right: -170px; width: 250px; opacity: .9; }

/* 首页主视觉：加大高度，露出人物头部 */
.hero { min-height: 560px; display: flex; align-items: center; }
.hero__media { background-position: center 40%; }
.hero__copy { padding: 78px 0 82px; }

/* 页头花卉：只保留右上角一枝，避免左角被裁 */
.page-head .floral--left { display: none; }
.page-head .floral--right { top: -74px; right: -26px; width: 214px; opacity: .85; transform: scaleX(-1) rotate(2deg); }

/* 花卉细节收尾 */
.story-hero .floral--tr { top: 18px; right: -30px; width: 220px; opacity: .8; }
.fabric-hero .floral--tr { top: -30px; right: -24px; width: 188px; opacity: .72; }

/* ==========================================================================
   V3 上线版：导航动作区 / 抽屉菜单 / 双币种 / 筛选工具栏 / 商品弹窗 /
              表单校验态 / 全站响应式
   ========================================================================== */

/* ---------- 顶部右侧动作区 ---------- */
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.currency {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(233, 225, 211, .24);
  border-radius: 999px;
}
.currency button {
  border: 0;
  background: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: #cbc2b2;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.currency button:hover { color: #fff; }
.currency button.is-active { background: #f4ecdf; color: #33302a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto;
  background: #e9e1d3;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 抽屉菜单 ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 28, 24, .46);
  opacity: 0;
  transition: opacity .35s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(324px, 86vw);
  padding: 22px 26px 28px;
  background: var(--cream-3);
  box-shadow: -24px 0 70px rgba(40, 34, 24, .18);
  transform: translateX(102%);
  transition: transform .42s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__head .brand { color: var(--ink); font-size: 12px; letter-spacing: .2em; }
.drawer__close {
  width: 32px; height: 32px;
  border: 0; background: none; padding: 0;
  font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer;
}
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__nav a.is-active { color: var(--gold-deep); }
.drawer__cur { margin-top: 24px; }
.drawer__cur h6 {
  margin: 0 0 9px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer__cur .currency { border-color: var(--line); display: inline-flex; }
.drawer__cur .currency button { color: var(--muted); padding: 6px 15px; font-size: 11px; }
.drawer__cur .currency button.is-active { background: var(--ink); color: #fdfaf5; }
.drawer__foot { margin-top: auto; padding-top: 30px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.drawer__foot a { color: var(--ink-soft); border-bottom: 1px solid var(--gold-soft); }

/* ---------- 商品页工具栏 ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 15px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.shop-count {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.shop-count b { font-weight: 400; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1 1 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-2);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-soft);
}
.chip button {
  border: 0; background: none; padding: 0;
  font-size: 14px; line-height: 1; color: var(--muted); cursor: pointer;
}
.chip button:hover { color: var(--ink); }
.filters__toggle { display: none; }
.filters__reset {
  margin-top: 20px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--gold-soft);
  background: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  cursor: pointer;
}
.filters__reset:hover { color: var(--ink); }

/* ---------- 空状态 ---------- */
.empty-state {
  grid-column: 1 / -1;
  padding: 76px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- 商品详情弹窗 ---------- */
body.is-locked { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 20, .52);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-in .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  width: min(1040px, calc(100% - 48px));
  max-height: 92vh;
  margin: 4vh auto;
  border-radius: 8px;
  overflow: auto;
  background: var(--cream-3);
  box-shadow: 0 34px 90px rgba(28, 24, 16, .3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .34s ease, transform .34s ease;
}
.modal.is-in .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: rgba(255, 253, 249, .92);
  color: var(--ink);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(40, 34, 24, .1);
  transition: background .2s;
}
.modal__close:hover { background: #fff; }

.pdp-gallery { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--cream-2); }
.pdp-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-2);
}
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery__label {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(36, 40, 32, .58);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(3px);
}
.pdp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pdp-thumbs button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .78;
}
.pdp-thumbs button:hover { opacity: 1; }
.pdp-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { display: flex; flex-direction: column; padding: 40px 42px 34px; }
.pdp-info h2 { font-size: 29px; line-height: 1.26; margin: 4px 0 10px; }
.pdp-price { font-family: var(--serif); font-size: 21px; color: var(--ink); letter-spacing: .01em; }
.pdp-price small {
  margin-left: 9px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-desc { margin: 15px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.pdp-specs { margin: 20px 0 0; border-top: 1px solid var(--line-soft); }
.pdp-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.pdp-specs dt { color: var(--muted); letter-spacing: .03em; }
.pdp-specs dd { margin: 0; color: var(--ink); text-align: right; }
.pdp-colors { display: flex; align-items: center; gap: 7px; }
.pdp-color { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(90, 78, 58, .22); }
.pdp-actions { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 26px; }
.pdp-actions .btn { width: 100%; }
.pdp-note { font-size: 11.5px; line-height: 1.7; color: var(--muted); text-align: center; margin: 0; }

/* ---------- 表单状态 ---------- */
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #bb5f47; background: #fdf5f2; }
.field__err { display: none; margin-top: 5px; font-size: 10.5px; letter-spacing: .02em; color: #b04f37; }
.field.is-error .field__err { display: block; }
.inquiry-form.is-sent .field,
.inquiry-form.is-sent .form-foot { opacity: .45; pointer-events: none; }
.form-success {
  grid-column: 1 / -1;
  display: none;
  padding: 22px 24px;
  border: 1px solid #cfd8c6;
  border-left: 3px solid var(--sage-deep);
  border-radius: 4px;
  background: #f4f7ef;
}
.form-success.is-on { display: block; }
.form-success h4 { font-size: 16px; margin: 0 0 4px; }
.form-success p { margin: 0; font-size: 12.8px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 200;
  padding: 11px 22px;
  border-radius: 999px;
  background: #3b4238;
  color: #f4edde;
  font-size: 12px;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 249, .92);
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(50, 44, 32, .1);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 15px; height: 15px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15.5px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .modal__panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .pdp-gallery { padding: 12px; }
  .pdp-gallery__main { aspect-ratio: 4 / 3; }
  .pdp-info { padding: 26px 22px 30px; }
  .pdp-info h2 { font-size: 24px; }
  .pdp-actions { padding-top: 20px; }
  .filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf8;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .shop-layout { display: block; }
  .filters {
    display: none;
    margin-bottom: 20px;
    padding: 4px 0 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .filters.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .filter-group:nth-child(1), .filter-group:nth-child(2) { padding-top: 0; }
  .filters__reset { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  /* Hero：文字在上、图在下渐显 */
  .hero { min-height: 0; display: block; }
  .hero__inner { min-height: 0; display: block; padding: 0; }
  .hero__copy { max-width: none; padding: 40px 0 290px; }
  .display { white-space: normal; font-size: 31px; line-height: 1.22; }
  .lead { font-size: 14.5px; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__scrim {
    background: linear-gradient(180deg,
        rgba(247, 242, 233, .97) 0%,
        rgba(247, 242, 233, .95) 34%,
        rgba(247, 242, 233, .6) 62%,
        rgba(247, 242, 233, 0) 100%);
  }
  .hero__media { background-position: 62% 64%; }

  .page-head { padding: 34px 0 24px; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 13.5px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__media { height: 148px; }
  .product__body { padding: 10px 10px 12px; }
  .product__name { font-size: 13.5px; }
  .product__meta { font-size: 10.5px; margin: 3px 0 9px; }
  .product__price { font-size: 11.5px; }
  .product .btn--full { font-size: 11px; padding: 8px 10px; }

  .card__media { height: 190px; }
  .factory-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .factory-grid__main { grid-column: span 2; grid-row: span 1; }
  .factory-band { padding: 48px 0 46px; }
  .factory-head h2 { font-size: 27px; }
  .factory-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .factory-stats b { font-size: 24px; }
  .factory-stats b.is-code { font-size: 16px; }

  .pattern-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about-hero h1 { font-size: 30px; }
  .fabric-copy h1 { font-size: 28px; }
  .story-copy h1 { font-size: 30px; }
  .heritage-copy h1 { font-size: 30px; }
  .customize h2 { font-size: 25px; }
  .site-footer { padding: 44px 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .to-top { right: 16px; bottom: 16px; }
  .shop-toolbar { flex-wrap: wrap; gap: 12px; }
  .chips { order: 3; flex-basis: 100%; }
  .filters.is-open { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product__media { height: 210px; }
  .display { font-size: 27px; }
  .hero__copy { padding-bottom: 250px; }
}

/* 打印：去掉装饰 */
@media print {
  .site-header, .drawer, .modal, .to-top, .floral, .trust-strip { display: none !important; }
  body { background: #fff; }
}
/* ==========================================================================
   V4 视觉校准：导航三段居中 / 主视觉遮罩 / 页脚纹样浓度
   ========================================================================== */

/* 导航：品牌 / 导航 / 币种 三段网格，导航真正居中 */
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.site-header .brand { justify-self: start; }
.site-header .nav { justify-self: center; }
.header-actions { justify-self: end; }

/* 主视觉左侧遮罩加宽，标题压在净色墙面上 */
.hero__scrim {
  background: linear-gradient(90deg,
      rgba(247, 242, 233, .97) 0%,
      rgba(247, 242, 233, .95) 32%,
      rgba(247, 242, 233, .86) 46%,
      rgba(247, 242, 233, .52) 58%,
      rgba(247, 242, 233, .18) 68%,
      rgba(247, 242, 233, 0) 78%);
}

/* 页脚壮锦底纹：更疏、更淡，只作肌理 */
.site-footer::before {
  background-size: 168px 168px;
  opacity: .085;
}
.footer-brand .brand,
.footer-col h5,
.footer-bottom { position: relative; z-index: 2; }

/* 商品卡价格与标签对齐更稳 */
.product__meta { font-variant-numeric: tabular-nums; }

/* 工具栏为空时不留白 */
.chips:empty { display: none; }

/* ==========================================================================
   V5 移动端校准（必须位于文件末尾以覆盖 V4 的全局规则）
   ========================================================================== */

@media (max-width: 1024px) {
  /* 导航隐藏后收紧为两列，避免第三列留白 */
  .site-header .wrap { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .site-header { height: 52px; }
  .site-header .brand { font-size: 10.5px; letter-spacing: .13em; white-space: nowrap; }
  .header-actions { gap: 12px; }
  .header-actions .currency { display: none; }  /* 币种在抽屉里切换 */
  .drawer__cur .currency { display: inline-flex; }
}

@media (max-width: 720px) {
  /* 竖向遮罩：标题区完全不透，图片只在下方渐显 */
  .hero__scrim {
    background: linear-gradient(180deg,
        rgba(247, 242, 233, .99) 0%,
        rgba(247, 242, 233, .985) 42%,
        rgba(247, 242, 233, .82) 62%,
        rgba(247, 242, 233, .34) 82%,
        rgba(247, 242, 233, 0) 100%);
  }
  .hero__media { background-position: 60% 72%; }
  .hero__copy { padding: 38px 0 268px; }
  .display { font-size: 30px; line-height: 1.24; }
}

@media (max-width: 420px) {
  /* 小屏也保持双列，符合移动电商浏览习惯 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product__media { height: 138px; }
  .display { font-size: 26px; }
  .hero__copy { padding-bottom: 232px; }
  .product__name { font-size: 12.5px; line-height: 1.35; }
  .product .btn--full { font-size: 10.5px; padding: 7px 8px; }
  .product__meta { flex-direction: column; align-items: flex-start; gap: 1px; }
}

/* 移动端弹窗底部留出手势安全区 */
@media (max-width: 900px) {
  .pdp-info { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
}

/* 小屏页头花卉往里收，避免压住标题 */
@media (max-width: 720px) {
  .page-head .floral--right { top: -54px; right: -64px; width: 172px; opacity: .8; }
  .fabric-hero .floral--tr { top: -24px; right: -52px; width: 150px; opacity: .6; }
  .about-cols__grid { gap: 22px; }
  .fabric-hero { min-height: 0; }
  .fabric-copy { padding: 34px 0 44px; }
}

/* 触屏设备取消 hover 位移，避免点击后卡片卡住 */
@media (hover: none) {
  .product:hover, .card:hover { transform: none; box-shadow: var(--shadow-card); }
  .product:hover .product__media img, .card:hover .card__media img { transform: none; }
}

/* ==========================================================================
   V6 移动端主视觉：改为「文字块 + 图片块」上下结构，不再让文字压在人脸上
   ========================================================================== */
@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: var(--cream);
  }
  .hero__inner { display: block; min-height: 0; padding: 0; }
  .hero > .wrap { order: 1; }
  .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    height: 336px;
    background-position: 58% 42%;
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 64px;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(247, 242, 233, 0) 100%);
    pointer-events: none;
  }
  .hero__scrim { display: none; }
  .hero__copy { padding: 32px 0 26px; max-width: none; }
  .hero__actions { margin-top: 4px; }
}

@media (max-width: 420px) {
  .hero__media { height: 300px; background-position: 58% 40%; }
  .hero__copy { padding: 26px 0 22px; }
}

/* 米白纹样在缩略图里对比偏弱，轻提对比以便识别 */
img[src*="pattern-ivory"] { filter: contrast(1.16) saturate(1.05) brightness(.985); }

/* 米白纹样在缩略图里对比偏弱，轻提对比以便识别 */
img[src*="pattern-ivory"] { filter: contrast(1.16) saturate(1.05) brightness(.985); }

/* ==========================================================================
   V7 主视觉校准：hero 改用加宽版图（2686 × 1110，左侧墙面延展）
   目的：宽高比接近版面比例，人物头部不再被裁；按顶部对齐，
   屏宽变化时只裁画面底部的地面/桌面，不裁人。
   ========================================================================== */
.hero__media { background-position: 62% top; }

/* 大屏：把 hero 拉高一点，避免画面底部裁得过多 */
@media (min-width: 1600px) {
  .hero, .hero__inner { min-height: 700px; }
  .hero__media { background-position: 56% top; }
}
@media (min-width: 1900px) {
  .hero, .hero__inner { min-height: 760px; }
}

@media (max-width: 1024px) {
  .hero__media { background-position: 66% top; }
}

/* 手机：图块独立成段，高度大于宽高比 → 只裁左右，不裁上下，人物完整 */
@media (max-width: 720px) {
  /* 手机上图块是整个宽度的一块，右边对齐人物，左边留墙 */
  .hero__media { background-position: 100% top; height: 372px; }
}

@media (max-width: 420px) {
  .hero__media { background-position: 100% top; height: 340px; }
}

/* ==========================================================================
   V8 主视觉构图：文字块向中间靠，收紧文字与人物之间的空档
   （照片本身人物在画面 78% 处，左侧是空墙；靠挪文字来聚拢视觉中心，
     不去人为拉宽画面右侧——试过镜像/平铺补墙，会留花枝与椅背的重影）
   ========================================================================== */
.hero__copy { margin-left: 72px; max-width: 690px; }
.hero__copy .display { font-size: 47px; }

@media (max-width: 1280px) {
  .hero__copy { margin-left: 44px; }
}
@media (max-width: 1024px) {
  .hero__copy { margin-left: 0; max-width: none; }
  .hero__copy .display { font-size: 40px; }
}
@media (max-width: 720px) {
  .hero__copy { margin-left: 0; }
  .hero__copy .display { font-size: 30px; }
}
