/* =========================================================
   HomeLine Appliances — static B2B showcase site
   Design tokens
   ========================================================= */
:root {
  --navy: #0b2a45;
  --navy-2: #123a5c;
  --navy-3: #1d4f78;
  --accent: #f26a21;
  --accent-dark: #d4550f;
  --ink: #12202e;
  --muted: #5c6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f6;
  --ok: #1f9d55;
  --err: #d64545;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 42, 69, .06);
  --shadow: 0 12px 34px rgba(11, 42, 69, .10);
  --shadow-lg: 0 26px 60px rgba(11, 42, 69, .16);
  --ease: cubic-bezier(.22, .68, .16, 1);
  --header-h: 74px;
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: "Noto Sans Arabic", "Inter", Tahoma, "Segoe UI", sans-serif; line-height: 1.8; }
html[lang="ru"] body { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
html[lang="zh"] body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Inter", sans-serif; line-height: 1.75; }
html[lang="zh-Hans"] body { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Inter", sans-serif; line-height: 1.75; }
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .hero__title,
html[lang="zh-Hans"] .section__title,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: .01em; }
html[lang="zh-Hans"] .eyebrow { letter-spacing: .12em; }
html[lang="zh-Hans"] .hero__lead,
html[lang="zh-Hans"] .section__lead { line-height: 1.85; }
html[lang="zh-Hans"] .btn { letter-spacing: .02em; }
/* 繁体中文：排版细节（拉丁字母的字距规则不适用于汉字） */
html[lang="zh"] .eyebrow,
html[lang="zh"] .hero__title,
html[lang="zh"] .section__title,
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { letter-spacing: .01em; }
html[lang="zh"] .eyebrow { letter-spacing: .12em; }
html[lang="zh"] .hero__lead,
html[lang="zh"] .section__lead { line-height: 1.85; }
html[lang="zh"] .btn { letter-spacing: .02em; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 22px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #eaf1f8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: block; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 0; }
.section--navy .section-head p { color: #b9cbdc; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(242, 106, 33, .28); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* =========================================================
   Page loader + page transition
   ========================================================= */
.page-loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center; gap: 18px;
  background: var(--navy);
  transition: opacity .55s var(--ease), visibility .55s;
}
.page-loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 16px; color: #fff; }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .22);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
.loader-text { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }
@keyframes spin { to { transform: rotate(360deg); } }

body.page-exit { opacity: 0; transition: opacity .22s var(--ease); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 8px 26px rgba(11, 42, 69, .07); border-bottom-color: var(--line); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--navy-3), var(--navy));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.brand__mark::after {
  content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(242, 106, 33, .18);
}
.brand__text { display: grid; line-height: 1.15; }
.brand__text b { font-size: 1.02rem; font-weight: 700; }
.brand__text span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 10px 14px; font-size: .93rem; font-weight: 500; color: #33465a; border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px; flex: 0 0 auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  white-space: nowrap; flex: 0 0 auto;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--navy-3); }
.icon-btn svg { width: 18px; height: 18px; }
.motion-toggle .icon-pause { display: none; }
.motion-toggle[aria-pressed="false"] .icon-pause { display: block; }
.motion-toggle[aria-pressed="false"] .icon-play { display: none; }

.nav-toggle { display: none; width: auto; min-width: 56px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; position: relative; padding: 0 14px; align-items: center; justify-content: center; gap: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; flex: none; }
.nav-toggle .nav-toggle__text { font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); text-transform: uppercase; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__text { opacity: 0; transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] { padding: 0; width: 40px; min-width: 40px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--navy); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: var(--navy); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: min(84vh, 760px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(6, 24, 41, .92) 0%, rgba(6, 24, 41, .72) 46%, rgba(6, 24, 41, .30) 100%);
}
.hero__media img.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__media img.hero-slide.is-on { opacity: 1; }
html[dir="rtl"] .hero__media::after {
  background: linear-gradient(to left, rgba(6, 24, 41, .92) 0%, rgba(6, 24, 41, .72) 46%, rgba(6, 24, 41, .30) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 120px); max-width: 720px; }
.hero h1 { margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #ffb37f; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.14rem); color: #d7e3ee; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats {
  margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 24px;
}
.hero__stats div { display: grid; gap: 3px; }
.hero__stats b { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; }
.hero__stats span { font-size: .8rem; color: #a9bfd2; }

/* =========================================================
   Cards / grids
   ========================================================= */
.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5dee8; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(242, 106, 33, .10); color: var(--accent); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; font-size: 1.06rem; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* capability / efficiency strip */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(30px, 4vw, 48px); }
.metric { border-inline-start: 2px solid var(--accent); padding-inline-start: 16px; }
.metric b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.metric span { font-size: .86rem; color: var(--muted); }

