/* Windows 95 Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #008080; /* Windows 95 经典蓝绿色背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.5s ease;
}

.loading-window {
    width: 400px;
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: windowAppear 0.5s ease;
}

@keyframes windowAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loading-title-bar-text {
    display: flex;
    align-items: center;
}

.loading-title-bar-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loading-title-bar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-window-controls {
    display: flex;
}

.loading-window-button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2px;
    font-size: 12px;
}

.loading-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-message {
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.loading-progress-container {
    width: 100%;
    height: 20px;
    background-color: white;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #000080, #1084d0);
    transition: width 0.5s;
    position: relative;
}

/* 添加进度条动画效果 */
.loading-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.loading-status {
    font-size: 12px;
    margin-bottom: 15px;
    min-height: 1.2em;
    animation: textFlicker 0.5s infinite alternate;
}

@keyframes textFlicker {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

.loading-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.loading-button {
    padding: 4px 20px;
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    font-size: 14px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.1s;
}

.loading-button:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateY(1px);
}

.loading-logo {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: logoAppear 1s ease;
}

@keyframes logoAppear {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-windows-logo {
    display: flex;
    margin-bottom: 20px;
    animation: logoRotate 3s infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.loading-windows-logo div {
    width: 40px;
    height: 40px;
    margin: 2px;
    animation: colorPulse 3s infinite alternate;
}

@keyframes colorPulse {
    from {
        filter: brightness(0.9);
    }
    to {
        filter: brightness(1.1);
    }
}

.loading-windows-logo div:nth-child(1) {
    background-color: #ff0000;
    animation-delay: 0s;
}

.loading-windows-logo div:nth-child(2) {
    background-color: #00ff00;
    animation-delay: 0.2s;
}

.loading-windows-logo div:nth-child(3) {
    background-color: #0000ff;
    animation-delay: 0.4s;
}

.loading-windows-logo div:nth-child(4) {
    background-color: #ffff00;
    animation-delay: 0.6s;
}

/* 闪烁的光标效果 */
.loading-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: black;
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
} 