/* ===== 全局变量 ===== */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent-color: #06b6d4;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* 下载页Hero区域 - 现代化设计 */
.download-hero {
    padding: 150px 0 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 50%,
        rgba(217, 70, 239, 0.1) 100%);
    transform: skewY(-5deg);
    transform-origin: top left;
}

.hero-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.hero-header h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.download-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    background: var(--gradient-main);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* 主要下载区域 - 现代化网格布局 */
.download-main {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.download-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}



.download-platforms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.platform-card-grid {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.platform-card-grid:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3),
                0 0 100px rgba(99, 102, 241, 0.1);
}

.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-main);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.platform-badge.trending {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
}

.platform-icon-grid {
    font-size: 64px;
    margin: 20px 0 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card-grid h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    min-height: 40px;
}

.platform-specs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.spec-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.platform-icon {
    font-size: 64px;
}

.platform-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.platform-header p {
    color: var(--text-secondary);
    font-size: 17px;
}

.download-info {
    background: var(--bg-card-hover);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.info-row:hover {
    background: rgba(99, 102, 241, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 8px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-row span:last-child {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 15px;
}

.btn-download-grid {
    display: block;
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-download-grid:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.btn-download-grid.ios {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-download-grid.ios:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-download-grid:hover .btn-icon {
    transform: translateY(3px);
}

.mobile-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-mobile-grid {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-mobile-grid.secondary {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-mobile-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.platform-tips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tip-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.btn-arrow {
    font-size: 24px;
}

.download-tips {
    text-align: left;
}

.download-tips p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card-hover);
    border: 1px solid var(--glass-border);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.store-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.qr-section {
    margin-top: 20px;
    text-align: center;
}

.qr-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.qr-code-grid {
    width: 120px;
    height: 120px;
    background: var(--bg-card-hover);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-pattern {
    width: 80px;
    height: 80px;
    background: 
        repeating-linear-gradient(45deg, 
            var(--primary-light) 0, 
            var(--primary-light) 4px, 
            transparent 4px, 
            transparent 8px);
    border-radius: 8px;
    animation: qrScan 4s ease-in-out infinite;
}

@keyframes qrScan {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 历史版本 */
.version-history {
    padding: 100px 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.version-history .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.version-list {
    max-width: 900px;
    margin: 0 auto;
}

.version-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    transition: all 0.3s;
}

.version-item:hover {
    transform: translateX(8px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.version-number {
    background: var(--gradient-main);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.version-date {
    color: var(--text-secondary);
    font-size: 15px;
}

.version-desc {
    flex: 1;
    color: var(--text-secondary);
    font-size: 16px;
}

.btn-small-download {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-small-download:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

.btn-show-more {
    display: block;
    margin: 40px auto 0;
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--glass-border);
    padding: 14px 36px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-show-more:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* 安装教程 */
.install-guide {
    padding: 100px 0;
    background: var(--bg-dark);
}

.install-guide .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.guide-steps {
    max-width: 950px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    margin-bottom: 50px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* 下载问题FAQ */
.download-faq {
    padding: 100px 0;
    background: var(--bg-card);
}

.download-faq .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item-download {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.faq-item-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-main);
    transition: height 0.3s;
}

.faq-item-download:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-light);
}

.faq-item-download:hover::before {
    height: 100%;
}

.faq-item-download h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.faq-item-download p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .download-hero {
        padding: 140px 0 70px;
    }

    .download-hero h1 {
        font-size: 36px;
    }

    .download-subtitle {
        font-size: 17px;
    }

    .download-badges {
        flex-wrap: wrap;
    }

    .platform-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .platform-card {
        padding: 40px 30px;
    }

    .platform-icon {
        font-size: 48px;
    }

    .platform-header h2 {
        font-size: 24px;
    }

    .version-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-small-download {
        align-self: flex-start;
    }

    .step {
        gap: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}
