/* ============================================================
   QUANHUI Global — Design System
   Palette: dark charcoal #141413 / warm paper #FAF9F5 / ember #E8623A
   Fonts: Outfit (display) + DM Sans (body)
   ============================================================ */

:root {
  --ink: #141413;
  --ink-soft: #2a2a27;
  --paper: #faf9f5;
  --paper-2: #f1efe8;
  --ember: #e8623a;
  --ember-dark: #c94a26;
  --muted: #6f6f68;
  --line: rgba(20, 20, 19, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --white: #fff;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 70px -28px rgba(20, 20, 19, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 78px;
  --max: 1400px;
}

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

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[dir='rtl'] { font-family: 'DM Sans', system-ui, sans-serif; }
body[dir='rtl'] .hero-content,
body[dir='rtl'] .section-head { text-align: right; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, .display {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ember);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(56px, 5vw, 76px) 0; }
/* Home 页板块间距收紧（留白减少一大半） */
main.home-main .section { padding: clamp(22px, 2.4vw, 32px) 0; }
main.home-main .section-head { margin-bottom: 28px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow { gap: 10px; }
.section-title { font-size: clamp(34px, 5vw, 62px); margin-top: 14px; }
.section-sub { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); margin-top: 12px; max-width: 62ch; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.wide { max-width: 1100px; }
.section-head.wide .section-title { font-size: clamp(28px, 3.6vw, 52px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em; transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 12px 30px -12px rgba(232, 98, 58, .7); }
.btn-primary:hover { background: var(--ember-dark); box-shadow: 0 18px 40px -12px rgba(232, 98, 58, .85); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Products banner carousel（纯色底 + 产品 + 大字） ---------- */
.pb {
  position: relative; overflow: hidden;
  height: clamp(320px, 33vw, 460px);
  background: var(--ink);
}
.pb-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
  text-decoration: none;
}
.pb-slide.active { opacity: 1; visibility: visible; }
.pb-word {
  position: absolute; z-index: 1; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 4%;
  font-size: clamp(44px, 6.4vw, 100px);
  font-weight: 800; line-height: .95; letter-spacing: -.045em;
  color: #fff; opacity: .92;
  text-shadow: 0 4px 26px rgba(0,0,0,.12);
}
.pb-slide img {
  position: relative; z-index: 2;
  height: 84%; max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(20,20,20,.25));
  animation: pbFloat 5.5s ease-in-out infinite;
}
@keyframes pbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* 双产品 Banner：Container House 大标题居中偏上，左右两款产品 */
.pb-slide.pb-duo { justify-content: space-between; padding: 0 7%; }
.pb-title {
  position: absolute; z-index: 3; top: 9%; left: 0; right: 0;
  text-align: center; font-size: clamp(38px, 4.8vw, 74px);
  font-weight: 800; line-height: 1; letter-spacing: -.035em;
  text-shadow: 0 3px 22px rgba(60,25,0,.5), 0 1px 4px rgba(60,25,0,.35);
}
.pb-prod {
  position: relative; z-index: 2;
  height: 100%; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; padding-bottom: 24px;
  text-decoration: none;
}
.pb-prod img {
  height: 65%; max-width: 94%; width: auto; object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(40,20,5,.32));
  animation: pbFloat 5.5s ease-in-out infinite;
}
.pb-label {
  font-size: clamp(17px, 1.6vw, 26px); font-weight: 700; letter-spacing: .01em;
  text-shadow: 0 3px 16px rgba(0,0,0,.18);
}
.pb-duo:hover .pb-prod img { transform: translateY(-6px); }
/* big 版：产品更大更清晰（矩形 solid 图不带投影） */
.pb-slide.pb-duo-big .pb-prod img { height: 72%; max-width: 96%; }
.pb-img-plain { filter: none !important; }
/* 实景卡片图：矩形照片带圆角投影，展示更大 */
.pb-prod img.pb-img-card { height: 74%; max-width: 96%; }
/* split 布局：左词 + 产品 + 右词 */
.pb-split { justify-content: center; gap: clamp(14px, 2.2vw, 36px); padding: 0 6%; }
.pb-side {
  position: relative; z-index: 2; max-width: 24%;
  font-size: clamp(30px, 3.6vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
  text-align: center; text-decoration: none;
  text-shadow: 0 3px 22px rgba(10,10,40,.5), 0 1px 4px rgba(10,10,40,.35);
}
.pb-side:hover { text-decoration: underline; text-underline-offset: 8px; }
.pb-mid { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.pb-mid img { height: 40%; max-width: none; width: auto; object-fit: contain; animation: pbFloat 5.5s ease-in-out infinite; }
/* 竖版构图（太空舱）单独放大，超宽图保持 40% */
.pb-mid img.pb-mid-tall { height: 90%; max-width: 100%; }
/* split 上下双图堆叠：上图 solid 宽幅、下图抠图，均完整显示 */
.pb-mid-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; }
.pb-mid-col img { height: 42%; max-width: clamp(300px, 34vw, 640px); width: auto; object-fit: contain; animation: pbFloat 5.5s ease-in-out infinite; }
.pb-mid-col img + img { filter: drop-shadow(0 22px 26px rgba(10,30,50,.35)); }

/* ---------- 产品「拆散重组」进场：整图切成碎块散射 → 依次飞回归位 ---------- */
@keyframes pbSideL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes pbSideR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes pbLabelUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pbTitleIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }

.pb-shatter { position: absolute; z-index: 3; pointer-events: none; }
.pb-piece {
  position: absolute; overflow: hidden; opacity: 0;
  border-radius: 5px;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.5);
  transition: transform .65s cubic-bezier(.22, 1.15, .38, 1) var(--d), opacity .38s ease var(--d);
  will-change: transform, opacity;
}
.pb-shatter.assemble .pb-piece { opacity: 1; transform: none; }

