/* ========================================
   NCDA - 开屏动画样?
   ======================================== */

/* --- 开屏容?--- */
.opening-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-loading);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.opening-section.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- 视频播放?--- */
.opening-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* --- 视频叠加?--- */
.opening-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- 主标?--- */
.opening-title {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
    pointer-events: none;
    margin-top: -15vh;
}

.opening-title.visible {
    opacity: 1;
}

.opening-title h1 {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    color: #fff;
    text-shadow:
        0 0 40px rgba(212, 168, 83, 0.6),
        0 0 80px rgba(212, 168, 83, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2em;
}

/* --- 跳过按钮 --- */
.skip-btn {
    position: absolute;
    bottom: var(--space-3xl);
    right: var(--space-3xl);
    z-index: 3;
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    letter-spacing: 0.1em;
}

.skip-btn.visible {
    opacity: 0.7;
    transform: translateY(0);
}

.skip-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-sand);
    box-shadow: var(--shadow-glow);
}

/* --- 进度?--- */
.opening-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-sand-dark), var(--color-sand-light), var(--color-sand));
    z-index: 3;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
}

/* --- 粒子装饰（沙粒漂浮效果） --- */
.sand-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-sand-light);
    border-radius: var(--radius-full);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: floatParticle var(--particle-duration, 6s) ease-in-out infinite;
    animation-delay: var(--particle-delay, 0s);
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translate(var(--particle-x, 100px), var(--particle-y, -200px)) scale(0);
    }
}

/* --- 响应?--- */
@media (max-width: 768px) {
    .skip-btn {
        bottom: var(--space-xl);
        right: var(--space-xl);
        font-size: var(--text-xs);
    }

    .opening-title h1 {
        font-size: var(--text-4xl);
        letter-spacing: 0.15em;
    }
}
