/* ============================================================
   佑兴 YUXING · 纺织品企业官网
   高级简约 / ivory & ink / design tokens
   ============================================================ */

:root {
  --paper: #f6f3ee;
  --paper-deep: #efeae2;
  --card: #ffffff;
  --ink: #211d19;
  --ink-soft: #6f665b;
  --ink-faint: #9c9287;
  --line: #e2dbd0;
  --accent: #9c6b43;
  --accent-deep: #7c5334;
  --dark: #24201c;
  --dark-soft: #3a342e;

  --serif: Georgia, "Times New Roman", "STZhongsong", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* 防止 iOS 横竖屏切换时字号被放大 */
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* 兜底：任何元素都不产生横向滚动 */
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
/* WebP 的 <picture> 只是取源容器，不参与盒模型，保证原有布局零改动 */
picture { display: contents; }
input, select, textarea { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 排版 ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 34em;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

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

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

.btn-ghost-light {
  background: transparent;
  border-color: rgba(246, 243, 238, 0.6);
  color: var(--paper);
}
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.text-link:hover { border-color: var(--accent); }
.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .header-inner { height: 62px; }
.site-header.on-dark:not(.scrolled) { color: var(--paper); }

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.wordmark .en {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.55;
  font-family: var(--sans);
}

.main-nav ul { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); }
/* 导航下拉（产品分类） */
.main-nav li { position: relative; }
.main-nav .sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 10.5em;
  padding: 0.7rem 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(30, 24, 18, 0.16);
  border: 1px solid rgba(30, 24, 18, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 90;
}
.main-nav .sub-nav li { width: 100%; }
.main-nav .sub-nav a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.85;
}
.main-nav .sub-nav a:hover { opacity: 1; background: rgba(30, 24, 18, 0.05); }
.main-nav .sub-nav a::after { display: none; }
.main-nav li.has-sub:hover .sub-nav,
.main-nav li.has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 6px);
}
/* 悬停热区桥：避免移动到下拉途中菜单消失 */
.main-nav li.has-sub::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}
.main-nav a {
  position: relative;
  font-size: var(--nav-fs, 0.88rem);
  letter-spacing: var(--nav-ls, 0.08em);
  padding: 0.4rem 0;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools { display: flex; align-items: center; gap: 1.1rem; }

/* 语言下拉（6 语） */
.lang-menu { position: relative; }

.lang-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  padding: 0.32rem 0.72rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.3s, background 0.3s, color 0.3s;
}
.lang-menu-btn:hover { opacity: 0.78; }
.lang-globe { font-size: 0.85rem; line-height: 1; opacity: 0.75; }
.lang-caret { font-size: 0.58rem; opacity: 0.6; transition: transform 0.25s; }
.lang-menu.open .lang-caret { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 60;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }

