/* ===== CHX Metal Global Website Styles ===== */
:root {
  --primary: #0a4d8c;
  --primary-dark: #063a6b;
  --primary-light: #1a6fc4;
  --accent: #d4a843;
  --accent-light: #f0d080;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-dark: #0b1d35;
  --text: #2c3e50;
  --text-light: #6b7c8d;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-main: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans RU', 'Noto Sans IT', sans-serif;
  --max-w: 1280px;
}

/* Reset & Base */
*, *::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(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
#header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--primary);
}
.logo-img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-cn { font-size: 15px; font-weight: 600; }
.logo-en { font-size: 12px; letter-spacing: 2px; color: var(--text-light); }

.main-nav {
  display: flex; gap: 4px;
}
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary); background: rgba(10,77,140,0.06);
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  width: 36px; height: 32px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); color: var(--text-light);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
}
/* 手机端语言切换触发按钮 */
.lang-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.lang-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }


.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span {
  width: 24px; height: 2px; background: var(--text);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.30) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; padding: 0 24px;
}
.hero-content h1 {
  font-size: 42px; font-weight: 800; color: var(--text-white);
  margin-bottom: 16px; letter-spacing: 2px;
}
.hero-subtitle {
  font-size: 22px; color: var(--accent-light);
  margin-bottom: 12px; font-weight: 500;
}
.hero-slogan {
  font-size: 16px; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent); color: var(--bg-dark);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-full { width: 100%; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.6); font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Stats ===== */
.stats {
  background: var(--bg-dark); padding: 48px 0;
  position: relative; z-index: 3;
  overflow: hidden;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px; text-align: center;
}
.stat-item { padding: 12px; }
.stat-number {
  font-size: 42px; font-weight: 800; color: var(--accent);
  display: inline;
}
.stat-suffix { font-size: 20px; font-weight: 600; color: var(--accent); }
.stat-label {
  display: block; font-size: 14px; color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  scroll-margin-top: 72px;
  position: relative;
  overflow: hidden;
}
.section:nth-child(even) { background: var(--bg-alt); }
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(10,77,140,0.08); color: var(--primary);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px; letter-spacing: 1px;
}
.section-header h2 {
  font-size: 36px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px; color: var(--text-light);
  max-width: 600px; margin: 0 auto;
}

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.about-images { position: relative; }
.about-img-main img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-img-single img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: 400px;
}
.about-content p { margin-bottom: 16px; color: var(--text); font-size: 15px; }
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 32px;
}
.highlight-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.highlight-icon { font-size: 28px; flex-shrink: 0; }
.highlight-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.highlight-item p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ===== Products ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-img {
  height: 220px; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-body { padding: 24px; }
.product-body h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  color: var(--primary);
}
.product-body p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.product-field {
  display: inline-block; font-size: 12px; color: var(--accent);
  background: rgba(212,168,67,0.1); padding: 4px 10px;
  border-radius: 4px; font-weight: 500;
}

/* ===== Gallery ===== */
.gallery-tabs {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 32px;
}
.gallery-tab {
  padding: 8px 20px; border: 1px solid var(--border);
  border-radius: 24px; background: white; font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all var(--transition);
  color: var(--text);
}
.gallery-tab:hover { border-color: var(--primary); color: var(--primary); }
.gallery-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-grid img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ===== Capabilities ===== */
.cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.cap-card {
  background: white; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.cap-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.cap-icon { margin-bottom: 20px; }
.cap-icon img { width: 56px; height: 56px; }
.cap-card h3 {
  font-size: 20px; font-weight: 700; color: var(--primary);
  margin-bottom: 12px;
}
.cap-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }
.cap-features { list-style: none; }
.cap-features li {
  padding: 6px 0; font-size: 14px; color: var(--text);
  position: relative; padding-left: 24px;
}
.cap-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ===== Equipment ===== */
.eq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.eq-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
}
.eq-card:hover { box-shadow: var(--shadow-lg); }
.eq-card img { width: 100%; height: 260px; object-fit: cover; }
.eq-card-body { padding: 24px; }
.eq-card-body h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.eq-card-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.eq-count {
  display: inline-block; margin-top: 12px;
  font-size: 28px; font-weight: 800; color: var(--accent);
}
.eq-count small { font-size: 14px; font-weight: 500; }

