/* ===== 下载页专属样式 ===== */
/* 沿用首页的基础变量和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部导航（与首页完全一致） ===== */
.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

/* ===== Hero 区域 ===== */
.download-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    padding: 60px 0 40px;
}

.download-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero-text h1 span {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: white;
}

.badge-stable { color: #166534; border-color: #86efac; background: #f0fdf4; }
.badge-beta { color: #854d0e; border-color: #fde047; background: #fefce8; }
.badge-dev { color: #991b1b; border-color: #fecaca; background: #fef2f2; }

.hero-visual .visual-box {
    width: 180px;
    height: 160px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
}

.visual-emoji {
    font-size: 3rem;
}

.visual-platforms {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== 下载卡片网格 ===== */
.download-cards {
    padding: 48px 0 32px;
    background: white;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.dl-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    position: relative;
}

.dl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.08);
    border-color: #93c5fd;
}

.dl-card-soon {
    opacity: 0.85;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 2rem;
}

.card-head h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.version-tag {
    margin-left: auto;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.version-tag.soon {
    background: #f1f5f9;
    color: #64748b;
}

.card-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 18px;
    flex: 1;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-dl {
    background: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37,99,235,0.2);
}

.btn-dl:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-dl-outline {
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-dl-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-dl-disabled {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: not-allowed;
}

.card-meta {
    list-style: none;
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
}

.soon-note {
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}

/* ===== 版本系统说明 ===== */
.version-system {
    padding: 48px 0;
    background: #f1f5f9;
}

.section-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0f172a;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.version-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.1);
}

.v-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.version-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.version-card p {
    color: #475569;
    font-size: 0.9rem;
}

/* ===== 更新日志 ===== */
.changelog {
    padding: 48px 0;
    background: white;
}

.log-list {
    max-width: 800px;
    margin: 0 auto 24px;
}

.log-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.95rem;
}

.log-date {
    color: #64748b;
    white-space: nowrap;
    min-width: 90px;
}

.log-ver {
    font-weight: 700;
    color: #1e40af;
    min-width: 130px;
}

.log-text {
    color: #334155;
}

.text-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
}

.text-link:hover {
    text-decoration: underline;
}

/* ===== 快速安装指南 ===== */
.quick-install {
    padding: 48px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.install-steps {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.step p {
    color: #475569;
    font-size: 0.9rem;
}

.install-more {
    text-align: center;
    color: #64748b;
}

.install-more a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.install-more a:hover {
    text-decoration: underline;
}

/* ===== 安装常见问题 ===== */
.install-faq {
    padding: 48px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.faq-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.faq-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

/* ===== 底部 CTA 再次下载 ===== */
.cta-download-again {
    padding: 48px 0;
    background: #0f172a;
    color: white;
}

.cta-box {
    text-align: center;
    background: #1e293b;
    border-radius: 32px;
    padding: 40px 20px;
    border: 1px solid #334155;
}

.cta-line {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-sub {
    color: #cbd5e1;
    margin-bottom: 28px;
}

.btn-cta-big {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-weight: 700;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 10px 20px -8px rgba(37,99,235,0.5);
}

.btn-cta-big:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
/* 更新日志底部的链接居中 */
.changelog .container {
    text-align: center;
}

/* 安装常见问题底部的链接居中 */
.install-faq .container {
    text-align: center;
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 32px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.8rem;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .download-hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .log-item {
        flex-direction: column;
        gap: 4px;
    }
}