/* 全局样式 */
:root {
  --primary-color: #4353FF;
  --secondary-color: #6C757D;
  --success-color: #2DCA8C;
  --info-color: #17A2B8;
  --warning-color: #FFC107;
  --danger-color: #DC3545;
  --light-color: #F8F9FA;
  --dark-color: #343A40;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  color: #333;
  line-height: 1.6;
}

/* 自定义按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3642cc;
  border-color: #3642cc;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4rem;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* .navbar-nav {
background: #2c3e50;
} */
.nav-link {
  font-weight: 500;
  /* padding: 0.5rem 1rem !important; */
  margin: 0 1rem;
  transition: color 0.3s ease;
}



/* 英雄区域样式 */
.hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
}

/* 卡片样式 */
.product-card,
.solution-card,
.case-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover,
.solution-card:hover,
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-title,
.solution-card .card-title,
.case-card .card-title {
  color: var(--primary-color);
}

.solution-card img {
  height: 200px;
  object-fit: cover;
}

/* 动画效果 */
.fadeIn {
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
    text-align: center;
  }

  .hero img {
    margin-top: 2rem;
  }

  .navbar .btn {
    margin-top: 1rem;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }
}

/* 自定义卡片动效 */
.card-hover-effect {
  position: relative;
  overflow: hidden;
}

.card-hover-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: all 0.5s ease;
}

.card-hover-effect:hover::after {
  left: 100%;
}

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

.footer a:hover {
  color: var(--primary-color) !important;
}

/* 解决方案图片卡片样式 */
.solution-card {
  border-radius: 8px;
  overflow: hidden;
}

.solution-card .card-img-top {
  transition: transform 0.5s ease;
}

.solution-card:hover .card-img-top {
  transform: scale(1.05);
}

/* 客户案例轮播样式 */
.cases-slider {
  position: relative;
}

/* 滚动到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

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

.nav-item .nav-link:hover {
  color: #f3782a !important;
}

/* 自定义下拉菜单 */
/* .dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  animation: fadeIn 0.3s ease-out;
} */

.dropdown-item:hover {
  background-color: rgba(67, 83, 255, 0.1);
  color: var(--primary-color);
}

/* 加载动画 */
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(67, 83, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}


/*头部自定义样式 */
.navbar {
  background-color: #2c3e50;
}

.navbar-brand,
.nav-link {
  color: white !important;
}

.navbar-yf {
  position: relative;
  padding-left: 6rem;
  color: #fff !important;
}

