/*头部导航栏*/
header.main nav.main .main-container {
  height: 132px;
}

header.main.jjfa nav.main {
  border-bottom: none;
}

header.main nav.main {
  background-color: #F7F7F7;
}

header.main .nav-list {
  text-align: center;
}

/* 修改Banner区域样式 */
header.main .main-container.content {
  background-image: url('../../images/educationNew/sybj.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 506px;
  position: relative;
  /* 添加相对定位 */
  padding: 0;
  /* 移除固定内边距 */
}

/* 新增：内容包装容器，实现与导航栏对齐 */
.content-wrapper {
  position: absolute;
  top: 70px;
  /* 从顶部向下偏移，避免被固定导航栏遮挡 */
  left: 50%;
  /* 水平居中 */
  transform: translateX(-50%);
  /* 精确居中 */
  width: 100%;
  max-width: 1200px;
  /* 与导航栏内容区域同宽 */
  margin: 0 auto;
  padding-left: 20px;
  /* 替代原来的670px固定值 */
  box-sizing: border-box;
}

header.main .content h1 {
  font-weight: 400;
  font-size: 48px;
  color: #DC0014;
}

header.main.jjfa .content p {
  margin-top: 18px;
  font-weight: 400;
  font-size: 19px;
  color: #272727;
}

.more-button {
  width: 161px;
  height: 58px;
  font-weight: 400;
  font-size: 21px;
  line-height: 58px;
  background-color: #DC0014;
  color: white;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-button:hover {
  background-color: #b8000f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 0, 20, 0.3);
}

header.main.jjfa {
  height: 638px;
}

/*自定义*/
header.main .nav-list li {
  height: 75px;
  font-weight: 400;
  font-size: 16px;
  color: #272727;
  margin: 0 20px;
  width: 85px;
}

nav.main ul li:hover {
  border-bottom: 2px solid #DC0014;
}

.content-section {
  width: 1200px;
  /* 调整为与导航栏内容区域匹配的宽度 */
  margin: 0 auto;
  /* 水平居中 */
}

.content-section-title {
  font-weight: 400;
  font-size: 40px;
  color: #272727;
  text-align: center;
}

/*页签控件自定义*/
.jysy-tabs {
  --el-color-primary: #DC0014;
  --el-font-size-base: 19px;
  --el-text-color-primary: #272727;
}

.el-tabs__item {
  align-items: flex-start;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.el-tabs__nav {
  width: 856px;
  justify-content: space-evenly;
}

.el-tabs__header {
  width: 856px;
  margin: 57px auto 72px auto;
}

/*解决方案*/
.jjfa {
  height: 774px;
}

.jjfa-pic {
  width: 646px;
  /* 按比例调整后的宽度，可微调 */
  height: auto;
  /* 自动保持宽高比，避免拉伸 */
}

.jjfa-content {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  /* 图片与文字间距均匀 */
  align-items: flex-start;
}

.jjfa .content-section-title {
  padding-top: 76px;
}

.jjfa-describe-title {
  font-size: 33px;
  color: #272727;
}

.jjfa-describe-paragraph {
  font-size: 17px;
  color: #606060;
  width: 572px;
  margin: 28px 0 50px 0;
}

.jjfa-describe-label {
  font-size: 20px;
  color: #3C353A;
  width: 385px;
}

.jjfa .more-button {
  margin-top: 42px;
}

.jjfa-describe-label,
.jjfa-describe-title,
.jjfa-describe-paragraph {
  width: 514px;
  /* 文字区域宽度 */
}

/*典型案例*/
.dxal {
  background: #EFEFEF;
  height: 700px;
}

.dxal .content-section-title {
  padding-top: 83px;
}

.dxal-list {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

/* 减小卡片间距和白色部分 */
.dxal-item {
  background: #FFFFFF;
  width: 290px;
}

.dxal-pic {
  width: 100%;
  height: 169px;
}

.dxal-describe {
  height: 110px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dxal-describe-title {
  font-size: 17px;
  color: #2A2A2C;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.dxal-describe-paragraph {
  font-size: 16px;
  color: #4D4D4D;
  margin-top: 16px;
  width: 185px;
}

.more-button-container {
  text-align: center;
}

.dxal .more-button {
  width: 182px;
  margin: 52px auto 0 auto;
}

/* 行业客户 */
.hykh {
  padding-top: 94px;
  background-color: #F7F7F7;
  height: 841px;
}

.customer-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: fit-content;
  margin: 0 auto;
  grid-gap: 33px 24px;
  margin-top: 60px;
}

.hykh-pic {
  width: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 更平滑的动画 */
  position: relative;
  z-index: 1;
}

.hykh-pic:hover {
  transform: scale(1.02);

  filter: brightness(1.05);
  z-index: 2;
  /* 确保阴影不被遮挡 */
}

.hykh .el-tab-pane {
  text-align: center;
}

/*新闻咨询*/
.xwzx {
  background: #EFEFEF;
  padding-top: 82px;
  height: 706px;
}

.xw-content {
  display: flex;
  margin: 59px auto 0 auto;
  width: 1200px;
}

.xw-pic {
  background-image: url('../../images/educationNew/sy-xwzx1.png');
  background-size: cover;
  background-position: center;
  width: 562px;
  height: 336px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.xw-pic-describe {
  color: #FFFFFF;
  font-size: 23px;
  background: rgba(0, 0, 0, 0.4);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.xw-pic-describe-word {
  width: 474px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xw-list-container {
  width: 609px;
  margin-left: 85px;
}

/* 修正：新闻列表悬停效果 */
.xw-item {
  color: #4D4D4D;
  font-size: 17px;
  height: 70px;
  line-height: 70px;
  border-bottom: 1px dotted #4D4D4D;
  transition: color 0.3s ease;
}

.xw-item a {
  color: #4D4D4D !important;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  width: 100%;
  height: 100%;
}

.xw-item:hover a {
  color: #DC0014 !important;
}

.xw-item:hover {
  background-color: transparent !important;
  padding-left: 0 !important;
}

/* 特色新闻项（第一个新闻项）样式 */
.xw-item-featured {
  background-color: #DC0014 !important;
  border-radius: 4px;
  margin-bottom: 10px;
  border: none !important;
  height: 60px !important;
  line-height: 60px !important;
}

.xw-item-featured a {
  color: #FFFFFF !important;
  font-weight: 500;
  padding: 0 15px;
}

.xw-item-featured:hover {
  background-color: #b8000f !important;
  transform: none;
  box-shadow: none;
}

.xw-item-featured:hover a {
  color: #FFFFFF !important;
}

.xw-more {
  color: #4D4D4D;
  margin-top: 30px;
  font-size: 17px;
  text-align: right;
}

.xw-more a {
  color: #4D4D4D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.xw-more a:hover {
  color: #DC0014;
}

/*方案咨询*/
.fazx {
  height: 244px;
  background: no-repeat center/cover url('../../images/educationNew/sy-fazx.png');
}

.fazx-title {
  padding-top: 75px;
  font-size: 30px;
  color: #FFFFFF;
  text-align: center;
}

.fazx-button {
  width: 225px;
  height: 45px;
  color: #FFFFFF;
  font-size: 17px;
  border: 1px solid white;
  text-align: center;
  line-height: 43px;
  margin: 30px auto 0 auto;
}

/* ==== 新增悬停切换样式 ==== */
.hover-tabs .el-tabs__item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hover-tabs .el-tabs__item:hover {
  color: #DC0014;
}

.hover-tabs .el-tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

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

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

/* ===== 右侧工具栏样式 ===== */
.fixed-container {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.icon-bar {
  background-color: transparent;
  border-radius: 4px 0 0 4px;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: none;
}

.icon-item {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 0;
}

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

.icon-item:hover {
  background-color: #f5f5f5;
  transform: none;
  border: none;
}

.icon-item img {
  width: 45px;
  height: 45px;
  border: none;
}

.icon-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border: none;
}

.tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  padding: 20px;
  background-color: white;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 280px;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent white;
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

.icon-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip strong {
  color: #333;
  margin-bottom: 10px;
  display: block;
  font-size: 16px;
}

.qr-code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 90px;
  height: 90px;
  display: block;
  margin: 0 auto;
  border: 1px solid #f0f0f0;
}

.qr-item figcaption {
  font-size: 12px;
  margin-top: 8px;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-item {
  z-index: 2;
}

.icon-item:hover {
  z-index: 10;
}

.icon-item:nth-child(1) .tooltip {
  min-width: 300px;
}

.icon-item:nth-child(4) .tooltip {
  min-width: 250px;
  width: auto;
  padding: 25px;
}

.toTop.hidden {
  display: none;
}

.icon-item.toTop {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #c7c6cf;
  border: none;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 4px;
  left: 8px;
  margin-left: 0;
  transition: background-color 0.3s ease;
}

.icon-item.toTop img {
  width: 17px;
  height: 15px;
  display: block;
  margin: 0 auto;
}

.icon-item.toTop:hover {
  background-color: #ff4444;
}

/* 模态框样式 */
.custom-modal .modal-dialog {
  max-width: 95%;
  width: 95%;
  height: 90vh;
  margin: 5vh auto;
}

.custom-modal .modal-content {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.custom-modal .modal-header {
  background: #DC0014;
  color: white;
  border-bottom: none;
  padding: 15px 20px;
  height: 60px;
}

.custom-modal .modal-body {
  padding: 0;
  height: calc(100% - 60px);
}

.custom-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .fixed-container {
    transform: translateY(-50%) scale(0.9);
    right: -10px;
  }

  .icon-item {
    width: 50px;
    height: 50px;
    border: none;
  }

  .tooltip {
    right: 60px;
    min-width: 250px;
  }

  .icon-item:nth-child(4) .tooltip {
    min-width: 300px;
  }

  .qr-item img {
    width: 80px;
    height: 80px;
  }

  .icon-item.toTop {
    width: 50px;
    height: 50px;
    border: none;
  }

  .custom-modal .modal-dialog {
    max-width: 98%;
    width: 98%;
    height: 85vh;
    margin: 7.5vh auto;
  }
}

@media (max-width: 576px) {
  .custom-modal .modal-dialog {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .custom-modal .modal-content {
    border-radius: 0;
  }
}

/* 加载状态指示器 */
.iframe-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: #f8f9fa;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #DC0014;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 创建新的粘性上下文 */
header.main {
  position: relative;
}

header.main nav.main {
  position: fixed;
  /* 改为fixed定位 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #F7F7F7;
}

/* 为body内容增加上边距，避免被固定导航栏遮挡 */
body {
  padding-top: 132px;
  /* 等于导航栏的高度 */
}