/* ==========================================================================
   SMG Website Global CSS (最终完美修复版)
   ========================================================================== */

/* 1. 基础重置与白边消除 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

:root {
  --smg-blue: #0a3d62;
  --smg-teal: #0e7a7f;
  --smg-blue-dark: #072a44;
  --smg-teal-light: #e5f3f4;
  --smg-blue-light: #e9eff5;
  --bg-body: #f7f9fc;
  --border-light: #dce5ec;
  --text-main: #1e2b3a;
  --text-muted: #546e7a;
}

/* ★ 修复点：不再用 margin 简写，避免覆盖 main 的 margin-top */
.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* 2. 导航栏完美布局 (Logo绝对定位贴左，菜单居中偏右) */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(10, 61, 98, 0.05);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

main {
  margin-top: 96px;
  flex: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 让右侧导航靠右，把左侧空出来 */
  height: 96px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 绝对定位将 Logo 贴紧屏幕最左侧，并垂直居中 */
.site-header .logo-link {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-right-wrapper {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--smg-teal);
  border-bottom-color: var(--smg-teal);
}

/* 多语言下拉框 */
.custom-lang-switcher {
  position: relative;
  margin-left: 30px;
  font-family: inherit;
  user-select: none;
}

.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  min-width: 120px;
  white-space: nowrap;
}

.lang-trigger:hover {
  border-color: var(--smg-teal);
  box-shadow: 0 4px 10px rgba(14, 122, 127, 0.1);
}

.lang-trigger svg {
  width: 12px;
  height: 12px;
  fill: var(--smg-blue);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.custom-lang-switcher.active .lang-trigger svg {
  transform: rotate(180deg);
}

.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.15);
  width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow: hidden;
  padding: 6px 0;
}

.custom-lang-switcher.active .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
  transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
  background: var(--bg-body);
  color: var(--smg-teal);
}

.lang-option.active {
  font-weight: 700;
  background: var(--smg-blue-light);
  color: var(--smg-blue);
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* 3. 页面基础排版 */
h1, h2, h3 {
  font-weight: 700;
  color: var(--smg-blue);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  border-left: 5px solid var(--smg-teal);
  padding-left: 20px;
}
h3 { font-size: 1.3rem; margin-bottom: 12px; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
  border-left: none;
  padding-left: 0;
  position: relative;
  font-size: 2.2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--smg-teal);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 4. 全局按钮 */
.button-placeholder {
  display: inline-block;
  background-color: var(--smg-teal);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(14, 122, 127, 0.2);
}

.button-placeholder:hover {
  background-color: var(--smg-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 61, 98, 0.3);
}

/* 5. 首页各模块布局 */
.hero-section {
  background-color: #f0f4f8;
  background-image: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  padding: 80px 0 100px 0;
  margin-bottom: 0;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-image-wrapper {
  flex: 1.8;
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 61, 98, 0.15);
  background-color: #ffffff;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text-content {
  flex: 1;
  max-width: 450px;
}

.hero-subtitle {
  display: inline-block;
  color: var(--smg-teal);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-text-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--smg-blue);
  margin-bottom: 24px;
}

.hero-text-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-dots {
  display: flex;
  gap: 12px;
  margin-top: 50px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background-color: var(--smg-teal);
  width: 32px;
  border-radius: 6px;
}

