/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #f0f4f8;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --bg-light: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== 导航栏 ===== */
.navbar {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navbar-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== 主推区 ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px;
    gap: 60px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 60px 20px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-image img {
        max-width: 100%;
    }
}

/* ===== 功能介绍 ===== */
.features {
    padding: 100px 20px;
    background-color: var(--secondary-color);
}

.features h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 截图展示 ===== */
.screenshots {
    padding: 100px 20px;
    background-color: var(--bg-light);
}

.screenshots h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.screenshot {
    text-align: center;
}

.screenshot img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.screenshot img:hover {
    transform: scale(1.05);
}

.screenshot h4 {
    font-size: 18px;
    color: var(--text-dark);
}

/* ===== 优势对比 ===== */
.comparison {
    padding: 100px 20px;
    background-color: var(--secondary-color);
}

.comparison h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.comparison-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 600;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: var(--secondary-color);
}

/* ===== 下载部分 ===== */
.download {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download > .container > p {
    font-size: 18px;
    margin-bottom: 50px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 20px 30px;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-4px);
}

.download-btn .icon {
    font-size: 32px;
}

.download-btn .text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-btn .label {
    font-weight: 600;
    font-size: 16px;
}

.download-btn .version {
    font-size: 12px;
    opacity: 0.8;
}

.download-note {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== 用户评价 ===== */
.testimonials {
    padding: 100px 20px;
    background-color: var(--bg-light);
}

.testimonials h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.testimonial {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.testimonial .stars {
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.testimonial .author {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0;
}

/* ===== 联系方式 ===== */
.contact {
    padding: 100px 20px;
    background-color: var(--secondary-color);
    text-align: center;
}

.contact h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact > .container > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    gap: 10px;
}

.contact-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    padding: 12px 32px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== 页脚 ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 20px;
    }

    .navbar-menu a {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        justify-content: center;
        text-align: center;
    }

    .features h2,
    .screenshots h2,
    .comparison h2,
    .download h2,
    .testimonials h2,
    .contact h2 {
        font-size: 32px;
    }

    .contact-form {
        flex-direction: column;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-links a {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        height: auto;
        padding: 15px 0;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    h2 {
        font-size: 24px !important;
    }

    .features-grid,
    .screenshots-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}
