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

/* 页面英雄区域 */
.download-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #3a86ff 0%, #2667cc 100%);
    color: white;
    text-align: center;
}

.download-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.download-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* 下载区域通用样式 */
.download-section {
    padding: 80px 0;
}

.download-section:nth-child(even) {
    background-color: #f5f9ff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 桌面客户端卡片 */
.platform-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.platform-icon {
    width: 120px;
    background-color: #e8f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon i {
    font-size: 3.5rem;
    color: #3a86ff;
}

.platform-info {
    flex: 1;
    padding: 30px;
    border-right: 1px solid #eee;
}

.platform-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.platform-desc {
    color: #666;
    margin-bottom: 20px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.version-label {
    color: #666;
}

.version-number {
    color: #3a86ff;
    font-weight: 600;
}

.release-date {
    color: #888;
    font-size: 0.9rem;
}

.file-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.95rem;
}

.system-requirements h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    padding: 5px 0;
    color: #666;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.system-requirements li:before {
    content: "•";
    color: #3a86ff;
    position: absolute;
    left: 0;
}

.download-actions {
    width: 280px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-download.primary {
    background-color: #3a86ff;
    color: white;
    border: none;
}

.btn-download.primary:hover {
    background-color: #2667cc;
}

.btn-download.secondary {
    background-color: #f0f7ff;
    color: #3a86ff;
    border: 1px solid #3a86ff;
}

.btn-download.secondary:hover {
    background-color: #e1eeff;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.link-alt {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-alt:hover {
    color: #3a86ff;
}

/* 移动应用卡片 */
.mobile-card {
    flex-direction: column;
}

.mobile-card .platform-icon {
    width: 100%;
    height: 100px;
}

.mobile-card .platform-info {
    border-right: none;
    border-bottom: 1px solid #eee;
}

.mobile-card .download-actions {
    width: 100%;
    padding: 30px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-app-store, .btn-google-play {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.btn-app-store:hover, .btn-google-play:hover {
    opacity: 0.9;
}

.btn-google-play {
    background-color: #4285f4;
}

.app-store-text, .google-play-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.small-text {
    font-size: 0.7rem;
}

.large-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.apk-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-download-apk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #f0f7ff;
    color: #3a86ff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-download-apk:hover {
    background-color: #e1eeff;
}

.apk-note {
    font-size: 0.8rem;
    color: #888;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.qr-image {
    width: 120px;
    height: 120px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-code p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.app-features h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.app-features ul {
    list-style: none;
}

.app-features li {
    padding: 5px 0;
    color: #666;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.app-features li:before {
    content: "✓";
    color: #4cd964;
    position: absolute;
    left: 0;
}

.app-requirements {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

/* 应用商店徽章 */
.mobile-stores {
    margin-top: 60px;
    text-align: center;
}

.mobile-stores h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.store-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.store-badge:hover {
    border-color: #3a86ff;
    color: #3a86ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.store-badge i {
    font-size: 1.2rem;
}

/* 开发者资源 */
.dev-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dev-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.dev-card:hover {
    transform: translateY(-10px);
}

.dev-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.dev-icon i {
    font-size: 1.8rem;
    color: #3a86ff;
}

.dev-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.dev-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 70px;
}

.dev-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3a86ff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.dev-link:hover {
    gap: 15px;
}

.dev-link i {
    font-size: 0.9rem;
}

/* 历史版本表格 */
.history-content {
    display: flex;
    gap: 50px;
}

.version-table {
    flex: 2;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    background-color: #3a86ff;
    color: white;
    padding: 15px 20px;
    font-weight: 500;
}

.table-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: #f9f9f9;
}

.table-col {
    flex: 1;
}

.platform-col {
    flex: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-col i {
    font-size: 1.2rem;
}

.action-col {
    display: flex;
    gap: 15px;
}

.table-link {
    color: #3a86ff;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.history-notes {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-notes h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.history-notes ul {
    list-style: none;
    margin-bottom: 25px;
}

.history-notes li {
    padding: 10px 0;
    color: #666;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.history-notes li:before {
    content: "•";
    color: #3a86ff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 5px;
}

.history-notes .note {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

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

.faq-question h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0;
}

.faq-question i {
    color: #3a86ff;
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
}

.support-link {
    text-align: center;
    color: #666;
}

.support-link a {
    color: #3a86ff;
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 1100px) {
    .dev-resources {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .platform-card {
        flex-direction: column;
    }
    
    .platform-icon {
        width: 100%;
        height: 100px;
    }
    
    .platform-info {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .download-actions {
        width: 100%;
    }
    
    .mobile-card .download-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .dev-resources {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        flex-wrap: wrap;
    }
    
    .table-col {
        flex-basis: 50%;
        margin-bottom: 10px;
    }
    
    .platform-col {
        flex-basis: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .store-badges {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .store-badge {
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .mobile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .table-col {
        flex-basis: 100%;
    }
}