.features-section { padding: 80px 0; background-color: #ffffff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.feature-item { text-align: left; padding: 30px; background: var(--bg-body); border-radius: 12px; transition: transform 0.3s; }
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(10, 61, 98, 0.05); }
.feature-icon { font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--smg-teal); margin-bottom: 15px; line-height: 1; }
.feature-item h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--smg-blue); }
.feature-item p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* 产品卡片区域：完美居中修复 */
.featured-products-section { padding: 80px 0; background-color: var(--bg-body); margin: 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1040px; /* 限制宽度，确保三张卡片完美居中 */
  margin: 0 auto; /* 整体居中 */
  justify-content: center;
}
.product-card { background: #ffffff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(10, 61, 98, 0.04); border: 1px solid var(--border-light); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 12px 30px rgba(10, 61, 98, 0.1); transform: translateY(-6px); }
.product-img-wrapper { width: 100%; height: 240px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; background-color: var(--smg-blue-light); }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrapper img { transform: scale(1.05); }
.product-card .text-placeholder { background: transparent; border-left: none; padding: 0; box-shadow: none; font-size: 15px; min-height: 70px; margin: 0; }

/* ==========================================================================
   工程案例区域 (Project Cases / Solution Showcase · 品牌浅蓝底色与动画)
   ========================================================================== */
.project-cases-section {
  position: relative;
  background-color: #f0f4f8;
  background-image: linear-gradient(135deg, #f0f4f8 0%, #e2eaf2 100%);
  padding: 95px 0 120px 0; /* 底部空间充足，避免按钮卡在变色边缘 */
  color: var(--text-main);
  overflow: hidden;
}

/* 顶部标题区 */
.project-cases-header {
  text-align: center;
  margin-bottom: 40px;
}

.project-cases-header .project-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--smg-blue);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.project-cases-header .project-subtitle {
  display: inline-block;
  color: var(--smg-teal); /* 品牌青绿 SOLUTION */
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* 轮播包裹层（左右箭头定位） */
.project-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 轮播视口容器 */
.project-slider-viewport {
  width: 100%;
  overflow: hidden;
  padding: 15px 5px;
}

/* 滚动轨道 (8张卡片水平排列并平滑滑动) */
.project-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 左右箭头 */
.project-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--smg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(10, 61, 98, 0.08);
  padding: 0;
}

.project-arrow-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.project-arrow-btn:hover {
  background: var(--smg-teal);
  border-color: var(--smg-teal);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(14, 122, 127, 0.35);
}

.project-arrow-btn.prev-btn {
  left: -24px;
}

.project-arrow-btn.next-btn {
  right: -24px;
}

.project-arrow-btn.prev-btn:hover svg {
  transform: translateX(-2px);
}

.project-arrow-btn.next-btn:hover svg {
  transform: translateX(2px);
}

/* 单个案例卡片 */
.project-card {
  flex: 0 0 calc((100% - 72px) / 4); /* 桌面端一屏展示 4 张卡片 */
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 18px rgba(10, 61, 98, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(10, 61, 98, 0.12);
  border-color: var(--smg-teal);
}

/* 图片区域 */
.project-img-box {
  width: 100%;
  height: 220px;
  background: var(--smg-blue-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.project-card:hover .project-img-box img {
  transform: scale(1.08);
}

/* 卡片光影扫过动效 (Shimmer Effect) */
.project-img-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.project-card:hover .project-img-box::after {
  left: 160%;
}

/* 底部白色标题条（图2右下角斜切角效果） */
.project-label-box {
  background-color: #ffffff;
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid #f0f4f8;
  /* 右下角斜切角效果 */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: background-color 0.3s ease;
}

.project-label-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--smg-blue);
  margin: 0;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.project-card:hover .project-label-box h3 {
  color: var(--smg-teal);
}

/* 指示小圆点 (胶囊动态拉长动效) */
.project-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.project-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-dot.active {
  background: var(--smg-teal);
  border-color: var(--smg-teal);
  width: 32px;
  box-shadow: 0 2px 8px rgba(14, 122, 127, 0.4);
}

/* 了解更多按钮容器 */
.project-btn-wrap {
  text-align: center;
  margin-top: 45px;
}

/* 统一的 Learn More 按钮样式 (与 View All Products 保持 100% 统一) */
.project-more-btn {
  display: inline-block;
  background-color: var(--smg-teal);
  color: #ffffff;
  padding: 14px 38px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(14, 122, 127, 0.2);
}

.project-more-btn:hover {
  background-color: var(--smg-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 61, 98, 0.3);
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .project-card {
    flex: 0 0 calc((100% - 48px) / 3); /* 中大屏展示 3 张卡片 */
  }
  .project-arrow-btn.prev-btn { left: 0px; }
  .project-arrow-btn.next-btn { right: 0px; }
}

@media (max-width: 992px) {
  .project-card {
    flex: 0 0 calc((100% - 24px) / 2); /* 平板展示 2 张卡片 */
  }
  .project-arrow-btn {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .project-card {
    flex: 0 0 100%; /* 手机单张轮播 */
  }
  .project-cases-header .project-title { font-size: 1.8rem; }
  .project-cases-header .project-subtitle { font-size: 1rem; }
  .project-arrow-btn { display: none; }
}

/* 客户评价 (背景已改为全白) */
.testimonials-section {
  padding: 100px 0;
  background-color: #ffffff; /* 关键修改：变成纯白背景 */
  color: var(--text-main);
}
.testimonials-container { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.testimonials-left { flex: 1; min-width: 300px; }
.testimonials-left h2 { font-size: 2.8rem; color: var(--smg-blue); margin-bottom: 20px; }
.testimonials-left p { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.testimonials-right { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 30px; }
.testimonial-card { background-color: #f7f9fc; border-radius: 12px; padding: 35px; color: var(--text-main); box-shadow: 0 10px 30px rgba(10, 61, 98, 0.04); border: 1px solid var(--border-light); position: relative; transition: transform 0.3s, box-shadow 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(10, 61, 98, 0.08); }
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar-icon { width: 45px; height: 45px; background-color: var(--smg-blue-light); color: var(--smg-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; border: 2px solid var(--smg-teal); }
.testimonial-header h4 { font-size: 1.15rem; color: var(--smg-blue); margin: 0; }
.testimonial-card p { font-size: 15.5px; color: var(--text-muted); line-height: 1.8; margin: 0; font-style: italic; }

/* 询盘横幅 */
.contact-banner-section { padding: 90px 0; background: linear-gradient(135deg, rgba(10, 61, 98, 0.95) 0%, rgba(7, 42, 68, 0.9) 100%), url('mainphotos/HPL 15 mm.png') center/cover no-repeat; }
.contact-banner-container { display: flex; gap: 50px; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.company-card { flex: 1; min-width: 320px; max-width: 450px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; padding: 45px; color: #ffffff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.company-card h2 { font-size: 1.8rem; margin-bottom: 20px; color: #ffffff; line-height: 1.3; }
.company-card p { font-size: 15px; line-height: 1.8; margin-bottom: 35px; color: rgba(255, 255, 255, 0.8); }
.card-btn { display: inline-block; background-color: var(--smg-teal); color: #ffffff; padding: 14px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.card-btn:hover { background-color: #ffffff; color: var(--smg-blue); transform: translateY(-2px); }

.inquiry-form-wrapper { flex: 1; min-width: 320px; max-width: 600px; padding: 20px 0; display: flex; flex-direction: column; justify-content: center; }
.inquiry-form-wrapper h2 { color: #ffffff; font-size: 2.2rem; margin-bottom: 30px; }
.inquiry-form-wrapper form { display: flex; flex-direction: column; gap: 20px; }
.inquiry-form-wrapper input, .inquiry-form-wrapper textarea { width: 100%; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; font-family: inherit; font-size: 15px; outline: none; transition: all 0.3s; }
.inquiry-form-wrapper input::placeholder, .inquiry-form-wrapper textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.inquiry-form-wrapper input:focus, .inquiry-form-wrapper textarea:focus { background-color: rgba(255, 255, 255, 0.15); border-color: var(--smg-teal); }
.inquiry-form-wrapper button { align-self: flex-end; background-color: var(--smg-teal); color: #ffffff; padding: 14px 45px; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; letter-spacing: 1px; }
.inquiry-form-wrapper button:hover { background-color: #ffffff; color: var(--smg-blue); }

/* ==========================================================================
   6. 全宽页脚修复 (完美居中)
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #f0f4f8;
  color: var(--text-main);
  font-size: 15px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 80px 40px 60px 40px;
  align-items: start;
}

.footer-info-col {
  padding-right: 40px;
  display: flex;
  flex-direction: column;
}

.footer-contact-item {
  margin-bottom: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.footer-contact-item strong {
  color: var(--smg-blue);
  min-width: 70px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--smg-teal);
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--smg-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 14px;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--smg-teal);
}

/* 关注我们列 */
.footer-social-col {
  text-align: center;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--smg-teal);
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s;
}

.footer-social-icons a svg {
  width: 16px;
  height: 16px;
}

.footer-social-icons a:hover {
  background-color: var(--smg-blue);
  transform: translateY(-3px);
}

.footer-bottom-bar {
  width: 100%;
  background-color: var(--smg-blue);
  color: #ffffff;
  text-align: center;
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom-bar p {
  margin: 0;
  opacity: 0.8;
}

/* ==========================================================================
   7. 悬浮 WhatsApp 按钮修复
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366 !important;
  color: #ffffff !important;
  border-radius: 50px;
  z-index: 9999;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  animation: wa-pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe54 !important;
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #ffffff;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Base CTA Group & Button Styles */
.contact-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 1;
  min-width: 180px;
}
.cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.cta-whatsapp:hover { background: #1ebe54; }
.cta-facebook {
  background: #1877F2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}
.cta-facebook:hover { background: #166fe5; }

/* ==========================================================================
   8. 手机端与平板全局深度适配 (Responsive System)
   ========================================================================== */

/* 大平板与小笔记本 (<= 1200px) */
@media (max-width: 1200px) {
  .header-inner {
    padding: 0 16px;
  }
  .main-nav {
    gap: 16px;
  }
  .nav-link {
    font-size: 14px;
  }
  .custom-lang-switcher {
    margin-left: 16px;
  }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
  }
  .footer-social-col {
    grid-column: span 4;
    text-align: center;
    margin-top: 20px;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

/* 中等平板 (<= 992px) */
@media (max-width: 992px) {
  .site-header {
    height: auto;
  }
  .header-inner {
    height: 80px;
    justify-content: space-between;
  }
  .site-header .logo-link {
    position: static;
    transform: none;
  }
  .site-header .logo-link img {
    height: 48px !important;
  }
  .nav-right-wrapper {
    gap: 12px;
  }
  .main-nav {
    gap: 12px;
  }
  .nav-link {
    font-size: 13.5px;
    padding: 6px 0;
  }
  .custom-lang-switcher {
    margin-left: 10px;
  }
  main {
    margin-top: 80px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .hero-text-content {
    max-width: 100%;
  }
  .hero-text-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
  .hero-dots {
    justify-content: center;
  }
  .hero-image-wrapper {
    height: clamp(260px, 45vw, 380px);
  }

  .testimonials-container {
    flex-direction: column;
    gap: 40px;
  }
  .testimonials-left {
    text-align: center;
  }

  .contact-banner-container {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }
  .company-card, .inquiry-form-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-info-col {
    grid-column: span 2;
    padding-right: 0;
    text-align: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-social-col {
    grid-column: span 2;
  }
}

/* 手机端与小平板 (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* 顶部导航移动端重构 */
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    justify-content: center;
  }
  .site-header .logo-link {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  .site-header .logo-link img {
    height: 42px !important;
  }
  .nav-right-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
    width: 100%;
  }
  .nav-link {
    font-size: 13px;
    padding: 4px 6px;
    letter-spacing: 0;
  }
  .custom-lang-switcher {
    margin-left: 0;
    margin-top: 4px;
  }
  .lang-trigger {
    height: 32px;
    padding: 4px 10px;
    font-size: 12.5px;
  }
  main {
    margin-top: 135px;
  }

  /* 首页各模块响应式缩放 */
  .hero-section {
    padding: 30px 0;
  }
  .hero-text-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-text-content p {
    font-size: 14.5px;
  }
  .hero-image-wrapper {
    height: 240px;
  }

  .why-section, .featured-products, .testimonials-section, .contact-banner-section {
    padding: 50px 0;
  }
  .why-section h2, .featured-products h2, .testimonials-left h2, .inquiry-form-wrapper h2 {
    font-size: 1.8rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-item {
    padding: 24px 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 页脚 */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 50px 16px 30px 16px;
  }
  .footer-info-col {
    grid-column: span 1;
  }
  .footer-social-col {
    grid-column: span 1;
    margin-top: 10px;
  }

  /* 浮动 WhatsApp 按钮 */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none !important;
  }

  /* 产品详情页移动端 */
  .product-detail-page {
    padding: 20px 0 50px 0;
  }
  .product-detail-top {
    flex-direction: column;
    gap: 24px;
  }
  .product-gallery, .product-summary {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
  .product-main-image {
    height: clamp(240px, 65vw, 360px);
  }
  .product-thumbnails {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .product-thumb {
    flex: 0 0 68px;
    height: 56px;
  }
  .product-summary h1 {
    font-size: 1.75rem;
  }
  .product-subtitle {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }
  .quick-specs li {
    font-size: 14px;
    padding: 8px 0;
  }
  .quick-specs .price-value {
    font-size: 1.2rem;
  }
  .contact-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .cta-btn {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    font-size: 14.5px;
  }

  /* 参数表格适配 */
  .spec-table {
    font-size: 0.85rem;
  }
  .spec-table th, .spec-table td {
    padding: 10px 12px;
  }
  .spec-table th {
    width: 38%;
    word-break: break-word;
  }
  .spec-table td {
    width: 62%;
    word-break: break-word;
  }

  /* 核心特点适配 */
  .product-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-features li {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* 表单输入框适配 (防 iOS 放大) */
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 16px !important;
  }
}

/* 超小屏手机 (<= 480px) */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 12px;
  }
  .main-nav {
    gap: 4px 8px;
  }
  .nav-link {
    font-size: 12px;
    padding: 3px 4px;
  }
  main {
    margin-top: 130px;
  }
  .hero-text-content h1 {
    font-size: 1.6rem;
  }
  .hero-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  .product-summary h1 {
    font-size: 1.55rem;
  }
  .spec-table th {
    width: 42%;
    font-size: 0.82rem;
  }
  .spec-table td {
    width: 58%;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   补全缺失的各页面专属排版样式 (修复分栏错乱)
   ========================================================================== */

/* --- 1. 联系我们页面的左右分栏 --- */
.contact-wrapper {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form-placeholder {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 20px rgba(10, 61, 98, 0.05);
}

.map-container {
  margin-top: 30px;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(10, 61, 98, 0.05);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- 2. 关于我们页面的左右分栏与证书 --- */
.about-wrapper {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.about-image-placeholder {
  width: 450px;
  height: 350px;
  background-color: var(--smg-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smg-teal);
  font-size: 16px;
  font-weight: 500;
  border: 2px dashed var(--smg-teal);
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.certificates-section {
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 35px;
}

.cert-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10, 61, 98, 0.05);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(10, 61, 98, 0.12);
}

.cert-img-wrapper {
  width: 100%;
  height: 400px;
  background-color: #f8fafc;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

.cert-img-wrapper img {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  box-shadow: none;
  animation: certScrollAnim 14s ease-in-out infinite alternate;
  will-change: transform;
}

.cert-card:hover .cert-img-wrapper img {
  animation-play-state: paused;
}

@keyframes certScrollAnim {
  0%, 12% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(calc(-100% + 400px));
  }
}

.cert-info {
  padding: 22px 20px;
  text-align: center;
}

.cert-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(10, 61, 98, 0.1);
}

.cert-img-wrapper {
  width: 100%;
  height: 280px;
  background-color: #f8fbfd;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.cert-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.05);
}

.cert-info {
  padding: 20px;
  text-align: center;
}

/* --- 3. 知识库(百科)页面的列表 --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.article-item {
  display: flex;
  gap: 30px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(10, 61, 98, 0.03);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}

.article-item:hover {
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.08);
}

.article-img-wrapper {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--smg-blue-light);
}

.article-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-item:hover .article-img-wrapper img {
  transform: scale(1.05);
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.readmore-placeholder {
  display: inline-block;
  color: var(--smg-teal);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--smg-teal);
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  margin-top: 10px;
}

.readmore-placeholder:hover {
  color: var(--smg-blue);
  border-bottom-color: var(--smg-blue);
}

/* 手机端补充适配 */
@media (max-width: 768px) {
  .contact-wrapper, .about-wrapper {
    flex-direction: column;
  }
  .contact-form-placeholder {
    padding: 20px;
  }
  .article-item {
    flex-direction: column;
    padding: 20px;
  }
  .article-img-wrapper {
    width: 100%;
    height: 200px;
  }
  .about-image-placeholder {
    width: 100%;
    height: 260px;
  }
}

/* 4. 全局防护：防止标题在没有文字时变成一个绿点 */
h2:empty { display: none; }

/* ==========================================================================
   9. 各页面内联样式统一收编（原 article-1/2/3.html、contact.html、about.html 内联块）
   ========================================================================== */
.article-page { padding: 60px 0 80px 0; max-width: 860px; margin: 0 auto; }
    .breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; text-transform: uppercase; }
    .breadcrumb a { color: var(--smg-teal); text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .article-page h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
    .article-meta { color: var(--text-muted); margin-bottom: 40px; font-size: 15px; display: flex; gap: 15px; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
    .article-hero-img { width: 100%; height: 450px; object-fit: cover; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(10, 61, 98, 0.08); }
    .article-body { font-size: 1.15rem; line-height: 1.9; color: var(--text-main); }
    .article-body h2 { margin-top: 50px; margin-bottom: 20px; font-size: 1.8rem; border-left: 5px solid var(--smg-teal); padding-left: 15px; }
    .article-body p { margin-bottom: 24px; }
    .article-body ul { margin-bottom: 24px; padding-left: 20px; }
    .article-body li { margin-bottom: 12px; }
    .article-body strong { color: var(--smg-blue); font-weight: 700; }
    .comparison-table { width: 100%; border-collapse: collapse; margin: 40px 0; background-color: #ffffff; box-shadow: 0 4px 15px rgba(10, 61, 98, 0.03); border-radius: 8px; overflow: hidden; font-size: 1rem; }
    .comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-light); }
    .comparison-table th { background-color: var(--smg-blue); color: #ffffff; font-weight: 600; text-transform: uppercase; font-size: 14px; }
    .comparison-table tr:last-child td { border-bottom: none; }
    .comparison-table tr:nth-child(even) { background-color: var(--bg-body); }
    .article-cta { background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%); padding: 40px; border-radius: 12px; margin: 50px 0; text-align: center; border: 1px solid var(--border-light); }
    .article-cta h3 { font-size: 1.6rem; margin-bottom: 15px; }
    .article-cta p { color: var(--text-muted); margin-bottom: 25px; }
    .related-articles { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--border-light); }
    .related-articles h3 { font-size: 1.8rem; margin-bottom: 30px; }
    @media (max-width: 768px) { .article-page h1 { font-size: 2rem; } .article-hero-img { height: 250px; } .article-body { font-size: 1rem; } .comparison-table { display: block; overflow-x: auto; } }

/* --- 联系页表单样式 --- */
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
    .contact-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--smg-teal); margin-top: 4px; }
    .contact-icon svg { width: 100%; height: 100%; }
    .contact-item .text-placeholder { margin-bottom: 0; padding: 0; background: transparent; border-left: none; box-shadow: none; font-size: 16px; color: var(--text-main); line-height: 1.6; }
    .social-contact { display: flex; gap: 15px; margin: 30px 0; flex-wrap: wrap; }
    .btn-whatsapp, .btn-facebook { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.3s; color: #ffffff; }
    .btn-whatsapp { background-color: #25D366; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    .btn-whatsapp:hover { background-color: #1ebe54; transform: translateY(-2px); }
    .btn-facebook { background-color: #1877F2; box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); }
    .btn-facebook:hover { background-color: #166fe5; transform: translateY(-2px); }
    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--smg-blue); }
    .form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 8px; background-color: #f8fbfd; font-family: inherit; font-size: 15px; color: var(--text-main); transition: border-color 0.3s, box-shadow 0.3s; }
    .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--smg-teal); box-shadow: 0 0 0 3px rgba(14, 122, 127, 0.15); background-color: #ffffff; }
    .form-group textarea { resize: vertical; min-height: 120px; }
    .contact-form-placeholder .button-placeholder { border: none; font-family: inherit; font-size: 16px; transition: background-color 0.3s, transform 0.2s; }
    .contact-form-placeholder .button-placeholder:hover { background-color: var(--smg-blue); transform: translateY(-2px); }

.cert-img-wrapper a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* --- 产品页图片占位符 --- */
.product-img-placeholder {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: var(--smg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smg-teal);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}
