/* 加载等待页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 加载页面容器 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-container.hide {
    opacity: 0;
    visibility: hidden;
}

/* 加载动画圆圈 */
.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loading-spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: #23ade5;
    border-right-color: #23ade5;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-bottom-color: #e94560;
    border-left-color: #e94560;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 加载文字 */
.loading-text {
    margin-top: 30px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}

/* 加载进度 */
.loading-progress {
    margin-top: 20px;
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #23ade5, #e94560);
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* 提示信息 */
.loading-tip {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
}

/* 错误提示 */
.loading-error {
    color: #e94560;
    font-size: 14px;
    text-align: center;
    max-width: 400px;
    padding: 0 20px;
}

.loading-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 播放器容器 */
.artplayer-app {
    width: 100%;
    height: 100%;
    display: none;
}

.artplayer-app.show {
    display: block;
}
