/* Banner */
.banner {
    height: 800px; /* 增加高度以适应大图 */
    /* background: url('../images/home/首页banner.png') no-repeat center center; */
    /* background-size: cover; */
    background: #000; /* Fallback for particle effect */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*padding-top: 80px;  给 fixed header 留出空间，防止内容被遮挡 */
    position: relative;
    overflow: hidden;
}

.banner h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 20px;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px; /* Reduced gap */

}

.about-text {
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text .about-title {
    font-size: 22px; /* Slightly smaller */
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
    position: relative;
    padding-bottom: 12px;
}

.about-text .about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px; /* Smaller underline */
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}


.about-media {
    flex: 0 0 400px; /* Reduced further from 450px to 400px */
    height: 400px;   /* Square 400x400 */
    position: relative;
    min-width: 0;
}

.about-media-box {
    width: 100%;
    height: 100%;
    /* background removed here, handled by child */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* box-shadow removed as requested */
}

/* Background Layer */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* Blur effect */
    transform: scale(1.1); /* Zoom in to hide blurred edges */
    z-index: 1;
}

/* Overlay Layer */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Semi-transparent dark overlay */
    z-index: 2;
}

/* Video Play Button */
.play-btn {
    width: 60px; /* Smaller button */
    height: 60px;
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); /* Frosted glass effect on button itself */
    z-index: 3; /* Ensure button is on top */
    position: relative;
    /* box-shadow removed */
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    /* box-shadow removed */
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 5px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* More transparent */
    backdrop-filter: blur(15px); /* Blur the background content */
    z-index: 9999;
    display: none; /* Flex when active */
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    width: 80%;
    max-width: 900px;
    background: transparent; /* Transparent background */
    position: relative;
    border-radius: 8px;
    box-shadow: none; /* Removed shadow */
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
}

.video-wrapper {
    width: 100%;
    display: flex;
}

/* Stats Section - Reverting to Center alignment with vertical dividers */
.stats {
    display: flex;
    margin-top: 25px;
    justify-content: space-between;
    text-align: center; /* Center align */
    gap: 0; /* No gap between items (dividers handle spacing visually) */
    background: #fff;
    border-radius: 8px; /* Smaller radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px 0; /* Reduced padding */
    border: 1px solid #eee;
}

.stat-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Vertical divider logic restored */
.stat-item:not(:last-child)::after {
    /* content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: #eee; */
}

.stat-item h3 {
    font-size: 36px; /* Smaller number */
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.2;
}

.stat-item p {
    font-size: 13px; /* Smaller label */
    color: #666; /* Gray text again */
    font-weight: normal;
    margin-top: 0;
}

/* Products Section */
.product-section {
    background: url('/images/home/产品介绍背景.png') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
}

.product-layout {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Keep height consistent */
}

.product-menu {
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from space-between to avoid stretching */
    gap: 15px;
    max-height: 645px;
    overflow-y: auto;
    /* padding: 20px; */
    padding-left: 15px;
    padding-top: 15px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.product-menu::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}



.product-item {
    background: #fff;
    padding: 0 25px; /* Adjust padding to be vertical centered via flex */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto; /* Changed from flex: 1 */
    height: 150px; /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    margin-top: 0; /* Clear margin */
}

.product-item p {
    font-size: 14px;
    color: #999;
    margin: 0;
    transition: color 0.3s;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-item.active {
    background-color: rgba(0, 0, 0, 0);
    background-image: url('/images/home/产品介绍-选中背景.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    border: none;
    background-size: 130%;
    transform: translate(-10px, -10px);
    box-shadow: 10px 10px rgba(0,86,179,0.3); /* Add shadow under floating item */
}

.product-item.active h3 {
    color: #fff;
}

.product-item.active p {
    color: rgba(255,255,255,0.8);
}

.product-display {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding-top: 20px;
    max-height: 645px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.product-display::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

.product-img-box {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(120deg, #4facfe 0%, #00f2fe 100%); 
    position: relative;
}

.product-detail-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}

.product-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
}

.product-detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 2;
    text-align: justify;
}

/* Partners */
.partner-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.partner-scroll-row {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.partner-scroll-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.partner-item {
    background: #fff;
    padding: 10px;
    height: 120px;
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-right: 20px; /* Add margin for spacing between items in marquee */
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Marquee Animations */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.scroll-left .partner-scroll-track {
    animation: scroll-left 40s linear infinite;
}

.scroll-right .partner-scroll-track {
    animation: scroll-right 40s linear infinite;
}

.partner-scroll-row:hover .partner-scroll-track {
    animation-play-state: paused;
}

.partner-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 10;
    pointer-events: none; /* 允许点击下层元素 */
}

.partner-mask.left {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.partner-mask.right {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img {
    height: 200px;
    background: #ddd;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-body {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
}


/* Responsive Design */
@media (max-width: 992px) {
    .banner {
        height: 300px;
        padding-top: 60px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 16px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .about-media {
        flex: auto;
        width: 100%;
        height: 300px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .product-layout {
        flex-direction: column;
    }
    
    .product-menu {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 10px;
        margin-bottom: 20px;
        /* Hide scrollbar for Chrome/Safari/Opera */
        -webkit-overflow-scrolling: touch;
    }
    
    .product-menu::-webkit-scrollbar {
        display: none;
    }
    
    .product-item {
        min-width: 140px;
        flex: 0 0 auto; /* Don't grow, don't shrink */
        padding: 15px 20px;
        background: #f5f5f5;
        border-radius: 10px; /* Slightly rounded, matching PC style */
        text-align: center;
        box-shadow: none;
        height: auto;
        display: block; /* Override flex */
    }
    
    .product-item h3 {
        font-size: 16px;
        margin: 0;
        white-space: nowrap;
    }
    
    .product-item p {
        display: none; /* Hide description in tab mode */
    }
    
    .product-item:hover {
        transform: none;
    }
    
    .product-item.active {
        background-color: transparent;
        background-image: url('/images/home/产品介绍-选中背景.png');
        background-size: cover;
        background-position: center;
        background-size: 120%;
        color: #fff;
        transform: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .product-item.active h3 {
        color: #fff;
    }
    
    .product-display {
        padding: 20px;
        height: auto;
    }
    
    .product-detail-title {
        font-size: 22px;
    }
    
    .product-img-box {
        height: 180px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    

    
    .section {
        padding: 40px 0;
    }
}
