/* 字体加载必须放在最顶部 */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Inter:wght@300;400;600;700&display=swap');

/* 页面整体喜庆背景 */
body {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(217, 33, 33, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: background-shift 40s ease infinite;
}

@layer utilities {
    .text-shadow-festive {
        text-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.6);
    }
    .bg-gradient-festive {
        background: linear-gradient(135deg, #FFF8F0 0%, #D92121 40%, #FFD700 100%);
        background-size: 200% 200%;
        animation: gradient-flow 20s ease infinite alternate;
    }
    @keyframes gradient-flow {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
    }
    @keyframes background-shift {
        0% { background-position: 0% 0%; }
        50% { background-position: 100% 100%; }
        100% { background-position: 0% 0%; }
    }
    .card-festive {
        transform-style: preserve-3d;
        backface-visibility: hidden;
        box-shadow: 0 8px 30px rgba(217, 33, 33, 0.2), 0 0 20px rgba(255, 215, 0, 0.15);
    }
    .hover-lift-festive {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .hover-lift-festive:hover {
        transform: translateZ(15px) translateY(-5px);
        box-shadow: 0 15px 40px rgba(217, 33, 33, 0.3), 0 0 30px rgba(255, 215, 0, 0.25);
    }
    .content-auto {
        content-visibility: auto;
    }
    /* 倒计时样式 - 优化居中显示 */
    .countdown-container {
        background: rgba(255, 248, 240, 0.95);
        border: 3px solid #FFD700;
        border-radius: 16px;
        padding: 25px;
        margin: 25px auto;
        max-width: 600px;
        box-shadow: 0 8px 25px rgba(217, 33, 33, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    /* 倒计时装饰元素 */
    .countdown-container::before {
        content: '🎊';
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 30px;
        opacity: 0.3;
    }
    .countdown-container::after {
        content: '🎊';
        position: absolute;
        bottom: 10px;
        right: 10px;
        font-size: 30px;
        opacity: 0.3;
    }
    .countdown-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #D92121;
        color: #FFD700;
        padding: 10px 20px;
        border-radius: 8px;
        margin: 0 5px;
        min-width: 80px;
        text-align: center;
        font-family: 'Ma Shan Zheng', cursive;
        font-size: 24px;
    }
    /* 核心信息模块样式 */
    .core-info-card {
        background: rgba(255, 248, 240, 0.95);
        border: 3px solid #FFD700;
        border-radius: 16px;
        padding: 25px;
        margin: 25px auto;
        max-width: 800px;
        box-shadow: 0 8px 25px rgba(217, 33, 33, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.1);
        position: relative;
        overflow: hidden;
        transform-style: preserve-3d;
        transition: all 0.3s ease;
        /* 确保元素始终可见 */
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        height: auto !important;
    }
    
    .core-info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(217, 33, 33, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.15);
    }
    
    /* 抽奖区域增强样式 */
    .lottery-3d-container {
        background: rgba(255, 248, 240, 0.98);
        border: 4px solid #FFD700;
        border-radius: 20px;
        padding: 30px;
        margin: 25px auto;
        box-shadow: 0 12px 40px rgba(217, 33, 33, 0.2), inset 0 0 30px rgba(255, 215, 0, 0.15);
        position: relative;
        overflow: hidden;
    }
    /* 抽奖区域装饰 */
    .lottery-3d-container::before {
        content: '🎁';
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 40px;
        opacity: 0.2;
        z-index: 0;
    }
    .lottery-3d-container::after {
        content: '🎁';
        position: absolute;
        bottom: 10px;
        right: 10px;
        font-size: 40px;
        opacity: 0.2;
        z-index: 0;
    }
    /* 信息卡片装饰 */
    .core-info-card::before {
        content: '🎉';
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 30px;
        opacity: 0.3;
        z-index: 0;
    }
    .core-info-card::after {
        content: '🎉';
        position: absolute;
        bottom: 10px;
        right: 10px;
        font-size: 30px;
        opacity: 0.3;
        z-index: 0;
    }
    /* 合照功能样式 */
    .camera-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 2000; /* 最高层级 */
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .camera-video {
        width: 80%;
        max-width: 800px;
        border: 4px solid #FFD700;
        border-radius: 8px;
    }
    .camera-controls {
        margin-top: 20px;
        display: flex;
        gap: 20px;
    }
    .camera-btn {
        padding: 10px 30px;
        background: #D92121;
        color: white;
        border: none;
        border-radius: 8px;
        font-family: 'Ma Shan Zheng', cursive;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .camera-btn:hover {
        background: #8B0000;
        transform: translateY(-3px);
    }
}

/* 基础布局：全屏幕+喜庆底色 */
html, body {
    height: 100%;
    overflow-x: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    background-color: #FFF8F0;
}

/* 烟花容器 - 全屏覆盖 */
#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* 主视觉区：标题绝对居中 */
.fullscreen-section {
    min-height: 100vh;
    position: relative;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 标题容器 - 绝对居中 */
.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* 3D抽奖容器 */
.lottery-3d-container {
    transform-style: preserve-3d;
    animation: rotate-bg 30s ease-in-out infinite alternate;
}

@keyframes rotate-bg {
    0% { transform: rotateY(0deg) rotateX(5deg); }
    100% { transform: rotateY(10deg) rotateX(-5deg); }
}

/* 名字滚动3D效果 */
.roll-3d-container {
    height: 80px;
    overflow: hidden;
    line-height: 80px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* 喜庆装饰（灯笼/烟花）3D飘落 - 减少数量优化性能 */
.festive-decoration {
    position: absolute;
    opacity: 0.9;
    user-select: none;
    z-index: 10;
    transform-style: preserve-3d;
}

/* 背景层：提亮+喜庆滤镜 */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('photo/7.jpg'); /* 喜庆红金背景图 */
    background-size: cover;
    background-position: center;
    filter: brightness(0.85) contrast(1.1) saturate(1.2);
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 248, 240, 0.9) 0%, rgba(255, 248, 240, 0.95) 100%);
    z-index: -1;
}

/* 风采照片样式 - 性能优化版 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 100%, 300px), 1fr));
    gap: clamp(15px, 4vw, 24px);
    margin-top: 20px;
    contain: layout style paint;
}
.photo-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(217, 33, 33, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    contain: layout paint;
    will-change: transform;
}
.photo-item img {
    width: 100%;
    height: clamp(200px, 45vw, 280px);
    object-fit: cover;
    transition: transform 0.3s ease;
    border-bottom: 3px solid #FFD700;
    contain: layout paint;
}
.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(217, 33, 33, 0.2);
}
.photo-item:hover img {
    transform: scale(1.02);
}
.photo-caption {
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    color: #8B0000;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-top: 3px solid rgba(217, 33, 33, 0.3);
}

/* 照片边框装饰 - 简化版本 */
.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(217, 33, 33, 0.1);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover::before {
    opacity: 1;
}

.photo-item:hover::before {
    opacity: 1;
}

/* 照片加载动画 - 增强节日氛围 */
@keyframes photoLoad {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(45deg) translateZ(-50px);
        filter: blur(10px) brightness(0.5);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05) rotateY(0deg) translateZ(10px);
        filter: blur(0) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateZ(0);
        filter: blur(0) brightness(1);
    }
}

