

.container {
    max-width: 1400px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1200px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 992px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

.hero-swiper {
    width: 100%;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 650px; 
    object-fit: cover;
    display: block;
}


@media (min-width: 1920px) {
    .hero-swiper .swiper-slide img {
        max-height: 800px;
        width: 100% !important;    
        height: 800px !important; 
        object-fit: cover !important; 
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-swiper .swiper-slide img {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero-swiper .swiper-slide img {
        max-height: 200px;
        object-fit: cover;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

.swiper-pagination-bullet-active {
    background: #C6A43F !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}



.section-head {
    /* text-align: center; */
    margin-bottom: 48px;
    width: 100%;
}

.section-head h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0A2540;
    position: relative;
    display: inline-block;
}

.section-head h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #C6A43F;
    margin: 12px auto 0;
}

.section-head p {
    color: #666;
    font-size: 1rem;
    margin-top: 16px;
}


.about-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-content {
    flex: 1.2;
}

.about-content p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-img {
    flex: 0.9;
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}


.product-scroll-wrap {
    overflow: hidden;
    position: relative;
}

.product-grid-scroll {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: autoScroll 25s linear infinite;
}

.product-scroll-wrap:hover .product-grid-scroll {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-270px * 4 - 30px * 4));
    }
}

.product-card {
    width: 270px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    /* text-align: center; */
}

.product-info h4 {
    font-size: 1.1rem;
    color: #0A2540;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    
}

.product-desc {
    font-size: 0.85rem;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;

}



.case-container {
    display: flex;
    gap: 10px;
    height: 450px;
}


.case-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}


.case-card .case-card-title-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.case-card .case-card-title-wrap h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
}


.case-card .case-card-body {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}


.case-card:hover {
    flex: 4 !important;
}


.case-card:hover .case-card-title-wrap {
    opacity: 0;
}

.case-card:hover .case-card-body {
    opacity: 1;
}


.case-card-1 {
    background-image: url('/static/use01.png');
    background-size: cover;
    background-position: center;
}


@media (max-width: 992px) {
    .case-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .case-card {
        height: 100px;
        flex: unset !important;
    }

    .case-card:hover {
        height: 300px;
    }

    .case-card .case-card-title-wrap,
    .case-card .case-card-body {
        position: relative;
        opacity: 1 !important;
    }

    .case-card .case-card-title-wrap {
        top: auto;
        left: auto;
        transform: none;
        padding: 15px;
    }

    .case-card .case-card-body {
        position: relative;
        padding: 15px;
    }
}



.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


.news-img {
    height: 200px;
    overflow: hidden;
}


.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-content {
    padding: 20px;
}


.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}


.news-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 60px;
}


.news-card-footer {
    margin-top: 16px;
    padding: 0 20px 20px 20px;
}


.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 36px;
    background: #f0f0f0;
    color: #666;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 20px;
    transition: all 0.3s ease;
}


.news-card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}


.news-card:hover .news-card-link {
    background: #0A2540;
    color: #fff;
}

.news-card:hover .news-card-link i {
    transform: translateX(4px);
}


@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-img {
        height: 180px;
    }
}


.partner-wrap {
    overflow: hidden;
}

.partner-slide {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;         
    justify-content: left; 
    width: 100%;             
    animation: none;         

}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-wrap:hover .partner-slide {
    animation-play-state: paused;
}

.partner-item {
    width: 160px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0A2540;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    
    white-space: nowrap;
    min-width: fit-content;
}
.btn-more:hover {
    background: #C6A43F;
    color: #0A2540;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}


.footer {
    background: #1a2a3a;
    color: #ccc;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 0;
    border-bottom: 1px solid #444;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-group h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-group ul {
    list-style: none;
}

.footer-group li {
    margin: 8px 0;
}

.footer-group a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

.footer-group a:hover {
    color: #fff;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    color: #ddd;
    font-size: 14px;
    margin: 5px 0;
}

.footer-qrcode span {
    color: #888;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.footer-bottom p {
    color: #ddd;
    font-size: 12px;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}


@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .case-container {
        flex-direction: column;
        height: auto;
    }

    .case-card {
        height: 100px;
    }

    .case-card.active {
        height: 350px;
    }

    .footer-links {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-head h2 {
        font-size: 1.6rem;
        text-align: left;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        width: 220px;
    }

    .case-card-img {
        height: 200px;
    }

    @keyframes autoScroll {
        100% {
            transform: translateX(calc(-220px * 4 - 30px * 4));
        }
    }

    @keyframes partnerScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .news-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .case-card-img {
        height: 160px;
    }

    .product-card {
        width: 180px;
    }

    .product-img {
        height: 160px;
    }

    @keyframes autoScroll {
        100% {
            transform: translateX(calc(-180px * 4 - 30px * 4));
        }
    }
}


@media (max-width: 768px) {
    
    body {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }

    
    .section-padding {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    
    .section-head {
        margin-bottom: 28px !important;
    }
    .section-head h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    .section-head p {
        font-size: 13px !important;
        margin-top: 10px !important;
    }

    
    .about-wrapper {
        gap: 25px !important;
    }
    .about-content p {
        font-size: 14px !important;
        margin-bottom: 16px !important;
        line-height: 1.8 !important;
    }

    
    .btn-more {
        padding: 7px 18px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    .news-header {
        margin-bottom: 28px !important;
    }

   
    .product-card {
        width: 200px !important;
        border-radius: 12px !important;
    }
    .product-img {
        height: 170px !important;
    }
    .product-info {
        padding: 15px 12px !important;
    }
    .product-info h4 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    .product-desc {
        font-size: 12px !important;
    }

    
    .case-card .case-card-title-wrap h3 {
        font-size: 14px !important;
        padding: 6px 12px !important;
    }

   
    .news-img {
        height: 160px !important;
    }
    .news-content {
        padding: 15px 12px !important;
    }
    .news-card-title {
        font-size: 14px !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
    }
    .news-excerpt {
        font-size: 13px !important;
        min-height: auto !important;
    }
    .news-card-footer {
        padding: 0 12px 15px 12px !important;
        margin-top: 10px !important;
    }
    .news-card-link {
        height: 32px !important;
        padding: 0 15px !important;
        font-size: 12px !important;
    }

    
    .partner-slide {
        gap: 15px !important;
        justify-content: center !important;
    }
    .partner-item {
        width: 110px !important;
        height: 60px !important;
        border-radius: 8px !important;
    }
}


@media (max-width: 480px) {
    .section-padding {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .section-head h2 {
        font-size: 18px !important;
    }
    .product-card {
        width: 170px !important;
    }
    .product-img {
        height: 150px !important;
    }
    .partner-item {
        width: 95px !important;
        height: 55px !important;
    }
    .btn-more {
        padding: 6px 15px !important;
        font-size: 12px !important;
    }
}