.swiper-container {
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  min-height: 100%;
} /* 顶部Banner */
.banner {
  background-color: #000;
  color: #fff;
  /* padding: 80px 0; */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: url("./image/jpsm.jpg") no-repeat center/cover; */
  /* opacity: 0.2; */
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  height: 500px;
}
.banner-txt {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  z-index: 99;
}

.banner h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.banner p {
  color: #ccc;
  font-size: 14px;
  /* max-width: 600px; */
  /* margin: 0 auto 30px; */
}
/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 页面整体背景（可选，增强板块层次感） */
body {
  background-color: #f8f9fa;
}

/* 板块容器 - 大幅增大间距，提升占比 */
.about-section {
  padding: 120px 20px; /* 大幅增加上下内边距，占据更多页面高度 */
  max-width: 1200px; /* 增大最大宽度，占据更多页面宽度 */
  margin: 0 auto;
}

.about-container {
  display: flex;
  gap: 80px; /* 大幅增加左右区域间距 */
  flex-wrap: wrap;
  align-items: flex-start; /* 顶部对齐，提升布局舒展度 */
}

/* 左侧统计卡片 - 增大尺寸和内边距 */
.stat-card {
  flex: 1;
  min-width: 350px; /* 增大最小宽度 */
  max-width: 450px; /* 增大最大宽度 */
  background-color: #165dff;
  color: #fff;
  padding: 60px 40px; /* 大幅增加内边距 */
  border-radius: 16px; /* 增大圆角，视觉更舒展 */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 8px 30px rgba(22, 93, 255, 0.15); /* 增加阴影，提升视觉占比 */
}

.stat-item {
  margin-bottom: 80px; /* 大幅增加统计项间距 */
}

.stat-number {
  font-size: 36px; /* 增大数字字体 */
  font-weight: bold;
  margin-bottom: 12px; /* 增加数字和文字间距 */
  line-height: 1.2;
}

.stat-text {
  font-size: 16px; /* 增大说明文字 */
  line-height: 1.5;
  opacity: 0.9;
}

/* 右侧内容区域 - 增大尺寸和间距 */
.about-content {
  flex: 2;
  min-width: 450px; /* 增大最小宽度 */
  padding: 20px 0; /* 增加上下内边距 */
}
.about-content .content {
  line-height: 2;
}
.about-content * {
  text-wrap: unset !important;
}
.about-title {
  font-size: 36px; /* 增大标题字体 */
  color: #333;
  margin-bottom: 15px; /* 增加标题和副标题间距 */
  display: flex;
  align-items: center;
  gap: 15px; /* 增大标题和分隔线间距 */
  font-weight: 700;
}

.about-title::after {
  content: "";
  flex: 1;
  height: 2px; /* 加粗分隔线 */
  background-color: #333;
  max-width: 50px; /* 增大部分隔线长度 */
}

.about-subtitle {
  font-size: 16px; /* 增大副标题字体 */
  color: #666;
  margin-bottom: 20px; /* 大幅增加副标题和正文间距 */
  font-weight: 500;
}

.about-desc {
  color: #333;
  line-height: 2; /* 增大行高，提升阅读体验同时占更多空间 */
  margin-bottom: 30px; /* 大幅增加段落间距 */
  font-size: 16px; /* 增大正文字体 */
  text-align: justify; /* 两端对齐，布局更规整 */
}

/* 响应式适配 - 保证移动端依然美观 */
@media (max-width: 992px) {
  .about-container {
    gap: 40px;
  }
  .about-content {
    min-width: 350px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 80px 20px;
    max-width: 100%;
  }
  .about-container {
    flex-direction: column;
  }
  .stat-card {
    max-width: 100%;
    min-width: 100%;
    padding: 40px 30px;
  }
  .about-content {
    min-width: 100%;
  }
  .about-title {
    font-size: 30px;
  }
  .stat-number {
    font-size: 40px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", Arial, sans-serif;
}

/* 顶部区域：数据栏 + 关于文字 */
.top-section {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* 小屏自动换行 */
}

/* 有经验有态度区域 */
.experience-title {
  text-align: center;
  margin-bottom: 20px;
}
.experience-main-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}
.experience-subtitle {
  font-size: 16px;
  color: #666;
}
/* 响应式适配（小屏） */
@media (max-width: 768px) {
  .stats-bar {
    width: 100%; /* 小屏占满宽度 */
  }
}

/* 重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 画廊容器基础样式 */
.gallery-container {
  display: grid;
  gap: 6px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* 图片基础样式 */
.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.5s;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.5);
}

