/**
 * 网盘下载按钮颜色修复
 * 修复按钮白色不显示问题
 */

/* 主要按钮颜色 - 使用更鲜艳的蓝色 */
.zib-netdisk-btn {
    background: #0073aa !important; /* WordPress 标准蓝色 */
    background-color: #0073aa !important;
    color: #ffffff !important;
    border: 1px solid #006799 !important;
    box-shadow: 0 1px 0 #006799 !important;
}

/* 按钮悬停状态 */
.zib-netdisk-btn:hover {
    background: #0085ba !important;
    background-color: #0085ba !important;
    border-color: #006799 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 0 #006799 !important;
}

/* 按钮激活状态 */
.zib-netdisk-btn:active {
    background: #006799 !important;
    background-color: #006799 !important;
    border-color: #005277 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 0 #005277 !important;
}

/* 按钮焦点状态 */
.zib-netdisk-btn:focus {
    background: #0085ba !important;
    background-color: #0085ba !important;
    border-color: #006799 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px #006799 !important;
    outline: 1px solid transparent !important;
}

/* 不同网盘类型的颜色区分 */
.zib-netdisk-btn.zib-netdisk-baidu {
    background: #ff6b35 !important; /* 百度橙色 */
    background-color: #ff6b35 !important;
    border-color: #e55a2b !important;
    box-shadow: 0 1px 0 #e55a2b !important;
}

.zib-netdisk-btn.zib-netdisk-baidu:hover {
    background: #ff7b45 !important;
    background-color: #ff7b45 !important;
}

.zib-netdisk-btn.zib-netdisk-aliyun {
    background: #ff6a00 !important; /* 阿里云橙色 */
    background-color: #ff6a00 !important;
    border-color: #e55a00 !important;
    box-shadow: 0 1px 0 #e55a00 !important;
}

.zib-netdisk-btn.zib-netdisk-aliyun:hover {
    background: #ff7a10 !important;
    background-color: #ff7a10 !important;
}

.zib-netdisk-btn.zib-netdisk-kuake {
    background: #4285f4 !important; /* 夸克蓝色 */
    background-color: #4285f4 !important;
    border-color: #3367d6 !important;
    box-shadow: 0 1px 0 #3367d6 !important;
}

.zib-netdisk-btn.zib-netdisk-kuake:hover {
    background: #5195f6 !important;
    background-color: #5195f6 !important;
}

.zib-netdisk-btn.zib-netdisk-xunlei {
    background: #1e88e5 !important; /* 迅雷蓝色 */
    background-color: #1e88e5 !important;
    border-color: #1976d2 !important;
    box-shadow: 0 1px 0 #1976d2 !important;
}

.zib-netdisk-btn.zib-netdisk-xunlei:hover {
    background: #2e98f5 !important;
    background-color: #2e98f5 !important;
}

.zib-netdisk-btn.zib-netdisk-uc {
    background: #00c853 !important; /* UC绿色 */
    background-color: #00c853 !important;
    border-color: #00b347 !important;
    box-shadow: 0 1px 0 #00b347 !important;
}

.zib-netdisk-btn.zib-netdisk-uc:hover {
    background: #10d863 !important;
    background-color: #10d863 !important;
}

.zib-netdisk-btn.zib-netdisk-weiyun {
    background: #2196f3 !important; /* 微云蓝色 */
    background-color: #2196f3 !important;
    border-color: #1976d2 !important;
    box-shadow: 0 1px 0 #1976d2 !important;
}

.zib-netdisk-btn.zib-netdisk-weiyun:hover {
    background: #31a6f3 !important;
    background-color: #31a6f3 !important;
}

.zib-netdisk-btn.zib-netdisk-lanzou {
    background: #9c27b0 !important; /* 蓝奏紫色 */
    background-color: #9c27b0 !important;
    border-color: #7b1fa2 !important;
    box-shadow: 0 1px 0 #7b1fa2 !important;
}

.zib-netdisk-btn.zib-netdisk-lanzou:hover {
    background: #ac37c0 !important;
    background-color: #ac37c0 !important;
}

.zib-netdisk-btn.zib-netdisk-pan123 {
    background: #ff5722 !important; /* 123红色 */
    background-color: #ff5722 !important;
    border-color: #e64a19 !important;
    box-shadow: 0 1px 0 #e64a19 !important;
}

.zib-netdisk-btn.zib-netdisk-pan123:hover {
    background: #ff6732 !important;
    background-color: #ff6732 !important;
}

.zib-netdisk-btn.zib-netdisk-tianyi {
    background: #3f51b5 !important; /* 天翼靛蓝 */
    background-color: #3f51b5 !important;
    border-color: #303f9f !important;
    box-shadow: 0 1px 0 #303f9f !important;
}

.zib-netdisk-btn.zib-netdisk-tianyi:hover {
    background: #4f61c5 !important;
    background-color: #4f61c5 !important;
}

.zib-netdisk-btn.zib-netdisk-mobile {
    background: #009688 !important; /* 移动青绿 */
    background-color: #009688 !important;
    border-color: #00796b !important;
    box-shadow: 0 1px 0 #00796b !important;
}

.zib-netdisk-btn.zib-netdisk-mobile:hover {
    background: #10a698 !important;
    background-color: #10a698 !important;
}

/* 禁用状态的按钮 */
.zib-netdisk-btn.zib-netdisk-disabled {
    background: #ccc !important;
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #bbb !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.zib-netdisk-btn.zib-netdisk-disabled:hover {
    background: #ccc !important;
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #bbb !important;
    box-shadow: none !important;
}

/* 强制覆盖所有可能的样式冲突 */
.zib-netdisk-btn {
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    text-align: center !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-width: 120px !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

/* 确保文本颜色始终为白色 */
.zib-netdisk-btn,
.zib-netdisk-btn:hover,
.zib-netdisk-btn:active,
.zib-netdisk-btn:focus {
    color: #ffffff !important;
}

/* 移除所有可能的伪元素装饰 */
.zib-netdisk-btn::before,
.zib-netdisk-btn::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 编辑器中的按钮样式 */
.editor-styles-wrapper .zib-netdisk-btn {
    background: #0073aa !important;
    background-color: #0073aa !important;
    color: #ffffff !important;
    border: 1px solid #006799 !important;
}

/* 经典编辑器中的按钮 */
.mce-content-body .zib-netdisk-btn {
    background: #0073aa !important;
    background-color: #0073aa !important;
    color: #ffffff !important;
    border: 1px solid #006799 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zib-netdisk-btn {
        min-width: 100px !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .zib-netdisk-btn {
        min-width: 90px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}