/* ============================================================
   HSIN DA Relay — Global Relay Manufacturer Website
   Style: Bold, Minimal, Professional
   Palette: Navy #0E2A47 / Red #D62828 / Light #F5F7FA
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-dark: #081c30;
  --navy-light: #16406b;
  --red: #d62828;
  --red-dark: #b01e1e;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e5e9f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, 0.16);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ================= Topbar ================= */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-certs { color: #ffd166; font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }

/* ================= Header / Nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14, 42, 71, 0.10); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--navy); }
.brand-red { color: var(--red); }
.brand-sub { font-size: 10.5px; color: var(--text-light); letter-spacing: 1.5px; text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--red); background: rgba(214, 40, 40, 0.06); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher {
  display: inline-flex;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--navy); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--navy); }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45); }

.mobile-toggle { display: none; background: none; border: none; color: var(--navy); }

/* ================= Hero ================= */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-cover.jpg") center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 28, 48, 0.94) 0%, rgba(14, 42, 71, 0.82) 45%, rgba(14, 42, 71, 0.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; max-width: 780px; }
.hero-tag {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd166;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-desc { font-size: clamp(15px, 2vw, 19px); color: rgba(255, 255, 255, 0.85); margin-bottom: 34px; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; margin-top: 42px; flex-wrap: wrap; }
.hero-badges span { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.75); letter-spacing: 1px; }

.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.25s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(214, 40, 40, 0.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(214, 40, 40, 0.45); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); }
.btn-lg { padding: 16px 38px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ================= Sections ================= */
.section { padding: 90px 0; }
.section-light { background: var(--bg-light); }
.section-alt { background: var(--bg-white); }
.section-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
}

