@media (max-width: 768px) {
  html {
    font-size: calc(100vw / 18);
  }
}
@media (min-width: 768px) and (max-width: 1358.99px) {
  html {
    font-size: calc(100vw / 19.5);
  }
}
@media (min-width: 1359px) and (max-width: 1401.99px) {
  html {
    font-size: calc(100vw / 19.2);
  }
}
@media (min-width: 1402px) and (max-width: 1681.99px) {
  html {
    font-size: calc(100vw / 18.8);
  }
}
@media (min-width: 1682px) and (max-width: 1921.99px) {
  html {
    font-size: calc(100vw / 19.2);
  }
}
@media (min-width: 1922px) and (max-width: 4000px) {
  html {
    font-size: calc(100vw / 25.6);
  }
}
/* 手机 */
@media (max-width: 768px) {
  /* banner */
  .banner {
    width: 100%;
    height: 100%;
  }
  .banner .sabuubanner {
    width: 100%;
    height: 100%;
  }
  .banner .sabuubanner .con {
    position: relative;
    height: 10rem;
  }
  .banner .sabuubanner .con .mySwiper_banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10rem;
    overflow: hidden;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide {
    width: 100% !important;
    position: relative;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde {
    width: 100%;
    height: 10rem;
    overflow: hidden;
    position: relative;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
    transition: 0.8s linear 1s;
    transform: scale(1);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1a74c5, #1a75c5af, #4495e100);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .w-1517 {
    position: absolute;
    top: 5.33333333rem;
    width: 100%;
    margin: 0 auto;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .w-1517 h3 {
    width: 100%;
    font-size: 0.93333333rem;
    color: #fff;
    text-align: center;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide-active .tupiandde img {
    transition: 4.5s linear;
    transform: scale(1.05);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide-duplicate-active .tupiandde img {
    transition: 4.5s linear;
    transform: scale(1.05);
  }
  .banner .sabuubanner .con1 {
    display: none;
  }
  /* list */
  .case_list {
    width: 100%;
    height: 100%;
    padding: 10% 5%;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .case_list .w-1320 {
    width: 100%;
    margin: 0 auto;
  }
  .case_list .w-1320 .asncua {
    display: flex;
    flex-wrap: wrap;
    gap: 0.66666667rem;
  }
  .case_list .w-1320 .asncua .case-item {
    width: 47.5%;
    transition: all 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    border-radius: 0.33333333rem;
    box-shadow: 0 0.26666667rem 0.33333333rem rgba(0, 0, 0, 0.05);
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container {
    position: relative;
    overflow: hidden;
    height: 5.33333333rem;
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container .case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .case_list .w-1320 .asncua .case-item a .case-info {
    padding: 0.66666667rem 5% 0;
    background-color: #fff;
    text-align: center;
  }
  .case_list .w-1320 .asncua .case-item a .case-info .case-title {
    font-size: 0.53333333rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.66666667rem;
    transition: color 0.3s ease;
  }
}
/* pc */
@media (min-width: 768px) {
  /* banner */
  .banner {
    width: 100%;
    height: 7rem;
  }
  .banner .sabuubanner {
    width: 100%;
    height: 100%;
  }
  .banner .sabuubanner .con {
    position: relative;
    height: 100%;
    /* ✅ 不再重复 100vh，跟随父级 */
  }
  .banner .sabuubanner .con .mySwiper_banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ 跟随父级一屏 */
    overflow: hidden;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper {
    height: 100%;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide {
    width: 100% !important;
    height: 100%;
    position: relative;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde {
    width: 100%;
    height: 7rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    transition: 0.8s linear 1s;
    transform: scale(1);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .tupiandde::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1a74c5, #1a75c5af, #4495e100);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .w-1517 {
    position: absolute;
    z-index: 25;
    /* ✅ 关键：top 不能固定 450rem，必须随屏幕高度变化且保证装得下 */
    top: clamp(3.2rem, 38vh, 3.2rem);
    width: 100%;
    margin: 0 auto;
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide .w-1517 h3 {
    text-align: center;
    width: 100%;
    font-size: 0.55rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide-active .tupiandde img {
    transition: 4.5s linear;
    transform: scale(1.05);
  }
  .banner .sabuubanner .con .mySwiper_banner .swiper-wrapper .swiper-slide-duplicate-active .tupiandde img {
    transition: 4.5s linear;
    transform: scale(1.05);
  }
  .banner .sabuubanner .con1 {
    display: none;
  }
  /* list */
  .case_list {
    width: 100%;
    height: 100%;
    padding: 1.1rem 0;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .case_list .w-1320 {
    width: 13.2rem;
    margin: 0 auto;
  }
  .case_list .w-1320 .asncua {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .case_list .w-1320 .asncua .case-item {
    width: 31.2%;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.12rem;
    box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.05);
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container {
    position: relative;
    overflow: hidden;
    height: 3.5rem;
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container .case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container .case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 201, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container .case-overlay .case-overlay-content {
    text-align: center;
    transform: translateY(0.2rem);
    transition: transform 0.3s ease;
  }
  .case_list .w-1320 .asncua .case-item a .case-image-container .case-overlay .case-overlay-content .case-detail-btn {
    color: #fff;
    font-size: 0.16rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
  }
  .case_list .w-1320 .asncua .case-item a .case-info {
    padding: 0.2rem 0.2rem 0.1rem;
    background-color: #fff;
    text-align: center;
  }
  .case_list .w-1320 .asncua .case-item a .case-info .case-title {
    font-size: 0.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
  }
  .case_list .w-1320 .asncua .case-item:hover {
    transform: translateY(-0.05rem);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  }
  .case_list .w-1320 .asncua .case-item:hover a .case-image-container .case-overlay {
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
  }
}
