﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #1890ff;
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区样式 */
.hero {
    margin-top: 80px;
    background: linear-gradient(rgba(24, 144, 255, 0.8), rgba(0, 0, 0, 0.05)), url('/images/banner.jpg') center/cover no-repeat;
    color: white;
    padding: 150px 0;
    text-align: center;
    background-attachment: fixed;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #1890ff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 产品介绍样式 */
.products {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.contact .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1890ff;
}

.product-card p {
    color: #666;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.about-text {
    flex: 1.2;
    min-width: 300px;
    order: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1890ff;
}

.about-image {
    flex: 1;
    min-width: 300px;
    order: 2;
    text-align: right;
    margin-right: 0;
    padding-right: 0;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    margin-right: 0;
    display: block;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* 联系方式样式 */
.contact {
    padding: 100px 0;
    background: linear-gradient(rgba(24, 144, 255, 0.85), rgba(0, 0, 0, 0.05)), url('/images/lianxi.png') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: center;
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 2.5rem 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-card h3 {
        font-size: 20px;
    }
}