/* ============ 全局样式 ============ */
:root {
  --primary: #1a4d8c;
  --primary-dark: #0f3563;
  --primary-light: #e8f0fb;
  --accent: #ff6b35;
  --text: #1a2332;
  --text-light: #5a6677;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --border: #e4e9f0;
  --shadow: 0 4px 20px rgba(26, 77, 140, 0.08);
  --shadow-hover: 0 10px 40px rgba(26, 77, 140, 0.15);
  --radius: 10px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; margin-bottom: 12px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-light); font-size: 17px; max-width: 680px; margin: 0 auto; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e55a2a; color: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(26, 77, 140, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo .logo-suffix { color: var(--accent); margin-left: 2px; }

/* Main Navigation - Right */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 24px;
}
.main-nav > a,
.main-nav > .nav-dropdown > .dropdown-toggle {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a:hover,
.main-nav > a.active,
.main-nav > .nav-dropdown.active > .dropdown-toggle,
.main-nav > .nav-dropdown:hover > .dropdown-toggle {
  color: var(--primary);
}
.main-nav > a.active {
  /* no background */
}

/* Dropdown */
.dropdown-arrow {
  transition: transform 0.25s;
  opacity: 0.6;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 77, 140, 0.12);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.nav-dropdown.hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown:not(:hover):not(.open):not(.hover) .dropdown-menu {
  transition-delay: 0.2s;
}
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
  white-space: nowrap;
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.dropdown-item.dropdown-all {
  font-weight: 600;
  color: var(--primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}

/* Header Actions - Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover {
  color: var(--primary);
}
.lang-toggle .lang-flag { font-size: 16px; line-height: 1; }
.lang-toggle .dropdown-arrow { opacity: 0.5; }
.lang-dropdown:hover .lang-toggle .dropdown-arrow,
.lang-dropdown.open .lang-toggle .dropdown-arrow {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 77, 140, 0.12);
  min-width: 160px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}
.lang-dropdown:hover .lang-menu,
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.lang-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.lang-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.lang-item .lang-flag { font-size: 16px; line-height: 1; }

/* Search Bar - Expandable */
.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.header-search-toggle { display: none; }
.header-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2px 4px 2px 12px;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s,
              box-shadow 0.2s;
  flex-shrink: 0;
  margin-left: 0;
}
.header-search-wrap.expanded .header-search-bar {
  width: 220px;
  opacity: 1;
  margin-left: 8px;
}
.header-search-wrap.expanded .header-search-bar {
  margin-left: 0;
}
.header-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.header-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  padding: 6px 4px;
  width: 100%;
  min-width: 0;
  color: var(--text);
}
.header-search-bar input::placeholder {
  color: #bbb;
}
.header-search-submit {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.header-search-submit:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Contact Button */
.header-contact-btn {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 24px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hidden on desktop, shown inside mobile drawer */
.mobile-drawer-header,
.mobile-drawer-footer,
.mobile-overlay { display: none; }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1002;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-box {
  width: 100%;
  max-width: 600px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active .search-box {
  transform: translateY(0);
}
.search-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #999;
}
.search-box input {
  flex: 1;
  font-size: 17px;
  font-weight: 400;
  border: none;
  background: transparent;
  padding: 16px 0;
  outline: none;
  color: #333;
}
.search-box input::placeholder {
  color: #bbb;
}
.search-box input:focus {
  color: #111;
}
.search-divider {
  width: 1px;
  height: 24px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.search-close {
  width: 52px; height: 52px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.search-close:hover {
  color: #333;
  background: #f5f5f5;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #1a4d8c 0%, #0f3563 100%);
  color: #fff;
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
/* 工厂大图背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenBurns 20s ease-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}
/* 暗色渐变遮罩，保证文字可读 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(15, 53, 99, 0.55) 0%, rgba(26, 77, 140, 0.45) 50%, rgba(15, 53, 99, 0.52) 100%);
}
.hero::before {
  content: ''; position: absolute; right: -200px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; max-width: 1200px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  text-align: left;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
}
.hero-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  /* Dark glass card */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 20px 20px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  isolation: isolate;
}
/* Warm glow behind product */
.hero-product::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 75% 55% at 50% 32%,
    rgba(255, 107, 53, 0.12) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s;
}
/* Top accent line */
.hero-product::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: all 0.5s;
}
.hero-product:hover::before {
  opacity: 1;
}
.hero-product:hover::after {
  left: 18%;
  right: 18%;
  background: linear-gradient(90deg, transparent, #ff8a5b, transparent);
}
.hero-product:hover {
  background: rgba(15, 35, 60, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(255, 107, 53, 0.08),
    inset 0 0 50px rgba(255, 107, 53, 0.04);
}
.hero-product img {
  max-width: 100%;
  width: 82%;
  height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
.hero-product:hover img {
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45)) brightness(1.08);
}
.hero-product-label {
  position: relative;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-top: 14px;
  margin-top: 10px;
  transition: all 0.4s;
}
/* Decorative divider */
.hero-product-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s;
}
.hero-product:hover .hero-product-label {
  color: #fff;
  letter-spacing: 2.2px;
}
.hero-product:hover .hero-product-label::before {
  width: 32px;
  background: rgba(255, 107, 53, 0.85);
}

/* Staggered entrance animation */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-product:nth-child(1) { animation: cardFadeUp 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-product:nth-child(2) { animation: cardFadeUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-product:nth-child(3) { animation: cardFadeUp 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-product:nth-child(4) { animation: cardFadeUp 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

.hero h1 { font-size: 48px; color: #fff; line-height: 1.15; margin-bottom: 20px; text-align: left; }
.hero h1 span { color: #ff8a5b; }
.hero p { font-size: 18px; opacity: 0.92; margin-bottom: 32px; max-width: 560px; text-align: left; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; justify-content: flex-start; }

/* ============ Categories Grid ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.cat-card img { width: 100%; height: 180px; object-fit: cover; }
.cat-card-body { padding: 20px; }
.cat-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card-body p { font-size: 14px; color: var(--text-light); }
.cat-card-body .more { font-size: 14px; color: var(--primary); font-weight: 600; margin-top: 10px; display: inline-block; }

/* ============ Products ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .img-wrap { position: relative; overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.product-card:hover img { transform: scale(1.06); }
.product-card .hot-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.product-card-body { padding: 16px 18px; }
.product-card-body h3 { font-size: 15px; line-height: 1.5; min-height: 46px; margin-bottom: 8px; }
.product-card-body h3 a:hover { color: var(--primary); }
.product-card-body p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-body .cat-tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }

.category-block { margin-bottom: 64px; }
.category-block:last-child { margin-bottom: 0; }
.category-block .block-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 14px;
}
.category-block .block-header h2 { font-size: 28px; }
.category-block .block-header .view-all { color: var(--primary); font-weight: 600; }

/* ============ Advantages ============ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv-card {
  background: #fff; padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all .3s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.adv-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.adv-card h3 { font-size: 19px; margin-bottom: 10px; }
.adv-card p { color: var(--text-light); font-size: 15px; }

/* ============ About Section ============ */
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; }
.about-main-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.about-stat { background: var(--primary-light); padding: 24px; border-radius: var(--radius); text-align: center; }
.about-stat .num { font-size: 34px; font-weight: 800; color: var(--primary); }
.about-stat .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* About Image with Overlay Stats (Homepage) */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.about-image-wrap .about-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.about-stats-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background: rgba(0,0,0,0.38);
}
.about-stat-o {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 12px 8px;
}
.about-stat-o .num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.about-stat-o .label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ============ Company Gallery ============ */
.company-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.company-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.company-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.company-gallery-item:hover img {
  transform: scale(1.05);
}

/* ============ CTA Banner ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #e55a2a 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.cta-banner p { opacity: 0.95; margin-bottom: 28px; font-size: 17px; }

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--bg-soft); padding: 18px 0; border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #aab; }

/* ============ Page Header ============ */
.page-header {
  background: var(--primary-dark); color: #fff; padding: 56px 0;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.page-header p { opacity: 0.9; }

/* ============ Product Detail ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; }
.product-gallery .main-img {
  width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-gallery .thumbs { display: flex; gap: 12px; margin-top: 14px; }
.product-gallery .thumbs img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 2px solid var(--border); cursor: pointer; transition: border-color .2s; }
.product-gallery .thumbs img:hover, .product-gallery .thumbs img.active { border-color: var(--primary); }
.product-info h1 { font-size: 30px; margin-bottom: 14px; }
.product-info .summary { font-size: 17px; color: var(--text-light); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.spec-table { width: 100%; margin-bottom: 28px; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 15px; }
.spec-table th { width: 40%; color: var(--text-light); background: var(--bg-soft); font-weight: 600; }
.product-info .actions { display: flex; gap: 14px; margin-bottom: 24px; }
.product-info .cat-tag { display: inline-block; font-size: 13px; color: var(--primary); background: var(--primary-light); padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.product-description { padding: 40px 0; border-top: 1px solid var(--border); }
.product-description h2 { font-size: 24px; margin-bottom: 16px; }
.product-description p { margin-bottom: 14px; color: var(--text-light); }

/* ============ Filter Sidebar ============ */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 48px 15px; }
.filter-sidebar { position: sticky; top: 90px; align-self: start; }
.filter-sidebar h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.filter-list a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 4px; }
.filter-list a:hover, .filter-list a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ============ News ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 22px; }
.news-card .date { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.news-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.news-card p { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ Contact ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-light); font-size: 15px; }
.contact-form { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* ============ Footer ============ */
.site-footer { background: #0c1a2e; color: #c6cfdb; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid p, .footer-grid a { color: #9ba8bd; font-size: 14px; line-height: 2; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-brand span { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1f2d44; padding-top: 24px; text-align: center; color: #6f7d92; font-size: 13px; }

/* ============ 404 ============ */
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-size: 96px; color: var(--primary); margin-bottom: 16px; }
.not-found h2 { font-size: 28px; margin-bottom: 12px; }
.not-found p { color: var(--text-light); margin-bottom: 24px; }

/* ============ 酷炫动效 ============ */
/* 关键帧动画定义 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-30px) translateX(15px); }
  66% { transform: translateY(15px) translateX(-15px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
  50% { box-shadow: 0 0 0 18px rgba(255, 107, 53, 0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shine {
  0% { left: -120%; }
  60%, 100% { left: 120%; }
}
@keyframes bounceArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ============ Hero 动效增强 ============ */
.hero {
  background: linear-gradient(135deg, #1a4d8c 0%, #0f3563 50%, #1a4d8c 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}
/* 动态光晕装饰 */
.hero::before {
  content: ''; position: absolute; right: -200px; top: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.35) 0%, transparent 70%);
  animation: floatSlow 14s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; left: -150px; bottom: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,77,140,0.4) 0%, transparent 70%);
  animation: floatSlow 18s ease-in-out infinite reverse;
}
/* 飘浮装饰圆 */
.hero-orb {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.hero-orb.o1 { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.hero-orb.o2 { width: 50px; height: 50px; top: 60%; left: 75%; animation-delay: 2s; }
.hero-orb.o3 { width: 120px; height: 120px; top: 70%; left: 15%; animation-delay: 4s; background: rgba(255,138,91,0.08); }
.hero-orb.o4 { width: 40px; height: 40px; top: 30%; left: 85%; animation-delay: 1s; }

/* Hero 文字逐项淡入 */
.hero h1 { animation: fadeInDown 1s ease 0.2s both; }
.hero p { animation: fadeInUp 1s ease 0.5s both; }
.hero-actions { animation: fadeInUp 1s ease 0.8s both; }
.hero-stats { animation: fadeInUp 1s ease 1.1s both; }
.hero-stats > div { transition: transform .3s; }
.hero-stats > div:hover { transform: translateY(-6px); }

/* ============ 滚动触发显示 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.from-left.in-view, .reveal.from-right.in-view { transform: translateX(0); }
.reveal.scale-in { transform: scale(0.9); }
.reveal.scale-in.in-view { transform: scale(1); }
/* 错位延迟 */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

/* ============ 分类卡片动效 ============ */
.cat-card {
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s;
}
.cat-card:hover::after { left: 120%; }
.cat-card img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cat-card:hover img { transform: scale(1.12); }
.cat-card .more { transition: transform .3s; }
.cat-card:hover .more { transform: translateX(6px); }

/* ============ 产品卡片动效 ============ */
.product-card { position: relative; overflow: hidden; }
.product-card .img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,77,140,0.5) 100%);
  opacity: 0; transition: opacity 0.4s; z-index: 1;
}
.product-card:hover .img-wrap::before { opacity: 1; }
.product-card .hot-badge { animation: pulseGlow 2s infinite; z-index: 2; }

/* ============ 优势卡片动效 ============ */
.adv-card { position: relative; overflow: hidden; }
.adv-card .adv-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s, color 0.4s;
}
.adv-card:hover .adv-icon {
  transform: rotateY(180deg);
  background: var(--primary);
  color: #fff;
}
.adv-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s;
}
.adv-card:hover::before { transform: scaleX(1); }

