/* download.html专用样式 */

/* 下载专区无侧边栏样式调整 */
.download-page .content-layout {
    display: block; /* 不使用flex布局 */
}

.download-page .content-main {
    max-width: none; /* 移除最大宽度限制 */
    width: 100%;
    padding: 0;
}

/* 下载项目样式 */
.download-list {
    display: grid;
    gap: 20px;
}

.download-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.download-item:hover {
    border-color: #1e88e5;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.1);
    transform: translateY(-2px);
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title,
.download-desc {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.download-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.download-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    font-weight: 500;
}

.download-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.download-btn {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
}

.download-btn:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 分类标题 */
.download-category {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 25px;
    border-radius: 8px;
    margin: 30px 0 20px 0;
    border-left: 4px solid #1e88e5;
}

.download-category h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.download-category:first-child {
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 12px 15px;
        gap: 8px;
    }
    
    .download-info {
        text-align: left;
        width: 100%;
    }
    
    /* 只有标题居中 */
    .download-title {
        margin: 0 0 4px 0;
        text-align: center;
    }
    
    .download-desc {
        margin: 0 0 4px 0;
    }
    
    .download-meta {
        justify-content: flex-start;
        margin: 0 0 8px 0;
    }
    
    .download-meta span {
        padding: 0;
        background: none;
    }
    
    /* 按钮居中显示 */
    .download-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 500;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .download-item {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .download-title {
        font-size: 14px;
    }
    
    .download-desc {
        font-size: 12px;
    }
    
    .download-meta span {
        font-size: 11px;
    }
    
    .download-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .download-category {
        padding: 12px 20px;
        margin: 25px 0 15px 0;
    }
}