/* ============================================
   基础样式和重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #4caf50;
    --accent-color: #66bb6a;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a2e;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ============================================
   主横幅
   ============================================ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ============================================
   数据展示
   ============================================ */
.stats {
    padding: 60px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-light);
}

/* ============================================
   功能特性
   ============================================ */
.features {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feature-link:hover {
    gap: 8px;
}

/* ============================================
   版本更新
   ============================================ */
.updates {
    padding: 80px 0;
    background: var(--bg-light);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.update-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.update-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.update-badge {
    background: var(--primary-color);
    color: white;
}

.update-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.update-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.update-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    padding-left: 24px;
    position: relative;
}

.update-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ============================================
   常见问题
   ============================================ */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   下载区域
   ============================================ */
.download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.platform-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.platform-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.2);
}

.platform-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.platform-icon {
    font-size: 48px;
}

.platform-name {
    font-size: 18px;
    font-weight: 600;
}

.platform-size {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   下载页面样式
   ============================================ */
.download-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.download-hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
}

.download-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.download-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.download-section:nth-child(even) {
    background: var(--bg-light);
}

.download-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 300px;
}

.platform-icon-large {
    font-size: 80px;
}

.download-info h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.version-info {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.system-requirements {
    font-size: 14px;
    color: var(--text-lighter);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
}

.btn-size {
    font-size: 14px;
    opacity: 0.8;
}

.download-alternatives {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 14px;
}

.text-link {
    color: var(--primary-color);
}

.text-link:hover {
    text-decoration: underline;
}

.download-features {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.download-features h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.download-features ul {
    list-style: none;
}

.download-features ul li {
    padding: 8px 0;
    color: var(--text-light);
}

/* ============================================
   版本历史
   ============================================ */
.version-history {
    padding: 80px 0;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.version-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.version-item:hover {
    box-shadow: var(--shadow-md);
}

.version-number {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 200px;
}

.version-date {
    font-size: 14px;
    color: var(--text-lighter);
    min-width: 100px;
}

.version-changes {
    flex: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-new {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-improve {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-fix {
    background: #fff3e0;
    color: #f57c00;
}

/* ============================================
   安装指南
   ============================================ */
.install-guide {
    padding: 80px 0;
    background: var(--bg-light);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #888;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .download-content {
        flex-direction: column;
        text-align: center;
    }

    .download-info {
        justify-content: center;
    }

    .download-buttons {
        width: 100%;
    }

    .version-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .version-number,
    .version-date {
        min-width: auto;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stat-number {
        font-size: 32px;
    }

    .platform-btn {
        padding: 24px 16px;
    }

    .platform-icon {
        font-size: 40px;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   滚动条样式
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