.lang-list button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem 0.58rem;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.lang-list button:hover { background: rgba(0, 0, 0, 0.055); }
.lang-list button.active { background: var(--ink); color: var(--paper); }
.lang-list .lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.08);
}
.lang-list button.active .lg { background: rgba(255, 255, 255, 0.2); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 880px);   /* 老浏览器回退 */
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(30, 26, 22, 0.05) 30%, rgba(30, 26, 22, 0.55) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(4rem, 9vh, 7rem);
}
.hero .kicker { color: var(--paper); }
.hero .kicker::before { background: var(--paper); }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.8rem);
  max-width: 14em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 30px rgba(30, 26, 22, 0.25);
}
.hero p {
  max-width: 30em;
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-page {
  min-height: 56vh;
  align-items: flex-end;
}
.hero-page h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero-page p { margin-bottom: 0; }

/* 支持动态视口的浏览器：用 svh，避免手机地址栏收缩导致 hero 跳动 */
@supports (height: 100svh) {
  .hero { min-height: min(92svh, 880px); }
  .hero-page { min-height: min(56svh, 620px); }
}

/* ---------- 区块 ---------- */

.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.62) 0; }
.section-deep { background: var(--paper-deep); }
.section-dark {
  background: var(--dark);
  color: var(--paper);
}
.section-dark .lead { color: rgba(246, 243, 238, 0.72); }
.section-dark .kicker { color: #d8a878; }
.section-dark .kicker::before { background: #d8a878; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.8rem);
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }

/* 品牌引言 */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.intro-grid .big-serif {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.5;
  font-weight: 600;
}
.intro-grid .big-serif em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- 产品 ---------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.collection-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
}
.collection-card.tall { grid-column: span 7; }
.collection-card.wide { grid-column: span 5; }
.collection-card.full { grid-column: span 12; }
.collection-card .media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.collection-card.tall .media { aspect-ratio: 4 / 3.4; }
.collection-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.collection-card:hover .media img { transform: scale(1.045); }
.collection-card .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.2rem 0;
}
.collection-card .meta h3 { font-size: 1.18rem; }
.collection-card .meta .en {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.collection-card .spec {
  padding: 0.1rem 0.2rem 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* 产品列表页 */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.filter-bar button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease);
}
.filter-bar button:hover { border-color: var(--ink); color: var(--ink); }
.filter-bar button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 2.4vw, 2rem);
}
.product-card { animation: fadeIn 0.5s var(--ease) both; }
.product-card .media { display: block; }   /* 行内 a 包块级 img 会使卡片高度漏算文字区 */
.product-card.hide { display: none; }
.product-card .media {
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--paper-deep);
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.product-card:hover .media img { transform: scale(1.05); }
.product-card .cat {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-card h3 { margin-top: 0.35rem; font-size: 1.15rem; }
.product-card .spec { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.15rem; }
.product-card .more {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.product-card .more:hover { border-color: var(--accent); color: var(--accent); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 工艺/步骤 ---------- */

.craft-band {
  position: relative;
  overflow: hidden;
}
.craft-band .bg {
  position: absolute;
  inset: 0;
}
.craft-band .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.craft-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 24, 20, 0.82) 0%, rgba(28, 24, 20, 0.45) 60%, rgba(28, 24, 20, 0.2) 100%);
}
.craft-band .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  color: var(--paper);
  max-width: 720px;
}
.craft-band .kicker { color: #e2b68a; }
.craft-band .kicker::before { background: #e2b68a; }
.craft-band .lead { color: rgba(246, 243, 238, 0.8); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 3rem;
}
.step .no {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: #e2b68a;
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: rgba(246, 243, 238, 0.72); }

/* ---------- 数据 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}
.stat .num sup { font-size: 0.45em; }
.stat .label {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.section-dark .stat .label { color: rgba(246, 243, 238, 0.55); }

/* ---------- 资讯 ---------- */

.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: baseline;
  padding: 1.7rem 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.news-item:hover { background: rgba(255, 255, 255, 0.6); }
.news-item .date {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.news-item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  font-family: var(--sans);
  line-height: 1.5;
}
.news-item .excerpt {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.news-item .tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

/* ---------- 图文两栏 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split .media { overflow: hidden; }
.split .media img {
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.split .media:hover img { transform: scale(1.03); }
.split.reverse .media { order: 2; }
.split .body .lead { margin-bottom: 1.6rem; }
.split .body .text-list { margin-top: 1.2rem; }
.text-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.text-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.28rem;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- 双栏文字块 ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.duo .text-list { margin-top: 0; }
.duo-block h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.duo-block p { font-size: 0.94rem; color: var(--ink-soft); }
.section-dark .duo-block p { color: rgba(246, 243, 238, 0.7); }
.duo-block .kicker { margin-bottom: 1rem; }

/* ---------- 三栏 ---------- */

.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
}
.triple .no {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.triple h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.triple p { font-size: 0.94rem; color: var(--ink-soft); }

/* 时间线 */
.timeline { border-left: 1px solid var(--line); margin-left: 0.4rem; }
.timeline .tl-item {
  position: relative;
  padding: 0 0 2rem 2.2rem;
}
.timeline .tl-item:last-child { padding-bottom: 0; }
.timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline .year {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
}
.timeline h4 { font-size: 1rem; margin: 0.25rem 0 0.2rem; font-weight: 600; }
.timeline p { font-size: 0.9rem; color: var(--ink-soft); }

/* 认证徽标 */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(246, 243, 238, 0.28);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(246, 243, 238, 0.85);
}
.cert-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8a878;
}
.section-light-certs .cert-badge {
  border-color: var(--line);
  color: var(--ink-soft);
}
.section-light-certs .cert-badge .dot { background: var(--accent); }

/* ---------- CTA ---------- */

.cta-band {
  background: var(--dark);
  color: var(--paper);
  text-align: center;
}
.cta-band .kicker { justify-content: center; color: #d8a878; }
.cta-band .kicker::before { background: #d8a878; }
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(246, 243, 238, 0.7);
  max-width: 36em;
  margin: 0 auto 2.2rem;
}
.cta-band .hero-actions { justify-content: center; }

/* ---------- 联系/表单 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  margin-top: 2rem;
}
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info p, .contact-info a { font-size: 0.95rem; color: var(--ink-soft); }
.contact-info a:hover { color: var(--accent); }
.hours { font-variant-numeric: tabular-nums; }

.inquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.inquiry-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.inquiry-form label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.inquiry-form label .req { color: var(--accent); }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.1rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.inquiry-form select { cursor: pointer; }
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus { border-color: var(--ink); }
.inquiry-form .field.error input,
.inquiry-form .field.error textarea { border-color: #b4543e; }
.inquiry-form .err-msg {
  font-size: 0.76rem;
  color: #b4543e;
  margin-top: 0.35rem;
  display: none;
}
.inquiry-form .field.error .err-msg { display: block; }
.inquiry-form textarea { resize: vertical; min-height: 110px; }

.form-success {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1.6rem 1.8rem;
  margin-top: 1.4rem;
}
.form-success.show { display: block; animation: fadeIn 0.5s var(--ease); }
.form-success h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.3rem; }
.form-success p { font-size: 0.9rem; color: var(--ink-soft); }

/* 地图占位 */
.map-note {
  border: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 1.1rem 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 2.4rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.map-note .dot { color: var(--accent); line-height: 1.75; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(246, 243, 238, 0.75);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 243, 238, 0.12);
}
.footer-grid .wordmark { color: var(--paper); }
.footer-brand p {
  margin-top: 1rem;
  max-width: 24em;
  color: rgba(246, 243, 238, 0.55);
  font-size: 0.86rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.45);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--paper); }

