/**
 * 时光邮局 - 管理后台统一样式表
 * 简约小清新风格 - 与前端页面风格统一
 * 
 * 色彩体系：
 *   主色调：#6ab0f3 (柔和蓝色)
 *   成功色：#52c8b4 (清新绿)
 *   警告色：#ffcc7a (温暖黄)
 *   文字阶梯：#1a1a1a / #333 / #555 / #888
 *   背景色：#ffffff / #f8f9fa / #f5f7fa
 */

/* ========================================
   一、CSS变量定义
   ======================================== */
:root {
    /* 主题色 - 柔和蓝色系 */
    --primary-color: #6ab0f3;
    --primary-light: #e8f3ff;
    --primary-dark: #4a9eff;
    --primary-gradient: linear-gradient(135deg, #6ab0f3 0%, #4a9eff 100%);
    
    /* 功能色 */
    --success-color: #52c8b4;
    --success-light: #eaf7ef;
    --warning-color: #ffcc7a;
    --warning-light: #fff7e6;
    --danger-color: #ff6b6b;
    --info-color: #74b9ff;
    
    /* 侧边栏 - 浅色主题 */
    --sidebar-bg: #ffffff;
    --sidebar-border: #f0f0f0;
    --sidebar-text: #555555;
    --sidebar-text-hover: #333333;
    --sidebar-active-bg: #e8f3ff;
    --sidebar-active-text: #6ab0f3;
    
    /* 卡片和阴影 */
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    
    /* 圆角 */
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* 文字颜色阶梯 */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #888888;
}

/* ========================================
   二、全局基础样式重置
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* 渐变文字效果 */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   三、侧边栏样式 - 浅色清新主题
   ======================================== */

/* 移动端菜单切换按钮 */
.sa-mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    align-items: center;
    justify-content: center;
}

.sa-mobile-toggle:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* 移动端遮罩层 */
.sa-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* 侧边栏主容器 */
.sa-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid var(--sidebar-border);
    transition: transform 0.25s ease;
}

/* 侧边栏品牌区域 */
.sa-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.sa-sidebar-brand:hover {
    color: var(--text-primary);
    text-decoration: none;
    background-color: #f8f9fa;
}

.sa-sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 导航菜单 */
.sa-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-nav-item {
    margin-bottom: 0.375rem;
}

.sa-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
}

.sa-nav-link:hover {
    background: #f5f5f5;
    color: var(--sidebar-text-hover);
    text-decoration: none;
}

.sa-nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sa-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.sa-nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: #999;
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
}

.sa-nav-link:hover i,
.sa-nav-link.active i {
    color: var(--primary-color);
}

/* 侧边栏底部信息 */
.sa-sidebar-footer {
    padding: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--sidebar-border);
}

.sa-sidebar-footer small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
    display: block;
}

