/* ============================================================
   YuanCheng Textile — 外贸展示官网样式（外观控制文件）
   ------------------------------------------------------------
   【本文件管什么】网页的颜色、字体、大小、间距、动画，都在这里改。
   【最常用的修改】
   · 换网站主色调：改下面 :root 里的 --camel（强调色）和 --ivory（背景色）等颜色值
   · 换中文字体/英文字体：改 --font-display / --font-body 的字体名
   · 产品一排放几个：搜「产品」区块，改 .product-grid 的 grid-template-columns
   · 产品图片形状：改 .product-media 的 aspect-ratio（1/1 正方形，4/3 扁一点）
   · 段落间距、留白：改 .section 的 padding（数字越大留白越多）
   · 手机端单独调整：文件底部 @media 三处，分别管平板/手机宽度下的样式
   ============================================================ */

:root {
  /* ======== 颜色变量（改这里 = 改全站颜色） ======== */
  --ink: #1e2a27;        /* 深松绿黑：页脚 / 深色区 / 主文字 */
  --pine: #2f4a41;       /* 深松绿：次级强调 */
  --camel: #c09a5b;      /* 驼金：全站唯一的强调色（按钮、图标、装饰线） */
  --camel-deep: #a57f43; /* 驼金加深：按钮悬停时用 */
  --ivory: #f5efe3;      /* 暖象牙：页面背景 */
  --paper: #fcfaf4;      /* 卡片 / 浅色块背景 */
  --char: #26271f;       /* 浅色背景上的正文文字色 */
  --stone: #6b6c60;      /* 次要文字（说明、注释类文字） */
  --line: rgba(38, 39, 31, 0.14);        /* 浅色区的分隔线颜色 */
  --line-light: rgba(245, 239, 227, 0.22); /* 深色区的分隔线颜色 */

  /* ======== 字体变量 ======== */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; /* 标题用的衬线字体 */
  --font-body: 'Noto Sans SC', system-ui, 'Segoe UI', 'Helvetica Neue', sans-serif; /* 正文用的字体 */

  --header-h: 76px;  /* 顶部导航栏高度（一般不用改） */
  --radius: 2px;     /* 圆角大小：0 直角，4 略圆，8 更圆 */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--char);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-accent { background: var(--camel); color: #fff; }
.btn-accent:hover { background: var(--camel-deep); }
.btn-ghost { border-color: rgba(245, 239, 227, 0.7); color: var(--ivory); }
.btn-ghost:hover { background: rgba(245, 239, 227, 0.12); }
.btn-outline { border-color: var(--char); color: var(--char); }
.btn-outline:hover { background: var(--char); color: var(--ivory); }
.btn-block { width: 100%; }

/* ---------- 章节通用 ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; }
.section-sub { margin-top: 14px; color: var(--stone); font-size: 15.5px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--camel);
}
.eyebrow-light { color: #d9b98a; }

/* 梭织线签名元素：两股交错的纱线 */
.weave {
  display: block;
  width: 240px;
  height: 14px;
  margin: 18px auto 22px;
}
.weave .wa { stroke: var(--camel); }
.weave .wb { stroke: var(--char); opacity: 0.35; }
.weave path { fill: none; stroke-width: 2; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: var(--ivory); box-shadow: 0 6px 24px rgba(30, 42, 39, 0.08); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 54px; height: 54px; object-fit: contain; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand-sub { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--char);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--camel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.locale-control { margin-left: 4px; }
.locale-control select { min-width: 66px; padding: 8px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--char); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.locale-control select:focus { outline: 2px solid rgba(192,154,91,.35); border-color: var(--camel); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--char);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 88svh, 820px);
  height: clamp(620px, 88svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ivory);
  background: var(--ink);
  overflow: hidden;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(22, 30, 27, 0.78) 0%, rgba(22, 30, 27, 0.55) 55%, rgba(22, 30, 27, 0.28) 100%);
}
.hero-content { position: relative; padding: 120px 0 96px; max-width: 720px; margin-inline: auto 0; }
.hero-title {
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 600;
  line-height: 1.1;
  margin-top: 18px;
}
.hero-lead { margin-top: 20px; font-size: 17px; font-weight: 300; color: rgba(245, 239, 227, 0.85); max-width: 560px; }
.hero-actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-strip {
  position: relative;
  background: rgba(22, 30, 27, 0.55);
  border-top: 1px solid rgba(245, 239, 227, 0.16);
  backdrop-filter: blur(6px);
}
.strip-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.9);
}
.strip-inner span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--camel);
  vertical-align: 2px;
}

/* ---------- 关于 ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media > .image-carousel {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(30, 42, 39, 0.18);
}
.about-copy .weave { margin-inline: 0; }
.about-copy h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; margin-bottom: 18px; }
.about-text { color: var(--stone); font-size: 16px; }
.about-list { margin-top: 24px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--char); }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 2px;
  background: var(--camel);
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--pine);
  background: var(--paper);
}

/* 工厂关键数据 */
.about-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--camel-deep);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.market-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.market-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--camel-deep);
  margin-right: 4px;
}

