/* Viewer.js 自定义样式 - 优化手机端显示 */

/* 移动端优化 */
@media (max-width: 768px) {
    /* 图片查看器容器 */
    .viewer-container {
        z-index: 9999 !important;
    }

    /* 导航按钮优化 */
    .viewer-button {
        width: 50px;
        height: 50px;
        background-color: rgba(0, 0, 0, 0.6) !important;
        border-radius: 50%;
    }

    /* 工具栏按钮 */
    .viewer-toolbar > ul > li {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }

    .viewer-toolbar > ul > li::before {
        font-size: 20px;
        line-height: 40px;
    }

    /* 底部导航栏 */
    .viewer-navbar {
        background-color: rgba(0, 0, 0, 0.8);
        padding: 5px;
    }

    .viewer-navbar > ul > li {
        margin: 0 2px;
        width: 50px;
        height: 50px;
    }

    .viewer-navbar > ul > li > img {
        border: 2px solid transparent;
    }

    .viewer-navbar > ul > li.viewer-active > img {
        border-color: #fff;
    }

    /* 标题栏 */
    .viewer-title {
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        font-size: 14px;
        padding: 10px 15px;
    }

    /* 关闭按钮 */
    .viewer-close::before {
        font-size: 28px;
    }

    /* 隐藏缩放提示 */
    .viewer-tooltip {
        font-size: 12px;
    }

    /* 优化图片加载动画 */
    .viewer-loading::after {
        width: 40px;
        height: 40px;
    }
}

/* 桌面端优化 */
@media (min-width: 769px) {
    .viewer-container {
        z-index: 9999 !important;
    }

    .viewer-button {
        background-color: rgba(0, 0, 0, 0.5) !important;
        transition: background-color 0.3s;
    }

    .viewer-button:hover {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
}

/* 通用样式 */
.viewer-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.viewer-canvas > img {
    max-width: none !important;
    max-height: none !important;
}

/* 图片点击提示 */
.article-text img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.article-text img:hover {
    opacity: 0.9;
}

/* 添加图片加载动画 */
.article-text img[data-loading="true"] {
    opacity: 0.5;
}