/* ============ 数字计数器 ============ */
.stat-num, .about-stat .num { display: inline-block; }

/* ============ CTA 横幅动效 ============ */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2a 50%, #ff6b35 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 5s infinite;
}
.cta-banner .btn-primary {
  animation: pulseGlow 2.5s infinite;
}
.cta-banner .btn-primary:hover { animation: none; }

/* ============ 按钮微动效 ============ */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s;
}
.btn:hover::before { left: 120%; }

/* ============ 标题装饰 ============ */
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: scaleIn 0.8s ease both;
}

/* ============ 导航栏下划线动效 ============ */
.main-nav > a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1px;
}
.main-nav > a:hover::after,
.main-nav > a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.main-nav > a.active::after { display: none; }

/* ============ Logo ============ */
.logo { transition: color 0.2s; }

/* ============ 页面加载淡入 ============ */
body { animation: fadeInUp 0.6s ease; }

/* ============ 滚动指示器 ============ */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 24px;
  animation: bounceArrow 2s infinite;
  z-index: 2;
}

/* ============ 尊重用户偏好(减少动效) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */

.mobile-only { display: none !important; }

/* ─── Tablet Landscape / Small Desktop (≤992px) ─── */
@media (max-width: 992px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  /* Grids: 4→2 column */
  .cat-grid,
  .adv-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }

  /* Two-column layouts → single column */
  .about-section,
  .product-detail,
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }

  /* Products page: sidebar + main → stacked */
  .products-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-sidebar { position: static; }
  .filter-sidebar h3 { margin-bottom: 10px; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-list a { flex-shrink: 0; padding: 6px 14px; font-size: 13px; }

  /* Footer: 4→2 column */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Hero */
  .hero { padding: 72px 0 80px; }
  .hero-layout { gap: 40px; }
  .hero-grid { gap: 16px; }
  .hero-product { padding: 26px 14px 18px; border-radius: 18px; background: transparent; border-color: rgba(255, 255, 255, 0.12); }
  .hero-product img { height: 130px; width: 82%; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; max-width: 560px; }
  .hero-actions { gap: 12px; }
  .hero-stats { gap: 36px; margin-top: 44px; }
  .hero-stats .stat-num { font-size: 34px; }

  /* Category cards */
  .cat-card img { height: 150px; }
  .cat-card-body { padding: 16px; }
  .cat-card-body h3 { font-size: 16px; }

  /* Product cards */
  .product-card img { /* aspect-ratio handled globally */ }
  .product-card-body { padding: 14px 16px; }
  .product-card-body h3 { font-size: 14px; min-height: auto; }

  /* Category block header */
  .category-block { margin-bottom: 48px; }
  .category-block .block-header h2 { font-size: 23px; }

  /* About section */
  .about-stats { gap: 16px; }
  .about-stat { padding: 18px; }
  .about-stat .num { font-size: 28px; }

  /* Product detail */
  .product-detail { gap: 32px; padding: 40px 0; }
  .product-gallery .main-img { height: 360px; }
  .product-info h1 { font-size: 26px; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 14px; }

  /* News cards */
  .news-card img { height: 170px; }
  .news-card-body { padding: 18px; }
  .news-card h3 { font-size: 16px; }

  /* Contact form */
  .contact-form { padding: 24px; }
  .contact-layout { gap: 36px; padding: 40px 0; }

  /* Page header */
  .page-header { padding: 40px 0; }
  .page-header h1 { font-size: 30px; }

  /* CTA banner */
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: 28px; }
  .cta-banner p { font-size: 16px; }

  /* Breadcrumb */
  .breadcrumb .container { font-size: 13px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

  /* Section spacing */
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { font-size: 30px; }
  .section-title p { font-size: 16px; }

  /* 404 */
  .not-found { padding: 80px 0; }
  .not-found h1 { font-size: 72px; }

  /* ====== Header Mobile (Right Slide-in Drawer) ====== */
  /* Disable backdrop-filter on mobile: it creates a containing block
     that traps position:fixed children (drawer) inside the 64px header */
  /* Raise z-index above the overlay (9999) so the drawer inside header
     is clickable and not covered by the overlay */
  .site-header { backdrop-filter: none; background: #fff; z-index: 10001; }
  .header-inner { height: 64px; }

  /* Dark overlay behind drawer */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  }
  .mobile-overlay { display: block; }
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Right-side full-page drawer */
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
  }
  .main-nav.open { transform: translateX(0); }

  /* Stagger animation for drawer items */
  .main-nav.open > .mobile-drawer-header,
  .main-nav.open > .header-search-wrap,
  .main-nav.open > a,
  .main-nav.open > .nav-dropdown,
  .main-nav.open > .mobile-drawer-footer {
    animation: drawerItemIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .main-nav.open > .mobile-drawer-header { animation-delay: 0.08s; }
  .main-nav.open > .header-search-wrap { animation-delay: 0.12s; }
  .main-nav.open > a:nth-child(1) { animation-delay: 0.16s; }
  .main-nav.open > a:nth-child(2) { animation-delay: 0.20s; }
  .main-nav.open > .nav-dropdown { animation-delay: 0.24s; }
  .main-nav.open > a:nth-child(4) { animation-delay: 0.28s; }
  .main-nav.open > .mobile-drawer-footer { animation-delay: 0.34s; }
  @keyframes drawerItemIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* Drawer header: brand + close button */
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    min-height: 64px;
  }
  .mobile-drawer-header span {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
  }
  .mobile-drawer-close {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, transform 0.2s;
  }
  .mobile-drawer-close:hover { background: #e8e8e8; transform: rotate(90deg); }
  .mobile-drawer-close svg { width: 20px; height: 20px; }
  .header-search-wrap {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .header-search-wrap.expanded .header-search-bar { width: 100%; }
  .header-search-toggle { display: none; }
  .header-search-bar {
    width: 100%;
    padding: 2px 4px 2px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    opacity: 1;
    overflow: visible;
    margin-left: 0;
  }
  .main-nav > a,
  .main-nav > .nav-dropdown > .dropdown-toggle {
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    justify-content: space-between;
  }
  .main-nav > a.active { color: var(--primary); background: var(--primary-light); }
  .main-nav > a::after { display: none; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: auto;
    display: none;
    background: var(--bg-soft);
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-item { padding: 14px 24px; font-size: 15px; }
  .dropdown-divider { margin: 4px 16px; }
  .mobile-toggle { display: flex; }
  .header-contact-btn { display: none; }

  /* Drawer footer: language switch + contact */
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
  }
  .drawer-lang-switch {
    display: flex;
    gap: 10px;
  }
  .drawer-lang-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    background: #fff;
    transition: all 0.2s;
  }
  .drawer-lang-item.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
  }
  .drawer-lang-item .lang-flag { font-size: 18px; }
  .drawer-contact-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  /* Search overlay responsive */
  .search-overlay { padding-top: 100px; }
  .search-box { max-width: 520px; }
  .search-box input { font-size: 16px; padding: 14px 0; }
  .search-box-icon,
  .search-close { width: 48px; height: 48px; }

  /* 减小部分动效 */ 
  .hero-orb { display: none; }
  .scroll-indicator { display: none; }
}

