/* ============================================================
 * SAOLONG网络验证系统 - 主样式表
 * 科技蓝渐变主题
 * 作者: 龙叔
 * 日期: 2026-08-18
 * ============================================================ */

:root {
    /* 主色调 */
    --sl-primary: #2196F3;
    --sl-primary-dark: #1976D2;
    --sl-accent: #00BCD4;
    --sl-success: #4CAF50;
    --sl-warning: #FF9800;
    --sl-danger: #f44336;
    --sl-info: #00BCD4;

    /* 深蓝渐变（与 dylib 站统一） */
    --sl-sidebar-gradient: linear-gradient(180deg, #0a1628 0%, #1a3a5c 50%, #0d253f 100%);
    --sl-card-gradient: linear-gradient(135deg, #2196F3, #00BCD4);

    /* 背景色 */
    --sl-bg: #f0f4f8;
    --sl-card-bg: #ffffff;

    /* 文字色 */
    --sl-text: #333333;
    --sl-text-light: #666666;
    --sl-text-muted: #999999;

    /* 边框 */
    --sl-border: #e0e6ed;
    --sl-border-light: #f0f4f8;

    /* 阴影 */
    --sl-shadow: 0 2px 12px rgba(33, 150, 243, 0.08);
    --sl-shadow-hover: 0 4px 20px rgba(33, 150, 243, 0.15);
    --sl-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* 圆角 */
    --sl-radius: 8px;
    --sl-radius-sm: 4px;
    --sl-radius-lg: 12px;

    /* 过渡 */
    --sl-transition: all 0.3s ease;
}

/* ==================== 基础重置 ==================== */
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--sl-bg);
    color: var(--sl-text);
    font-size: 14px;
    margin: 0;
    padding: 0;
}
a { color: var(--sl-primary); text-decoration: none; transition: var(--sl-transition); }
a:hover { color: var(--sl-primary-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==================== 登录页 ==================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sl-sidebar-gradient);
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33,150,243,0.15) 0%, transparent 70%);
}
.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
}
.login-card {
    background: #fff;
    border-radius: var(--sl-radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    width: 420px;
    max-width: 92vw;
    padding: 40px;
    position: relative;
    z-index: 1;
}
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--sl-card-gradient);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 12px;
}
.login-logo h1 { font-size: 22px; color: #0a1628; margin: 0 0 4px; }
.login-logo p { font-size: 13px; color: var(--sl-text-muted); margin: 0; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { font-size: 13px; color: var(--sl-text-light); margin-bottom: 6px; display: block; }
.login-form .input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    overflow: hidden;
    transition: var(--sl-transition);
}
.login-form .input-group:focus-within { border-color: var(--sl-primary); box-shadow: 0 0 0 3px rgba(33,150,243,0.1); }
.login-form .input-group-text {
    padding: 0 14px;
    color: var(--sl-text-muted);
    background: var(--sl-border-light);
    height: 42px;
    display: flex;
    align-items: center;
    font-size: 16px;
}
.login-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    height: 42px;
    font-size: 14px;
    background: transparent;
    color: var(--sl-text);
}
.login-form .captcha-row { display: flex; gap: 10px; }
.login-form .captcha-row input { flex: 1; }
.login-form .captcha-img {
    height: 42px;
    width: 120px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    cursor: pointer;
    background: var(--sl-border-light);
}
.login-form .btn-login {
    width: 100%;
    height: 44px;
    background: var(--sl-card-gradient);
    color: #fff;
    border: none;
    border-radius: var(--sl-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--sl-transition);
}
.login-form .btn-login:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(33,150,243,0.3); }
.login-form .btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================== 后台布局 ==================== */
.admin-layout { display: flex; min-height: 100vh; }

