/* 悬浮提示窗口样式 */
#cookies-window {
    width: 370px;
    background: rgba(255, 255, 255, 0.85);
    color: #363636;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    border-radius: 12px;
    transition: .3s;
    z-index: 1002;
    user-select: none;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #555a6121 !important;
    overflow: hidden;
}

/* 不同位置的样式 */
.top-left {
    top: 80px;
    left: 10px;
}

.top-right {
    top: 80px;
    right: 10px;
}

.bottom-left {
    bottom: 80px;
    left: 10px;
}

.bottom-right {
    bottom: 80px;
    right: 10px;
}

/* 窗口背景图 */
#cookies-window::before {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    bottom: 0;
    left: 0;
    background-image: url("https://img.tyhua.top/star8img/img/hallo.webp");
    background-size: 130px;
    background-repeat: no-repeat;
    background-position: right bottom;
    z-index: -1;
}

/* 暗色模式支持 */
.io-black-mode #cookies-window {
    border: none !important;
}

/* 窗口标题 */
#cookies-window .cookies-window-title {
    padding-bottom: 5px;
    padding-top: 3px;
    border-bottom: 1px solid #e3e8f7;
    font-size: 15px;
    font-weight: 700;
}

/* 窗口内容 */
#cookies-window .cookies-window-content {
    font-size: 14px;
    display: flex;
    align-items: center;
    margin: 10px 0;
    margin-right: 100px;
}

.cookies-window-content {
    margin-top: 10px !important;
    margin-bottom: 5px;
}

/* 链接样式 */
.cookies-link {
    margin-right: auto;
    font-size: 16px;
    text-decoration: none;
    color: #363636;
}

.cookies-link::after {
    content: "";
    display: inline-block;
    padding: 2px;
    margin-left: 5px;
    font-size: 15px;
    font-weight: bold;
}

/* 关闭按钮 */
#close-cookies-window {
    position: absolute;
    right: 13px;
    top: 5px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 5px;
}

#close-cookies-window:hover {
    color: #333;
}

/* 暗色模式链接样式 */
.io-black-mode .cookies-link,
.io-black-mode .cookies-link::after {
    color: #000 !important;
}

/* 动画效果 */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.42, 0, 0.3, 1.11);
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.pop-in {
    animation: popIn 0.6s cubic-bezier(0.42, 0, 0.3, 1.11);
}

/* 移动设备适配 */
@media (max-width: 768px) {
    #cookies-window {
        display: none;
        width: 90%;
        max-width: 370px;
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    .show-on-mobile #cookies-window {
        display: flex;
    }
}