.deng-box1 {
    position: fixed;
    top: -40px;
    right: -10px;
    z-index: 9999;
    pointer-events: none;
    -webkit-animation: scalexiao 5s infinite ease-in-out;
    animation: scalexiao 5s infinite ease-in-out;
}

.deng-box2 {
    position: fixed;
    top: -30px;
    right: 80px;
    z-index: 9999;
    pointer-events: none;
    -webkit-animation: scaleda 6s infinite ease-in-out;
    animation: scaleda 6s infinite ease-in-out;
}

.deng-box3 {
    position: fixed;
    top: -40px;
    left: -20px;
    z-index: 9999;
    pointer-events: none;
    -webkit-animation: scalexiao 5s infinite ease-in-out;
    animation: scalexiao 5s infinite ease-in-out;
}

.deng-box4 {
    position: fixed;
    top: -30px;
    left: 10px;
    z-index: 9999;
    pointer-events: none;
    -webkit-animation: scaleda 6s infinite ease-in-out;
    animation: scaleda 6s infinite ease-in-out;
}

/* 为每个灯笼的摆动设置不同的延迟时间，实现交错效果 */
.deng-box1 .deng {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 50px;
    background: #d8000f !important;
    background: rgba(216, 0, 15, 0.8) !important;
    border-radius: 50% 50%;
    -webkit-transform-origin: 50% -100px;
    transform-origin: 50% -100px;
    -webkit-animation: swing 6s infinite ease-in-out;
    animation: swing 6s infinite ease-in-out;
    box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
}

.deng-box2 .deng {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 50px;
    background: #d8000f;
    background: rgba(216, 0, 15, 0.8);
    border-radius: 50% 50%;
    -webkit-transform-origin: 50% -100px;
    transform-origin: 50% -100px;
    -webkit-animation: swing 5.5s infinite ease-in-out;
    animation: swing 5.5s infinite ease-in-out;
    -webkit-animation-delay: -1.2s;
    animation-delay: -1.2s;
    box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
}

.deng-box3 .deng {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 50px;
    background: #d8000f !important;
    background: rgba(216, 0, 15, 0.8) !important;
    border-radius: 50% 50%;
    -webkit-transform-origin: 50% -100px;
    transform-origin: 50% -100px;
    -webkit-animation: swing 6s infinite ease-in-out;
    animation: swing 6s infinite ease-in-out;
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
    box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
}

.deng-box4 .deng {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 50px;
    background: #d8000f;
    background: rgba(216, 0, 15, 0.8);
    border-radius: 50% 50%;
    -webkit-transform-origin: 50% -100px;
    transform-origin: 50% -100px;
    -webkit-animation: swing 5.5s infinite ease-in-out;
    animation: swing 5.5s infinite ease-in-out;
    -webkit-animation-delay: -2.2s;
    animation-delay: -2.2s;
    box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
}

/* 流苏也要跟随各自的灯笼摆动 */
.deng-box1 .shui-a {
    position: relative;
    width: 5px;
    height: 20px;
    margin: -5px 0 0 59px;
    -webkit-animation: swing 6s infinite ease-in-out;
    animation: swing 6s infinite ease-in-out;
    -webkit-transform-origin: 50% -45px;
    transform-origin: 50% -45px;
    background: #ffa500 !important;
    border-radius: 0 0 5px 5px;
}

.deng-box2 .shui-a {
    position: relative;
    width: 5px;
    height: 20px;
    margin: -5px 0 0 59px;
    -webkit-animation: swing 5.5s infinite ease-in-out;
    animation: swing 5.5s infinite ease-in-out;
    -webkit-animation-delay: -1.2s;
    animation-delay: -1.2s;
    -webkit-transform-origin: 50% -45px;
    transform-origin: 50% -45px;
    background: #ffa500 !important;
    border-radius: 0 0 5px 5px;
}

.deng-box3 .shui-a {
    position: relative;
    width: 5px;
    height: 20px;
    margin: -5px 0 0 59px;
    -webkit-animation: swing 6s infinite ease-in-out;
    animation: swing 6s infinite ease-in-out;
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
    -webkit-transform-origin: 50% -45px;
    transform-origin: 50% -45px;
    background: #ffa500 !important;
    border-radius: 0 0 5px 5px;
}

.deng-box4 .shui-a {
    position: relative;
    width: 5px;
    height: 20px;
    margin: -5px 0 0 59px;
    -webkit-animation: swing 5.5s infinite ease-in-out;
    animation: swing 5.5s infinite ease-in-out;
    -webkit-animation-delay: -2.2s;
    animation-delay: -2.2s;
    -webkit-transform-origin: 50% -45px;
    transform-origin: 50% -45px;
    background: #ffa500 !important;
    border-radius: 0 0 5px 5px;
}

