/* ========== Downloads Page - Accordion Styles ========== */
.dl-page-wrap {
    padding: 50px 0 70px;
    background: #f7f8fa;
}

.dl-accordion {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* 一级分类 */
.dl-l1-item {
    border-bottom: 1px solid #eee;
}

.dl-l1-item:last-child {
    border-bottom: none;
}

.dl-l1-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    transition: background .2s;
    user-select: none;
}

.dl-l1-header:hover {
    background: #f5f7fb;
}

.dl-l1-header .dl-arrow {
    font-size: 20px;
    color: #999;
    transition: transform .25s;
}

.dl-l1-item.open .dl-l1-header .dl-arrow {
    transform: rotate(45deg);
}

/* 二级分类 */
.dl-l1-body {
    display: none;
    padding: 0 28px 20px;
}

.dl-l1-item.open .dl-l1-body {
    display: block;
}

.dl-l2-item {
    border-bottom: 1px solid #f0f0f0;
}

.dl-l2-item:last-child {
    border-bottom: none;
}

.dl-l2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    border-radius: 4px;
    transition: background .2s;
    user-select: none;
}

.dl-l2-header:hover {
    background: #f5f7fb;
}

.dl-l2-header .dl-arrow {
    font-size: 16px;
    color: #aaa;
    transition: transform .25s;
}

.dl-l2-item.open .dl-l2-header .dl-arrow {
    transform: rotate(45deg);
}

/* PDF 卡片网格 */
.dl-l2-body {
    display: none;
    padding: 10px 0 20px;
}

.dl-l2-item.open .dl-l2-body {
    display: block;
}

.dl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 16px;
}

.dl-card {
    text-align: center;
}

.dl-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f0f0f0;
}

.dl-card-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dl-pdf-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
    cursor: pointer;
}

.dl-download-btn:hover {
    background: #3a5ce0;
    color: #fff;
    text-decoration: none;
}

.dl-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 767px) {
    .dl-l1-header {
        padding: 14px 18px;
        font-size: 15px;
    }

    .dl-l1-body {
        padding: 0 18px 16px;
    }

    .dl-l2-header {
        padding: 12px 12px;
        font-size: 14px;
    }

    .dl-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }

    .dl-card-img {
        height: 120px;
    }
}