/* 退出登录按钮 */
.sa-nav-link.sa-logout {
    color: #e67e22;
    border-top: 1px solid var(--sidebar-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.sa-nav-link.sa-logout:hover {
    background: #fff7e6;
    color: #d35400;
}

/* ========================================
   四、主内容区域
   ======================================== */
.sa-main-content {
    margin-left: 260px;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

/* 页面头部 */
.sa-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sa-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sa-page-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   五、统计卡片 - 轻量化白色卡片设计
   ======================================== */
.sa-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.sa-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.sa-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    background: var(--primary-light);
    color: var(--primary-color);
}

.sa-stat-card:nth-child(2) .sa-stat-icon,
.sa-stat-grid .sa-stat-card:nth-child(2) .sa-stat-icon {
    background: var(--success-light);
    color: var(--success-color);
}

.sa-stat-card:nth-child(3) .sa-stat-icon,
.sa-stat-grid .sa-stat-card:nth-child(3) .sa-stat-icon {
    background: #fff7e6;
    color: #f5a623;
}

.sa-stat-card:nth-child(4) .sa-stat-icon,
.sa-stat-grid .sa-stat-card:nth-child(4) .sa-stat-icon {
    background: #f3e8ff;
    color: #9b59b6;
}

/* 统计卡片内联布局 - 桌面端 */
.sa-stat-inline {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sa-stat-inline .sa-stat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.sa-stat-inline .sa-stat-content {
    flex: 1;
    min-width: 0;
}

.sa-stat-inline .sa-stat-value {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* 移动端统计卡片布局优化 */
@media (max-width: 768px) {
    /* 统计卡片内联布局 - 移动端：图标+数字一行，标签下一行 */
    .sa-stat-inline {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .sa-stat-inline .sa-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .sa-stat-inline .sa-stat-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }
    
    .sa-stat-inline .sa-stat-value {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .sa-stat-inline .sa-stat-label {
        font-size: 0.75rem;
    }
}

.sa-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.sa-stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.sa-stat-desc {
    font-size: 0.8rem;
    color: #999;
}

/* 状态徽章 - 用于显示"未使用"等状态 */
.sa-badge-success {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--success-light);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sa-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success-color);
    margin-right: 0.375rem;
}

/* ========================================
   六、快捷操作区域 - 线条/轻量按钮设计
   ======================================== */
.sa-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sa-section-title i {
    color: var(--primary-color);
}

.sa-quick-action {
    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.sa-quick-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    text-decoration: none;
    background: var(--primary-light);
    transform: translateY(-2px);
}

.sa-quick-action i {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.sa-quick-action:hover i {
    transform: scale(1.1);
}

.sa-quick-action h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.sa-quick-action small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ========================================
   七、信息卡片 - 系统信息和API接口
   ======================================== */
.sa-info-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.sa-info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sa-info-card-title i {
    color: var(--primary-color);
}

.sa-info-item {
    margin-bottom: 0.75rem;
}

.sa-info-item:last-child {
    margin-bottom: 0;
}

.sa-info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
}

.sa-info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 连接状态指示器 */
.sa-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sa-status-connected {
    background: var(--success-light);
    color: var(--success-color);
}

.sa-status-disconnected {
    background: #fdf0ef;
    color: var(--danger-color);
}

/* API地址代码块 */
.sa-code-block {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
    border: 1px solid #eee;
}

/* ========================================
   八、通用卡片样式
   ======================================== */
.sa-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.sa-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.sa-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sa-card-body {
    padding: 1.5rem;
}

/* ========================================
   九、按钮样式
   ======================================== */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* 主要按钮 - 填充 */
.sa-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(106, 176, 243, 0.3);
}

.sa-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 176, 243, 0.4);
    text-decoration: none;
}

/* 次要按钮 - 线条/幽灵 */
.sa-btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

.sa-btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    text-decoration: none;
}

/* 成功按钮 */
.sa-btn-success {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid rgba(82, 200, 180, 0.3);
}

.sa-btn-success:hover {
    background: var(--success-color);
    color: #fff;
    text-decoration: none;
}

/* 警告按钮 */
.sa-btn-warning {
    background: var(--warning-light);
    color: #c67c00;
    border: 1px solid rgba(255, 204, 122, 0.3);
}

.sa-btn-warning:hover {
    background: var(--warning-color);
    color: #8b6914;
    text-decoration: none;
}

/* 危险按钮 */
.sa-btn-danger {
    background: #fdf0ef;
    color: var(--danger-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.sa-btn-danger:hover {
    background: var(--danger-color);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   十、提示框/警报样式
   ======================================== */
.sa-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sa-alert-success {
    background: var(--success-light);
    color: #2d7a4f;
    border-left: 3px solid var(--success-color);
}

.sa-alert-danger {
    background: #fdf0ef;
    color: #c0392b;
    border-left: 3px solid var(--danger-color);
}

.sa-alert-warning {
    background: var(--warning-light);
    color: #c67c00;
    border-left: 3px solid var(--warning-color);
}

.sa-alert-info {
    background: var(--primary-light);
    color: #2d5a8a;
    border-left: 3px solid var(--primary-color);
}

/* ========================================
   十一、表单样式
   ======================================== */
.sa-form-group {
    margin-bottom: 1.25rem;
}

.sa-form-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sa-form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    color: var(--text-primary);
}

.sa-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 176, 243, 0.15);
}

.sa-form-control::placeholder {
    color: #bbb;
}

/* ========================================
   十二、表格样式
   ======================================== */
.sa-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sa-table thead th {
    background: #f8f9fa;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 0.9rem;
}

