/* assets/css/style.css */

body {
  padding-top: 76px !important; /* 补偿导航栏高度 */
  background-color: #f8f9fa;
}

.navbar {
  height: 76px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1030; /* Bootstrap默认导航栏层级 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav { padding-top: 1rem; }
    .hero-section h1 { font-size: 2.5rem; }
  }

/* 移动端适配 */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 15px;
  }
  
  .navbar-collapse {
    width: 100%;
    padding: 1rem 0;
  }
}
  
  .service-card {
    transition: transform 0.3s;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  /* 移动端适配 */
@media (max-width: 768px) {
    .navbar-brand {
      max-width: 160px;
      margin-right: 1rem;
    }
  }
  
  /* 悬停效果 */
  .navbar-brand:hover .logo-image {
    opacity: 0.8;
  }

  /* 新增导航栏品牌样式 */
.navbar-brand {
    margin-top: 0;
    padding: 0;
    margin-right: 2rem;
    max-width: 200px; /* 控制LOGO最大宽度 */
    height: 60px;
  }

  
  .logo-image{
    height: 60px;
    transition: transform 0.3s ease;
  }

  .logo-image:hover {
    transform: scale(1.05);
}

  @media (max-width: 768px) {
    .logo-image {
      height: 48px;
      filter: brightness(0) invert(1); /* 黑转白最佳方案 */
    }
  }

  /* 横幅容器 */
.banner-container {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

/* 自适应图片 */
.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s ease;
}

/* 分页器样式 */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 8px !important;
}

.swiper-pagination-bullet-active {
  background: #1a73e8;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .banner-container {
      height: 50vh;
  }
  
  .swiper-pagination-bullet {
      width: 8px;
      height: 8px;
  }
}

/*产品展示*/
.product-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #434344;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ffffff;
}

.product-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
  background: url('assets/images/products.png') no-repeat;
  background-size: cover;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整显示图片 */
  object-position: center; /* 焦点居中 */
  transition: transform 0.3s ease; /* 悬停动画 */
}

