* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  color: #333;
  background: #fff;
  line-height: 1.7;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul, li {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航 */
.nav {
  width: 100%;
  height: 70px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  z-index: 999;
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  color: #007bff;
}
.slogan {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  gap: 38px;
  font-size: 15px;
  position: relative;
}
.nav-menu li {
  position: relative;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}
.nav-menu a:hover {
  color: #007bff;
}
.nav-menu a.active {
  color: #007bff;
  font-weight: 500;
}

/* ====================== 二级下拉菜单（你要的功能） ====================== */
.nav-menu li .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.nav-menu li .submenu li {
  padding: 0;
}
.nav-menu li .submenu a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 14px;
  color: #333;
}
.nav-menu li .submenu a:hover {
  background: #f5f7fa;
  color: #007bff;
}
.nav-menu li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 轮播 Banner */
.banner {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}
.banner-slide {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.8s ease;
}
.banner-item {
  width: 100%;
  height: 600px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  display: flex;
  align-items: center;
}
.banner-item h1 {
  font-size: 42px;
  line-height: 1.4;
  margin-bottom: 20px;
}
.banner-item p {
  font-size: 17px;
  opacity: 0.95;
  max-width: 620px;
  margin-bottom: 30px;
}
.banner-btn {
  display: inline-block;
  padding: 13px 30px;
  background: #fff;
  color: #007bff;
  border-radius: 6px;
  font-weight: 500;
}
.banner-btn:hover {
  background: #f4f4f4;
}

/* 标题 */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 50px;
}

/* 产品卡片 */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.product-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: 0.3s;
}
.product-item:hover {
  transform: translateY(-6px);
}
.product-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #f5f5f5;
}
.product-info {
  padding: 24px;
}
.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
}
.product-info p {
  font-size: 14px;
  color: #666;
}

/* 详情轮播 */
.slider-container {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important; /* 强制隐藏超出部分 */
    position: relative !important;
}

.slider-wrapper {
    display: flex !important;
    height: 100% !important;
    width: 100% !important; /* 先设为100%，JS会动态覆盖 */
    transition: transform 0.8s ease-in-out !important;
}

.slider-wrapper img {
    flex: 0 0 100% !important; /* 强制每个图片宽度100% */
    width: 100% !important;
    max-width: 100% !important; /* 清除默认最大宽度限制 */
    height: 220px !important;
    object-fit: contain !important;
    background-color: #f5f5f5 !important;
    display: block !important; /* 清除图片默认的inline间距 */
}

/* 左右布局 */
.layout-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 80px 0;
}
.layout-row .col {
  flex: 1;
}
.layout-row h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.layout-row p {
  color: #666;
  line-height: 1.8;
}

/* 联系表单 */
.form-box {
  max-width: 700px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
}
.form-item {
  margin-bottom: 20px;
}
.form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}
.form-item input,
.form-item textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}
.form-item textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  padding: 12px 30px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}
.submit-btn:hover {
  background: #0069d9;
}

/* 底部 */
.footer {
  background: #f8f9fa;
  padding: 50px 0 30px;
  font-size: 14px;
  color: #666;
  margin-top: 60px;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.footer-left h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}
.footer-left p {
  margin-bottom: 6px;
}
.footer-bottom {
  text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu {
    gap: 16px;
    font-size: 14px;
  }
  .banner, .banner-item {
    height: auto;
    padding: 60px 0;
    text-align: center;
  }
  .banner-item h1 {
    font-size: 28px;
  }
  .product-list {
    grid-template-columns: 1fr;
  }
  .layout-row {
    flex-direction: column;
  }
  .footer-wrap {
    flex-direction: column;
    gap: 24px;
  }
  .slider-container {
    height: 260px;
  }
}

/* 关于我们二级导航 */
.sub-nav {
  width: 100%;
  height: 60px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  margin-top: 70px;
}
.sub-nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
}
.sub-nav-menu {
  display: flex;
  gap: 40px;
  font-size: 16px;
}
.sub-nav-menu a {
  color: #333;
  padding: 8px 0;
  position: relative;
}
.sub-nav-menu a:hover {
  color: #007bff;
}
.sub-nav-menu a.active {
  color: #007bff;
  font-weight: 500;
}
.sub-nav-menu a.active::after {
  content: '';
  width: 100%;
  height: 3px;
  background: #007bff;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

/* 关于我们子页面通用样式 */
.about-page {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  color: #333;
}
.about-page h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #007bff;
}
.about-page p {
  margin-bottom: 15px;
  font-size: 15px;
}
.about-page .list-item {
  margin: 10px 0;
  padding-left: 15px;
  position: relative;
}
.about-page .list-item::before {
  content: '●';
  color: #007bff;
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* 合作伙伴卡片 */
.partner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.partner-item {
  height: 120px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}
.partner-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* 荣誉资质卡片 */
.honor-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.honor-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}
.honor-item img {
  height: 100px;
  margin: 0 auto 15px;
  object-fit: contain;
}
.honor-item p {
  font-weight: 500;
  margin: 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .sub-nav {
    height: auto;
    padding: 10px 0;
  }
  .sub-nav-menu {
    flex-wrap: wrap;
    gap: 15px 20px;
  }
  .partner-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .honor-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .partner-list {
    grid-template-columns: 1fr;
  }
  .honor-list {
    grid-template-columns: 1fr;
  }
}

/* 图文详情板块样式 - 核心居中配置 */
  .product-detail-section {
    margin: 80px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
  }
  .detail-content {
    max-width: 1200px; /* 限制最大宽度，适配大屏 */
    margin: 0 auto;    /* 水平居中核心 */
    padding: 0 20px;   /* 左右留白，适配小屏 */
    text-align: left;  /* 文字左对齐，图片居中 */
  }
  /* 图片样式 - 居中+自适应 */
  .detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0px auto; /* 图片水平居中 */
    display: block;    /* 配合margin:auto实现图片居中 */
  }
  /* 多图分组样式 */
  .detail-content .img-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; /* 多图容器内居中 */
    margin: 30px 0;
  }
  .detail-content .img-group img {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 10px); /* 多图每行最多2张 */
  }
  /* 文字样式 */
  .detail-content h3 {
    font-size: 20px;
    color: #222;
    margin: 40px 0 20px;
    font-weight: 600;
    text-align: center; /* 标题居中 */
  }
  .detail-content p {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 800px;   /* 文字区域限制宽度，提升阅读体验 */
    margin-left: auto;
    margin-right: auto; /* 文字块水平居中 */
  }
  /* 加载提示样式 */
  .loading-tip {
    text-align: center;
    padding: 50px 0;
    color: #999;
  }