/* load.css - 启动页样式（修复图标加载动画） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

/* 背景图样式 */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: opacity 0.5s ease;
}

.background-image.fallback {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* 主要内容 */
.splash {
    text-align: center;
    animation: float 3s ease-in-out infinite;
    max-width: 90%;
    padding: 20px;
    z-index: 1;
}

/* 修改logo样式 */
.logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

/* 修改logo-icon样式 */
.logo-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-fallback {
    font-size: 48px;
    color: white;
}

.logo img, .logo .logo-fallback {
    transition: opacity 0.3s ease;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.system-intro {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    max-width: 500px;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    max-width: 500px;
}

.keyword-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.loader {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 30px auto 0;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    animation: load 3s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 进度指示器 */
.progress-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载状态提示 */
.loading-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-status.active {
    opacity: 1;
    visibility: visible;
}

.loading-status .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-status p {
    font-size: 16px;
    color: white;
}

/* 修复图标加载状态 */
.icon-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;  /* 增大尺寸 */
    height: 30px; /* 增大尺寸 */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

/* 修改动画定义，确保正确旋转 */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 添加图标容器样式 */
.logo-loading-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* 动画 */
@keyframes load {
    to { width: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    h1 { font-size: 26px; }
    .system-intro { font-size: 15px; }
    .keyword-tag { font-size: 13px; }
    .logo { width: 85px; height: 85px; }
    .logo-fallback { font-size: 40px; }
    .icon-loading { width: 25px; height: 25px; } /* 移动端调整 */
    .progress-indicator { bottom: 20px; font-size: 13px; }
}