/* 响应式适配 */
@media (max-width: 768px) {
  .product-section {
      padding: 2rem 0;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  .product-image-wrapper {
      margin: 0 1rem;
  }
}

/*灰色色块*/
/* 新增CSS样式 */
.new-section {
  margin: 40px 0; /* 上下边距40px */
  width: 100%;
}

.gray-block {
  background: #8f8f8f; /* 浅灰色背景 */
  height: 200px; /* 固定高度 */
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 添加柔和阴影[6](@ref) */
}

.section-title1 {
  color: #ffffff; /* 深灰色文字 */
  font-size: 3rem;
  font-weight: 600;
  text-transform: uppercase; /* 英文大写 */
  letter-spacing: 3px;
  padding: 15px 30px;
  border-left: 4px solid #ffffff; /* 左侧装饰线[8](@ref) */
  background: #8f8f8f; /* 半透明白底 */
  border-radius: 4px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .section-title {
      font-size: 1.8rem;
      padding: 10px 20px;
  }
  .gray-block {
      height: 150px; /* 移动端适当降低高度 */
  }
}

/*行业展示*/
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.industry-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.industry-card:hover {
  transform: translateY(-10px);
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(9,132,227,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.industry-card:hover .hover-overlay {
  opacity: 1;
}
.industry-card:hover img {
  transform: scale(1.08);
}

.card-title {
  text-align: center;
  padding: 20px;
  font: 500 1.3rem/1.4 '微软雅黑';
  color: #2d3436;
  background: #fff;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .industry-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
}

@media (max-width: 576px) {
  .section-title {
      font-size: 1.8rem;
      margin: 30px 0;
  }
  .industry-grid {
      grid-template-columns: 1fr;
  }
}

/*products.html*/

/* 新增横幅样式 */
.fullwidth-banner {
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fullwidth-banner img {
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.5s ease;
}

/* 悬停动效增强 */
@media (hover: hover) {
  .fullwidth-banner:hover img {
      transform: scale(1.03);
  }
}

/* 无障碍隐藏文字 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .fullwidth-banner {
      margin-bottom: 30px;
      border-radius: 0;
      box-shadow: none;
  }
  
  .fullwidth-banner img {
      min-height: 200px;
  }
}

@media (max-width: 480px) {
  .fullwidth-banner {
      margin-bottom: 20px;
  }
}

/* 标题样式 */
.section-title2 {
  text-align: center;
  font-size: 2.8rem;
  margin: 40px 0 60px;
  position: relative;
  color: #2d3436;
}
.section-title2::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: #ffffff;
  margin: 20px auto 0;
}

/* 网格布局 */
.product-grid2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card2 {
  position: relative;
  isolation: isolate;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 图片容器 */
.image-wrapper2 {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* 悬停动画 */
.product-card2:hover .product-image2 {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.hover-overlay2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(58, 59, 59, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card2:hover .hover-overlay2 {
  opacity: 1;
}

/* 文字描述 */
.product-info2 {
  padding: 15px;
  background: #fff;
  text-align: center;
  border-bottom: none !important;   /* 去除底部边框 */
  box-shadow: none;                /* 消除可能存在的阴影线 */
}

.product-model2 {
  font: 600 1.4rem/1.4 '微软雅黑';
  color: #2d3436;
  margin: 10px 0 5px;
}

.product-desc2 {
  font-size: 0.9rem;
  color: #636e72;
  line-height: 1.4;
  text-decoration: none !important;  /* 移除下划线 */
  border-bottom: 0 none;            /* 双重保险 */
}

/* 新增产品链接基础样式 */
.product-link2 {
  display: block;            /* 确保点击区域覆盖整个卡片 */
  text-decoration: none;    /* 移除下划线 */
  color: inherit;           /* 继承父级文字颜色 */
  transition: all 0.25s ease; /* 统一过渡效果 */
}

/* 悬停状态优化 */
.product-link2:hover {
  text-decoration: none;    /* 二次确认移除下划线 */
  opacity: 0.9;            /* 悬停时轻微透明效果 */
}

/* 点击反馈效果 */
.product-link2:active {
  transform: scale(0.98);  /* 按压缩小效果 */
}

/* 响应式适配 */
@media (max-width: 992px) {
  .product-grid2 {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
  }
}

@media (max-width: 576px) {
  .section-title2 {
      font-size: 2rem;
      margin: 30px 0;
  }
  .product-grid2 {
      grid-template-columns: 1fr;
  }
}

/*网站底部*/
/* 基础样式 */
.site-footer {
  background: #2d3436;
  color: #dfe6e9;
  padding: 40px 0 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* 联系方式模块 */
.contact-info h3 {
  color: #74b9ff;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.contact-info a {
  color: #dfe6e9;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #0984e3;
}

/* 导航样式 */
.footer-nav ul {
  list-style: none;
  padding-left: 0;
}

.footer-nav li {
  margin: 10px 0;
}

.footer-nav a {
  color: #b2bec3;
  text-decoration: none;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #74b9ff;
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* 社交媒体图标 */
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.social-icons i {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover i {
  transform: translateY(-3px);
}

/* 版权信息 */
.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #3d4346;
  font-size: 0.9rem;
  color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .social-icons {
      justify-content: center;
  }
}

/*Contact.html*/
/* 横幅样式 */
.contact-banner {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
  height: 300px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-banner:hover .banner-image {
  transform: scale(1.03);
}

/* 主内容容器 */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
}

/* 联系信息区域 */
.contact-info {
  flex: 1;
}

.info-title {
  font-size: 2.2rem;
  color: #2d3436;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.info-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #007bff;
}

.address-info {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.4rem;
  color: #007bff;
  margin-top: 5px;
}

.info-item p {
  margin: 0;
  line-height: 1.6;
  color: #4a5568;
}

.info-item a {
  color: #2d3436;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #007bff;
}

/* 地图区域 */
.contact-map {
  flex: 1;
  min-width: 300px;
}

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
      gap: 30px;
  }
  
  .contact-banner {
      height: 200px;
  }
  
  .map-image {
      height: 300px;
  }
  
  .info-title {
      font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .address-info {
      padding: 20px;
  }
  
  .info-item {
      flex-direction: column;
      gap: 8px;
  }
}

/*About Us*/
/* 基础布局 */
.about-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  padding: 0 20px;
}

/* 文字内容区 */
.about-content {
  flex: 1.5;
}

.company-title {
  font-size: 2.8rem;
  color: #1a365d;
  margin-bottom: 30px;
  position: relative;
}

.company-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #007bff;
}

/* 核心优势列表 */
.competence-list {
  list-style: none;
  padding-left: 0;
  margin: 25px 0;
}

.competence-list li {
  padding: 12px 20px;
  margin: 10px 0;
  background: #ffffff;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.competence-list li:hover {
  transform: translateX(10px);
}

/* 公司形象图 */
.company-image {
  flex: 1;
  min-width: 350px;
}

.featured-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 3px solid #ffffff;
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 15px;
  font-style: italic;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .about-container {
      flex-direction: column;
  }
  
  .company-image {
      order: -1;
      min-width: auto;
  }
  
  .featured-image {
      height: 350px;
  }
}

@media (max-width: 768px) {
  .company-title {
      font-size: 2.2rem;
  }
}