/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2775B7;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar .container {
        padding: 0 15px;
    }

    .logo {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2em;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 80, 162, 0.6);
}

.slide.active {
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #2775B7;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: #f8f9fa;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: #2775B7;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    margin: 0;
}

.product-card p {
    padding: 0 20px 20px;
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 12px 25px;
    background: #2775B7;
    color: white;
    text-decoration: none;
    margin: 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1f5d91;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.contact-details .info-item {
    flex: 1;
}

.contact-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: #333;
}

.contact-map img {
    width: 100%;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-info {
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .contact .container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-qr {
        margin-top: 30px;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.2em;
    }
}

/* Products Page Styles */
.products-hero {
    background: linear-gradient(rgba(30, 80, 162, 0.8), rgba(30, 80, 162, 0.8)),
                url('../images/banner-bg.jpg') center/cover;
    height: 400px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.products-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.products-hero p {
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.products-content {
    padding: 80px 0;
}

.product-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    color: #2775B7;
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2775B7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(39, 117, 183, 0.2);
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.4em;
}

.product-info p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.product-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-feature:before {
    content: '•';
    color: #2775B7;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-categories {
        padding: 0 10px;
    }

    .category-btn {
        margin: 5px;
        font-size: 14px;
        padding: 8px 15px;
    }

    .products-hero {
        height: 40vh;
        min-height: 300px;
    }

    .products-hero h1 {
        font-size: 2em;
    }

    .products-hero p {
        font-size: 1em;
    }

    .product-info h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .products-hero {
        height: 30vh;
        min-height: 250px;
    }

    .products-content {
        padding: 40px 0;
    }
} 