2026-06-12 17:46:25 +08:00
|
|
|
|
/* ============================================================
|
2026-06-13 16:16:37 +08:00
|
|
|
|
CamTalk — Web 端应用样式
|
|
|
|
|
|
双栏布局:左侧视频面板 + 右侧聊天面板
|
2026-06-12 17:46:25 +08:00
|
|
|
|
============================================================ */
|
|
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
|
--color-primary: #2563eb;
|
|
|
|
|
|
--color-primary-hover: #1d4ed8;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
--color-bg: #0b0f1a;
|
|
|
|
|
|
--color-surface: #151b2b;
|
|
|
|
|
|
--color-surface-2: #1c2438;
|
|
|
|
|
|
--color-text: #e2e8f0;
|
|
|
|
|
|
--color-text-muted: #64748b;
|
|
|
|
|
|
--color-border: #1e293b;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
--color-success: #22c55e;
|
|
|
|
|
|
--color-warning: #f59e0b;
|
|
|
|
|
|
--color-error: #ef4444;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
--radius: 10px;
|
|
|
|
|
|
--radius-sm: 6px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
html, body, #root {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-12 17:46:25 +08:00
|
|
|
|
body {
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
background: var(--color-bg);
|
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- App Shell ---- */
|
|
|
|
|
|
|
2026-06-12 17:46:25 +08:00
|
|
|
|
.app {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
height: 100vh;
|
|
|
|
|
|
overflow: hidden;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ---- Header ---- */
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.header {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
background: var(--color-surface);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
flex-shrink: 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.header__left {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header__title {
|
|
|
|
|
|
font-size: 1.2rem;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
font-weight: 700;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
color: var(--color-text);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.header__subtitle {
|
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
color: var(--color-text-muted);
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.header__right {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 12px;
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.header__stats {
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
|
background: var(--color-surface-2);
|
|
|
|
|
|
border-radius: 12px;
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.badge {
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
padding: 3px 10px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
border-radius: 12px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-weight: 500;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.badge--connected {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
color: var(--color-success);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: rgba(34, 197, 94, 0.1);
|
|
|
|
|
|
border: 1px solid rgba(34, 197, 94, 0.3);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.badge--connecting {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
color: var(--color-warning);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: rgba(245, 158, 11, 0.1);
|
|
|
|
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.badge--disconnected {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
color: var(--color-text-muted);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: var(--color-surface-2);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn-icon {
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
padding: 6px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
transition: background 0.15s;
|
|
|
|
|
|
color: var(--color-text-muted);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn-icon:hover {
|
|
|
|
|
|
background: var(--color-surface-2);
|
|
|
|
|
|
color: var(--color-text);
|
2026-06-13 11:10:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- Workspace (双栏) ---- */
|
2026-06-13 11:10:29 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.workspace {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
overflow: hidden;
|
2026-06-13 13:57:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- 左侧视频面板 ---- */
|
2026-06-12 17:46:25 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-panel {
|
2026-06-13 16:54:57 +08:00
|
|
|
|
width: 400px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
flex-shrink: 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
padding: 16px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-container {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
aspect-ratio: 4 / 3;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: #0a0e17;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
overflow: hidden;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.video-container .video-preview {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
border-radius: 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-container .video-preview__video {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: #000;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-placeholder {
|
2026-06-12 17:46:25 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
display: flex;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
flex-direction: column;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
gap: 8px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
color: var(--color-text-muted);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-size: 0.82rem;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-placeholder__icon {
|
|
|
|
|
|
font-size: 2.4rem;
|
|
|
|
|
|
opacity: 0.2;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
}
|
2026-06-12 17:46:25 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-indicator {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 16px;
|
|
|
|
|
|
left: 16px;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.75);
|
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
|
color: var(--color-success);
|
|
|
|
|
|
padding: 6px 14px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
animation: pulse 1.5s ease-in-out infinite;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-indicator--loading { color: var(--color-warning); }
|
|
|
|
|
|
.video-indicator--audio { left: auto; right: 16px; color: var(--color-primary); }
|
|
|
|
|
|
.video-indicator--error { color: var(--color-error); animation: none; }
|
|
|
|
|
|
|
|
|
|
|
|
.detail-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 12px;
|
|
|
|
|
|
right: 12px;
|
|
|
|
|
|
background: rgba(37, 99, 235, 0.85);
|
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.observation-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 12px;
|
|
|
|
|
|
left: 12px;
|
|
|
|
|
|
background: rgba(34, 197, 94, 0.85);
|
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
animation: pulse 2s ease-in-out infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.video-overlay {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.35);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
backdrop-filter: blur(2px);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-overlay__spinner {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
border: 3px solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
|
border-top-color: white;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
animation: spin 0.8s linear infinite;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- 视频控制栏 ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.video-controls {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
padding: 4px 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.video-controls__row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 8px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- 右侧聊天面板 ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.chat-panel-wrapper {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
background: var(--color-surface);
|
|
|
|
|
|
border-left: 1px solid var(--color-border);
|
|
|
|
|
|
min-width: 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-panel-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 12px 16px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
font-weight: 600;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
|
flex-shrink: 0;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-panel-header__mode {
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--color-success);
|
|
|
|
|
|
background: rgba(34, 197, 94, 0.1);
|
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
|
border-radius: 10px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-panel-body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: hidden;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
display: flex;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
flex-direction: column;
|
2026-06-13 14:38:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- Chat Panel (覆盖子组件样式) ---- */
|
2026-06-12 17:46:25 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-panel {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 10px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-panel--empty {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
font-size: 0.85rem;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message {
|
|
|
|
|
|
padding: 10px 14px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
background: var(--color-surface-2);
|
|
|
|
|
|
max-width: 92%;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message--user {
|
|
|
|
|
|
border-left: 2px solid var(--color-primary);
|
|
|
|
|
|
align-self: flex-end;
|
|
|
|
|
|
background: rgba(37, 99, 235, 0.08);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message--assistant {
|
|
|
|
|
|
border-left: 2px solid var(--color-success);
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message--streaming {
|
|
|
|
|
|
opacity: 0.85;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message__role {
|
|
|
|
|
|
font-size: 0.65rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
margin-bottom: 3px;
|
2026-06-12 17:46:25 +08:00
|
|
|
|
}
|
2026-06-13 11:43:16 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message__content {
|
|
|
|
|
|
font-size: 0.82rem;
|
|
|
|
|
|
line-height: 1.55;
|
|
|
|
|
|
white-space: pre-wrap;
|
2026-06-13 14:46:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.chat-message__meta {
|
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
font-size: 0.65rem;
|
|
|
|
|
|
color: var(--color-text-muted);
|
2026-06-13 14:46:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 11:43:16 +08:00
|
|
|
|
/* ---- Streaming Cursor ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.cursor {
|
|
|
|
|
|
display: inline;
|
|
|
|
|
|
animation: blink 0.8s step-end infinite;
|
|
|
|
|
|
color: var(--color-success);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ---- System Message ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.system-message {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding: 8px 16px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
margin: 0 20px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.8rem;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.system-message--warning {
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: rgba(245, 158, 11, 0.1);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
color: var(--color-warning);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
/* ---- Drawer (Config Panel) ---- */
|
2026-06-13 16:16:37 +08:00
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
.drawer-overlay {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.4);
|
|
|
|
|
|
backdrop-filter: blur(2px);
|
|
|
|
|
|
animation: fadeIn 0.2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawer {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
width: 320px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: var(--color-surface);
|
2026-06-13 16:54:57 +08:00
|
|
|
|
border-left: 1px solid var(--color-border);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
display: flex;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
animation: slideInRight 0.25s ease;
|
|
|
|
|
|
box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
.drawer__header {
|
2026-06-13 16:16:37 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 14px 16px;
|
|
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawer__title {
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-weight: 600;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
font-size: 0.9rem;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
.drawer__close {
|
2026-06-13 16:16:37 +08:00
|
|
|
|
background: none;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
cursor: pointer;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
transition: all 0.15s;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
.drawer__close:hover {
|
|
|
|
|
|
background: var(--color-surface-2);
|
2026-06-13 16:16:37 +08:00
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
.drawer__body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ---- Config Group ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.config-group {
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-group__title {
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
letter-spacing: 0.8px;
|
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.config-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 10px 0;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-size: 0.82rem;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-row__info {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-row__label {
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-row__desc {
|
|
|
|
|
|
font-size: 0.72rem;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-row select,
|
|
|
|
|
|
.config-row input[type="checkbox"] {
|
|
|
|
|
|
background: var(--color-surface-2);
|
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
2026-06-13 16:54:57 +08:00
|
|
|
|
padding: 5px 10px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
font-size: 0.8rem;
|
2026-06-13 16:54:57 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.config-row input[type="checkbox"] {
|
|
|
|
|
|
width: 18px;
|
|
|
|
|
|
height: 18px;
|
|
|
|
|
|
cursor: pointer;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ---- Toast ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.toast-container {
|
|
|
|
|
|
position: fixed;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
top: 68px;
|
|
|
|
|
|
right: 20px;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
z-index: 1000;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toast {
|
|
|
|
|
|
padding: 10px 16px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.82rem;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
animation: slideIn 0.3s ease-out;
|
|
|
|
|
|
max-width: 320px;
|
2026-06-13 16:16:37 +08:00
|
|
|
|
backdrop-filter: blur(8px);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.toast--error { background: rgba(239, 68, 68, 0.9); color: white; }
|
|
|
|
|
|
.toast--warning { background: rgba(245, 158, 11, 0.9); color: #000; }
|
|
|
|
|
|
.toast--info { background: rgba(37, 99, 235, 0.9); color: white; }
|
|
|
|
|
|
|
|
|
|
|
|
/* ---- Buttons ---- */
|
|
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
|
padding: 8px 20px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.15s;
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--lg {
|
|
|
|
|
|
padding: 12px 32px;
|
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--primary {
|
|
|
|
|
|
background: var(--color-primary);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--primary:hover {
|
|
|
|
|
|
background: var(--color-primary-hover);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--secondary {
|
|
|
|
|
|
background: var(--color-surface-2);
|
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
|
}
|
2026-06-13 11:43:16 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--secondary:hover {
|
|
|
|
|
|
background: var(--color-border);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--warning {
|
|
|
|
|
|
background: var(--color-warning);
|
|
|
|
|
|
color: #000;
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--warning:hover { opacity: 0.9; }
|
|
|
|
|
|
|
|
|
|
|
|
.btn--danger {
|
|
|
|
|
|
background: rgba(239, 68, 68, 0.15);
|
|
|
|
|
|
color: var(--color-error);
|
|
|
|
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
2026-06-13 11:43:16 +08:00
|
|
|
|
}
|
2026-06-13 14:19:47 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--danger:hover {
|
|
|
|
|
|
background: rgba(239, 68, 68, 0.25);
|
|
|
|
|
|
}
|
2026-06-13 14:19:47 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
.btn--active {
|
|
|
|
|
|
background: var(--color-primary);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
|
|
|
|
|
|
animation: pulseBtn 2s ease-in-out infinite;
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- Animations ---- */
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes pulse {
|
|
|
|
|
|
0%, 100% { opacity: 1; }
|
|
|
|
|
|
50% { opacity: 0.6; }
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
@keyframes pulseBtn {
|
|
|
|
|
|
0%, 100% { box-shadow: 0 0 12px rgba(37, 99, 235, 0.4); }
|
|
|
|
|
|
50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.7); }
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
@keyframes blink {
|
|
|
|
|
|
0%, 100% { opacity: 1; }
|
|
|
|
|
|
50% { opacity: 0; }
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
@keyframes spin {
|
|
|
|
|
|
to { transform: rotate(360deg); }
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
@keyframes slideIn {
|
|
|
|
|
|
from { opacity: 0; transform: translateX(20px); }
|
|
|
|
|
|
to { opacity: 1; transform: translateX(0); }
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:54:57 +08:00
|
|
|
|
@keyframes fadeIn {
|
|
|
|
|
|
from { opacity: 0; }
|
|
|
|
|
|
to { opacity: 1; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes slideInRight {
|
|
|
|
|
|
from { transform: translateX(100%); }
|
|
|
|
|
|
to { transform: translateX(0); }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
/* ---- Scrollbar ---- */
|
2026-06-13 14:19:47 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
|
width: 6px;
|
2026-06-13 14:19:47 +08:00
|
|
|
|
}
|
2026-06-13 14:46:42 +08:00
|
|
|
|
|
2026-06-13 16:16:37 +08:00
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
|
background: var(--color-border);
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
|
background: var(--color-text-muted);
|
2026-06-13 14:46:42 +08:00
|
|
|
|
}
|