/* ===== Quality ===== */
.quality-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 60px;
}
.qc-item {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
}
.qc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.qc-item img { width: 100%; height: 180px; object-fit: cover; }
.qc-item h4 {
  font-size: 16px; font-weight: 600; padding: 16px 20px 4px;
  color: var(--primary);
}
.qc-item p { font-size: 13px; color: var(--text-light); padding: 0 20px 16px; }

.cert-section { text-align: center; }
.cert-section h3 {
  font-size: 24px; font-weight: 700; margin-bottom: 32px; color: var(--text);
}
.cert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cert-card {
  background: white; border-radius: var(--radius);
  padding: 32px 20px; box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.cert-card:hover { border-color: var(--accent); }
.cert-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 16px; font-weight: 800; margin-bottom: 16px;
}
.cert-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cert-card p { font-size: 13px; color: var(--text-light); }

/* ===== Service ===== */
.service-flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px;
  position: relative;
}
.service-flow::before {
  content: ''; position: absolute; top: 36px;
  left: 7%; right: 7%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
}
.service-step {
  text-align: center; position: relative; z-index: 1;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; transition: all var(--transition);
}
.service-step:hover .step-num { background: var(--accent); transform: scale(1.1); }
.service-step h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.service-step p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ===== Culture ===== */
.culture-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.culture-card {
  background: white; border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow); transition: all var(--transition);
  border-top: 3px solid transparent;
}
.culture-card:hover { border-top-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.culture-icon { font-size: 48px; margin-bottom: 16px; }
.culture-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.culture-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-item h4 { font-size: 13px; color: var(--text-light); margin-bottom: 2px; font-weight: 500; }
.contact-item p { font-size: 15px; font-weight: 500; }

.contact-form-wrap {
  background: white; border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-main);
  font-size: 14px; transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; }

