/* ============================================================
   XAVERA — Warm Minimalism Design System
   雪薇拉 XAVERA 香氛制造 · 官网样式表
   ============================================================ */

:root {
  /* Color */
  --bg: #FAF7F2;
  --bg-alt: #EFE8DC;
  --bg-deep: #1C1917;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --muted: #8A8178;
  --accent: #A8563C;
  --accent-dark: #8C4330;
  --olive: #6B6A5E;
  --line: #DED5C6;
  --white: #FFFFFF;

  /* Type */
  --ff-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "Optima", Georgia, serif;
  --ff-sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", Inter, sans-serif;
  --ff-en-serif: "Optima", "Cormorant Garamond", Georgia, "Songti SC", serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --pad-x: 40px;
  --sp-section: 104px;
  --sp-section-sm: 64px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; }
h4 { font-size: 1.05rem; }

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

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.85;
  color: var(--ink-soft);
}

.eyebrow {
  display: block;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
}

.en .eyebrow { letter-spacing: .22em; }

.en h1, .en h2, .en h3, .en h4 {
  font-family: "Didot", "Cormorant Garamond", "Baskerville", "Optima", Georgia, serif;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.en h1 { letter-spacing: -0.015em; line-height: 1.12; font-size: clamp(2.1rem, 4.1vw, 3.45rem); }

.en h1, .en h2, .en h3, .en h4 {
  font-family: "Didot", "Cormorant Garamond", "Baskerville", "Optima", Georgia, serif;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.en h1 { letter-spacing: -0.015em; line-height: 1.12; font-size: clamp(2.1rem, 4.1vw, 3.45rem); }

.num-tag {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--sp-section) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: var(--sp-section-sm) 0; }
.section--dark { background: var(--bg-deep); color: #F5F1EA; }
.section--dark .lead, .section--dark .section-head p { color: #C9C2B8; }
.section--dark .eyebrow { color: #A39A8C; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 780px;
  margin-bottom: 56px;
}

.section-head h2 { margin-bottom: 16px; }
.section-head h2:last-child { margin-bottom: 0; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 62ch; }

.section-head--row {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
  gap: 40px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 74px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-en-serif);
  font-size: 21px;
  letter-spacing: .26em;
  font-weight: 600;
  flex-shrink: 0;
}

.brand small {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--olive);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color .15s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}

.lang-switch a { white-space: nowrap; }

.lang-switch a { padding: 4px 2px; }
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }
.lang-switch span { opacity: .4; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}

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

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

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

