/* 浮动按钮样式 */
.zsc-floating-button {
    position: fixed;
    z-index: 999999;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.01) !important; 
}
.zsc-floating-button:hover {
  background-color: transparent !important; 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.01) !important; 
}
.zsc-loader {
    --color-one: #ffbf48;
    --color-two: #be4a1d;
    --color-three: #ffbf4780;
    --color-four: #bf4a1d80;
    --color-five: #ffbf4740;
    --time-animation: 2s;
    position: relative;
    border-radius: 50%;
    transform: scale(var(--size, 1));
    box-shadow:
        0 0 25px 0 var(--color-three),
        0 20px 50px 0 var(--color-four);
    animation: zsc-colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.zsc-loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border-top: solid 1px var(--color-one);
    border-bottom: solid 1px var(--color-two);
    background: linear-gradient(180deg, var(--color-five), var(--color-four));
    box-shadow:
        inset 0 10px 10px 0 var(--color-three),
        inset 0 -10px 10px 0 var(--color-four);
}

.zsc-loader .box {
    width: 100px;
    height: 100px;
    background: linear-gradient(
        180deg,
        var(--color-one) 30%,
        var(--color-two) 70%
    );
    mask: url(#clipping);
    -webkit-mask: url(#clipping);
}

.zsc-loader svg {
    position: absolute;
}

.zsc-loader svg #clipping {
    filter: contrast(15);
    animation: zsc-roundness calc(var(--time-animation) / 2) linear infinite;
}

.zsc-loader svg #clipping polygon {
    filter: blur(7px);
}

.zsc-loader svg #clipping polygon:nth-child(1) {
    transform-origin: 75% 25%;
    transform: rotate(90deg);
}

.zsc-loader svg #clipping polygon:nth-child(2) {
    transform-origin: 50% 50%;
    animation: zsc-rotation var(--time-animation) linear infinite reverse;
}

.zsc-loader svg #clipping polygon:nth-child(3) {
    transform-origin: 50% 60%;
    animation: zsc-rotation var(--time-animation) linear infinite;
    animation-delay: calc(var(--time-animation) / -3);
}

.zsc-loader svg #clipping polygon:nth-child(4) {
    transform-origin: 40% 40%;
    animation: zsc-rotation var(--time-animation) linear infinite reverse;
}

.zsc-loader svg #clipping polygon:nth-child(5) {
    transform-origin: 40% 40%;
    animation: zsc-rotation var(--time-animation) linear infinite reverse;
    animation-delay: calc(var(--time-animation) / -2);
}

.zsc-loader svg #clipping polygon:nth-child(6) {
    transform-origin: 60% 40%;
    animation: zsc-rotation var(--time-animation) linear infinite;
}

.zsc-loader svg #clipping polygon:nth-child(7) {
    transform-origin: 60% 40%;
    animation: zsc-rotation var(--time-animation) linear infinite;
    animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes zsc-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes zsc-roundness {
    0% {
        filter: contrast(15);
    }
    20% {
        filter: contrast(3);
    }
    40% {
        filter: contrast(3);
    }
    60% {
        filter: contrast(15);
    }
    100% {
        filter: contrast(15);
    }
}

@keyframes zsc-colorize {
    0% {
        filter: hue-rotate(0deg);
    }
    20% {
        filter: hue-rotate(-30deg);
    }
    40% {
        filter: hue-rotate(-60deg);
    }
    60% {
        filter: hue-rotate(-90deg);
    }
    80% {
        filter: hue-rotate(-45deg);
    }
    100% {
        filter: hue-rotate(0deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zsc-floating-button {
        bottom: 10px;
        left: 10px;
        transform: scale(0.8);
    }
    
    .zsc-chat-window {
        width: 95% !important;
        height: 70vh !important;
        right: 2.5% !important;
        left: auto !important;
        bottom: 80px !important;
    }
}