/* ========================================
   佰医互联 HIS系统 - 后台管理样式
   统一列表样式 - 与菜单列表保持一致
   ======================================== */

/* 基础变量定义 */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #6366f1;
    --text-primary: #1e293b;
    --text-regular: #334155;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-base: #f0f2f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========================================
   基础重置和全局样式
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-regular);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   顶部导航栏美化
   ======================================== */
.skin-blue .main-header {
    background: linear-gradient(135deg, #1a5f9e 0%, #0d3a5c 100%);
    box-shadow: 0 4px 20px rgba(13, 58, 92, 0.3);
    border-bottom: none;
    display: flex;
    align-items: center;
}

.skin-blue .main-header .logo {
    background: transparent !important;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    height: 56px;
    line-height: 56px;
    width: 230px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.skin-blue .main-header .logo .logo-mini {
    display: none;
    font-size: 14px;
}

.skin-blue .main-header .logo .logo-lg {
    display: block;
    font-size: 18px;
}

.skin-blue .main-header .navbar {
    background: transparent !important;
    height: 56px;
    flex: 1;
    margin-left: 0;
}

.skin-blue .main-header .sidebar-toggle {
    padding: 18px 15px;
    color: rgba(255,255,255,0.9) !important;
}

.skin-blue .main-header .navbar .nav > li > a {
    padding-top: 18px;
    padding-bottom: 18px;
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease;
}

.skin-blue .main-header .navbar .nav > li > a:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

/* 用户下拉菜单 */
.navbar-nav > .user-menu > .dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
    margin-top: 8px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ========================================
   左侧侧边栏样式由 menu_style.css 统一管理
   ======================================== */
.sidebar-mini.sidebar-collapse .main-header .logo {
    width: 50px;
    padding: 0;
}

.sidebar-mini.sidebar-collapse .main-header .logo .logo-mini {
    display: block;
}

.sidebar-mini.sidebar-collapse .main-header .logo .logo-lg {
    display: none;
}

/* ========================================
   基础按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-default {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-default:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

/* ========================================
   表单样式美化
   ======================================== */
.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    height: auto;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ========================================
   全局列表页面样式 - 与菜单列表样式一致
   ======================================== */

/* 列表容器 - 对应 menu-table-container */
.content .box,
.content .box.box-default,
.content .box.box-primary,
.content .box.box-info,
.content .box.box-danger,
.content .box.box-warning,
.content .box.box-success,
.content-wrapper .box,
.content-wrapper .box.box-default,
.content-wrapper .box.box-primary,
.content-wrapper .box.box-info,
.content-wrapper .box.box-danger,
.content-wrapper .box.box-warning,
.content-wrapper .box.box-success {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    border: none !important;
    border-top: none !important;
    border-top-color: transparent !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

/* 强制覆盖 AdminLTE 的顶部色条 */
.box,
.box.box-default,
.box.box-primary,
.box.box-info,
.box.box-danger,
.box.box-warning,
.box.box-success,
.box[class*="box-"] {
    border-top: none !important;
    border-top-color: transparent !important;
}

/* ========================================
   列表工具栏布局 - 按钮左对齐，搜索右对齐
   ======================================== */

/* 工具栏主容器 - Flex布局 */
.content .box .box-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
}

/* 标题样式 */
.content .box .box-header .box-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex-shrink: 0;
}

/* 左侧区域 - 包含所有按钮（直接子元素中的按钮） */
.content .box .box-header > .btn,
.content .box .box-header > a.btn,
.content .box .box-header > ob_link,
.content .box .box-header > .btn-group,
.content .box .box-header > .pull-left {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

/* 确保多个按钮在一行显示 */
.content .box .box-header > .btn + .btn,
.content .box .box-header > a.btn + a.btn,
.content .box .box-header > .btn + a.btn,
.content .box .box-header > a.btn + .btn,
.content .box .box-header > ob_link + ob_link,
.content .box .box-header > ob_link + .btn,
.content .box .box-header > .btn + ob_link {
    margin-left: 8px !important;
}

/* 右侧区域 - 搜索框 */
.content .box .box-header .box-tools,
.content .box .box-header .pull-right {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* 确保 box-tools 内的按钮也是一行显示 */
.content .box .box-header .box-tools .btn,
.content .box .box-header .pull-right .btn {
    margin: 0 !important;
}

/* 搜索表单样式统一 */
.content .box .box-header .box-tools .search-form,
.content .box .box-header .pull-right .search-form,
.content .box .box-header .box-tools form,
.content .box .box-header .pull-right form {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 清理 br 标签造成的布局问题 */
.content .box .box-header br {
    display: none;
}

/* ========================================
   工具栏按钮样式 - 全系统统一
   ======================================== */

/* 按钮基础样式 */
.content .box .box-header .btn,
.content .box .box-header a.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    margin: 0 4px 0 0 !important;
    border: none !important;
}

.content .box .box-header .btn i,
.content .box .box-header a.btn i {
    margin-right: 0 !important;
}

/* ========== 新增/添加按钮 - 蓝色渐变 ========== */
.content .box .box-header a[href*="Add"],
.content .box .box-header a[href*="add"]:not([href*="Del"]):not([href*="del"]),
.content .box .box-header .btn-menu-primary,
.content .box .box-header a.btn-menu-primary,
.content .box .box-header .pull-left > a:first-child:not(.btn-default):not([href*="Del"]):not([href*="del"]):not(.confirm):not(.ajax-get),
.content .box .box-header > div > a:first-child:not(.btn-default):not([href*="Del"]):not([href*="del"]):not(.confirm):not(.ajax-get) {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.content .box .box-header a[href*="Add"]:hover,
.content .box .box-header a[href*="add"]:not([href*="Del"]):not([href*="del"]):hover,
.content .box .box-header .btn-menu-primary:hover,
.content .box .box-header a.btn-menu-primary:hover,
.content .box .box-header .pull-left > a:first-child:not(.btn-default):not([href*="Del"]):not([href*="del"]):not(.confirm):not(.ajax-get):hover,
.content .box .box-header > div > a:first-child:not(.btn-default):not([href*="Del"]):not([href*="del"]):not(.confirm):not(.ajax-get):hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    color: #fff !important;
}

/* ========== 导出/返回/次要按钮 - 白色背景 ========== */
.content .box .box-header .btn-menu-secondary,
.content .box .box-header a.btn-menu-secondary,
.content .box .box-header .export,
.content .box .box-header a.export,
.content .box .box-header [onclick*="history.back"],
.content .box .box-header a[onclick*="history.back"] {
    background: #fff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.content .box .box-header .btn-menu-secondary:hover,
.content .box .box-header a.btn-menu-secondary:hover,
.content .box .box-header .export:hover,
.content .box .box-header a.export:hover,
.content .box .box-header [onclick*="history.back"]:hover,
.content .box .box-header a[onclick*="history.back"]:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
}

/* ========== 编辑/授权/查看等操作 - 浅灰色背景 ========== */
.content .box .box-header a[href*="Edit"]:not(.btn-menu-primary),
.content .box .box-header a[href*="edit"]:not([href*="add"]):not(.btn-menu-primary),
.content .box .box-header a[href*="Auth"],
.content .box .box-header a[href*="auth"],
.content .box .box-header a[href*="View"],
.content .box .box-header a[href*="view"],
.content .box .box-header .btn-default,
.content .box .box-header a.btn-default {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.content .box .box-header a[href*="Edit"]:not(.btn-menu-primary):hover,
.content .box .box-header a[href*="edit"]:not([href*="add"]):not(.btn-menu-primary):hover,
.content .box .box-header a[href*="Auth"]:hover,
.content .box .box-header a[href*="auth"]:hover,
.content .box .box-header .btn-default:hover,
.content .box .box-header a.btn-default:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
}

/* ========== 删除按钮 - 红色渐变 ========== */
.content .box .box-header a[href*="Del"],
.content .box .box-header a[href*="del"],
.content .box .box-header .btn-menu-danger,
.content .box .box-header a.btn-menu-danger,
.content .box .box-header .btn-danger,
.content .box .box-header a.btn-danger,
.content .box .box-header .confirm,
.content .box .box-header a.confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.content .box .box-header a[href*="Del"]:hover,
.content .box .box-header a[href*="del"]:hover,
.content .box .box-header .btn-menu-danger:hover,
.content .box .box-header a.btn-menu-danger:hover,
.content .box .box-header .btn-danger:hover,
.content .box .box-header a.btn-danger:hover,
.content .box .box-header .confirm:hover,
.content .box .box-header a.confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
    color: #fff !important;
}

/* ========== 警告按钮 - 橙色 ========== */
.content .box .box-header .btn-menu-warning,
.content .box .box-header a.btn-menu-warning,
.content .box .box-header .btn-warning,
.content .box .box-header a.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.content .box .box-header .btn-menu-warning:hover,
.content .box .box-header a.btn-menu-warning:hover,
.content .box .box-header .btn-warning:hover,
.content .box .box-header a.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
    color: #fff !important;
}

/* ========== 成功按钮 - 绿色 ========== */
.content .box .box-header .btn-menu-success,
.content .box .box-header a.btn-menu-success,
.content .box .box-header .btn-success,
.content .box .box-header a.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.content .box .box-header .btn-menu-success:hover,
.content .box .box-header a.btn-menu-success:hover,
.content .box .box-header .btn-success:hover,
.content .box .box-header a.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
    color: #fff !important;
}

