/* 360° 查看器样式 - ORBITVU 风格 */

/* 360° 打开按钮 */
.image-360 {
    text-align: center;
    position: relative;
}

.image-360-open {
    cursor: pointer;
    display: inline-block;
    font-size: 35px;
    margin: 0 auto;
    color: #333;
    transition: opacity 0.3s ease;
}

.image-360-open:hover {
    opacity: 0.7;
}

/* 全屏查看器容器 */
.image-360-viewer-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 1);
    align-items: center;
    justify-content: center;
}

.image-360-viewer-container.open {
    display: flex;
}

/* 关闭按钮 */
.image-360-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #666;
    font-size: 36px;
    z-index: 1000001;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.image-360-close:hover {
    opacity: 1;
}

/* 查看器主容器 - 100%宽高 */
.spritespin-360 {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 控制按钮组 - ORBITVU 风格 */
.image-360-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1000001;
    padding: 0;
}

/* ORBITVU 按钮包装器 */
.ovviosbuttonwrapper {
    display: inline-block;
    position: relative;
}

/* ORBITVU 按钮 */
.ovviosbutton {
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
}

.ovviosbutton:hover svg g#background path {
    fill: rgba(25, 25, 25, 0.9);
}

.ovviosbutton:active svg g#background path {
    fill: rgba(25, 25, 25, 1);
}

.ovviosbutton svg {
    display: block;
    width: 25.2px;
    height: 25.2px;
}

/* 播放按钮状态切换 */
.ovviosbutton.playing .play-icon {
    display: none;
}

.ovviosbutton.playing .pause-icon {
    display: block;
}

/* 锁定按钮状态切换 */
.ovviosbutton.locked .move-icon {
    opacity: 0;
}

.ovviosbutton.locked .rotate-icon {
    opacity: 1;
}

/* 信息提示弹窗 - 包含半透明背景 */
.image-360-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000002;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-360-info-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    pointer-events: none;
}

.image-360-info-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 加载提示 */
.image-360-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 18px;
    z-index: 1000000;
    text-align: center;
}

.image-360-loading i {
    font-size: 48px;
    animation: spin 1s linear infinite;
    color: #4a9eff;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-360-open {
        font-size: 28px;
    }

    .image-360-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .image-360-controls {
        bottom: 15px;
        gap: 4px;
    }

    .image-360-controls button {
        width: 36px;
        height: 36px;
    }

    .image-360-controls button svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .image-360-controls {
        bottom: 10px;
        gap: 3px;
    }

    .image-360-controls button {
        width: 34px;
        height: 34px;
    }

    .image-360-controls button svg {
        width: 34px;
        height: 34px;
    }
}
