@charset "UTF-8";
/* ============================================================
   BOOM BARRIER GATE FACTORY - Main Stylesheet
   Industrial B2B Export Website
   ============================================================ */

:root {
  --blue: #1e3a5f;
  --blue-dark: #12253d;
  --blue-light: #2c5282;
  --orange: #e05d1a;
  --orange-hover: #c24e15;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --dark: #111827;
  --text: #1f2937;
  --text-light: #4b5563;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 2px 16px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
  --max-width: 1400px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; scroll-padding-top: 76px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: 76px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--blue-dark); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--blue-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title p { color: var(--text-light); max-width: 640px; margin: 0.5rem auto 0; font-size: 1.05rem; }
.section-dark .section-title p { color: rgba(255,255,255,0.9); }

/* ===== Header ===== */
.header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* ===== Language Dropdown Styles ===== */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}
.lang-dropdown-btn {
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.lang-dropdown-btn:hover {
  background: #e9ecef;
  border-color: #d0d7de;
}
.lang-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  min-width: 110px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1000;
  display: none !important;
  border: 1px solid var(--gray-100);
  margin-top: 6px;
}
.lang-dropdown-content.show {
  display: block !important;
}
.lang-dropdown-content a {
  color: var(--text);
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-dropdown-content a:hover {
  background-color: var(--gray-100) !important;
  color: var(--orange) !important;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; height: 76px; max-width: 1440px; margin: 0 auto;
  flex-wrap: nowrap; overflow: hidden;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); white-space: nowrap;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo span { color: var(--orange); }
.header-contact {
  display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-light);
  margin-left: 8px; margin-right: 8px; flex-shrink: 0;
}
.header-contact a {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 8px; border-radius: 20px; font-weight: 600; font-size: 0.78rem;
  background: #e8f5e9; color: #2e7d32 !important;
  transition: background var(--transition); white-space: nowrap; flex-shrink: 0;
}
.header-contact a:hover { background: #c8e6c9; }
.header-contact .header-email {
  color: var(--text-light); font-size: 0.8rem; white-space: nowrap; flex-shrink: 0;
}

.nav { display: flex; gap: 1px; align-items: center; flex-shrink: 0; }
.nav a {
  display: block; padding: 8px 8px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  transition: all 0.3s ease;
  white-space: nowrap; flex-shrink: 0;
}
.nav a.lang-switch {
  padding: 5px 5px; font-size: 0.75rem !important; opacity: 0.8 !important; 
  border: 1px solid #eaeaea; border-radius: 5px; margin-left: 1px;
  white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center;
}
.nav a.lang-switch:hover {
  background: #f8f9fa; opacity: 1 !important; border-color: #d0d7de;
}
.nav a:not(.btn-nav):not(.lang-switch):hover, .nav a.active:not(.btn-nav):not(.lang-switch) { 
  background: #f0f4f8; color: var(--blue); 
}

/* Fix header overflow clipping the language dropdown */
.header-inner {
  overflow: visible !important;
}

/* Language Dropdown Hover Styles */
.lang-dropdown:hover .lang-dropdown-content {
  display: block !important;
}
.lang-dropdown-content a:hover {
  background-color: var(--gray-50) !important;
  color: var(--orange) !important;
}
.lang-dropdown-btn:hover {
  background-color: #e9ecef !important;
  border-color: #d0d7de !important;
}
.nav .btn-nav {
  background: var(--orange); color: var(--white) !important; padding: 8px 12px;
  border-radius: 8px; margin-left: 4px; font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  white-space: nowrap; flex-shrink: 0;
}
.nav .btn-nav:hover { 
  background: var(--orange-hover); transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4); 
}

/* 响应式隐藏头部联系方式以节省导航栏空间 */
@media (max-width: 1450px) {
  .header-email { display: none !important; }
}
@media (max-width: 1280px) {
  .header-contact { display: none !important; }
  .logo { font-size: 1.15rem; }
  .nav a { font-size: 0.82rem; padding: 8px 6px; }
  .nav .btn-nav { font-size: 0.82rem; padding: 8px 10px; }
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--blue-dark); transition: color 0.2s; }
.menu-toggle:hover { color: var(--orange); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  color: var(--white); padding: 100px 0 80px;
  min-height: 520px; display: flex; align-items: center;
}

