/* --- 高级质感加载页 (唱片) --- */
#loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out, visibility 1s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 唱片容器，用于离场上抛动画 */
.record-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

/* 离场时的独立类：极速旋转并上抛 */
.record-wrapper.fly-away {
    transform: translateY(-150vh) scale(0.5);
    opacity: 0;
}

.record-wrapper.fly-away .record {
    animation: spin-fast 0.5s linear infinite;
    /* 加速旋转 */
}

/* 唱片主体，增加丰富的光泽和反光质感 */
.record {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        /* 模拟黑胶表面的反光高光 */
        conic-gradient(from 180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.2) 15%,
            rgba(255, 255, 255, 0.05) 30%,
            rgba(255, 255, 255, 0.0) 50%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0.2) 85%,
            rgba(255, 255, 255, 0.05) 100%),
        #111111;
    position: relative;
    border: 4px solid #1a1a1a;
    animation: spin 3s linear infinite;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(140, 82, 255, 0.15),
        inset 0 0 10px rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 黑胶纹路，使用 repeating-radial-gradient 呈现极度逼真的沟槽 */
.record-grooves {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: repeating-radial-gradient(transparent 0,
            transparent 2px,
            rgba(0, 0, 0, 0.3) 3px,
            rgba(0, 0, 0, 0.3) 4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 唱片中心标签贴纸 */
.record-center {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0a0a0a;
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(140, 82, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 唱机中心孔 */
.record-center::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.loader-text {
    position: relative;
    z-index: 10;
    margin-top: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ffffff, var(--primary-color), var(--secondary-color), #ffffff);
    background-size: 200% auto;
    color: #fff;
    /* Fallback color */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 3s linear infinite, pulse-glow 2s infinite alternate;
    transition: opacity 0.8s ease;
}

.loader-text.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-fast {
    100% {
        transform: rotate(1080deg);
    }
}

/* 退场时极速旋转3圈 */

@keyframes shimmer-text {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.8));
    }
}

/* --- 手动进入提示域 --- */
.enter-prompt {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    animation: fade-in-up 1s ease 0.5s both;
}

.cyber-enter-btn {
    background: transparent;
    border: none;
    /* 移除边框，实现无界按钮 */
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    letter-spacing: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* 图标置于文字下方 */
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.cyber-enter-btn:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 35px rgba(140, 82, 255, 0.8);
    transform: translateY(-5px) scale(1.05);
}

.cyber-enter-btn i.blink {
    animation: blink-arrow 2s infinite ease-in-out;
}

.audio-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink-arrow {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(-2px);
    }

    50% {
        opacity: 1;
        transform: translateY(2px);
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    }
}