/* Lantern Animation Styles */
.lantern-container {
    position: fixed;
    top: -20px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: sway 3s ease-in-out infinite alternate;
    transform-origin: top center;
}

.lantern-left {
    left: 4%;
}

.lantern-right {
    right: 4%;
}

/* 绳子 */
.lantern-string {
    width: 2px;
    height: 50px;
    background: #9d0208;
}

/* 灯笼主体 */
.lantern-body {
    position: relative;
    width: 80px;
    height: 60px;
    background: var(--lantern-red);
    border-radius: 40px / 25px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -5px;
}

/* 灯笼顶盖和底盖 */
.lantern-body::before,
.lantern-body::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 6px;
    background: var(--lantern-gold);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.lantern-body::before {
    top: -3px;
}

.lantern-body::after {
    bottom: -3px;
}

.lantern-text {
    color: var(--lantern-gold);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Noto Serif SC', serif;
}

/* 灯笼穗 */
.lantern-tassel {
    width: 4px;
    height: 25px;
    background: var(--lantern-gold);
    border-radius: 0 0 4px 4px;
    position: relative;
}

/* 摇曳动画 */
@keyframes sway {
    0% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(3deg);
    }
}

/* 移动端适配：缩小灯笼 */
@media (max-width: 768px) {
    .lantern-left {
        left: 10px;
    }

    .lantern-right {
        right: 10px;
    }

    .lantern-body {
        width: 45px;
        height: 38px;
    }

    .lantern-text {
        font-size: 0.9rem;
    }

    .lantern-string {
        height: 40px;
    }

    .lantern-container {
        top: -10px;
    }
}