/* ─── Tablet Portrait (≤768px) ─── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Hero */
  .hero { padding: 48px 0 60px; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-image { display: none; }
  .hero-grid { gap: 16px; width: 100%; margin: 0 auto; }
  .hero-product { padding: 26px 16px 18px; border-radius: 20px; }
  .hero-product img { height: 130px; width: 80%; }
  .hero h1 { font-size: 30px; text-align: center; line-height: 1.2; }
  .hero p { font-size: 16px; text-align: center; margin-left: auto; margin-right: auto; max-width: 480px; }
  .hero-actions { flex-direction: column; gap: 12px; align-items: stretch; max-width: 420px; margin: 0 auto; }
  .hero-actions .btn { text-align: center; width: 100%; }
  .hero-stats { gap: 24px; margin-top: 36px; justify-content: center; }
  .hero-stats .stat-num { font-size: 28px; }

  /* Category cards */
  .cat-card img { height: 130px; }
  .cat-card-body { padding: 14px; }

  /* Product cards */
  .product-card img { height: 160px; }

  /* Product detail */
  .product-detail { gap: 28px; padding: 32px 0; }
  .product-gallery .main-img { height: 300px; }
  .product-gallery .thumbs { gap: 8px; }
  .product-gallery .thumbs img { width: 60px; height: 60px; }
  .product-info h1 { font-size: 23px; }
  .product-info .summary { font-size: 15px; }
  .product-info .actions { flex-direction: column; }
  .product-info .actions .btn { width: 100%; }
  .spec-table th, .spec-table td { padding: 8px 10px; font-size: 13px; }
  .product-description { padding: 28px 0; }
  .product-description h2 { font-size: 20px; }

  /* News cards */
  .news-card img { height: 150px; }
  .news-card-body { padding: 16px; }

  /* Contact */
  .contact-layout { gap: 28px; padding: 32px 0; }
  .contact-form { padding: 20px; }
  .contact-info-item { gap: 12px; margin-bottom: 18px; }
  .contact-info-item .icon { width: 40px; height: 40px; font-size: 18px; }

  /* Section titles */
  .section-title h2 { font-size: 27px; }
  .section-title p { font-size: 15px; }

  /* CTA */
  .cta-banner { padding: 40px 0; }
  .cta-banner h2 { font-size: 25px; }

  /* Page header */
  .page-header { padding: 34px 0; }
  .page-header h1 { font-size: 27px; }

  /* Category block header */
  .category-block .block-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .category-block .block-header h2 { font-size: 21px; }

  /* 404 */
  .not-found { padding: 64px 0; }
  .not-found h1 { font-size: 60px; }
  .not-found h2 { font-size: 22px; }

  /* Footer */
  .footer-brand { font-size: 20px; }

  /* Company Gallery */
  .company-gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }

  /* Search overlay */
  .search-overlay { padding-top: 80px; }
  .search-box { max-width: 440px; margin: 0 20px; }
  .search-box input { font-size: 15px; padding: 13px 0; }
  .search-box-icon,
  .search-close { width: 44px; height: 44px; }
  .search-divider { height: 20px; }
}