/* 1张图片：显示为一张大图 */
.gallery-container:has(> .gallery-item:only-child) {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.gallery-container:has(> .gallery-item:only-child) .gallery-item {
  aspect-ratio: 16/9;
  /* max-height: 400px; */
}

/* 2张图片：左右两张一样大小的图 */
.gallery-container:has(> .gallery-item:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.gallery-container:has(> .gallery-item:nth-child(2):last-child) .gallery-item {
  aspect-ratio: 1/1;
  /* max-height: 250px; */
}

/* 3张图片：显示为两个小正方形在上，一个横版在下 */
.gallery-container:has(> .gallery-item:nth-child(3):last-child) {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.gallery-container:has(> .gallery-item:nth-child(3):last-child)
  .gallery-item:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
  aspect-ratio: 1/1;
  /* max-height: 180px; */
}

.gallery-container:has(> .gallery-item:nth-child(3):last-child)
  .gallery-item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
  aspect-ratio: 1/1;
  /* max-height: 180px; */
}

.gallery-container:has(> .gallery-item:nth-child(3):last-child)
  .gallery-item:nth-child(3) {
  grid-area: 2 / 1 / 3 / 3;
  aspect-ratio: 2/1;
}

/* 4张图片：原始布局（两个小正方形，一个大正方形，一个横版） */
.gallery-container:has(> .gallery-item:nth-child(4):last-child) {
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.gallery-container:has(> .gallery-item:nth-child(4):last-child)
  .gallery-item:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
  aspect-ratio: 1/1;
  /* max-height: 180px; */
}

.gallery-container:has(> .gallery-item:nth-child(4):last-child)
  .gallery-item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
  aspect-ratio: 1/1;
  /* max-height: 180px; */
}

.gallery-container:has(> .gallery-item:nth-child(4):last-child)
  .gallery-item:nth-child(3) {
  grid-area: 1 / 3 / 3 / 4;
  aspect-ratio: 1/1;
  align-self: stretch;
  /* max-height: calc(180px * 2 + 6px); */
}

.gallery-container:has(> .gallery-item:nth-child(4):last-child)
  .gallery-item:nth-child(4) {
  grid-area: 2 / 1 / 3 / 3;
  aspect-ratio: 2/1;
}

/* 5张及以上图片：使用网格布局，每行最多3张 */
.gallery-container:has(> .gallery-item:nth-child(n + 5)) {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
}

.gallery-container:has(> .gallery-item:nth-child(n + 5)) .gallery-item {
  aspect-ratio: 1/1;
  /* max-height: none; */
}

/* 小屏适配 */
@media (max-width: 768px) {
  .gallery-container {
    max-width: 100%;
    padding: 0 10px;
    gap: 4px;
  }

  /* 1张图片 */
  .gallery-container:has(> .gallery-item:only-child) .gallery-item {
    /* max-height: 300px; */
  }

  /* 2张图片 */
  .gallery-container:has(> .gallery-item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .gallery-container:has(> .gallery-item:nth-child(2):last-child)
    .gallery-item {
    /* max-height: 180px; */
  }

  /* 3张图片 */
  .gallery-container:has(> .gallery-item:nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery-container:has(> .gallery-item:nth-child(3):last-child)
    .gallery-item:nth-child(1),
  .gallery-container:has(> .gallery-item:nth-child(3):last-child)
    .gallery-item:nth-child(2) {
    /* max-height: 150px; */
  }

  /* 4张图片 - 在小屏上重新布局为2x2网格 */
  .gallery-container:has(> .gallery-item:nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
    /* max-height: 150px; */
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
    /* max-height: 150px; */
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(3) {
    grid-area: 2 / 1 / 3 / 2;
    aspect-ratio: 1/1;
    /* max-height: 150px; */
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
    aspect-ratio: 1/1;
    /* max-height: 150px; */
  }

  /* 5张及以上图片 - 小屏每行2张 */
  .gallery-container:has(> .gallery-item:nth-child(n + 5)) {
    grid-template-columns: repeat(2, 1fr);
    /* grid-auto-rows: 120px; */
  }
}

/* 超小屏适配（手机） */
@media (max-width: 480px) {
  /* 2张图片 */
  .gallery-container:has(> .gallery-item:nth-child(2):last-child)
    .gallery-item {
    /* max-height: 150px; */
  }

  /* 3张图片 - 在小手机上改为垂直堆叠 */
  .gallery-container:has(> .gallery-item:nth-child(3):last-child) {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .gallery-container:has(> .gallery-item:nth-child(3):last-child)
    .gallery-item:nth-child(1),
  .gallery-container:has(> .gallery-item:nth-child(3):last-child)
    .gallery-item:nth-child(2) {
    grid-area: auto;
    aspect-ratio: 16/9;
    /* max-height: 150px; */
  }

  .gallery-container:has(> .gallery-item:nth-child(3):last-child)
    .gallery-item:nth-child(3) {
    grid-area: auto;
    aspect-ratio: 16/9;
    /* max-height: 150px; */
  }

  /* 4张图片 - 在小手机上改为2x2网格 */
  .gallery-container:has(> .gallery-item:nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item {
    aspect-ratio: 1/1;
    /* max-height: 120px; */
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(3) {
    grid-area: 2 / 1 / 3 / 2;
  }

  .gallery-container:has(> .gallery-item:nth-child(4):last-child)
    .gallery-item:nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
  }
}

/* 加载动画 */
/* .gallery-item {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* 为每个图片添加延迟动画 */
.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