.pb-slide .pb-title { opacity: 0; transition: opacity .35s; }
.pb-slide.active .pb-title { animation: pbTitleIn .55s var(--ease) .05s both; }
/* 激活时：真实 img 先隐藏由碎块重组，重组完成后交回 pbFloat 悬浮 */
.pb-slide.active .pb-prod img,
.pb-slide.active .pb-mid img {
  animation: pbFloat 5.5s ease-in-out 1.5s infinite;
}
/* 双产品：第二栋碎块重组略晚，错落感 */
.pb-slide.pb-duo .pb-prod:last-of-type img { animation-delay: 2s; }
.pb-slide .pb-label { opacity: 0; transition: opacity .35s; }
.pb-slide.active .pb-label { animation: pbLabelUp .5s ease 1.15s forwards; }
.pb-slide.pb-duo .pb-prod:last-of-type .pb-label { animation-delay: 1.4s; }
/* split 布局：左右词从两侧滑入 */
.pb-slide .pb-side { opacity: 0; transition: opacity .35s; }
.pb-slide.active .pb-side:first-of-type { animation: pbSideL .6s var(--ease) .3s both; }
.pb-slide.active .pb-side:last-of-type { animation: pbSideR .6s var(--ease) .3s both; }
/* 点缀：半透明圆环与圆点 */
.pb-deco { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.pb-deco.d1 { width: 130px; height: 130px; border: 3px solid rgba(255,255,255,.35); top: 9%; left: 7%; }
.pb-deco.d2 { width: 54px; height: 54px; background: rgba(255,255,255,.28); bottom: 16%; left: 16%; }
.pb-deco.d3 { width: 96px; height: 96px; border: 3px solid rgba(255,255,255,.3); top: 20%; right: 9%; }
.pb-deco.d4 { width: 38px; height: 38px; background: rgba(255,255,255,.3); bottom: 22%; right: 18%; }
.pb-dots {
  position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.pb-dot {
  width: 9px; height: 9px; border-radius: 100px;
  background: rgba(255,255,255,.45); border: 0; padding: 0; cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.pb-dot.active { width: 34px; background: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(250, 249, 245, .88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s var(--ease), box-shadow .4s, height .4s var(--ease);
}
.header.scrolled {
  box-shadow: 0 1px 0 var(--line);
  height: 68px;
}
.header.on-hero:not(.scrolled) {
  color: #fff;
  background: rgba(17, 17, 17, .45);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner { width: min(100% - 48px, var(--max)); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Outfit'; font-weight: 800; font-size: 21px; letter-spacing: -.04em; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; object-fit: contain; border-radius: 8px;
  transition: transform .5s var(--ease-elastic);
}
.brand:hover .brand-mark { transform: scale(1.1) rotate(-6deg); }
.header.on-hero:not(.scrolled) .brand { color: #fff; }
.header.on-hero:not(.scrolled) .brand-mark { background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.footer .brand-mark { background: #fff; padding: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 500; padding: 9px 15px 12px;
  position: relative; background: none !important; border-radius: 0;
  transition: color .25s, font-weight .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  background: var(--ember); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible { font-weight: 800; color: var(--ember); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a.active { font-weight: 800; color: var(--ember); }
.nav a.active::after { transform: scaleX(1); }
.header.on-hero:not(.scrolled) .nav a.active { color: #fff; }
.header.on-hero:not(.scrolled) .nav a.active::after { background: #fff; }
.header.on-hero:not(.scrolled) .nav a:hover { color: #fff; }
.header.on-hero:not(.scrolled) .nav a::after { background: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.5); transition: background .25s, border-color .25s;
}
.lang-btn:hover { background: #fff; border-color: var(--ember); }
.header.on-hero:not(.scrolled) .lang-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.lang-btn svg { width: 14px; height: 14px; transition: transform .3s; }
.lang-wrap.open .lang-btn svg { transform: rotate(180deg); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 190px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; display: grid; gap: 2px; max-height: 320px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: all .3s var(--ease); color: var(--ink);
}
.lang-wrap.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
  border-radius: 10px; font-size: 13px; font-weight: 600; text-align: left;
  transition: background .2s, color .2s;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button.selected { background: var(--ember); color: #fff; }

/* mobile menu toggle */
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; border: 1px solid var(--line); }
.header.on-hero:not(.scrolled) .menu-toggle { border-color: rgba(255,255,255,.35); color: #fff; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.08); transition: transform 7s linear;
}
.hero-slide.active img { transform: scale(1); }
/* 第一张 hero：房子在右侧且完整可见；水平取景略偏右保留建筑全貌 */
.hero-slide.pos-low img { object-position: 72% 50%; }
.hero-slide.pos-low::after {
  background: linear-gradient(90deg, rgba(15,15,14,.58) 0%, rgba(15,15,14,.36) 52%, rgba(15,15,14,.02) 82%),
              linear-gradient(0deg, rgba(15,15,14,.5) 0%, transparent 40%);
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,15,14,.74) 0%, rgba(15,15,14,.5) 40%, rgba(15,15,14,.06) 75%),
              linear-gradient(0deg, rgba(15,15,14,.5) 0%, transparent 40%);
}
.hero-slide.right::after {
  background: linear-gradient(270deg, rgba(15,15,14,.82) 0%, rgba(15,15,14,.55) 40%, rgba(15,15,14,.06) 75%),
              linear-gradient(0deg, rgba(15,15,14,.55) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: var(--header-h); width: 100%; }
.hero-inner { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.hero-copy { max-width: 660px; }
.hero-slide.right .hero-copy { margin-left: auto; text-align: right; }
.hero-copy.right { margin-left: auto; text-align: right; }
.hero-copy.right .hero-desc { margin-left: auto; }
.hero-copy.right .hero-actions { justify-content: flex-end; }
.hero-slide.right .eyebrow::before { display: none; }
.hero-slide.right .eyebrow::after { content: ''; width: 26px; height: 2px; background: currentColor; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; backdrop-filter: blur(10px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(232,98,58,.25); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(46px, 7.4vw, 102px); line-height: .98; margin-top: 26px; letter-spacing: -.055em; }
.hero-title .accent { color: var(--ember); }
.hero-desc { font-size: clamp(16px, 1.7vw, 20px); color: rgba(255,255,255,.78); margin-top: 24px; max-width: 54ch; line-height: 1.65; }
.hero-slide.right .hero-desc { margin-left: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-slide.right .hero-actions { justify-content: flex-end; }

.hero-controls {
  position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0;
  width: min(100% - 48px, var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
}
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dot {
  width: 46px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3);
  position: relative; overflow: hidden; transition: width .5s var(--ease);
}
.hero-dot.active { width: 76px; background: rgba(255,255,255,.35); }
.hero-dot.active::after {
  content: ''; position: absolute; inset: 0; background: var(--ember); transform-origin: left;
  animation: fillBar 3s linear forwards;
}
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(232,98,58,.25); } 50% { box-shadow: 0 0 0 9px rgba(232,98,58,0); } }
.hero-count { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.hero-count b { color: #fff; font-size: 18px; }
.hero-arrows { display: flex; gap: 8px; margin-left: auto; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  color: #fff; display: grid; place-items: center; transition: background .3s, transform .3s var(--ease);
}
.hero-arrow:hover { background: var(--ember); border-color: var(--ember); transform: scale(1.08); }
.hero-arrow svg { width: 18px; height: 18px; }
.scroll-cue {
  position: absolute; z-index: 3; bottom: 38px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); display: grid; justify-items: center; gap: 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 19px 0; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.marquee-track i { color: var(--ember); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Categories (Bento) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden;
  padding: 30px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  background: var(--ink);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: saturate(1.02) contrast(1.02);
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.cat-bg-container-house::before { background-image: url('../assets/categories/container-house.webp'); }
.cat-bg-shipping-container::before { background-image: url('../assets/categories/shipping-container.webp'); }
.cat-bg-building-panels::before { background-image: url('../assets/categories/building-panels.webp'); }
/* banner式叠字：左下深色渐变保证可读，上半保留明亮天空 */
.cat-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(16,20,24,.92) 0%, rgba(16,20,24,.72) 26%, rgba(16,20,24,.28) 55%, rgba(16,20,24,0) 75%),
              linear-gradient(90deg, rgba(16,20,24,.35), transparent 60%);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-card:hover::before { transform: scale(1.08); filter: saturate(1.12) contrast(1.05); }
.cat-icon {
  position: absolute; top: 28px; right: 28px; width: 58px; height: 58px; border-radius: 18px;
  background: var(--ember); border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(232,98,58,.75);
  transition: transform .5s var(--ease-elastic);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card:hover .cat-icon { transform: rotate(10deg) scale(1.12); }
.cat-num { position: absolute; top: 26px; left: 30px; font-family: 'Outfit'; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); letter-spacing: .1em; }
.cat-card h3 { font-size: 27px; line-height: 1.1; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.cat-card p { font-size: 13px; color: rgba(255,255,255,.9); margin-top: 10px; min-height: 40px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.cat-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-size: 13px; font-weight: 700;
  padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.5); width: fit-content;
}
.cat-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.cat-card:hover .cat-link svg { transform: translateX(5px); }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* 首页热销区：4 款产品用 4 列，避免 3+1 不齐 */
.featured-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 100px;
  background: var(--ember); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.product-badge.new { background: var(--ink); }
.product-gallery-hint {
  position: absolute; bottom: 14px; right: 14px; padding: 6px 11px; border-radius: 100px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.product-gallery-hint svg { width: 13px; height: 13px; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.product-name {
  font-family: 'Outfit'; font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.02em;
  margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-meta span { padding: 5px 10px; border-radius: 8px; background: var(--paper-2); font-size: 11px; font-weight: 600; color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
.product-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--ember); }
.product-card:hover .product-link svg { transform: translateX(5px); }
.product-ali {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: #c9511f; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(201,81,31,.28);
  background: rgba(201,81,31,.06); white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, transform .25s var(--ease-elastic);
}
.product-ali svg { width: 13px; height: 13px; flex: none; }
.product-ali:hover { background: #c9511f; border-color: #c9511f; color: #fff; transform: translateY(-2px); }
.product-wa {
  width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; transition: transform .35s var(--ease-elastic);
}
.product-wa:hover { transform: scale(1.15) rotate(-8deg); }
.product-wa svg { width: 19px; height: 19px; }

.products-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 38px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ember); color: var(--ember); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Container House 大类按钮自带小类下拉 */
.chip-dropdown-wrap { position: relative; }
.chip-dropdown { display: inline-flex; align-items: center; gap: 8px; }
.chip-dropdown svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.chip-dropdown-wrap.open .chip-dropdown svg { transform: rotate(180deg); }
.chip-sub { font-size: 12px; font-weight: 600; opacity: .82; white-space: nowrap; }
.sub-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: 320px; max-height: 400px; overflow-y: auto; padding: 8px 8px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 26px 60px -18px rgba(15,15,15,.32); display: none;
}
.chip-dropdown-wrap.open .sub-dropdown { display: block; animation: ddFade .2s var(--ease); }
@keyframes ddFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sub-dropdown-head { padding: 8px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sub-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left;
  transition: background .2s, color .2s;
}
.sub-option:hover { background: var(--paper-2); }
.sub-option.selected { background: rgba(232,98,58,.12); color: var(--ember); font-weight: 800; }
.sub-name { flex: 1; min-width: 0; }
.sub-count { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); }
.sub-option.selected .sub-count { color: var(--ember); }
[dir="rtl"] .sub-dropdown { left: auto; right: 0; }
[dir="rtl"] .sub-option { text-align: right; }
.search-box {
  margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff; min-width: 240px;
}
.search-box svg { width: 16px; height: 16px; color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; font-size: 13px; width: 100%; font-family: inherit; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--line); }

/* ---------- Why us (dark split) ---------- */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,58,.14), transparent 65%);
  top: -180px; right: -120px; pointer-events: none;
}
.why .eyebrow { color: var(--ember); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.why-feature {
  position: sticky; top: 120px; border-radius: var(--radius-lg); overflow: hidden;
  height: 520px; background: #222;
}
.why-feature img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; gap: 2px; }
.why-item {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 30px 0;
  border-bottom: 1px solid var(--line-light); transition: padding-left .4s var(--ease);
}
.why-item:hover { padding-left: 12px; }
.why-item:first-child { border-top: 1px solid var(--line-light); }
.why-icon {
  width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: var(--ember);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 22px; }
.why-item p { color: rgba(255,255,255,.58); font-size: 14px; margin-top: 8px; max-width: 46ch; }

/* ---------- Factory Visit ---------- */
.visit { background: var(--paper-2); }
.visit-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #ddd; box-shadow: 0 30px 70px -30px rgba(20,20,19,.35);
  border: 1px solid var(--line);
  max-width: 940px; margin: 0 auto;
}
.visit-frame img {
  display: block; width: 100%; height: auto; object-fit: cover;
  transition: transform .9s var(--ease);
}
.visit-frame:hover img { transform: scale(1.025); }
.visit-tag {
  position: absolute; left: 26px; bottom: 26px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; background: rgba(20,20,19,.86); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
}
.visit-tag svg { width: 18px; height: 18px; color: var(--ember); flex: none; }
[dir="rtl"] .visit-tag { left: auto; right: 26px; }

/* ---------- Company video ---------- */
.video-section { background: var(--ink); color: #fff; }
.video-section .eyebrow { color: var(--ember); }
.video-section .section-title { color: #fff; }
.video-section .section-sub { color: rgba(255,255,255,.66); }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.08); cursor: pointer;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ember); color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 50px -12px rgba(232,98,58,.9);
  transition: transform .35s var(--ease-elastic), opacity .3s ease, background .3s ease;
}
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-play.playing { opacity: 0; pointer-events: none; }
.video-frame:hover .video-play:not(.playing) { transform: translate(-50%,-50%) scale(1.1); }
.video-label {
  position: absolute; left: 26px; bottom: 74px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; background: rgba(20,20,19,.8); color: #fff;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); pointer-events: none;
}
.video-label svg { width: 18px; height: 18px; color: var(--ember); flex: none; }
[dir="rtl"] .video-label { left: auto; right: 26px; }

/* 自定义进度条控制栏 */
.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 14px;
  background: linear-gradient(0deg, rgba(9,11,13,.94) 0%, rgba(9,11,13,.72) 52%, rgba(9,11,13,0) 100%);
}
.vc-play {
  flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .25s ease, transform .25s var(--ease-elastic);
}
.vc-play:hover { background: var(--ember); transform: scale(1.08); }
.vc-play svg { width: 16px; height: 16px; }
.vc-play.playing svg { width: 15px; height: 15px; }
.vc-track {
  position: relative; flex: 1; height: 5px; border-radius: 99px;
  background: rgba(255,255,255,.26); cursor: pointer; outline: none;
}
.vc-track::before { content: ''; position: absolute; inset: -14px 0; }
.vc-track:focus-visible { box-shadow: 0 0 0 3px rgba(232,98,58,.5); }
.vc-buffer, .vc-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 0; pointer-events: none;
}
.vc-buffer { background: rgba(255,255,255,.34); }
.vc-fill { background: var(--ember); box-shadow: 0 0 12px rgba(232,98,58,.65); }
.vc-thumb {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(232,98,58,.35), 0 2px 6px rgba(0,0,0,.4);
  transition: transform .2s var(--ease-elastic);
}
.vc-track:hover .vc-thumb, .vc-track:focus-visible .vc-thumb { transform: translateY(-50%) scale(1.25); }
.vc-time {
  flex: none; min-width: 96px; text-align: right; color: rgba(255,255,255,.92);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
[dir="rtl"] .video-controls { flex-direction: row-reverse; }
[dir="rtl"] .vc-buffer, [dir="rtl"] .vc-fill { left: auto; right: 0; }
[dir="rtl"] .vc-thumb { right: auto; left: -6px; }
[dir="rtl"] .vc-time { text-align: left; }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px;
  display: flex; align-items: flex-end; padding: 34px; color: #fff; isolation: isolate;
}
.app-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,10,.82), rgba(10,10,10,.05) 70%); }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.app-card:hover img { transform: scale(1.06); }
.app-card h3 { font-size: 32px; }
.app-card p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 10px; max-width: 38ch; }
.app-index { position: absolute; top: 26px; right: 30px; font-family: 'Outfit'; font-size: 44px; font-weight: 800; opacity: .22; }

/* ---------- Scene 3D ring carousel ---------- */
.scene-show { padding: 34px 0 72px; overflow: hidden; background: #fff; }
.scene-stage {
  position: relative; height: clamp(320px, 40vw, 500px);
  perspective: 1500px; perspective-origin: 50% 42%; max-width: 1560px; margin: 0 auto;
}
.scene-item {
  position: absolute; left: 50%; top: 50%;
  width: min(52%, 640px); aspect-ratio: 3 / 2; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .65s var(--ease), filter .65s var(--ease), opacity .5s ease;
  box-shadow: 0 26px 64px rgba(15,18,22,.32);
  will-change: transform;
}
.scene-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.18), transparent 40%); pointer-events: none; }
.scene-item[data-pos="0"]  { transform: translate(-50%,-50%); filter: brightness(1); z-index: 30; }
.scene-item[data-pos="1"]  { transform: translate(-50%,-50%) translateX(58%) rotateY(-44deg) scale(.8);  filter: brightness(.7); }
.scene-item[data-pos="-1"] { transform: translate(-50%,-50%) translateX(-58%) rotateY(44deg)  scale(.8);  filter: brightness(.7); }
.scene-item[data-pos="2"]  { transform: translate(-50%,-50%) translateX(92%) rotateY(-54deg) scale(.62); filter: brightness(.48); }
.scene-item[data-pos="-2"] { transform: translate(-50%,-50%) translateX(-92%) rotateY(54deg)  scale(.62); filter: brightness(.48); }
.scene-item[data-pos="3"]  { transform: translate(-50%,-50%) translateX(112%) rotateY(-60deg) scale(.48); filter: brightness(.36); opacity: .85; }
.scene-item[data-pos="-3"] { transform: translate(-50%,-50%) translateX(-112%) rotateY(60deg)  scale(.48); filter: brightness(.36); opacity: .85; }
.scene-item[data-pos="4"], .scene-item[data-pos="-4"],
.scene-item[data-pos="5"], .scene-item[data-pos="-5"] { opacity: 0; pointer-events: none; }

