*{
  color: #000;
  box-sizing: border-box;
}
.footer {
  padding: 57px 60px 20px !important;
}
/* 第一个板块 */
.First-container {
  width: 100%;
  height: 550px;
  display: flex;
  margin: 30px 0px;
  background: url('../../img/g.png') no-repeat left top;
  background-size: contain;
  align-items: center;
}

.First-container-text {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  padding: 60px;
}

.text-left {
  position: relative;
}

.text-left::after {
  content: '';
  display: block;
  width: 25%;
  border-top: 5px solid black;
  position: absolute;
  left: 10%;
  top: 0%;
  transform: translateY(-50%);
}

.text-left h1 {
  color: rgb(0, 0, 0);
  font-family: Montserrat;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0px;
  text-align: left;
  text-transform: uppercase;
  margin-left: 55px;
}

.text-right {
  color: rgb(0, 0, 0);
  font-family: Montserrat;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0px;
  text-align: right;
  width: 33%;
}
@media (max-width: 1680px) {
  .text-right {
    font-size: 1.5rem;
    width: 38%;
  }
}
@media (min-width: 2300px) {
  .text-right {
    font-size: 1.5rem;
    width: 29%;
  }
}

/* 移动端样式 (小屏幕设备) */
@media screen and (max-width: 767px) {
  .First-container {
    flex-direction: column; 
    height: auto;
    padding:0px 10px;
    margin: 30px 0px 0px;
  }

  .First-container-text {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
  }

  .text-left,
  .text-right {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .text-left h1 {
    font-size: 2.5rem; 
    line-height: 50px;
  }

  .text-right {
    font-size: 1.2rem; 
    line-height: 25px;
    text-align: right;
  }

  .text-left::after {
    left: 0%;
  }
  .Second-container-text h1 {
    font-size: 1.5rem;
    text-align: center;
    line-height: normal;
  }
  .Second-container{
    padding: 20px !important;
  }
  .text-left h1{
    margin-left: 0px;
  }
}

/* 平板端样式 (中等屏幕设备) */
@media screen and (min-width: 768px) and (max-width: 1280px) {
  .text-left h1{
    margin-left: 0px;
  }
  .First-container {
    flex-direction: column;
    height: auto;
    /* background-size: cover; */
    padding: 20px;
  }

  .First-container-text {
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    padding: 0px;
  }
  .text-left::after {
    left: 0%;
  }
  .text-left,
  .text-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .text-left h1 {
    font-size: 3.2rem;
    line-height: 80px;
  }

  .text-right {
    font-size: 1.4rem;
    line-height: 40px;
  }

  .text-left::after {
    width: 25%;
    transform: translateY(-40%);
  }
  .Second-container{
    padding: 20px !important;
  }
}

/* 笔记本端样式 (大于 1024px 且小于 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
  .First-container {
    height: 450px;
    background-size: contain;
    padding: 20px;
  }

  .First-container-text {
    justify-content: space-around;
    align-items: center;
  }

  .text-left h1 {
    font-size: 4rem;
    line-height: 100px;
  }

  .text-right {
    font-size: 1.8rem;
    line-height: 45px;
  }
}

/* 第二个板块 */
.Second-container{
  width: 100%;
  height: auto;
  padding: 60px;
}

.Second-container-text{
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 20px 55px;
}

.Second-container-img{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; /* 列间距 */
  width: 100%;
  /* padding: 10px; */
  box-sizing: border-box;
}

.small-images img {
  width: 100%;
  height: auto;
  display: block;
}
.big-image {
  grid-column: 1 / 2; /* 大图占第一列 */
}

.small-images {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 两列的布局 */
  grid-gap: 20px 15px;
  grid-column: 2 / 3; /* 小图占第二列 */
}
/* 移动端（手机端） */
@media (max-width: 350px) {
  .text-left h1 {
    font-size: 1.6rem;
}
}
@media (max-width: 480px) {
  .Second-container {
    padding: 20px;
  }

  .Second-container-text {
    flex-direction: column; /* 文字内容单列排列 */
    gap: 20px;
  }

  .Second-container-img {
    grid-template-columns: 1fr; /* 单列布局 */
    padding: 10px;
  }

  .big-image {
    grid-column: 1 / -1; /* 大图占满整行 */
  }

  .small-images {
    grid-template-columns: 1fr; /* 小图单列显示 */
    gap: 15px;
  }

  .small-images img {
    width: 100%;
  }
  
}

/* 平板端 (max-width: 768px) */
@media (max-width: 768px) {
.first-column {
    grid-template-rows: auto auto; /* 每个子列都自适应高度 */
}

  .Second-container-text {
    flex-direction: column; /* 文字内容单列排列 */
    gap: 30px;
  }

  .Second-container-img {
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    justify-content: center;
  }

  .big-image {
    grid-column: 1 / -1; /* 大图占据整行 */
  }

  .small-images {
    grid-template-columns: 1fr 1fr; /* 两列布局 */
  }
  /* 第三个模块 */
  .grid-container {
    grid-template-columns: 1fr; /* 变成一列 */
  }
}

/* 小型笔记本 (max-width: 1024px) */
@media (max-width: 1023px) {
  /* .Second-container {
    padding: 50px;
  } */

  .Second-container-text {
    flex-direction: column; /* 文字内容单列排列 */
    gap: 35px;
  }

  .Second-container-img {
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    justify-content: center;
  }

  .big-image {
    grid-column: 1 / 2; /* 大图占第一列 */
  }

  .small-images {
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    grid-gap: 20px 15px;
  }
}

/* 第三个板块 */
.Second-container-second{
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 10px; /* 列之间的间隙 */
}
.Second-container-second .item {
  color: white; /* 字体颜色 */
  text-align: center; /* 文本水平居中 */
  border-radius: 5px; /* 圆角 */
}

.first-column {
  display: grid; /* 将第一列设置为网格布局 */
  grid-template-rows: auto 1fr; /* 第一行自适应高度，第二行占据剩余高度 */

}
.nested-grid {
  display: grid; /* 嵌套网格 */
  grid-template-columns: 1fr 1fr; /* item-2 比 item-3 宽 */
  gap: 10px; /* 子列之间的间隙 */
}
.nested-item img {
  width: 100%; /* 图片宽度自适应容器 */
  height: auto; /* 高度自适应，保持原图比例 */
}

.item img {
  width: 100%; /* 图片宽度自适应容器 */
  height: 100%;
}
.nested-item {
  border-radius: 5px; /* 圆角 */
}
.item-1 {
  grid-column: 1 / -1; /* 子列 1 占据整个行 */
}
.small-images {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 两列的布局 */
  grid-gap: 20px 15px;
  grid-column: 2 / 3; /* 小图占第二列 */
}

@media (max-width: 1023px) {
  .Second-container-second{
      display: flex;
      /* flex-wrap: wrap; */
      padding: 0px;
      justify-content: center;
  }
}
@media (max-width: 920px){
  .Second-container-second {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 为两列布局 */
    gap: 10px; /* 列之间的间隙 */
  }

  .first-column {
    grid-column: span 2; /* 第一张图片占据两列 */
  }
  
  .Second-container-second > .item:nth-child(3),
  .Second-container-second > .item:nth-child(4) {
    grid-column: span 1; /* 第二张图和第三张图各占一列 */
  }
}

/* 第四个板块 */
.Five-plates-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 2fr 1fr; /* 中间列宽度加倍 */
  gap: 10px; /* 列间距 */
}
h1 {
  color: rgb(0, 0, 0);
  font-family: Montserrat;
  font-size: 48px;
  font-weight: 400;
  line-height: 59px;
  letter-spacing: 0px;
  text-align: left;
}
/* 确保所有网格项具有相近的高度 */
.Five-plates-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 在主轴（垂直方向）上均匀分布 */
  height: auto;
}

