/* 后台管理页面特有样式 */

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

/* CSS变量定义 */
:root {
    /* 主色调 */
    --accent-primary: #10b981;
    --accent-secondary: #10b981;
    --accent-danger: #dc3545;
    --accent-warning: #ffc107;
    --accent-info: #007bff;
    
    /* 渐变 */
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(0, 0, 0, 0.02);
    --bg-hover: rgba(0, 0, 0, 0.05);
    
    /* 文本色 */
    --text-primary: rgba(0, 0, 0, 0.9);
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
    
    /* 边框色 */
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.05);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* HTML和Body基础样式 */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    overflow-x: hidden;
    height: 100vh;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* 滚动条样式 - 隐藏垂直滚动条但保留滚动功能 */
/* 隐藏垂直滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 8px;
}

/* 水平滚动条轨道 */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* 水平滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 全局设置：隐藏垂直滚动条但保留滚动功能 */
body, html,
.admin-sidebar,
.admin-content,
.settings-cards-grid,
.developers-list,
.backup-list,
.config-editor,
.logs-table-container,
.shop-system,
.shop-system .modal-body,
.shop-system .category-tabs-container {
    /* 标准浏览器 */
    overflow-y: auto;
    scrollbar-width: none;
    
    /* IE/Edge */
    -ms-overflow-style: none;
}

/* Chrome/Safari/Opera */
body::-webkit-scrollbar,
html::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.admin-content::-webkit-scrollbar,
.settings-cards-grid::-webkit-scrollbar,
.developers-list::-webkit-scrollbar,
.backup-list::-webkit-scrollbar,
.config-editor::-webkit-scrollbar,
.logs-table-container::-webkit-scrollbar,
.shop-system::-webkit-scrollbar,
.shop-system .modal-body::-webkit-scrollbar,
.shop-system .category-tabs-container::-webkit-scrollbar {
    display: none;
}

/* 确保所有容器都能正常滚动 */
* {
    -webkit-overflow-scrolling: touch; /* 移动端平滑滚动 */
}

/* 基础链接样式 */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* 基础按钮样式 */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

/* 禁用状态 */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 基础表单元素样式 */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* 整体布局 */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-gradient);
}

/* 侧边栏 */
.admin-sidebar {
    width: 250px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-lg) 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    /* 隐藏滚动条但保留滚动功能 */
    -ms-overflow-style: none;
    scrollbar-width: none;
    z-index: 100;
    transition: all var(--transition-normal);
    transform: translateX(0);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* 隐藏WebKit浏览器的滚动条 */
.admin-sidebar::-webkit-scrollbar {
    display: none;
}

/* 侧边栏折叠状态 */
.admin-sidebar.collapsed {
    width: 80px;
    transform: translateX(0);
}

/* 侧边栏移动端打开状态 */
.admin-sidebar.open {
    transform: translateX(0);
}

/* 侧边栏标题 */
.sidebar-title {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

/* 侧边栏导航 */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航项 */
.sidebar-nav li {
    margin: 0;
}

/* 导航链接 */
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px var(--spacing-lg);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* 导航链接悬停效果 */
.sidebar-nav a:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-left-color: #10b981;
    font-weight: 500;
}