.sa-table tbody tr:hover {
    background-color: #fafbfc;
}

.sa-table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafbfc;
}

/* ========================================
   十三、徽章/标签样式
   ======================================== */
.sa-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 域名/分组标签 - 用于 clients.php 和 codes.php */
.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.sa-badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.sa-badge-success {
    background: var(--success-light);
    color: var(--success-color);
}

.sa-badge-warning {
    background: var(--warning-light);
    color: #c67c00;
}

.sa-badge-danger {
    background: #fdf0ef;
    color: var(--danger-color);
}

/* ========================================
   十四、分页样式
   ======================================== */
.sa-pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.sa-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sa-page-link:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-dark);
    text-decoration: none;
}

.sa-page-item.active .sa-page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: #fff;
}

/* ========================================
   十五、下拉菜单样式
   ======================================== */
.sa-dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    background: #fff;
}

.sa-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.sa-dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    text-decoration: none;
}

/* ========================================
   十六、模态框样式
   ======================================== */
.sa-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.sa-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.sa-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sa-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sa-modal-body {
    padding: 1.5rem;
}

.sa-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   十七、滚动条美化
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ========================================
   十八、选中文字颜色
   ======================================== */
::selection {
    background: rgba(106, 176, 243, 0.2);
    color: #1a1a1a;
}

/* ========================================
   十九、响应式设计
   ======================================== */
@media (max-width: 768px) {
    /* 移动端显示菜单按钮 */
    .sa-mobile-toggle {
        display: flex;
    }
    
    /* 侧边栏默认隐藏 */
    .sa-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1003;
        box-shadow: none;
    }
    
    .sa-sidebar.active {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .sa-sidebar.active ~ .sa-sidebar-overlay {
        display: block;
    }
    
    /* 移动端品牌区域 */
    .sa-sidebar-brand {
        padding-top: 3.5rem;
        justify-content: flex-start;
    }
    
    /* 主内容区域 */
    .sa-main-content {
        margin-left: 0;
        padding: 4.5rem 1rem 1.5rem;
    }
    
    /* 移动端通用卡片样式 */
    .sa-stat-card,
    .sa-quick-action,
    .sa-info-card {
        padding: 1rem;
    }
    
    /* 页面头部 */
    .sa-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sa-page-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   二十、登录页面样式
   ======================================== */
.sa-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #f5f7fa 100%);
    padding: 1rem;
}

.sa-login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(106, 176, 243, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.sa-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sa-login-title i {
    color: var(--primary-color);
}

.sa-login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.sa-login-footer small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   二十一、空状态样式
   ======================================== */
.sa-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.sa-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.sa-empty-state h5 {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.sa-empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ========================================
   二十二、加载动画
   ======================================== */
.sa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.sa-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: sa-spin 0.8s linear infinite;
}

@keyframes sa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   二十三、辅助工具类
   ======================================== */

/* 间距 */
.sa-mt-1 { margin-top: 0.5rem; }
.sa-mt-2 { margin-top: 1rem; }
.sa-mt-3 { margin-top: 1.5rem; }
.sa-mt-4 { margin-top: 2rem; }
.sa-mb-1 { margin-bottom: 0.5rem; }
.sa-mb-2 { margin-bottom: 1rem; }
.sa-mb-3 { margin-bottom: 1.5rem; }
.sa-mb-4 { margin-bottom: 2rem; }
.sa-mb-5 { margin-bottom: 3rem; }

/* 文字 */
.sa-text-center { text-align: center; }
.sa-text-right { text-align: right; }
.sa-text-muted { color: var(--text-muted); }
.sa-text-primary { color: var(--primary-color); }
.sa-text-success { color: var(--success-color); }
.sa-text-danger { color: var(--danger-color); }
.sa-text-small { font-size: 0.875rem; }

/* Flex布局 */
.sa-d-flex { display: flex; }
.sa-justify-between { justify-content: space-between; }
.sa-justify-center { justify-content: center; }
.sa-align-center { align-items: center; }
.sa-gap-1 { gap: 0.5rem; }
.sa-gap-2 { gap: 1rem; }
.sa-gap-3 { gap: 1.5rem; }

/* 浮动 */
.sa-clearfix::after {
    content: '';
    display: table;
    clear: both;
}