/* 页脚：社交外链 + 邮件订阅 */
.footer-follow .sub-title { margin-top: 1.8rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(246, 243, 238, 0.08);
  color: rgba(246, 243, 238, 0.8);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover {
  background: var(--paper);
  color: var(--dark);
  transform: translateY(-2px);
}
.sub-form { display: flex; }
.sub-form input {
  flex: 1;
  min-width: 0;
  background: rgba(246, 243, 238, 0.08);
  border: 1px solid rgba(246, 243, 238, 0.18);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
}
.sub-form input::placeholder { color: rgba(246, 243, 238, 0.4); }
.sub-form input:focus { outline: none; border-color: rgba(246, 243, 238, 0.45); }
.sub-form button {
  background: var(--paper);
  color: var(--dark);
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.sub-form button:hover { background: var(--accent); }
.sub-msg { margin-top: 0.6rem; font-size: 0.8rem; color: rgba(246, 243, 238, 0.75); }
.sub-msg.ok { color: #9fd6a8; }
.sub-msg.err { color: #e2a3a3; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.78rem;
  color: rgba(246, 243, 238, 0.4);
}

/* ---------- 页面入场动效 ---------- */

/* 仅在 JS 正常运行时才隐藏待入场元素；JS 失效则内容直接可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

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

/* ---------- 语言与状态补丁 ---------- */

html[lang="en"] .collection-card .meta .en,
html[lang="es"] .collection-card .meta .en,
html[lang="pt"] .collection-card .meta .en,
html[lang="fr"] .collection-card .meta .en,
html[lang="ar"] .collection-card .meta .en { display: none; }
html[lang="en"] .hero h1,
html[lang="es"] .hero h1,
html[lang="pt"] .hero h1,
html[lang="fr"] .hero h1,
html[lang="ar"] .hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: 0.005em; }
html[lang="en"] .big-serif,
html[lang="es"] .big-serif,
html[lang="pt"] .big-serif,
html[lang="fr"] .big-serif,
html[lang="ar"] .big-serif { letter-spacing: 0; }
.collection-card { display: block; }
.site-header.nav-active { color: var(--ink); }
.site-header.nav-active .lang-menu-btn { border-color: var(--ink); }

/* ---------- 无障碍与产品详情 ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 999;
  font-size: 0.85rem;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page-top { padding-top: 76px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.pd-media img { width: 100%; height: auto; }

/* ---------- 产品相册 + 放大镜 ---------- */
.pd-stage { position: relative; overflow: hidden; border-radius: 10px; background: var(--paper-deep); }
.pd-stage:hover { cursor: zoom-in; }
.pd-slide { display: none; margin: 0; }
.pd-slide.active { display: block; }
.pd-slide img { width: 100%; height: auto; }
.pd-lens {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(36, 32, 28, 0.12), 0 2px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 5;
}
.pd-zoom {
  position: absolute;
  inset: 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: 240%;
  pointer-events: none;
  z-index: 3;
}
.pd-zoomhint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.pd-stage:hover .pd-zoomhint { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .pd-lens, .pd-zoom, .pd-zoomhint { display: none !important; }
}
.pd-thumbs { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pd-thumblist {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: thin;
  padding: 4px 2px;
}
.pd-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.pd-thumb img { width: 72px; height: 84px; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--accent); }
.pd-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pd-arrow:hover { color: var(--accent); border-color: var(--accent); }
.pd-info .cat {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.pd-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0.5rem 0 0.9rem; }
.pd-spec { color: var(--ink-soft); font-size: 0.95rem; }
.pd-desc { margin-top: 1.6rem; color: var(--ink-soft); line-height: 1.95; }
.spec-table { margin-top: 2rem; border-top: 1px solid var(--line); }
.spec-table > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-table dt { color: var(--ink-faint); }
.spec-table dd { margin: 0; }
.pd-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

.product-card h3 a:hover { color: var(--accent); }

.star-badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: #b98a2f;
  color: #fff;
  font-size: 0.68em;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

/* ---------- 响应式 ---------- */

/* ============================================================
   多终端适配
   大屏 ≥1600 / 桌面 1181–1599 / 小笔记本 1025–1180 /
   平板 ≤1024 / 平板竖屏·大屏手机 ≤767 / 手机 ≤560 / 小屏 ≤380
   另含：横屏矮屏、触屏（hover:none）、刘海安全区
   ============================================================ */

/* ---------- 超大屏：放宽内容区，避免两侧过空 ---------- */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  body { font-size: 17px; }
}
@media (min-width: 1920px) {
  .hero { min-height: min(88vh, 940px); }
}

/* ---------- 小笔记本 / 横屏平板：产品三列改两列 ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 1.4rem; }
}

/* ---------- 平板及以下：导航收进抽屉 ---------- */
@media (max-width: 1024px) {
  .site-header .header-inner { height: 66px; }
  .wordmark { font-size: 1.16rem; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.05rem;
    font-size: 1.24rem;
  }
  .main-nav a { display: block; font-size: 1.18rem; opacity: 1; padding: 0.5rem 0; }
  /* 下拉在抽屉内改为缩进列表 */
  .main-nav .sub-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.35rem 0 0;
    min-width: 0;
    gap: 0.55rem;
  }
  .main-nav .sub-nav a { font-size: 0.94rem; opacity: 0.62; padding: 0.15rem 0; }
  .main-nav li.has-sub::after { display: none; }
  .burger { display: flex; position: relative; z-index: 120; }
  body.nav-open { overflow: hidden; }

  .collection-card.tall, .collection-card.wide { grid-column: span 12; }
  .intro-grid, .split, .contact-grid, .duo, .triple, .pd-grid { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }

  /* 触屏可用性：44px 点按区 + 输入框 16px（防 iOS 聚焦自动放大） */
  .btn,
  .filter-bar button,
  .lang-menu-btn,
  .hero-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .lang-list button { min-height: 44px; }
  .inquiry-form input,
  .inquiry-form select,
  .inquiry-form textarea { font-size: 16px; }
  .inquiry-form textarea { min-height: 130px; }
}

