#loading{bottom:0;left:0;position:fixed;right:0;top:0;z-index:9999;background-color:#f4f5f5;pointer-events:none;}.loader-inner{will-change:transform;width:40px;height:40px;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px;background-color:#3742fa;border-radius:50%;animation:scaleout 0.6s infinite ease-in-out forwards;text-indent:-99999px;z-index:999991;}@keyframes scaleout{0%{transform:scale(0);opacity:0;}40%{opacity:1;}100%{transform:scale(1);opacity:0;}}

/* 隐藏底部的复制按钮工具栏 */
.cnblogs_code > .cnblogs_code_toolbar:last-child {
    display: none !important;
}

/* 美化并居中顶部的复制按钮（缩小版） */
.cnblogs_code_toolbar:first-child {
    text-align: center !important;
    height: 28px !important; /* 减小高度 */
    line-height: 28px !important; /* 配合高度调整 */
    background: #f7f7f7 !important;
    border-radius: 4px 4px 0 0 !important;
    border-bottom: 1px solid #e1e1e1 !important;
    margin-bottom: 0 !important;
}

/* 隐藏原生的复制图标 */
.cnblogs_code_toolbar .cnblogs_code_copy a img {
    display: none !important;
}

/* 创建新的小号居中按钮样式 */
.cnblogs_code_toolbar .cnblogs_code_copy a[onclick="copyCnblogsCode(this)"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-size: 11px !important; /* 字体变小 */
    font-weight: bold !important;
    padding: 4px 12px !important; /* 内边距变小 */
    border-radius: 12px !important; /* 圆角半径变小 */
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; /* 阴影变小 */
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

/* 使用伪元素添加按钮文字 */
.cnblogs_code_toolbar .cnblogs_code_copy a[onclick="copyCnblogsCode(this)"]::after {
    content: "📋 复制代码" !important;
    display: inline-block !important;
}

/* 悬停效果 */
.cnblogs_code_toolbar .cnblogs_code_copy a[onclick="copyCnblogsCode(this)"]:hover {
    transform: translateY(-1px) !important; /* 悬停效果减弱 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    opacity: 0.9 !important;
}

/* 点击效果 */
.cnblogs_code_toolbar .cnblogs_code_copy a[onclick="copyCnblogsCode(this)"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* 复制成功动画 */
@keyframes copySuccess {
    0% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    50% {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    }
    100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
}

.cnblogs_code_toolbar .cnblogs_code_copy a[onclick="copyCnblogsCode(this)"].copied {
    animation: copySuccess 0.5s ease !important;
}