/* ========== 图集详情页（detail_pic）· 相册 ========== */

.album-pic {
    margin-bottom: 24px;
}

/* ① 主图区 */
.album-stage {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.album-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
    cursor: zoom-in;
}

.album-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    transition: background .25s;
}

.album-arrow:hover {
    background: rgba(0, 0, 0, .6);
}

.album-arrow.prev {
    left: 16px;
}

.album-arrow.next {
    right: 16px;
}

.album-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
    line-height: 22px;
}

/* ② 缩略图条（可横向滑动） */
.album-thumbs {
    display: flex;
    margin-top: 12px;
    padding-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.album-thumb {
    flex: none;
    width: 108px;
    height: 76px;
    margin-right: 10px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: #f0f0f0;
    opacity: .78;
    overflow: hidden;
    transition: opacity .25s, border-color .25s;
}

.album-thumb:last-child {
    margin-right: 0;
}

.album-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-thumb:hover {
    opacity: 1;
}

.album-thumb.on {
    border-color: #a73d06;
    opacity: 1;
}

/* ③ 大图查看（灯箱） */
.album-viewer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, .9);
}

.album-viewer.open {
    display: block;
}

.album-viewer .viewer-img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 92%;
    max-height: 86%;
    transform: translate(-50%, -50%);
}

.viewer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.viewer-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.viewer-close:hover,
.viewer-arrow:hover {
    background: rgba(255, 255, 255, .3);
}

.viewer-arrow.prev {
    left: 26px;
}

.viewer-arrow.next {
    right: 26px;
}

.viewer-counter {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* ④ 小屏适配 */
@media (max-width: 768px) {
    .album-pic {
        margin-bottom: 18px;
    }

    .album-img {
        max-height: 60vh;
    }

    .album-thumb {
        width: 74px;
        height: 54px;
        margin-right: 8px;
    }

    .album-arrow {
        width: 34px;
        height: 34px;
        margin-top: -17px;
        font-size: 20px;
    }

    .album-arrow.prev {
        left: 8px;
    }

    .album-arrow.next {
        right: 8px;
    }

    .album-counter {
        right: 8px;
        bottom: 8px;
        font-size: 12px;
    }

    .album-viewer .viewer-img {
        max-width: 96%;
        max-height: 80%;
    }

    .viewer-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .viewer-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 22px;
    }

    .viewer-arrow.prev {
        left: 10px;
    }

    .viewer-arrow.next {
        right: 10px;
    }

    .viewer-counter {
        bottom: 18px;
    }
}
