.role-container {
    padding: 20px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 筛选标签样式 - 与tool.php保持一致 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tab:hover {
    background-color: #e0e0e0;
    color: #555;
}

.filter-tab.active {
    background-color: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.role-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.role-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

.role-badge .admin-badge,
.role-badge .user-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge .admin-badge {
    background: #6c757d;
    color: white;
}

.role-badge .user-badge {
    background: #17a2b8;
    color: white;
}

.role-description {
    margin-bottom: 15px;
}

.role-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.role-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 按钮样式已移除 */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* 间距工具类 - 与tool.php保持一致 */
.mr-1 {
    margin-right: 4px !important;
}

.mr-2 {
    margin-right: 8px !important;
}

/* 角色卡片样式增强 */
.role-card {
    transition: all 0.3s ease;
}