/* ==================== 抽奖页面周边鞭炮装饰 ==================== */

/* ========== 鞭炮串容器 ========== */
.firecracker-border {
    position: fixed;
    pointer-events: none;
    z-index: 2;
}

/* 左侧鞭炮串 */
.firecracker-border.left {
    left: 10px;
    top: 15%;
    bottom: 15%;
    width: 60px;
}

/* 右侧鞭炮串 */
.firecracker-border.right {
    right: 10px;
    top: 15%;
    bottom: 15%;
    width: 60px;
}

/* 鞭炮绳子 */
.firecracker-rope {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        #8b4513 0%, #a0522d 20%, #8b4513 40%, 
        #a0522d 60%, #8b4513 80%, #a0522d 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

/* 单个鞭炮 */
.firecracker-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 35px;
    animation: firecrackerSwing 2s ease-in-out infinite;
}

/* 鞭炮主体 */
.firecracker-body {
    width: 100%;
    height: 28px;
    background: linear-gradient(90deg, #cc0000 0%, #ff2020 30%, #ff4040 50%, #ff2020 70%, #cc0000 100%);
    border-radius: 3px;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(200, 0, 0, 0.5);
}

/* 鞭炮顶部金边 */
.firecracker-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
    border-radius: 3px 3px 0 0;
}

/* 鞭炮底部金边 */
.firecracker-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
    border-radius: 0 0 3px 3px;
}

/* 鞭炮引线 */
.firecracker-fuse {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: linear-gradient(180deg, #333 0%, #666 50%, #333 100%);
}

/* 引线火花 */
.firecracker-fuse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffff00 0%, #ff8c00 50%, transparent 70%);
    border-radius: 50%;
    animation: fuseSpark 0.3s ease-in-out infinite;
}

/* 鞭炮摇摆动画 */
@keyframes firecrackerSwing {
    0%, 100% { transform: translateX(-50%) rotate(-3deg); }
    50% { transform: translateX(-50%) rotate(3deg); }
}

/* 引线火花闪烁 */
@keyframes fuseSpark {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.3); }
}

/* 鞭炮位置分布 - 左侧 */
.firecracker-border.left .firecracker-item:nth-child(2) { top: 5%; animation-delay: 0s; }
.firecracker-border.left .firecracker-item:nth-child(3) { top: 15%; animation-delay: 0.2s; }
.firecracker-border.left .firecracker-item:nth-child(4) { top: 25%; animation-delay: 0.4s; }
.firecracker-border.left .firecracker-item:nth-child(5) { top: 35%; animation-delay: 0.1s; }
.firecracker-border.left .firecracker-item:nth-child(6) { top: 45%; animation-delay: 0.3s; }
.firecracker-border.left .firecracker-item:nth-child(7) { top: 55%; animation-delay: 0.5s; }
.firecracker-border.left .firecracker-item:nth-child(8) { top: 65%; animation-delay: 0.15s; }
.firecracker-border.left .firecracker-item:nth-child(9) { top: 75%; animation-delay: 0.35s; }
.firecracker-border.left .firecracker-item:nth-child(10) { top: 85%; animation-delay: 0.25s; }

/* 鞭炮位置分布 - 右侧 */
.firecracker-border.right .firecracker-item:nth-child(2) { top: 5%; animation-delay: 0.1s; }
.firecracker-border.right .firecracker-item:nth-child(3) { top: 15%; animation-delay: 0.3s; }
.firecracker-border.right .firecracker-item:nth-child(4) { top: 25%; animation-delay: 0.5s; }
.firecracker-border.right .firecracker-item:nth-child(5) { top: 35%; animation-delay: 0.2s; }
.firecracker-border.right .firecracker-item:nth-child(6) { top: 45%; animation-delay: 0.4s; }
.firecracker-border.right .firecracker-item:nth-child(7) { top: 55%; animation-delay: 0s; }
.firecracker-border.right .firecracker-item:nth-child(8) { top: 65%; animation-delay: 0.25s; }
.firecracker-border.right .firecracker-item:nth-child(9) { top: 75%; animation-delay: 0.45s; }
.firecracker-border.right .firecracker-item:nth-child(10) { top: 85%; animation-delay: 0.15s; }

/* ========== 顶部横幅鞭炮 ========== */
.firecracker-top {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    pointer-events: none;
    z-index: 2;
}

.firecracker-top .firecracker-item {
    position: relative;
    left: auto;
    transform: none;
    animation: firecrackerBounce 1.5s ease-in-out infinite;
}

.firecracker-top .firecracker-item:nth-child(1) { animation-delay: 0s; }
.firecracker-top .firecracker-item:nth-child(2) { animation-delay: 0.2s; }
.firecracker-top .firecracker-item:nth-child(3) { animation-delay: 0.4s; }
.firecracker-top .firecracker-item:nth-child(4) { animation-delay: 0.1s; }
.firecracker-top .firecracker-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes firecrackerBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

