/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #43a5b1; /* 品牌主色 - 深青色 */
  --secondary-color: #4ec0cd; /* 亮青色 */
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --container-width: 1200px; /* GSAP Reveal 初始状态 (可选，增加加载平滑度) */
  .section-title,
  .feature-item,
  .about-text h4,
  .about-text p,
  .factory-grid img,
  .stat-num {
    opacity: 0;
    will-change: transform, opacity;
  }
  --transition: all 0.3s ease;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* 按钮基础样式 */
.btn-primary {
  display: inline-block;
  padding: 12px 45px;
  background-color: #52b2bc;
  color: var(--white);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-outline {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header */
.header {
  height: 100px;
  background-color: #52b2bc; /* 截图取色：蓝绿色 */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%; /* 允许撑开到全屏 */
  padding: 0 100px; /* 两侧留 40px 边距 */
}

/* Logo 样式 */
.logo {
  display: flex;
  align-items: center;
}

.nav > ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav li {
  position: relative;
}

.nav a {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav a.has-dropdown::after,
.nav li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #ffffff;
  margin-top: 2px;
  transition: var(--transition);
}

/* PC Dropdown Menu */
.nav li.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  color: #333 !important;
  padding: 12px 25px !important;
  font-size: 14px !important;
  display: block !important;
  background: none !important;
  border-radius: 0 !important;
  transition: all 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f7f9fa !important;
  color: var(--primary-color) !important;
}

/* Show on Hover (PC) */
@media (min-width: 769px) {
  .nav li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-right img {
  cursor: pointer;
  filter: brightness(0) invert(1); /* 强制图标变白 */
}

.lang-select {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 自定义 Swiper 分页器 */
.hero .swiper-pagination-bullet {
  width: 40px;
  height: 3px;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: var(--transition);
}

.hero .swiper-pagination-bullet-active {
  background-color: var(--white);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.btn-more {
  display: inline-block;
  padding: 12px 40px;
  border: 2px solid var(--primary-color);
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
}

.hero-dots {
  display: none; /* 移除旧的点点容器，由 swiper 接管 */
}

/* Section Common */
.text-center {
  text-align: center;
}
.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 50px;
  width: 100%; /* 全屏宽度 */
}

/* 内部文字容器，保持 1200px 对齐 */
.section-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  background-color: #f7f9fa; /* 遮住重叠的线条部分 */
  display: inline-block;
  padding: 0 60px; /* 增加文字两侧留白 */
}

.section-header::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  /* background-color: #ade1e5; 截图取色：极淡的青灰色 */
  z-index: 1;
}
.products .section-header-inner {
  background-color: #fff;
}
.section-title {
  font-size: 32px;
  font-weight: 500;
  color: #52b2bc;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.description {
  color: #666;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.feature-item {
  background: #ffffff;
  padding: 50px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* 加深加大阴影范围 */
  border-radius: 4px;
  transition: var(--transition);
  /* 移除边框，利用阴影区分层次 */
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.feature-icon img {
  height: 48px;
  width: auto;
}

.feature-item h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.feature-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* Stats */
.stats {
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("../images/homepic1.png") no-repeat center/cover;
  height: 540px; /* 固定高度 */
  display: flex;
  align-items: center;
  color: #ffffff;
}

.stats-grid {
  display: flex; /* 使用 flex 替代 grid 以便更好地控制分布 */
  justify-content: space-around;
  text-align: center;
  width: 100%;
  padding: 0 10%; /* 限制边缘间距 */
}

.stat-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.stat-icon img {
  height: 50px;
  width: auto;
}

.stat-num {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 15px;
  opacity: 0.6; /* 稍微调淡说明文字 */
}

/* Product Carousel */
.products {
  height: 1128px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.product-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin: 60px 0 80px;
}

.product-list {
  display: flex;
  align-items: center;
  gap: 120px; /* 进一步拉大产品间距 */
}

.product-card {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-top: 4px solid #52b2bc;
  margin-bottom: 25px;
  overflow: hidden;
  transition: var(--transition);
  will-change: transform; /* 开启硬件加速 */
}

.product-item.no-transition,
.product-item.no-transition * {
  transition: none !important; /* 动效执行期间关闭 CSS 过渡，避免与 GSAP 冲突 */
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中间大图 */
.product-item.active .product-card {
  height: 507px;
  width: auto;
}

/* 两边小图 */
.product-item.side .product-card {
  height: 435px;
  width: auto;
}

/* 响应式高度限制 */
@media (max-width: 1200px) {
  .product-item.active .product-card {
    height: 400px;
  }
  .product-item.side .product-card {
    height: 340px;
  }
}

@media (max-width: 992px) {
  .product-item.active .product-card {
    height: 320px;
  }
  .product-item.side .product-card {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .product-item.active .product-card {
    height: 280px;
  }
  .product-item.side .product-card {
    height: 220px;
  }
  .product-carousel {
    gap: 20px;
  }
  .product-list {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .product-item.active .product-card {
    height: 200px;
  }
  .product-item.side .product-card {
    height: 160px;
  }
}

.product-item p {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 箭头样式定制：实心三角形 */
.arrow {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  background: transparent;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: var(--transition);
}

.arrow.prev {
  border-right: 20px solid #ccc; /* 灰色左箭头 */
  border-left: none;
}

.arrow.next {
  border-left: 20px solid #52b2bc; /* 蓝绿色右箭头 */
  border-right: none;
}

.arrow:hover {
  opacity: 0.8;
}

/* Partners 合作伙伴 */
.partners {
  height: 710px;
  background: url("../images/homepic2.png") no-repeat center/cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.partners .section-header-light {
  margin-bottom: 60px;
  width: 100%;
}

.partners .section-header-light .section-header-inner {
  background: transparent;
  color: #fff;
}

.partners .section-header-light .section-title {
  color: #fff;
}

.partners .section-header-light .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.partners .section-header-light::before {
  background-color: rgba(255, 255, 255, 0.3);
}

.partner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 30px;
}

.partner-card {
  background: #f1f1f1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.partner-card.center {
  width: 403px;
  height: 113px;
  font-size: 40px;
  font-weight: 500;
  color: #333;
  z-index: 2;
}

.partner-card.side {
  width: 302px;
  height: 92px;
  font-size: 28px;
  color: #666;
  opacity: 0.9;
}

.card-content {
  text-align: center;
  letter-spacing: 2px;
}

.partner-ctrl {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  flex-shrink: 0;
}

.partner-ctrl:hover {
  background-color: #52b2bc;
}

/* 模拟箭头图标 */
.partner-ctrl::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid #52b2bc;
  border-right: 2.5px solid #52b2bc;
}

.partner-ctrl.prev::after {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.partner-ctrl.next::after {
  transform: rotate(45deg);
  margin-right: 5px;
}

.partner-ctrl:hover::after {
  border-color: #fff;
}

.partner-ctrl img {
  display: none;
}

.partner-pagination {
  margin-top: 80px;
  display: flex;
  gap: 12px;
}

.p-dot {
  width: 45px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.p-dot.active {
  background-color: #fff;
  width: 60px;
}

/* About Us & Factory 关于我们 & 工厂 */
.about-us {
  height: 1960px;
  background-color: #f7f9fa;
  padding: 120px 0;
  display: flex;
  flex-direction: column;
}

.about-us .section-header {
  margin-bottom: 120px;
}

.about-flex {
  display: flex;
  gap: 120px;
  align-items: center;
  margin-bottom: 180px;
  padding: 0 20px;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text h4 {
  font-size: 36px;
  color: #52b2bc;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.about-text p {
  color: #666;
  margin-bottom: 50px;
  font-size: 16px;
  line-height: 2;
}

.about-image {
  flex: 1.1;
}

.about-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 50px;
}

.factory-grid img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.factory-grid img:hover {
  transform: translateY(-10px);
}

/* Footer 底部 */
.footer {
  height: 928px;
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.footer-inner {
  flex: 1;
  display: flex;
  align-items: flex-end;
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-left {
  flex: 0 0 730px;
  height: 800px;
}

.spokesperson {
  width: 730px;
  height: 800px;
  object-fit: cover;
  display: block;
}

.footer-right {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 120px 100px 100px; /* 增加边距使内容更紧凑 */
}

.footer-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1.5px solid #52b2bc;
  margin-bottom: 70px;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-links a {
  font-size: 20px;
  color: #333;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #52b2bc;
}

.footer-logo img {
  height: 39px;
  width: auto;
}

.footer-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.footer-contacts .contact-block {
  margin-bottom: 50px;
}

.contact-title {
  font-size: 26px;
  color: #333;
  font-weight: bold;
  margin-bottom: 15px;
}

.contact-value {
  font-size: 22px;
  color: #52b2bc;
  font-weight: 500;
}

.footer-codes {
  display: flex;
  gap: 40px;
}

.qr-card {
  text-align: center;
}

.qr-img-wrap {
  width: 225px;
  height: 227px;
  background-color: #e9f5f6;
  border-radius: 35px; /* 略微加大圆角 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.qr-img-wrap img {
  width: 175px;
  height: 175px;
}

.qr-card p {
  font-size: 19px;
  color: #666;
}

.copyright {
  height: 104px;
  background-color: #52b2bc;
  display: flex;
  align-items: center;
  z-index: 10;
}

.copyright-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 120px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 26px;
}

.domain {
  font-size: 22px;
  letter-spacing: 2px;
}

.social-links {
  display: flex;
  gap: 30px;
}

.social-icon {
  width: 35px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.social-icon:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Responsive Design 响应式适配
   ========================================================================== */

/* Tablet 平板屏 (1024px 以下) */
@media (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }

  .container {
    padding: 0 40px;
  }

  .header-inner {
    padding: 20px 40px;
  }

  .nav ul {
    gap: 15px;
  }

  .features-grid {
    gap: 20px;
  }

  .product-list {
    gap: 40px;
  }

  .partner-container {
    gap: 20px;
    padding: 0 20px;
  }

  .about-flex {
    gap: 40px;
  }

  .factory-grid {
    gap: 30px;
  }
}

/* Mobile 手机屏 (768px 以下) */
@media (max-width: 768px) {
  .copyright-inner {
    background-color: #52b2bc;
  }
  .social-icon {
    width: 26px;
    height: 26px;
  }
  .container {
    padding: 0 20px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }

  /* Header 移动端菜单 */
  .header {
    height: 70px; /* 稍微降低高度 */
  }

  .header-inner {
    padding: 0 15px;
  }

  .logo img {
    height: 26px; /* 缩小 Logo */
    width: auto;
  }

  .header-right {
    gap: 15px;
  }

  .header-right img {
    width: 20px; /* 缩小右侧图标 */
    height: 20px;
  }

  /* Header 移动端菜单开关动画 */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    height: 32px;
    width: 32px;
    margin-left: 10px;
    position: relative;
  }

  .menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: #fff; /* 用户指定白色 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* 汉堡菜单到 X 的变形动画 */
  .nav.active + .header-inner .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #333; /* 展开后在白色菜单背景上显色 */
  }
  .nav.active + .header-inner .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.active + .header-inner .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #333;
  }

  /* 抽屉式侧边菜单 (Drawer) */
  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    padding-top: 100px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000; /* 调高 z-index 确保在最上层 */
    overflow-y: auto;
    display: block;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    padding: 0 30px;
    gap: 0;
  }

  .nav li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #333;
    font-weight: 500;
  }

  /* Mobile Dropdown Specifics */
  .nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none; /* 默认隐藏 */
    width: 100%;
    box-shadow: none;
    border-top: none;
    background: #f7f9fa;
    padding: 0;
    transform: none;
    transition: none;
  }

  .nav li.dropdown-open .dropdown-menu {
    display: block;
  }

  .nav li.has-dropdown > a::after {
    border-top-color: #333;
    transition: transform 0.3s;
  }

  .nav li.dropdown-open > a::after {
    transform: rotate(180deg);
  }

  .nav .dropdown-menu li a {
    padding: 12px 20px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  /* 遮罩层状态控制 */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2500; /* 在菜单下方，但高于其他所有元素 */
    pointer-events: auto; /* 让它响应点击 */
  }

  body.menu-open {
    overflow: hidden; /* 锁定背景滚动 */
  }

  .header {
    z-index: 2800; /* 确保 header 整体也维持高层级 */
  }

  /* Hero */
  .hero {
    height: 40vh;
  }

  /* Enter Gaten */
  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  /* Stats */
  .stats {
    height: auto;
    padding: 60px 0;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 5%;
  }

  .stat-num {
    font-size: 32px;
  }

  /* Products */
  .products {
    height: auto;
    padding: 60px 0;
  }

  .product-carousel {
    flex-direction: row; /* 强制水平排列 */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .product-list {
    flex: 1;
    flex-direction: row; /* 保持水平内容 */
    justify-content: center;
    gap: 0;
  }

  .product-item.side {
    display: none; /* 小屏隐藏侧边图 */
  }

  .product-item.active .product-card {
    height: 280px;
    width: 240px; /* 稍微缩小尺寸以留出箭头位置 */
    margin: 0 auto;
  }

  .products .arrow {
    /* width: 44px;
    height: 44px; */
    flex: 0 0 auto;
  }

  /* Partners */
  .partners {
    height: auto;
    padding: 60px 0;
  }

  .partner-track {
    flex-direction: column;
    gap: 20px;
  }

  .partner-card.side {
    display: none;
  }

  .partner-card.center {
    width: 280px;
    height: 80px;
    font-size: 24px;
  }

  .partner-pagination {
    margin-top: 30px;
  }

  /* About Us & Factory */
  .about-us {
    height: auto;
    padding: 60px 0;
  }

  .about-flex {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }

  .about-text h4 {
    font-size: 28px;
    text-align: center;
  }

  .about-text p {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
  }

  .about-text {
    text-align: center;
  }

  .factory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .factory-grid img {
    border-radius: 15px;
  }
}

/* ==========================================
   Company Profile (About Page)
   ========================================== */

.page-banner {
  height: 600px;
  background: url("../images/banner.png") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.banner-overlay {
  z-index: 2;
}

.banner-overlay h1 {
  font-size: 48px;
  margin-bottom: 10px;
  letter-spacing: 4px;
}

.banner-overlay p {
  font-size: 18px;
  opacity: 0.8;
  letter-spacing: 2px;
}

.banner-pagination {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 15px;
}

.banner-pagination .p-line {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-pagination .p-line.active {
  background: var(--primary-color);
  width: 80px;
}

/* About Layout */
.about-row {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* Side Stats */
.about-side-stats {
  width: 280px;
  flex-shrink: 0;
}

.side-stat-item {
  background: var(--primary-color);
  color: #fff;
  padding: 45px 20px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  position: relative;
  transition: transform 0.3s;
}

.side-stat-item:hover {
  transform: translateY(-5px);
}

.side-stat-item .num {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

.side-stat-item .label {
  font-size: 16px;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* 数据块间的分隔线 */
.side-stat-item .line {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  position: absolute;
  bottom: -20px;
  left: 0;
  z-index: 1;
}

/* Main Text */
.about-main-text {
  flex: 1;
  padding-left: 20px;
}

.about-main-text h2 {
  font-size: 42px;
  color: #333;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: 700;
}

.about-main-text h3 {
  font-size: 18px;
  color: #aaa;
  letter-spacing: 2px;
  margin-bottom: 50px;
  font-weight: 400;
  text-transform: uppercase;
}

.text-block p {
  font-size: 18px;
  line-height: 2;
  color: #444;
  margin-bottom: 30px;
  text-align: justify;
}

.about-brand-img {
  margin: 50px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-brand-img img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}

.about-brand-img:hover img {
  transform: scale(1.02);
}

/* Responsive About */
@media (max-width: 1024px) {
  .about-row {
    flex-direction: column;
    gap: 40px;
  }
  .about-side-stats {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .side-stat-item {
    flex: 1;
    min-width: 150px;
  }
  .side-stat-item .line {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 400px;
  }
  .banner-overlay h1 {
    font-size: 32px;
  }
  .side-stat-item {
    padding: 20px 10px;
  }
  .side-stat-item .num {
    font-size: 24px;
  }
}

/* Footer Responsive (Mobile Only) */
@media (max-width: 768px) {
  .footer {
    height: auto;
    padding-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
  }

  .footer-left {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
  }

  .spokesperson {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .footer-right {
    width: 100%;
    padding: 0 20px 60px;
  }

  .footer-nav-bar {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .footer-content-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
  }

  .footer-contacts .contact-block {
    margin-bottom: 20px;
  }

  .footer-codes {
    gap: 20px;
    justify-content: center;
  }

  .qr-img-wrap {
    width: 140px;
    height: 142px;
    border-radius: 20px;
  }

  .qr-img-wrap img {
    width: 100px;
    height: 100px;
  }

  .copyright {
    height: auto;
    padding: 30px 0;
  }

  .copyright-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================
   Product Center (Products Page)
   ========================================== */

.products-banner {
  height: 500px;
  background: linear-gradient(135deg, #1a3a3a 0%, #2c5e5e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

.products-banner-inner {
  position: relative;
  z-index: 5;
}

.banner-content h2 {
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 5px;
  font-weight: 700;
}

.banner-slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-slogan .dot {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* Category Nav */
.category-nav {
  background: #f0f0f0;
  padding: 40px 0 0;
  border-bottom: 2px solid #ddd;
}

.category-list {
  display: flex;
  justify-content: flex-start;
  gap: 60px;
  list-style: none;
  padding-left: 0px;
}

.category-list li {
  position: relative;
  padding-bottom: 20px;
}

.category-list li a {
  color: #aaa;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  display: inline-block;
}

.category-list li.active a {
  color: #48c6cf;
}

.category-list li.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #48c6cf;
  z-index: 5;
}

.category-list li a:hover {
  color: #48c6cf;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.product-item-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.product-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-img-box {
  background: #f5f5f5;
  /* height: 380px; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 50px; */
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.product-item-card:hover .product-img-box img {
  transform: scale(1.05);
}

.product-info-box {
  background: #48c6cf;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.info-left h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.info-left p {
  font-size: 16px;
  opacity: 0.9;
}

.view-detail-btn {
  background: #fff;
  color: #48c6cf;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.view-detail-btn:hover {
  background: #f8f8f8;
  transform: scale(1.05);
}

/* Pagination */
.pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page-numbers {
  display: flex;
  gap: 25px;
}

.page-num {
  font-size: 24px;
  color: #c0c0c0;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-num.active {
  color: #48c6cf;
}

.page-num:hover {
  color: #48c6cf;
}

.page-arrow {
  width: 65px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.page-arrow:hover {
  opacity: 0.8;
}

.page-arrow.prev {
  background: #e6e6e6;
}

.page-arrow.next {
  background: #48c6cf;
}

.page-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.page-arrow.prev::before {
  border-width: 6px 9px 6px 0;
  border-color: transparent #fff transparent transparent;
}

.page-arrow.next::before {
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}

/* Responsive Products & Global Overrides */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .form-container {
    padding: 0 !important;
  }
  .actual-form {
    padding: 0 32px 60px !important;
  }
  .form-header {
    align-items: center;
  }
  .header-left {
    width: 100%;
    display: block;
  }
  /* Products Mobile */
  .products-banner {
    height: 300px;
    padding: 20px 0;
  }
  .banner-content h2 {
    font-size: 32px;
  }
  .banner-slogan {
    font-size: 12px;
    padding: 6px 12px;
  }
  .category-nav {
    padding: 20px 0 0;
  }
  .category-list {
    gap: 30px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
  }
  .category-list li {
    white-space: nowrap;
    padding-bottom: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-img-box {
    /* height: 160px; */
    /* padding: 15px; */
  }
  .product-info-box {
    padding: 12px 15px;
    justify-content: center;
    text-align: center;
  }
  .info-left h4 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .info-left p {
    font-size: 12px;
  }
  .view-detail-btn {
    display: none;
  }
  .pagination {
    margin-top: 40px;
    gap: 15px;
  }
  .page-numbers {
    gap: 12px;
  }
  .page-num {
    font-size: 18px;
  }

  /* Contact Form Mobile Adaption */
  .form-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px 30px;
    gap: 20px;
  }
  .header-right p {
    text-align: center;
    font-size: 14px;
  }
  .header-left h2 {
    font-size: 28px;
  }
  .actual-form {
    padding: 0 30px 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-footer {
    text-align: center;
  }

  /* Contact Mobile */
  .contact-banner {
    height: 350px;
  }
  .contact-info-row {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .detail-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .form-container {
    padding: 40px 20px;
    gap: 30px;
    flex-direction: column;
    text-align: center;
  }
  .form-header h2 {
    font-size: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .adv-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: 50px 0;
  }
  .products-banner {
    height: 250px;
  }
}

/* ==========================================
   Contact Us (Contact Page)
   ========================================== */

.contact-banner {
  background: url("../images/banner2.png") no-repeat center center;
  background-size: cover;
}

/* Advantage Grid */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.adv-img {
  height: 200px;
  overflow: hidden;
}

.adv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adv-info {
  padding: 25px 20px;
  text-align: center;
}

.adv-info h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.adv-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #777;
}

/* Contact Info Row */
.contact-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.contact-details {
  flex: 1;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.detail-item .text strong {
  display: block;
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.detail-item .text span {
  font-size: 16px;
  color: #666;
}

.contact-qr {
  text-align: center;
}

.contact-qr img {
  width: 140px;
  height: 140px;
  margin-bottom: 10px;
}

.contact-qr p {
  color: #999;
  font-size: 14px;
}

/* Dark Contact Form */
.contact-form-section {
  padding: 80px 0 120px;
}

.form-container {
  background: #333333; /* 图片中的深灰色背景 */
  color: #fff;
  padding: 0; /* 移除内边距，手动控制布局 */
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.form-top-bar {
  height: 48px;
  background-color: var(--primary-color);
  width: 100%;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 60px 80px 40px;
}

.header-left h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 2px;
}

.header-right p {
  font-size: 16px;
  opacity: 0.8;
  text-align: right;
  line-height: 1.8;
}

.actual-form {
  padding: 0 80px 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.12); /* 半透明灰色 */
  border: 1px solid transparent;
  padding: 16px 25px;
  color: #fff;
  border-radius: 50px; /* 胶囊形状 */
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  appearance: none; /* 移除原生箭头 */
  -webkit-appearance: none;
}

.form-group select option {
  color: #000;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary-color);
}

.form-group.full-width {
  margin-bottom: 40px;
}

/* 国家下拉箭头 */
.select-wrapper {
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

.form-footer {
  text-align: left;
}

.form-submit-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px; /* 按钮略带圆角，如图片中所示 */
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit-btn:hover {
  background: #3ca9b1;
  transform: translateY(-2px);
}

/* ==========================================
   Product Detail Page
   ========================================== */

.product-detail-main {
  padding: 80px 0 120px;
  background: #fff;
}

.breadcrumbs {
  font-size: 14px;
  color: #999;
  margin-bottom: 50px;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.product-rich-text {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 2;
  color: #444;
}

.product-rich-text h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.product-rich-text h3 {
  font-size: 24px;
  color: #333;
  margin-top: 60px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.product-rich-text p {
  font-size: 18px;
  margin-bottom: 25px;
  text-align: justify;
}

.product-rich-text ul {
  padding-left: 20px;
  margin-bottom: 30px;
}

.product-rich-text li {
  margin-bottom: 12px;
  font-size: 17px;
}

.product-rich-text img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.detail-footer {
  margin-top: 100px;
  border-top: 1px solid #eee;
  padding-top: 60px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 35px;
  border: 1px solid #ddd;
  border-radius: 30px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 16px;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .product-detail-main {
    padding: 60px 0 80px;
  }
  .product-rich-text h2 {
    font-size: 24px;
  }
  .product-rich-text p {
    font-size: 16px;
  }
  .detail-footer {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Responsive Contact */
@media (max-width: 1024px) {
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-container {
    flex-direction: column;
    padding: 60px 40px;
    gap: 50px;
  }
  .form-header {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .advantage-grid {
    grid-template-columns: 1fr;
    width: 95%;
  }
  .contact-info-row {
    flex-direction: column;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Search Overlay
   ========================================== */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 80%;
  max-width: 800px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.1s;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 20px 60px 20px 0; /* 右侧留出按钮空间 */
  font-size: 36px;
  color: #fff;
  outline: none;
  font-weight: 300;
  letter-spacing: 1px;
}

.search-submit-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.search-submit-btn img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1); /* 强制变白 */
  opacity: 0.6;
}

.search-submit-btn:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.6s ease;
}

.search-input:focus + .search-line {
  width: 100%;
}

.search-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
  opacity: 0.7;
}

.search-close:hover {
  transform: rotate(90deg);
  opacity: 1;
}

@media (max-width: 768px) {
  .search-input {
    font-size: 24px;
    padding: 15px 0;
  }
  .search-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
  }
}
