/* 下载中心页面样式 */

.main-container {
    min-height: 100vh;
}

.download-container {
    padding: 40px 0;
    min-height: 600px;
    width: 65vw;
}

.download-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* 左侧子分类导航 */
.download-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.download-sidebar-title {
    padding: 20px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.download-nav {
    padding: 10px 0;
}

.download-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #595959;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.download-nav-item:hover {
    background: #f0f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
}

.download-nav-item.active {
    background: #e6f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
    font-weight: 600;
}

.download-nav-item i {
    font-size: 18px;
}

.download-nav-item span {
    flex: 1;
    font-size: 15px;
}

/* 右侧下载内容 */
.download-content {
    flex: 1;
    min-width: 0;
}

.download-header {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.download-title {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 15px;
}

.download-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8c8c8c;
}

.download-breadcrumb a {
    color: #8c8c8c;
    text-decoration: none;
    transition: color 0.3s;
}

.download-breadcrumb a:hover {
    color: #1890ff;
}

.download-breadcrumb i {
    font-size: 12px;
    color: #d9d9d9;
}

.download-breadcrumb span {
    color: #1890ff;
    font-weight: 500;
}

/* 下载列表 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.download-item:hover {
    box-shadow: 0 4px 16px rgba(24, 144, 255, 0.15);
    transform: translateY(-2px);
}

.download-item-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-radius: 8px;
    color: #fff;
}

.download-item-icon i {
    font-size: 28px;
}

.download-item-info {
    flex: 1;
    min-width: 0;
}

.download-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.download-item-title a:hover {
    color: #1890ff;
}

.download-item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.download-item-size,
.download-item-date,
.download-item-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8c8c8c;
}

.download-item-size i,
.download-item-date i,
.download-item-downloads i {
    font-size: 14px;
}

.download-item-desc {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.download-btn,
.view-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    min-width: 100px;
}

.download-btn {
    background: #1890ff !important;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%) !important;
    color: #fff !important;
}

.download-btn:hover {
    background: #096dd9 !important;
    background: linear-gradient(135deg, #096dd9 0%, #0050b3 100%) !important;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.view-btn {
    background: #f5f5f5 !important;
    color: #595959 !important;
}

.view-btn:hover {
    background: #e8e8e8 !important;
    color: #262626 !important;
}

/* 空状态 */
.download-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.download-empty i {
    font-size: 64px;
    color: #d9d9d9;
    margin-bottom: 20px;
}

.download-empty p {
    font-size: 16px;
    color: #8c8c8c;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .download-wrapper {
        flex-direction: column;
    }
    
    .download-sidebar {
        width: 100%;
    }
    
    .download-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .download-nav-item {
        flex: 1;
        min-width: calc(50% - 10px);
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .download-nav-item:hover,
    .download-nav-item.active {
        border-left: none;
        border-bottom-color: #1890ff;
    }
}

@media (max-width: 768px) {
    .download-container {
        padding: 20px 0;
    }
    
    .download-header {
        padding: 20px;
    }
    
    .download-title {
        font-size: 20px;
    }
    
    .download-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .download-item-icon {
        width: 50px;
        height: 50px;
    }
    
    .download-item-icon i {
        font-size: 24px;
    }
    
    .download-item-meta {
        gap: 12px;
    }
    
    .download-item-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .download-btn,
    .view-btn {
        flex: 1;
        flex-direction: row;
        min-width: auto;
    }
    
    .download-nav-item {
        min-width: 100%;
    }
}
