/* down_complex页面 - 扁平化布局样式 */

/* 内容区域扁平化布局 */
.down_content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    min-width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部横向分类导航 */
.down_category_nav {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.down_category_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2E7D32;
}

.down_category_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.down_category_item {
    margin-bottom: 0;
}

.down_category_link {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.down_category_link:hover {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.down_category_link.active {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

/* 资源卡片区 - 上中下布局 */
.down_resource_section,
.down_program_section,
.down_kt_section,
.down_design_section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
}

/* 通用标题样式 */
.down_resource_title,
.down_program_title,
.down_kt_title,
.down_design_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1976D2;
}

.down_program_title {
    border-bottom-color: #7B1FA2;
}

.down_kt_title {
    border-bottom-color: #C2185B;
}

.down_design_title {
    border-bottom-color: #FF9800;
}

/* 通用列表布局 - 每排6个，横向排列，多的换行 */
.down_resource_list,
.down_program_list,
.down_kt_list,
.down_design_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 每行显示6个项目 */
.down_resource_item,
.down_program_item,
.down_kt_item,
.down_design_item {
    flex: 0 0 calc(16.666% - 12.5px); /* 6个项目的宽度 */
    margin-bottom: 15px;
    text-align: center;
    box-sizing: border-box;
}

/* 通用图片样式 */
.down_resource_img,
.down_program_img,
.down_kt_img,
.down_design_img {
    width: 135px;
    height: 182px;
    border: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 8px;
    object-fit: cover;
}

/* 通用文本样式 */
.down_resource_text,
.down_program_text,
.down_kt_text,
.down_design_text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
}

/* 非响应式布局 - 固定宽度 */
.down_content {
    min-width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 资源下载区域 - 每排3个 */
.download_resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.download_item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    transition: all 0.2s ease;
}

.download_item:hover {
    border-color: #2E7D32;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.download_title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: break-all;
}

.download_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.upload_time {
    font-size: 12px;
    color: #666;
}

.download_btn {
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 0;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download_btn:hover {
    background: #1B5E20;
}
/* 扁平化悬停效果 */
.down_category_link:hover,
.down_resource_item:hover,
.down_program_item:hover,
.down_kt_item:hover,
.down_design_item:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* 扁平化标题样式 */
.flat-title-section {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.flat-breadcrumb {
    font-size: 14px;
    color: #666;
}

.flat-breadcrumb a {
    color: #2E7D32;
    text-decoration: none;
}

.flat-breadcrumb a:hover {
    text-decoration: underline;
}

/* 固定宽度容器 */
.main-content {
    min-width: 1200px;
    overflow-x: auto;
}

.container {
    min-width: 1200px;
}