/* ============================================
   HAISENBO - Taizhou Haissenbo Tech Co., Ltd.
   Corporate Website Stylesheet
   Color Palette: Deep Blue #1a3a8c | Orange #e8854c
   ============================================ */

:root {
  --primary: #1a3a8c;
  --primary-dark: #0f2461;
  --primary-light: #2d5aad;
  --accent: #e8854c;
  --accent-hover: #d4733a;
  --accent-light: #fff3eb;
  --dark: #0d1b2a;
  --dark-2: #1b263b;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-300: #dee2e6;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .feature-card { text-align: right; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 100px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 72px; width: auto; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--primary); background: rgba(26,58,140,.06); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--gray-300);
}
.lang-btn {
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  transition: var(--transition);
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--primary); border-color: var(--gray-300); }
.lang-btn.active { color: var(--white); background: var(--primary); border-color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('/images/hero-banner.jpg') center center / cover no-repeat;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Steep gradient: dark left for text contrast, transparent by ~55% to show mold photo */
  background:
    linear-gradient(to right, rgba(15,23,42,.75) 0%, rgba(15,23,42,.55) 25%, rgba(15,23,42,.30) 42%, rgba(15,23,42,.10) 58%, transparent 72%),
    radial-gradient(circle at 15% 85%, rgba(232,133,76,.08) 0%, transparent 45%);
}
.hero-grid {
  display: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  /* Left-align hero text to the 1200px container's left edge instead of
     centering the 560px block across the full viewport (which left the
     dark gradient area with a big empty gap and looked uncoordinated). */
  margin-left: max(0px, calc((100vw - 1200px) / 2));
  margin-right: auto;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 500;
  margin-top: 36px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 1.1rem;
  opacity: .88;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label {
  font-size: .82rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-main);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,133,76,.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,133,76,.45);
}
.btn-outline {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.2);
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hero Visual — removed, real product photo is now the background */
.hero-visual { display: none; }
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-image-bg {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(232,133,76,.2), rgba(26,58,140,.2));
  border-radius: 50%;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}
