html,
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  height: 100%;
  width: 100%;
  min-width: 1200px;

  margin: 0;
  padding: 0;
  border: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* 保证高度撑满整个视口 */

}

#my_header {
  /* 顶部区域 */
  flex-shrink: 0;
}

#my_banner,
#my_service,
.my_container {
  /* 中间区域，占满剩余高度 */
  flex-grow: 1;
}

#my_service {
  z-index: 1;
}

#my_footer {
  /* 底部区域 */
  flex-shrink: 0;
}

.my_container {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.responsive-img {
  width: 100%;
  /* 绝不超过父元素宽度 */
  height: auto;
  /* 高度自动（保留比例） */
  object-fit: contain;
}



/*  */
.my_bottom {
  width: calc(100%-80px);
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

h1 {
  /* font-size: clamp(最小值, 首选值, 最大值); */
  font-size: clamp(20px, 2vw, 40px);
  font-weight: bold;
}

h3 {
  font-size: clamp(20px, 2vw, 30px);
}

p {
  font-size: clamp(16px, 2vw, 20px);
}

.my_section {
  display: flex;
  align-items: stretch;
  /* ⭐ 让左右列高度拉伸一致 */
  /* 垂直居中 */
  color: black;
  border-radius: 60px;
  /* 👈 设置四角圆切，数值可调整 */
  overflow: hidden;
  /* 👈 裁掉超出圆角部分的子元素内容 */
  height: auto;
}

.my_section .left {
  flex: 0 0 40%;
  /* 禁止缩小，宽度由内容或设置决定 */
  display: flex;
  flex-direction: column;
}

.my_section .right {
  flex: 1 1 60%;
  /* 允许缩小和扩展 */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 文字靠顶部 */
  align-items: center;
  /* 水平居中 */
  text-align: center;
  /* 内容居中 */
}

.my_section img {
  width: 100%;
  height: 100%;
  /* ⭐ 撑满父容器高度 */
  object-fit: cover;
  /* ⭐ 裁剪多余部分，保持铺满 */
  display: block;
}

/* 指定第二个，图片和文字反转显示 */
.my_section:nth-child(2) {
  flex-direction: row-reverse;
}

/* 单独设置第三个section的左边圆角，不遮挡vedio的小圆角 */
.my_section:nth-child(3) {
  border-radius: 60px 0px 0px 60px;
}

.my_section:nth-child(3) .right {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* 关键 */
  box-sizing: border-box;
  padding: 10px 10px 0 10px;
  justify-content: space-between;
  /* 关键点1：顶部文字、底部 video 自动分开 */
  overflow: hidden;
  /* 防止溢出滚动条 */

}

/* 文本区域（h1、h3、p）容器 */
.my_section:nth-child(3) .right .text-content {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}

.my_section video {
  width: calc(100% - 40px);
  bottom: 10px;
  height: auto;
  /* 高度自适应保持比例 */
  padding: 10px;
  /* 内边距 */
  flex-shrink: 0;
  /* 不允许被压缩 */
  object-fit: contain;
  border-radius: 8px;
  /* 可选，圆角 */
  background-color: #000;
  /* 可选，视频背景黑色 */
  display: block;
  /* 去除底部空隙 */
}

.fixed-img {
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
  /* 等比例缩放并裁剪超出 */
  /* object-position: center top; */
  object-position: 50% 30%;
  /* 水平居中，垂直偏上 20% */

  /* 裁剪对齐顶部，保留上方文字 */
  display: block;
  top: 50%;
  left: 50%;
}