/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #6366f1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== 语言切换按钮 ==================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--bg-white);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* ==================== Hero 区域 ==================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #ffffff 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.title-line {
    display: block;
    color: var(--text);
}

.title-accent {
    display: block;
    color: var(--primary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.8;
}

/* ==================== 下载区域 ==================== */
.download-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.download-icon {
    width: 20px;
    height: 20px;
}

.version-badge {
    padding: 12px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== 特性标签 ==================== */
.features-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 400;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

/* ==================== 功能卡片 ==================== */
.features {
    padding: 120px 0;
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

/* ==================== 安装教程 ==================== */
.installation {
    padding: 120px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 400;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.steps-container.two-steps {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.step-card.highlight {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-color: var(--primary);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-image {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-substeps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.substep {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.substep:hover {
    border-color: var(--primary);
    background: #fafbff;
}

.substep.important {
    background: #fff4e6;
    border-color: #ffa500;
}

.substep.important:hover {
    background: #ffe8cc;
}

.substep-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.substep.important .substep-number {
    background: #ffa500;
}

.substep-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    padding-top: 6px;
}

.substep-text code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.substep-text strong {
    color: var(--text);
    font-weight: 600;
}

.tips-section {
    max-width: 800px;
    margin: 0 auto;
}

.tip-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 24px;
}

.tip-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.tip-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-content li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.tip-content li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

.tip-content li strong {
    color: var(--text);
    font-weight: 600;
}

/* ==================== Footer ==================== */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}

.footer p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 4px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

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

    .download-section {
        flex-direction: column;
        gap: 16px;
        justify-content: center;
    }

    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-list {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    .tip-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .tip-icon {
        font-size: 36px;
    }

    .container {
        padding: 0 20px;
    }
}

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

.badge,
.hero-title,
.hero-description,
.download-section,
.features-list {
    animation: fadeIn 0.8s ease-out;
}

.hero-title { animation-delay: 0.1s; }
.hero-description { animation-delay: 0.2s; }
.download-section { animation-delay: 0.3s; }
.features-list { animation-delay: 0.4s; }

.feature-card:nth-child(1) { animation: fadeIn 0.6s ease-out 0.5s both; }
.feature-card:nth-child(2) { animation: fadeIn 0.6s ease-out 0.6s both; }
.feature-card:nth-child(3) { animation: fadeIn 0.6s ease-out 0.7s both; }

.step-card:nth-child(1) { animation: fadeIn 0.6s ease-out 0.8s both; }
.step-card:nth-child(2) { animation: fadeIn 0.6s ease-out 0.9s both; }
.step-card:nth-child(3) { animation: fadeIn 0.6s ease-out 1.0s both; }

.tip-card { animation: fadeIn 0.6s ease-out 1.1s both; }

/* ==================== 平滑滚动 ==================== */
html {
    scroll-behavior: smooth;
}
