.downloads-container {
    padding: 0 0 var(--section-top);
    background-color: #f2f3f4;
}

/* Banner 样式 */
.category-banner {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.banner-content {
    text-align: center;
}

.banner-content h1 {
    font-size: var(--widget-title-h2-fs);
    margin-bottom: 20px;
    font-weight: 700;
}

/* 搜索框样式 */
.download-search-form {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0;
}

.download-search-form input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #eee;
    border-radius: 100px;
    font-size: var(--widget-title-p-4-fs);
}
.download-search-form input:focus,
.download-search-form input:focus-visible {
    border-color: var(--theme-color);
    outline: 1px solid var(--theme-color);
}
.download-search-form button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.download-search-form button svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
    fill: none;
}

/* 布局 */
.downloads-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏样式 */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
}

.category-sidebar h2 {
    font-size: var(--widget-title-p-3-fs);
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    font-weight: 700;
}

.category-sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--theme-color);
}

/* 分类列表样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list > li {
    border-bottom: 1px solid #eee;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--theme-p-color);
    text-decoration: none;
    padding: max(1.2vw, 20px) 0;
    transition: all 0.3s;
    font-size: var(--widget-title-p-4-fs);
}

.category-list a:hover,
.category-list .active > a {
    color: var(--theme-color);
}

.toggle-submenu {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.toggle-submenu svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.category-list .active > a .toggle-submenu {
    transform: rotate(90deg);
}

/* 子分类列表 */
.subcategory-list {
    display: none;
    list-style: none;
    padding: max(0.6vw, 10px) 0 max(0.6vw, 10px) 20px;
    border-top: 1px solid #eee;
}

.category-list .active > .subcategory-list {
    display: block;
}

.subcategory-list a {
    padding: max(0.6vw, 10px) 0;
    font-size: var(--widget-title-p-4-fs);
    line-height: 1;
    color: var(--theme-p-color);
}

/* 下载内容区域 */
.download-group {
    background: #fff;
    border-radius: 8px;
    padding: max(1.2vw, 20px) max(1.6vw, 20px);
    margin-bottom: max(0.8vw, 10px);
}

.group-title {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 700;
    color: var(--theme-p-color);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
}

.toggle-group {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--animation-duration);
}

.toggle-group svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.download-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height var(--animation-duration) ease, 
                opacity var(--animation-duration) ease;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: max(.8vw, 10px);
}

.download-group.active .toggle-group {
    transform: rotate(-180deg);
}

.download-group.active .download-content {
    height: auto;
    opacity: 1;
}

/* 下载项样式 */
.download-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 文件列表样式 */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: var(--widget-title-p-4-fs);
    transition: all 0.3s;
    padding: max(1vw, 10px) max(0.8vw, 10px);
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #eee;
    transition: all .3s;
    color: var(--theme-p-color);
    justify-content: space-between;
    text-transform: capitalize;
}

.file-link:hover {
    color: var(--theme-color);
    /* background: #fff; */
    border-color: var(--theme-color);
}

.no-file {
    color: #999;
    font-style: italic;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    background: #fff;
}

.page-numbers.current {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.page-numbers:hover:not(.current) {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .downloads-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .downloads-layout {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .category-sidebar {
        position: sticky;
        top: 80px;
        z-index: 10;
    }
    
    .file-list {
        flex-direction: column;
        align-items: flex-start;
    }
} 