.downloads-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.downloads-filters {
    margin-top: -48px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.downloads-filters-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 14px;
}

.downloads-filters input,
.downloads-filters select {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--text-primary);
    background: #fff;
}

.downloads-filters-actions {
    display: flex;
    gap: 12px;
}

.downloads-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.downloads-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .72);
    border: 1px solid #f3d0d1;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .25s ease;
}

.downloads-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.downloads-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.downloads-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.download-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.download-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.file-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 同一变量驱动文字、svg 与底色，新增类型只需加一行 data-type */
    --file-color: var(--primary);
    color: var(--file-color);
    background: color-mix(in srgb, var(--file-color) 10%, transparent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .04em;
}

.file-icon svg {
    stroke: currentColor;
}

.file-icon[data-type="pdf"] { --file-color: #e5484d; }
.file-icon[data-type="image"] { --file-color: #12a594; }
.file-icon[data-type="sheet"] { --file-color: #30a46c; }
.file-icon[data-type="slide"] { --file-color: #f76b15; }
.file-icon[data-type="archive"] { --file-color: #ad7f58; }

.file-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: #fdf3f3;
    color: var(--primary);
    font-size: var(--fs-2xs);
    font-weight: var(--fw-medium);
}

.file-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    line-height: var(--lh-tight);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-base);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-item-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.file-date {
    font-size: var(--fs-xs);
    color: #8a94a6;
}

.download-actions {
    display: flex;
    align-items: center;
}

.download-button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    height: 36px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: #fff;
    background: var(--primary);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.download-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.download-button.is-disabled {
    background: #f4f4f4;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: var(--fs-base);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px dashed #e0e0e0;
}

@media (max-width: 1024px) {
    .downloads-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .downloads-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .downloads-filters-main {
        grid-template-columns: 1fr;
    }

    .downloads-filters-actions {
        flex-direction: column;
    }

    .download-item {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .downloads-list {
        grid-template-columns: 1fr;
    }
}