/* Video / Canvas background container */
.hero-video-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden;
  /* Static fallback visible when canvas is paused off-screen */
  background: linear-gradient(135deg, #12253d 0%, #0d1b2e 100%);
}
.hero-video-bg canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.hero-video-bg video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(18,37,61,0.85) 0%, rgba(13,27,46,0.78) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; line-height: 1.7; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badge {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1);
  padding: 8px 16px; border-radius: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.9);
}
.hero-badge .icon { font-size: 1.2rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-align: center; cursor: pointer;
  transition: all var(--transition); border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--blue); border: 2px solid var(--blue); text-decoration: none; }
.btn-outline-dark:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ===== Trust Bar ===== */
.trust-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 60px 0; /* 增加上下内边距 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.trust-grid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px; /* 增加网格间距 */
}
.trust-item {
  text-align: center;
  flex: 1;
  min-width: 160px; /* 增加最小宽度 */
  position: relative;
  padding: 10px 20px; /* 增加元素自身的内边距 */
}
.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background-color: #dee2e6;
}
.trust-item h4 {
  color: var(--blue);
  font-size: 1.6rem;
  margin-bottom: 5px;
  font-weight: 700;
}
.trust-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .trust-item:not(:last-child)::after {
    display: none;
  }
  .trust-item {
    flex: 0 0 45%;
    margin-bottom: 20px;
  }
}

/* ===== Category Cards ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
}
.category-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px;
  box-shadow: var(--shadow); transition: all var(--transition);
  text-align: center; border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.category-card .cat-icon { font-size: 2.6rem; margin-bottom: 12px; flex-shrink: 0; }
.category-card h3 { margin-bottom: 8px; font-size: 1.15rem; flex-shrink: 0; }
.category-card p { color: var(--text-light); font-size: 1rem; margin-bottom: 16px; flex: 1; }
.category-card .btn { margin-top: auto; }

/* ===== Product Cards ===== */
.product-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  align-items: stretch; 
}
/* 当最后一排只有1个产品时，让它居中显示并占满整行宽度 */
.product-grid .product-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid .product-card:last-child:nth-child(3n+1) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-img {
  width: 100%; height: 200px; object-fit: cover; background: var(--gray-100); flex-shrink: 0;
}
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1rem; margin-bottom: 4px; line-height: 1.35; flex-shrink: 0; }
.product-info .model { font-size: 0.8rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; flex-shrink: 0; }
.product-info .series-big-title { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin: 0 0 10px; line-height: 1.3; letter-spacing: -0.2px; }
.product-info p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; flex: 1; }
.product-specs { display: flex; gap: 12px; font-size: 1rem; color: var(--text-light); margin-bottom: 12px; flex-shrink: 0; flex-wrap: wrap; }
.product-specs span { font-weight: 600; color: var(--text); }
.product-info .btn { margin-top: auto; flex-shrink: 0; }

/* ===== Why Choose Us ===== */
.reasons-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  align-items: stretch; 
}
.reason-card {
  text-align: center; padding: 28px 20px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
}
.reason-card .reason-icon { font-size: 2.4rem; margin-bottom: 12px; flex-shrink: 0; }
.reason-card h3 { font-size: 1.25rem !important; margin-bottom: 8px; flex-shrink: 0; }
.reason-card p { font-size: 1.1rem !important; color: var(--text-light); line-height: 1.6; flex: 1; }