/* ---------- 平板竖屏 / 大屏手机 ---------- */
@media (max-width: 767px) {
  :root { --section-y: clamp(3rem, 10vw, 4.5rem); }

  .hero { min-height: min(78vh, 600px); }
  .hero .container { padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(1.95rem, 8.2vw, 2.8rem); margin-bottom: 1.1rem; }
  .hero p { font-size: 0.98rem; margin-bottom: 1.7rem; }
  .hero-page { min-height: 40vh; }

  .section-head { gap: 1.2rem; margin-bottom: 2rem; }
  .section-head .lead { max-width: none !important; }

  /* 筛选栏：单行横向滑动，避免换行后按钮参差 */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.55rem;
    margin-bottom: 2rem;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex: 0 0 auto; padding: 0.5rem 1.1rem; }

  .product-grid { gap: 1.3rem 1rem; }
  .news-item { grid-template-columns: 78px 1fr auto; gap: 1rem; }
  .cert-row { gap: 0.5rem; }
}

/* ---------- 手机 ---------- */
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .inquiry-form .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .news-item .tag { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: min(74vh, 540px); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .hero-actions .btn,
  .hero-actions a { width: 100%; }
  .stats { gap: 1.8rem 1rem; }
  .stat .num { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .spec-table > div { padding: 0.75rem 0; }
  .pd-info h1 { font-size: 1.55rem; }
  /* 抽屉里链接过密时保证可滚动 */
  .main-nav ul { gap: 0.8rem; }
  .main-nav a { font-size: 1.1rem; }
}

/* ---------- 小屏手机（iPhone SE / 老安卓） ---------- */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .hero h1 { font-size: 1.72rem; }
  .wordmark { font-size: 1.02rem; }
  .wordmark .en { letter-spacing: 0.28em; font-size: 0.62rem; }
  .filter-bar button { font-size: 0.76rem; padding: 0.45rem 0.9rem; }
  .section-title { font-size: 1.55rem; }
  .product-card .media { aspect-ratio: 4 / 4.2; }
}

