/* 
 * Home Page Styles - Bootstrap 5 Optimized
 * 首页专用样式 - 符合Bootstrap 5规范
 */

/* 
 * Hero Banner Styles - Bootstrap 5 Optimized
 * 符合Bootstrap 5规范的Banner样式
 */

/* Hero Banner Section */
.hero-banner,
#hero-carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    background: var(--bs-dark, #000);
}

.hero-banner .carousel-item {
    position: relative;
    background: var(--bs-dark, #000);
}

/* Media Containers - Simplified */
.hero-banner .hero-video-container,
.hero-banner .hero-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-banner .hero-video,
.hero-banner .hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Carousel Caption - Bootstrap 5 Optimized */
.hero-banner .carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    /* pointer-events: none; */
}

/* .hero-banner .carousel-caption .hero-content {
    pointer-events: auto;
} */

/* Hero Content */
.hero-banner .hero-content {
    max-width: 50rem;
    padding: var(--bs-gutter-x, 1.5rem);
}

.hero-banner .hero-divider {
    width: 5rem;
    height: 3px;
    background: var(--bs-primary, #0d6efd);
    border-radius: var(--bs-border-radius-sm, 0.25rem);
}

.hero-banner .hero-button {
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.875rem;
    --bs-btn-font-size: 1.1rem;
    --bs-btn-border-radius: 1.875rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    transition: var(--bs-transition, all 0.15s ease-in-out);
    box-shadow: 0 0.25rem 0.9375rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3);
}

.hero-banner .hero-button:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.4);
}

/* Carousel Controls - Bootstrap 5 Enhanced */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 3.75rem;
    height: 3.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--bs-transition, all 0.15s ease-in-out);
    z-index: 20;
}

.hero-banner .carousel-control-prev {
    left: 1.875rem;
}

.hero-banner .carousel-control-next {
    right: 1.875rem;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    /* transform: scale(1.1); */
}

/* Carousel Indicators - Bootstrap 5 Enhanced */
.hero-banner .carousel-indicators {
    bottom: 1.875rem;
    z-index: 20;
}

.hero-banner .carousel-indicators [data-bs-target] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin: 0 0.375rem;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--bs-transition, all 0.15s ease-in-out);
}

.hero-banner .carousel-indicators .active {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    transform: scale(1.2);
}



/* Responsive Design - Bootstrap 5 Breakpoints */
@media (max-width: 767.98px) {

    .hero-banner,
    #hero-carousel,
    .hero-banner .carousel-inner,
    .hero-banner .carousel-item {
        min-height: 31.25rem;
    }

    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 3.125rem;
        height: 3.125rem;
    }

    .hero-banner .carousel-control-prev {
        left: 0.9375rem;
    }

    .hero-banner .carousel-control-next {
        right: 0.9375rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .hero-button {
    box-shadow: 0 0.25rem 0.9375rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.4);
}

[data-theme="dark"] .hero-button:hover {
    box-shadow: 0 0.375rem 1.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.5);
}

/* Company Introduction Section - Bootstrap 5 Optimized */
.company-intro-section {
    background-image: url('../images/index_weiye_bg.jpg');
    /* background-size: cover; */
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
    position: relative;
}

.company-intro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

[data-theme="dark"] .company-intro-section::before {
    background: rgba(33, 37, 41, 0.85)
}


.company-intro-section .container {
    position: relative;
    z-index: 2;
}

