/* 下载详情页面样式 */

/* 图片预览样式 */
.download-preview-image {
    max-height: 400px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.download-preview-image:hover {
    transform: scale(1.02);
}

/* 功能图标样式 */
.feature-icon-large {
    font-size: 1.2rem;
}

/* 下载步骤 */
.download-steps .step-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.download-steps .step-item:last-child {
    border-bottom: none;
}

/* 二维码样式 */
.qrcode-image {
    max-width: 300px;
}

/* 下载信息卡片 */
.download-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.download-info-card h5 {
    color: var(--bs-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* 文件信息 */
.file-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.file-info-list li:last-child {
    border-bottom: none;
}

.file-info-label {
    font-weight: 500;
    color: #495057;
}

.file-info-value {
    color: #6c757d;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.download-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-button.primary {
    background: var(--bs-primary);
    color: white;
}

.download-button.info {
    background: var(--bs-info);
    color: white;
}

.download-button.success {
    background: var(--bs-success);
    color: white;
}

.download-button.secondary {
    background: var(--bs-secondary);
    color: white;
}

/* 相关下载 */
.related-downloads .download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.related-downloads .download-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-downloads .download-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.related-downloads .download-info {
    flex: 1;
}

.related-downloads .download-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.related-downloads .download-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 下载统计 */
.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 安全提示 */
.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.security-notice .notice-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 10px;
}

.security-notice .notice-content {
    color: #856404;
    font-size: 0.9rem;
}

/* 模态框样式 */
.download-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-modal .modal-header {
    border-bottom: 1px solid #f1f3f4;
    padding: 20px;
}

.download-modal .modal-body {
    padding: 20px;
}

.download-modal .modal-footer {
    border-top: 1px solid #f1f3f4;
    padding: 15px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-buttons {
        gap: 8px;
    }

    .download-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .download-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .related-downloads .download-item {
        flex-direction: column;
        text-align: center;
    }

    .related-downloads .download-thumb {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .qrcode-image {
        max-width: 200px;
    }
}