/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #000000;
    color: white;
    overflow: hidden;
    perspective: 1000px;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 开场动画样式 */
#opening-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.opening-text {
    font-size: 25vw; /* 使用视窗宽度单位，让字体占满屏幕 */
    font-weight: bold;
    text-align: center;
    font-family: "宋体", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.opening-text .char {
    opacity: 0;
    transform: scale(0.5);
    animation: charAppear 1.2s ease-out forwards, neonGlow 2s ease-in-out infinite;
    color: #ffffff; /* 白色 */
    text-shadow: 
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 15px #ffffff;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.opening-text .char:nth-child(1) { animation-delay: 0s, 0s; }
.opening-text .char:nth-child(2) { animation-delay: 0.8s, 0.8s; }
.opening-text .char:nth-child(3) { animation-delay: 1.6s, 1.6s; }
.opening-text .char:nth-child(4) { animation-delay: 2.4s, 2.4s; }
.opening-text .char:nth-child(5) { animation-delay: 3.2s, 3.2s; }
.opening-text .char:nth-child(6) { animation-delay: 4s, 4s; }
.opening-text .char:nth-child(7) { animation-delay: 4.8s, 4.8s; }
.opening-text .char:nth-child(8) { animation-delay: 5.6s, 5.6s; }
.opening-text .char:nth-child(9) { animation-delay: 6.4s, 6.4s; }
.opening-text .char:nth-child(10) { animation-delay: 7.2s, 7.2s; }
.opening-text .char:nth-child(11) { animation-delay: 8s, 8s; }
.opening-text .char:nth-child(12) { animation-delay: 8.8s, 8.8s; }

@keyframes charAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px);
    }
    40% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 3px #ffffff,
            0 0 6px #ffffff,
            0 0 9px #ffffff;
    }
    50% {
        text-shadow: 
            0 0 6px #ffffff,
            0 0 12px #ffffff,
            0 0 18px #ffffff;
    }
}

/* 生日视频容器样式 */
#birthday-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.camera-monitor {
    position: relative;
    margin-bottom: 30px;
    background: #2a2a2a;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.monitor-screen {
    width: 600px;
    height: 450px;
    background: #000000;
    border: 4px solid #444;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
}

#birthday-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#birthday-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.manual-play-btn {
    background: rgba(255, 215, 0, 0.8);
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.manual-play-btn:hover {
    background: rgba(255, 215, 0, 1);
    transform: scale(1.05);
}

#play-video-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#play-video-btn:hover {
    background: #555;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 标题样式 */
.title {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.click-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.click-btn:hover {
    background: #555;
    transform: scale(1.05);
}

/* 彩虹动画 */
@keyframes rainbow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* 滚动提示样式 */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 1000;
    display: none; /* 默认隐藏 */
    opacity: 0; /* 默认透明 */
    transition: opacity 0.5s ease-in-out;
}

.scroll-text {
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-arrow {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.recording-dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    z-index: 15;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    25%, 75% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

      
 