/* About Section - Bootstrap 5 Optimized */
.about-section {
    background-image: url('../images/index-bg-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-section::before {
    background: rgba(255, 255, 255, 0.3);
}

.about-section .about-title,
.about-section .about-title h2 {
    margin: 3rem 0;
}

/* .line-1 {
    width: 5rem;
    height: 3px;
    background: var(--bs-primary, #0d6efd);
    border-radius: var(--bs-border-radius-sm, 0.25rem);
} */
@media (min-width: 992px) {
    .about-section .about-title p {
        margin-right: 6rem;
        font-size: large;
        line-height: 2;
    }
}

.about-section .about-slogans .align-items-center {
    border-bottom: solid 2px;
    padding: 2rem 0 1rem;
}


/* Products Section - Simplified */
.products-section {
    background: linear-gradient(to bottom,
            #87CEEB 0%,
            /* 浅蓝色（天空色）开始 */
            #FFFFFF 26%,
            /* 直接过渡到白色 */
            #FFFFFF 80%,
            /* 白色主体部分 */
            #FFCCCB 100%
            /* 淡橘红色结束 */
        );
    color: #6c757d;
}

.products-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.products-carousel-wrapper .carousel-item {
    padding: 3rem 0 5rem;
    transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}

/* Optimized carousel animation */
.products-carousel-wrapper .carousel-item-next,
.products-carousel-wrapper .carousel-item-prev,
.products-carousel-wrapper .active.carousel-item-end,
.products-carousel-wrapper .active.carousel-item-start {
    transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}

.products-carousel-wrapper .carousel-item-next,
.products-carousel-wrapper .active.carousel-item-end {
    transform: translateX(150px);
    opacity: 0;
}

.products-carousel-wrapper .carousel-item-prev,
.products-carousel-wrapper .active.carousel-item-start {
    transform: translateX(-150px);
    opacity: 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Product Content */
.product-content {
    padding: 2rem;
    transition: transform 0.2s ease-out, opacity 0.15s ease-out;
}

/* Content animation - from left */
.products-carousel-wrapper .carousel-item:not(.active) .product-content {
    transform: translateX(-30px);
    opacity: 0;
}

.products-carousel-wrapper .carousel-item.active .product-content {
    transform: translateX(0);
    opacity: 1;
}

/* Image animation - from right */
.products-carousel-wrapper .carousel-item:not(.active) .product-image-wrapper {
    transform: translateX(30px);
    opacity: 0;
}

.products-carousel-wrapper .carousel-item.active .product-image-wrapper {
    transform: translateX(0);
    opacity: 1;
}

/* Product styling */
.product-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-divider {
    width: 4rem;
    height: 3px;
    background: #007bff;
    margin: 1.5rem 0;
}

.product-description {
    font-size: 1.1rem;
    /* color: #6c757d; */
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-image-wrapper {
    padding: 1rem;
    transition: transform 0.2s ease-out, opacity 0.15s ease-out;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}



/* Navigation - Products Section */
.products-carousel-wrapper .carousel-control-prev,
.products-carousel-wrapper .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bs-gray);
    border-radius: 50%;
    /* border: 1px solid #dee2e6; */
    opacity: 0.4;
    z-index: 10;
}

.products-carousel-wrapper .carousel-control-prev {
    left: 2.3rem;
}

.products-carousel-wrapper .carousel-control-next {
    right: 2.3rem;
}

.products-carousel-wrapper .carousel-control-prev:hover,
.products-carousel-wrapper .carousel-control-next:hover {
    /* background: #aeafaf; */
    opacity: 0.7;
}

/* .products-carousel-wrapper .carousel-control-prev-icon,
.products-carousel-wrapper .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
} */

/* Products Indicators - Bootstrap Standard with Custom Styling */
/* #products-carousel .carousel-indicators.products-indicators {
    bottom: 1rem;
    margin-bottom: 0;
} */

#products-carousel .carousel-indicators.products-indicators button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dee2e6;
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    opacity: 1;
}

#products-carousel .carousel-indicators.products-indicators button.active,
#products-carousel .carousel-indicators.products-indicators button:hover {
    background: #007bff;
    border-color: #007bff;
}

#products-carousel .carousel-indicators.products-indicators .indicator-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    display: block;
}

#products-carousel .carousel-indicators.products-indicators button.active .indicator-number,
#products-carousel .carousel-indicators.products-indicators button:hover .indicator-number {
    color: white;
}

.products-carousel-wrapper .indicator-btn.active .indicator-number,
.products-carousel-wrapper .indicator-btn:hover .indicator-number {
    color: white;
}

/* News Section */
.news-section .section-title {
    font-size: 2rem;
}