/* 设置图片的样式 */
.Five-plates-item img {
  width: 100%;
  object-fit: cover; /* 保持图片比例裁剪 */
}

/* 保证左右列的图片高度和宽度接近中间列 */
.Five-plates-item:nth-child(1) img,
.Five-plates-item:nth-child(3) img {
  height: 50%; /* 保证上下两张图片总高度约等于正方形图片高度 */
}

/* 平板端支持宽度在769px到1023px之间 */
@media (max-width: 1023px) {
  .Five-plates-grid {
    grid-template-columns: 1fr; /* 设置为1列布局 */
    gap: 20px; /* 列间距增加 */
  }
}


@media (max-width: 920px) {
  .Five-plates-grid {
    grid-template-columns: 1fr 1fr; /* 设置为两列布局 */
    gap: 10px; /* 列间距 */
  }

  .Five-plates-item {
    display: contents;
  }

  /* 第一行两个小图并排 */
  .Five-plates-grid > .Five-plates-item:nth-child(1) img:nth-child(1),
  .Five-plates-grid > .Five-plates-item:nth-child(1) img:nth-child(2) {
    width: 100%;
    object-fit: cover;
    height: auto;
    grid-column: span 1;
    margin-top: 0px !important;
  }

  /* 第二行一个大图 */
  .Five-plates-grid > .Five-plates-item:nth-child(2) img {
    width: 100%;
    height: auto;
    grid-column: span 2;
  }

  /* 第三行两个小图并排 */
  .Five-plates-grid > .Five-plates-item:nth-child(3) img:nth-child(1),
  .Five-plates-grid > .Five-plates-item:nth-child(3) img:nth-child(2) {
    width: 100%;
    object-fit: cover;
    height: auto;
    grid-column: span 1;
    margin-top: 0px !important;
  }
}

::marker{
  font-size: 2rem;
  padding-right: 0px !important;
  margin-right: 0px !important;
  line-height: 50px;
}