/* Custom CSS Variables */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

    .top-bar a {
        color: white;
        text-decoration: none;
        margin: 0 0.5rem;
    }

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 50px;
        outline: none;
    }

        .search-box input:focus {
            border-color: var(--primary-color);
        }

    .search-box button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary-color);
        border: none;
        color: white;
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d3a4a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    color: white;
}

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.hero-image {
    position: relative;
}

    .hero-image img {
        width: 100%;
        max-width: 500px;
        animation: float 3s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

    .btn-primary-custom:hover {
        background-color: #e55a2b;
        border-color: #e55a2b;
    }

.btn-outline-light-custom {
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

    .btn-outline-light-custom:hover {
        background-color: white;
        color: var(--dark-color);
    }

/* Banner Cards */
.banner-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

    .banner-card img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .banner-card h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .banner-card p {
        color: #6c757d;
        margin-bottom: 1rem;
    }

/* Services Section */
.services-section {
    padding: 3rem 0;
    background-color: white;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 0px;
    background: var(--light-bg);
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6c757d;
    margin: 0;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.category-card {
    text-align: center;
    padding: 0 0 12px;
    background: white;
    border-radius: 0px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        background: #ffc928;
    }

        .category-card:hover h6 {
            color: #fff;
        }

    .category-card.select {
        transform: translateY(0px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        background: #ffc928;
    }

        .category-card.select h6 {
            color: #fff;
        }

.category-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 0;
    transition: transform 0.3s ease;
}

    .category-icon-wrapper svg {
        width: 100%;
        height: 100%;
    }

.category-card:hover .category-icon-wrapper {
    transform: scale(1.1);
}

.category-card h6 {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Products Grid */
.products-section {
    padding: 4rem 0;
}

.product-card {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.best-sellers-layout .product-card {
    margin-bottom: 0px;
}

    .best-sellers-layout .product-card .product-info {
        padding: 10px;
    }

        .best-sellers-layout .product-card .product-info p {
            margin-bottom: 0px;
        }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    display:flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    bottom: -72px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    background: var(--dark-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-actions button:hover {
        background: var(--primary-color);
    }

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /*! autoprefixer: off */
    -webkit-box-orient: vertical;
    /* autoprefixer: on */
    overflow: hidden;
    min-height:calc(3 * 1.2rem);
}

    .product-title a {
        text-decoration: none;
        color: var(--dark-color);
    }

        .product-title a:hover {
            color: var(--primary-color);
        }

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

    .product-price .old-price {
        text-decoration: line-through;
        color: #999;
        font-weight: 400;
        font-size: 0.875rem;
        margin-left: 0.5rem;
    }

/* Best Deal Section */
.best-deal-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0066b2 100%);
    color: white;
}

.deal-card {
    background: rgba(255,255,255,0.1);
    border-radius: 0px;
    padding: 0px;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

    .deal-card img {
        width: 100%;
        max-width: 600px;
        margin-bottom: 0px;
    }

.deal-badge {
    background: var(--primary-color);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.cta-card {
    background: white;
    border-radius: 0px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.cta-image img {
    width: 100%;
    max-width: 400px;
}

/* Best Sellers Section */
.bestsellers-section {
    padding: 4rem 0;
}

.bestseller-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

    .bestseller-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.bestseller-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

    .bestseller-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bestseller-info {
    padding: 1rem;
}

.bestseller-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.bestseller-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* Clients Section */
.clients-section {
    padding: 3rem 0;
    background: var(--light-bg);
}

.client-logo {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
}

    .client-logo:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .client-logo img {
        max-width: 100%;
        max-height: 60px;
        object-fit: contain;
    }

/* Footer */
.footer {
    background-color: #1b2748;
    color: white;
    padding: 4rem 0 0rem;
}

    .footer h5 {
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: white;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

    .newsletter-form input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 50px;
        outline: none;
    }

    .newsletter-form button {
        background: var(--primary-color);
        border: none;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
    }

/* Tabs */
.custom-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

    .custom-tabs .nav-link {
        border: none;
        padding: 1rem 2rem;
        font-weight: 600;
        color: #6c757d !important;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
    }

        .custom-tabs .nav-link.active {
            color: var(--primary-color) !important;
            border-bottom-color: var(--primary-color);
        }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .search-box {
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-section {
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none;
    }

    .hero-content {
        text-align: center;
        padding: 1rem;
    }

        .hero-content h1 {
            font-size: 1.75rem;
        }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

        .hero-buttons .btn {
            width: 100%;
        }

    .banner-card {
        margin-bottom: 1rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .custom-tabs {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

        .custom-tabs .nav-link {
            padding: 0.75rem 1rem;
        }

    .newsletter-form {
        flex-direction: column;
    }

    .deal-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .footer {
        padding: 2rem 0 4rem;
    }
}

/* Utility Classes */
.mb-6 {
    margin-bottom: 4rem;
}

.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}