/* ===== FAQ Grid ===== */
.faq-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  align-items: stretch; 
}
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ Card ===== */
.faq-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--blue-dark,#003366);
  border-radius: 10px;
  padding: 24px 28px;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.faq-card:hover {
  border-left-color: var(--orange,#f97316);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.faq-card .faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.faq-card .faq-q .faq-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-dark,#003366);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1px;
}
.faq-card .faq-a {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
  margin-left: 38px;
}

/* ===== Manufacturing & Quality Grid ===== */
.mfg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px auto 0;
  max-width: 1000px;
}
@media (max-width: 768px) {
  .mfg-grid { grid-template-columns: 1fr; gap: 20px; }
}
.mfg-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border-top: 4px solid var(--blue-dark);
  transition: all var(--transition);
  text-align: left;
}
.mfg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-top-color: var(--orange);
}
.mfg-icon {
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--blue-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.mfg-card:hover .mfg-icon {
  background: var(--orange);
  color: var(--white);
}
.mfg-card h3 {
  font-size: 1.35rem !important;
  margin-bottom: 12px !important;
  color: var(--dark);
}
.mfg-card p {
  color: var(--text-light) !important;
  line-height: 1.7 !important;
  font-size: 1.05rem !important;
  margin-bottom: 0 !important;
}

/* ===== SEO Article Blocks ===== */
.seo-article-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-100);
  text-align: left;
}
.section-gray .seo-article-wrapper {
  background: var(--white);
}
.seo-article-wrapper h2 {
  font-size: 1.85rem;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.35;
  text-align: center;
}
.seo-article-wrapper p.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.seo-article-wrapper p {
  margin-bottom: 18px !important;
  color: var(--text) !important;
  line-height: 1.8 !important;
  font-size: 1.05rem !important;
  text-align: justify;
}
.seo-article-wrapper h3 {
  font-size: 1.35rem !important;
  margin-top: 32px !important;
  margin-bottom: 14px !important;
  color: var(--blue-dark) !important;
}
.seo-article-wrapper .read-more-block {
  margin-top: 20px;
}
.seo-article-wrapper .read-more-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 12px 28px;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  list-style: none;
}
.seo-article-wrapper .read-more-summary::-webkit-details-marker {
  display: none;
}
.seo-article-wrapper .read-more-summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}
details[open] .read-more-summary::before {
  content: "-";
}
.seo-article-wrapper .read-more-summary:hover {
  background: #e9ecef;
  color: var(--orange);
}
.seo-article-wrapper .read-more-summary:hover::before {
  background: var(--orange);
}
@media (max-width: 768px) {
  .seo-article-wrapper {
    padding: 32px 24px;
  }
  .seo-article-wrapper p {
    text-align: left;
  }
}

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; align-items: stretch; }
.stat-item { padding: 32px 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.stat-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--orange); line-height: 1.1; white-space: nowrap; }
.stat-label { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-top: 12px; font-weight: 600; letter-spacing: 0.5px; }

/* ===== Certifications ===== */
.cert-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.cert-item .cert-badge {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--white);
}
.cert-badge.iso { background: var(--blue-dark); }
.cert-badge.ce { background: #DC2626; }
.cert-badge.patent { background: var(--orange); }

/* ===== CTA Section ===== */
.cta-section { text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-section .btn { margin-top: 1.5rem; font-size: 1.05rem; padding: 16px 36px; }

/* ===== Page Header ===== */
.page-header {
  background: var(--blue-dark); color: var(--white); padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.5rem; }
.page-header .breadcrumb { margin-top: 8px; font-size: 1rem; color: var(--gray-300); }
.page-header .breadcrumb a { color: var(--gray-300); }
.page-header .breadcrumb a:hover { color: var(--white); }

/* Back-link inside sidebar gets a separator */
.series-sidebar a:first-of-type { margin-bottom: 0; }
.series-sidebar .sidebar-back-link {
  font-weight: 600; color: #111827;
  border-left-color: #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px; margin-bottom: 4px;
}
.series-sidebar .sidebar-back-link:hover {
  background: #f0f3ff; color: #2563EB;
  border-left-color: #2563EB;
}

/* ===== Product Category Page ===== */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
  align-items: center;
}
.filter-tag {
  padding: 6px 14px; border-radius: 20px; background: var(--gray-100);
  font-size: 0.85rem; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); font-weight: 500;
}
.filter-tag:hover, .filter-tag.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ===== Product Detail ===== */
/* Force override hardcoded inline font sizes on product card text/tables */
[style*="font-size:0.84rem"],
[style*="font-size: 0.84rem"],
[style*="font-size:0.85rem"],
[style*="font-size: 0.85rem"] {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

td[style*="padding:5px"] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
td[style*="padding:5px 14px"] {
  padding-right: 20px !important;
}

/* Ensure ALL table cells have readable text, overriding inline styles */
td {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

h3[style*="font-size: 1.4rem"],
h3[style*="font-size:1.4rem"] {
  font-size: 1.8rem !important;
  margin-bottom: 20px !important;
}

span[style*="font-size: 0.7rem"] {
  font-size: 0.85rem !important;
  padding: 4px 16px !important;
}

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail .gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); }
.product-detail .gallery img { width: 100%; height: auto; }
.product-meta { margin-bottom: 16px; }
.product-meta .model { background: var(--orange); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 0.95rem; font-weight: 600; display: inline-block; }

