/* 全局样式 */
:root {
    --primary-color: #02B802;
    --primary-hover: #029802;
    --primary-light: #e6f7e6;
    --primary-dark: #018001;
    --text-on-primary: #ffffff;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --light-background: #f5f6fa;
    --border-color: #e1e1e1;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* 导航栏 */
.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
}

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

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

.nav-links a:hover {
    color: var(--primary-color);
}

/* 英雄区域 */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 184, 2, 0.2);
}

/* 功能特点 */
.features {
    padding: 80px 0;
    background-color: var(--light-background);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

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

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* FAQ部分 */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

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

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(2, 184, 2, 0.1);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background-color: var(--light-background);
    text-align: center;
}

.download h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

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

.download-button {
    transition: transform 0.3s ease;
}

.download-button:hover {
    transform: scale(1.05);
}

.download-button img {
    height: 50px;
}

/* 页脚 */
.main-footer {
    background-color: #f8f9fa;
    color: white;
    padding: 80px 0 20px;
    border-top: 1px solid #eee;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

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

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

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links img:hover {
    opacity: 1;
}

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

/* RTL支持 */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .main-nav .container {
        height: 60px;
    }

    .logo img {
        height: 30px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links a:hover {
        color: var(--primary-color);
    }
}

/* 打印样式 */
@media print {
    .main-nav,
    .download,
    .social-links {
        display: none;
    }

    .hero {
        padding: 40px 0;
        background: none;
        color: var(--text-color);
    }

    .features,
    .faq {
        padding: 40px 0;
    }

    .feature-card,
    .faq-item {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

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

.hero h1 {
    animation: fadeIn 1s ease-out;
}

.hero p {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero .cta-button {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* 语言选择器样式 */
.language-button:hover {
    border-color: var(--primary-color);
}

.language-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.language-option:hover {
    background: var(--primary-light);
} 