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

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

.container {
    width: 90%;
    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;
}

.register-btn {
    background-color: #007bff;
    color: white;
    margin-right: 10px;
}

.register-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.download-btn {
    background-color: #28a745;
    color: white;
}

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

.product-btn, .news-btn, .submit-btn {
    background-color: #6c757d;
    color: white;
}

.product-btn:hover, .news-btn:hover, .submit-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* 导航栏 */
header {
    background-color: #1a1a2e;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #007bff;
}

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

.cta-buttons {
    display: flex;
}

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

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

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.products h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1a1a2e;
}

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

.product-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.product-item p {
    margin-bottom: 20px;
    color: #6c757d;
}

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

.news h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1a1a2e;
}

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

.news-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.news-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.news-item p {
    margin-bottom: 20px;
    color: #333;
}

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

.contact h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

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

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

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

.form-group textarea {
    resize: vertical;
}

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

.about h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1a1a2e;
}

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

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

/* 页脚 */
footer {
    background-color: #1a1a2e;
    color: white;
    padding: 50px 0;
}

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

.footer-logo h3 {
    font-size: 20px;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    display: flex;
}

.footer-links ul li {
    margin: 0 15px;
}

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

.footer-links ul li a:hover {
    color: #007bff;
}

.footer-cta {
    display: flex;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin: 20px 0;
    }

    .cta-buttons {
        margin-top: 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .footer-cta {
        margin-top: 20px;
    }

    h2 {
        font-size: 28px !important;
    }
}

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

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

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .product-grid, .news-grid {
        grid-template-columns: 1fr;
    }
}