771 lines
13 KiB
CSS
771 lines
13 KiB
CSS
|
|
/* ============ 紧凑奶白啡主题 ============ */
|
||
|
|
:root {
|
||
|
|
--bg-primary: #faf7f2;
|
||
|
|
--bg-secondary: #f3efe8;
|
||
|
|
--bg-card: #ffffff;
|
||
|
|
--bg-hover: #f0ebe3;
|
||
|
|
|
||
|
|
--text-primary: #3d3028;
|
||
|
|
--text-secondary: #6b5d4d;
|
||
|
|
--text-muted: #9a8b7a;
|
||
|
|
|
||
|
|
--accent: #a67c52;
|
||
|
|
--accent-light: #d4b896;
|
||
|
|
|
||
|
|
--success: #5a9a5a;
|
||
|
|
--warning: #c4a04c;
|
||
|
|
--danger: #b86b6b;
|
||
|
|
|
||
|
|
--border: rgba(166, 124, 82, 0.12);
|
||
|
|
--shadow: 0 1px 4px rgba(61, 48, 40, 0.08);
|
||
|
|
|
||
|
|
--radius: 6px;
|
||
|
|
--transition: all 0.15s ease;
|
||
|
|
|
||
|
|
--titlebar-h: 32px;
|
||
|
|
--sidebar-w: 180px;
|
||
|
|
}
|
||
|
|
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
overflow: hidden;
|
||
|
|
height: 100vh;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 标题栏 ============ */
|
||
|
|
.titlebar {
|
||
|
|
height: var(--titlebar-h);
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
-webkit-app-region: drag;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-drag {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
padding-left: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-icon {
|
||
|
|
color: var(--accent);
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-title {
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-controls {
|
||
|
|
display: flex;
|
||
|
|
height: 100%;
|
||
|
|
-webkit-app-region: no-drag;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-btn {
|
||
|
|
width: 36px;
|
||
|
|
height: 100%;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 10px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-btn:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.titlebar-btn.close:hover {
|
||
|
|
background: var(--danger);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 主布局 ============ */
|
||
|
|
.container {
|
||
|
|
display: flex;
|
||
|
|
height: calc(100vh - var(--titlebar-h));
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 侧边栏 ============ */
|
||
|
|
.sidebar {
|
||
|
|
width: var(--sidebar-w);
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-right: 1px solid var(--border);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 8px 10px;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-label {
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-muted);
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-icon {
|
||
|
|
width: 22px;
|
||
|
|
height: 22px;
|
||
|
|
border: none;
|
||
|
|
background: var(--accent);
|
||
|
|
color: white;
|
||
|
|
border-radius: 4px;
|
||
|
|
cursor: pointer;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 10px;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-icon:hover {
|
||
|
|
opacity: 0.85;
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-list {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 7px 8px;
|
||
|
|
margin-bottom: 2px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
cursor: pointer;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-item:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-item.active {
|
||
|
|
background: var(--accent);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-item.active .db-info {
|
||
|
|
color: rgba(255, 255, 255, 0.8);
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-details {
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-name {
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 12px;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-info {
|
||
|
|
font-size: 10px;
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 2px;
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-item:hover .db-actions {
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-action-btn {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
border: none;
|
||
|
|
background: var(--bg-card);
|
||
|
|
border-radius: 3px;
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 9px;
|
||
|
|
cursor: pointer;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-action-btn:hover {
|
||
|
|
background: var(--accent-light);
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.db-action-btn.delete:hover {
|
||
|
|
background: var(--danger);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 主内容区 ============ */
|
||
|
|
.main-content {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.no-database {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
text-align: center;
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.no-database-icon {
|
||
|
|
font-size: 40px;
|
||
|
|
margin-bottom: 12px;
|
||
|
|
opacity: 0.3;
|
||
|
|
}
|
||
|
|
|
||
|
|
.no-database h2 {
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.no-database p {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.database-content {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
padding: 10px;
|
||
|
|
gap: 10px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 工具栏 ============ */
|
||
|
|
.toolbar {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
background: var(--bg-card);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 0 10px;
|
||
|
|
box-shadow: var(--shadow);
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box i {
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 11px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box input {
|
||
|
|
flex: 1;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
padding: 7px 8px;
|
||
|
|
font-size: 12px;
|
||
|
|
color: var(--text-primary);
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box input::placeholder {
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toolbar-info {
|
||
|
|
font-size: 11px;
|
||
|
|
color: var(--text-muted);
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 拖拽区域 ============ */
|
||
|
|
.drop-zone {
|
||
|
|
background: var(--bg-card);
|
||
|
|
border: 1.5px dashed var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 16px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 10px;
|
||
|
|
transition: var(--transition);
|
||
|
|
cursor: pointer;
|
||
|
|
box-shadow: var(--shadow);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drop-zone:hover,
|
||
|
|
.drop-zone.drag-over {
|
||
|
|
border-color: var(--accent);
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drop-icon {
|
||
|
|
font-size: 18px;
|
||
|
|
color: var(--accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.drop-zone span {
|
||
|
|
font-size: 12px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 备份列表 ============ */
|
||
|
|
.backup-list {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-list:empty::after {
|
||
|
|
content: '暂无备份';
|
||
|
|
display: block;
|
||
|
|
text-align: center;
|
||
|
|
color: var(--text-muted);
|
||
|
|
padding: 30px;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-item {
|
||
|
|
background: var(--bg-card);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 8px 10px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
transition: var(--transition);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-item:hover {
|
||
|
|
border-color: var(--accent-light);
|
||
|
|
box-shadow: var(--shadow);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-item.hidden {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-icon {
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-light));
|
||
|
|
border-radius: 4px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 14px;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-details {
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-name {
|
||
|
|
font-weight: 500;
|
||
|
|
font-size: 12px;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-meta {
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
margin-top: 2px;
|
||
|
|
font-size: 10px;
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-meta span {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-tag {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
color: var(--accent);
|
||
|
|
padding: 1px 6px;
|
||
|
|
border-radius: 3px;
|
||
|
|
font-size: 10px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-tag:hover {
|
||
|
|
background: var(--accent-light);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-tag.empty {
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-action-btn {
|
||
|
|
width: 26px;
|
||
|
|
height: 26px;
|
||
|
|
border: none;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 11px;
|
||
|
|
cursor: pointer;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: var(--transition);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-action-btn.export {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-action-btn.export:hover {
|
||
|
|
background: var(--accent);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-action-btn.delete {
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.backup-action-btn.delete:hover {
|
||
|
|
background: var(--danger);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 按钮 ============ */
|
||
|
|
.btn {
|
||
|
|
padding: 6px 14px;
|
||
|
|
border: none;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: var(--transition);
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background: var(--accent);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:hover {
|
||
|
|
opacity: 0.9;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-danger {
|
||
|
|
background: var(--danger);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 模态框 ============ */
|
||
|
|
.modal {
|
||
|
|
position: fixed;
|
||
|
|
inset: 0;
|
||
|
|
display: none;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal.show {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-overlay {
|
||
|
|
position: absolute;
|
||
|
|
inset: 0;
|
||
|
|
background: rgba(61, 48, 40, 0.35);
|
||
|
|
backdrop-filter: blur(2px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-content {
|
||
|
|
position: relative;
|
||
|
|
background: var(--bg-card);
|
||
|
|
border-radius: 8px;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 320px;
|
||
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
||
|
|
animation: modalIn 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-sm {
|
||
|
|
max-width: 280px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes modalIn {
|
||
|
|
from {
|
||
|
|
opacity: 0;
|
||
|
|
transform: scale(0.95);
|
||
|
|
}
|
||
|
|
|
||
|
|
to {
|
||
|
|
opacity: 1;
|
||
|
|
transform: scale(1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 12px 14px;
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header h3 {
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 600;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-close {
|
||
|
|
width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
color: var(--text-muted);
|
||
|
|
font-size: 12px;
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-close:hover {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-body {
|
||
|
|
padding: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-body p {
|
||
|
|
font-size: 12px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-footer {
|
||
|
|
display: flex;
|
||
|
|
justify-content: flex-end;
|
||
|
|
gap: 6px;
|
||
|
|
padding: 10px 14px;
|
||
|
|
border-top: 1px solid var(--border);
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-radius: 0 0 8px 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 表单 ============ */
|
||
|
|
.form-group {
|
||
|
|
margin-bottom: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group:last-child {
|
||
|
|
margin-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group label {
|
||
|
|
display: block;
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group input {
|
||
|
|
width: 100%;
|
||
|
|
padding: 8px 10px;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
background: var(--bg-primary);
|
||
|
|
color: var(--text-primary);
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group input:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 文件名不匹配 ============ */
|
||
|
|
.mismatch-info {
|
||
|
|
background: var(--bg-secondary);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mismatch-row {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 4px 0;
|
||
|
|
font-size: 11px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mismatch-label {
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
.mismatch-value {
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.mismatch-value.highlight {
|
||
|
|
color: var(--accent);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ Toast ============ */
|
||
|
|
.toast {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 16px;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%) translateY(60px);
|
||
|
|
background: var(--bg-card);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 8px 14px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
||
|
|
opacity: 0;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
z-index: 2000;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.show {
|
||
|
|
transform: translateX(-50%) translateY(0);
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast-icon {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.success .toast-icon {
|
||
|
|
color: var(--success);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.error .toast-icon {
|
||
|
|
color: var(--danger);
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.warning .toast-icon {
|
||
|
|
color: var(--warning);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 加载 ============ */
|
||
|
|
.loading-overlay {
|
||
|
|
position: fixed;
|
||
|
|
inset: 0;
|
||
|
|
background: rgba(250, 247, 242, 0.9);
|
||
|
|
display: none;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 3000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.loading-overlay.show {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.loading-spinner {
|
||
|
|
width: 28px;
|
||
|
|
height: 28px;
|
||
|
|
border: 2px solid var(--bg-secondary);
|
||
|
|
border-top-color: var(--accent);
|
||
|
|
border-radius: 50%;
|
||
|
|
animation: spin 0.6s linear infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes spin {
|
||
|
|
to {
|
||
|
|
transform: rotate(360deg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.loading-text {
|
||
|
|
margin-top: 10px;
|
||
|
|
color: var(--text-secondary);
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============ 滚动条 ============ */
|
||
|
|
::-webkit-scrollbar {
|
||
|
|
width: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-webkit-scrollbar-track {
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-webkit-scrollbar-thumb {
|
||
|
|
background: var(--bg-hover);
|
||
|
|
border-radius: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
::-webkit-scrollbar-thumb:hover {
|
||
|
|
background: var(--accent-light);
|
||
|
|
}
|