/* ============================================================
   FY — Aluminum Windows, Doors & Honeycomb Blinds
   Foreign-trade B2B website styles
   Palette: deep navy #0e2a47 / aluminum silver #e8edf2
            accent honey-gold #f2a900 / white
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-dark: #0a1f36;
  --navy-soft: #16385c;
  --silver: #e8edf2;
  --silver-dark: #d4dce4;
  --gold: #f2a900;
  --gold-dark: #d99100;
  --white: #ffffff;
  --text: #2b3440;
  --text-light: #5d6b7a;
  --bg: #f6f8fa;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(14, 42, 71, 0.10);
  --shadow-lg: 0 10px 34px rgba(14, 42, 71, 0.16);
  --whatsapp: #25d366;
  --facebook: #1877f2;
  --instagram: #e1306c;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }

.section { padding: 72px 0; }
.section-alt { background: var(--white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--text-light); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1fb958; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.08);
}
.header-top {
  background: var(--navy);
  color: #c9d6e4;
  font-size: 0.8rem;
  padding: 7px 0;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.header-top a:hover { color: var(--gold); }
.header-top .socials { display: flex; gap: 14px; }
.header-top .socials a { display: inline-flex; align-items: center; gap: 5px; }

.header-main .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 42px; height: 42px; }
.brand > span { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name {
  font-size: 1.45rem; font-weight: 800; color: var(--navy);
  letter-spacing: 1px;
}
.brand-name span { color: var(--gold); }
.brand-tag { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); display: block; white-space: nowrap; }

/* 中间导航：占满弹性空间，自适应挤压不换行 */
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; justify-content: center; flex-wrap: nowrap; }
.main-nav a {
  display: block; padding: 10px 12px;
  font-weight: 600; font-size: 0.92rem; color: var(--text);
  border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--silver); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--navy); font-size: 0.95rem; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px;
  background: var(--navy); margin: 5px auto;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(10, 31, 54, .78), rgba(10, 31, 54, .62)),
    repeating-linear-gradient(115deg, #12365c 0 140px, #0e2a47 140px 280px);
  color: var(--white);
  padding: 90px 0 100px;
}
.hero-inner { max-width: 900px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 1.08rem; color: #d7e1ec; margin-bottom: 28px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 58px;
}
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: block;
}
.hero-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hero-card .visual { height: 150px; }
.hero-card .body { padding: 18px 20px 22px; }
.hero-card h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 6px; }
.hero-card p { color: #b9c8d8; font-size: 0.88rem; margin: 0 0 10px; }
.hero-card .tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase;
}