/* 表格容器 - 对应 menu-table-container
   列表页保持默认设置，不修改边距 */
.content .box .box-body {
    padding: 0;
}

.content .box .box-body.table-responsive {
    overflow-x: auto;
}

/* 表格样式 - 对应 menu-table */
.content .box .table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
}

/* 表头 */
.content .box .table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.content .box .table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    vertical-align: middle;
}

.content .box .table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.content .box .table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

/* 表格行 */
.content .box .table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    animation: fadeInUp 0.3s ease forwards;
}

.content .box .table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.content .box .table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.content .box .table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.content .box .table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.content .box .table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.content .box .table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.content .box .table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.content .box .table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.content .box .table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.content .box .table tbody tr:nth-child(10) { animation-delay: 0.5s; }

.content .box .table tbody tr:last-child {
    border-bottom: none;
}

.content .box .table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* 表格单元格 - 与表头对齐 */
.content .box .table tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}



/* ========================================
   表格内操作按钮 - 全系统统一
   ======================================== */

/* 表格内按钮基础样式 */
.content .box .table tbody .btn,
.content .box .table tbody a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    border: none !important;
    margin: 0 2px !important;
}

/* 签名按钮 - 灰色 */
.content .box .table tbody a.autograph {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.content .box .table tbody a.autograph:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
}

