/* 灯笼样式 */
.xcbtmw-lantern-root{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    --xcbtmw-scale: 1;
    --xcbtmw-swing-deg: 10deg;
    --xcbtmw-swing-duration: 3s;
    --xcbtmw-glow-strength: 70;
}

.xcbtmw-lantern-root.xcbtmw-minimized .xcbtmw-deng-box-custom{
    display: none !important;
}

.xcbtmw-lantern-root.xcbtmw-no-swing .xcbtmw-deng-box-custom .xcbtmw-deng,
.xcbtmw-lantern-root.xcbtmw-no-swing .xcbtmw-shui-a{
    animation: none !important;
    transform: none !important;
}

.xcbtmw-lantern-toggle{
    position: fixed;
    top: calc(12px + var(--xcbtmw-top-offset, 0px));
    z-index: 10000;
    pointer-events: auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.45);
    color: rgba(255,255,255,.95);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.xcbtmw-lantern-toggle svg{
    display: block;
}
.xcbtmw-lantern-root[data-position="right_top"] .xcbtmw-lantern-toggle{ right: 20px; }
.xcbtmw-lantern-root[data-position="left_top"] .xcbtmw-lantern-toggle{ left: 20px; }
.xcbtmw-lantern-root[data-position="both_sides"] .xcbtmw-lantern-toggle{ right: 20px; }

.xcbtmw-deng-box-custom{
    contain: layout paint;
    transform: scale(var(--xcbtmw-scale, 1));
}
.xcbtmw-deng-box-custom.left-side{ transform-origin: top left; }
.xcbtmw-deng-box-custom.right-side{ transform-origin: top right; }

.xcbtmw-deng-box-custom .xcbtmw-deng {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 50px;
    background: rgba(216, 0, 15, 0.8);
    border-radius: 50% 50%;
    transform-origin: 50% -100px;
    animation: xcbtmw-swing var(--xcbtmw-swing-duration, 3s) infinite ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: -3px 3px calc(10px + (var(--xcbtmw-glow-strength, 70) * 0.6px)) 2px rgba(250, 108, 0, calc(var(--xcbtmw-glow-strength, 70) / 100));
}

.xcbtmw-deng-a {
    width: 100px;
    height: 90px;
    background: rgba(216, 0, 15, 0.1);
    margin: 12px 8px 8px 10px;
    border-radius: 50% 50%;
    border: 2px solid #dc8f03;
}

.xcbtmw-deng-b {
    width: 45px;
    height: 90px;
    background: rgba(216, 0, 15, 0.1);
    margin: -2px 8px 8px 26px;
    border-radius: 50% 50%;
    border: 2px solid #dc8f03;
}

.xcbtmw-xian {
    position: absolute;
    top: -20px;
    left: 60px;
    width: 2px;
    height: 20px;
    background: #dc8f03;
}

.xcbtmw-shui-a {
    position: relative;
    width: 5px;
    height: 20px;
    margin: -5px 0 0 59px;
    animation: xcbtmw-swing calc(var(--xcbtmw-swing-duration, 3s) + 1s) infinite ease-in-out;
    transform-origin: 50% -45px;
    background: #ffa500;
    border-radius: 0 0 5px 5px;
}

.xcbtmw-shui-b {
    position: absolute;
    top: 14px;
    left: -2px;
    width: 10px;
    height: 10px;
    background: #dc8f03;
    border-radius: 50%;
}

.xcbtmw-shui-c {
    position: absolute;
    top: 18px;
    left: -2px;
    width: 10px;
    height: 35px;
    background: #ffa500;
    border-radius: 0 0 0 5px;
}

.xcbtmw-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);
}

.xcbtmw-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);
}

.xcbtmw-deng-t {
    font-family: 华文行楷, Arial, Lucida Grande, Tahoma, sans-serif;
    font-size: 3.2rem;
    color: #dc8f03;
    font-weight: bold;
    line-height: 85px;
    text-align: center;
}

.night .xcbtmw-deng-t, 
.night .xcbtmw-deng-box-custom {
    background: transparent !important;
}

@keyframes xcbtmw-swing {
    0% {
        transform: rotate(calc(var(--xcbtmw-swing-deg, 10deg) * -1));
    }
    50% {
        transform: rotate(var(--xcbtmw-swing-deg, 10deg));
    }
    100% {
        transform: rotate(calc(var(--xcbtmw-swing-deg, 10deg) * -1));
    }
}

@media (prefers-reduced-motion: reduce){
    .xcbtmw-deng-box-custom .xcbtmw-deng,
    .xcbtmw-shui-a{
        animation: none !important;
        transform: none !important;
    }
    .xcbtmw-deng-box-custom .xcbtmw-deng{
        box-shadow: none !important;
    }
}

/* 设置项布局样式 */
.xcbtmw-setting-field {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 15px; /* 每个设置项之间的间距 */
}

.xcbtmw-setting-field input[type="checkbox"],
.xcbtmw-setting-field input[type="text"],
.xcbtmw-setting-field select {
    margin-right: 10px; /* 输入元素与标签之间的间距 */
}

.xcbtmw-setting-field label {
    margin-right: 10px; /* 标签与输入元素之间的间距 */
    font-weight: 500; /* 可选：调整字体粗细 */
}

/* 已移除 .description-inline 相关样式 */
