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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 15px 0;
}

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

.logo a {
    color: #2c3e50;
    text-decoration: none;
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* 响应式导航 */
@media (max-width: 768px) {
    nav .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

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

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

.btn-primary {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #3498db;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 200px;
    }
}

/* 功能区域样式 */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.features h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
}

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

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

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

/* 下载区域样式 */
.download {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.download h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.download p {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.download-guide {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-guide h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.download-guide ol {
    padding-left: 20px;
}

.download-guide li {
    margin-bottom: 10px;
}

/* 检查结果区域样式 */
.results {
    padding: 100px 0;
    background-color: #fff;
}

.results h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.results p {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.result-item .btn-secondary {
    margin-top: 20px;
    color: #3498db;
    border-color: #3498db;
}

.result-item .btn-secondary:hover {
    background-color: #3498db;
    color: #fff;
}

/* 开源项目区域样式 */
.opensource {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.opensource h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
}

.opensource-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.opensource-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.opensource-content h4 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #3498db;
}

.opensource-features ul {
    padding-left: 20px;
}

.opensource-features li {
    margin-bottom: 10px;
}

.opensource-download {
    margin-top: 30px;
}

.opensource-download .btn-primary,
.opensource-download .btn-secondary {
    margin-top: 10px;
}

.opensource-download .btn-secondary {
    color: #2c3e50;
    border-color: #2c3e50;
}

.opensource-download .btn-secondary:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* 联系我们区域样式 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact p {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features,
    .download,
    .results,
    .opensource,
    .contact {
        padding: 80px 0;
    }

    .features h2,
    .download h2,
    .results h2,
    .opensource h2,
    .contact h2 {
        font-size: 28px;
    }

    .feature-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .download-form,
    .opensource-content,
    .contact-form {
        padding: 30px;
    }
}

/* 滚动效果 */
html {
    scroll-behavior: smooth;
}

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

.feature-item,
.result-item {
    animation: fadeIn 0.6s ease forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.result-item:nth-child(1) {
    animation-delay: 0.1s;
}

.result-item:nth-child(2) {
    animation-delay: 0.2s;
}

.result-item:nth-child(3) {
    animation-delay: 0.3s;
}