/* ===== Vision ===== */
.vision {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 40%, var(--primary) 100%); padding: 80px 0; text-align: center;
}
.vision h2 {
  font-size: 32px; font-weight: 700; color: #ffffff;
  margin-bottom: 24px; text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vision p {
  font-size: 16px; color: rgba(255,255,255,0.95);
  max-width: 800px; margin: 0 auto; line-height: 1.8;
}

/* ===== Footer ===== */
#footer {
  background: linear-gradient(180deg, #2E86C1 0%, #1B4F72 100%); padding: 60px 0 24px; color: rgba(255,255,255,0.9);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-logo img { height: 36px; }
.footer-logo span { display: block; font-size: 14px; color: white; }
.footer-logo span:last-child { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 2px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-links h4 {
  font-size: 15px; font-weight: 600; color: white; margin-bottom: 16px;
}
.footer-links a, .footer-links p {
  display: block; font-size: 13px; margin-bottom: 8px;
  color: rgba(255,255,255,0.75); transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white; border: none;
  font-size: 20px; cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); display: none;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: white;
  font-size: 40px; cursor: pointer; z-index: 2001;
}
.lightbox img {
  max-width: 90%; max-height: 90vh; object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-flow { grid-template-columns: repeat(4, 1fr); }
  .service-flow::before { display: none; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); flex-direction: column;
    padding: 16px 20px; box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary);
    z-index: 1100;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
  }
  .main-nav a:last-child { border-bottom: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { padding: 0 16px; }
  .logo-cn { font-size: 13px; }
  .logo-en { font-size: 10px; letter-spacing: 1px; }
  .logo-img { height: 36px; }
  .hero-content h1 { font-size: 28px; }
  .hero-subtitle { font-size: 18px; }
  .hero-slogan { font-size: 14px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-single img { min-height: 280px; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .eq-grid { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .service-flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .culture-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .about-highlights { grid-template-columns: 1fr; }
  .lang-switcher {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.98);
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    z-index: 1050;
  }
  .lang-switcher.open { display: flex; }
  .lang-btn { width: auto; padding: 6px 14px; font-size: 13px; }
  .lang-toggle-btn { display: flex; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .stat-number { font-size: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== Timeline Section ===== */
.timeline {
  position: relative;
}
.timeline-wrapper { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}
.timeline-items { display: flex; flex-direction: column; gap: 32px; }
.timeline-item {
  display: flex; align-items: flex-start; gap: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; text-align: right; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; text-align: left; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }
.timeline-item:nth-child(even) .timeline-content { margin-right: auto; border-left: none; border-right: 3px solid var(--primary);
}
.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--primary), 0 0 8px rgba(10,77,140,0.2);
  position: absolute; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.timeline-item.highlight .timeline-dot {
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent), 0 0 16px rgba(212,168,67,0.4);
  width: 20px; height: 20px;
}
.timeline-year {
  font-size: 18px; font-weight: 700; color: var(--primary);
  min-width: 100px;
}
.timeline-content {
  background: white; padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 380px;
  border-left: 3px solid var(--primary);
}

.timeline-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.timeline-content p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Product Table ===== */
.product-table-wrapper { margin-top: 60px; }
.table-title {
  text-align: center; font-size: 24px; font-weight: 700;
  color: var(--text); margin-bottom: 32px;
}
.product-table { overflow-x: auto; }
.product-table table {
  width: 100%; border-collapse: collapse;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.product-table th {
  background: var(--primary); color: white;
  padding: 16px; text-align: left; font-weight: 600;
}
.product-table td {
  padding: 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.product-table tr:hover { background: var(--bg-alt); }
.product-table tr:last-child td { border-bottom: none; }
.product-table td:first-child { font-weight: 600; color: var(--primary); }

/* ===== Quality Layout (Reference Style) ===== */
.quality-layout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
}
.quality-subtitle {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.quality-intro {
  font-size: 15px; color: var(--text-light); line-height: 1.8;
  margin-bottom: 24px;
}
.inspection-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.inspection-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition); cursor: pointer;
}
.inspection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.inspection-card img {
  width: 100%; height: 140px; object-fit: cover;
}
.inspection-info { padding: 16px; }
.inspection-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.inspection-info p { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* Quality Right - Certifications */
.quality-right { background: var(--bg-alt); padding: 32px; border-radius: var(--radius); }
.cert-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.cert-card-img {
  background: white; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow);
}
.cert-card-img img { width: 100%; height: 160px; object-fit: cover; }
.cert-img-info { padding: 12px; text-align: center; }
.cert-img-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cert-img-info p { font-size: 12px; color: var(--text-light); }
.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: white;
  border-radius: var(--radius-sm);
}
.cert-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.cert-list-item span:last-child { font-size: 14px; color: var(--text); }

/* ===== Responsive for new sections ===== */
@media (max-width: 1024px) {
  .quality-layout { grid-template-columns: 1fr; }
  .timeline-line { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row; text-align: left;
    padding-left: 50px;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0; border-left: 3px solid var(--primary); border-right: none;
    background: white;
  }
  .timeline-dot { left: 20px; transform: translateX(-50%); }
  .timeline-year { min-width: 80px; }
}
@media (max-width: 768px) {
  .inspection-grid { grid-template-columns: 1fr; }
  .cert-gallery { grid-template-columns: 1fr; }
  .product-table th, .product-table td { padding: 12px; font-size: 13px; }
}

/* ===== News Section ===== */
.news { background: var(--bg-alt); }
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.news-card {
  display: flex; gap: 20px; background: white;
  padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.news-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 70px; padding: 12px; background: var(--primary);
  border-radius: var(--radius); color: white; text-align: center;
}
.news-day { font-size: 28px; font-weight: 700; line-height: 1; }
.news-month { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.news-content { flex: 1; }
.news-category {
  display: inline-block; padding: 4px 12px; background: var(--accent);
  color: var(--primary); font-size: 12px; font-weight: 500;
  border-radius: 20px; margin-bottom: 10px;
}
.news-content h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 10px;
  color: var(--text); line-height: 1.4;
}
.news-content p {
  font-size: 14px; color: var(--text-light); line-height: 1.6;
  margin-bottom: 12px;
}
.news-link {
  font-size: 14px; font-weight: 500; color: var(--primary);
  text-decoration: none; transition: var(--transition);
}
.news-link:hover { color: var(--accent); }
.news-more { text-align: center; margin-top: 40px; }

/* ===== Responsive for News ===== */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-date { flex-direction: row; gap: 8px; min-width: auto; width: fit-content; }
  .news-day { font-size: 20px; }
}

/* ===== Lightbox Navigation ===== */
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  font-size: 28px; padding: 14px 10px; cursor: pointer;
  transition: background 0.3s; z-index: 1001; border-radius: 4px;
  line-height: 1;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.35); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: white; font-size: 14px; background: rgba(0,0,0,0.5);
  padding: 6px 16px; border-radius: 20px;
}