/* =========================================================
   Product cards
   ========================================================= */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d8e1ea; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-size: .72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .02em;
}
.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product-card__title { font-size: 1.02rem; font-weight: 600; margin: 0 0 10px; line-height: 1.35; }
.product-card__meta { display: flex; align-items: baseline; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .74rem; }
.moq { font-size: .78rem; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: .72rem; color: #43566a; background: var(--bg-soft); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* =========================================================
   Toolbar (search / filters)
   ========================================================= */
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search-box { position: relative; flex: 1 1 300px; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: .95rem; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
html[dir="rtl"] .search-box input { padding: 13px 44px 13px 16px; }
.search-box input:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29, 79, 120, .10); }
.search-box svg { position: absolute; inset-block-start: 50%; inset-inline-start: 16px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: .86rem; font-weight: 500; color: #3c4f62;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--navy-3); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--sub { font-size: .82rem; padding: 7px 14px; background: var(--bg-soft); }
.result-count { font-size: .86rem; color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* =========================================================
   Breadcrumbs
   ========================================================= */
.breadcrumb { padding-block: 18px; font-size: .84rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #b6c1cc; }
html[dir="rtl"] .breadcrumb li + li::before { content: "/"; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 500; }

/* =========================================================
   Product detail
   ========================================================= */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.gallery__zoom-hint {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px;
  background: rgba(11, 42, 69, .78); color: #fff; font-size: .74rem; padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; pointer-events: none;
}
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 84px; height: 66px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid transparent; background: var(--bg-soft); transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { transform: translateY(-2px); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }

.pdp__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.pdp__lead { color: var(--muted); }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.pdp__price b { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.pdp__price span { font-size: .84rem; color: var(--muted); }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table caption { text-align: start; font-weight: 600; padding-bottom: 10px; font-size: .95rem; color: var(--navy); }
.spec-table th, .spec-table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; background: var(--bg-soft); font-weight: 500; color: #3d5165; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(6, 20, 33, .94); padding: 4vw;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: 8px; transform: scale(.97); transition: transform .35s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { inset-block-start: 22px; inset-inline-end: 22px; }
.lightbox__nav--prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Contact / form
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #ffb37f;
}
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item b { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #9fb6ca; font-weight: 500; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: #eaf1f8; font-size: .98rem; }
.contact-item a:hover { color: #ffb37f; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: #3d5165; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fbfcfd; font-size: .94rem; color: var(--ink); font-family: inherit;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 4px rgba(29, 79, 120, .10);
}
.field .hint { font-size: .74rem; color: var(--muted); }
.honeypot { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha label { font-size: .82rem; font-weight: 600; color: #3d5165; }
.captcha__q { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.captcha input { max-width: 110px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.form-note { font-size: .76rem; color: var(--muted); }
.form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .88rem;
  display: none; align-items: flex-start; gap: 10px;
}
.form-status.is-show { display: flex; animation: fadeUp .4s var(--ease); }
.form-status--ok { background: rgba(31, 157, 85, .10); color: #157a41; border: 1px solid rgba(31, 157, 85, .25); }
.form-status--err { background: rgba(214, 69, 69, .09); color: #a82f2f; border: 1px solid rgba(214, 69, 69, .22); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #071e33; color: #a9bfd2; padding-block: clamp(48px, 6vw, 76px) 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand__text span { color: #8aa4ba; }
.footer-about { margin-top: 16px; max-width: 320px; line-height: 1.7; }
.footer-title { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #a9bfd2; transition: color .2s; }
.footer-links a:hover { color: #ffb37f; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .1);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: #8199ae;
}
.footer-bottom a:hover { color: #ffb37f; }

/* back to top */
.to-top {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); color: var(--navy);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), background .25s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* WhatsApp float */
.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  background: #25d366; color: #fff; font-size: .88rem; font-weight: 600;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 211, 102, .45); }
.wa-float svg { width: 20px; height: 20px; }

/* 动画开关反馈气泡（顶部居中，避开浮窗区） */
#motionTip {
  position: fixed; top: 72px; left: 50%; transform: translate(-50%, -8px);
  background: var(--navy); color: #fff; font-size: .8rem; padding: 8px 16px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 90; box-shadow: 0 6px 18px rgba(11,42,69,.25);
}
#motionTip.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* motion off */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] .page-loader { display: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 18px 18px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-inner { gap: 10px; }
  .brand__text span { display: none; }
  .lang-switch button { padding: 6px 9px; font-size: .74rem; }
  .hero { min-height: auto; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: 16px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; inset-block-end: 18px; inset-inline-start: 18px; }
  .to-top { inset-block-end: 18px; inset-inline-end: 18px; width: 42px; height: 42px; }
  .gallery__thumbs button { width: 70px; height: 56px; }
  .section { padding-block: 48px; }
  .toolbar__row { gap: 10px; }
  .search-box { flex: 1 1 100%; }
  .header-inner { gap: 8px; padding-inline: 14px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__text b { font-size: .95rem; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 7px; font-size: .7rem; }
  .icon-btn { width: 36px; height: 36px; flex: none; padding: 0; }
  .icon-btn svg { width: 17px; height: 17px; }
  .nav-toggle { height: 36px; min-width: 52px; }
}

@media (max-width: 430px) {
  .header-inner { gap: 6px; padding-inline: 12px; }
  .brand__text { display: none; }
  .lang-switch button { padding: 5px 6px; font-size: .68rem; letter-spacing: 0; }
  .icon-btn { width: 32px; height: 32px; }
  .nav-toggle { height: 32px; min-width: 48px; padding: 0 10px; gap: 6px; }
  .hero__inner { padding-block: 48px; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.2rem); }
}