/* 激活状态 */
.sidebar-nav a.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-left-color: #10b981;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* 导航图标 */
.nav-icon {
    font-size: 1.25rem;
    margin-right: 14px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

/* 导航链接悬停时图标缩放 */
.sidebar-nav a:hover .nav-icon {
    transform: scale(1.1);
}

/* 导航文本 */
.nav-text {
    font-size: 0.98rem;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 子菜单切换图标 */
.submenu-toggle {
    margin-left: auto;
    font-size: 0.85rem;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    opacity: 0.7;
}

/* 导航链接悬停时切换图标效果 */
.sidebar-nav a:hover .submenu-toggle {
    opacity: 1;
    transform: rotate(90deg);
}

/* 子菜单切换图标旋转 */
.has-submenu.open .submenu-toggle {
    transform: rotate(180deg);
}

/* 子菜单容器 */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

/* 子菜单展开状态 */
.has-submenu.open .submenu {
    display: block;
    animation: slideDown var(--transition-normal);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 二级子菜单链接 */
.submenu a {
    padding-left: 50px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.1);
    border-left: 3px solid transparent;
}

/* 三级子菜单链接 */
.submenu .submenu a {
    padding-left: 70px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.15);
}

/* 子菜单导航文本 */
.submenu .nav-text {
    font-size: 0.85rem;
}

/* 三级子菜单导航文本 */
.submenu .submenu .nav-text {
    font-size: 0.8rem;
}

/* 子菜单导航图标 */
.submenu .nav-icon {
    font-size: 1rem;
    width: 18px;
    margin-right: 12px;
}

/* 三级子菜单导航图标 */
.submenu .submenu .nav-icon {
    font-size: 0.95rem;
    width: 16px;
    margin-right: 10px;
}

/* 子菜单链接悬停效果 */
.submenu a:hover {
    background: rgba(16, 185, 129, 0.2);
    border-left-color: var(--accent-primary);
}

/* 子菜单链接激活状态 */
.submenu a.active {
    background: rgba(16, 185, 129, 0.25);
    border-left-color: var(--accent-primary);
    font-weight: 600;
}

/* 服务器信息网格 */
.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 信息项 */
.info-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 信息项标题 */
.info-item h3.card-title {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* 信息项标签 */
.info-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

/* 信息项值 */
.info-item span {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* 功能项 */
.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-secondary);
}

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

/* 功能标签 */
.feature-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 功能状态 */
.feature-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.feature-status.开 {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.feature-status.关 {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.1);
}

/* 账号项 */
.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-secondary);
}

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

/* 账号标签 */
.account-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 账号值 */
.account-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 配置表单 */
.config-form {
    margin-top: 20px;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 表单行居中对齐 */
.form-row.justify-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

/* 表单行两端对齐 */
.form-row.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

/* 表单组 */
.form-group {
    display: flex;
    flex-direction: column;
}

/* 全宽表单组 */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* 表单标签 */
.form-group label {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
}

/* 表单控件 */
.form-control {
    padding: 10px 16px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    /* 确保所有表单控件有相同的高度 */
    height: 44px;
    min-height: 44px;
    line-height: 1.5;
}

/* 表单控件焦点状态 */
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--bg-primary);
}

/* 下拉框样式修复 - 专门针对配置下拉框 */
select#anchor-config, select#edit-anchor-config, select.form-control {
    /* 重置浏览器默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 确保下拉框高度与输入框一致 */
    height: 44px;
    min-height: 44px;
    /* 添加自定义下拉箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 10.5L2 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    /* 确保文本不会被箭头遮挡 */
    padding-right: 42px;
    /* 确保下拉框与输入框对齐 */
    vertical-align: top;
    display: block;
}

/* 修复IE11下拉框样式 */
select#anchor-config::-ms-expand, select#edit-anchor-config::-ms-expand, select.form-control::-ms-expand {
    display: none;
}

/* 确保下拉框选项样式正确 */
select#anchor-config option, select#edit-anchor-config option, select.form-control option {
    padding: 8px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
}

/* 确保下拉框在表单行中正确显示 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* 确保标签与表单控件正确对齐 */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 只读表单控件 */
.form-control[readonly] {
    background: var(--bg-secondary);
    cursor: not-allowed;
    color: var(--text-muted);
}

/* 事件项样式修复 */
.event-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.event-item select.form-control {
    flex: 1;
    min-width: 200px;
}

.event-item input.form-control {
    width: auto;
    min-width: 100px;
    margin-left: 10px;
}

.event-item .btn {
    margin-left: 10px;
}