/* ===== Language-specific Font ===== */
html[lang="ja"] body { font-family: 'Noto Sans JP', 'Inter', sans-serif; }
html[lang="ko"] body { font-family: 'Noto Sans KR', 'Inter', sans-serif; }
html[lang="ru"] body { font-family: 'Noto Sans RU', 'Inter', sans-serif; }
html[lang="it"] body { font-family: 'Noto Sans IT', 'Inter', sans-serif; }

@media (max-width: 600px) {
  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-tabs::-webkit-scrollbar { display: none; }
  .gallery-tab { flex-shrink: 0; }
}

/* ===== Tech Background Theme ===== */
/* 科技风背景：网格线 + 点阵 + 光晕，纯 CSS 实现，不影响内容层 */

/* ---------- 全局：body 底层极淡网格 ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(10,77,140,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,77,140,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 白色区块：细网格 + 右上角蓝色光晕 ---------- */

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(10,77,140,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,77,140,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,77,140,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 偶数区块：斜向点阵 + 左下角金色光晕 ---------- */
.section:nth-child(even)::before {
  background-image:
    radial-gradient(circle, rgba(10,77,140,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.section:nth-child(even)::after {
  top: auto;
  bottom: -100px;
  right: auto;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.07) 0%, transparent 70%);
}

/* ---------- stats 深色区块：扫描线 + 点阵 ---------- */

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.025) 3px,
      rgba(255,255,255,0.025) 4px
    ),
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 4px, 20px 20px;
}
.stats::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,196,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: chx-pulse 6s ease-in-out infinite;
}
@keyframes chx-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* ---------- 确保所有区块内容层级高于背景 ---------- */
.stats .container,
.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- timeline 区块：左侧竖向电路线装饰 ---------- */
.timeline::before {
  background-image:
    linear-gradient(rgba(10,77,140,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,77,140,0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(10,77,140,0.08) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 20px 20px;
}

/* ---------- capabilities / equipment 区块：斜向线条 ---------- */
.capabilities::before,
.equipment::before {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(10,77,140,0.035) 18px,
      rgba(10,77,140,0.035) 19px
    ),
    linear-gradient(rgba(10,77,140,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,77,140,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* ---------- quality 区块：六边形蜂窝纹（SVG data URI）---------- */
.quality::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='32'%3E%3Cpath d='M14 2 L26 9 L26 23 L14 30 L2 23 L2 9 Z' fill='none' stroke='rgba(10%2C77%2C140%2C0.06)' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(rgba(10,77,140,0.02) 1px, transparent 1px);
  background-size: 28px 32px, 56px 56px;
}

/* ---------- contact 区块：右侧大圆环装饰 ---------- */
.contact::after {
  top: auto;
  right: -160px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  background: none;
  border: 1px solid rgba(10,77,140,0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(10,77,140,0.03),
    0 0 0 80px rgba(10,77,140,0.02),
    0 0 0 120px rgba(10,77,140,0.01);
}

/* ---------- news 区块：保持偶数点阵，叠加横向扫描线 ---------- */
.news::before {
  background-image:
    radial-gradient(circle, rgba(10,77,140,0.10) 1px, transparent 1px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(10,77,140,0.025) 60px,
      rgba(10,77,140,0.025) 61px
    );
  background-size: 24px 24px, 100% 100%;
}

/* 汉堡菜单激活状态 */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Nav Contact Info ===== */
.nav-mobile-contact {
  display: none;
}
@media (max-width: 768px) {
  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--primary);
    margin-top: 8px;
    padding-top: 8px;
  }
  .nav-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }
  .nav-contact-item:last-child {
    border-bottom: none;
  }
  .nav-contact-item span:first-child {
    font-size: 18px;
    flex-shrink: 0;
  }
  .nav-contact-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
  }
}