.news-featured,
.news-item {
    transition: var(--bs-transition);
    background: var(--bs-card-bg);
    box-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.1);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.news-featured:hover,
.news-item:hover {
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15)
}

.news-featured:hover {
    transform: translateY(-0.25rem);
}

.news-item:hover {
    transform: translateX(0.25rem);
}

.news-image-cover {
    height: 15.625rem;
    object-fit: cover;
}

.news-date-featured {
    width: 90px;
    flex-shrink: 0;
}

.news-excerpt-featured,
.news-excerpt-list {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt-featured {
    -webkit-line-clamp: 2;
}

.news-excerpt-list {
    -webkit-line-clamp: 1;
}

.news-list-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Dark Theme Support - Bootstrap 5 Optimized */
[data-theme="dark"] {
    /* .about-section {
        background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, var(--bs-dark, #212529) 100%);
    } */

    /*.partner-card {
        background: var(--bs-dark, #212529) !important;
        border-color: var(--bs-gray-700, #495057) !important;
        color: var(--bs-light, #f8f9fa) !important;
    }*/

    /* .news-featured,
    .news-item {
        background: var(--bs-gray-800, #343a40) !important;
        color: var(--bs-light, #f8f9fa) !important;
    }

    .news-featured,
    .news-item:hover {
        background: var(--bs-gray-700, #495057) !important;
    } */
}

/* Responsive Design - Products Section */
@media (max-width: 991.98px) {
    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    /* .products-carousel-wrapper .carousel-item {
        padding: 2rem 0;
    } */

    .product-content {
        text-align: center;
        padding: 1rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-actions {
        justify-content: center;
    }

    .products-carousel-wrapper .carousel-control-prev,
    .products-carousel-wrapper .carousel-control-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .product-actions {
        flex-direction: column;
    }
}


/* Partners Section - Bootstrap 5 Optimized */
.partner-card {
    height: 120px;
    transition: var(--bs-transition, all 0.15s ease-in-out);
    border: var(--bs-border-width, 1px) solid var(--bs-border-color, #dee2e6);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* 大屏时每排5个图片 */
@media (min-width: 992px) {
    .partners-section .partner-item {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.partner-logo {
    max-height: 6rem;
    width: auto;
}

/* Global Transitions - Bootstrap 5 Optimized */
.partner-card,
.news-featured,
.news-item {
    transition: var(--bs-transition, all 0.15s ease-in-out);
}

/* Statistics Section - Optimized */
.statistics-section {
    padding: 2rem 0;
}

.stat-card {
    height: 160px;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.stat-card:hover .counter,
.stat-card:hover .suffix,
.stat-card:hover .stat-title {
    color: white !important;
}

.stat-card:hover .stat-icon i {
    color: white !important;
    transform: scale(1.2);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.counter {
    color: #007bff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    transition: color 0.4s ease;
}

.suffix {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.3rem;
    transition: color 0.4s ease;
}

.stat-title {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    /* letter-spacing: 0.6px; */
    margin: 0;
    transition: color 0.4s ease;
}

.stat-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.4s ease;
}

.stat-icon i {
    font-size: 3rem;
    color: white;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 1199.98px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    /* .stat-info {
        margin-bottom: 1rem;
    } */

    .counter {
        font-size: 2.5rem;
    }

    .stat-title {
        font-size: 0.85rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        margin-left: 0;
    }

    .stat-icon i {
        font-size: 2rem;
    }
}

/* Footer Section */
.footer-section {
    background: var(--bs-gray-200);
    border-top: 2px solid var(--bs-gray-300);
}

.footer-link {
    color: var(--bs-gray-700);
    text-decoration: none;
    transition: var(--bs-transition);
}

.footer-link:hover {
    color: var(--bs-primary);
}

/* Dark Theme */
[data-theme="dark"] .footer-section {
    background: var(--bs-gray-800);
    border-top-color: var(--bs-gray-700);
}

[data-theme="dark"] .footer-link {
    color: var(--bs-gray-300);
}