/* 新增bannermain图片容器样式 */
.bannermain {
    margin: 0;
    width: 100%;
    height: 500px; /* 修改容器高度为固定值 */
    position: relative;
    overflow: hidden;
}
/* 新增图片自适应样式 */
.bannermain img {
    width: 100%;
    height: 500px; /* 保持固定高度 */
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 0;
    min-width: 100%;
}
.body1 {
   
    color: var(--secondary-color);
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-indent: 2em;
}
.header1 {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--secondary-color);
}
.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    text-transform: uppercase;
}
.brand-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 1rem auto;
    max-width: 80%;
}
.main1 {
    flex: 1;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1560px;
    margin: 0 auto;
}
.brand-content {
    flex: 2;
    font-size: 1.4rem;
    line-height: 2.5;
    text-align: justify;
}
.mainimg {
    padding-top: 100px;
}

@media (max-width: 768px) {
  /* 移动端banner优化 */
  .bannermain {
    height: 300px !important;
    margin-top: 60px;
  }
  .bannermain img {
    height: 300px !important;
    object-position: top center;
  }

  /* 标题字号优化 */
  .brand-title {
    font-size: 2rem !important;
    margin: 0.5rem 0;
  }
  .brand-subtitle {
    font-size: 1.2rem;
    max-width: 90%;
  }

  /* 正文布局优化 */
  .main1 {
    flex-direction: column;
    padding: 1rem !important;
  }
  .brand-content {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* 段落间距优化 */
  .brand-content p {
    margin: 1.5rem 0;
  }

  /* 图片容器优化 */
  .mainimg {
    padding-top: 30px !important;
    text-align: center;
  }
  .mainimg img {
    max-width: 90% !important;
    height: auto !important;
  }

  /* 边距优化 */
  .header1 {
    padding: 1rem 0;
  }
}