/* 侧边栏（对齐 dylib 站风格） */
.admin-sidebar {
    width: 230px;
    background: var(--sl-sidebar-gradient);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
/* Logo 区 */
.admin-sidebar .sidebar-header {
    padding: 24px 22px 12px;
    border-bottom: none;
    text-align: left;
}
.admin-sidebar .sidebar-header .logo {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.admin-sidebar .sidebar-header .logo i {
    font-size: 28px;
    background: var(--sl-card-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(33, 150, 243, 0.4));
    margin-right: 0;
}
/* 副标题 */
.admin-sidebar .sidebar-subtitle {
    padding: 0 24px 22px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* 用户区移到底部 */
.admin-sidebar .sidebar-user {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.admin-sidebar .sidebar-user .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.admin-sidebar .sidebar-user .info { overflow: hidden; }
.admin-sidebar .sidebar-user .info .name { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.admin-sidebar .sidebar-user .info .role { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* 菜单 */
.admin-sidebar .nav-menu { flex: 1; padding: 20px 0; overflow-y: auto; }
.admin-sidebar .nav-menu .nav-group { margin-bottom: 2px; }
/* 分组标题（可点击折叠） */
.admin-sidebar .nav-menu .nav-group-title {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    user-select: none;
}
.admin-sidebar .nav-menu .nav-group-title:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.03);
}
.admin-sidebar .nav-menu .nav-group-title .group-icon {
    display: flex;
    align-items: center;
    font-size: 15px;
    width: 20px;
    text-align: center;
}
.admin-sidebar .nav-menu .nav-group-title .group-text {
    flex: 1;
}
/* 折叠箭头 */
.admin-sidebar .nav-menu .nav-group-title .group-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.admin-sidebar .nav-menu .nav-group.expanded .group-arrow {
    transform: rotate(180deg);
    opacity: 1;
}
/* 子菜单容器 */
.admin-sidebar .nav-menu .nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-sidebar .nav-menu .nav-group.expanded .nav-children {
    max-height: 500px;
}
/* 子菜单项 */
.admin-sidebar .nav-menu .nav-item {
    position: relative;
}
.admin-sidebar .nav-menu .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px 11px 52px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-menu .nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--sl-primary-dark);
    padding-left: 56px;
}
.admin-sidebar .nav-menu .nav-item.active a {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.08) 100%);
    border-left-color: var(--sl-accent);
    font-weight: 600;
}
.admin-sidebar .nav-menu .nav-item.active a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sl-accent);
    box-shadow: 0 0 8px var(--sl-accent);
}
.admin-sidebar .nav-menu .nav-item a i { width: 20px; margin-right: 0; text-align: center; font-size: 16px; }
.admin-sidebar .nav-menu .nav-item .badge {
    margin-left: auto;
    background: var(--sl-primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 230px;
    transition: var(--sl-transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏 */
.admin-header {
    height: 60px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
}
.admin-header .header-left { display: flex; align-items: center; gap: 16px; }
.admin-header .btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--sl-text-light);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--sl-radius-sm);
    transition: var(--sl-transition);
}
.admin-header .btn-toggle-sidebar:hover { color: var(--sl-primary); background: var(--sl-border-light); }
.admin-header .breadcrumb { font-size: 14px; color: var(--sl-text-light); margin: 0; }
.admin-header .header-right { display: flex; align-items: center; gap: 16px; }
.admin-header .header-right .dropdown-toggle { cursor: pointer; }

/* 内容区 */
.admin-content { flex: 1; padding: 20px 24px; }

