/* Huicheng homepage responsive fixes - 2026-07-15
 * Load after /dist/css/head.css and /dist/css/hc.css.
 */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .slide-content {
    left: 0;
    width: 100%;
    max-width: none;
    padding-inline: 32px;
  }

  .slide-content-text {
    width: min(100%, 620px);
  }
}

@media(max-width:992px) and (min-width:760px){
  .hero-section{height:60vh}
  .cat-card{height: 293px;}
  .cat-content{
    left: 10px;
    right: 10px;
    bottom: 20px;
  }
  .cat-content h3{font-size: 20px;}
  .weld,.showroom{height:303px}
  .stat b{font-size: 36px;}
  .accordion{
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
  .acc-copy{bottom: 30px;}
  .best-row{
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-box{width: 45%;}
  .quote-box button svg{right: 20px;}
  .foot-grid{grid-template-columns: repeat(2, 1fr);gap:30px}
  .products-list{gap: 30px;}
  .product-copy p img{width: 30px;}
  .all-products{padding: 0 0 60px;}
  .usecase-hero-inner{bottom: 0px;}
}


@media (max-width: 760px) {
  .hero-section {
    height: min(500px, 100svh);
    min-height: 400px;
  }

  .slide-bg {
    background-position: 58% center;
  }

  .slide-content {
    left: 0;
    right: auto;
    bottom: 72px;
    width: 100%;
    padding-inline: 20px;
    align-items: flex-start;
    gap: 24px;
  }

  .slide-content-text {
    width: 100%;
  }

  .slide-title {
    font-size: 32px;
    line-height: 1.08;
  }

  .slide-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .slide-cta {
    min-height: 44px;
    padding: 12px 22px;
  }

  .products-grid,
  .about,
  .why,
  .customers,
  .bestseller {
    padding-block: 44px;
  }

  .section-head,
  .about-layout {
    margin-bottom: 28px;
  }

  .section-head {
    align-items: center;
  }

  .section-head .btn {
    width: auto;
    min-width: 132px;
    padding-inline: 18px;
    line-height: 42px;
  }

  .grid6 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cat-card {
    height: auto;
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }

  .cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cat-content {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .cat-content h3 {
    font-size: 24px;
  }

  .tiny {
    margin-top: 18px;
  }

  .weld,
  .showroom {
    height: auto;
    min-height: 300px;
  }

  .weld .floating {
    left: 16px;
    bottom: 16px;
    width: 100%;
    position: unset;
    margin-top:30px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .stat b {
    font-size: 24px;
  }

  .stat span {
    font-size: 14px;
  }

  .accordion {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
  }

  .acc-item {
    min-height: 220px;
  }

  .accordion:hover .acc-item,
  .accordion .acc-item:hover {
    flex: none;
  }

  .acc-copy {
    left: 16px;
    bottom: 18px;
    width: calc(100% - 32px);
    font-size: 14px;
  }

  .acc-icon {
    top: 30%;
  }

  .testimonialSwiper {
    padding-bottom: 56px;
  }

  .testimonialSwiper .swiper-slide {
    height: auto;
    min-height: 390px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .quote-text {
    font-size: 17px;
  }

  .best-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top:40px;
  }

  .cta h2,
  .cta .cta-title {
    max-width: 100%;
    font-size: 20px;
  }
  .cta .cta-title{font-size: 30px;}

  .quote-box {
    padding: 24px 20px;
    position: unset;
  }
  .cta p{max-width: 100%;}

  .catalog1{margin-left: 20px;}
  .foot-logo{margin-bottom:20px;}
  .foot-grid .foot:nth-child(2),.foot-grid .foot:nth-child(3){display: none}

}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header {
    padding-inline: 0;
  }

  .headerContainer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header .left img {
    max-width: 156px;
    margin-top:15px !important;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-subtitle {
    letter-spacing: 2px;
  }

  .slide-subtitle::before {
    width: 24px;
  }

  .swiper-pagination {
    left: 20px !important;
    right: 20px;
    gap: 8px;
  }

  .swiper-pagination-bullet,
  .swiper-pagination-bullet-active {
    flex: 1 1 0;
    width: auto;
    max-width: 42px;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .section-head h2,
  .why h2,
  .customers h2,
  .bestseller h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .cat-card {
    min-height: 260px;
  }

  .accordion {
    grid-template-columns: 1fr;
  }

  .acc-item {
    min-height: 240px;
  }

  .stats {
    gap: 22px;
  }

  .foot-grid {
    gap: 26px;
  }
}
