/* 全局样式 */
:root {
  --primary-color: #1e75bc;
  --bg-primary: #2f70ff;
  --secondary-color: #2f394f;
  --text-color: #333;
  --gray-color: #666;
  --light-gray: #f7f6f6;
  --title-color: #2d7195;
  --subtitle-color: #1c3a50;
  --white: #fff;
  --dark: #25282c;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial,
    sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* 隐藏水平滚动条 */
  width: 100vw; /* 设置宽度为视口宽度 */

}
.news-title {
  color: var(--secondary-color);
}
.news-meta {
  color: var(--gray-color);
}
.news-body {
  margin-top: 35px;
  color: var(--text-color);
}
.news-body h1{
  margin-top: 35px;
  color: var(--text-color);
}
.prev-news,
.next-news {
  color: var(--gray-color);
  text-decoration: none;
}
.prev-news:hover,
.next-news:hover {
  color: var(--text-color);
}
.bg-dark {
  background: #000;
}
/* 自定义五等分列样式 */
.col-custom-fifth {
  flex: 0 0 auto;
  width: 20%; /* 100% / 5 = 20% */
}
/* 头部导航 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.navbar-brand {
  line-height: 1.2;
}

.postion-center {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
}

.text-primary {
  color: var(--bg-primary) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.title {
  color: var(--title-color);
}
.subtitle {
  color: var(--subtitle-color);
}
.btn-outline-light:hover {
  color: var(--primary-color);
}

/* 英雄横幅 */
.hero-banner {
  margin-bottom: 2rem;
}

.hero-img {
  position: relative;
  max-height: 550px;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(47, 57, 79, 0.7);
  padding: 30px 0;
}

.hero-banner h1 {
  font-size: 2.2rem;
}

@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 1.8rem;
  }
}
.nav-item {
  padding-left: 4px;
  padding-right: 4px;
}
/* 卡片样式 */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.card-title {
  color: var(--text-color);
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-text {
  color: var(--gray-color);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-text-2 {
  color: var(--gray-color);
  font-size: 15px;
  /* 修改为以下代码来控制显示两行 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.card-text-3 {
  color: var(--gray-color);
  font-size: 15px;
  /* 修改为以下代码来控制显示两行 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  height: 260px;
  object-fit: cover;
}
.card-img-left {
  width: 152px;
  object-fit: cover;
}

/* 优势图标 */
.advantage-icon {
  width: 90px;
  height: 90px;
  font-size: 2.5rem;
}

/* 成功案例展示 */
.case-display {
  background: url(../img/casbg.jpg) repeat-x top;
}
.case-item {
  position: relative;
  height: 478px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.case-item img {
  height: auto;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}
.case-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 遮罩层背景颜色 */
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
  opacity: 0; /* 初始状态隐藏 */
  transition: opacity 0.3s ease; /* 动效过渡 */
}

.case-item:hover .overlay {
  opacity: 1; /* 悬停时显示 */
}

/* 联系表单 */
.contact-form .form-control {
  border-radius: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(6, 110, 211, 0.1);
}

/* 页脚 */
.footer {
  background-color: var(--dark);
}

.footer .nav-link {
  padding: 0.5rem 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer .nav-link:hover {
  opacity: 1;
}

/* 媒体查询 - 移动端适配 */
@media (max-width: 767px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0 15px;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .hero-overlay {
    padding: 20px 0;
    text-align: center;
  }

  .advantage-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .section {
    padding: 2rem 0;
  }

  .card-img-top {
    height: 180px;
  }

  .case-item img {
    height: 180px;
  }

  h2 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
  }
}

/* 轮播图样式 */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 15px;
  bottom: 20px;
}

/* 附加功能样式 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* 公司页面样式 */
.page-title {
  background-color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* 图标圆圈 */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* 时间线样式 */
.timeline {
  padding: 50px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  position: relative;
  margin: 0 30px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border: 3px solid var(--white);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item.right::after {
  right: -38px;
}

.timeline-item.left::after {
  left: -38px;
}

@media (max-width: 767px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    margin-left: 40px;
    margin-right: 0;
  }

  .timeline-item::after {
    left: -28px;
  }

  .timeline-item.right::after,
  .timeline-item.left::after {
    left: -28px;
    right: auto;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.navbar {
  box-shadow: none;
}
.nav-link {
  color: #fff;
}

/* 导航链接样式 */
.navbar-nav .nav-link {
  position: relative;
  /* 其他样式 */
}

/* 激活状态和悬停状态下的下划线 */
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* 激活状态和悬停状态下的下划线动画 */
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  left: 0;
  width: 100%;
}

/* 初始激活状态 */
.navbar-nav .nav-link:first-child {
  color: white; /* 激活状态文字颜色 */
}

.navbar-nav .nav-link:first-child::after {
  left: 0;
  width: 100%;
}
.hero-section {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  height: 380px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: right;
  padding: 80px 50px;
}

.triangle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.stats-circles {
  position: relative;
  margin-top: -80px;
  z-index: 3;
}

.stat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
}

.stat-text {
  font-size: 1.2rem;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.business-grid .col {
  margin-bottom: 10px;
}

.business-item {
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  height: 100%;
  transition: all 0.3s ease;
}
.business-item h5 {
  margin-bottom: 8px;
}

.business-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}
.business-item:hover .card-text {
  color: white;
}
.business-item:hover h4 {
  color: white;
}
.text-muted {
  color: var(--gray-color) !important;
  text-align: justify;
  line-height: 2;
}
.text-content {
  color: var(--gray-color) !important;
  text-align: justify;
  line-height: 1.8;
}

.form-label {
  font-size: 16px;
  color: var(--gray-color);
}
.form-control {
  padding: 10px 8px !important;
  font-size: 14px;
}
.font-xs {
  font-size: 12px;
}
.img-94 {
  width: 94%;
}
.case-filter .nav-link {
  color: var(--primary-color);
}
.case-filter .badge {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
}
.case-filter .nav-link.active {
  background: var(--primary-color);
}
.testimonials .carousel-control-next,
.testimonials .carousel-control-prev {
  color: var(--primary-color);
}
.testimonials .card:hover {
  transform: none !important;
}
.testimonials .card {
  padding-left: 100px;
  padding-right: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-form-section .card {
  height: 611px;
}
