:root {
    --primary-red: #D42426;
    --primary-green: #165B33;
    --primary-white: #FFFFFF;
    --accent-gold: #FFD700;
    --accent-silver: #C0C0C0;
    --bg-dark: #0A1F44;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ma Shan Zheng', cursive;
    background: url('imagebj.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--primary-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 雪花效果 */
.snow-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* 顶部标题 */
header {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.title {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px var(--accent-gold);
    animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                     0 0 20px var(--accent-gold);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                     0 0 40px var(--accent-gold);
    }
}

/* 主要内容区 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* 圣诞树样式 */
.christmas-tree {
    width: 300px;
    height: 500px;
    position: relative;
}

.tree-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tree-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: treeLights 2s infinite alternate;
}

@keyframes treeLights {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* 轮播图样式 */
.carousel-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-inner img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-white);
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--primary-white);
}

/* 底部区域 */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

.message-container {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--primary-white);
    text-shadow: 0 0 10px var(--accent-gold);
    min-height: 80px;
    line-height: 1.8;
}

.controls {
    margin: 1rem 0;
}

.music-toggle {
    background: none;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-gold);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--accent-silver);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .carousel-container {
        max-width: 600px;
    }

    .typing-text {
        font-size: 1.4rem;
    }

    .carousel-btn {
        padding: 1rem;
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 320px) {
    .title {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 雪花效果 */
.snowflake {
    position: fixed;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear infinite;
    z-index: 9999;
    filter: blur(1px);
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0.3;
    }
} 