/* Targeted adjustments for the existing Sanli templates. */
.allpro .picbox .title .s1,
.allpro .imgbox .meng .s1,
.otherprobox .title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
.allpro .imgbox .meng .s1 { padding: 0 8%; }
.otherprobox .title { min-height: 3.2em; }
.allpro .picbox .title { transition-property: width, color; }
.allpro .picbox .pic { transition-property: width, transform; }
.allpro .imgbox .meng { transition-property: opacity; }
.in_pro .pro-item .list:nth-last-child(-n+2) { display: block; }
.pro-des-text .des span,
.pro-des-content { line-height: 1.85; }
.fixBut:focus-visible,
.navBg a:focus-visible,
.allpro .meng:focus-visible { outline: 3px solid #8bc3ff; outline-offset: 3px; }
.navBg { transition-property: transform, opacity; }
@media (max-width: 768px) {
    .fixBut { width: 44px; height: 44px; }
    .navBg { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
    .navBg .right { min-height: 100%; height: auto; }
    .navBg .right ul { min-height: 100%; height: auto; padding: 80px 4% 30px; }
    .navBg .right ul li { height: auto; }
    .navBg .right ul li .sec a,
    .navBg .right ul li .abox a { display: block; min-height: 44px; padding: 8px 0; line-height: 1.65; }
    .navBg .right ul li .abox a { font-size: 16px; }
    body.site-nav-open { overflow: hidden; }
    .pro-item .list { margin-bottom: 22px; }
    .pro-item .list:nth-child(2n+1) { clear: left; }
    .allpro .picbox .title { height: auto; min-height: 68px; padding: 10px 4%; align-items: flex-start; }
    .allpro .picbox .title .s1 { width: calc(100% - 32px); height: auto; font-size: 16px; line-height: 1.6; }
    .allpro .picbox .title .s2 { flex-shrink: 0; margin-top: 3px; }
    .allpro:hover .picbox .title { width: 100%; }
    .allpro:hover .picbox .pic { width: 100%; }
    .allpro .imgbox .meng .s1 { font-size: 16px; line-height: 1.65; }
    .otherprobox .title { font-size: 16px; line-height: 1.65; min-height: 3.3em; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .allpro .transi,
    .navBg,
    .fixBut .sm-button-xian span { transition-duration: 0.01ms; }
}

/* Homepage news excerpt heights: preserve existing wrapping and truncation. */
.in_news_lunbo .swiper-slide .text1 .con { height: 81px; }
@media (max-width: 1600px) {
    .in_news_lunbo .swiper-slide .text1 .con { height: 54px; }
}
@media (max-width: 768px) {
    .in_news_lunbo .swiper-slide .text1 .con { height: 46px; }
}