.hero-mold-graphic {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-mold-graphic svg { width: 70%; height: auto; opacity: .9; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,.95);
  color: var(--dark);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 3;
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge.fb-tl { top: 5%; left: -8%; animation-delay: 0s; }
.float-badge.fb-br { bottom: 10%; right: -5%; animation-delay: 1.5s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== PRODUCT CATEGORIES ========== */
.categories { background: var(--gray-100); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cat-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cat-card-img svg { width: 72px; height: 72px; stroke: rgba(255,255,255,.9); fill: none; stroke-width: 1.5; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.cat-card-body { padding: 24px; }
.cat-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.cat-card-body p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cat-card-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-card-link:hover { color: var(--accent); gap: 10px; }

/* Category color variants */
.cat-card:nth-child(1) .cat-card-img { background: linear-gradient(135deg, #1a3a8c, #2d5aad); }
.cat-card:nth-child(2) .cat-card-img { background: linear-gradient(135deg, #e8854c, #f0a57a); }
.cat-card:nth-child(3) .cat-card-img { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.cat-card:nth-child(4) .cat-card-img { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.cat-card:nth-child(5) .cat-card-img { background: linear-gradient(135deg, #00695c, #26a69a); }
.cat-card:nth-child(6) .cat-card-img { background: linear-gradient(135deg, #c62828, #ef5350); }

/* ========== WHY CHOOSE US (ADVANTAGES) ========== */
.advantages { background: var(--white); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.adv-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}
.adv-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.adv-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-icon svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.adv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.adv-card p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== FACTORY / MANUFACTURING ========== */
.factory-showcase {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.factory-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(232,133,76,.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(26,58,140,.2) 0%, transparent 40%);
}
.factory-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.factory-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.factory-content h2 span { color: var(--accent); }
.factory-content > p {
  opacity: .8;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.factory-list { list-style: none; }
.factory-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: .95rem;
  opacity: .9;
}
.factory-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.factory-visual {
  position: relative;
}
.factory-image-placeholder { display: none; }  /* legacy placeholder - kept for back-compat only */
.factory-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.factory-image-placeholder svg { width: 56px; height: 56px; stroke: rgba(255,255,255,.25); fill: none; stroke-width: 1.2; }

/* ========== CTA BAND ========== */
.cta-band {
  background: linear-gradient(135deg, var(--accent), #f0a57a);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.08rem;
  opacity: .92;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CLIENTS / GLOBAL REACH ========== */
.clients { background: var(--gray-100); }
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: .5;
}
.client-logo-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ========== NEWS SECTION ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}
.news-card-body { padding: 22px; }
.news-card-date {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.news-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 80px; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  font-size: .95rem;
}
.footer-social a:hover { background: var(--accent); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .88rem;
}
.footer-contact-item svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-brother {
  padding: 14px 0 4px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-brother span { display: inline-block; letter-spacing: .2px; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(232,133,76,.15) 0%, transparent 50%);
}
.page-header-inner {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: .88rem;
  opacity: .75;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: .5; }

/* ========== ABOUT PAGE ========== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}
.about-intro-text p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: .9rem;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
  padding-left: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 4px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.timeline-year {
  font-size: .85rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.timeline-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.cert-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.cert-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cert-card h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.cert-card p { font-size: .82rem; color: var(--gray-500); margin-top: 4px; }

/* ========== PRODUCTS PAGE ========== */
.product-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 600;
  border: 2px solid var(--gray-300);
  border-radius: 30px;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  height: 240px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-img svg {
  width: 64px; height: 64px;
  stroke: var(--gray-500); fill: none; stroke-width: 1.2;
  opacity: .4;
}
.product-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.product-card-body { padding: 20px; }
.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-card-body h3 a:hover { color: var(--primary); }
.product-card-body p {
  font-size: .87rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 14px;
}
.product-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.spec-item {
  font-size: .78rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Product Detail Page */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.pd-gallery {
  position: sticky;
  top: 90px;
}
.pd-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--gray-300);
}
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumb {
  width: 80px; height: 80px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pd-thumb:hover, .pd-thumb.active { border-color: var(--primary); }
.pd-info h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.pd-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pd-meta span {
  font-size: .84rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 5px 14px;
  border-radius: 20px;
}
.pd-info > p {
  color: var(--gray-700);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.pd-features { list-style: none; margin-bottom: 28px; }
.pd-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: .92rem;
  color: var(--gray-700);
}
.pd-features li svg {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.pd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.pd-table th,
.pd-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
  font-size: .9rem;
}
.pd-table th {
  background: var(--gray-100);
  font-weight: 700;
  color: var(--dark);
  width: 35%;
}
.pd-table td { color: var(--gray-700); }

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--white); fill: none; stroke-width: 1.8;
}
.contact-card h4 { font-size: .98rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-card p { font-size: .88rem; color: var(--gray-500); line-height: 1.55; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: var(--font-main);
  color: var(--gray-900);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,140,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== NEWS PAGE ========== */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-detail-content {
  max-width: 800px;
  margin: 0 auto;
}
.news-detail-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.news-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  font-size: .85rem;
  color: var(--gray-500);
}
.news-detail-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.news-detail-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}
.news-detail-body p { margin-bottom: 16px; }

/* ========== FACTORY PAGE ========== */
.qc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: qc;
}
.qc-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  position: relative;
}
.qc-step::before {
  counter-increment: qc;
  content: "0" counter(qc);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}
.qc-step h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.qc-step p { font-size: .84rem; color: var(--gray-500); line-height: 1.55; }

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.factory-gallery-item {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.factory-gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 8 / 6;
}
.factory-gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.factory-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.factory-gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  color: #fff;
  font-size: .92rem; font-weight: 600;
  letter-spacing: .01em;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eq-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.eq-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: .85rem;
}
.eq-card-body { padding: 18px; }
.eq-card-body h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.eq-card-body p { font-size: .82rem; color: var(--gray-500); margin-top: 4px; }

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-stats { justify-content: center; }
  .btn-group { justify-content: center; }
  .float-badge.fb-tl { left: 5%; }
  .float-badge.fb-br { right: 5%; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .news-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-gallery { grid-template-columns: repeat(2, 1fr); }
  .factory-gallery-item.large { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-lg { padding: 60px 0; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .section-title { font-size: 1.6rem; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); border-top: 1px solid var(--gray-300); }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .lang-switch { margin: 0; padding: 0; border: none; border-top: 1px solid var(--gray-300); padding-top: 12px; justify-content: center; }
  .adv-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .products-grid, .news-grid, .news-page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .qc-steps { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .float-badge { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: 11px 22px; font-size: .88rem; }
  .container { padding: 0 16px; }
  .factory-gallery { grid-template-columns: 1fr; }
  .factory-gallery-item.large { grid-column: auto; aspect-ratio: 4/3; }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.bg-gray { background: var(--gray-100); }
.pd-overview { padding: 56px 0 70px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-gallery { position: sticky; top: 90px; }
.pd-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); }
.pd-main img { width: 100%; height: auto; display: block; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumb { border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }

.pd-info { padding-top: 4px; }
.pd-badge { display: inline-block; background: var(--accent-light); color: var(--accent-hover); font-weight: 700; font-size: .8rem; padding: 5px 14px; border-radius: 30px; margin-bottom: 16px; }
.pd-lead { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--dark); }
.pd-intro { color: var(--gray-700); margin-bottom: 24px; }
.pd-spec-mini { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; padding: 0; }
.pd-spec-mini li { flex: 1; min-width: 110px; background: var(--gray-100); border-radius: var(--radius); padding: 14px 16px; border-left: 3px solid var(--primary); }
.pd-spec-mini span { display: block; font-size: .74rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pd-spec-mini strong { font-size: 1.15rem; color: var(--dark); }

.pd-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pd-feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-300); transition: var(--transition); }
.pd-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.pd-feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pd-feature-icon svg { width: 26px; height: 26px; }
.pd-feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark); }
.pd-feature-card p { font-size: .92rem; color: var(--gray-700); line-height: 1.6; }

.pd-spec-table { margin-top: 36px; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); overflow: hidden; }
.pd-spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 24px; border-bottom: 1px solid var(--gray-300); }
.pd-spec-row:last-child { border-bottom: 0; }
.pd-spec-row:nth-child(odd) { background: var(--gray-100); }
.pd-spec-row span:first-child { color: var(--gray-700); font-weight: 600; }
.pd-spec-row span:last-child { color: var(--dark); text-align: right; }

.pd-app-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.pd-app-text { color: var(--gray-700); margin-top: 18px; font-size: 1.05rem; }

.pd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.pd-related-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; transition: var(--transition); display: block; }
.pd-related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pd-related-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--primary); }
.pd-related-icon svg { width: 100%; height: 100%; }
.pd-related-card h3 { font-size: 1.02rem; color: var(--dark); margin-bottom: 10px; line-height: 1.35; }
.pd-related-link { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* News article page */
.news-article { max-width: 760px; margin: 0 auto; }
.news-meta { margin-bottom: 14px; }
.news-date { display: inline-block; color: var(--gray-500); font-size: .85rem; font-weight: 600; background: var(--gray-100); padding: 5px 14px; border-radius: 30px; }
.news-lead { font-size: 1.2rem; line-height: 1.7; color: var(--dark); font-weight: 500; margin: 8px 0 28px; padding-left: 18px; border-left: 4px solid var(--accent); }
.news-figure { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.news-figure img { width: 100%; display: block; }
.news-article p { color: var(--gray-700); line-height: 1.85; margin-bottom: 20px; font-size: 1.02rem; }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-gallery { position: static; }
  .pd-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pd-feature-grid, .pd-related-grid { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .pd-lead { font-size: 1.5rem; }
  .pd-spec-row { padding: 13px 16px; }
}