.scene-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(15,18,22,.18);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.scene-arrow:hover { background: var(--ember); color: #fff; transform: translateY(-50%) scale(1.08); }
.scene-arrow svg { width: 22px; height: 22px; }
.scene-arrow.prev { left: clamp(12px, 4vw, 52px); }
.scene-arrow.next { right: clamp(12px, 4vw, 52px); }

.scene-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0 20px; }
.scene-num {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.scene-num b { font-family: 'Outfit'; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1; }
.scene-num span { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1; }
.scene-num:hover { border-color: var(--ember); transform: translateY(-2px); }
.scene-num.active { background: var(--ink); border-color: var(--ink); }
.scene-num.active b { color: var(--ember); }
.scene-num.active span { color: #fff; }

[dir="rtl"] .scene-arrow.prev { left: auto; right: clamp(12px, 4vw, 52px); }
[dir="rtl"] .scene-arrow.next { right: auto; left: clamp(12px, 4vw, 52px); }

@media (max-width: 1100px) {
  .scene-item { width: 58%; }
  .scene-item[data-pos="1"]  { transform: translate(-50%,-50%) translateX(52%) rotateY(-44deg) scale(.76); }
  .scene-item[data-pos="-1"] { transform: translate(-50%,-50%) translateX(-52%) rotateY(44deg)  scale(.76); }
  .scene-item[data-pos="2"]  { transform: translate(-50%,-50%) translateX(82%) rotateY(-54deg) scale(.58); }
  .scene-item[data-pos="-2"] { transform: translate(-50%,-50%) translateX(-82%) rotateY(54deg)  scale(.58); }
  .scene-item[data-pos="3"]  { transform: translate(-50%,-50%) translateX(100%) rotateY(-60deg) scale(.46); opacity: .8; }
  .scene-item[data-pos="-3"] { transform: translate(-50%,-50%) translateX(-100%) rotateY(60deg)  scale(.46); opacity: .8; }
}
@media (max-width: 760px) {
  .scene-show { padding: 20px 0 52px; }
  .scene-stage { height: 270px; perspective-origin: 50% 40%; }
  .scene-item { width: 78%; box-shadow: 0 16px 40px rgba(15,18,22,.28); }
  .scene-item[data-pos="1"]  { transform: translate(-50%,-50%) translateX(46%) rotateY(-42deg) scale(.68); filter: brightness(.62); }
  .scene-item[data-pos="-1"] { transform: translate(-50%,-50%) translateX(-46%) rotateY(42deg)  scale(.68); filter: brightness(.62); }
  .scene-item[data-pos="2"]  { transform: translate(-50%,-50%) translateX(72%) rotateY(-52deg) scale(.5); opacity: .7; }
  .scene-item[data-pos="-2"] { transform: translate(-50%,-50%) translateX(-72%) rotateY(52deg)  scale(.5); opacity: .7; }
  .scene-item[data-pos="3"], .scene-item[data-pos="-3"] { opacity: 0; pointer-events: none; }
  .scene-arrow { width: 42px; height: 42px; }
  .scene-arrow svg { width: 18px; height: 18px; }
  .scene-nav { gap: 5px; margin-top: 26px; padding: 0 6px; flex-wrap: nowrap; }
  .scene-num { padding: 8px 6px; border-radius: 10px; flex: 1; min-width: 0; max-width: 40px; }
  .scene-num b { font-size: 13px; }
  .scene-num span { display: none; }
  .scene-num b { font-size: 15px; }
}

/* ---------- Stats ---------- */
.stats { background: var(--paper-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: 'Outfit'; font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; }
.stat-num .suffix { color: var(--ember); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 10px; }

/* ---------- Factory gallery (About) ---------- */
/* About 页：数据条与工厂实景之间收紧行距 */
.section.about-stats { padding: 0 0 clamp(22px, 2.5vw, 34px); }
.section.factory-band { padding: clamp(22px, 2.5vw, 34px) 0 clamp(52px, 5vw, 72px); }
.factory-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.fac-card {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
}
.fac-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.fac-card:hover img { transform: scale(1.05); }
.fac-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,.55), rgba(10,10,10,0) 42%);
  pointer-events: none;
}
.fac-tag {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.fac-tag::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ember); }
/* 第一行：大图车间全景 + 胶囊产线，突出规模 */
.fac-a { grid-column: span 7; height: 420px; }
.fac-b { grid-column: span 5; height: 420px; }
/* 后两行：工序特写，体现生产严格、质量可控 */
.fac-c { grid-column: span 4; height: 270px; }

