/* ==========================================================
   INSULTRA · 官网
   设计语言：浅色通透 + 暖琥珀金（premium industrial）
   ========================================================== */
:root {
  --ink: #0E2A47;
  --ink-2: #16365C;
  --amber: #C8922E;
  --amber-bright: #DBA63F;
  --amber-tint: #F7EEDD;
  --text: #1F2D3D;
  --muted: #6B7889;
  --muted-2: #93A0B0;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --bg-tint: #EEF3F9;
  --border: #E6ECF3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
  --shadow-soft: 0 6px 18px rgba(14, 42, 71, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 30px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; letter-spacing: 0.4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(200, 146, 46, 0.32); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.6px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--amber-tint); transform: translateY(-2px); }
.btn-lg { height: 60px; padding: 0 42px; font-size: 17px; }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--ink); color: #C9D6E6; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { color: var(--amber); flex-shrink: 0; }
.topbar-item a:hover { color: #fff; }
.topbar-spacer { flex: 1; }
.topbar-item:last-child { color: var(--amber); letter-spacing: 0.6px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-cn { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: 2.2px; }
.brand-cn .wm-accent { color: var(--amber); }
.footer-wordmark { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 2.6px; }
.footer-wordmark .wm-accent { color: var(--amber); }
.brand-en { font-size: 8.5px; font-weight: 600; letter-spacing: 1px; color: var(--muted-2); }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; transition: color 0.2s ease; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--amber); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { height: 42px; padding: 0 20px; font-size: 14.5px; }

.lang-toggle {
  height: 42px; min-width: 54px; padding: 0 13px;
  border: 1.6px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
  cursor: pointer; font-family: var(--font);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: var(--amber); color: var(--amber); }
.lang-toggle:active { transform: translateY(1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: all 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏英雄区 ---------- */
.hero { background: linear-gradient(120deg, #F6F8FB 0%, #FFFFFF 55%, #EEF3F9 100%); padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--amber); margin-bottom: 18px; }
.hero-title { font-size: 58px; font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: 1px; }
html[lang="en"] .hero-title { font-size: 40px; letter-spacing: 0; }
.hero-en { font-size: 18px; font-weight: 500; color: var(--muted); margin-top: 14px; letter-spacing: 0.4px; }
.hero-desc { font-size: 15.5px; color: var(--muted); line-height: 1.95; margin-top: 22px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero-trust span { font-size: 13px; color: var(--muted); margin-top: 6px; }

.hero-visual { position: relative; }
.hero-panel {
  position: relative; background: var(--bg-tint);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-img {
  width: 100%; max-width: 340px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 18px; box-shadow: 0 20px 44px rgba(14, 42, 71, 0.20);
}
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.hero-chip .chip-k { font-size: 15px; font-weight: 800; color: var(--ink); }
.hero-chip .chip-v { font-size: 11px; color: var(--muted); }
.hero-chip--tl { top: 24px; left: -16px; }
.hero-chip--br { bottom: 24px; right: -16px; }

/* ---------- 数据带 ---------- */
.stats { background: var(--bg-soft); padding: 46px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 0 16px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 52px; background: var(--border);
}
.stat strong { display: block; font-size: 40px; font-weight: 800; color: var(--amber); line-height: 1.1; letter-spacing: 0.5px; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- 区块通用 ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; max-width: 780px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-en { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--amber); margin-bottom: 12px; }
.section-head h2 { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: 0.5px; }
.section-sub { font-size: 16px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.section-note {
  margin-top: 40px; background: var(--amber-tint); border: 1px solid #EBD9B8; border-radius: 12px;
  padding: 22px 24px; text-align: center;
  font-size: 15px; font-weight: 600; color: #8A6320;
}

/* ---------- 卡片通用 ---------- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #D7E0EC; }

/* ---------- 产品分组标题 ---------- */
.group-head {
  display: flex; align-items: baseline; gap: 16px;
  margin: 64px 0 26px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.group-head:first-of-type { margin-top: 0; }
.group-idx {
  font-size: 13px; font-weight: 800; color: #fff; background: var(--ink);
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transform: translateY(3px);
}
.group-head h3 { font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: 0.3px; }
.group-en { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted-2); margin-left: auto; }

/* ---------- 三大材质 ---------- */
.material-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.material-tile {
  position: relative; text-align: left; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 24px; cursor: pointer; font-family: var(--font);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.material-tile::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--amber-tint); opacity: 0.55; pointer-events: none;
}
.material-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D7E0EC; }
.material-tile:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.material-idx { position: relative; display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--amber); }
.material-tile h3 { position: relative; font-size: 23px; font-weight: 800; color: var(--ink); margin-top: 10px; letter-spacing: 0.4px; }
.material-en { position: relative; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted-2); margin-top: 4px; }
.material-desc { position: relative; font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 14px; }
.material-list { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.material-list li {
  font-size: 12px; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
}
.material-more { position: relative; display: inline-block; margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--amber); }

/* ---------- 产品筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1.4px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-chip:hover { border-color: var(--amber); color: var(--amber); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip .chip-n { font-size: 11.5px; opacity: 0.55; margin-left: 6px; font-weight: 700; }
.filter-chip.is-active .chip-n { opacity: 0.75; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; }
.product-card[hidden] { display: none; }
.card-img { position: relative; height: 190px; overflow: hidden; background: #FBFCFE; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(14, 42, 71, 0.86); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(2px);
}
.card-img--art { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #EFF4FA 0%, #F8F0DF 100%); }
.card-img--art .pin-art { width: auto; height: 82%; }
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h4 { font-size: 17.5px; font-weight: 700; color: var(--ink); }
.card-en { font-size: 11.5px; font-weight: 600; color: var(--muted-2); margin-top: 5px; letter-spacing: 0.3px; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 11px; }

.spec-list { margin-top: auto; padding-top: 16px; display: grid; gap: 9px; position: relative; }
.spec-list::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  border-top: 1px dashed var(--border);
}
.spec-list li { display: flex; flex-direction: column; gap: 2px; }
.spec-list span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.2px; }
.spec-list strong { font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.45; }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card { padding: 30px 26px; }
.adv-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--amber-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.adv-card h4 { font-size: 20px; font-weight: 700; color: var(--ink); }
.adv-card .card-desc { margin-top: 12px; padding: 0; }

/* ---------- 定制服务 ---------- */
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.custom-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.custom-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #D7E0EC; }
.custom-idx {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--amber); margin-bottom: 12px;
}
.custom-card h4 { font-size: 19px; font-weight: 700; color: var(--ink); }
.custom-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-top: 12px; }

.custom-cta {
  margin-top: 30px; background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 18px; padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.custom-cta strong { display: block; font-size: 21px; font-weight: 800; color: #fff; }
.custom-cta span { display: block; font-size: 14px; color: var(--muted-2); margin-top: 6px; }

/* ---------- 工厂实力 ---------- */
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.factory-images { display: grid; gap: 20px; }
.factory-images img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.factory-list { display: grid; gap: 26px; margin-top: 8px; }
.factory-list li { display: flex; gap: 16px; }
.factory-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--amber-tint);
  display: flex; align-items: center; justify-content: center;
}
.factory-list h4 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.factory-list p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- 资质认证条 ---------- */
.cert { background: var(--ink); padding: 30px 0; }
.cert-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cert-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--amber); flex-shrink: 0; }
.cert-list { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-list li {
  font-size: 13.5px; font-weight: 600; color: #DCE5F2;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  padding: 7px 16px;
}

/* ---------- 产品样本册 ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catalog-item {
  position: relative; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff; cursor: pointer; padding: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.catalog-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--amber); }
.catalog-item img { width: 100%; aspect-ratio: 1200 / 819; object-fit: cover; object-position: top center; }
.catalog-item span {
  position: absolute; left: 0; top: 0;
  background: rgba(14, 42, 71, 0.82); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 9px; border-bottom-right-radius: 8px;
}

/* ---------- 联系区 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 22px; padding: 50px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-text h2 { font-size: 30px; font-weight: 800; color: #fff; }
.cta-text p { font-size: 14px; color: var(--muted-2); margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--amber-tint);
  display: flex; align-items: center; justify-content: center;
}
.contact-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.contact-item span, .contact-item a { font-size: 13px; color: var(--muted); line-height: 1.6; }
.contact-item a:hover { color: var(--amber); }

/* ---------- 留言表单 ---------- */
.enquiry {
  margin-top: 46px; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 44px; box-shadow: var(--shadow-soft);
}
.enquiry-head h3 { font-size: 24px; font-weight: 800; color: var(--ink); }
.enquiry-head p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.enquiry-form { margin-top: 28px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 14.5px; color: var(--text);
  background: #FBFCFE; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #AFBAC7; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 146, 46, 0.13);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #D64545; background: #FFF8F8; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--muted-2); }
.form-status { font-size: 14px; font-weight: 600; min-height: 22px; }
.form-status.is-ok { color: #1E7A46; }
.form-status.is-err { color: #C0392B; }

/* 提交被拦截时的兜底通道 */
.form-fallback { border: 1px solid #E8C9C3; background: #FFF8F7; border-radius: 12px; padding: 18px 20px; }
.form-fallback[hidden] { display: none; }
.form-fallback > p { font-size: 13.5px; color: #8C3A2E; line-height: 1.75; }
.form-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-fallback-actions > * {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1.4px solid #D9A79F; border-radius: 10px; background: #fff;
  color: #8C3A2E; font-size: 13.5px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: background 0.2s ease;
}
.form-fallback-actions > *:hover { background: #FDEDEA; }
.form-fallback-note { font-size: 12.5px; color: #A5716A; margin-top: 12px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 15px; font-weight: 700; color: #fff; }
.footer-brand span { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: var(--muted-2); }
.footer p { font-size: 13px; color: var(--muted-2); }

/* ---------- 在线客服 ---------- */
.chat { position: fixed; right: 26px; bottom: 26px; z-index: 400; font-size: 14px; }

.chat-bubble {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--amber) 0%, #B07C1E 100%);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(200, 146, 46, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.chat-bubble:hover { transform: translateY(-3px) scale(1.04); }
.chat-ico { position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-ico--close { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.chat.is-open .chat-ico--open { opacity: 0; transform: rotate(45deg) scale(0.7); }
.chat.is-open .chat-ico--close { opacity: 1; transform: none; }
.chat-ping {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(200, 146, 46, 0.6);
  animation: chatPing 2.4s ease-out infinite;
}
.chat.is-open .chat-ping { display: none; }
.chat.has-unread .chat-ping::after {
  content: ""; position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #E04B4B; border: 2px solid #fff;
}
@keyframes chatPing {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chat-panel {
  position: absolute; right: 0; bottom: 76px;
  width: 372px; max-width: calc(100vw - 40px);
  height: 520px; max-height: calc(100vh - 150px);
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(14, 42, 71, 0.24);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chatIn 0.24s ease-out;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 15px 18px; flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--amber); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.chat-head-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.chat-head-txt strong { font-size: 14.5px; color: #fff; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #A9BDD6; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #45C97A; flex-shrink: 0; }
.chat-min {
  width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.chat-min:hover { background: rgba(255, 255, 255, 0.22); }

.chat-body {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px;
}
.msg { display: flex; gap: 8px; max-width: 88%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.msg-bubble {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 13px;
  font-size: 13.5px; line-height: 1.7; color: var(--text);
  white-space: pre-line; word-break: break-word;
}
.msg-user .msg-bubble { background: var(--amber); border-color: var(--amber); color: #fff; }
.msg-bubble a { color: var(--amber); font-weight: 700; text-decoration: underline; }
.msg-user .msg-bubble a { color: #fff; }
.msg-typing { display: flex; gap: 4px; padding: 3px 2px; }
.msg-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2);
  animation: dot 1.2s infinite ease-in-out;
}
.msg-typing i:nth-child(2) { animation-delay: 0.18s; }
.msg-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px 0; background: #fff; }
.chat-chip {
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.chat-chip:hover { border-color: var(--amber); background: var(--amber-tint); color: #8A6320; }

.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; background: #fff; align-items: center; }
.chat-form input {
  flex: 1; font-family: var(--font); font-size: 13.5px; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 999px; padding: 10px 16px; background: #FBFCFE;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat-form input:focus { outline: none; border-color: var(--amber); background: #fff; }
.chat-form button {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: var(--amber); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-form button:hover { background: var(--amber-bright); transform: scale(1.05); }

/* ---------- 画册大图 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8, 20, 34, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lb-close { top: 20px; right: 22px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 50px; height: 76px; font-size: 34px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.26); }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #C9D6E6; font-size: 13px; letter-spacing: 1px;
}

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .chat-ping { animation: none; }
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1240px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
}

@media (max-width: 1100px) {
  .hero-title { font-size: 50px; }
  html[lang="en"] .hero-title { font-size: 36px; }
  .product-grid, .custom-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  html[lang="en"] .hero-title { font-size: 34px; }
  .material-band { grid-template-columns: 1fr; gap: 14px; }
  .material-tile { padding: 22px; }
  .topbar-hide-sm { display: none; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-inner { gap: 16px; }
  .nav-actions { margin-left: auto; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 44px; }
  .hero-panel { min-height: 360px; }
  .hero-chip--tl { left: 8px; }
  .hero-chip--br { right: 8px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stat:nth-child(3)::before { display: none; }

  .factory-grid { grid-template-columns: 1fr; gap: 36px; }
  .factory-images img { height: 240px; }

  .cta-band { padding: 38px 32px; }
  .enquiry { padding: 30px 26px; }
  .group-en { display: none; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 34px; }
  html[lang="en"] .hero-title { font-size: 26px; }
  .filter-bar { gap: 8px; }
  .filter-chip { height: 36px; padding: 0 14px; font-size: 13px; }
  .hero-en { font-size: 15px; }
  .hero-trust { gap: 24px; }
  .hero-trust strong { font-size: 24px; }
  .stat strong { font-size: 30px; }
  .product-grid, .adv-grid, .custom-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .section-en { font-size: 12px; }
  .group-head h3 { font-size: 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .custom-cta { padding: 26px 24px; }
  .custom-cta .btn { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { width: 40px; height: 60px; font-size: 26px; }
  .chat { right: 16px; bottom: 16px; }
  .chat-bubble { width: 54px; height: 54px; }
  .chat-panel { height: 460px; bottom: 68px; }
}