/* ─── Mobile (≤576px) ─── */
@media (max-width: 576px) {
  .container { padding: 0 20px; }

  /* All grids → 2 columns for categories on mobile */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .adv-grid,
  .news-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Two-column sub-grids → single column */
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Hero */
  .hero { padding: 36px 0 48px; text-align: center; }
  .hero .container { max-width: 100%; padding: 0 16px; }
  .hero-layout { gap: 20px; }
  .hero-grid { gap: 10px; width: 100%; }
  .hero-product { padding: 14px 8px 12px; border-radius: 14px; background: transparent; border-color: rgba(255, 255, 255, 0.12); }
  .hero-product img { height: 85px; width: 76%; }
  .hero-product-label { font-size: 10px; letter-spacing: 0.5px; }
  .hero h1 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; text-align: center; }
  .hero p { font-size: 14px; margin-bottom: 16px; text-align: center; }
  .hero-actions { display: none; }
  .hero-stats { display: none; }

  /* Category cards */
  .cat-card img { height: 130px; }
  .cat-card-body { padding: 12px; }
  .cat-card-body h3 { font-size: 15px; }

  /* Product cards */
  .product-card-body h3 { font-size: 15px; }

  /* Category block */
  .category-block { margin-bottom: 40px; }
  .category-block .block-header h2 { font-size: 20px; }
  .category-block .block-header .view-all { font-size: 14px; }
  .category-block .block-header .view-all { display: none; }

  /* About */
  .about-section { gap: 28px; }
  .about-stat { padding: 10px 4px; }
  .about-stat .num { font-size: 20px; }
  .about-stat .label { font-size: 11px; }

  /* Overlay Stats → smaller on mobile */
  .about-image-wrap { aspect-ratio: auto; }
  .about-stat-o { padding: 8px 4px; }
  .about-stat-o .num { font-size: 20px; }
  .about-stat-o .label { font-size: 11px; }

  /* Company Gallery → 2 columns on mobile */
  .company-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }

  /* Advantages */
  .adv-card { padding: 24px 20px; }
  .adv-card h3 { font-size: 17px; }
  .adv-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 14px; }

  /* Product detail */
  .product-detail { padding: 24px 0; gap: 24px; }
  .product-gallery .main-img { height: 260px; border-radius: 8px; }
  .product-gallery .thumbs { gap: 6px; }
  .product-gallery .thumbs img { width: 56px; height: 56px; border-radius: 4px; }
  .product-info h1 { font-size: 21px; }
  .product-info .summary { font-size: 14px; margin-bottom: 18px; padding-bottom: 18px; }
  .product-info .cat-tag { font-size: 12px; padding: 4px 10px; }
  .spec-table th, .spec-table td { padding: 8px; font-size: 13px; }
  .spec-table th { width: 45%; }
  .product-description h2 { font-size: 19px; }

  /* Products page filter */
  .filter-list { gap: 4px; }
  .filter-list a { font-size: 12px; padding: 5px 12px; }
  .products-layout { gap: 20px; padding: 32px 15px; }

  /* Contact */
  .contact-layout { gap: 24px; padding: 24px 0; }
  .contact-form { padding: 18px; border-radius: 8px; }
  .contact-form h3 { font-size: 18px; margin-bottom: 16px; }
  .contact-form .form-group { margin-bottom: 14px; }
  .contact-form label { font-size: 13px; }
  .contact-form input, .contact-form textarea { padding: 8px 12px; font-size: 13px; }
  .contact-info-item { gap: 10px; margin-bottom: 16px; }
  .contact-info-item .icon { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }
  .contact-info-item h4 { font-size: 15px; }
  .contact-info-item p { font-size: 14px; }

  /* News */
  .news-card img { height: 180px; }
  .news-card h3 { font-size: 15px; }

  /* Section */
  .section { padding: 44px 0; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: 24px; }
  .section-title h2::after { bottom: -8px; width: 48px; height: 2px; }
  .section-title p { font-size: 14px; }

  /* Page header */
  .page-header { padding: 28px 0; }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 14px; }

  /* CTA */
  .cta-banner { padding: 36px 0; }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 15px; margin-bottom: 20px; }

  /* Breadcrumb */
  .breadcrumb { padding: 12px 0; }
  .breadcrumb .container { font-size: 12px; gap: 4px; }

  /* Buttons */
  .btn { font-size: 14px; padding: 10px 22px; }

  /* 404 */
  .not-found { padding: 56px 0; }
  .not-found h1 { font-size: 52px; }
  .not-found h2 { font-size: 20px; }
  .not-found p { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 24px; }
  .footer-grid h4 { font-size: 15px; margin-bottom: 12px; }
  .footer-grid p, .footer-grid a { font-size: 13px; line-height: 1.8; }
  .footer-brand { font-size: 18px; margin-bottom: 10px; }
  .footer-bottom { font-size: 12px; padding-top: 16px; }

  /* Header */
  .header-inner { height: 56px; }
  .main-nav { width: min(85vw, 320px); }
  .main-nav > a,
  .main-nav > .nav-dropdown > .dropdown-toggle { padding: 14px 20px; font-size: 16px; }
  .logo { font-size: 20px; }
  .lang-toggle { font-size: 13px; padding: 5px 10px; }

  /* Search overlay */
  .search-overlay { padding-top: 64px; }
  .search-box { max-width: calc(100% - 32px); margin: 0 16px; border-radius: 10px; }
  .search-box input { font-size: 14px; padding: 12px 0; }
  .search-box-icon,
  .search-close { width: 40px; height: 40px; }
  .search-box-icon svg { width: 17px; height: 17px; }
  .search-close svg { width: 16px; height: 16px; }
  .search-divider { height: 18px; }

  /* Block header */
  .category-block .block-header { padding-bottom: 10px; margin-bottom: 18px; }
}

/* ─── Responsive images ─── */
img { height: auto; }

/* ─── Print-friendly adjustments ─── */
@media print {
  .site-header, .site-footer, .cta-banner, .scroll-indicator,
  .hero-orb, .search-overlay, .mobile-toggle, .mobile-overlay, .mobile-drawer-header {
    display: none !important;
  }
  .hero { background: none !important; color: #000; padding: 20px 0; }
  .hero h1 { color: #000; font-size: 28px; }
  .hero p { color: #333; }
  .hero-overlay { display: none; }
  .hero-bg { display: none; }
  .section { padding: 24px 0; }
  body { font-size: 13px; }
}
