/* downloads.css - 下载页面专用样式 */

/* 页面头部 */
.downloads-header {
    background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.downloads-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-content {
    flex: 1;
}

.page-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.header-illustration {
    flex: 0 0 300px;
    text-align: center;
}

.illustration-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 主内容区 */
.downloads-main {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #D4AF37;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 16px;
}

/* 平台选择区 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.platform-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.platform-card-android:hover {
    border-color: #D4AF37;
}

.platform-card-ios:hover {
    border-color: #1a237e;
}

.platform-card-harmony:hover {
    border-color: #C41E3A;
}

.platform-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.platform-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.platform-card-android .platform-icon-wrapper {
    background: linear-gradient(135deg, #D4AF37, #F4CA16);
    color: white;
}

.platform-card-ios .platform-icon-wrapper {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
}

.platform-card-harmony .platform-icon-wrapper {
    background: linear-gradient(135deg, #C41E3A, #FF5252);
    color: white;
}

.platform-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.platform-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-card-android .platform-tag {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.platform-card-ios .platform-tag {
    background: rgba(26, 35, 126, 0.1);
    color: #1a237e;
}

.platform-card-harmony .platform-tag {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

.platform-body {
    padding: 20px 30px 30px;
}

.platform-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.feature-item i {
    margin-right: 10px;
    font-size: 14px;
}

.platform-card-android .feature-item i {
    color: #D4AF37;
}

.platform-card-ios .feature-item i {
    color: #1a237e;
}

.platform-card-harmony .feature-item i {
    color: #C41E3A;
}

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.version-info {
    display: flex;
    flex-direction: column;
}

.version-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.version-number {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.file-size {
    display: flex;
    align-items: center;
    color: #666;
}

.file-size i {
    margin-right: 8px;
    font-size: 18px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-download i {
    margin-right: 10px;
}

.btn-download-android {
    background: linear-gradient(135deg, #D4AF37, #F4CA16);
    color: white;
}

.btn-download-android:hover {
    background: linear-gradient(135deg, #B8860B, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-download-ios {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
}

.btn-download-ios:hover {
    background: linear-gradient(135deg, #0d1a5c, #1a237e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.btn-download-harmony {
    background: linear-gradient(135deg, #C41E3A, #FF5252);
    color: white;
}

.btn-download-harmony:hover {
    background: linear-gradient(135deg, #a0172e, #C41E3A);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-view-all:hover {
    color: #8B4513;
}

/* 版本历史区 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.platform-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.filter-btn.active {
    background: #8B4513;
    border-color: #8B4513;
    color: white;
}

.versions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.version-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: none;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.version-card[data-platform] {
    display: block;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-badge-android {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.platform-badge-ios {
    background: rgba(26, 35, 126, 0.1);
    color: #1a237e;
}

.platform-badge-harmony {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

.version-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.version {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.latest-badge {
    background: #D4AF37;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.version-body {
    padding: 20px;
}

.version-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.detail-item i {
    color: #8B4513;
    font-size: 14px;
}

.update-notes {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.update-notes h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.update-notes p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.version-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-download-small, .btn-qrcode {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-download-small {
    background: #8B4513;
    color: white;
}

.btn-download-small:hover {
    background: #6B3410;
}

.btn-qrcode {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-qrcode:hover {
    background: #f5f5f5;
    border-color: #8B4513;
    color: #8B4513;
}

/* 系统要求区 */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.requirement-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.requirement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.requirement-icon-android {
    background: linear-gradient(135deg, #D4AF37, #F4CA16);
    color: white;
}

.requirement-icon-ios {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
}

.requirement-icon-harmony {
    background: linear-gradient(135deg, #C41E3A, #FF5252);
    color: white;
}

.requirement-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.requirement-list {
    list-style: none;
    text-align: left;
}

.requirement-list li {
    margin-bottom: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-list i {
    color: #4CAF50;
    font-size: 14px;
}

/* 常见问题区 */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #8B4513;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-answer p {
    padding-bottom: 25px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 二维码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.qrcode-modal.active {
    display: flex;
}

.qrcode-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    margin: 20px 0;
}

.qrcode-container p {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .downloads-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-illustration {
        flex: 0 0 auto;
        max-width: 300px;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .versions-list {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .platform-filter {
        justify-content: center;
    }
}