.btn--onDark { border-color: rgba(255,255,255,.28); color: #F5F1EA; }
.btn--onDark:hover { border-color: #F5F1EA; background: rgba(255,255,255,.06); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 16px; height: 1px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- Language suggestion bar ---------- */
.lang-hint {
  display: none;
  background: var(--bg-deep);
  color: #F0EBE3;
  font-size: 13px;
}
.lang-hint.is-open { display: block; }
.lang-hint__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-hint a {
  border-bottom: 1px solid rgba(240,235,227,.4);
  padding-bottom: 1px;
}
.lang-hint a:hover { border-bottom-color: #F0EBE3; }
.lang-hint__close {
  margin-left: auto;
  background: none; border: 0; color: #A39A8C; font-size: 18px; line-height: 1;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 0;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
}

.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead { max-width: 30em; margin-bottom: 34px; }

/* 品牌口号：eyebrow 与 h1 之间的一层 */
.hero__motto {
  font-family: var(--ff-serif);
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  letter-spacing: .12em;
  color: var(--accent);
  margin: -4px 0 22px;
  line-height: 1.45;
}
.en .hero__motto {
  font-family: "Didot", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  letter-spacing: .01em;
  text-indent: 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.hero__meta span { display: flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7% 0;
  mix-blend-mode: multiply;
}

.hero__visual--photo img {
  object-fit: cover;
  padding: 0;
  mix-blend-mode: normal;
}

.hero__caption {
  position: absolute;
  left: 20px; bottom: 18px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  background: rgba(250,247,242,.86);
  padding: 5px 10px;
  border-radius: 2px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 72px;
}

.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.stat__label { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bento__item {
  background: var(--bg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  transition: background .2s var(--ease);
}

.bento__item:hover { background: var(--white); }

.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }

.bento__idx {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.bento__item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.bento__item img {
  margin-top: auto;
  max-height: 150px;
  object-fit: contain;
  filter: saturate(.9);
}

/* ---------- Product grid ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 40px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all .15s var(--ease);
}

.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #FAF7F2; }

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.products--5 { grid-template-columns: repeat(5, 1fr); }
.products--5 .product { padding: 20px 16px 18px; }

.products--5 { grid-template-columns: repeat(5, 1fr); }
.products--5 .product { padding: 20px 16px 18px; }

.product {
  background: var(--bg);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: background .2s var(--ease);
}

.product:hover { background: #fff; }

.product__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 18px;
}

.product__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .4s var(--ease);
}

.product:hover .product__img img { transform: translateY(-4px); }

.product__no {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.product__name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product__family { font-size: 12.5px; color: var(--olive); }

.product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 32px 22px 32px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 24px; }

.step__no {
  font-family: var(--ff-serif);
  font-size: 2.1rem;
  color: #C6B9A6;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; font-family: var(--ff-sans); font-weight: 600; }
.step p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.step__time {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .04em;
}

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

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-alt);
}

.gallery figcaption {
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
}

.gallery--wide { grid-template-columns: 1.6fr 1fr; }
.gallery--wide figure:first-child img { aspect-ratio: 16 / 11; }

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

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

a.card:hover { border-color: var(--ink); transform: translateY(-2px); }

.card h3 { font-size: 1.15rem; }
.card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.card__meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  letter-spacing: .02em;
}

.card--plain { background: transparent; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

table.data th, table.data td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  font-family: var(--ff-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--ink); }
table.data small { color: var(--muted); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--ff-serif);
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-sans);
  font-size: 20px;
  color: var(--olive);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 62ch;
  margin: 0;
}

/* ---------- Prose / article ---------- */
/* ---------- 证照展示 ---------- */
.cert {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.cert__doc {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px;
  transition: border-color .2s var(--ease);
}
.cert__doc:hover { border-color: var(--muted); }
.cert__doc img { width: 100%; height: auto; }
.cert__zoom {
  display: block;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  text-align: center;
  transition: color .2s var(--ease);
}
.cert__doc:hover .cert__zoom { color: var(--accent); }
.cert__info h3 { font-size: 1.32rem; margin-bottom: 14px; }
.cert__lead { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin: 0 0 28px; max-width: 46ch; }
.cert__rows { margin: 0; }
.cert__row {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cert__row:first-child { border-top: 1px solid var(--line); }
.cert__row dt { flex: 0 0 92px; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.cert__row dd { flex: 1; margin: 0; color: var(--ink); }

@media (max-width: 900px) {
  .cert { grid-template-columns: 1fr; gap: 32px; }
  .cert__doc { max-width: 400px; }
  .cert__row { gap: 12px; }
  .cert__row dt { flex: 0 0 80px; }
}

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 48px 0 18px; }
.prose h3 { margin: 34px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-bottom: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--ff-serif);
  font-size: 1.06rem;
  line-height: 1.75;
}
.prose blockquote p { margin: 0; color: var(--ink); }

.answer-box {
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  padding: 22px 26px;
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.answer-box strong { color: var(--ink); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 100px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.article-aside h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.article-aside ul { list-style: none; padding: 0; margin: 0 0 28px; }
.article-aside li { font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.article-aside li a { color: var(--ink-soft); }
.article-aside li a:hover { color: var(--accent); }

/* ---------- Page head ---------- */
.pagehead {
  padding: 64px 0 0;
}
.pagehead__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.pagehead__inner > div:last-child { justify-self: end; }
.pagehead h1 { margin-bottom: 34px; font-size: clamp(2.05rem, 4vw, 3.35rem); }
.is-article .pagehead h1 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); }
.pagehead .lead { max-width: 34em; }

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--bg-deep);
  color: #F5F1EA;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 80px;
  align-items: center;
  padding: 84px 0;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { color: #C9C2B8; max-width: 32em; }
.cta-band .eyebrow { color: #A39A8C; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.field label .req { color: var(--accent); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }

.field--full .btn { align-self: flex-start; padding-left: 44px; padding-right: 44px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; max-width: 60ch; }
.form-status { font-size: 14px; margin-top: 16px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: #3F6B45; }
.form-status.is-err { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  font-size: 14.5px;
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list dt, .contact-list .k { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; padding-top: 2px; }
.contact-list .v { color: var(--ink); }
.contact-list .v a { border-bottom: 1px solid var(--line); }
.contact-list .v a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.contact-card {
  background: var(--bg-alt);
  padding: 40px 36px;
  border: 1px solid var(--line);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--ink-soft); }

/* 无右侧卡片时收窄，避免单栏拉得过长 */
.contact-grid--solo { grid-template-columns: minmax(0, 1fr); }
.contact-grid--solo .contact-list li { grid-template-columns: 150px 1fr; }
.contact-grid--solo .contact-qr { grid-template-columns: 150px 1fr; }

/* 联系页：工厂地址下方的二维码 */
.contact-qr { align-items: start !important; }
.contact-qr .v { display: flex; align-items: center; gap: 20px; min-width: 0; }
.contact-qr img {
  width: 132px;
  height: 132px;
  display: block;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}
.contact-qr__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 240px;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #C9C2B8;
  padding: 72px 0 34px;
  font-size: 14px;
}
.site-footer a { color: #C9C2B8; }
.site-footer a:hover { color: #F5F1EA; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .brand { color: #F5F1EA; margin-bottom: 16px; }
.footer-brand .brand small { color: #8A8178; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 24em; color: #9A9188; }

.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8A8178;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; font-size: 13.5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 12px;
  color: #7A7168;
}

.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal .icp {
  color: #7A7168;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding-bottom: 1px;
}
.footer-bottom .legal .icp:hover { color: #D8CCBC; border-bottom-color: rgba(255, 255, 255, .4); }

/* 页脚品牌口号与主体信息 */
.footer-motto {
  font-family: var(--ff-serif);
  font-size: 15px !important;
  letter-spacing: .14em;
  color: #D8CCBC !important;
  margin: 0 0 20px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  max-width: 24em !important;
}
.en .footer-motto {
  font-family: "Didot", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: .01em;
}

.footer-reg {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: #6E665D;
  letter-spacing: .01em;
}

/* ---------- Mobile bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  font-size: 11px;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a strong { font-size: 13px; font-family: var(--ff-sans); font-weight: 600; color: var(--ink); }
.mobile-bar .is-primary { background: var(--accent); color: #fff; }
.mobile-bar .is-primary strong { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; }
.will-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.will-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --pad-x: 28px; --sp-section: 80px; }
  .hero__grid { gap: 44px; }
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--tall { grid-row: span 1; }
  .products, .products--5 { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .cta-band__inner { gap: 40px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 20px; --sp-section: 64px; --sp-section-sm: 48px; }

  .nav { height: 64px; gap: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; order: 3; }
  .nav-actions { margin-left: 0; order: 2; gap: 12px; }
  .nav-actions .btn { display: none; }
  .lang-switch { font-size: 12.5px; }

  .hero { padding-top: 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__visual { aspect-ratio: 5 / 4; order: -1; }
  .hero__visual img { padding: 4% 0; }
  .hero__cta { margin-bottom: 32px; }
  .hero__cta .btn { flex: 1; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat { padding: 22px 18px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .section-head { margin-bottom: 34px; }
  .section-head--row { grid-template-columns: 1fr; align-items: start; gap: 20px; }

  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }
  .bento__item { min-height: 0; padding: 26px 22px; }

  .products, .products--5 { grid-template-columns: repeat(2, 1fr); }
  .product { padding: 18px 14px 16px; }

  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 22px 0; display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; }
  .step:not(:first-child) { padding-left: 0; }
  .step__no { grid-row: span 2; font-size: 1.6rem; margin: 0; }

  .gallery, .gallery--wide { grid-template-columns: 1fr 1fr; }
  .gallery--wide figure:first-child { grid-column: 1 / -1; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 22px; }

  .pagehead { padding-top: 36px; }
  .pagehead__inner { grid-template-columns: 1fr; gap: 26px; padding-bottom: 34px; align-items: start; }

  .cta-band__inner { grid-template-columns: 1fr; gap: 30px; padding: 56px 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid--solo { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 90px 1fr; gap: 12px; font-size: 14px; }
  .contact-list li.contact-qr { grid-template-columns: 1fr; gap: 10px; }
  .contact-qr .v { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-qr__hint { max-width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 52px 0 96px; }

  .mobile-bar { display: flex; }
  .table-wrap { margin: 0 calc(var(--pad-x) * -1); padding: 0 var(--pad-x); }
}

@media (max-width: 520px) {
  .products { grid-template-columns: 1fr 1fr; }
  .gallery, .gallery--wide { grid-template-columns: 1fr; }
  .hero__meta { gap: 12px 20px; font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   获取报价 · 微信二维码弹窗 + RFQ 页二维码区块
   ============================================================ */
button.btn { font-family: inherit; }
button.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

body.is-modal-open { overflow: hidden; }

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.quote-modal[hidden] { display: none; }
.quote-modal.is-open { opacity: 1; }

.quote-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.quote-modal__panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 46px;
  transform: translateY(10px) scale(.985);
  transition: transform .26s var(--ease);
}
.quote-modal.is-open .quote-modal__panel { transform: none; }

.quote-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.quote-modal__close:hover { background: var(--line); color: var(--ink); }
.quote-modal__close:focus { outline: none; }
.quote-modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.quote-modal__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.quote-modal__fig { text-align: center; }
.quote-modal__fig img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.quote-modal__alt {
  display: block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.quote-modal__copy .eyebrow { display: block; margin-bottom: 14px; }
.quote-modal__copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.92rem);
  line-height: 1.28;
  margin-bottom: 18px;
}
.quote-modal__copy > p:not(.quote-modal__tel) {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.quote-modal__list { list-style: none; margin: 0 0 22px; padding: 0; }
.quote-modal__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.62;
}
.quote-modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.quote-modal__tel {
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
.quote-modal__tel strong { color: var(--ink); font-weight: 600; }
.quote-modal__wx { font-size: 12.5px; color: var(--muted); }

/* RFQ 页：二维码区块 */
.qr-block {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.qr-block__fig { text-align: center; }
.qr-block__frame {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--white);
}
.qr-block__frame img { width: 100%; height: auto; display: block; }
.qr-block__hint {
  display: block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.qr-block__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 26px;
}
.qr-block__dl { margin: 0; }
.qr-block__row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.qr-block__row dt {
  flex: 0 0 104px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.qr-block__row dd { flex: 1; margin: 0; color: var(--ink); }
.qr-block__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .quote-modal { padding: 14px; }
  .quote-modal__panel { padding: 30px 22px 26px; max-height: calc(100vh - 28px); }
  .quote-modal__grid { grid-template-columns: 1fr; gap: 24px; }
  .quote-modal__fig img { max-width: 240px; }
  .quote-modal__alt { margin-top: 10px; }
  .quote-modal__copy h2 { font-size: 1.35rem; }
  .qr-block { grid-template-columns: 1fr; gap: 32px; }
  .qr-block__frame { max-width: 260px; margin: 0 auto; }
  .qr-block__row dt { flex: 0 0 84px; }
}
