/* Modern Home Page Styles - Professional B2B Design */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Slider Section - Replaces Hero */
.hero-slider-section {
    position: relative;
    /* height: 100vh;
    min-height: 600px; */
    overflow: hidden;
    margin-bottom: 0;
    background: #f8f9fa;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title.animate {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.6;
    transform: translateY(40px);
}

.hero-subtitle.animate {
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
}

.hero-buttons.animate {
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: #4f46e5;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

/* Features Section - Single Block Design */
.features-section {
    background: #f8f9fa;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, transparent);
}

.features-block {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.features-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
}

.features-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Features响应式布局 */
@media (max-width: 1024px) {
    .features-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-content {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.feature-text p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

/* Banner Section */
.banner-section {
    padding: 4rem 0;
    background: white;
}

/* Hero Slider Styles */
.hero-slider-section {
    height: 100vh; /* Set to full viewport height */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider-section .banner-slider,
.hero-slider-section .swiper,
.hero-slider-section .swiper-slide {
    height: 100%;
}

.hero-slider-section .banner-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* This ensures the image covers the full screen */
    object-position: center;
}

.hero-slider-section .banner-slider .swiper {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.hero-slider-section .banner-slider .swiper-slide {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-slider-section .banner-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-section .banner-slider .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.hero-slider-section .banner-slider .swiper-slide-active .slide-content {
    transform: translateY(0);
}

.hero-slider-section .banner-slider .slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider-section .banner-slider .slide-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Regular Banner Slider */
.banner-slider {
    /* max-width: 1000px;
    margin: 0 auto; */
}

.banner-slider .swiper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.banner-slider .swiper-slide {
    position: relative;
    height: 450px;
}

.banner-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slider .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.banner-slider .swiper-slide-active .slide-content {
    transform: translateY(0);
}

.banner-slider .slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.banner-slider .slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Company Introduction */
.company-intro {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.intro-text.animate .section-title {
    opacity: 1;
    transform: translateX(0);
}

.intro-text .section-subtitle {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 2rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease 0.2s;
}

.intro-text.animate .section-subtitle {
    opacity: 1;
    transform: translateX(0);
}

.intro-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease 0.4s;
}

.intro-text.animate .intro-description p {
    opacity: 1;
    transform: translateX(0);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.intro-text.animate .intro-stats {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.intro-image {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease 0.8s;
}

.intro-content.animate .intro-image {
    opacity: 1;
    transform: translateX(0);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Products Showcase Section */
.products-showcase-section {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.section-header .section-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-showcase {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.products-showcase.animate {
    opacity: 1;
    transform: translateY(0);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.showcase-title {
    font-size: 2rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.showcase-title i {
    color: #007bff;
}

.view-all {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-all:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 产品网格响应式优化 */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.product-card.animate {
    animation: fadeInUp 0.1s ease forwards;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    /* background: rgba(0, 0, 0, 0.7); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007bff;
}

.product-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4f46e5;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.why-choose-us .section-header {
    text-align: center;
    border-bottom: none;
    margin-bottom: 3rem;
}

.why-choose-us .section-title {
    color: white;
}

.why-choose-us .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Why Choose Us响应式布局 */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.reason-item {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reason-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.reason-item:hover::before {
    left: 100%;
}

.reason-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.reason-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.reason-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.reason-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-feature i {
    color: #28a745;
    font-size: 1.3rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-buttons .btn {
    justify-content: center;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .showcase-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-features {
        justify-content: center;
    }

    .features-block {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .feature-item,
    .reason-item {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .features-block {
        padding: 1.5rem;
    }
}