/* 表单操作按钮区域 */
.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    /* 统一按钮样式 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    /* 固定高度，确保所有按钮尺寸一致 */
    height: 40px !important;
    /* 固定边框和圆角 */
    border: none !important;
    border-radius: 6px !important;
    /* 固定字体样式 */
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    /* 固定颜色 */
    color: white !important;
    /* 文本装饰 */
    text-decoration: none !important;
    /* 光标样式 */
    cursor: pointer !important;
    /* 过渡效果 - 只保留透明度变化 */
    transition: opacity 0.15s ease !important;
    /* 确保按钮不会被压缩 */
    flex-shrink: 0 !important;
    /* 确保按钮尺寸不随内容变化 */
    min-width: 120px !important;
    /* 溢出处理 */
    overflow: hidden !important;
    /* 确保按钮层级正确 */
    position: relative !important;
    z-index: 1 !important;
    /* 确保按钮尺寸固定 */
    box-sizing: border-box !important;
    /* 禁用浏览器默认的按钮样式 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* 禁用默认的点击高亮效果 */
    -webkit-tap-highlight-color: transparent !important;
    /* 确保按钮内容不换行 */
    white-space: nowrap !important;
    /* 防止文本溢出 */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* 确保行高一致 */
    line-height: 1 !important;
}

.btn i {
    vertical-align: middle;
    line-height: 1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn span {
    vertical-align: middle;
    line-height: 1;
}

/* 主要按钮样式 */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.95;
}

/* 次要按钮样式 */
.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-primary);
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

/* 危险按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.95;
}

/* 小按钮样式 */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: calc(var(--radius-sm) - 2px);
}

/* 按钮点击状态 - 修复点击时变大再变小的问题 */
.btn:active,
.start-btn:active,
.stop-btn:active,
.restart-btn:active,
.feature-btn:active {
    /* 移除点击时的缩放效果，解决闪烁问题 */
    transform: none;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

/* 按钮禁用状态 */
.btn:disabled,
.start-btn:disabled,
.stop-btn:disabled,
.restart-btn:disabled,
.feature-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* 主内容区域 */
.admin-main {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: white;
    color: rgba(0, 0, 0, 0.9);
    /* 确保内容区域不影响导航栏 */
    overflow: visible;
}

/* 内容区域文本颜色 */
.content-container {
    color: rgba(0, 0, 0, 0.9);
    /* 确保内容容器不影响导航栏 */
    overflow: visible;
}

/* 侧边栏折叠时的主内容区域 */
.admin-main.collapsed {
    margin-left: 80px;
}

/* 导航栏 */
.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0 30px 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: all 0.3s ease;
    /* 确保内容不被截断 */
    box-sizing: border-box;
    overflow: visible;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* 汉堡菜单按钮悬停效果 */
.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* 汉堡菜单按钮激活状态 */
.menu-toggle.active {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

/* 页面标题 */
.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

/* 导航栏左侧区域 */
.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    /* 固定右侧区域，防止左侧内容变化时影响位置 */
    flex-shrink: 0;
    min-width: fit-content;
}

/* 用户名 */
.username {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    /* 固定用户名宽度，防止内容变化时影响按钮位置 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* 退出登录按钮 - 确保不受其他btn样式影响 */
.admin-header .logout-btn {
    background: var(--accent-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    /* 确保按钮有足够宽度，不被截断 */
    height: auto !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
    line-height: normal !important;
}

/* 退出登录按钮悬停效果 */
.admin-header .logout-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* 内容容器 */
.content-container {
    padding: var(--spacing-md);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    max-width: none;
}

/* 内容卡片 */
.content-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: none;
    margin-bottom: var(--spacing-lg);
    transition: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 移除悬停效果，使用简洁的卡面设计 */
.content-card:hover {
    box-shadow: none;
    transform: none;
}

/* 卡片标题 */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* 确保卡片内容垂直对齐 */
.overview-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    margin-bottom: 0;
}

.overview-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

/* 卡片头部 */
.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    margin-right: auto;
}

/* 机器人状态容器 */
.robot-status-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: auto;
    flex-shrink: 0;
}

.robot-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.robot-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.robot-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.robot-status.在线 {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.robot-status.离线 {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.1);
}

.robot-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.robot-actions .feature-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    min-width: 60px;
    border-radius: 20px;
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* 功能项 */
.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    min-height: 80px;
}

.feature-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

/* 功能图标 */
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* 功能内容 */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: space-between;
    width: calc(100% - 52px); /* 减去图标宽度和间距 */
    min-height: 40px;
}

