/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
}

.btn-link {
    color: #2196F3;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0b7dda;
}

.btn.large {
    padding: 15px 30px;
    font-size: 18px;
}

/* 导航栏 */
.navbar {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4CAF50;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #4CAF50;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 产品中心 */
.products {
    padding: 80px 0;
    background-color: white;
}

.products h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.product-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-card p {
    margin-bottom: 20px;
    color: #666;
}

/* 新闻资讯 */
.news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.news h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.news-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.news-card p {
    margin-bottom: 20px;
    color: #666;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 底部 */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .products h2,
    .news h2,
    .contact h2,
    .about h2 {
        font-size: 28px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.products,
.news,
.contact,
.about {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}