.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-header.left { text-align: left; }
.section-header h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  border-radius: 4px;
  margin-top: 16px;
}
.section-header.center h2::after { margin-left: auto; margin-right: auto; }
.section-header p { color: var(--text-light); font-size: 16.5px; margin-top: 16px; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255, 255, 255, 0.75); }
.section-dark .section-header h2::after { background: #ffd166; }

/* ================= Stats ================= */
.stats-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 64px 0; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.stat-num { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; color: #fff; line-height: 1; }
.stat-suffix { font-size: 24px; font-weight: 700; color: #ffd166; margin-left: 2px; }
.stat-item p { margin-top: 10px; color: rgba(255, 255, 255, 0.8); font-size: 15px; letter-spacing: 0.5px; }

/* ================= Advantage ================= */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: all 0.3s;
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.adv-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(14, 42, 71, 0.07);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.advantage-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.advantage-card p { font-size: 14.5px; color: var(--text-light); }

/* ================= Products ================= */
.category-tabs { display: flex; justify-content: center; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 34px;
  transition: all 0.25s;
}
.cat-tab span { font-size: 16px; font-weight: 700; color: var(--text); }
.cat-tab small { font-size: 11px; color: var(--text-light); letter-spacing: 0.5px; }
.cat-tab.active { border-color: var(--navy); background: var(--navy); box-shadow: var(--shadow); }
.cat-tab.active span { color: #fff; }
.cat-tab.active small { color: rgba(255, 255, 255, 0.75); }

.category-intro {
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
}

.common-specs {
  display: flex;
  justify-content: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 42, 71, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.model-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(14, 42, 71, 0.2); }
.model-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-name { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: 0.3px; }
.model-cross { font-size: 12px; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 4px 11px; font-weight: 600; white-space: nowrap; }
.model-specs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.model-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.model-spec:last-child { border-bottom: none; }
.model-spec .k { color: var(--text-light); flex-shrink: 0; }
.model-spec .v { color: var(--text); text-align: right; font-weight: 500; }
.model-inquire {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 9px;
  transition: background 0.2s;
}
.model-inquire:hover { background: var(--red); }

.products-cta {
  margin-top: 46px;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 42, 71, 0.05), rgba(214, 40, 40, 0.05));
  border: 1px dashed rgba(14, 42, 71, 0.25);
  border-radius: var(--radius);
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.products-cta p { font-size: 16px; color: var(--navy); font-weight: 500; }

/* ================= Hot Models ================= */
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hot-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.hot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ffd166);
  opacity: 0;
  transition: opacity 0.3s;
}
.hot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hot-card:hover::before { opacity: 1; }
.hot-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.hot-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(14, 42, 71, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.hot-card h4 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.hot-card .hot-spec { font-size: 13.5px; color: var(--text-light); margin-bottom: 14px; }
.hot-card a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
}
.hot-card a:hover { text-decoration: underline; }

/* ================= Applications ================= */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  transition: all 0.3s;
}
.app-card:hover { background: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-icon { font-size: 40px; margin-bottom: 12px; }
.app-card h4 { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.app-card:hover h4 { color: #fff; }

/* ================= Quality ================= */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quality-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
}
.quality-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.q-badge {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--navy);
  background: rgba(14, 42, 71, 0.08);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 7px 16px;
  margin-bottom: 14px;
}
.q-red { color: var(--red); border-color: var(--red); background: rgba(214, 40, 40, 0.08); }
.q-orange { color: #c2410c; border-color: #c2410c; background: rgba(194, 65, 12, 0.08); }
.q-blue { color: #1d4ed8; border-color: #1d4ed8; background: rgba(29, 78, 216, 0.08); }
.q-green { color: #047857; border-color: #047857; background: rgba(4, 120, 87, 0.08); }
.q-gray { color: #475569; border-color: #475569; background: rgba(71, 85, 105, 0.08); }
.quality-card h4 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.quality-card p { font-size: 14px; color: var(--text-light); }
.quality-motto {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: #ffd166;
  font-weight: 600;
  font-size: 15.5px;
  padding: 18px 26px;
  border-radius: var(--radius);
  text-align: center;
}

/* ================= Service ================= */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.3s;
}
.service-card:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.s-icon { font-size: 38px; margin-bottom: 14px; }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

/* ================= Process ================= */
.process-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 150px;
  max-width: 210px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num {
  font-size: 30px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  margin-bottom: 10px;
}
.step h4 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-light); }
.step-arrow { align-self: center; font-size: 26px; color: var(--red); font-weight: 700; padding: 0 2px; }

/* ================= About ================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-text p { font-size: 15.5px; color: var(--text-light); margin-bottom: 16px; }
.about-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-list li {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.about-list strong { color: var(--navy); }
.about-media { display: grid; gap: 22px; }
.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s; }
.media-card:hover img { transform: scale(1.04); }
.media-card span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(8, 28, 48, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* ================= FAQ ================= */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(14, 42, 71, 0.25); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-light); }

/* ================= CTA Banner ================= */
.cta-banner {
  background: linear-gradient(120deg, var(--red) 0%, #b01e1e 60%, #8f1616 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { font-size: 17px; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; }
.cta-inner .hero-cta { justify-content: center; }

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 8px; margin-bottom: 24px; }
.info-item {
  display: flex;
  gap: 16px;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px 18px;
  align-items: flex-start;
}
.info-icon { font-size: 22px; line-height: 1.4; }
.info-item h4 { font-size: 14px; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.info-item p, .info-item a { font-size: 15px; color: var(--text); font-weight: 500; }
.info-item a:hover { color: var(--red); }
.wa-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 18px;
  border-radius: 12px;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.wa-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45); }

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--text-light); text-align: center; }