/* ========== 四角装饰鞭炮堆 ========== */
.firecracker-corner {
    position: fixed;
    pointer-events: none;
    z-index: 2;
    width: 80px;
    height: 80px;
}

.firecracker-corner.top-left {
    top: 80px;
    left: 15px;
}

.firecracker-corner.top-right {
    top: 80px;
    right: 15px;
}

.firecracker-corner.bottom-left {
    bottom: 100px;
    left: 15px;
}

.firecracker-corner.bottom-right {
    bottom: 100px;
    right: 15px;
}

/* 鞭炮堆叠效果 */
.firecracker-pile {
    position: relative;
    width: 100%;
    height: 100%;
}

.firecracker-pile .pile-item {
    position: absolute;
    width: 16px;
    height: 28px;
    background: linear-gradient(90deg, #cc0000 0%, #ff2020 50%, #cc0000 100%);
    border-radius: 2px;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        0 2px 5px rgba(200, 0, 0, 0.4);
}

.firecracker-pile .pile-item::before,
.firecracker-pile .pile-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
}

.firecracker-pile .pile-item::before { top: 0; border-radius: 2px 2px 0 0; }
.firecracker-pile .pile-item::after { bottom: 0; border-radius: 0 0 2px 2px; }

/* 堆叠位置 */
.firecracker-pile .pile-item:nth-child(1) { left: 10px; top: 40px; transform: rotate(-15deg); }
.firecracker-pile .pile-item:nth-child(2) { left: 30px; top: 35px; transform: rotate(10deg); }
.firecracker-pile .pile-item:nth-child(3) { left: 50px; top: 42px; transform: rotate(-5deg); }
.firecracker-pile .pile-item:nth-child(4) { left: 20px; top: 20px; transform: rotate(20deg); }
.firecracker-pile .pile-item:nth-child(5) { left: 40px; top: 15px; transform: rotate(-10deg); }

/* 爆炸火花效果 */
.firecracker-spark {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffff00 0%, #ff8c00 40%, transparent 70%);
    border-radius: 50%;
    animation: sparkPop 0.8s ease-out infinite;
}

.firecracker-corner .firecracker-spark:nth-child(1) { top: 10px; left: 30px; animation-delay: 0s; }
.firecracker-corner .firecracker-spark:nth-child(2) { top: 5px; left: 50px; animation-delay: 0.3s; }
.firecracker-corner .firecracker-spark:nth-child(3) { top: 15px; left: 60px; animation-delay: 0.6s; }

@keyframes sparkPop {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .firecracker-border { display: none; }
    .firecracker-top { gap: 15px; }
    .firecracker-top .firecracker-item { 
        width: 15px; 
        height: 28px; 
    }
    .firecracker-top .firecracker-body { height: 22px; }
    .firecracker-corner { width: 60px; height: 60px; }
}