/* 功能信息区域 - 名称和状态 */
.feature-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 1;
    white-space: nowrap;
    max-width: 50%;
}

/* 功能操作区域 - 按钮 */
.feature-actions-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 130px;
}

/* 功能名称 */
.feature-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* 功能状态 */
.feature-status {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 功能状态 - 开 */
.feature-status.开 {
    color: var(--accent-primary);
}

/* 功能状态 - 关 */
.feature-status.关 {
    color: var(--accent-danger);
}

/* 在线状态 */
.feature-online-status {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
    padding: 2px var(--spacing-xs);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.05);
}

/* 在线状态 - 在线 */
.feature-online-status.在线 {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

/* 在线状态 - 离线 */
.feature-online-status.离线 {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.1);
}

/* 功能操作按钮组 */
.feature-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: 0;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    flex-wrap: nowrap;
    flex-direction: row !important;
    min-width: 130px;
}

/* 功能按钮基础样式 */
.feature-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 55px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 功能按钮悬停效果 */
.feature-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 功能按钮点击效果 */
.feature-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 启动按钮 - 仪表盘专用 */
.start-btn {
    background: var(--accent-primary);
    color: white;
}

/* 启动按钮悬停效果 */
.start-btn:hover:not(:disabled) {
    background: #059669;
}