/* ---------- About：凹面隧道墙（工厂流程自动浏览） ---------- */
.tunnel-band {
  /* 浅色开阔背景：天青→暖沙的柔和渐变，非纯白 */
  background:
    radial-gradient(ellipse 75% 85% at 50% -8%, rgba(184, 212, 233, .65), transparent 62%),
    linear-gradient(180deg, #DCE9F2 0%, #EFEADC 62%, #E5DCC7 100%);
  overflow: hidden;
  padding: clamp(26px, 3vw, 44px) 0 clamp(28px, 3.5vw, 46px);
}
.tunnel {
  position: relative; height: clamp(340px, 36vw, 500px);
  perspective: 1150px; perspective-origin: 50% 42%;
  overflow: hidden; cursor: grab;
}
.tunnel::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, transparent 45%, rgba(233, 233, 226, .45) 78%, rgba(235, 233, 222, .88) 96%),
    linear-gradient(0deg, rgba(239, 234, 220, .65) 0%, transparent 14%),
    linear-gradient(180deg, rgba(220, 233, 242, .6) 0%, transparent 14%);
}
.tcard {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 430px; height: 280px; border-radius: 14px; overflow: hidden;
  background: var(--paper-2); will-change: transform, opacity;
  box-shadow: 0 24px 60px rgba(15, 18, 22, .18), 0 0 0 1px rgba(20, 20, 19, .08);
}
.tcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .tunnel { height: clamp(300px, 58vw, 400px); }
  .tcard { width: 320px; height: 208px; border-radius: 11px; }
}

