/* 响应式布局通用样式 */

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* 防止水平溢出 */
}

/* 媒体元素响应式处理 */
img, video, svg {
  max-width: 100%; /* 确保所有媒体元素不超过父容器宽度 */
  height: auto; /* 保持宽高比 */
  display: block; /* 避免底部间隙 */
}

/* 主要内容区域样式 */
.main, main {
  width: 100%;
  max-width: 1500px; /* 限制最大宽度 */
  margin: 0 auto; /* 居中显示 */
  padding: 120px 20px 40px; /* 顶部留出导航栏高度 + 内边距 */
}

/* 视频容器 */
.video-container, .p_video, .a_video {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.video-container video, .p_video video, .a_video video {
  width: 100%;
  max-height: 400px;
  object-fit: contain; /* 保持视频原比例 */
}

/* 轮播图容器 */
.contain {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px; /* 圆角 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 阴影效果 */
}

.mainbox {
  display: flex;
  width: 500%; /* 5张图片，每张20% */
  animation: run 15s ease infinite; /* 调整为更平滑的动画 */
}

.mainbox img {
  width: 20%; /* 每张图片占轮播图的五分之一 */
  object-fit: cover; /* 确保图片覆盖整个区域 */
}

/* 内容展示布局 */
.profile, .a_text, .culture, .partner, .safety, .honor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
}

.p_text, .a_text {
  flex: 1;
  min-width: 300px;
}

.p_video, .a_video, .c_pic, .p_pic {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 导航栏样式优化 */
.nav {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-header li {
  margin: 0 5px;
  transition: all 0.3s ease;
}

.nav-header li a {
  display: block;
  padding: 0 10px;
  transition: all 0.3s ease;
}

/* 小屏幕响应式布局 */
@media (max-width: 992px) {
  .profile, .culture, .partner, .safety, .honor {
    flex-direction: column;
  }
  
  .p_text, .a_text, .p_video, .a_video, .c_pic, .p_pic {
    width: 100%;
    max-width: 100%;
  }
  
  .nav-header {
    justify-content: center;
    width: 100%;
  }
  
  .logo, .logo-txt {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }
}

/* 超小屏幕响应式布局 */
@media (max-width: 768px) {
  .main, main {
    padding: 180px 15px 30px; /* 顶部增加更多空间给双行导航 */
  }
  
  .nav-header li {
    width: auto;
    height: 50px;
    line-height: 50px;
  }
  
  .logo img {
    margin: 0 auto;
  }
  
  .logo-txt {
    height: auto;
    line-height: normal;
    margin: 10px 0;
  }
  
  .nav-header li a {
    font-size: 14px; /* 减小字体大小 */
  }
  
  .p_text h2, .a_text h2 {
    font-size: 28px;
  }
  
  .p_text h3, .a_text h3 {
    font-size: 20px;
  }
}

/* 产品中心页面样式优化 */
.pro_pic, .proMain {
  width: 100%;
  overflow: hidden;
}

.pro_pic img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.proMain_p ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

/* 新闻页面样式优化 */
.n_content {
  width: 100%;
}

.n_title ul, .n_new1 ul, .n_new2 ul {
  width: 100%;
  list-style: none;
}

/* 联系我们页面样式优化 */
.l_contain {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.l_left, .l_right {
  flex: 1;
  min-width: 300px;
}

/* 招聘页面样式优化 */
.r_contain {
  width: 100%;
}

.r_img img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.r_choose ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* 页脚调整 */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  margin: 15px;
} 