/* 核心颜色和背景 - 不变 */
.fancybox-bg {
    background: rgba(0, 0, 0, 0.9) !important; /* 更深的背景，突出图片 */
}

/* 隐藏 Fancybox 默认的工具栏按钮 - 不变 */
.fancybox-button--zoom,
.fancybox-button--play,
.fancybox-button--thumbs,
.fancybox-button--share,
.fancybox-button--full-screen,
.fancybox-button--download,
.fancybox-toolbar .fancybox-button:not(.fancybox-button--close) {
    display: none !important;
}

/* 按钮样式（通用） - 不变 */
.fancybox-button {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
    color: #fff;
    font-size: 24px;
}

.fancybox-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* 导航箭头位置及样式美化 - 主要调整 top 属性 */
.fancybox-button--arrow_left,
.fancybox-button--arrow_right {
    width: 60px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    opacity: 0.8;
    top: 70%; /* <--- 这里调整为 70%，进一步向下移动 */
    transform: translateY(-10%); /* 保持垂直居中 */
    transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.fancybox-button--arrow_left:hover,
.fancybox-button--arrow_right:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.fancybox-button--arrow_left {
    left: 20px;
}
.fancybox-button--arrow_right {
    right: 20px;
}

/* 关闭按钮位置 - 保持不变，在右上角 */
.fancybox-button--close {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 100000;
}

/* 信息栏 (显示图片序号的容器) - 保持不变，在底部中央 */
.fancybox-infobar {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #fff;
    padding: 10px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    line-height: 1.2;
    z-index: 9999;
}

/* 标题/描述样式 - 保持不变，在顶部中央 */
.fancybox-caption {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif, "Microsoft YaHei";
    font-size: 17px;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    max-width: 90%;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    z-index: 9999;
}

/* 标题内容容器，用于更好的排版 - 不变 */
.fancybox-caption-content {
    max-height: 150px;
    overflow-y: auto;
}
.fancybox-caption-content p {
    margin: 8px 0;
}

/* 加载指示器 (SVG 颜色) - 不变 */
.fancybox-loading svg path {
    stroke: #ffffff;
}

/* 缩略图导航（如果开启了 thumbs 按钮） - 不变 */
.fancybox-thumbs {
    background: rgba(0, 0, 0, 0.8);
}
.fancybox-thumbs__list a:before {
    border-color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 通用按钮大小 */
    .fancybox-button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* 导航箭头在手机端样式美化及位置调整 */
    .fancybox-button--arrow_left,
    .fancybox-button--arrow_right {
        width: 50px;
        height: 36px;
        border-radius: 15px;
        top: 70%; /* <--- 手机端也调整为 70% */
    }

    .fancybox-button--arrow_left {
        left: 10px;
    }
    .fancybox-button--arrow_right {
        right: 10px;
    }

    /* 关闭按钮在手机端位置 */
    .fancybox-button--close {
        top: 15px;
        right: 15px;
    }
    /* 信息栏在手机端位置和字体 */
    .fancybox-infobar {
        font-size: 14px;
        padding: 14px 13px;
        bottom: 15px;
    }
    /* 标题在手机端位置和字体 */
    .fancybox-caption {
        font-size: 14px;
        padding: 10px 20px;
        top: 15px;
    }
}