@media (min-width: 800px) {
    .img_wrap {
        cursor: zoom-in;
    }
}
/* 修复@media语法错误：max → max-width */
@media (max-width: 799px) {
    .image-viewer {
        display: none !important;
    }
}
/* 弹窗整体 */
.image-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: visible;
}
/* 大图容器 */
.img-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 135px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    flex: 1;
}
.viewer-img {
    cursor: grab;
    user-select: none;
    max-width: none;
    max-height: none;
    transform-origin: center center !important;
}
.viewer-img.grabbing {
    cursor: grabbing;
}
/* 顶部按钮栏 */
.viewer-toolbar {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
/* 右侧缩放按钮栏 */
.zoom-toolbar {
    position: absolute;
    bottom: 160px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
.viewer-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    background: rgba(80, 80, 80, 0.85);
    user-select: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s ease;
}
.viewer-btn:hover {
    background: rgba(100, 100, 100, 0.95);
}
/* 底部缩略栏 固定高度135px */
.thumb-bar {
    width: 100%;
    height: 135px;
    background: rgba(20, 20, 20, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}
/* 多张图显示缩略栏 */
.thumb-bar.show {
    display: flex;
}
.thumb-bar img {
    height: 115px;
    width: auto;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    user-select: none;
    border-radius: 4px;
    opacity: 0.85;
    transition: all 0.2s ease;
}
.thumb-bar img:hover {
    opacity: 1;
}
.thumb-bar img.active {
    border-color: #ffffff;
    opacity: 1;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
/* 滚动条样式 */
.thumb-bar {
    scrollbar-width: thin;
    scrollbar-color: rgba(120,120,120,0.6) transparent;
}
.thumb-bar::-webkit-scrollbar {
    height: 6px;
}
.thumb-bar::-webkit-scrollbar-track {
    background: transparent;
}
.thumb-bar::-webkit-scrollbar-thumb {
    background: rgba(120,120,120,0.6);
    border-radius: 3px;
}
.thumb-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(150,150,150,0.8);
}
/* 移动端隐藏缩略栏 */
/* 修复@media语法错误：max → max-width */
@media (max-width: 799px) {
    .thumb-bar {
        display: none !important;
    }
}