/* 审核按钮 - 绿色 */
.content .box .table tbody a[href*="Verify"],
.content .box .table tbody a[href*="verify"] {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.content .box .table tbody a[href*="Verify"]:hover,
.content .box .table tbody a[href*="verify"]:hover {
    background: #bbf7d0 !important;
    color: #166534 !important;
    transform: translateY(-1px) !important;
}

/* ========== 表格内编辑按钮 - 黄色 ========== */
.content .box .table tbody a[href*="Edit"]:not([href*="Add"]),
.content .box .table tbody a[href*="edit"]:not([href*="add"]):not([href*="del"]):not([href*="Del"]) {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

.content .box .table tbody a[href*="Edit"]:not([href*="Add"]):hover,
.content .box .table tbody a[href*="edit"]:not([href*="add"]):not([href*="del"]):not([href*="Del"]):hover {
    background: #fde68a !important;
    color: #92400e !important;
    transform: translateY(-1px) !important;
}

/* ========== 表格内删除按钮 - 红色 ========== */
.content .box .table tbody a[href*="Del"],
.content .box .table tbody a[href*="del"],
.content .box .table tbody .btn-danger,
.content .box .table tbody a.btn-danger,
.content .box .table tbody a.confirm {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.content .box .table tbody a[href*="Del"]:hover,
.content .box .table tbody a[href*="del"]:hover,
.content .box .table tbody .btn-danger:hover,
.content .box .table tbody a.btn-danger:hover,
.content .box .table tbody a.confirm:hover {
    background: #fecaca !important;
    color: #991b1b !important;
    transform: translateY(-1px) !important;
}

/* ========== 表格内授权/查看/其他按钮 - 灰色 ========== */
.content .box .table tbody a[href*="Auth"],
.content .box .table tbody a[href*="auth"],
.content .box .table tbody a[href*="View"],
.content .box .table tbody a[href*="view"],
.content .box .table tbody .btn-default,
.content .box .table tbody a.btn-default {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.content .box .table tbody a[href*="Auth"]:hover,
.content .box .table tbody a[href*="auth"]:hover,
.content .box .table tbody a[href*="View"]:hover,
.content .box .table tbody a[href*="view"]:hover,
.content .box .table tbody .btn-default:hover,
.content .box .table tbody a.btn-default:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
}

/* 状态标签 - 对应 menu-status-tag */
.content .box .table tbody td .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 启用状态 - 对应 menu-status-enabled */
.content .box .table tbody td .label-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.content .box .table tbody td .label-success::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

/* 禁用/危险状态 - 对应 menu-status-disabled */
.content .box .table tbody td .label-danger,
.content .box .table tbody td .label-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
}

.content .box .table tbody td .label-danger::before,
.content .box .table tbody td .label-warning::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

/* 信息状态 */
.content .box .table tbody td .label-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

/* 空数据提示 - 对应 menu-empty-state */
.content .box .table tbody tr.odd td,
.content .box .table tbody tr[data-empty] td,
.content .box .table tbody tr:only-child td[colspan] {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    background: #fafbfc;
    font-size: 15px;
}

/* 分页区域 - 对应 menu-pagination
   列表页保持默认设置 */
.content .box .box-footer {
    padding: 20px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* 分页样式 */
.content .box .pagination {
    margin: 0;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.content .box .pagination > li > a,
.content .box .pagination > li > span {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #475569;
    background: #fff;
    transition: all 0.2s ease;
    margin: 0;
}

.content .box .pagination > li > a:hover {
    background: #e0e7ff;
    color: #4f46e5;
}

.content .box .pagination > .active > a,
.content .box .pagination > .active > span {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
}

.content .box .pagination > .disabled > a,
.content .box .pagination > .disabled > span {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

/* 搜索框 - 对应 menu-search-box */
.content .box .box-header .search-form {
    width: 280px;
    position: relative;
}

.content .box .box-header .search-form .input-group {
    display: flex;
    gap: 8px;
}

.content .box .box-header .search-form .form-control,
.content .box .box-header .search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #334155;
    background: #fff;
    transition: all 0.2s ease;
}

.content .box .box-header .search-form .form-control:focus,
.content .box .box-header .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.content .box .box-header .search-form::before,
.content .box .box-header .search-form .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-family: 'FontAwesome';
    content: '\f002';
    z-index: 10;
}

/* 按钮组 */
.content .box .box-header .btn-group {
    display: inline-flex;
    gap: 8px;
}

.content .box .box-header .btn-group .btn {
    margin: 0;
}

.content .box .box-header .btn-group .btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ========================================
   其他页面组件样式
   ======================================== */

/* 导航标签页 */
.nav-tabs-custom {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.nav-tabs-custom > .nav-tabs > li {
    border-top: none;
    margin-right: 5px;
}

.nav-tabs-custom > .nav-tabs > li > a {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 12px 20px;
    color: var(--text-regular);
    font-weight: 500;
    border: none;
}

.nav-tabs-custom > .nav-tabs > li > a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-tabs-custom > .nav-tabs > li.active {
    border-top: none;
}

.nav-tabs-custom > .nav-tabs > li.active > a {
    background: var(--bg-white);
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
    font-weight: 600;
}

/* 下拉菜单 */
.dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
    padding: 8px 0;
}

.dropdown-menu > li > a {
    padding: 10px 20px;
    color: var(--text-regular);
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 模态框 */
.modal-content {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    background: #fafbfc;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* 小部件/统计卡片 */
.small-box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.small-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.small-box > .inner {
    padding: 25px;
}

.small-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.small-box p {
    font-size: 14px;
    font-weight: 500;
}

.small-box .icon {
    font-size: 70px;
    top: 10px;
    right: 15px;
    transition: all 0.3s ease;
}

.small-box:hover .icon {
    font-size: 75px;
    transform: rotate(5deg);
}

/* 信息盒子 */
.info-box {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: var(--shadow-md);
}

.info-box-icon {
    border-radius: 0;
    font-size: 40px;
    width: 80px;
    height: 80px;
    line-height: 80px;
}

.info-box-content {
    padding: 20px;
}

.info-box-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-box-text {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 内容头部 */
.content-header {
    position: relative;
    padding: 0 0 20px 0;
    margin-bottom: 10px;
}

.breadcrumb {
    float: right;
    background: transparent;
    font-size: 12px;
    padding: 7px 5px;
    position: absolute;
    top: -3px !important;
    right: 10px;
    border-radius: var(--radius-sm);
}

/* ========================================
   登录页面样式
   ======================================== */
.admin-login-captcha-img {
    width: 320px;
    height: 80px;
}

.admin-login-captcha-input-icon {
    margin-right: 15px;
}

.admin-login-box {
    left: 50%;
    margin: auto auto auto -180px;
    position: absolute;
    text-align: center;
    top: 10%;
    width: 360px;
}

.admin-login-body-background {
    background-color: #000;
    overflow: hidden;
}

.login-logo-a {
    color: #fff !important;
}

/* ========================================
   工具类
   ======================================== */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 992px) {
    .content .box .box-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content .box .box-header .box-tools,
    .content .box .box-header .pull-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .content .box .box-header .search-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .content .box .table thead th,
    .content .box .table tbody td {
        padding: 12px 15px;
    }
    
    .content .box .table tbody .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ========================================
   其他辅助样式
   ======================================== */
.admin-node-label {
    margin-left: 20px;
    font-weight: normal !important;
}

.admin-node-header label {
    font-weight: normal !important;
}

.admin-list-img-size {
    max-height: 30px;
}

.search-form {
    width: 400px;
}

.js-icon-picker .input-group-addon {
    cursor: pointer;
}

#icon_search {
    padding: 15px;
}

#icon_tab .nav-tabs {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 15px;
}

#icon_tab i {
    font-size: 2em;
}

.js-icon-list {
    padding-left: 0;
    padding-bottom: 1px;
    margin-bottom: 20px;
    list-style: none;
    overflow: hidden;
}

.js-icon-list li {
    float: left;
    width: 5%;
    padding: 15px;
    margin: 0 -1px -1px 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.js-icon-list li:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.js-icon-list li code {
    display: none;
}
/* ========================================
   添加/编辑页面样式 - 与列表页风格统一
   ======================================== */

/* 表单页 box-header 样式 */
.content .box > .box-header:first-child {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.content .box > .box-header:first-child .box-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* ========================================
   表单页面（添加/编辑/详情）边距优化
   仅适用于带有 form_single 类的表单页面，不影响列表页
   ======================================== */

/* 表单页面容器 */
.form_single .box {
    margin-bottom: 0;
}

/* 表单页面的 box-body 内边距 */
.form_single .box .box-body {
    padding: 25px;
}

/* 表单页面的表单内容 */
.form_single .box .box-body form {
    padding: 0;
}

/* 表单页面脚部区域 */
.form_single .box .box-footer {
    padding: 20px 25px;
}

/* 表单组样式统一 */
.content .box .form-group {
    margin-bottom: 20px;
}

.content .box .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
}

.content .box .form-group label + span,
.content .box .form-group label span {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-left: 4px;
}

/* 表单控件样式 */
.content .box .form-control {
    height: 42px;
    padding: 10px 15px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.content .box .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.content .box .form-control::placeholder {
    color: #94a3b8;
}

/* 文本域样式 */
.content .box textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* 选择框样式 */
.content .box select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 复选框和单选框样式 */
.content .box .checkbox,
.content .box .radio {
    margin: 10px 0;
}

.content .box .checkbox label,
.content .box .radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    font-weight: 400;
}

.content .box .checkbox input[type="checkbox"],
.content .box .radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* 表单页底部按钮区域 */
.content .box .box-footer {
    padding: 20px 25px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 表单页按钮样式 */
.content .box .box-footer .btn,
.content .box .box-footer button.btn,
.content .box .box-footer a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    border: none !important;
    min-width: 100px;
}

/* 确定/提交按钮 - 蓝色 */
.content .box .box-footer button[type="submit"],
.content .box .box-footer .btn-primary,
.content .box .box-footer .ajax-post {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.content .box .box-footer button[type="submit"]:hover,
.content .box .box-footer .btn-primary:hover,
.content .box .box-footer .ajax-post:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
}

/* 返回/取消按钮 - 白色 */
.content .box .box-footer a:not(.btn-primary):not(.ajax-post),
.content .box .box-footer .btn-default {
    background: #fff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.content .box .box-footer a:not(.btn-primary):not(.ajax-post):hover,
.content .box .box-footer .btn-default:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
}

/* Tab 标签页样式统一 */
.content .box .nav-tabs-custom {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 0;
}

.content .box .nav-tabs-custom > .nav-tabs {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
}

.content .box .nav-tabs-custom > .nav-tabs > li {
    margin-right: 5px;
}

.content .box .nav-tabs-custom > .nav-tabs > li > a {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    transition: all 0.2s ease;
}

.content .box .nav-tabs-custom > .nav-tabs > li > a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.content .box .nav-tabs-custom > .nav-tabs > li.active > a {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}

.content .box .nav-tabs-custom > .tab-content {
    padding: 0;
}

/* 授权页面特殊样式 */
.content .box .admin-node-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
}

.content .box .admin-node-header .box-header {
    padding: 0;
    background: transparent;
    border: none;
}

.content .box .admin-node-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 5px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content .box .admin-node-label:hover {
    background: #e0e7ff;
    color: #1d4ed8;
}

.content .box .admin-node-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content .box .box-body form,
    .content .box form .box-body {
        padding: 15px;
    }
    
    .content .box .box-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .content .box .box-footer .btn {
        width: 100%;
    }
}

/* ========================================
   授权页面样式优化
   ======================================== */

/* 授权页面专用样式 */
.auth-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.auth-section:last-child {
    margin-bottom: 0;
}

.auth-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-section-title i {
    color: #3b82f6;
    font-size: 18px;
}

.auth-options {
    padding: 5px 0;
}

/* 复选框组样式 */
.auth-options .checkbox,
.auth-options .radio {
    margin: 8px 0;
}

.auth-options .checkbox label,
.auth-options .radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-options .checkbox label:hover,
.auth-options .radio label:hover {
    background: #e0e7ff;
    color: #1d4ed8;
}

.auth-options input[type="checkbox"],
.auth-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
}

/* 双选框容器样式 */
.double-box-container {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

/* 菜单授权树形结构 */
.menu-auth-tree {
    max-height: 500px;
    overflow-y: auto;
}

.menu-auth-tree .admin-node-header {
    margin: 0;
    border: none;
    background: transparent;
    padding: 10px 0;
}

/* 表格内操作按钮组 */
td .btn {
    margin: 0 2px;
}
