/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-active: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --heading-color: #262626;
    --text-color: #595959;
    --text-color-secondary: #8c8c8c;
    --disabled-color: rgba(0, 0, 0, 0.25);
    --border-color: #d9d9d9;
    --border-color-split: #f0f0f0;
    --background-color-light: #fafafa;
    --background-color-base: #f5f5f5;
    --box-shadow-base: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color-base);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 登录页样式 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #3a5cf7;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* 管理系统布局 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #001529 0%, #003a70 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
    border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav ul li.active a {
    background-color: rgba(24, 144, 255, 0.2);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-info {
    font-weight: 500;
}

/* 仪表盘样式 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.chart {
    height: 250px;
}

.placeholder-chart {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #95a5a6;
    border-radius: 4px;
}

.recent-activities {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recent-activities h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.activity-time {
    min-width: 60px;
    color: #7f8c8d;
}

/* 数据表格样式 */
.content-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-search {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: #2980b9;
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    max-width: 350px;
    flex: 1;
}

.search-box input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-box .btn-search {
    border-radius: 0 4px 4px 0;
    height: 100%;
}

.data-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.data-table thead th {
    background-color: #fafafa;
    color: var(--heading-color);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.data-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
}

.data-table tbody tr:hover {
    background-color: #e6f7ff;
}

.data-table img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-page {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}

.page-info {
    margin: 0 10px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header h2 {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

/* 图片预览容器样式 */
#imagePreview {
    position: relative;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#previewImg {
    max-width: 100%;
    max-height: 150px;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s;
}

/* 上传中状态样式 */
#uploadingText {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

/* 服务管理子菜单样式 */
.sidebar-nav .has-submenu > a {
    position: relative;
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav .has-submenu > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.sidebar-nav .has-submenu.open > a::after {
    transform: translateY(2px) rotate(-135deg);
}

.sidebar-nav .submenu {
    max-height: 300px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    list-style: none;
    margin-left: 10px;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
}

.sidebar-nav .has-submenu:not(.open) .submenu {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.sidebar-nav .submenu li {
    margin: 2px 0;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.sidebar-nav .has-submenu:not(.open) .submenu li {
    opacity: 0;
    transform: translateX(-10px);
}

.sidebar-nav .has-submenu.open .submenu li:nth-child(2) {
    transition-delay: 0.1s;
}

.sidebar-nav .has-submenu.open .submenu li:nth-child(3) {
    transition-delay: 0.15s;
}

.sidebar-nav .submenu a {
    font-size: 0.9em;
    padding: 8px 15px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
}

.sidebar-nav .submenu a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.sidebar-nav .submenu li.active a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #4CAF50;
    padding-left: 17px;
    font-weight: 500;
}

.sidebar-nav .submenu li.active a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.action-btn {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    border: none;
    color: white;
    transition: background-color 0.3s;
}

.btn-edit {
    background-color: #3498db;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
}

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

.btn-view {
    background-color: #2ecc71;
}

.btn-view:hover {
    background-color: #27ae60;
}

.btn-primary, .btn-danger, .btn-search, .btn-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background-image: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  touch-action: manipulation;
  height: 32px;
  padding: 0 15px;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 5px;
}

.btn-primary {
  color: #fff;
  background-color: #3498db;
  border-color: #3498db;
}

.btn-danger {
  color: #fff;
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.btn-primary:hover, .btn-primary:focus {
  color: #fff;
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-danger:hover, .btn-danger:focus {
  color: #fff;
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-search {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-page {
  color: var(--text-color);
  background-color: #fff;
  border-color: var(--border-color);
}

.btn-page:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-cancel {
  color: var(--text-color);
  background-color: white;
  border: 1px solid var(--border-color);
}

.btn-cancel:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 审核状态样式 */
.status-pending {
    color: #ff9800;
    font-weight: bold;
}

.status-approved {
    color: #4caf50;
    font-weight: bold;
}

.status-rejected {
    color: #f44336;
    font-weight: bold;
}

/* 详情样式 */
.detail-item {
    margin-bottom: 15px;
}

.detail-item label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.detail-image img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* 资质证明图片样式 */
.detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.qualification-item {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #f9f9f9;
}

.qualification-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 必填标记样式 */
.required-mark {
    color: #f44336;
    margin-left: 2px;
}

/* 商家详情模态框样式 */
.modal-lg {
    width: 80%;
    max-width: 900px;
}

.merchant-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.merchant-basic-info {
    flex: 1;
    min-width: 300px;
}

.merchant-logo-container {
    flex: 0 0 200px;
}

.detail-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detail-text {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-top: 5px;
    white-space: pre-line;
}

.detail-image img {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    object-fit: contain;
}

.detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.qualification-item {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qualification-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 仪表盘图表样式 */
.simple-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 5px;
}

.bar {
    background-color: #007bff;
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.bar-label {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.line-chart {
    position: relative;
    background-color: #f8f9fa;
}

.line-chart-svg {
    width: 100%;
    height: 100%;
}

.placeholder-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-style: italic;
}

.error-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #dc3545;
    font-weight: bold;
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-style: italic;
}

/* 活动列表样式 */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 12px;
    color: #999;
    margin-right: 15px;
    min-width: 50px;
}

.activity-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* 多图片上传和预览样式 */
.image-preview-container {
    margin-top: 10px;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-preview {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.image-tip {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 系统设置页面样式 */
.settings-form {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    margin-right: 10px;
}

.input-suffix {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.form-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* 加载覆盖层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #fff;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 上传中状态样式 */
.preview-item.uploading::after {
    content: '上传中...';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
}

/* 权限管理相关样式 */
.permission-tree {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

/* 角色管理对话框中的权限树 */
.permission-tree-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    min-height: 32px;
}

.permission-tree-item:hover {
    background-color: #f5f5f5;
}

.permission-tree-item:last-child {
    border-bottom: none;
}

.permission-tree-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.permission-tree-item label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: normal;
    user-select: none;
}

.permission-tree-item label:hover {
    color: #1890ff;
}

.permission-group {
    margin-bottom: 15px;
}

.permission-group h4 {
    margin-bottom: 10px;
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 600;
}

.permission-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.permission-item input[type="checkbox"] {
    margin-right: 8px;
}

.permission-item label {
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 0;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge.menu {
    background-color: #e6f7ff;
    color: #1890ff;
}

.type-badge.action {
    background-color: #f6ffed;
    color: #52c41a;
}

.status.active {
    color: var(--success-color);
}

.status.inactive {
    color: var(--error-color);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 4px;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: 1px solid var(--error-color);
}

.btn-danger:hover {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
}

.text-center {
    text-align: center;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 权限树样式 */
.permission-tree-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background-color: #fafafa;
}

.permission-tree-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    min-height: 32px;
    transition: all 0.2s ease;
}

.permission-tree-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.permission-tree-item label,
.permission-tree-item .permission-label {
    font-weight: 500;
    color: #606266 !important;
    cursor: pointer;
    margin-left: 8px !important;
    margin-bottom: 0 !important;
    flex: 1;
    display: flex !important;
    align-items: center;
    line-height: 1.4;
    font-size: 13px !important;
}

.permission-tree-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

.permission-group h4 {
    margin: 0 0 15px 0;
    color: #303133;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #e4e7ed;
    padding-bottom: 8px;
}

/* 角色复选框样式 */
.role-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

.role-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    min-height: 24px;
}

.role-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

.role-item label {
    font-size: 13px !important;
    color: #606266 !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
    display: flex !important;
    align-items: center;
    flex: 1;
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* 状态选择框样式 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-control:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 权限树展开/收起图标样式 */
.expand-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    background-color: #1890ff;
    color: white;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: bold;
    user-select: none;
    font-size: 14px;
}

.expand-icon:hover {
    background-color: #40a9ff;
}

.no-children-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    margin-right: 8px;
    color: #999;
}

.permission-row {
    background-color: white;
}

.permission-row:hover {
    background-color: #f5f5f5;
}