.navbar-yf::before {
  content: '';
  display: block;
  width: 4rem;
  height: 4rem;
  position: absolute;
  background-image: url('../images/yf.png');
  background-repeat: no-repeat;
  background-size: cover;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav>li>a {
  position: unset;
  line-height: 4rem;
}

.nav .dropdown {
  position: unset;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* display: block !important; */
  padding: 2rem 0rem !important;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.mega-menu-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.mega-menu {
  /* display: flex;
        flex-wrap: wrap;
        justify-content: center; */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 创建5列 */
  gap: 1rem;
  /* 可选：设置间距 */
}

.mega-menu-column {
  /* flex: 0 0 20%;
        max-width: 20%; */
  padding: 0 0.5rem;
  box-sizing: border-box;

  /* margin-bottom: 1rem; */
}

.mega-menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem 0;
}

.mega-menu-item:hover {
  /* background-color: #1aaad1; */
  /* transform: translateY(-5px); */
}

.mega-menu-icon {
  font-size: 1.7rem;
  margin-bottom: 0;
  margin-right: 1rem;
  color: #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-menu-title {
  display: block;
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 0;
}

.mega-menu-desc {
  font-size: 0.9rem;
  color: #6c757d;
}

/* 移除核心产品的点击效果 */
.nav-item.dropdown>.nav-link.dropdown-toggle {
  pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .mega-menu-column {
    /* flex: 0 0 25%;
            max-width: 25%; */
    grid-template-columns: repeat(4, 1fr);
    /* 创建5列 */
  }
}

@media (max-width: 992px) {
  .mega-menu-column {
    grid-template-columns: repeat(3, 1fr);
    /* 创建5列 */
  }

  .navbar-nav {
    background: #2c3e50 !important;
  }

  .dropdown-menu {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 1rem !important;
  }

  /* 移动端恢复点击效果 */
  .nav-item.dropdown>.nav-link.dropdown-toggle {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .mega-menu-column {
    grid-template-columns: repeat(2, 1fr);
    /* 创建5列 */
  }
}

@media (max-width: 576px) {
  .mega-menu-column {
    grid-template-columns: repeat(1, 1fr);
    /* 创建5列 */
  }
}

.feature-icon-nav {
  color: #124ca3;
  font-size: 3rem;
}

.page-header {
  height: 600px;
}

/* 自定义样式 */
.modal-header {
  background-color: #4e73df;
  color: white;
}

.btn-primary {
  background-color: #4e73df;
  border-color: #4e73df;
}

.btn-primary:hover {
  background-color: #2e59d9;
  border-color: #2e59d9;
}

.input-group-text {
  width: 40px;
  justify-content: center;
}

.form-control.is-invalid,
.form-control.is-valid {
  background-position: right calc(0.375em + 40px) center;
}

.hotline {
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.hotline i {
  color: #4e73df;
  margin-right: 10px;
}

/* 新增锚点导航样式 */
.anchor-navigation {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

.anchor-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.anchor-navigation li {
  margin-bottom: 10px;
}

.anchor-navigation a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  white-space: nowrap;
}

.anchor-navigation a:hover,
.anchor-navigation a.active {
  background-color: #0d6efd;
  color: white;
}

.anchor-navigation i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

@media (max-width: 992px) {
  .anchor-navigation {
    display: none !important;
  }
}

.breadcrumb-container {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

.breadcrumb {
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
}

.section-title {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0d6efd;
}

.contact-section-form {
  padding: 80px 0;
}

.contact-section-form .form-image {
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contact-section-form .form-floating>.form-control {
  background-color: #2b3035;
  /* border: 1px solid #495057; */
  color: #ffffff;
  /* height: calc(3.5rem + 2px);
  padding: 1.5rem 0.75rem; */
}

/* .contact-section-form .form-floating > .form-control:focus {
  background-color: #2b3035;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
} */
.contact-section-form .form-floating>label {
  color: #adb5bd;
  padding: 0.8rem 0.75rem;
  /* transition: all 0.2s ease-in-out; */
}

/* .contact-section-form .form-floating > .form-control:focus ~ label,
.contact-section-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
  color: #80bdff;
  background: #212529;
  padding: 0 0.3rem;
} */
.contact-section-form .btn-primary {
  background-color: #0d6efd;
  border: none;
  padding: 12px 0;
  margin-top: 1rem;
}

.hx-cp {
  width: 100%;
  height: 936px;
}

.hx-cp ul {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.hx-cp ul .imgBox {
  width: 25%;
  height: 936px;
  float: left;
  display: inline-block;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* transition: all 1s ease-in; */
}

.hx-cp ul .active {
  width: 900px;
  height: 936px;
  opacity: 1;

}

.hx-cp ul .no-active {
  width: calc((100% - 900px)/3);
  /* animation: all 1s ease-in; */
}

.hx-cp ul .imgBox>img {
  height: 100%;
  cursor: pointer;
}

.hx-cp ul .active .normal-one {
  display: none;
}

.normal-one {
  padding-top: 600px;
}

.jt-cle {
  width: 50px;
  height: 50px;
  border: 1px solid #fff;
  border-radius: 50%;
  line-height: 50px;
  text-align: center;
  margin: 40px auto;
}

.jt-cle img {
  display: block;
  margin: 16px auto;
}

.normal-t {
  display: none;
}

.hx-cp ul .active .normal-t {
  display: block;
  padding: 200px 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
}

.feature-grid .feature-item {
  padding: 15px 5px;
  text-align: center;
  border-radius: 0;
  margin: 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-odd .feature-item:nth-child(odd),
.row-even .feature-item:nth-child(even) {
  background-color: #f8f9fa;
}

.row-odd .feature-item:nth-child(even),
.row-even .feature-item:nth-child(odd) {
  background-color: #e9ecef;
}

.feature-grid .feature-icon {
  font-size: 2.3rem;
  margin-bottom: 8px;
  color: #0d6efd;
}

.feature-grid .feature-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 1600px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .row-odd .feature-item:nth-child(4n+1),
  .row-odd .feature-item:nth-child(4n+2),
  .row-even .feature-item:nth-child(4n+3),
  .row-even .feature-item:nth-child(4n+4) {
    background-color: #f8f9fa;
  }

  .row-odd .feature-item:nth-child(4n+3),
  .row-odd .feature-item:nth-child(4n+4),
  .row-even .feature-item:nth-child(4n+1),
  .row-even .feature-item:nth-child(4n+2) {
    background-color: #e9ecef;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-odd .feature-item:nth-child(4n+1),
  .row-odd .feature-item:nth-child(4n+2),
  .row-even .feature-item:nth-child(4n+3),
  .row-even .feature-item:nth-child(4n+4) {
    background-color: #f8f9fa;
  }

  .row-odd .feature-item:nth-child(4n+3),
  .row-odd .feature-item:nth-child(4n+4),
  .row-even .feature-item:nth-child(4n+1),
  .row-even .feature-item:nth-child(4n+2) {
    background-color: #e9ecef;
  }
}

/* 整体大小调整？ */
/* @media (min-width: 1800px) {
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  max-width: 1660px;
}
} */
/* 多样化产品 */
.p4-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.p4-item {
  display: flex;
  padding: 2em 1em 0;
  background: #fff;
  border-radius: 8px;
}

.muti-item {
  flex-direction: column;
  width: 19%;
  padding: 30px 20px 0;
  text-align: center;
  /* margin: 0px 1em 0em 1em; */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  background: #fff;
}

.muti-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.muti-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #4353FF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.muti-item:hover::after {
  transform: scaleX(1);
}

.muti-item:hover .p4-item-bg {
  transform: scale(1.05);
}

.p4-desc-title {
  /* font-size: 1em; */
  font-weight: 700;
  white-space: nowrap;
  padding-bottom: 0.2em;
}

.p4-desc-subtitle {
  font-size: 0.8em;
  /* color: #969696; */
  padding-bottom: 2em;
  white-space: nowrap;
  text-align: center;
}

.p4-desc {
  text-align: center;
}

.p4-item-bg {
  width: 100%;
  transition: transform 0.3s ease;
}

/* 自定义 1.5 列 */
.col-1-half {
  flex: 0 0 12.5%;
  /* 1.5 / 12 = 12.5% */
  max-width: 12.5%;
}

/* 新增菜单下拉样式 */
.navbar-nav .dropdown-menu {
  min-width: 160px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.navbar-nav .dropdown-menu .dropdown-item {
  color: #333;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  transition: background 0.2s, color 0.2s;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background: #f5f5f5;
  color: #f3782a;
}

/* 让mega-menu下只有1-3个栏目时内容居中显示，超过3个恢复grid布局 */
.mega-menu.center-1,
.mega-menu.center-2,
.mega-menu.center-3 {
  justify-content: center !important;
  display: flex !important;
  grid-template-columns: none !important;
}

.mega-menu.center-1 .mega-menu-column,
.mega-menu.center-2 .mega-menu-column,
.mega-menu.center-3 .mega-menu-column {
  flex: 0 0 260px;
  max-width: 260px;
}

/* 导航栏联系电话气泡样式 */
.nav-phone-pop {
  position: relative;
  display: inline-block;
  margin-left: 2rem;
}

.nav-phone-icon {
  width: 36px;
  height: 36px;
  background: #3a4fcf;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}

.nav-phone-icon:hover {
  background: #22308a;
}

.nav-phone-bubble {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 3.9rem;
  background: #fff;
  color: #222;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  padding: .7rem 1rem;
  z-index: 999;
  min-width: 160px;
  text-align: center;
}

.nav-phone-arrow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
}

.nav-phone-number {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-phone-pop:hover .nav-phone-bubble,
.nav-phone-icon:focus+.nav-phone-bubble {
  display: block;
}

/* 立即购买气泡样式 */
.nav-buy-pop {
  position: relative;
  display: inline-block;
}

.nav-buy-bubble {
  display: none;
  position: absolute;
  right: -27px;
  top: 5rem;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: .7rem 1rem;
  width: 12rem;
  white-space: nowrap;
  text-align: center;
}

.nav-buy-arrow {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #fff;
  transform: translateX(-50%);
}

.nav-buy-bubble a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.nav-buy-pop:hover .nav-buy-bubble {
  display: block;
}

.container .container-img {

  height: 32rem;

  overflow: hidden;

  position: relative;
}

.container .container-img img {

  position: absolute;

  top: 50%;

  left: 0;

  transform: translateY(-50%);
}