/* 下载页面专用样式 */

/* Download Hero */
.download-hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #0078d4, #00b7ff);
    color: white;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.download-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.download-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.download-stats .stat-item {
    text-align: center;
}

.download-stats .stat-number {
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.download-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Platform Cards */
.platforms-section {
    padding: 40px 0;
}

.platform-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 120, 212, 0.2);
    border-color: #0078d4;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.platform-icon.windows {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
}

.platform-icon.macos {
    background: linear-gradient(135deg, #333, #666);
}

.platform-icon.android {
    background: linear-gradient(135deg, #3ddc84, #34a853);
}

.platform-icon.ios {
    background: linear-gradient(135deg, #007aff, #5856d6);
}

.platform-header h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.platform-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.platform-stats span {
    background: #f0f7ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.platform-stats .version {
    color: #0078d4;
    background: #e6f2ff;
}

.platform-stats .size {
    color: #666;
    background: #f5f5f5;
}

.platform-stats .users {
    color: #28a745;
    background: #e6ffed;
}

/* Platform Content */
.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.platform-features h4 {
    color: #0078d4;
    margin-bottom: 15px;
    font-size: 18px;
}

.platform-features ul {
    list-style: none;
}

.platform-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-features li:last-child {
    border-bottom: none;
}

.platform-features i {
    color: #0078d4;
}

.platform-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6f2ff;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #0078d4;
    font-weight: 600;
}

/* Download Buttons */
.download-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.download-btn.windows {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
    color: white;
}

.download-btn.macos {
    background: linear-gradient(135deg, #333, #666);
    color: white;
}

.download-btn.android {
    background: linear-gradient(135deg, #3ddc84, #34a853);
    color: white;
}

.download-btn.ios {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
}

.download-btn.alternative {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Download Tips */
.tips-section {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0078d4, #00b7ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.tip-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.tip-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.tip-card a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
}

.tip-card a:hover {
    text-decoration: underline;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #0078d4;
}

.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.modal-message {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

.modal-progress {
    height: 6px;
    background: #e6f2ff;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #0078d4, #00b7ff);
    width: 0%;
    transition: width 0.3s;
}

.modal-details {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
    color: #666;
}

.modal-close {
    padding: 12px 30px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #005fa3;
}

/* 下载动画 */
@keyframes downloadPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 120, 212, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
    }
}

.downloading {
    animation: downloadPulse 1s infinite;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .platform-content {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-hero h1 {
        font-size: 36px;
    }
    
    .download-hero p {
        font-size: 18px;
    }
    
    .platform-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .platform-stats {
        justify-content: center;
    }
    
    .download-stats {
        gap: 20px;
    }
    
    .download-stats .stat-number {
        font-size: 32px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .platform-card {
        padding: 20px;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .platform-header h3 {
        font-size: 24px;
    }
    
    .download-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* 平台卡片进入动画 */
.platform-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
}

.platform-card:nth-child(1) { animation-delay: 0.1s; }
.platform-card:nth-child(2) { animation-delay: 0.2s; }
.platform-card:nth-child(3) { animation-delay: 0.3s; }
.platform-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0078d4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator:hover {
    background: #005fa3;
}