/* ================= 基础样式 ================= */
* {
  box-sizing: border-box;
}


/* 给所有主要内容套上统一最大宽度并居中 */
.content,
.banner,
.banner2 {
  max-width: 1500px;    /* 统一最大宽度，可修改 */
  margin: auto;       /* 居中显示 */
  box-sizing: border-box;
}


/* 基础 content 容器 */
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 90px;
  transition: all 0.3s ease;
}

/* 偶数 content 反向排列 */
.content:nth-of-type(even) {
  flex-direction: row-reverse;
}

.content:nth-of-type(even) img {
  margin: 0 20px 0 0;
}

/* 文本部分 */
.text {
  max-width: 600px;
  padding: 10px 20px;
  flex: 1;
}

.text h1 {
  font-weight: bold;
  margin: 0 0 50px 0;
}

.text p {
  font-size: 20px;
  margin-top: 40px;
  line-height: 1.6;
}

.text a {
  font-size: 13px;
  color: blue;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  font-size:14px;
}

.text a:hover {
  text-decoration: underline;
}

/* 图片 */
.content img,
.banner img {
  width: 450px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}

/* ================= 响应式 ================= */
@media screen and (max-width: 992px) {
  .content,
  .content:nth-of-type(even),
  .banner {
    flex-direction: column;
    text-align: center;
    margin: 20px;
    padding: 20px;
  }

  .content img,
  .banner img {
    margin: 0 auto 15px auto !important;
    width: 100%;
  }

  .text,
  .banner .text {
    max-width: 100%;
    padding: 10px;
  }

  .text h1,
  .banner .text h1 {
    margin-bottom: 20px;
  }

  .text p,
  .banner .text p {
    font-size: 18px;
    margin-top: 15px;
  }
}

/* ================= Custom-1 ================= */
.custom-layout {
  display: block;
}

.custom-1 .image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.custom-1 .image-row img {
  width: 45%;
  height: auto;
  display: block;
}

.custom-1 .text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ================= Custom-2 ================= */
.content.custom-2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px;
  padding: 0 30px;
  text-align: center;
}

.content.custom-2 .image-text-block {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.content.custom-2 .image-text-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

.content.custom-2 .image-text-block h1,
.content.custom-2 .image-text-block h2 {
  font-size: 18px;
  margin: 0;
}

/* 手机端适配 Custom-2 */
@media (max-width: 768px) {
  .content.custom-2 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .content.custom-2 .image-text-block {
    max-width: 100%;
  }
}

/* ================= Banner ================= */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #f4f4f4;
  transition: all 0.3s ease;
  gap:20px;
}

.banner .text {
  max-width: 600px;
  padding: 40px;
  flex: 1;
}

/* ================= Banner2 标题 ================= */
.banner2 {
  display: flex;
  justify-content: center;  /* 水平居中 */
  align-items: center;      /* 垂直居中 */
  text-align: center;       /* 文字居中 */
}

.banner2 h1 {
  font-size: 38px;
  font-weight: bold;
  max-width: 1200px;  /* 控制标题的最大宽度 */
}

/* 手机端适配：屏幕窄时自动换行 */
@media (max-width: 1200px) {
  .banner2 h1 {
    white-space: normal;     /* 小屏自动换行 */
    padding: 0 20px;         /* 给两侧留点空白 */
  }
}




.banner3 {
  display: flex;
  flex-wrap: wrap;   /* 允许换行 */
}

.banner3 .text {
  flex: 0 0 100%;    /* 强制单独一行，占满 100% */
  width: 100%;
  max-width: 100%;
}

.banner3 .text a {
  color: blue;
  text-decoration: none;
  font-size: 17px;
}