/* ---------- Category strip ---------- */
.cat-strip { background: var(--white); border-bottom: 1px solid var(--silver-dark); }
.cat-strip .container {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0;
}
.cat-chip {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--silver-dark);
  font-size: 0.85rem; font-weight: 600; color: var(--navy);
  transition: .2s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--silver-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .visual {
  height: 190px;
  border-bottom: 1px solid var(--silver);
  position: relative;
  overflow: hidden;
}
.product-card .visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy-dark);
  font-size: 0.68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 1px; text-transform: uppercase;
  z-index: 2;
}
.product-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 1.4px; text-transform: uppercase; }
.product-card h3 { font-size: 1.02rem; margin: 6px 0 8px; }
.product-card p { font-size: 0.86rem; color: var(--text-light); flex: 1; }
.product-card .card-actions { display: flex; gap: 10px; margin-top: 14px; }
.corner-visual {
  background: #0a0a0a;
  height: 190px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--silver);
}
.corner-visual a {
  display: flex;
  height: 100%;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.corner-visual img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
.corner-card .btn { margin-top: 12px; }
.corner-card .card-actions .btn { margin-top: 0; }
.price-ask {
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  padding: 8px 0;
}
.show-all {
  text-align: center; margin-top: 40px;
}

/* ---------- About / split sections ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 54px; align-items: center;
}
.split .visual-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.checklist li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
  color: var(--text);
}
.checklist li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.split .lead { color: var(--text-light); margin-bottom: 20px; }
.split .btn { margin-top: 8px; }

/* stats */
.stats-band { background: var(--navy); color: var(--white); padding: 52px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num {
  font-size: 2.3rem; font-weight: 800; color: var(--gold);
  line-height: 1.1;
}
.stat .lbl { color: #b9c8d8; font-size: 0.88rem; margin-top: 6px; }

/* ---------- Why choose us ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
}
.advantage {
  background: var(--white);
  border: 1px solid var(--silver-dark);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: .25s;
}
.advantage:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.advantage .ico {
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--silver);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.advantage h3 { font-size: 1rem; margin-bottom: 6px; }
.advantage p { font-size: 0.84rem; color: var(--text-light); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--silver-dark);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  font-weight: 800; margin-bottom: 10px;
}
.step h4 { font-size: 0.92rem; }
.step p { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testi {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--silver-dark);
  box-shadow: var(--shadow);
}
.testi .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testi p { font-size: 0.92rem; color: var(--text); font-style: italic; }
.testi .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testi .who strong { display: block; color: var(--navy); font-size: 0.92rem; }
.testi .who span { font-size: 0.78rem; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--silver-dark);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: none; border: none; cursor: pointer;
  font-size: 0.98rem; font-weight: 600; color: var(--navy);
  text-align: left;
}
.faq-q .chev { transition: .3s; color: var(--gold-dark); font-size: 1rem; }
.faq-item.open .chev { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-a p { padding: 0 20px 18px; color: var(--text-light); font-size: 0.9rem; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(242,169,0,.94), rgba(217,145,0,.94)),
    var(--gold);
  padding: 56px 0;
}
.cta-band .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy-dark); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: #4a3a10; margin-top: 6px; }
.cta-band .btn-navy { background: var(--navy-dark); }
.cta-band .btn-navy:hover { background: var(--navy); }

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px;
}
.contact-info-card {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 34px 30px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 18px; }
.contact-info-card li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-card li .ico { color: var(--gold); font-size: 1.05rem; }
.contact-info-card li strong { display: block; font-size: 0.9rem; }
.contact-info-card li span, .contact-info-card li a { color: #c9d6e4; font-size: 0.9rem; }
.contact-info-card a:hover { color: var(--gold); }

.form-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--silver-dark);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--silver-dark);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c8d8; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 60px 0 44px;
}
.footer-grid h4 {
  color: var(--white); font-size: 0.95rem;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { font-size: 0.88rem; margin: 14px 0 18px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-soft);
  display: flex; align-items: center; justify-content: center;
  transition: .25s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Floating contact (WhatsApp + Phone) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: waPulse 1.8s infinite;
}
@keyframes waPulse {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* 悬浮电话按钮（WhatsApp 悬浮钮上方） */
.tel-float {
  position: fixed; right: 22px; bottom: 94px; z-index: 1200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 42, 71, .45);
  transition: transform .25s ease;
}
.tel-float:hover { transform: scale(1.08); }
.tel-float svg { width: 26px; height: 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    linear-gradient(rgba(10, 31, 54, .80), rgba(10, 31, 54, .68)),
    repeating-linear-gradient(115deg, #12365c 0 140px, #0e2a47 140px 280px);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-hero p { color: #c9d6e4; margin-top: 10px; }
.breadcrumb { font-size: 0.82rem; color: #9fb2c6; margin-top: 14px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Filter tabs ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--silver-dark);
  background: var(--white);
  font-weight: 600; font-size: 0.86rem; color: var(--navy);
  cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.product-card.hidden,
.gallery-item.hidden,
.gallery-cat-heading.hidden { display: none; }

.gallery-cat-heading {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 1.1rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin: 18px 0 4px;
}
.gallery-cat-heading .cat-actions {
  display: flex; gap: 8px; margin-left: auto;
}
.gallery-cat-heading .cat-actions .btn { margin: 0; }

/* ---------- Factory equipment ---------- */
.equip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.equip {
  background: var(--white); border: 1px solid var(--silver-dark);
  border-radius: var(--radius); overflow: hidden;
  transition: .25s;
}
.equip:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.equip .visual { height: 170px; }
.equip .body { padding: 18px 20px; }
.equip h3 { font-size: 1rem; }
.equip p { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
/* blinds 页：卡片化的产品图，照片填满视觉区 */
.gallery-grid .corner-card .corner-visual { background: #eef2f6; }
.gallery-grid .corner-card .corner-visual img { object-fit: cover; width: 100%; height: 100%; max-height: 100%; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
  background: var(--white); aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(10,31,54,.85));
  color: var(--white); font-size: 0.85rem;
  padding: 34px 14px 12px;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- SVG visual helpers (product mockups) ---------- */
.visual { background: var(--silver); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.visual svg { width: 100%; height: 100%; }
.visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual video, .visual-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.visual-cap { font-size: 0.84rem; color: var(--text-light); padding: 10px 2px 0; }

/* ---------- Video tour groups ---------- */
.tour-group { margin-top: 46px; }
.tour-group:first-of-type { margin-top: 0; }
.tour-group h3 {
  font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy); border-left: 4px solid var(--gold);
  padding-left: 12px; margin-bottom: 18px;
}

.video-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin-top:28px; }
.video-grid-3 { grid-template-columns:repeat(3,1fr); }
.video-card { background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.video-card video,
.video-card img { width:100%; height:220px; object-fit:cover; display:block; background:#000; }
.video-card p { padding:14px 16px; margin:0; font-size:.95rem; color:var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) and (min-width: 769px) {
  .header-main .container { gap: 12px; }
  .main-nav a { padding: 9px 9px; font-size: 0.84rem; }
  .header-cta { gap: 8px; }
  .header-cta .header-phone { display: none; }
  .btn.btn-sm { padding: 9px 14px; font-size: 0.82rem; }
}

@media (max-width: 1024px) {
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .video-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* 防止任何子元素撑破视口 */
  html, body { overflow-x: hidden; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .main-nav a { padding: 13px 22px; }
  .header-cta .header-phone { display: none; }

  /* 顶栏：移动端隐藏电话+居中，让顶部条不溢出 */
  .header-top { font-size: 0.75rem; padding: 6px 0; }
  .header-top .container { justify-content: center; gap: 8px; }
  .header-top .top-left { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-top .top-left a:nth-of-type(2) { display: none; } /* 隐藏电话，仅留邮箱 */

  /* Header 主行：缩小品牌 + 紧凑按钮，避免横向溢出 */
  .header-main .container { padding: 10px 0; gap: 10px; }
  .brand svg { width: 36px; height: 36px; }
  .brand-name { font-size: 1.15rem; letter-spacing: 0.5px; }
  .brand-tag { display: none; }
  .header-cta .btn { padding: 9px 12px; font-size: 0.82rem; white-space: nowrap; }

  /* 视频与 iframe 保证不溢出 */
  .video-card iframe, .visual iframe { max-width: 100%; }

  .hero-cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .header-top .container { justify-content: center; }
  .header-top .top-right { display: none; }
  .video-grid, .video-grid-3 { grid-template-columns: 1fr; }
  /* 兜底：避免 WeChat iOS WKWebView 对 grid auto-fill 解析异常造成布局错位 */
  .product-grid, .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* 容器在极窄屏幕去除左右内边距 */
  .container { width: 100%; padding: 0 14px; }
  .header-top .container { padding: 0 10px; justify-content: center; }
  .header-main .container { padding: 10px 14px; gap: 8px; }
  .header-cta .btn { padding: 8px 10px; font-size: 0.78rem; }
  .brand-name { font-size: 1rem; letter-spacing: 0; }
  .brand svg { width: 32px; height: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  /* 悬浮按钮在小屏略缩小，避免遮挡 */
  .tel-float, .wa-float { width: 50px; height: 50px; }
  .tel-float svg, .wa-float svg { width: 24px; height: 24px; }
}

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; vertical-align: middle; }
.lang-switch .lang-btn {
  padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600;
  text-decoration: none; line-height: 1.7; cursor: pointer;
  background: rgba(255,255,255,.18); color: inherit; transition: background .15s, color .15s;
}
.lang-switch .lang-btn:hover { opacity: 1; }
.lang-switch .lang-btn.active { background: var(--gold); color: var(--navy); }

/* 桌面端：header-top 暗色背景下的切换器 */
.header-top .lang-switch .lang-btn { color: rgba(255,255,255,.85); }
.header-top .lang-switch .lang-btn:hover { color: #fff; }
.header-top .lang-switch .lang-btn.active { background: var(--gold); color: var(--navy); }

/* 移动端菜单内语言选择器：桌面端隐藏，移动端显示 */
.lang-switch-li { display: none; }
@media (max-width: 768px) {
  .lang-switch-li {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-top: 1px solid #eef2f7;
  }
  .lang-switch-label { font-weight: 700; font-size: .92rem; color: var(--navy); white-space: nowrap; }
  .lang-switch-mobile { margin-left: 0; }
  .lang-switch-mobile .lang-btn { background: var(--silver); color: var(--navy); }
  .lang-switch-mobile .lang-btn.active { background: var(--gold); color: var(--navy); }
  /* 桌面端切换器在移动端隐藏（改用菜单内选择器） */
  .lang-switch-desktop { display: none !important; }
}
@media (min-width: 769px) {
  .lang-switch-mobile { display: none; }
}

/* ---------- Form messages ---------- */
.form-msg { margin-top: 14px; text-align: center; font-weight: 600; font-size: .92rem; }
.form-msg-ok { color: #1a7f37; }
.form-msg-err { color: #d14343; }
button[type="submit"]:disabled { opacity: .65; cursor: wait; }

/* ---------- Turnstile ---------- */
.cf-turnstile { display: flex; justify-content: center; margin-bottom: 14px; min-height: 0; }
.cf-turnstile:empty { display: none; }