/* ---------- 横屏矮屏（手机横放 / 小窗口） ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 340px; }
  .hero .container { padding-bottom: 2.2rem; }
  .hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
  .hero p { margin-bottom: 1.2rem; }
  .hero-page { min-height: 300px; }
  .main-nav { align-items: flex-start; padding-top: 4rem; }
  .main-nav ul { gap: 0.65rem; }
}

/* ---------- 触屏设备：取消依赖悬停的位移/缩放 ---------- */
@media (hover: none) {
  .collection-card:hover .media img,
  .product-card:hover .media img,
  .news-item:hover { transform: none; }
}

/* ---------- 折叠屏 / 超宽窄比例兜底 ---------- */
@media (max-width: 300px) {
  .hero h1 { font-size: 1.5rem; }
  .btn { padding-left: 1rem; padding-right: 1rem; }
}



/* ---------- RTL：阿拉伯语（中东） ---------- */
html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", "Arial", sans-serif;
  letter-spacing: 0;
}
/* 阿拉伯文不能加字距（会切断连写） */
html[lang="ar"] * { letter-spacing: normal !important; }

html[dir="rtl"] .main-nav a::after { transform-origin: right; }
html[dir="rtl"] .lang-list { right: auto; left: 0; }
html[dir="rtl"] .lang-list button { text-align: right; }
html[dir="rtl"] .timeline {
  border-left: 0;
  border-right: 1px solid var(--line);
  margin-left: 0;
  margin-right: 0.4rem;
}
html[dir="rtl"] .timeline .tl-item { padding: 0 2.2rem 2rem 0; }
html[dir="rtl"] .star-badge { margin-left: 0; margin-right: 0.5em; }
html[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }
/* 箭头/方向性字符在 RTL 下镜像 */
html[dir="rtl"] .arrow,
html[dir="rtl"] .link-more span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