.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.specs-table tr { border-bottom: 1px solid var(--gray-200); }
.specs-table td { padding: 12px 16px; font-size: 1rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text); width: 40%; background: var(--gray-50); }
.specs-table td:last-child { color: var(--text-light); }

.feature-list { list-style: none; margin: 16px 0; }
.feature-list li { padding: 8px 0; font-size: 1.05rem; }
.feature-list li::before { content: '\2713'; color: var(--orange); font-weight: 700; margin-right: 10px; }

.inquiry-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--gray-200); position: sticky; top: 88px;
  box-shadow: var(--shadow-lg);
}
.inquiry-box h3 { margin-bottom: 16px; }
.inquiry-box .form-group { margin-bottom: 14px; }
.inquiry-box label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.inquiry-box input, .inquiry-box select, .inquiry-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; transition: border var(--transition);
}
.inquiry-box input:focus, .inquiry-box select:focus, .inquiry-box textarea:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(44,95,138,0.1);
}
.inquiry-box textarea { resize: vertical; min-height: 100px; }

/* ===== About Page ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 12px; color: var(--text-light); font-size: 1.05rem; }

.timeline { position: relative; padding-left: 32px; margin: 32px 0; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--blue-light); }
.timeline-item { margin-bottom: 24px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.timeline-item .year { font-weight: 800; color: var(--orange); font-size: 1.2rem; }
.timeline-item p { color: var(--text-light); font-size: 1rem; margin-top: 2px; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-item .info-icon { font-size: 1.8rem; }
.contact-info-item h4 { margin-bottom: 2px; font-size: 1.15rem; }
.contact-info-item p { color: var(--text-light); font-size: 1.05rem; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; align-items: stretch; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column;
  height: 100%;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-img { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 3rem; flex-shrink: 0; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.blog-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.blog-info .date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 4px; flex-shrink: 0; }
.blog-info h3 { font-size: 1.05rem; margin-bottom: 6px; flex-shrink: 0; }
.blog-info p { font-size: 1rem; color: var(--text-light); margin-bottom: 12px; flex: 1; line-height: 1.6; }
.blog-info a:last-child { margin-top: auto; flex-shrink: 0; font-weight: 600; font-size: 0.95rem; }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article h2 { margin-top: 36px; }
.blog-article p { margin-bottom: 16px; color: var(--text-light); font-size: 1rem; line-height: 1.8; }
.blog-article ul { margin: 16px 0 16px 24px; }
.blog-article li { margin-bottom: 8px; color: var(--text-light); }
.blog-article .toc { background: var(--gray-50); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 28px; }
.blog-article .toc h3 { margin-bottom: 10px; }
.blog-article .toc ol { margin-left: 20px; }
.blog-article .toc li { margin-bottom: 6px; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+ '; color: var(--orange); font-weight: 700; }
.faq-item[open] summary::before { content: '- '; }
.faq-item p { margin-top: 8px; color: var(--text-light); font-size: 1.05rem; line-height: 1.6; }

/* ===== Read-More Accordion (collapsible SEO text blocks) ===== */
.read-more-block {
  transition: all 0.2s ease;
  margin-top: 10px;
}
.read-more-block[open] {
  margin-bottom: 20px;
}
.read-more-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
  padding: 12px 0;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}
.read-more-summary::-webkit-details-marker { display: none; }
.read-more-summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.read-more-block[open] .read-more-summary::before {
  content: '-';
  background: var(--orange);
}
.read-more-summary:hover {
  color: var(--orange);
}
.read-more-summary:hover::before {
  background: var(--orange);
}
.read-more-block > div {
  padding: 10px 0 20px 0;
}