/* 增强动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}
.festive-decoration {
    animation: float 3s ease-in-out infinite;
}

/* 静态装饰元素样式 */
.static-decoration {
    position: fixed;
    user-select: none;
    z-index: 15;
    pointer-events: none;
    text-shadow: 0 0 15px currentColor;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
.text-festive-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 4s ease-in-out infinite;
}

/* 卡片翻转动画 */
@keyframes flipCard {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* 烟花爆发动画 */
@keyframes firework-burst {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(2); }
}

/* 滑动进入动画 */
@keyframes slideInUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 数字计数动画 */
@keyframes countUp {
    0% { content: '0'; }
    100% { content: attr(data-count); }
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #D92121, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 新增强的微动画效果 */

/* 闪烁动画 */
@keyframes twinkle {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}
.twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

/* 摇摆动画 */
@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}
.sway {
    animation: sway 3s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin {
    animation: spin 4s linear infinite;
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* 缩放入场动画 */
@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

/* 旋转入场动画 */
@keyframes rotateIn {
    0% { transform: rotate(-30deg) scale(0.8); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
.rotate-in {
    animation: rotateIn 0.6s ease-out;
}

/* 摇摆入场动画 */
@keyframes swingIn {
    0% { transform: rotate(-10deg) translateY(50px); opacity: 0; }
    100% { transform: rotate(0deg) translateY(0); opacity: 1; }
}
.swing-in {
    animation: swingIn 0.8s ease-out;
}

/* 增强的按钮悬停效果 */
.btn-festive {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-festive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-festive:hover::before {
    left: 100%;
}

/* 增强的卡片悬停效果 */
.card-festive-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-festive-hover:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(217, 33, 33, 0.3), 0 0 30px rgba(255, 215, 0, 0.25);
}

/* 文字流光效果 */
.text-flow {
    background: linear-gradient(90deg, #D92121, #FFD700, #D92121);
    background-size: 200% auto;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textFlow 3s linear infinite;
}

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

/* 背景粒子效果 */
.particle-bg {
    position: relative;
    overflow: hidden;
}

/* 增强的滚动动画效果 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 增强的3D变换效果 */
@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    33% { transform: rotateX(10deg) rotateY(10deg) rotateZ(5deg); }
    66% { transform: rotateX(-10deg) rotateY(-10deg) rotateZ(-5deg); }
    100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}
.rotate-3d {
    animation: rotate3d 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 增强的3D悬浮效果 */
@keyframes float3d {
    0%, 100% { transform: translateY(0px) translateZ(0px) rotateY(0deg); }
    33% { transform: translateY(-15px) translateZ(10px) rotateY(5deg); }
    66% { transform: translateY(-10px) translateZ(20px) rotateY(-5deg); }
}
.float-3d {
    animation: float3d 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 增强的流光效果 */
@keyframes glow-flow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(217, 33, 33, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
}
.glow-flow {
    animation: glow-flow 2s ease-in-out infinite;
}

/* 文字发光流动效果 */
@keyframes text-glow-flow {
    0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(217, 33, 33, 0.6), 0 0 35px rgba(255, 215, 0, 0.4); }
    100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
}
.text-glow-flow {
    animation: text-glow-flow 2.5s ease-in-out infinite;
}

/* 增强的微交互效果 - 波纹效果 */
@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

/* 增强的按钮悬停效果 */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

/* 增强的卡片翻转效果 */
@keyframes cardFlip3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}
.card-flip-3d {
    animation: cardFlip3d 10s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 星星闪烁效果 */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
}
.star-twinkle {
    animation: starTwinkle 2s ease-in-out infinite;
}

/* 增强的标题效果 */
.title-enhanced {
    background: linear-gradient(45deg, #D92121, #FFD700, #D92121);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

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

/* 增强的3D变换效果 */
@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    33% { transform: rotateX(10deg) rotateY(10deg) rotateZ(5deg); }
    66% { transform: rotateX(-10deg) rotateY(-10deg) rotateZ(-5deg); }
    100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}
.rotate-3d {
    animation: rotate3d 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 增强的流光效果 */
@keyframes glow-flow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(217, 33, 33, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5), 0 0 10px rgba(217, 33, 33, 0.3); }
}
.glow-flow {
    animation: glow-flow 2s ease-in-out infinite;
}

/* 高级文字流光效果 */
@keyframes text-glow-flow {
    0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(217, 33, 33, 0.6); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(217, 33, 33, 0.8); }
    100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.8), 0 0 10px rgba(217, 33, 33, 0.6); }
}
.text-glow-flow {
    animation: text-glow-flow 2s ease-in-out infinite;
}

/* 增强的微交互效果 */
@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

/* 增强的悬浮效果 */
@keyframes float3d {
    0%, 100% { transform: translateY(0px) translateZ(0px) rotateY(0deg); }
    33% { transform: translateY(-15px) translateZ(10px) rotateY(5deg); }
    66% { transform: translateY(-10px) translateZ(20px) rotateY(-5deg); }
}
.float-3d {
    animation: float3d 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 增强的页面加载动画 */
@keyframes fadeInUp3d {
    0% { opacity: 0; transform: translateY(30px) translateZ(-20px) rotateX(10deg); }
    100% { opacity: 1; transform: translateY(0) translateZ(0) rotateX(0); }
}
.fade-in-up-3d {
    animation: fadeInUp3d 0.8s ease-out;
    transform-style: preserve-3d;
}

/* 增强的按钮效果 */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

/* 增强的文字动画 */
@keyframes text-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.text-bounce {
    animation: text-bounce 2s ease-in-out infinite;
}

/* 增强的灯笼摇摆效果 */
@keyframes lantern-sway {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-5px); }
}
.lantern-sway {
    animation: lantern-sway 2s ease-in-out infinite;
}

/* 增强的烟花爆发效果 */
@keyframes firework-burst-3d {
    0% { opacity: 0; transform: scale(0) translateZ(0); }
    50% { opacity: 1; transform: scale(1.2) translateZ(30px); }
    100% { opacity: 0; transform: scale(2) translateZ(50px); }
}
.firework-burst-3d {
    animation: firework-burst-3d 1.5s ease-out;
    transform-style: preserve-3d;
}

/* 增强的边框动画 */
@keyframes border-glow {
    0% { border-color: rgba(217, 33, 33, 0.5); box-shadow: 0 0 5px rgba(217, 33, 33, 0.3); }
    50% { border-color: rgba(255, 215, 0, 0.8); box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    100% { border-color: rgba(217, 33, 33, 0.5); box-shadow: 0 0 5px rgba(217, 33, 33, 0.3); }
}
.border-glow {
    animation: border-glow 2s ease-in-out infinite;
    border-style: solid;
    border-width: 2px;
}