.deng-a {
    width: 100px;
    height: 90px;
    background: #d8000f !important;
    background: rgba(216, 0, 15, 0.1) !important;
    margin: 12px 8px 8px 10px;
    border-radius: 50% 50%;
    border: 2px solid #dc8f03;
}

.deng-b {
    width: 45px;
    height: 90px;
    background: #d8000f;
    background: rgba(216, 0, 15, 0.1) !important;
    margin: -2px 8px 8px 26px;
    border-radius: 50% 50%;
    border: 2px solid #dc8f03 !important;
}

.xian {
    position: absolute;
    top: -20px;
    left: 60px;
    width: 2px;
    height: 20px;
    background: #dc8f03 !important;
}

.shui-b {
    position: absolute;
    top: 14px;
    left: -2px;
    width: 10px;
    height: 10px;
    background: #dc8f03 !important;
    border-radius: 50%;
}

.shui-c {
    position: absolute;
    top: 18px;
    left: -2px;
    width: 10px;
    height: 35px;
    background: #ffa500 !important;
    border-radius: 0 0 0 5px;
}

.deng:before {
    position: absolute;
    top: -7px;
    left: 29px;
    height: 12px;
    width: 60px;
    content: " ";
    display: block;
    z-index: 999;
    border-radius: 5px 5px 0 0;
    border: solid 1px #dc8f03;
    background: #ffa500;
    background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
}

.deng:after {
    position: absolute;
    bottom: -7px;
    left: 10px;
    height: 12px;
    width: 60px;
    content: " ";
    display: block;
    margin-left: 20px;
    border-radius: 0 0 5px 5px;
    border: solid 1px #dc8f03;
    background: #ffa500;
    background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
}

.deng-t {
    font-family: 华文行楷, Arial, Lucida Grande, Tahoma, sans-serif;
    font-size: 32px;
    color: #dc8f03 !important;
    font-weight: bold;
    line-height: 85px;
    text-align: center;
    text-shadow: 0 0 20px #dc8f03;
}

.deng-t,
.deng-box1,
.deng-box2,
.deng-box3,
.deng-box4 {
    background: transparent !important;
}

@-moz-keyframes swing {
    0% {
        -moz-transform: rotate(-6deg)
    }
    50% {
        -moz-transform: rotate(6deg)
    }
    100% {
        -moz-transform: rotate(-6deg)
    }
}

@-webkit-keyframes swing {
    0% {
        -webkit-transform: rotate(-6deg)
    }
    50% {
        -webkit-transform: rotate(6deg)
    }
    100% {
        -webkit-transform: rotate(-6deg)
    }
}

@keyframes swing {
    0% {
        transform: rotate(-6deg)
    }
    50% {
        transform: rotate(6deg)
    }
    100% {
        transform: rotate(-6deg)
    }
}

@keyframes scaleda {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.08);
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scalexiao {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.92);
    }
    70% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}




/* 默认灯笼大小（PC大屏） */
.deng-box1 .deng,
.deng-box2 .deng,
.deng-box3 .deng,
.deng-box4 .deng {
    width: 120px;
    height: 90px;
}

.deng-t {
    font-size: 32px;
    line-height: 85px;
}

/* 1400px 及以下屏幕 */
@media (max-width: 1400px) {
    .deng-box1 .deng,
    .deng-box2 .deng,
    .deng-box3 .deng,
    .deng-box4 .deng {
        width: 100px;
        height: 75px;
    }

    .deng-t {
        font-size: 28px;
        line-height: 70px;
    }

    .deng-a {
        width: 84px;
        height: 75px;
        margin: 10px 6px 6px 8px;
    }

    .deng-b {
        width: 38px;
        height: 75px;
        margin: -2px 6px 6px 22px;
    }

    .xian {
        left: 50px;
    }

    .shui-a {
        margin: -5px 0 0 49px;
    }

    .deng:before {
        left: 24px;
        width: 50px;
    }

    .deng:after {
        left: 8px;
        width: 50px;
    }
}

/* 1200px 及以下屏幕 */
@media (max-width: 1200px) {
    .deng-box1 .deng,
    .deng-box2 .deng,
    .deng-box3 .deng,
    .deng-box4 .deng {
        width: 80px;
        height: 60px;
    }

    .deng-t {
        font-size: 22px;
        line-height: 55px;
    }

    .deng-a {
        width: 68px;
        height: 60px;
        margin: 8px 5px 5px 6px;
    }

    .deng-b {
        width: 30px;
        height: 60px;
        margin: -2px 5px 5px 18px;
    }

    .xian {
        top: -15px;
        left: 40px;
        height: 15px;
    }

    .shui-a {
        width: 4px;
        height: 16px;
        margin: -5px 0 0 39px;
    }

    .shui-b {
        top: 10px;
        width: 8px;
        height: 8px;
    }

    .shui-c {
        top: 14px;
        width: 8px;
        height: 28px;
    }

    .deng:before {
        top: -5px;
        left: 19px;
        height: 10px;
        width: 40px;
    }

    .deng:after {
        bottom: -5px;
        left: 6px;
        height: 10px;
        width: 40px;
        margin-left: 16px;
    }

    .deng-box1 .shui-a{
        margin: -5px 0 0 37px;
    }
    .deng-box2 .shui-a{
        margin: -5px 0 0 40px;
    }
}