/* ===== Footer ===== */
.footer { background: var(--gray-50); border-top: 1px solid var(--gray-200); color: var(--text-light); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--text); margin-bottom: 16px; font-size: 1.1rem; }
.footer p, .footer a { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.footer a:hover { color: var(--blue); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 24px; text-align: center; font-size: 0.9rem; color: var(--text-light); }

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.fade-up     { transform: translateY(40px); }
.reveal.fade-down   { transform: translateY(-30px); }
.reveal.fade-left   { transform: translateX(-40px); }
.reveal.fade-right  { transform: translateX(40px); }
.reveal.scale-in    { transform: scale(0.92); }
.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered delays for grid children */
.category-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.category-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.category-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.category-grid .reveal:nth-child(4) { transition-delay: 0.20s; }
.category-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.category-grid .reveal:nth-child(6) { transition-delay: 0.30s; }
.category-grid .reveal:nth-child(7) { transition-delay: 0.35s; }
.category-grid .reveal:nth-child(8) { transition-delay: 0.40s; }

.product-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.product-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.product-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.product-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.product-grid .reveal:nth-child(5) { transition-delay: 0.33s; }
.product-grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.product-grid .reveal:nth-child(7) { transition-delay: 0.47s; }
.product-grid .reveal:nth-child(8) { transition-delay: 0.54s; }

.reasons-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.reasons-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.reasons-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.reasons-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.reasons-grid .reveal:nth-child(5) { transition-delay: 0.33s; }
.reasons-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

.blog-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.blog-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.blog-grid .reveal:nth-child(3) { transition-delay: 0.25s; }

.stats-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.stats-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

.cert-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.cert-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.cert-grid .reveal:nth-child(3) { transition-delay: 0.20s; }
.cert-grid .reveal:nth-child(4) { transition-delay: 0.30s; }
.cert-grid .reveal:nth-child(5) { transition-delay: 0.40s; }
.cert-grid .reveal:nth-child(6) { transition-delay: 0.50s; }

/* Image lazy-load fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  img[loading="lazy"] {
    opacity: 1;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .product-detail { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0 50px; min-height: 440px; }

  .header-contact { display: none; }
  .nav { display: none !important; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); box-shadow: var(--shadow-lg); padding: 12px; z-index: 999; }
  .nav.open { display: flex !important; }
  .menu-toggle { display: block; }

  .section { padding: 48px 0; }
  .product-detail { gap: 32px; }
  .category-grid, .product-grid, .reasons-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item:last-child:nth-child(odd) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cert-grid { gap: 20px; }
  /* Product card: reduce image height and padding on mobile */
  .product-card img { height: 180px !important; }
  .product-card [style*="padding: 26px"] { padding: 18px 16px !important; }
  .product-card [style*="padding: 24px"] { padding: 16px !important; }
  /* Category card: reduce padding on mobile */
  .category-card { padding: 20px 16px !important; }
  
  /* Mobile body font size boost for better readability */
  html { font-size: 16px; } /* Return to standard base, let rems scale naturally */
  body { font-size: 1.05rem; }
}