/* ================= Footer ================= */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-top: 14px; max-width: 320px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; color: rgba(255, 255, 255, 0.65); transition: color 0.2s; }
.footer-links a:hover { color: #ffd166; }
.footer-contact p { font-size: 14.5px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.65); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.lang-switcher-footer .lang-btn { color: rgba(255, 255, 255, 0.7); }
.lang-switcher-footer .lang-btn.active { background: #fff; color: var(--navy); }
.lang-switcher-footer .lang-btn:hover:not(.active) { color: #fff; }

/* ================= Floating ================= */
.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  z-index: 90;
  animation: waPulse 2.4s infinite;
  transition: transform 0.2s;
}
.floating-wa:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.back-top {
  position: fixed;
  right: 26px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 90;
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red); }

/* ================= Toast ================= */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
  z-index: 200;
  max-width: 92vw;
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { background: #15803d; }
.toast.error { background: var(--red); }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  .topbar-certs { display: none; }
  .mobile-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 5%;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--bg-light); border-radius: 0; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-actions .wa-btn span { display: none; }
  .nav-actions .wa-btn { padding: 10px 13px; }

  .section { padding: 64px 0; }
  .hero { min-height: 88vh; }
  .hero-content { padding: 70px 0 90px; }

  .advantage-grid, .model-grid, .hot-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .quality-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; }
  .step-arrow { transform: rotate(90deg); padding: 6px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-list { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .stat-item::after { display: none; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
}

/* ============================================================
   v2 追加：产品系列分组 / 型号卡片 / 规格弹层 / 双联系弹卡
   ============================================================ */

/* ---------- 产品分组容器 ---------- */
.model-grid { display: block; }
.series-group {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.series-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.series-group-head h4 { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: 0.3px; }
.series-group-head span { font-size: 13px; color: var(--text-light); }
.model-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 型号卡片（简要信息） ---------- */
.model-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 10px;
  overflow: hidden;
}
.model-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.model-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(214, 40, 40, 0.07);
  border: 1px solid rgba(214, 40, 40, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.model-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-spec {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-white);
  border: 1.5px solid var(--navy);
  border-radius: 9px;
  transition: all 0.2s;
}
.btn-spec:hover { background: var(--navy); color: #fff; }
.model-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #128c4b;
  background: rgba(37, 211, 102, 0.09);
  border: 1.5px solid rgba(37, 211, 102, 0.5);
  border-radius: 9px;
  transition: all 0.2s;
}
.model-inquire:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* ---------- 热销卡片链接行 ---------- */
.hot-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.hot-spec-btn {
  border: none;
  background: none;
  padding: 2px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--red);
  transition: color 0.2s;
}
.hot-spec-btn:hover { color: var(--red); }
.hot-links a { font-size: 13.5px; font-weight: 700; color: #128c4b; }
.hot-links a:hover { color: #25d366; }

/* ---------- 完整规格弹层 ---------- */
.spec-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.spec-modal.open { display: block; }
.spec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 48, 0.62);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}
.spec-modal-panel {
  position: relative;
  max-width: 840px;
  margin: 4vh auto;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: 18px;
  padding: 30px 34px 34px;
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.spec-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 38px;
  height: 38px;
  margin: -6px -6px 0 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.spec-modal-close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.spec-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-img {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.modal-head-text { flex: 1; min-width: 0; }
.spec-modal-cat {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
}
.spec-modal-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.spec-modal-feats {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.spec-modal-feats h5, .spec-tbl-wrap h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.spec-modal-feats ul li { font-size: 14px; padding: 3px 0; color: var(--text); }
.spec-modal-feats p { font-size: 14px; color: var(--text); }
.spec-tbl-wrap { margin-bottom: 18px; }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-tbl tbody tr:nth-child(even) { background: var(--bg-light); }
.spec-tbl td.k { width: 46%; color: var(--text-light); }
.spec-tbl td.v { font-weight: 600; color: var(--text); }
.spec-order-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: rgba(214, 40, 40, 0.05);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
/* ---------- 订购信息：代码示例 + 字段表 ---------- */
.order-block { margin-bottom: 18px; }
.order-code {
  font-family: "Consolas", "Menlo", "Courier New", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(14, 42, 71, 0.07), rgba(214, 40, 40, 0.06));
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  word-break: break-all;
}
.order-tbl td.k { width: 38%; color: var(--text-light); }
.order-tbl td.v { font-weight: 600; color: var(--text); }
.spec-modal-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 2px solid var(--navy);
}
.spec-modal-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.spec-cert-note { font-size: 12.5px; color: var(--text-light); }

/* ---------- 询盘图标：国内/海外双联系弹卡 ---------- */
.wa-wrap { position: relative; display: inline-flex; }
.cp-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 500px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 0;
  display: none;
  z-index: 150;
}
.wa-wrap:hover .cp-pop, .wa-wrap.open .cp-pop { display: flex; flex-wrap: wrap; animation: modalUp 0.2s ease; }
.cp-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: var(--bg-white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.cp-col { flex: 1 1 42%; min-width: 0; padding: 0 16px; }
.cp-col h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.cp-flag { font-size: 15px; }
.cp-col a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
  transition: background 0.15s, color 0.15s;
}
.cp-col a:hover { background: var(--bg-light); color: var(--navy); }
.cp-ico {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cp-ico.wa { background: rgba(37, 211, 102, 0.14); }
.cp-who { margin-top: 8px; font-size: 12.5px; color: var(--text-light); }
.cp-divider { width: 1px; background: var(--border); margin: 2px 0; flex-shrink: 0; }

/* 浮动按钮弹卡：向上弹出 */
.wa-wrap-float { position: fixed; right: 22px; bottom: 24px; z-index: 90; display: block; }
.wa-wrap-float .floating-wa { position: static; }
.cp-pop-float { top: auto; bottom: calc(100% + 14px); }
.cp-pop-float::before { top: auto; bottom: -6px; border-left: none; border-top: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- v2 响应式 ---------- */
@media (max-width: 1024px) {
  .model-grid-inner { grid-template-columns: repeat(2, 1fr); }
  .cp-pop { width: 390px; }
}
@media (max-width: 768px) {
  .model-grid-inner { grid-template-columns: 1fr; }
  .series-group { padding: 16px 14px 12px; }
  .cp-pop { width: min(92vw, 420px); flex-direction: column; padding: 14px 0; }
  .cp-pop::before { display: none; }
  .cp-divider { width: auto; height: 1px; margin: 12px 20px; }
  .spec-modal-panel { margin: 0; max-width: none; width: 100%; max-height: 100vh; border-radius: 0; padding: 22px 16px 28px; }
  .spec-modal-head h3 { font-size: 21px; }
  .model-actions { flex-direction: column; }
}

/* ---------- 全站询盘弹卡补充样式 ---------- */
.wa-wrap-inline { display: inline-flex; position: relative; }
.cp-contact-link {
  width: 100%;
  flex-basis: 100%;
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 9px 0 4px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s;
}
.cp-contact-link:hover { color: var(--red); }
/* 卡片内弹卡：右对齐、加宽以容纳邮箱 */
.model-actions .cp-pop,
.hot-links .cp-pop,
.spec-modal-foot .cp-pop { right: 0; }
/* 弹层内弹卡向上弹出（避免被弹层底部截断） */
.spec-modal-foot .wa-wrap:hover .cp-pop,
.spec-modal-foot .wa-wrap.open .cp-pop {
  top: auto;
  bottom: calc(100% + 12px);
  right: auto;
  left: 0;
}
.spec-modal-foot .cp-pop::before {
  top: auto;
  bottom: -6px;
  right: auto;
  left: 26px;
  border-left: none;
  border-top: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Hero / CTA 弹卡居中 */
.hero-cta .cp-pop { right: auto; left: 50%; transform: translateX(-50%); }
.hero-cta .cp-pop::before { right: auto; left: 50%; transform: translateX(-50%) rotate(45deg); }
@media (max-width: 768px) {
  .hero-cta .cp-pop { left: 0; transform: none; }
}