/* ==================== 通用组件 ==================== */

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: var(--sl-radius);
    padding: 20px;
    box-shadow: var(--sl-shadow-card);
    transition: var(--sl-transition);
    height: 100%;
}
.stat-card:hover { box-shadow: var(--sl-shadow-hover); transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}
.stat-card .stat-icon.blue { background: linear-gradient(135deg, #2196F3, #42a5f5); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #4CAF50, #66bb6a); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #FF9800, #ffa726); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #f44336, #ef5350); }
.stat-card .stat-icon.cyan { background: linear-gradient(135deg, #00BCD4, #26c6da); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #7c4dff, #b388ff); }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #0a1628; }
.stat-card .stat-label { font-size: 13px; color: var(--sl-text-muted); margin-top: 4px; }

/* ==================== 仪表盘新卡片 ==================== */
.dashboard-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dash-card {
    flex: 1;
    min-width: 180px;
    border-radius: var(--sl-radius);
    overflow: hidden;
    transition: var(--sl-transition);
    box-shadow: var(--sl-shadow-card);
}
.dash-card:hover { box-shadow: var(--sl-shadow-hover); transform: translateY(-2px); }
.dash-card .dash-card-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dash-card .dash-card-body::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.dash-card .dash-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    z-index: 1;
}
.dash-card .dash-info { z-index: 1; }
.dash-card .dash-value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.dash-card .dash-label { font-size: 13px; opacity: 0.9; margin-top: 2px; }
.dash-primary { background: linear-gradient(135deg, #2196F3, #1976D2); }
.dash-cyan { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.dash-success { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.dash-warning { background: linear-gradient(135deg, #FF9800, #F57C00); }
.dash-danger { background: linear-gradient(135deg, #f44336, #D32F2F); }
.dash-purple { background: linear-gradient(135deg, #7c4dff, #651FFF); }

/* 迷你统计条 */
.dashboard-row.dash-secondary {
    gap: 0;
    background: #fff;
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow-card);
    overflow: hidden;
}
.dash-mini {
    flex: 1;
    min-width: 120px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--sl-border-light);
    transition: var(--sl-transition);
}
.dash-mini:last-child { border-right: none; }
.dash-mini:hover { background: rgba(33,150,243,0.04); }
.dash-mini i { font-size: 18px; color: var(--sl-primary); }
.dash-mini .dash-mini-label { font-size: 12px; color: var(--sl-text-muted); }
.dash-mini .dash-mini-value { font-size: 18px; font-weight: 700; color: #0a1628; margin-left: auto; }

/* 白色卡片 */
.sl-card {
    background: #fff;
    border-radius: var(--sl-radius);
    box-shadow: var(--sl-shadow-card);
    margin-bottom: 20px;
}
.sl-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--sl-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sl-card .card-header h5 { margin: 0; font-size: 16px; font-weight: 600; color: #0a1628; }
.sl-card .card-body { padding: 20px; }

/* 表格 */
.sl-table { width: 100%; border-collapse: collapse; }
.sl-table th {
    background: var(--sl-border-light);
    color: var(--sl-text-light);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
.sl-table td { padding: 10px 12px; border-bottom: 1px solid var(--sl-border-light); font-size: 13px; }
.sl-table tbody tr:hover { background: rgba(33,150,243,0.04); }
.sl-table .text-center { text-align: center; }
.sl-table .text-right { text-align: right; }

/* 标签/徽章 */
.sl-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.sl-badge.badge-success { background: #e8f5e9; color: #2e7d32; }
.sl-badge.badge-warning { background: #fff3e0; color: #ef6c00; }
.sl-badge.badge-danger { background: #ffebee; color: #c62828; }
.sl-badge.badge-info { background: #e0f7fa; color: #00838f; }
.sl-badge.badge-secondary { background: #f5f5f5; color: #616161; }
.sl-badge.badge-primary { background: #e3f2fd; color: #1565c0; }

/* 按钮 */
.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border: none;
    border-radius: var(--sl-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--sl-transition);
    text-decoration: none;
}
.sl-btn.btn-primary { background: var(--sl-primary); color: #fff; }
.sl-btn.btn-primary:hover { background: var(--sl-primary-dark); color: #fff; }
.sl-btn.btn-success { background: var(--sl-success); color: #fff; }
.sl-btn.btn-danger { background: var(--sl-danger); color: #fff; }
.sl-btn.btn-danger:hover { background: #d32f2f; }
.sl-btn.btn-warning { background: var(--sl-warning); color: #fff; }
.sl-btn.btn-warning:hover { background: #f57c00; }
.sl-btn.btn-info { background: var(--sl-info); color: #fff; }
.sl-btn.btn-info:hover { background: #0097a7; }
.sl-btn.btn-default { background: var(--sl-border-light); color: var(--sl-text-light); }
.sl-btn.btn-default:hover { background: #e0e6ed; }
.sl-btn.btn-sm { padding: 4px 10px; font-size: 12px; }

/* 操作按钮特色化 */
.sl-btn.btn-warning.ajax-lock { border-radius: 20px; }
.sl-btn.btn-warning.ajax-lock[data-lock="1"] { background: var(--sl-success); }
.sl-btn.btn-warning.ajax-lock[data-lock="1"]:hover { background: #43a047; }
.sl-btn.btn-info.ajax-unbind { border-radius: 20px; }
.sl-btn.btn-danger.confirm-delete { border-radius: 20px; padding: 4px 8px; }
.sl-btn.btn-danger.confirm-delete:hover { transform: scale(1.08); }

/* 圆角操作按钮组 */
.card-action-btns .sl-btn { border-radius: 20px; transition: all 0.25s ease; }
.card-action-btns .sl-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.12); }

/* 表单 */
.sl-form .form-group { margin-bottom: 16px; }
.sl-form label { display: block; font-size: 13px; color: var(--sl-text-light); margin-bottom: 6px; }
.sl-form label .required { color: var(--sl-danger); }
.sl-form input[type=text], .sl-form input[type=password], .sl-form input[type=number], .sl-form textarea, .sl-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    font-size: 14px;
    transition: var(--sl-transition);
    background: #fff;
}
.sl-form input:focus, .sl-form textarea:focus, .sl-form select:focus {
    border-color: var(--sl-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.sl-form textarea { resize: vertical; min-height: 80px; }
.sl-form .form-hint { font-size: 12px; color: var(--sl-text-muted); margin-top: 4px; }
.sl-form .form-control-static { padding: 8px 0; font-size: 14px; color: var(--sl-text); }

/* 分页 */
.sl-pagination { display: flex; gap: 4px; justify-content: center; padding: 12px 0; }
.sl-pagination a, .sl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    font-size: 13px;
    color: var(--sl-text-light);
    text-decoration: none;
    transition: var(--sl-transition);
}
.sl-pagination a:hover { border-color: var(--sl-primary); color: var(--sl-primary); }
.sl-pagination .active { background: var(--sl-primary); color: #fff; border-color: var(--sl-primary); }

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.search-bar input, .search-bar select {
    padding: 6px 12px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    font-size: 13px;
}
.search-bar .sl-btn { white-space: nowrap; }

/* 空状态 */
.empty-state { text-align: center; padding: 40px 20px; color: var(--sl-text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; }

/* 提示框 */
.sl-alert {
    padding: 12px 16px;
    border-radius: var(--sl-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}
.sl-alert.alert-info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.sl-alert.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.sl-alert.alert-warning { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }
.sl-alert.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; min-width: 0; max-width: 100%; overflow-x: hidden; }
    .admin-sidebar.show + .admin-main { margin-left: 0; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }
    .sidebar-overlay.show { display: block; }
}

@media (max-width: 768px) {
    .admin-content { padding: 12px; overflow-x: hidden; }
    .admin-header { padding: 0 12px; }
    .admin-header .header-right { gap: 6px; }
    .admin-header .header-right .sl-btn { padding: 4px 8px; font-size: 11px; }
    .admin-header .header-right .sl-btn i { font-size: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 22px; }
    .sl-card { max-width: 100%; }
    .sl-card .card-body { padding: 12px; overflow-x: hidden; }
    .sl-card .card-header { padding: 12px; }
    .sl-card .card-header h5 { font-size: 14px; }

    /* === 通用表格手机端适配 === */
    /* 表格容器横向滚动，不影响页面布局 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--sl-radius-sm);
        max-width: 100%;
    }
    /* 兜底：所有 sl-table 的父元素自动可滚动 */
    .sl-card .card-body > .sl-table,
    .sl-card .card-body > div > .sl-table {
        min-width: 700px;
        width: max-content;
    }
    .table-responsive .sl-table {
        min-width: 700px;
        width: max-content;
    }
    .sl-table th, .sl-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
    .sl-table th { position: sticky; top: 0; z-index: 2; }
    .sl-table .sl-btn { padding: 3px 8px; font-size: 11px; }

    .search-bar-enhanced { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
    .search-bar-enhanced form { flex-wrap: wrap; gap: 8px; }
    .search-bar-enhanced input, .search-bar-enhanced select { width: auto !important; min-width: 0; flex: 1 1 120px; }
    .search-bar-enhanced .sl-btn { width: auto; white-space: nowrap; flex: 0 0 auto; }
    .search-bar-enhanced .search-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .search-bar-enhanced .search-actions .sl-btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
    .search-bar-enhanced .date-pair { display: flex; gap: 6px; align-items: center; width: 100%; }
    .search-bar-enhanced .date-pair input { flex: 1 1 0; min-width: 0; width: auto !important; }
    .search-bar-enhanced .date-pair .date-sep { flex: 0 0 auto; color: var(--sl-text-muted); font-size: 12px; }
    .dash-card { min-width: 140px; }
    .dash-card .dash-card-body { padding: 14px; gap: 10px; }
    .dash-card .dash-icon { width: 40px; height: 40px; font-size: 18px; }
    .dash-card .dash-value { font-size: 20px; }
    .dashboard-row.dash-secondary { flex-direction: column; }
    .dash-mini { border-right: none; border-bottom: 1px solid var(--sl-border-light); }
    .dash-mini:last-child { border-bottom: none; }
    /* 仪表盘横幅 */
    .dashboard-hero { padding: 20px 16px; }
    .dashboard-hero h2 { font-size: 18px; }
    /* 快捷操作网格 */
    .quick-action-grid { justify-content: center; }
    .quick-action-item { width: 90px; height: 80px; }
    .quick-action-item .qa-icon { width: 34px; height: 34px; font-size: 16px; }
    /* API文档列表 */
    .api-doc-item { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
    .api-doc-item .api-url { min-width: auto; }
    .api-doc-item .api-action { min-width: auto; }
    .api-doc-item .api-desc { width: 100%; }
    /* 进度圆环 */
    .progress-ring { width: 110px; height: 110px; }
    .progress-ring-text .pr-value { font-size: 20px; }
}

@media (max-width: 576px) {
    .login-card { padding: 30px 20px; }
    .stat-card { text-align: center; }
    .stat-card .stat-icon { margin: 0 auto 8px; }
    .dashboard-row { gap: 10px; }
    .dash-card { min-width: calc(50% - 5px); }
}

/* 复制交互样式 */
.copy-text:hover { color: var(--sl-primary); text-decoration: underline; }
.kalei-checkbox-group label:hover { background: rgba(33,150,243,0.04); border-radius: 4px; }

/* ==================== 仪表盘横幅 ==================== */
.dashboard-hero {
    background: var(--sl-sidebar-gradient);
    border-radius: var(--sl-radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dashboard-hero .hero-content { position: relative; z-index: 1; }
.dashboard-hero h2 { font-size: 22px; margin: 0 0 8px; }
.dashboard-hero h2 i { margin-right: 8px; }
.dashboard-hero p { font-size: 14px; margin: 0; opacity: 0.85; }
.dashboard-hero .hero-decoration { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.dashboard-hero .hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.dashboard-hero .hero-circle-1 { width: 250px; height: 250px; top: -80px; right: -60px; }
.dashboard-hero .hero-circle-2 { width: 180px; height: 180px; bottom: -60px; right: 120px; }

/* ==================== 快捷操作网格 ==================== */
.quick-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 100px;
    border-radius: var(--sl-radius);
    background: var(--sl-border-light);
    transition: var(--sl-transition);
    text-decoration: none;
    color: var(--sl-text);
    gap: 8px;
    cursor: pointer;
}
.quick-action-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sl-shadow-hover); }
.quick-action-item .qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.quick-action-item .qa-name { font-size: 12px; color: var(--sl-text-light); }
.quick-action-item:hover .qa-name { color: var(--sl-text); }
.qa-primary .qa-icon { background: linear-gradient(135deg, #2196F3, #1976D2); }
.qa-success .qa-icon { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.qa-info .qa-icon { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.qa-warning .qa-icon { background: linear-gradient(135deg, #FF9800, #F57C00); }
.qa-cyan .qa-icon { background: linear-gradient(135deg, #00BCD4, #26c6da); }
.qa-danger .qa-icon { background: linear-gradient(135deg, #f44336, #d32f2f); }
.qa-purple .qa-icon { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.qa-teal .qa-icon { background: linear-gradient(135deg, #009688, #00796B); }

/* ==================== 进度圆环 ==================== */
.progress-ring {
    position: relative;
    width: 140px;
    height: 140px;
}
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring-bg {
    fill: none;
    stroke: var(--sl-border-light);
    stroke-width: 8;
}
.progress-ring-fg {
    fill: none;
    stroke: var(--sl-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}
.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.progress-ring-text .pr-value { font-size: 26px; font-weight: 700; color: #0a1628; }
.progress-ring-text .pr-label { font-size: 12px; color: var(--sl-text-muted); }

/* ==================== API文档列表 ==================== */
.api-doc-list { padding: 0; }
.api-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--sl-border-light);
    transition: var(--sl-transition);
}
.api-doc-item:last-child { border-bottom: none; }
.api-doc-item:hover { background: rgba(33,150,243,0.03); }
.api-doc-item .api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--sl-primary);
}
.api-doc-item .api-url {
    font-family: monospace;
    font-size: 13px;
    color: var(--sl-text-light);
    min-width: 80px;
}
.api-doc-item .api-action {
    font-size: 13px;
    color: var(--sl-primary);
    font-weight: 500;
    min-width: 120px;
}
.api-doc-item .api-action i { font-size: 11px; }
.api-doc-item .api-desc { font-size: 13px; color: var(--sl-text-muted); }

/* ==================== 系统信息行 ==================== */
.sys-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--sl-border-light);
}
.sys-info-row:last-child { border-bottom: none; }
.sys-info-row .si-label { font-size: 13px; color: var(--sl-text-muted); display: flex; align-items: center; gap: 6px; }
.sys-info-row .si-value { font-size: 14px; color: var(--sl-text); font-weight: 500; }

/* ==================== 表单美化 ==================== */
.sl-form-section {
    background: #fff;
    border-radius: var(--sl-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid var(--sl-border-light);
}
.sl-form-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sl-border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sl-form-section .section-title i {
    font-size: 16px;
    color: var(--sl-primary);
}
.sl-form-section .section-title .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sl-card-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
}
.sl-form .form-group label {
    font-weight: 500;
    color: var(--sl-text);
}
.sl-form input[type=text], .sl-form input[type=password], .sl-form input[type=number], .sl-form input[type=email], .sl-form textarea, .sl-form select {
    border-width: 1px;
    border-color: var(--sl-border);
    background: #fff;
}
.sl-form input[type=text]:focus, .sl-form input[type=password]:focus, .sl-form input[type=number]:focus, .sl-form input[type=email]:focus, .sl-form textarea:focus, .sl-form select:focus {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}
.sl-form input[readonly] {
    background: var(--sl-border-light) !important;
    color: var(--sl-text-muted);
    cursor: not-allowed;
}
.sl-form .form-hint {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sl-form .form-hint::before {
    content: '\F28B';
    font-family: 'bootstrap-icons';
    font-size: 12px;
    color: var(--sl-primary);
}

/* 卡类权限复选框组美化 */
.kalei-checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 12px;
    background: #fafbfc;
}
.kalei-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: var(--sl-radius-sm);
    cursor: pointer;
    transition: var(--sl-transition);
    font-weight: 400;
    font-size: 13px;
}
.kalei-checkbox-group label:hover {
    background: rgba(33,150,243,0.06);
}
.kalei-checkbox-group label input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--sl-primary);
    cursor: pointer;
}

/* 表单底部操作栏 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--sl-border-light);
    margin-top: 8px;
}

/* 配置页标签页美化 */
.nav-tabs {
    border-bottom: 2px solid var(--sl-border-light);
    gap: 4px;
}
.nav-tabs .nav-item .nav-link {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--sl-text-light);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--sl-radius-sm) var(--sl-radius-sm) 0 0;
    transition: var(--sl-transition);
    margin-bottom: -2px;
    font-weight: 500;
}
.nav-tabs .nav-item .nav-link:hover {
    color: var(--sl-primary);
    background: rgba(33,150,243,0.06);
}
.nav-tabs .nav-item .nav-link.active {
    color: var(--sl-primary);
    border-bottom-color: var(--sl-primary);
    font-weight: 600;
    background: transparent;
}

/* Tab 增强（app/edit.php） */
.sl-tabs {
    border-bottom: none !important;
    gap: 0 !important;
    padding: 0 8px;
}
.sl-tabs .nav-item .nav-link {
    padding: 12px 24px;
    font-size: 14px;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
}
.sl-tabs .nav-item .nav-link:hover {
    background: rgba(33,150,243,0.06);
    color: var(--sl-primary);
}
.sl-tabs .nav-item .nav-link.active {
    color: var(--sl-primary);
    border-bottom-color: var(--sl-accent) !important;
    background: linear-gradient(180deg, rgba(33,150,243,0.04) 0%, transparent 100%);
    font-weight: 600;
}
.sl-tabs .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--sl-accent);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

/* 只读信息区块 */
.readonly-info-block {
    background: linear-gradient(135deg, #f8fafd, #f0f4f8);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.readonly-info-block h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 表单页响应式 */
@media (max-width: 768px) {
    .sl-form-section { padding: 16px; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .sl-btn { width: 100%; justify-content: center; }
    .nav-tabs .nav-item .nav-link { padding: 8px 12px; font-size: 12px; }
}

/* ==================== 公共页面 Hero ==================== */
.page-hero {
    background: var(--sl-sidebar-gradient);
    border-radius: var(--sl-radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(33,150,243,0.08);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: 120px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(0,188,212,0.06);
}
.page-hero .hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.page-hero .hero-avatar {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.page-hero .hero-title { font-size: 18px; font-weight: 600; }
.page-hero .hero-sub { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.page-hero .hero-badges { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero .hero-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.page-hero .hero-badge.green { background: rgba(76,175,80,0.25); color: #a5d6a7; }
.page-hero .hero-badge.yellow { background: rgba(255,193,7,0.25); color: #ffe082; }
.page-hero .hero-badge.red { background: rgba(244,67,54,0.25); color: #ef9a9a; }
.page-hero .hero-badge.blue { background: rgba(33,150,243,0.25); color: #90caf9; }
.page-hero .hero-badge.gray { background: rgba(255,255,255,0.12); color: #e0e0e0; }
.page-hero .hero-stats {
    display: flex;
    gap: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.page-hero .hero-stat {
    flex: 1;
    min-width: 120px;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.page-hero .hero-stat:first-child { padding-left: 0; }
.page-hero .hero-stat:last-child { border-right: none; }
.page-hero .hero-stat .hs-label { font-size: 11px; opacity: 0.55; margin-bottom: 2px; }
.page-hero .hero-stat .hs-value { font-size: 14px; font-weight: 600; }

@media (max-width: 768px) {
    .page-hero { padding: 18px 16px; }
    .page-hero .hero-top { flex-wrap: wrap; }
    .page-hero .hero-badges { margin-left: 0; }
    .page-hero .hero-stat { min-width: 50%; padding: 8px 12px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.08); }
    .page-hero .hero-stat:last-child { border-bottom: none; }
}

/* ==================== 增强表单分区 ==================== */
/* 在原有 .sl-form-section 基础上加左竖线 + hover */
.sl-form-section-enhanced {
    background: #fff;
    border-radius: var(--sl-radius);
    padding: 22px 26px;
    margin-bottom: 16px;
    border: 1px solid var(--sl-border-light);
    border-left: 3px solid var(--sl-primary);
    transition: var(--sl-transition);
}
.sl-form-section-enhanced:hover { box-shadow: 0 2px 12px rgba(33,150,243,0.06); }
.sl-form-section-enhanced .section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-primary-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sl-border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sl-form-section-enhanced .section-title i { font-size: 16px; color: var(--sl-primary); }
.sl-form-section-enhanced .section-title .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--sl-card-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 2px;
}

/* 增强表单控件（带图标 label） */
.sl-form-enhanced .form-group { margin-bottom: 18px; }
.sl-form-enhanced .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--sl-text);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sl-form-enhanced .form-group label i { font-size: 13px; color: var(--sl-primary); opacity: 0.7; }
.sl-form-enhanced .form-group label .required { color: var(--sl-danger); }
.sl-form-enhanced input[type=text], .sl-form-enhanced input[type=password], .sl-form-enhanced input[type=number], .sl-form-enhanced input[type=email], .sl-form-enhanced select, .sl-form-enhanced textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    font-size: 14px;
    transition: var(--sl-transition);
    background: #fff;
    color: var(--sl-text);
    font-family: inherit;
}
.sl-form-enhanced input:focus, .sl-form-enhanced select:focus, .sl-form-enhanced textarea:focus {
    border-color: var(--sl-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
    background: #fff;
}
.sl-form-enhanced input[readonly] {
    background: #f8fafd !important;
    color: var(--sl-text-muted);
    cursor: not-allowed;
    border-color: var(--sl-border-light);
}
.sl-form-enhanced input::placeholder, .sl-form-enhanced textarea::placeholder { color: var(--sl-text-muted); }
.sl-form-enhanced textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.sl-form-enhanced .form-hint {
    font-size: 11px;
    color: var(--sl-text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sl-form-enhanced .form-hint::before {
    content: '\F6E0';
    font-family: 'bootstrap-icons';
    font-size: 11px;
    color: var(--sl-primary);
    opacity: 0.5;
}
.sl-form-enhanced select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.sl-form-enhanced .input-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    overflow: hidden;
    transition: var(--sl-transition);
}
.sl-form-enhanced .input-group:focus-within {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.sl-form-enhanced .input-group .input-prefix {
    padding: 0 12px;
    background: var(--sl-border-light);
    color: var(--sl-text-muted);
    font-size: 14px;
    height: 38px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.sl-form-enhanced .input-group input {
    flex: 1;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
}
.sl-form-enhanced .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--sl-border-light);
    margin-top: 4px;
}
.sl-form-enhanced .form-actions .sl-btn {
    padding: 9px 22px;
    font-size: 14px;
    border-radius: var(--sl-radius-sm);
}
@media (max-width: 768px) {
    .sl-form-section-enhanced { padding: 16px; }
    .sl-form-enhanced .form-actions { flex-direction: column-reverse; }
    .sl-form-enhanced .form-actions .sl-btn { width: 100%; justify-content: center; }
}

/* ==================== 增强搜索栏 ==================== */
.search-bar-enhanced {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff 0%, #f8fbfd 100%);
    border-radius: var(--sl-radius);
    padding: 14px 20px;
    border: 1px solid var(--sl-border-light);
    box-shadow: 0 2px 8px rgba(33,150,243,0.04);
}
.search-bar-enhanced input, .search-bar-enhanced select {
    padding: 8px 14px;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius-sm);
    font-size: 13px;
    transition: var(--sl-transition);
}
.search-bar-enhanced input:focus, .search-bar-enhanced select:focus {
    border-color: var(--sl-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.search-bar-enhanced .sl-btn { white-space: nowrap; }

/* ==================== 信息提示框 ==================== */
.info-box {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafd, #f0f4f8);
    border: 1px solid var(--sl-border-light);
    border-radius: var(--sl-radius-sm);
    font-size: 13px;
    color: var(--sl-text-muted);
    line-height: 1.8;
}
.info-box code {
    color: var(--sl-primary);
    background: rgba(33,150,243,0.08);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* ==================== 页脚版权 ==================== */
.sl-footer {
    text-align: center;
    padding: 16px 20px;
    font-size: 12px;
    color: var(--sl-text-muted);
    border-top: 1px solid var(--sl-border-light);
    background: transparent;
}
.sl-footer span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(33, 150, 243, 0.04);
}

/* ==================== 实时动态仪表盘样式 ==================== */

/* LIVE 指示徽章 */
.hero-live-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.hero-live-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: live-pulse 1.5s ease-in-out infinite;
}
.hero-live-badge .live-text {
    font-size: 11px;
    font-weight: 700;
    color: #4CAF50;
    letter-spacing: 1px;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}

/* 横幅第三个装饰圈 */
.dashboard-hero .hero-circle-3 {
    width: 100px;
    height: 100px;
    top: 10px;
    right: 200px;
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* 实时标签 */
.realtime-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--sl-text-muted);
}
.rt-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sl-success);
    animation: rt-pulse-anim 1.5s ease-in-out infinite;
}
@keyframes rt-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* 数据卡片入场动画 */
.dash-card {
    animation: dash-slide-in 0.5s ease-out backwards;
}
.dash-card:nth-child(1) { animation-delay: 0.05s; }
.dash-card:nth-child(2) { animation-delay: 0.1s; }
.dash-card:nth-child(3) { animation-delay: 0.15s; }
.dash-card:nth-child(4) { animation-delay: 0.2s; }
.dash-card:nth-child(5) { animation-delay: 0.25s; }
@keyframes dash-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 迷你指标数字渐变色 */
.dash-mini-value {
    transition: color 0.3s ease;
}

/* IP 分布条 */
.ip-bar-track {
    width: 100%;
    height: 20px;
    background: var(--sl-border-light);
    border-radius: 10px;
    overflow: hidden;
}
.ip-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #00BCD4);
    border-radius: 10px;
    transition: width 1s ease-out;
    animation: bar-grow 1.2s ease-out;
}
@keyframes bar-grow {
    from { width: 0 !important; }
}

/* 进度环动画 */
.progress-ring-fg {
    animation: ring-draw 1.2s ease-out;
}
@keyframes ring-draw {
    from { stroke-dashoffset: 327; }
}

/* 服务器时间闪烁 */
#serverTime {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* ==================== 卡类权限选择器（add/edit/agent perm 共享） ==================== */
.perm-selector { display: flex; flex-direction: column; gap: 12px; }

.perm-selector-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f8fafd;
    border: 1px solid var(--sl-border-light);
    border-radius: var(--sl-radius);
}
.perm-selector-toolbar .toolbar-hint {
    font-size: 12px;
    color: var(--sl-text-muted);
    margin-left: auto;
}

/* 每个软件一个面板 */
.perm-app-card {
    border: 1px solid var(--sl-border-light);
    border-radius: var(--sl-radius);
    overflow: hidden;
    background: #fff;
}

/* 面板头部 - 浅色，与表单分区一致 */
.perm-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid var(--sl-border-light);
    flex-wrap: wrap;
}
.perm-app-header .pa-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.perm-app-header .pa-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--sl-card-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.perm-app-header .pa-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sl-text);
}
.perm-app-header .pa-meta {
    font-size: 12px;
    color: var(--sl-text-muted);
}
.perm-app-header .pa-count {
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1565c0;
}
.perm-app-header .pa-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--sl-text-muted);
    cursor: pointer;
    user-select: none;
}
.perm-app-header .pa-check input {
    width: 14px; height: 14px;
    accent-color: var(--sl-primary);
    cursor: pointer;
}

/* 卡类网格 */
.perm-app-body {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* 单个卡类切换项 */
.perm-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--sl-border-light);
    border-radius: var(--sl-radius-sm);
    cursor: pointer;
    transition: var(--sl-transition);
    font-size: 13px;
    color: var(--sl-text);
    background: #fff;
}
.perm-chip:hover {
    border-color: var(--sl-primary);
    background: rgba(33,150,243,0.03);
}
.perm-chip.active {
    border-color: var(--sl-primary);
    background: rgba(33,150,243,0.06);
}
.perm-chip input[type=checkbox] {
    width: 15px; height: 15px;
    accent-color: var(--sl-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.perm-chip .chip-name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.perm-chip .chip-meta {
    font-size: 11px;
    color: var(--sl-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .perm-app-body { grid-template-columns: 1fr; }
    .perm-app-header { padding: 8px 12px; }
}