/* ===== Series Sidebar Nav ===== */
.series-layout { display: flex; gap: 36px; align-items: flex-start; }
.series-sidebar {
  flex: 0 0 230px;
  position: sticky; top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 8px 0;
  z-index: 10;
  /* Hide scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.series-sidebar::-webkit-scrollbar { width: 4px; }
.series-sidebar::-webkit-scrollbar-track { background: transparent; }
.series-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.series-sidebar-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #9ca3af; padding: 12px 18px 8px;
}
.series-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-size: 0.95rem; font-weight: 500; color: #4b5563;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
  line-height: 1.35;
}
.series-sidebar a:hover { background: #f9fafb; color: #111827; }
.series-sidebar a.active {
  background: #f0f3ff; color: #2563EB;
  border-left-color: #2563EB; font-weight: 600;
}
.series-sidebar a .nav-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
  background: #f3f4f6; color: #6b7280;
}
.series-sidebar a.active .nav-num { background: #2563EB; color: #fff; }
.series-main { flex: 1 1 0; min-width: 0; }

@media (max-width: 1024px) {
  .series-layout { flex-direction: column; }
  .series-sidebar {
    flex: none; width: 100%; position: static;
    max-height: none; overflow: visible;
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 12px;
    border-radius: 12px;
  }
  .series-sidebar-title { display: none; }
  .series-sidebar a {
    padding: 8px 14px; font-size: 0.9rem;
    border-left: none; border-radius: 8px;
    background: #f9fafb;
  }
  .series-sidebar a.active { background: #2563EB; color: #fff; border: none; }
  .series-sidebar a.active .nav-num { background: rgba(255,255,255,0.25); color: #fff; }
  .series-sidebar a .nav-num { display: none; }
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 92vw; max-height: 90vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-radius: 8px;
  background: #fff;
  cursor: default;
}
.lightbox-overlay.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2.2rem; color: rgba(255,255,255,0.7);
  background: none; border: none; cursor: pointer;
  z-index: 1; line-height: 1; transition: color 0.2s;
  padding: 8px;
}
.lightbox-close:hover { color: #fff; }
/* Make card images hint they're clickable */
.product-card img[loading],
a[href*="series-"] img,
div[style*="border-radius"] img,
.category-card img { cursor: zoom-in; }

@media (max-width: 768px) {
  .lightbox-overlay img { max-width: 96vw; max-height: 85vh; }
  .lightbox-close { top: 12px; right: 16px; font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-badges { flex-direction: column; }
}

/* ===== Mobile Responsive Table Wrapper ===== */
.responsive-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

/* Mobile: force inline grid layouts to stack */
@media (max-width: 768px) {
  /* Increase mobile font size universally */
  body { font-size: 1.05rem; }
  p, li, td { font-size: 1.05rem !important; }
  
  /* Any element with inline grid-template-columns:1fr 1fr should stack */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Location page flex layouts that refuse to stack */
  [style*="flex: 0 0 320px"],
  [style*="flex:0 0 320px"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  /* Series product detail cards: image container flex:0 0 480px -> full width */
  [style*="flex: 0 0 480px"],
  [style*="flex:0 0 480px"] {
    flex: 1 1 100% !important;
    min-height: auto !important;
    padding: 28px 20px !important;
  }
  /* Series product text side: reduce padding */
  [style*="flex: 1 1 420px"],
  [style*="flex:1 1 420px"] {
    padding: 24px 20px !important;
  }
  /* Series product card: force flex column on mobile */
  [style*="display: flex; flex-wrap: wrap; margin-bottom: 32px"] {
    flex-direction: column !important;
  }
  /* Products page: reduce card image container height */
  [style*="height: 400px"] {
    height: 220px !important;
  }
  /* Products page: reduce min-width on grid */
  [style*="minmax(340px"] {
    grid-template-columns: 1fr !important;
  }
  /* Series page image max-height */
  [style*="max-height:440px"] {
    max-height: 280px !important;
  }
  /* Series page hero banner padding */
  [style*="padding: 52px 44px"] {
    padding: 32px 20px !important;
  }
  .page-header h1 {
    font-size: 2rem !important;
  }
  [style*="font-size: 2.4rem"] {
    font-size: 1.8rem !important;
  }
  /* Table white-space: nowrap -> normal on mobile */
  [style*="white-space:nowrap"] {
    white-space: normal !important;
  }
  /* Location stat flex containers */
  [style*="display: flex; gap: 16px;"]:not(.hero-cta):not(.hero-badges):not(.header-inner):not(.nav) {
    flex-wrap: wrap !important;
  }
  /* Inline min-width that prevents wrapping */
  [style*="min-width: 300px"] {
    min-width: 100% !important;
  }
  /* CTA email & WhatsApp buttons: stack vertically on mobile */
  .cta-section div[style*="margin-top: 20px"] a {
    display: block !important;
    margin-bottom: 12px;
  }
  .cta-section div[style*="margin-top: 20px"] span {
    display: none !important;
  }
  /* Product cards: ensure image always on top of specs on mobile */
  div[style*="margin-bottom: 32px"][style*="border-radius: 18px"][style*="background: #fff"] > div[style*="flex: 0 0 480px"] {
    order: -1 !important;
  }
}

/* ===== 404 Error Section ===== */
.error-section {
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.error-section h1 {
  font-size: 6rem;
  color: #e53935;
  margin-bottom: 20px;
  font-weight: 800;
}
.error-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}
.error-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
}