/* ========== GPU 加速 ========== */
.firecracker-border,
.firecracker-item,
.firecracker-body,
.firecracker-fuse,
.firecracker-corner,
.firecracker-pile,
.pile-item,
.firecracker-spark,
.hanging-lantern,
.red-packet-deco,
.gold-ingot,
.fu-seal,
.chinese-knot-deco,
.corner-glow,
.floating-coin,
.border-sparkle {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ==================== 悬挂灯笼装饰 ==================== */
.hanging-lantern {
    position: fixed;
    pointer-events: none;
    z-index: 2;
    animation: lanternSway 4s ease-in-out infinite;
}

.hanging-lantern.lantern-1 { top: 60px; left: 80px; animation-delay: 0s; }
.hanging-lantern.lantern-2 { top: 60px; right: 80px; animation-delay: 0.5s; }
.hanging-lantern.lantern-3 { top: 120px; left: 20px; animation-delay: 1s; transform: scale(0.7); }
.hanging-lantern.lantern-4 { top: 120px; right: 20px; animation-delay: 1.5s; transform: scale(0.7); }

.lantern-string {
    width: 2px;
    height: 20px;
    background: #8b4513;
    margin: 0 auto;
}

.lantern-main {
    width: 50px;
    height: 65px;
    position: relative;
}

.lantern-top-cap {
    width: 30px;
    height: 8px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    border-radius: 3px 3px 0 0;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.lantern-body-main {
    width: 50px;
    height: 55px;
    background: linear-gradient(180deg, #ff3030 0%, #cc0000 50%, #990000 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(255, 100, 50, 0.5),
        0 0 30px rgba(255, 50, 50, 0.6);
    animation: lanternGlow 2s ease-in-out infinite;
}

.lantern-body-main::before {
    content: '福';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.lantern-bottom-cap {
    width: 30px;
    height: 6px;
    background: linear-gradient(180deg, #b8860b, #ffd700);
    border-radius: 0 0 3px 3px;
    margin: 0 auto;
}

.lantern-tassel-main {
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, #ffd700, #ff6600);
    margin: 0 auto;
    border-radius: 0 0 2px 2px;
    animation: tasselSwing 2s ease-in-out infinite;
}

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

@keyframes lanternGlow {
    0%, 100% { box-shadow: inset 0 0 20px rgba(255, 100, 50, 0.5), 0 0 30px rgba(255, 50, 50, 0.6); }
    50% { box-shadow: inset 0 0 30px rgba(255, 150, 80, 0.7), 0 0 50px rgba(255, 80, 50, 0.8); }
}

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

/* ==================== 红包装饰 ==================== */
.red-packet-deco {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 45px;
    height: 60px;
    background: linear-gradient(180deg, #ff2020 0%, #cc0000 50%, #990000 100%);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(200, 0, 0, 0.5);
    animation: packetFloat 6s ease-in-out infinite;
}

.red-packet-deco::before {
    content: '福';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.red-packet-deco::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    opacity: 0.5;
}

.red-packet-deco.packet-1 { bottom: 20%; left: 5%; animation-delay: 0s; }
.red-packet-deco.packet-2 { bottom: 30%; right: 5%; animation-delay: 2s; }
.red-packet-deco.packet-3 { top: 40%; left: 3%; animation-delay: 4s; transform: scale(0.8); }
.red-packet-deco.packet-4 { top: 50%; right: 3%; animation-delay: 3s; transform: scale(0.8); }

@keyframes packetFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ==================== 金元宝装饰 ==================== */
.gold-ingot {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 50px;
    height: 30px;
    animation: ingotShine 3s ease-in-out infinite;
}

.gold-ingot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fff5cc 0%, #ffd700 30%, #ffb800 60%, #b8860b 100%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    box-shadow: 
        inset 0 5px 15px rgba(255, 255, 255, 0.6),
        0 5px 20px rgba(255, 180, 0, 0.6);
}

.gold-ingot::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    border-radius: 50% 50% 0 0;
}

.gold-ingot.ingot-1 { bottom: 15%; left: 8%; animation-delay: 0s; }
.gold-ingot.ingot-2 { bottom: 25%; right: 8%; animation-delay: 1s; }
.gold-ingot.ingot-3 { bottom: 10%; left: 15%; animation-delay: 2s; transform: scale(0.7); }
.gold-ingot.ingot-4 { bottom: 18%; right: 12%; animation-delay: 1.5s; transform: scale(0.7); }

@keyframes ingotShine {
    0%, 100% { filter: brightness(1); transform: translateY(0); }
    50% { filter: brightness(1.3); transform: translateY(-5px); }
}

/* ==================== 福字印章 ==================== */
.fu-seal {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 70px;
    height: 70px;
    border: 4px solid #cc0000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #cc0000;
    font-family: 'Ma Shan Zheng', serif;
    opacity: 0.3;
    animation: sealPulse 5s ease-in-out infinite;
}

.fu-seal.seal-1 { top: 25%; left: 5%; transform: rotate(-15deg); }
.fu-seal.seal-2 { top: 35%; right: 5%; transform: rotate(10deg); animation-delay: 2s; }
.fu-seal.seal-3 { bottom: 35%; left: 8%; transform: rotate(5deg); animation-delay: 1s; }
.fu-seal.seal-4 { bottom: 40%; right: 8%; transform: rotate(-10deg); animation-delay: 3s; }

@keyframes sealPulse {
    0%, 100% { opacity: 0.2; transform: rotate(var(--rotation, 0deg)) scale(1); }
    50% { opacity: 0.4; transform: rotate(var(--rotation, 0deg)) scale(1.05); }
}

.fu-seal.seal-1 { --rotation: -15deg; }
.fu-seal.seal-2 { --rotation: 10deg; }
.fu-seal.seal-3 { --rotation: 5deg; }
.fu-seal.seal-4 { --rotation: -10deg; }

/* ==================== 中国结装饰 ==================== */
.chinese-knot-deco {
    position: fixed;
    pointer-events: none;
    z-index: 2;
    animation: knotSwing 4s ease-in-out infinite;
}

.chinese-knot-deco.knot-left { top: 50%; left: 5px; }
.chinese-knot-deco.knot-right { top: 50%; right: 5px; animation-delay: 2s; }

.knot-top {
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    margin: 0 auto;
    border-radius: 2px;
}

.knot-body {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 auto;
}

.knot-center {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ff2020 0%, #cc0000 50%, #990000 100%);
    border-radius: 5px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(200, 0, 0, 0.5);
}

.knot-center::before {
    content: '吉';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
}

.knot-tassels {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.knot-tassel {
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #cc0000, #ff4040);
    border-radius: 0 0 2px 2px;
    animation: tasselDangle 2s ease-in-out infinite;
}

.knot-tassel:nth-child(1) { animation-delay: 0s; }
.knot-tassel:nth-child(2) { animation-delay: 0.2s; height: 50px; }
.knot-tassel:nth-child(3) { animation-delay: 0.4s; }

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

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

/* ==================== 四角光晕 ==================== */
.corner-glow {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 1;
    animation: cornerGlowPulse 4s ease-in-out infinite;
}

.corner-glow.glow-tl {
    top: 0; left: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
}
.corner-glow.glow-tr {
    top: 0; right: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation-delay: 1s;
}
.corner-glow.glow-bl {
    bottom: 0; left: 0;
    background: radial-gradient(circle at 0% 100%, rgba(255, 100, 50, 0.4) 0%, transparent 70%);
    animation-delay: 2s;
}
.corner-glow.glow-br {
    bottom: 0; right: 0;
    background: radial-gradient(circle at 100% 100%, rgba(255, 100, 50, 0.4) 0%, transparent 70%);
    animation-delay: 3s;
}

@keyframes cornerGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==================== 漂浮金币 ==================== */
.floating-coin {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 25px;
    height: 25px;
    background: linear-gradient(145deg, #ffd700, #ffb800, #ff8c00);
    border-radius: 50%;
    box-shadow: 
        inset -2px -2px 4px rgba(0,0,0,0.3),
        0 0 15px rgba(255, 215, 0, 0.5);
    animation: coinFloat 8s ease-in-out infinite;
}

.floating-coin::before {
    content: '¥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #8b4513;
}

.floating-coin.coin-1 { top: 20%; left: 12%; animation-delay: 0s; }
.floating-coin.coin-2 { top: 30%; right: 10%; animation-delay: 2s; }
.floating-coin.coin-3 { top: 60%; left: 8%; animation-delay: 4s; }
.floating-coin.coin-4 { top: 70%; right: 12%; animation-delay: 6s; }
.floating-coin.coin-5 { bottom: 25%; left: 15%; animation-delay: 1s; transform: scale(0.8); }
.floating-coin.coin-6 { bottom: 35%; right: 15%; animation-delay: 3s; transform: scale(0.8); }

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-25px) rotate(270deg); }
}

/* ==================== 边框闪光点 ==================== */
.border-sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: sparkleMove 3s linear infinite;
}

/* 顶部边框闪光 */
.border-sparkle.sparkle-top-1 { top: 0; animation-name: sparkleTop; animation-delay: 0s; }
.border-sparkle.sparkle-top-2 { top: 0; animation-name: sparkleTop; animation-delay: 1s; }
.border-sparkle.sparkle-top-3 { top: 0; animation-name: sparkleTop; animation-delay: 2s; }

/* 底部边框闪光 */
.border-sparkle.sparkle-bottom-1 { bottom: 0; animation-name: sparkleBottom; animation-delay: 0.5s; }
.border-sparkle.sparkle-bottom-2 { bottom: 0; animation-name: sparkleBottom; animation-delay: 1.5s; }
.border-sparkle.sparkle-bottom-3 { bottom: 0; animation-name: sparkleBottom; animation-delay: 2.5s; }

/* 左侧边框闪光 */
.border-sparkle.sparkle-left-1 { left: 0; animation-name: sparkleLeft; animation-delay: 0.3s; }
.border-sparkle.sparkle-left-2 { left: 0; animation-name: sparkleLeft; animation-delay: 1.3s; }

/* 右侧边框闪光 */
.border-sparkle.sparkle-right-1 { right: 0; animation-name: sparkleRight; animation-delay: 0.8s; }
.border-sparkle.sparkle-right-2 { right: 0; animation-name: sparkleRight; animation-delay: 1.8s; }

@keyframes sparkleTop {
    0% { left: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes sparkleBottom {
    0% { right: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

@keyframes sparkleLeft {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes sparkleRight {
    0% { bottom: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .hanging-lantern.lantern-3,
    .hanging-lantern.lantern-4 { display: none; }
    
    .red-packet-deco.packet-3,
    .red-packet-deco.packet-4 { display: none; }
    
    .gold-ingot.ingot-3,
    .gold-ingot.ingot-4 { display: none; }
    
    .fu-seal { width: 50px; height: 50px; font-size: 28px; }
    
    .chinese-knot-deco { transform: scale(0.7); }
    
    .floating-coin.coin-5,
    .floating-coin.coin-6 { display: none; }
}
