/* 下载页面样式 */
.download-header {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #faf5ff 100%);
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

/* 平台选择标签 */
.download-platforms {
    padding: 60px 0;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 18px 35px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg);
}

.tab-icon {
    font-size: 24px;
}

/* 平台内容 */
.platform-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.platform-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 平台信息 */
.platform-info {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.platform-icon.large {
    font-size: 64px;
}

.platform-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.platform-version {
    color: var(--text-secondary);
    font-size: 16px;
}

.platform-requirements {
    margin-bottom: 30px;
}

.platform-requirements h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.platform-requirements ul {
    list-style: none;
    padding-left: 0;
}

.platform-requirements li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.platform-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* 下载按钮 */
.download-buttons {
    margin-bottom: 30px;
}

.download-btn.large {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    text-decoration: none;
}

.download-btn.large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.download-btn.appstore {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.download-btn .btn-icon {
    font-size: 32px;
}

.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-text {
    font-size: 18px;
    line-height: 1.3;
}

.btn-size {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.mirror-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.mirror-link:hover {
    text-decoration: underline;
}

/* 更新说明 */
.release-notes {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 14px;
}

.release-notes h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.release-notes ul {
    list-style: none;
    padding-left: 0;
}

.release-notes li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
}

.release-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 平台预览 */
.platform-preview {
    display: flex;
    justify-content: center;
}

.preview-window {
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.preview-window.mac-style {
    border-radius: 18px;
}

.preview-window.mobile {
    border-radius: 35px;
    max-width: 320px;
}

.preview-window.ios-style {
    border-radius: 40px;
}

.preview-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    display: flex;
    gap: 8px;
}

.preview-content {
    padding: 40px 25px;
}

.preview-ui {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 30px;
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.preview-stats {
    display: flex;
    justify-content: space-between;
}

.preview-stats .stat {
    text-align: center;
}

.preview-stats .stat-label {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 8px;
}

.preview-stats .stat-value {
    display: block;
    color: #22c55e;
    font-size: 24px;
    font-weight: 700;
}

/* 下载帮助 */
.download-help {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.help-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.help-item {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.help-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.help-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.help-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-header {
        padding: 120px 0 60px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .platform-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
        margin: 0 -20px 40px;
    }

    .tab-btn {
        flex-shrink: 0;
        padding: 14px 25px;
    }

    .download-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .platform-preview {
        order: -1;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .platform-info {
        padding: 25px 20px;
    }

    .platform-icon.large {
        font-size: 48px;
    }

    .platform-header h2 {
        font-size: 22px;
    }

    .download-btn.large {
        padding: 16px 20px;
    }

    .download-btn .btn-icon {
        font-size: 24px;
    }

    .preview-content {
        padding: 30px 20px;
    }

    .preview-ui {
        padding: 20px;
    }
}
