.case-category-panel[hidden] {
    display: none;
}

.case-section-links,
.case-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 24px;
    padding: 0 12px;
    font: 15px/1.4 Arial, "Microsoft YaHei", sans-serif;
}

.case-pagination {
    margin-top: 28px;
    margin-bottom: 36px;
}

.case-section-links .case-list-link,
.case-pagination a,
.case-pagination span {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 13px;
    border: 1px solid #aeb6a2;
    border-radius: 4px;
    background: #fff;
    color: #2a3d17;
    text-decoration: none;
}

.case-section-links .case-list-link,
.case-pagination [aria-current="page"] {
    border-color: #527019;
    background: #527019;
    color: #fff;
    font-weight: 600;
}

.case-section-links .case-list-link:hover,
.case-pagination a:hover {
    border-color: #3d5611;
    background: #edf3e1;
    color: #27380e;
}

.case-section-links .case-list-link:focus-visible,
.case-pagination a:focus-visible {
    outline: 2px solid #426716;
    outline-offset: 2px;
}

.case-types {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 4px 12px;
    margin: 8px auto 20px;
    padding: 0 12px;
}
.case-types a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 6px 12px;
    color: #35432d;
    border-bottom: 2px solid transparent;
    font: 16px/1.35 Arial, "Microsoft YaHei", sans-serif;
    text-align: center;
}
.case-types a:hover, .case-types a[aria-current] {
    color: #436617;
    border-bottom-color: #78ab26;
}
.case-types a[aria-current] { font-weight: bold; }
.case-types a:focus-visible { outline: 2px solid #436617; }
.case-cover {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
    color: white;
    background: #273323;
}
.case-cover > img {
    display: block;
    width: 100%;
    height: clamp(160px, 30vw, 440px);
    object-fit: cover;
}
.case-cover figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 36px 6% 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    font: 15px/1.45 Arial, "Microsoft YaHei", sans-serif;
}
.case-cover figcaption strong, .case-cover figcaption span { display: block; }
.case-cover figcaption strong { font-size: 1.3em; }
.pvideolist .pvideolis:focus-within .masklis { top: 0; }
@media (max-width: 700px) {
    .case-types { gap: 4px; padding: 0 4px; margin-bottom: 12px; }
    .case-types a { font-size: 14px; padding: 4px 7px; }
    .case-cover figcaption { padding: 20px 12px 8px; font-size: 13px; }
    .pvideolist .pvideolis .masklis {
        top: auto;
        bottom: 0;
        height: auto;
        padding: 4px 0;
        background: rgba(0,0,0,.7);
    }
    .pvideolist .pvideolis .masklis p { margin: 0; font-size: 13px; line-height: 1.35; }
    .pvideolist .pvideolis .masklis img { display: none; }
}
