/* 首页六合图库；尺寸沿用首页 rem 缩放。 */
.gallery { min-width: 0; }
.gallery [hidden] { display: none !important; }
.gallery-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: .38rem;
    background: linear-gradient(180deg, #1153f4, #0a308e);
    color: #fff;
}
.gallery-heading h2 { margin: 0; font-size: .23rem; font-weight: 700; }
.gallery button { font-family: inherit; cursor: pointer; }
.gallery-toggle {
    position: absolute;
    right: .1rem;
    padding: .035rem .1rem;
    border: 1px solid #a8c5ff;
    border-radius: .04rem;
    background: #ffffff18;
    color: #fff;
    font-size: .14rem;
}
.gallery-subtitle { margin: .16rem 0; color: #113f98; font-size: .14rem; font-weight: 700; }
.gallery-columns { display: flex; align-items: flex-start; gap: .2rem; }
.gallery-column { flex: 1; min-width: 0; }
.gallery-card { margin: 0 0 .28rem; }
.gallery-link { display: block; color: inherit; text-decoration: none; }
.gallery-image { display: block; width: 100%; height: auto; border: 1px solid #d4dfff; }
.gallery-card figcaption { padding-top: .08rem; text-align: center; color: #333; font-size: .18rem; overflow-wrap: anywhere; }
.gallery-more { display: block; width: 100%; border: 0; border-radius: .06rem; padding: .07rem; background: #f0f8ff; color: #444; font-size: .14rem; }
.gallery-empty { color: #777; text-align: center; font-size: .14rem; padding: .3rem 0; }
.gallery button:focus-visible { outline: 2px solid #168bff; outline-offset: 3px; }
.gallery-detail-page { background: #fff; font-size: 14px; }
.gallery-detail { max-width: 720px; min-height: 100vh; margin: 0 auto; background: #fff; }
.gallery-detail-header { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 8px; background: linear-gradient(180deg, #1153f4, #0a308e); }
.gallery-detail-logo img { display: block; width: 134px; height: auto; }
#detailBack { padding: 6px 14px; border-radius: 6px; background: #f0f8ff; color: #514e4e; text-decoration: none; white-space: nowrap; }
.gallery-detail-content { padding: 0 8px 8px; }
.gallery-detail-content h1 { margin: 10px 0 4px; font-size: 22px; line-height: 30px; color: #333; }
.gallery-detail-meta { margin: 0 0 14px; font-size: 13px; line-height: 18px; color: #888; }
.gallery-detail-years, .gallery-detail-periods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gallery-detail-years a, .gallery-detail-periods a { display: flex; align-items: center; justify-content: center; height: 29px; padding: 0 16px; border-radius: 6px; color: #514e4e; background: #f0f8ff; text-decoration: none; }
.gallery-detail-periods { flex-wrap: nowrap; overflow: hidden; }
.gallery-detail-periods a { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.gallery-detail-years a[aria-current], .gallery-detail-periods a[aria-current] { background: linear-gradient(180deg, #1153f4, #0a308e); color: #fff; }
.gallery-detail-image { display: block; width: 100%; height: auto; border: 1px solid #d4dfff; }
.gallery-detail [hidden] { display: none !important; }
.gallery-detail a:focus-visible { outline: 2px solid #168bff; outline-offset: 3px; }
.gallery-detail-message { padding: 32px 14px; text-align: center; color: #777; }
