.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            #1a1a1a 0px,
            #1a1a1a 2px,
            #222 2px,
            #222 4px
        );
    opacity: 0.3;
    z-index: 1;
}

.fullscreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#333 1px, transparent 1px),
        radial-gradient(#333 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.2;
    z-index: 1;
}

#animation-text, .join-btn, .skip-btn, .music-tip {
    position: relative;
    z-index: 2;
}

.fullscreen {
    background: 
        linear-gradient(
            45deg,
            #1a1a1a,
            #252525,
            #1a1a1a
        );
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes scratch {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.05; }
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='scratches'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23scratches)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    animation: scratch 3s infinite;
    z-index: 1;
}

.skip-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100;
    display: none;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.center-text {
    color: white;
    font-size: 42px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.8s ease;
    font-weight: bold;
    max-width: 80%;
    line-height: 1.5;
    letter-spacing: 2px;
    padding: 20px;
}

.center-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同长度的文字添加响应式大小 */
@media (max-width: 768px) {
    .center-text {
        font-size: 32px;
    }
}

@media (min-width: 1440px) {
    .center-text {
        font-size: 48px;
    }
}

.join-btn {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    padding: 25px 50px;
    font-size: 28px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
}

.join-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    letter-spacing: 3px;
}

.join-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.join-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.join-btn.show {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
}

@media (max-width: 768px) {
    .join-btn {
        padding: 20px 40px;
        font-size: 24px;
    }
}

.join-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    opacity: 0;
    z-index: -1;
    transition: all 0.5s ease;
    border-radius: 50px;
}

.join-btn:hover::after {
    opacity: 1;
    filter: blur(15px);
    transform: scale(1.1);
}

.hidden {
    display: none;
}

/* 添加背景粒子��果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

/* 添加到现有的 CSS 文件末尾 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-text {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px auto;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

.loading-percentage {
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

/* 添加音乐提示样式 */
.music-tip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 添加画效果 */
@keyframes tipFloat {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.music-tip {
    animation: tipFloat 2s infinite ease-in-out;
}

/* 悬停效果 */
.music-tip:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 添加边缘暗角效果 */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* 火焰容器 */
.fire-container {
    position: fixed;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 1;
    pointer-events: none;
}

/* 火焰粒子动画 */
@keyframes flame {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50vh) scale(0);
        opacity: 0;
    }
}

/* 火焰基础样式 */
.flame-particle {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 165, 0, 0.9),
        rgba(255, 0, 0, 0.5));
    filter: blur(3px);
    animation: flame 3s ease-out infinite;
}

/* 添加发光效果 */
.center-text {
    position: relative;
    z-index: 2;
    text-shadow: 
        0 0 10px rgba(255, 140, 0, 0.3),
        0 0 20px rgba(255, 50, 0, 0.2);
}

/* 回忆照片样式 */
.memory-image {
    position: fixed;
    width: 720px;
    height: 480px;
    top: -480px;
    left: -720px;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: all 0.8s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

.memory-image.left {
    top: -480px;
    left: -720px;
}

.memory-image.right {
    top: -480px;
    right: -720px;
}

/* 图片显示时的样式 */
.memory-image.show {
    opacity: 0.8;
    transform: translateY(-50%) scale(1);
}

.memory-image.show.left {
    top: 50%;
    left: 50%;
    transform: translate(-65%, -50%) rotate(0deg) scale(1);
}

.memory-image.show.right {
    top: 50%;
    left: 50%;
    transform: translate(-65%, -50%) rotate(0deg) scale(1);
}

/* 添加老照片效果 */
.memory-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 220, 0.1);
    border-radius: 10px;
}