/* 启动按钮 - 禁用状态 */
.start-btn:disabled {
    background: rgba(16, 185, 129, 0.6);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 关闭按钮 - 仪表盘专用 */
.stop-btn {
    background: var(--accent-danger);
    color: white;
}

/* 关闭按钮悬停效果 */
.stop-btn:hover:not(:disabled) {
    background: #bb2d3b;
}

/* 关闭按钮 - 禁用状态 */
.stop-btn:disabled {
    background: rgba(220, 53, 69, 0.6);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 重启按钮 */
.restart-btn {
    background: var(--accent-warning);
    color: white;
}

/* 重启按钮悬停效果 */
.restart-btn:hover:not(:disabled) {
    background: #d97706;
}

/* 重启按钮 - 禁用状态 */
.restart-btn:disabled {
    background: rgba(245, 158, 11, 0.6);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 仪表盘功能按钮组特殊样式 */
.features-grid .feature-actions {
    gap: var(--spacing-xs);
    margin-top: 0;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    flex-wrap: nowrap;
    flex-direction: row !important;
    min-width: 120px;
}

/* 账号详情 */
.account-details {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* 账号项 */
.account-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.account-item:hover {
    background: var(--bg-hover);
}

/* 账号标签 */
.account-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.account-label i {
    color: var(--accent-primary);
}

/* 账号值 */
.account-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 数据统计区域 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 统计卡片 */
.stat-card {
    background: var(--accent-gradient);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* 统计数值 */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* 统计标签 */
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 欢迎信息 */
.welcome-section {
    padding: calc(var(--spacing-xl) * 1.5);
    margin-bottom: var(--spacing-lg);
    background: 
        linear-gradient(135deg, #10b981 0%, #06b6d4 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.25);
    color: white;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="geometric" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 10 0 L 14.14 7.07 L 20 10 L 14.14 12.93 L 10 20 L 7.07 12.93 L 0 10 L 7.07 7.07 Z" fill="rgba(255,255,255,0.03)" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23geometric)"/></svg>');
    opacity: 0.6;
    pointer-events: none;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-section:hover {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.35);
    transform: translateY(-6px) scale(1.02);
}

.welcome-section:hover::before {
    opacity: 1;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    opacity: 1;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* 功能与信息概览 */
.overview-section {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-main.collapsed {
        margin-left: 0;
    }
    
    .admin-header {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 1.1rem;
        margin-left: 10px;
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    .nav-text {
        display: inline;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 欢迎信息响应式调整 */
    .welcome-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        border-radius: var(--radius-lg);
    }
    
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    /* 概览卡片响应式调整 */
    .overview-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* 功能网格响应式调整 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 功能项响应式调整 - 确保所有元素在一行显示 */
    .feature-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
        flex-direction: row;
        align-items: center;
        min-height: 60px;
    }
    
    /* 功能图标响应式调整 */
    .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        align-self: center;
    }
    
    /* 功能内容响应式调整 - 确保所有元素在一行显示 */
    .feature-content {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-xs);
        width: calc(100% - 38px); /* 减去图标宽度和间距 */
        min-height: auto;
        flex-wrap: nowrap;
    }
    
    /* 功能信息区域响应式调整 - 确保名称、状态、在线状态在一行 */
    .feature-info {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        flex-shrink: 1;
        white-space: nowrap;
        flex: 1;
        overflow: hidden;
    }
    
    /* 功能名称响应式调整 */
    .feature-name {
        font-size: 0.85rem;
        font-weight: 600;
        flex-shrink: 0;
        min-width: 30px;
    }
    
    /* 功能状态响应式调整 */
    .feature-status {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
        flex-shrink: 0;
        min-width: 20px;
        text-align: center;
    }
    
    /* 在线状态响应式调整 */
    .feature-online-status {
        font-size: 0.7rem;
        font-weight: 500;
        padding: 2px 6px;
        margin-left: var(--spacing-xs);
        border-radius: 4px;
        flex-shrink: 0;
        min-width: 30px;
        text-align: center;
    }
    
    /* 功能操作区域响应式调整 - 确保按钮在同一行 */
    .feature-actions-container {
        margin-left: var(--spacing-xs);
        display: flex;
        align-items: center;
        flex-shrink: 0;
        min-width: 100px;
    }
    
    /* 功能按钮响应式调整 */
    .feature-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 42px;
        height: 26px;
        border-radius: 3px;
        line-height: 1;
    }
    
    /* 功能按钮组响应式调整 - 确保按钮紧凑排列 */
    .feature-actions {
        min-width: 100px;
        gap: 2px;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    
    /* 仪表盘功能按钮组特殊样式 */
    .features-grid .feature-actions {
        min-width: 100px;
        gap: 2px;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    
    /* 确保状态和按钮在同一行显示 */
    .feature-item .feature-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .user-info {
        gap: 10px;
    }
    
    .username {
        font-size: 0.9rem;
    }
    
    .admin-header .logout-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* 侧边栏折叠时隐藏文本 */
.admin-sidebar.collapsed .nav-text {
    display: none;
}

/* 侧边栏折叠时标题只显示MOKE */
.admin-sidebar.collapsed .sidebar-title {
    width: 60px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
    position: relative;
    margin: 0 auto 20px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar.collapsed .sidebar-title::before {
    content: 'MOKE';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

/* 移除重复的导航栏样式，避免冲突 */
/* 导航栏样式已统一在.admin-header类中定义 */

/* 加载动画 */
.page-loader.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn.loading::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0.5;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 主内容区域加载动画 */
.content-container .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    margin: 0;
    padding: 0;
}

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



/* 通知样式 */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: auto;
}

/* 通知关闭按钮 */
.notification .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.notification .close-btn:hover {
    opacity: 1;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.notification.info {
    background: linear-gradient(135deg, #007bff 0%, #0069d9 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* 备份管理页面样式 */
.backup-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backup-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.backup-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    transition: all 0.2s ease;
    align-items: center;
}

.backup-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.backup-col {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.backup-col.filename {
    font-weight: 500;
    color: #1e293b;
    word-break: break-all;
}

.backup-col.size {
    color: #64748b;
    font-size: 13px;
}

.backup-col.date {
    color: #64748b;
    font-size: 13px;
}

.backup-col.actions {
    justify-content: flex-end;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* 备份管理页面恢复按钮样式 */
.backup-restore-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
    outline: none;
    font-family: inherit;
    white-space: nowrap;
    user-select: none;
}

.backup-restore-btn i {
    font-size: 11px;
    margin-right: 1px;
}

.backup-restore-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.backup-restore-btn:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
    transform: translateY(0.5px);
}

.backup-restore-btn:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* 加载状态 */
.backup-restore-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
    color: transparent;
}

.backup-restore-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-top: 1.5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.backup-restore-btn.loading i {
    opacity: 0;
}