/**
 * Marzipano 动画效果样式
 * 用于动画期间的UI状态控制
 */

/* 动画进行时的全局样式 */
.marzipano-animating {
    cursor: wait;
}

/* 动画进行时禁用所有交互元素 */
.marzipano-animating .hotspot,
.marzipano-animating .link-hotspot,
.marzipano-animating .info-hotspot {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* 动画进行时的加载指示器 */
.animation-loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.animation-loading-indicator.visible {
    display: block;
}

/* 动画加载指示器的旋转动画 */
.animation-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 动画完成后的淡入效果 */
.animation-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .animation-loading-indicator {
        font-size: 12px;
        padding: 12px 20px;
    }
    
    .animation-loading-spinner {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .animation-loading-indicator {
        background: #000000;
        border: 2px solid #ffffff;
    }
}

/* 减少动画偏好设置支持 */
@media (prefers-reduced-motion: reduce) {
    .animation-loading-spinner {
        animation: none;
    }
    
    .marzipano-animating .hotspot,
    .marzipano-animating .link-hotspot,
    .marzipano-animating .info-hotspot {
        transition: none;
    }
    
    .animation-fade-in {
        animation: none;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .animation-loading-indicator {
        background: rgba(255, 255, 255, 0.9);
        color: #000000;
    }
    
    .animation-loading-spinner {
        border-color: #000000;
        border-top-color: transparent;
    }
}