/* 黑名单页面容器 */
.blacklist-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 区块样式 */
.section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* 添加表单样式 */
.add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮基础样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 添加按钮 - 绿色主题 */
.btn-add {
    background-color: #4CAF50;
    color: white;
}

.btn-add:hover {
    background-color: #45a049;
}

/* 删除按钮 - 红色主题 */
.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* 刷新按钮 - 蓝色主题 */
.btn-refresh {
    background-color: #007bff;
    color: white;
}

.btn-refresh:hover {
    background-color: #0056b3;
}

/* 黑名单列表样式 */
.blacklist-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blacklist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blacklist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 用户复选框样式 */
.user-checkbox {
    margin-right: 10px;
}

.user-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.user-avatar {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-id {
    color: #666;
    font-size: 0.9em;
}

.user-secondary {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
}

/* 批量操作按钮区域 */
.batch-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

/* 删除按钮样式 - 圆形 */
.btn-delete-circle {
    background: #dc3545;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete-circle:hover {
    background: #c82333;
}

/* 空状态提示 */
.empty-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 群黑名单部分样式 */
.group-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.group-section h3 {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 1.2em;
}

/* 离线提示样式 */
.bot-offline-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.offline-content {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offline-icon {
    width: 64px;
    height: 64px;
    fill: #dc3545;
    margin-bottom: 20px;
}

/* 搜索表单样式 */
.search-form {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.search-form .form-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form .form-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.search-form .form-input::placeholder {
    color: #999;
}

.search-results {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* 高亮搜索结果 */
.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blacklist-container {
        padding: 10px;
    }
    
    .add-form {
        flex-direction: column;
    }
    
    .user-secondary {
        flex-direction: column;
        gap: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blacklist-item {
    animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* 操作反馈样式 */
.feedback-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.feedback-success {
    background-color: #28a745;
}

.feedback-error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}