.main-body {
  position: relative;
  background-image: url('../images/Home/banner1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #464646;
  transition: padding-top 0.3s ease;
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 50vh;
  /* 最大高度限制 */
  overflow: hidden;
}

.banner-container {
  /* background-image: url('../images/Home/navBc.jpg'); */
  position: relative;
  /* background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat; */
  height: 100%;
}

.banner-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  background-color: transparent;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* .banner-slide img {
  width: 100%;
  height: 60vh;
  min-height: 300px;
  max-height: 500px;
} */

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.banner-arrow.prev {
  left: 20px;
}

.banner-arrow.next {
  right: 20px;
}

.banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.banner-indicator.active {
  background: white;
}

@media (max-width: 768px) {
  .banner {
    height: 50vh;
    min-height: 300px;
  }

  .banner-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .banner-arrow.prev {
    left: 10px;
  }

  .banner-arrow.next {
    right: 10px;
  }
}

/* 关于我们部分样式 */
.about-container {
  margin-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, #0d2a6e 0%, #1a3c8b 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(-150px) scale(0.95);
  /* 初始状态不自动播放动画，由JS控制 */
}

/* 动画由JS动态添加，不需要CSS类 */

@keyframes aboutContainerEntry {
  0% {
    opacity: 0;
    transform: translateY(-150px) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  70% {
    opacity: 1;
    transform: translateY(20px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
}

/* 确保内容区域在动画期间正常显示 */
.about-container.animate-visible .about {
  opacity: 1;
}

/* 从下方进入的动画类 */
.animate-from-bottom {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 从上方进入的动画类（已存在，确保完整） */
.animate-from-top {
  opacity: 0;
  transform: translateY(-100px);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 从侧方进入的动画类（已存在，确保完整） */
.animate-from-side {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 可见状态（已存在，确保完整） */
.animate-visible {
  opacity: 1;
  transform: translateY(0) scale(1) translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .about-container {
    transform: translateY(60px);
    /* 移动端减少移动距离 */
  }
}

@media (max-width: 480px) {
  .about-container {
    transform: translateY(40px);
    /* 小屏幕进一步减少移动距离 */
  }
}

@media (max-width: 480px) {
  .about {
    min-height: 400px;
  }

  .about .content {
    height: 300px;
    min-height: 300px;
  }

  .about .sidebar h2 {
    font-size: 28px;
  }

  .about .sidebar li {
    height: 40px;
  }

  .content-section .title {
    font-size: 20px;
  }

  .content-section .subtitle {
    font-size: 14px;
  }
}

.about {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 90%;
  height: 600px;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #fff;
}

.about .sidebar {
  width: 320px;
  padding: 20px;
}

.about .sidebar h2 {
  text-align: center;
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(to right bottom, #aabdde, #0752c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about .sidebar h2+h2 {
  margin-top: 8px;
  background: linear-gradient(to left bottom, #aabdde, #0752c2);
  -webkit-background-clip: text;
  background-clip: text;
}

.about .sidebar ul {
  margin-top: 80px;
  list-style: none;
}

.about .sidebar li {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.about .sidebar li:hover,
.about .sidebar li.active {
  background-color: rgba(42, 75, 154, 0.6);
  border-radius: 6px;
  transform: translateX(6px);
}

.about .sidebar li.active {
  background-color: rgba(42, 75, 154, 0.8);
  box-shadow: 0 2px 8px rgba(42, 75, 154, 0.3);
}

.about .sidebar li span {
  font-size: 18px;
}

.about .content {
  flex: 1;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  position: relative;
  width: auto;
  height: 600px;
  overflow: auto;
  /* 隐藏滚动条（兼容各浏览器） */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  scroll-behavior: smooth;
}

.content::-webkit-scrollbar {
  display: none;
}

/* 内容面板样式 */
.content-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  padding: 20px 30px;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-sizing: border-box;
}

.content-section.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.content-section .topImg {
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  /* background: white; */
}

.content-section .topImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: brightness(0.9);
}

/* .content-section.active .topImg img {
  transform: scale(1);
  filter: brightness(1.1);
}

.content-section:hover .topImg img {
  transform: scale(1.08);
  filter: brightness(1.2);
} */

.content-section .topImg:empty {
  display: none;
}

.content-section .title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.content-section .subtitle {
  font-size: 16px;
  color: #fff;
  background: rgba(42, 75, 154, 0.8);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}

.content-section p {
  font-size: 15px;
  color: #f5f5f5;
  line-height: 1.8;
  margin-bottom: 10px;
}

.service-advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.service-advantages .advantage-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-advantages .advantage-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 查看更多按钮 */
.read-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #1a3c8b;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: #2a4b9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 60, 139, 0.3);
  transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-container {
    margin-top: 0 !important;
  }

  .about {
    flex-direction: column;
    height: auto;
    /* 改为自动高度 */
    min-height: 500px;
    /* 设置最小高度 */
  }

  .about .sidebar {
    width: 100%;
    padding: 10px;
    /* 减少内边距 */
  }

  .about .content {
    margin-bottom: 20px;
    height: 400px;
    /* 固定内容区域高度 */
    min-height: 400px;
  }

  .about .sidebar ul {
    display: block;
    margin-top: 20px;
  }

  .about .sidebar li {
    width: 100%;
    /* 宽度100% */
    min-width: auto;
    /* 移除最小宽度 */
    height: 50px;
    margin-bottom: 5px;
    /* 添加间距 */
  }

  .about .sidebar li:hover,
  .about .sidebar li.active {
    transform: translateX(0);
    /* 移动端取消横向移动 */
    transform: translateY(-2px);
    /* 改为纵向移动效果 */
  }

  .content-section img {
    height: 260px;
  }

  .service-advantages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about {
    width: 95%;
    min-height: 450px;
  }

  .about .content {
    height: 350px;
    min-height: 350px;
    padding: 15px;
  }

  .about .sidebar h2 {
    font-size: 32px;
  }

  .about .sidebar li {
    height: 45px;
  }

  .about .sidebar li span {
    font-size: 16px;
  }

  .content-section {
    padding: 15px 20px;
  }

  .service .items {
    gap: 10px;
  }

  .service .item {
    width: 100%;
    max-width: 160px;
  }

  .item-title {
    font-size: 15px;
  }

  .item-desc {
    font-size: 12px;
  }
}

/* 新闻 */
.news {
  width: 100%;
  /* padding: 60px 0; */
  background: rgba(255, 255, 255, 0.9);
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 5;
}

.news .news-title {
  text-align: center;
  color: #1a3c8b;
  font-size: 47px;
  font-weight: 800;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.tabs.visible {
  opacity: 1;
}

.tabs.hidden-up {
  opacity: 0;
}

.tabs button {
  padding: 8px 50px;
  border: none;
  border-radius: 50px;
  background: #1a3c8b;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.tabs button.active,
.tabs button:hover {
  background: #2a4b9a;
  box-shadow: 0 2px 8px rgba(26, 60, 139, 0.3);
  transform: translateY(-2px);
}

/* 新闻卡片动画样式 */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  column-gap: 50px;
  row-gap: 30px;
  justify-items: stretch;
  width: min(100%, 1200px);
  margin: 0 auto 15px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.card {
  display: flex;
  flex-direction: row;
  gap: 16px;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(26, 60, 139, 0.1);
  border-left: 4px solid #1a3c8b;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: flex-start;

  /* 动画初始状态 */
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 左侧卡片从左边滑入 */
.card:nth-child(odd) {
  transform: translateX(-100px);
}

/* 右侧卡片从右边滑入 */
.card:nth-child(even) {
  transform: translateX(100px);
}

/* 可见状态 */
.card.animate-visible {
  opacity: 1;
  transform: translateX(0) !important;
}

/* 悬停效果 */
.card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 12px 28px rgba(26, 60, 139, 0.25);
  border-left-width: 6px;
}

/* 移动端适配 - 单列显示时所有卡片从底部滑入 */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card:nth-child(odd),
  .card:nth-child(even) {
    transform: translateY(60px);
  }

  .card.animate-visible {
    transform: translateY(0) !important;
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .cards {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-img {
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
  }
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 28px rgba(26, 60, 139, 0.25);
  border-left-width: 6px;
}

.card-img {
  width: 110px;
  height: 110px;
  min-height: 110px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a3c8b;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: #2a4b9a;
}

.card-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3.4em;
}

.more-btn {
  text-align: center;
  padding-bottom: 15px;
}

.more-btn .btn {
  border-radius: 999px;
  border: 1px solid #1a3c8b;
  background: transparent;
  color: #1a3c8b;
  padding: 12px 40px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.more-btn .btn:hover {
  background: #1a3c8b;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(26, 60, 139, 0.3);
}

/* 动画类 */
.animate-from-top {
  opacity: 0;
  transform: translateY(-80px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 可见状态 */
.animate-visible {
  opacity: 1;
  transform: translateY(0) scale(1) translateX(0);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .animate-from-top {
    transform: translateY(60px);
  }
}

@media (max-width: 480px) {
  .animate-from-top {
    transform: translateY(40px);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .cards {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .news {
    margin-top: 30px;
    padding: 30px 0;
  }

  .news .news-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    width: 90%;
    margin: 0 auto 20px;
    gap: 12px;
  }

  .tabs button {
    padding: 10px 12px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .card-img {
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc {
    font-size: 13px;
  }

  .more-btn {
    padding-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: 95%;
    gap: 10px;
  }

  .tabs button {
    padding: 9px 10px;
    margin: 0;
  }
}

/* 服务 */
.service {
  width: 90%;
  margin: 0 auto;
  padding: 60px 0 100px;
}

.service h2 {
  text-align: center;
  color: #fff;
  font-size: 38px;
  margin-bottom: 30px;
}

.service .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service .item {
  width: 220px;
  background: rgba(26, 60, 139, 0.95);
  padding: 20px 16px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
}

.service .item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(26, 60, 139, 1);
}

.service .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.service .item-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.service .item-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #e2e7ff;
}