/* 新年灯笼样式 */
.new-year-lanterns-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* 灯笼包装器 */
.lantern-wrapper {
    position: absolute;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform-origin: top center;
}

/* 左侧灯笼 */
.left-lantern {
    left: 20px;
    animation-name: swingLeft;
}

/* 右侧灯笼 */
.right-lantern {
    right: 20px;
    animation-name: swingRight;
}

/* 灯笼顶部 */
.lantern-top {
    width: 40px;
    height: 15px;
    background: linear-gradient(90deg, #8B0000, #FF0000, #8B0000);
    border-radius: 10px 10px 0 0;
    position: relative;
    z-index: 2;
}

.lantern-top::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: #DAA520;
    border-radius: 5px;
}

.lantern-top::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 20px;
    background: linear-gradient(to right, #8B4513, #A0522D, #8B4513);
    border-radius: 3px;
}

/* 灯笼主体 */
.lantern-body {
    width: 80px;
    height: 120px;
    background: linear-gradient(45deg, #FF0000, #FF4500, #FF0000);
    border-radius: 40px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 30px rgba(255, 69, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 0, 0.3),
        inset 0 -10px 20px rgba(139, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 灯笼光线效果 */
.lantern-light {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(255, 255, 150, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: flicker 3s infinite alternate;
}

/* 灯笼文字 */
.lantern-text {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
    font-family: "SimHei", "Microsoft YaHei", "楷体", "STKaiti", serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* 灯笼底部 */
.lantern-bottom {
    width: 50px;
    height: 20px;
    background: linear-gradient(90deg, #8B0000, #FF4500, #8B0000);
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 2;
}

.lantern-bottom::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 15px;
    background: linear-gradient(90deg, #FF0000, #FF8C00, #FF0000);
    border-radius: 10px;
    z-index: 0;
}

/* 灯笼流苏 */
.lantern-tassel {
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #FFD700, #8B4513, #8B4513);
    position: relative;
    margin-top: 5px;
}

.lantern-tassel::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
}

.lantern-tassel::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
    border-radius: 50%;
}

/* 灯笼大小变体 */
.new-year-lanterns-container.small .lantern-body {
    width: 60px;
    height: 90px;
}

.new-year-lanterns-container.small .lantern-text {
    font-size: 24px;
}

.new-year-lanterns-container.large .lantern-body {
    width: 100px;
    height: 150px;
}

.new-year-lanterns-container.large .lantern-text {
    font-size: 40px;
}

/* 摆动动画 */
@keyframes swingLeft {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes swingRight {
    0%, 100% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

/* 灯笼光线闪烁效果 */
@keyframes flicker {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .new-year-lanterns-container.mobile-hide {
        display: none !important;
    }
    
    .left-lantern {
        left: 10px;
    }
    
    .right-lantern {
        right: 10px;
    }
    
    .lantern-body {
        width: 60px;
        height: 90px;
    }
    
    .lantern-text {
        font-size: 24px;
    }
}

@media screen and (max-height: 600px) {
    .lantern-wrapper {
        top: 50px;
    }
}