/* ========================================
   下载页面样式
======================================== */

/* 页面头部 */
.page-header {
    padding: 120px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 下载卡片 */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    scroll-margin-top: 120px; /* 预留导航栏高度 */
}

.download-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.download-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

/* 产品标签 */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-badge.stock {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.product-badge.futures {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.product-badge.crypto {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.download-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.hot-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.version {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.download-info .feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.download-info .feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-info .feature-list li i {
    color: var(--success-color);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-success-dcs {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-success-dcs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
    color: var(--bg-dark);
}

/* 禁用按钮样式 */
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.system-req {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 预览窗口 */
.download-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.preview-window {
    width: 100%;
    max-width: 450px;
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.window-header {
    background: rgba(30, 40, 60, 0.8);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
    margin-left: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.window-content {
    padding: 20px;
    display: flex;
    gap: 15px;
    min-height: 200px;
}

.mock-chart {
    flex: 1;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    animation: chartLine 3s ease-in-out infinite;
}

.mock-chart.futures::after {
    background: var(--accent-color);
}

.mock-chart.crypto::after {
    background: var(--success-color);
}

@keyframes chartLine {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(10px); }
    75% { transform: translateY(-10px); }
}

.mock-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-item {
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.mock-item.gold {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.mock-item.green {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.2);
}

/* 安装指南 */
.guide-section {
    background: rgba(0, 0, 0, 0.2);
}

.guide-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 212, 255, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.guide-step:hover .step-icon {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.guide-step h4 {
    margin-bottom: 0.5rem;
}

.guide-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ手风琴 */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    color: var(--text-secondary);
    padding: 0 1.5rem 1.25rem;
}

/* 响应式 */
@media (max-width: 991px) {
    .download-card {
        padding: 2rem;
    }
    
    .download-info h2 {
        font-size: 2rem;
    }
    
    .download-preview {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
}
