/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: white;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 30px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6700;
}

.nav-right a {
    margin-left: 20px;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-right a:hover {
    color: #ff6700;
}

/* 轮播图 */
.banner {
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

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

.banner-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.banner-caption h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.banner-caption p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* 轮播点 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6700;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #e55500;
    transform: translateY(-2px);
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    }

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 20px;
    font-size: 1.3em;
}

.price {
    padding: 0 20px 10px;
    color: #ff6700;
    font-weight: bold;
    font-size: 1.2em;
}

.product-card .btn {
    margin: 20px;
    text-align: center;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f5f5f5;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

#formResult {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

#formResult.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#formResult.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 20px;
}

.social a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.social a:hover {
    color: #ff6700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        height: 400px;
    }
    
    .banner-caption h2 {
        font-size: 2em;
    }
    
    .banner-caption p {
        font-size: 1.2em;
    }
    
    .nav-left {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin: 10px 0;
    }
    
    nav {
        margin: 10px 0;
    }
    
    nav a {
        margin: 0 10px;
    }
}