/* 991px 及以下屏幕（平板） */
@media (max-width: 991px) {
    .deng-box1 .deng,
    .deng-box2 .deng,
    .deng-box3 .deng,
    .deng-box4 .deng {
        width: 70px;
        height: 52px;
    }

    .deng-t {
        font-size: 20px;
        line-height: 48px;
    }

    .deng-a {
        width: 60px;
        height: 52px;
        margin: 7px 4px 4px 5px;
    }

    .deng-b {
        width: 26px;
        height: 52px;
        margin: -2px 4px 4px 16px;
    }

    .xian {
        top: -12px;
        left: 35px;
        height: 12px;
        width: 1.5px;
    }

    .shui-a {
        width: 3px;
        height: 14px;
        margin: -5px 0 0 34px;
    }

    .shui-b {
        top: 8px;
        left: -1.5px;
        width: 7px;
        height: 7px;
    }

    .shui-c {
        top: 12px;
        left: -1.5px;
        width: 7px;
        height: 24px;
    }

    .deng:before {
        top: -4px;
        left: 17px;
        height: 8px;
        width: 35px;
    }

    .deng:after {
        bottom: -4px;
        left: 5px;
        height: 8px;
        width: 35px;
        margin-left: 14px;
    }

    /* 调整灯笼位置，避免贴边 */
    .deng-box1 {
        top: -30px;
        right: -15px;
    }

    .deng-box2 {
        top: -20px;
        right: 5px;
    }

    .deng-box3 {
        top: -30px;
        left: -15px;
    }

    .deng-box4 {
        top: -20px;
        left: 5px;
    }
    .deng-box1 .shui-a{
        margin: -5px 0 0 37px;
    }
    .deng-box2 .shui-a{
        margin: -5px 0 0 40px;
    }
}

/* 768px 及以下屏幕（手机） */
@media (max-width: 768px) {
    .deng-box1 .deng,
    .deng-box2 .deng,
    .deng-box3 .deng,
    .deng-box4 .deng {
        width: 60px;
        height: 45px;
        margin: 30px;
    }

    .deng-t {
        font-size: 18px;
        line-height: 42px;
    }

    .deng-a {
        width: 52px;
        height: 45px;
        margin: 6px 3px 3px 4px;
        border: 1.5px solid #dc8f03;
    }

    .deng-b {
        width: 22px;
        height: 45px;
        margin: -2px 3px 3px 14px;
        border: 1.5px solid #dc8f03 !important;
    }

    .xian {
        top: -10px;
        left: 30px;
        height: 10px;
        width: 1px;
    }

    .shui-a {
        width: 2px;
        height: 12px;
        margin: -5px 0 0 29px;
    }

    .shui-b {
        top: 7px;
        left: -1px;
        width: 6px;
        height: 6px;
    }

    .shui-c {
        top: 10px;
        left: -1px;
        width: 6px;
        height: 20px;
    }

    .deng:before {
        top: -3px;
        left: 15px;
        height: 6px;
        width: 30px;
        border: solid 1px #dc8f03;
    }

    .deng:after {
        bottom: -3px;
        left: 4px;
        height: 6px;
        width: 30px;
        margin-left: 12px;
        border: solid 1px #dc8f03;
    }

    /* 调整灯笼阴影，手机上看更自然 */
    .deng-box1 .deng,
    .deng-box3 .deng {
        box-shadow: -3px 3px 30px 2px rgba(250, 108, 0, 0.8);
    }

    .deng-box2 .deng,
    .deng-box4 .deng {
        box-shadow: -3px 3px 20px 2px rgba(252, 144, 61, 0.8);
    }

    /* 调整灯笼位置，避免遮挡内容 */
    .deng-box1 {
        top: -20px;
        right: -10px;
    }

    .deng-box2 {
        top: -15px;
        right: 40px;
    }

    .deng-box3 {
        top: -20px;
        left: -10px;
    }

    .deng-box4 {
        top: -15px;
        left: 0px;
    }
    .deng-box1 .shui-a{
        margin: -5px 0 0 30px;
    }
    .deng-box2 .shui-a{
        margin: -5px 0 0 33px;
    }
}