/* ---------- Customer reviews & cases（About，factory 之后） ---------- */
.rev-band { padding-top: clamp(48px, 5vw, 72px); }
.rev-card {
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); margin-top: 36px;
}
.rev-card.rev-flip .rev-gallery { order: 2; }
.rev-card.rev-flip .rev-info { order: 1; }
.rev-gallery { min-width: 0; display: flex; flex-direction: column; }
.rev-main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.rev-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.rev-card:hover .rev-main img { transform: scale(1.04); }
.rev-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 13, .45); color: #fff;
  backdrop-filter: blur(4px); transition: all .3s;
}
.rev-arrow svg { width: 20px; height: 20px; }
.rev-arrow:hover { background: var(--ember); }
.rev-arrow.prev { left: 14px; }
.rev-arrow.next { right: 14px; }
[dir="rtl"] .rev-arrow.prev { left: auto; right: 14px; }
[dir="rtl"] .rev-arrow.next { right: auto; left: 14px; }
.rev-thumbs {
  display: flex; gap: 10px; padding: 12px; overflow-x: auto;
  border-top: 1px solid var(--line); scrollbar-width: thin;
}
.rev-thumbs button {
  flex: 0 0 auto; width: 92px; height: 62px; padding: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  background: var(--paper-2); opacity: .65; transition: opacity .3s, border-color .3s;
}
.rev-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-thumbs button:hover { opacity: 1; }
.rev-thumbs button.on { border-color: var(--ember); opacity: 1; }
.rev-info {
  padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column;
  justify-content: center; gap: 14px; min-width: 0;
}
.rev-stars { color: #f5a623; font-size: 22px; letter-spacing: 5px; line-height: 1; }
.rev-info h3 { font-size: clamp(22px, 2.3vw, 30px); margin: 0; line-height: 1.25; }
.rev-info p { color: var(--muted); line-height: 1.8; margin: 0; font-size: 15.5px; }
.rev-who {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 7px 14px; border-radius: 100px; background: rgba(232, 98, 58, .1);
  color: var(--ember); font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.rev-who svg { width: 15px; height: 15px; }
.rev-proof {
  margin-top: 8px; max-width: 100%; border-radius: 12px;
  border: 1px solid var(--line); align-self: flex-start;
}
@media (max-width: 960px) {
  .rev-card { grid-template-columns: 1fr; margin-top: 26px; }
  .rev-card.rev-flip .rev-gallery { order: 0; }
  .rev-card.rev-flip .rev-info { order: 0; }
  .rev-info { padding: 22px 20px 26px; gap: 11px; }
  .rev-thumbs button { width: 74px; height: 52px; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: 0; left: 0; font-family: 'Outfit'; font-size: 44px; font-weight: 800; color: var(--paper-2);
  transition: color .4s;
}
.step:hover::before { color: var(--ember); }
.step::after { content: ''; position: absolute; top: 22px; left: 62px; right: -14px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 19px; margin-top: 14px; }
.step p { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- CTA banner ---------- */
.cta-section { padding: 0 0 clamp(56px, 5vw, 76px); }
.cta-box {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(50px, 8vw, 96px);
  background: var(--ember); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; isolation: isolate;
}
.cta-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.2), transparent 45%); }
.cta-box h2 { font-size: clamp(34px, 5vw, 60px); }
.cta-box p { font-size: 17px; color: rgba(255,255,255,.85); margin-top: 16px; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer-about p { font-size: 13px; max-width: 34ch; line-height: 1.75; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 20px; font-family: 'Outfit'; }
.footer-links { display: grid; gap: 12px; }
.footer-links a, .footer-links span { font-size: 13px; transition: color .25s, transform .25s; display: inline-block; }
.footer-links a:hover { color: var(--ember); transform: translateX(4px); }
.footer-contact { display: grid; gap: 14px; font-size: 13px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--ember); }
.footer-qr {
  display: flex !important; flex-direction: column; align-items: flex-start; gap: 9px;
  margin-top: 6px; padding: 12px; width: fit-content;
  background: #fff; border-radius: 14px; color: var(--ink) !important;
  text-decoration: none; transition: transform .35s var(--ease-elastic), box-shadow .35s ease;
}
.footer-qr:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); }
.footer-qr img { width: 132px; height: 132px; object-fit: contain; display: block; }
.footer-qr span { font-size: 11px; line-height: 1.5; color: var(--muted); max-width: 132px; }
.footer-qr:hover span { color: var(--ember); }
.footer-bottom { border-top: 1px solid var(--line-light); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(var(--header-h) + 36px) 0 30px; background: var(--paper-2); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232,98,58,.12), transparent 65%); right: -100px; top: -160px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 10px; }
.page-head p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 60ch; }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--ember); }
/* Applications banner：车库实拍背景 + 暗色遮罩 */
.page-head.head-garage {
  background:
    linear-gradient(90deg, rgba(10, 10, 9, .62) 0%, rgba(10, 10, 9, .38) 55%, rgba(10, 10, 9, .28) 100%),
    url('../assets/app-banner-garage.webp') center 38% / cover no-repeat;
  color: #fff;
}
.page-head.head-garage .breadcrumb, .page-head.head-garage .breadcrumb a { color: rgba(255, 255, 255, .85); }
.page-head.head-garage h1 { color: #fff; }
.page-head.head-garage p { color: rgba(255, 255, 255, .82); }
/* Contact banner：淡色系 + 客户项目设计过程三图（平面图→3D线稿→成品渲染），深色文字 */
.page-head.head-photos {
  background: var(--paper-2);
  color: var(--ink);
  aspect-ratio: 5.5 / 1;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 12px) 0 12px;
  min-height: 210px;
}
.ph-collage {
  position: absolute; top: var(--header-h); bottom: 0; right: 0;
  width: 57%;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 34px;
  padding-right: max(24px, calc((100% - var(--max)) / 2));
  z-index: 1;
  background: var(--paper-2);
}
.ph-card {
  position: relative; margin: 0; flex: 0 1 245px;
  background: transparent; border-radius: 14px; overflow: hidden;
}
.ph-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 14px; }
.ph-card.blend img { mix-blend-mode: multiply; }
.ph-card.soft img { opacity: .88; }
.page-head.head-photos .ph-copy {
  min-width: 0; position: relative; z-index: 2;
  max-width: 44%;
  margin-left: max(24px, calc((100% - var(--max)) / 2));
}
.page-head.head-photos .breadcrumb, .page-head.head-photos .breadcrumb a { color: var(--muted); }
.page-head.head-photos h1 { color: var(--ink); font-size: clamp(28px, 3vw, 38px); }
.page-head.head-photos p { color: var(--muted); }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); position: relative; cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gallery-main.swiping { cursor: grabbing; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,20,19,.55); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease, background .25s ease, transform .3s var(--ease-elastic);
}
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover { background: var(--ember); transform: translateY(-50%) scale(1.1); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-count {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  padding: 7px 12px; border-radius: 100px; background: rgba(20,20,19,.68); color: #fff;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none;
}
.gallery-zoom { position: absolute; bottom: 18px; right: 18px; padding: 9px 14px; border-radius: 100px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.gallery-zoom svg { width: 15px; height: 15px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.thumb { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; transition: border-color .3s, transform .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-3px); }
.thumb.active { border-color: var(--ember); }
.detail-info { position: sticky; top: 110px; }
.detail-cat { color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-title { font-size: clamp(19px, 1.5vw, 22px); margin-top: 14px; line-height: 1.45; }
.detail-desc { color: var(--muted); margin-top: 14px; font-size: 15px; }
.spec-table { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { padding: 13px 18px; background: var(--paper-2); font-weight: 700; }
.spec-row dd { padding: 13px 18px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.inquiry-card { margin-top: 22px; padding: 22px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.inquiry-card h3 { font-size: 20px; }
.inquiry-card p { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 7px; }
.inquiry-card .btn { margin-top: 18px; width: 100%; background: #25d366; color: #fff; }
.inquiry-card .btn:hover { background: #1ebe5d; }
.inquiry-card .btn svg { width: 18px; height: 18px; }

/* ---------- About / Contact ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
/* About 公司介绍（去掉右侧图后横排铺满，与下方工厂区紧密衔接） */
.about-intro-sec { padding-top: clamp(28px, 2.5vw, 38px); padding-bottom: clamp(18px, 2.2vw, 30px); }
.about-intro .section-sub { margin-top: 28px; max-width: none; }
/* 三段各一行：整体右移、字号加大、与大标题及段落间保持呼吸感 */
.about-intro .section-sub,
.about-intro > p {
  margin-left: 64px;
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.85;
}
.about-intro > p { margin-top: 18px; }
body[dir='rtl'] .about-intro .section-sub,
body[dir='rtl'] .about-intro > p { margin-left: 0; margin-right: 64px; }
.about-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-badge { position: absolute; bottom: 24px; left: 24px; background: var(--ember); color: #fff; padding: 18px 24px; border-radius: 16px; font-family: 'Outfit'; font-weight: 700; }
.about-badge strong { display: block; font-size: 32px; line-height: 1; }
.about-badge span { font-size: 12px; opacity: .85; }
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.95fr 1fr; gap: 24px; align-items: stretch; }
.contact-narrow { width: min(100% - 48px, 1560px); max-width: none; }
.contact-card { padding: 20px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
/* 联系卡左信息 + 右地图（地图固定横条形，重庆钉居中） */
.contact-split { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.78fr); gap: 22px; align-items: stretch; }
.contact-left { min-width: 0; }
.contact-map { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; overflow: hidden; width: 100%; height: calc(100% + 40px); margin: -20px -26px -20px -22px; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.contact-card:nth-child(2) { background: linear-gradient(90deg, var(--ink) 0%, var(--ink) calc(100% - 170px), rgba(20,20,19,.30) 100%); color: #fff; border-color: transparent; position: relative; z-index: 2; margin-right: -100px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 24px 60px rgba(15,18,22,.35); }
.contact-card h3 { font-size: 25px; }
@media (min-width: 1440px) {
  .contact-card h3 { white-space: nowrap; }
}
.contact-card p { color: var(--muted); margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.contact-card:nth-child(2) p { color: rgba(255,255,255,.6); }
.contact-card .btn { margin-top: 14px; font-size: 15px; padding: 14px 28px; }
.contact-details { display: grid; gap: 12px; margin-top: 16px; }
.contact-details div { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; }
.contact-details svg { width: 18px; height: 18px; color: var(--ember); flex-shrink: 0; margin-top: 2px; }
.contact-details a {
  display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px;
  color: var(--ink); text-decoration: none; transition: color .2s;
}
.contact-details a:hover { color: var(--ember); }
/* 联系页底部两张实景图并排 */
/* 右侧竖版实景图（车库卡车），与两卡同排等高、精确填充；左端伸入表单卡下方做底层背景 */
.contact-side-photo { margin: 0 -0px 0 -140px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 16px 40px rgba(15,18,22,.10); border: 1px solid var(--line); position: relative; z-index: 1; }
.contact-side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
@media (max-width: 1150px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-side-photo { margin-left: 0; }
  .contact-card:nth-child(2) { margin-right: 0; background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .contact-split { grid-template-columns: 1fr; gap: 22px; }
  .contact-map { height: auto; min-height: 0; aspect-ratio: 16 / 9; margin: 0; border-radius: var(--radius-md, 14px); }
  .page-head.head-photos { aspect-ratio: auto; min-height: 0; height: 200px; }
  .ph-collage { width: 52%; gap: 20px; }
  .ph-card { flex-basis: 200px; }
  .page-head.head-photos .ph-copy { max-width: 52%; margin-left: 24px; }
  .contact-side-photo img { aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 720px) {
  .ph-collage { display: none; }
  .page-head.head-photos .ph-copy { max-width: 100%; }
  .contact-split { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-fab-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 90; }
.fab-wa {
  position: relative; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 34px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-elastic), box-shadow .3s, opacity .3s;
}
.fab-wa::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.fab-wa:hover { transform: scale(1.12) rotate(-8deg); }
.fab-wa.hidden { opacity: 0; pointer-events: none; transform: scale(.7); }
.fab-wa svg { width: 28px; height: 28px; }

/* WhatsApp contact panel */
.wa-panel {
  position: absolute; bottom: 72px; right: 0; width: 300px; background: #fff;
  border-radius: 22px; box-shadow: 0 24px 70px -20px rgba(20,20,19,.35);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.95);
  transform-origin: bottom right; transition: all .4s var(--ease); color: var(--ink);
}
.wa-panel.open { opacity: 1; visibility: visible; transform: none; }
.wa-panel-head {
  display: flex; align-items: center; gap: 11px; padding: 16px 18px;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
}
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex-shrink: 0; }
.wa-avatar svg { width: 22px; height: 22px; }
.wa-panel-head > div:nth-child(2) { display: grid; line-height: 1.35; min-width: 0; }
.wa-panel-head strong { font-family: 'Outfit'; font-size: 16px; }
.wa-panel-head span { font-size: 11px; opacity: .85; }
.wa-panel-close { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.wa-panel-close svg { width: 15px; height: 15px; }
.wa-qr { padding: 18px 18px 8px; text-align: center; }
.wa-qr img { width: 100%; max-width: 210px; height: auto; margin-inline: auto; border-radius: 10px; border: 1px solid var(--line); }
.wa-scan-tip { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 18px 14px; }
.wa-number-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 18px 14px; padding: 10px 10px 10px 14px; border-radius: 12px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.wa-number { font-family: 'Outfit'; font-weight: 700; font-size: 15px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wa-copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
  transition: background .25s, transform .25s;
}
.wa-copy:hover { background: #000; transform: scale(1.04); }
.wa-copy.copied { background: #25d366; }
.wa-copy svg { width: 14px; height: 14px; }
.wa-direct {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 18px 18px; padding: 13px; border-radius: 12px; background: #25d366; color: #fff;
  font-size: 14px; font-weight: 700; transition: background .25s, transform .3s;
}
.wa-direct:hover { background: #1ebe5d; transform: translateY(-2px); }
.wa-direct svg { width: 18px; height: 18px; }

/* Toast */
.toast {
  position: fixed; bottom: 34px; left: 50%; z-index: 210; transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: 100px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .35s var(--ease); white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; animation: fadeIn .3s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 12px; }
.lightbox-close { position: absolute; top: 26px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox-nav.prev { left: 26px; } .lightbox-nav.next { right: 26px; }
.lightbox-nav:hover { background: var(--ember); }
.lightbox-nav svg { width: 22px; height: 22px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: .08s; }
.reveal[data-delay='2'] { transition-delay: .16s; }
.reveal[data-delay='3'] { transition-delay: .24s; }

/* ---------- Page transition ---------- */
#app { animation: pageIn .6s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .pb { height: clamp(300px, 40vw, 420px); }
  .pb-slide img { height: 78%; max-width: 80%; }
  .pb-prod img { height: 56%; }
  .pb-slide.pb-duo-big .pb-prod img { height: 62%; }
  .pb-mid { flex: 1 1 auto; min-width: 0; }
  .pb-mid img { height: auto; max-height: 78%; max-width: 100%; }
  .pb-mid img.pb-mid-tall { height: auto; max-height: 88%; }
  .pb-title { font-size: clamp(32px, 4.6vw, 52px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 300px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .fac-a { grid-column: span 12; height: 340px; }
  .fac-b { grid-column: span 12; height: 340px; }
  .fac-c { grid-column: span 6; height: 240px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 380px); height: 100dvh;
    background: var(--paper); color: var(--ink); flex-direction: column; align-items: stretch;
    padding: 100px 28px 40px; gap: 6px; transform: translateX(105%);
    transition: transform .5s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.2); z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 18px; padding: 15px 18px; border-radius: 0; font-weight: 500; }
  .nav a::after {
    left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto;
    transform: scaleY(0); transform-origin: center;
    transition: transform .35s var(--ease);
  }
  .nav a:hover::after, .nav a:focus-visible::after, .nav a.active::after { transform: scaleY(1); }
  .nav a:hover, .nav a:focus-visible, .nav a.active { background: none; color: var(--ember); }
  .menu-toggle { display: grid; }
  .header-actions .btn-quote { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-feature { position: relative; top: 0; height: 340px; }
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-info { position: relative; top: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .pb { height: 280px; }
  .pb-word { font-size: clamp(30px, 8.6vw, 48px); }
  .pb-slide img { height: 74%; max-width: 88%; }
  .pb-slide.pb-duo { padding: 0 3%; }
  .pb-prod img { height: 36%; }
  .pb-slide.pb-duo-big .pb-prod img { height: 42%; }
  .pb-prod { padding-bottom: 42px; }
  .pb-mid img { max-height: 58%; }
  .pb-mid img.pb-mid-tall { max-height: 66%; }
  .pb-side { font-size: clamp(13px, 4vw, 18px); max-width: 18%; }
  .pb-split { gap: 4px; padding: 0 2%; }
  .pb-label { font-size: 12px; }
  .pb-title { top: 8%; font-size: clamp(24px, 6vw, 34px); }
  .pb-deco.d1, .pb-deco.d3 { width: 70px; height: 70px; }
  .pb-deco.d2 { width: 34px; height: 34px; }
  .pb-deco.d4 { width: 24px; height: 24px; }
  :root { --header-h: 66px; }
  .fac-c { grid-column: span 12; height: 220px; }
  .fac-tag { font-size: 12px; left: 14px; right: 14px; bottom: 11px; }
  .container, .header-inner, .hero-inner, .hero-controls { width: min(100% - 32px, var(--max)); }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .lang-btn span.lang-name { display: none; }
  .lang-btn { padding: 8px 10px; }
  .lang-menu { right: -6px; }
  .visit-tag { left: 14px; bottom: 14px; padding: 9px 13px; font-size: 11px; }
  [dir="rtl"] .visit-tag { left: auto; right: 14px; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 26px; height: 26px; }
  .video-label { left: 14px; bottom: 60px; padding: 9px 13px; font-size: 11px; }
  [dir="rtl"] .video-label { left: auto; right: 14px; }
  .video-controls { gap: 10px; padding: 18px 14px 10px; }
  .vc-play { width: 26px; height: 26px; }
  .vc-play svg { width: 14px; height: 14px; }
  .vc-time { min-width: 78px; font-size: 11px; }
  .hero { min-height: 100dvh; min-height: 100svh; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(15,15,14,.85) 0%, rgba(15,15,14,.5) 55%, rgba(15,15,14,.28) 100%); }
  .hero-slide.pos-low img { object-position: 72% 50%; }
  .hero-title { font-size: clamp(40px, 12vw, 62px); margin-top: 20px; }
  .hero-desc { font-size: 15px; margin-top: 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { padding: 13px 20px; font-size: 13px; }
  .hero-controls { bottom: 24px; gap: 14px; }
  .hero-dot { width: 28px; } .hero-dot.active { width: 46px; }
  .hero-arrows { display: none; }
  .scroll-cue { display: none; }
  .hero-slide.right .hero-copy { text-align: left; }
  .hero-slide.right .hero-desc { margin-left: 0; }
  .hero-slide.right .hero-actions { justify-content: flex-start; }
  .marquee-track span { font-size: 11px; gap: 24px; padding-right: 24px; }
  .cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card { min-height: 250px; padding: 24px; }
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .featured-grid { grid-template-columns: 1fr; }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { margin-left: 0; }
  .sub-dropdown { width: min(292px, 86vw); }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 280px; padding: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 26px 0 26px 78px; }
  .step::before { font-size: 34px; top: 26px; }
  .step::after { display: none; }
  .cta-box { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { margin-top: 40px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-nav { opacity: 1; width: 36px; height: 36px; }
  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }
  .gallery-nav svg { width: 17px; height: 17px; }
  .gallery-count { bottom: 12px; left: 12px; font-size: 11px; }
  .gallery-zoom { bottom: 12px; right: 12px; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .wa-fab-wrap { bottom: 20px; right: 20px; }
  .fab-wa { width: 52px; height: 52px; }
  .wa-panel { width: min(300px, calc(100vw - 40px)); right: -2px; bottom: 66px; }
  .lightbox { padding: 16px; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
  .page-head { padding: calc(var(--header-h) + 26px) 0 22px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 112px; right: 26px; z-index: 89;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ember); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(232,98,58,.75);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .35s var(--ease), transform .45s var(--ease-elastic), visibility .35s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ember-dark); transform: translateY(-4px); }
.back-to-top svg { width: 22px; height: 22px; }
[dir="rtl"] .back-to-top { right: auto; left: 26px; }

@media (max-width: 680px) {
  .back-to-top { bottom: 100px; right: 20px; width: 42px; height: 42px; }
  [dir="rtl"] .back-to-top { right: auto; left: 20px; }
}

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