/* ---------- 产品区 ----------
   【产品一排几个？】改下面 grid-template-columns 的数字：
     4  = 一排 4 个（当前，8 个产品正好 2 排）
     3  = 一排 3 个（更大气，但 8 个产品会变成 3+3+2 不对称）
     2  = 一排 2 个
   【产品图形状】改 .product-media 的 aspect-ratio：
     1 / 1 = 正方形（当前桌面端）
     5 / 4 = 略扁（当前手机端）
     4 / 3 = 更扁
   ------------------------------------------------ */
.products { background: var(--paper); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(30, 42, 39, 0.14); }
.category-card {
  position: relative;
  display: flex;
  min-height: 250px;
  aspect-ratio: 4 / 3;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pine);
  color: var(--ivory);
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(17, 27, 23, .78)); }
.category-card span { position: relative; z-index: 1; padding: 24px; font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.category-card:hover img { transform: scale(1.05); }
.category-card:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  background: rgba(245, 239, 227, 0.94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  border-radius: 999px;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.product-body p { margin-top: 6px; font-size: 13.5px; color: var(--stone); flex: 1; }
.product-meta { margin-top: 12px; font-size: 12px; color: var(--camel-deep); letter-spacing: 0.03em; }
.card-quote {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pine);
}
.card-quote::after { content: "→"; transition: transform 0.2s ease; }
.card-quote:hover::after { transform: translateX(4px); }

/* Shared image galleries for homepage and product detail pages. */
.image-carousel { position: relative; overflow: hidden; background: #d9d4ca; }
.hero.hero .hero-carousel { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(24, 34, 30, .54);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.carousel-arrow:hover { background: rgba(24, 34, 30, .82); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; z-index: 4; right: 0; bottom: 14px; left: 0; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dot.is-active { background: #fff; }
.hero-carousel .carousel-slide { object-position: center 42%; }
.hero-carousel .carousel-slide:nth-child(2) { object-position: 72% center; }
.hero-carousel .carousel-slide:nth-child(3) { object-position: 68% center; }
.hero-carousel .carousel-dots { bottom: 88px; }

/* Product collection pages. */
.category-hero { background: var(--ink); color: var(--ivory); }
.category-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; min-height: 510px; padding-block: 66px; }
.category-hero-copy h1 { margin-top: 12px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.category-hero-copy p:not(.eyebrow) { max-width: 540px; margin-top: 18px; color: rgba(245,239,227,.78); }
.category-hero .image-carousel { aspect-ratio: 4 / 3; width: 100%; }
.breadcrumbs { margin-bottom: 26px; color: rgba(245,239,227,.66); font-size: 13px; }
.breadcrumbs a { color: #e4c48f; }
.category-products { background: var(--paper); }
.category-products .section-head { margin-bottom: 34px; }
.detail-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.detail-product .image-carousel { width: 100%; aspect-ratio: 4 / 3; }
.detail-product-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.detail-product-copy .product-tag { position: static; display: inline-block; width: fit-content; padding: 0; background: none; color: var(--camel-deep); }
.detail-product-copy h3 { margin-top: 8px; font-family: var(--font-display); font-size: 23px; }
.detail-product-copy p { margin-top: 7px; color: var(--stone); font-size: 14px; }
.detail-product-copy .product-meta { margin-top: 14px; }
.detail-product-copy .card-quote { margin-top: auto; padding-top: 16px; }
.empty-products { padding: 44px 24px; border-block: 1px solid var(--line); color: var(--stone); text-align: center; }
.category-contact { padding: 46px 0; background: var(--ivory); }
.category-contact .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

/* ---------- 材质与质检 ---------- */
.quality {
  background: var(--ink);
  color: var(--ivory);
}
.quality .section-head h2 { color: var(--ivory); }
.quality .weave { margin-bottom: 30px; }
.quality .weave .wb { stroke: rgba(245, 239, 227, 0.5); }

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.quality-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.material-list { display: grid; gap: 26px; }
.material-item { border-left: 2px solid var(--camel); padding-left: 20px; }
.material-item h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #e8dcc4; }
.material-item p { margin-top: 6px; font-size: 14.5px; color: rgba(245, 239, 227, 0.72); }

.qc-steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: qc;
}
.qc-step { border-top: 1px solid var(--line-light); padding-top: 20px; }
.qc-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--camel);
  line-height: 1;
}
.qc-step h3 { margin-top: 14px; font-size: 17px; color: #e8dcc4; }
.qc-step p { margin-top: 8px; font-size: 13.5px; color: rgba(245, 239, 227, 0.68); }

/* ---------- 为什么选我们 ---------- */
.why { background: var(--ivory); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(30, 42, 39, 0.12); }
.why-icon { width: 40px; height: 40px; margin: 0 auto 18px; color: var(--camel); }
.why-card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.why-card p { margin-top: 10px; font-size: 14px; color: var(--stone); }

.certs-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.cert-item {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pine);
}

/* ---------- 联系 / 询盘 ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .weave { margin-inline: 0; }
.contact-info h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; margin-bottom: 14px; }
.contact-lead { color: var(--stone); font-size: 16px; }

.contact-list { margin-top: 32px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 24px; height: 24px; color: var(--camel); flex: none; margin-top: 2px; }
.contact-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.contact-list a, .contact-list span { font-size: 16px; color: var(--char); }
.contact-list a:hover { color: var(--camel-deep); }

.contact-form-wrap {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 20px 50px rgba(30, 42, 39, 0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--char); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--char);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--camel);
  box-shadow: 0 0 0 3px rgba(192, 154, 91, 0.18);
}
.form-field input.is-invalid { border-color: #b34a3f; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--stone); text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(245, 239, 227, 0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding: 60px 0 48px;
}
.brand-footer { color: var(--ivory); }
.brand-footer .brand-sub { color: rgba(245, 239, 227, 0.55); }
.footer-brand p { margin-top: 18px; font-size: 14px; max-width: 320px; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(245, 239, 227, 0.75); }
.footer-col a:hover { color: var(--camel); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; color: var(--ivory); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.social-link:hover { border-color: var(--camel); background: rgba(192,154,91,.18); color: #fff; }
.social-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social-link[data-network="tiktok"] svg { stroke-width: 1.5; }
.social-link.is-hidden { display: none; }
.footer-bottom { border-top: 1px solid var(--line-light); }
.footer-bottom .container { padding: 20px 0; font-size: 13px; color: rgba(245, 239, 227, 0.5); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 焦点可见性 ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--camel);
  outline-offset: 3px;
}

/* ---------- 响应式（手机/平板适配，一般不用改） ----------
   三段分别对应：
   · 小于 1024px（平板）→ 产品 3 列、优势 2 列
   · 小于 820px（手机横屏/大手机）→ 产品 2 列、图片变扁
   · 小于 560px（普通手机）→ 全部 1 列、留白再缩小
   ------------------------------------------------ */
@media (max-width: 1024px) {
  .about-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(30, 42, 39, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .locale-control { margin-left: auto; }
  .hero { min-height: 680px; height: min(88svh, 760px); }
  .hero-content { padding: 112px 0 86px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(22, 30, 27, 0.66) 0%, rgba(22, 30, 27, 0.55) 48%, rgba(22, 30, 27, 0.78) 100%); }
  .hero-carousel .carousel-slide:nth-child(2) { object-position: 78% center; }
  .hero-carousel .carousel-slide:nth-child(3) { object-position: 72% center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-media { aspect-ratio: 5 / 4; }
  .category-hero .container { grid-template-columns: 1fr; gap: 28px; padding-block: 38px; }
  .category-hero-copy h1 { font-size: 38px; }
  .hero-carousel .carousel-dots { bottom: 26px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .container { width: min(1180px, 100% - 36px); }
  .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 210px; }
  .detail-product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .qc-steps { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 18px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .brand-mark { width: 48px; height: 48px; }
  .category-contact .container { align-items: flex-start; flex-direction: column; }
  .strip-inner { justify-content: flex-start; }
  .hero { min-height: 650px; height: 84svh; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .hero-lead { font-size: 15px; }
  .hero-carousel .carousel-slide { object-position: 50% center; }
  .hero-carousel .carousel-slide:nth-child(2) { object-position: 80% center; }
  .hero-carousel .carousel-slide:nth-child(3) { object-position: 72% center; }
  .hero-strip { display: none; }
}

/* Arabic presentation: keep controls and lists readable when the page is RTL. */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .main-nav, html[dir="rtl"] .header-inner { direction: rtl; }
html[dir="rtl"] .hero-content { margin-inline: 0 auto; }
html[dir="rtl"] .hero-overlay { background: linear-gradient(260deg, rgba(22, 30, 27, 0.78) 0%, rgba(22, 30, 27, 0.55) 55%, rgba(22, 30, 27, 0.28) 100%); }
html[dir="rtl"] .about-list li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .about-list li::before { left: auto; right: 0; }
html[dir="rtl"] .material-item { border-left: 0; border-right: 2px solid var(--camel); padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .contact-list li { flex-direction: row-reverse; }
html[dir="rtl"] .carousel-prev { left: auto; right: 14px; }
html[dir="rtl"] .carousel-next { right: auto; left: 14px; }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product-card, .why-card { transition: none; }
  .product-media img, .card-quote::after { transition: none; }
}
