Files
CamTalk/frontend/src/App.css

906 lines
18 KiB
CSS
Raw Normal View History

/* ============================================================
CamTalk Web 端应用样式
双栏布局左侧视频面板 + 右侧聊天面板
2026-06-14 10:18:36 +08:00
设计方向深色科技极简Ethereal Glass 美学
字体Inter 优先系统字体栈兜底
颜色冷灰体系单一蓝色强调色
============================================================ */
:root {
2026-06-14 10:18:36 +08:00
--color-primary: #3b82f6;
--color-primary-hover: #2563eb;
--color-bg: #0a0a0f;
--color-surface: #111118;
--color-surface-2: #1a1a24;
--color-surface-3: #22222e;
--color-text: #d4d4dc;
--color-text-muted: #5a5a6e;
--color-border: #1f1f2a;
--color-success: #34d399;
--color-warning: #fbbf24;
--color-error: #f87171;
--radius: 12px;
--radius-sm: 8px;
--transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
--transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] {
--color-primary: #2563eb;
--color-primary-hover: #1d4ed8;
2026-06-14 10:18:36 +08:00
--color-bg: #f4f4f8;
--color-surface: #ffffff;
2026-06-14 10:18:36 +08:00
--color-surface-2: #f0f0f5;
--color-surface-3: #e8e8ee;
--color-text: #111118;
--color-text-muted: #6b6b80;
--color-border: #dddde5;
--color-success: #16a34a;
--color-warning: #d97706;
--color-error: #dc2626;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body, #root {
height: 100%;
}
body {
2026-06-14 10:18:36 +08:00
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
font-variant-numeric: tabular-nums;
background: var(--color-bg);
color: var(--color-text);
2026-06-14 10:18:36 +08:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ---- App Shell ---- */
.app {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
/* ---- Header ---- */
.header {
display: flex;
align-items: center;
justify-content: space-between;
2026-06-14 10:18:36 +08:00
padding: 0 24px;
height: 56px;
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
2026-06-14 10:18:36 +08:00
box-shadow: 0 1px 8px rgba(10, 10, 15, 0.3);
flex-shrink: 0;
2026-06-14 10:18:36 +08:00
position: relative;
z-index: 10;
}
.header__left {
display: flex;
align-items: baseline;
gap: 12px;
}
.header__title {
2026-06-14 10:18:36 +08:00
font-size: 1.15rem;
font-weight: 600;
letter-spacing: -0.02em;
color: var(--color-text);
}
.header__subtitle {
2026-06-14 10:18:36 +08:00
font-size: 0.78rem;
font-weight: 400;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
letter-spacing: 0.01em;
}
.header__right {
display: flex;
align-items: center;
gap: 12px;
}
.header__stats {
2026-06-14 10:18:36 +08:00
font-size: 0.72rem;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
padding: 4px 12px;
background: var(--color-surface-2);
2026-06-14 10:18:36 +08:00
border-radius: 20px;
font-weight: 500;
letter-spacing: 0.01em;
}
.badge {
2026-06-14 10:18:36 +08:00
font-size: 0.72rem;
padding: 4px 12px;
border-radius: 20px;
font-weight: 500;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.01em;
transition: all var(--transition-fast);
}
.badge--connected {
color: var(--color-success);
2026-06-14 10:18:36 +08:00
background: rgba(52, 211, 153, 0.08);
border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge--connecting {
color: var(--color-warning);
2026-06-14 10:18:36 +08:00
background: rgba(251, 191, 36, 0.08);
border: 1px solid rgba(251, 191, 36, 0.2);
}
.badge--disconnected {
color: var(--color-text-muted);
background: var(--color-surface-2);
border: 1px solid var(--color-border);
}
.btn-icon {
background: none;
border: none;
font-size: 1.1rem;
cursor: pointer;
2026-06-14 10:18:36 +08:00
padding: 8px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-icon:hover {
background: var(--color-surface-2);
color: var(--color-text);
}
2026-06-14 10:18:36 +08:00
.btn-icon:active {
transform: scale(0.92);
}
.lang-group {
display: flex;
gap: 2px;
background: var(--color-surface-2);
border-radius: var(--radius-sm);
padding: 2px;
}
.lang-btn {
background: none;
border: none;
color: var(--color-text-muted);
font-size: 0.72rem;
font-weight: 600;
padding: 4px 10px;
2026-06-14 10:18:36 +08:00
border-radius: 6px;
cursor: pointer;
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
}
.lang-btn:hover {
color: var(--color-text);
}
.lang-btn--active {
background: var(--color-primary);
color: white;
}
/* ---- Workspace (双栏) ---- */
.workspace {
flex: 1;
display: flex;
overflow: hidden;
}
/* ---- 左侧视频面板 ---- */
.video-panel {
width: 420px;
flex-shrink: 0;
display: flex;
flex-direction: column;
2026-06-14 10:18:36 +08:00
padding: 20px;
gap: 14px;
}
.video-container {
position: relative;
aspect-ratio: 4 / 3;
background: var(--color-surface-2);
border-radius: var(--radius);
overflow: hidden;
border: 1px solid var(--color-border);
2026-06-14 10:18:36 +08:00
transition: border-color var(--transition-fast);
}
.video-container:hover {
border-color: var(--color-surface-3);
}
.video-container .video-preview {
width: 100%;
height: 100%;
border-radius: 0;
}
.video-container .video-preview__video {
width: 100%;
height: 100%;
object-fit: cover;
2026-06-14 10:18:36 +08:00
background: #12121a;
}
.video-placeholder {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2026-06-14 10:18:36 +08:00
gap: 10px;
color: var(--color-text-muted);
font-size: 0.82rem;
2026-06-14 10:18:36 +08:00
font-weight: 400;
}
.video-placeholder__icon {
2026-06-14 10:18:36 +08:00
font-size: 2.2rem;
opacity: 0.15;
margin-bottom: 4px;
}
.video-indicator {
position: absolute;
bottom: 16px;
left: 16px;
2026-06-14 10:18:36 +08:00
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: var(--color-success);
padding: 6px 14px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.78rem;
font-weight: 500;
2026-06-14 10:18:36 +08:00
animation: pulse 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
.live-badge {
position: absolute;
top: 12px;
left: 12px;
display: flex;
align-items: center;
gap: 6px;
2026-06-14 10:18:36 +08:00
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: white;
2026-06-14 10:18:36 +08:00
padding: 5px 12px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.72rem;
font-weight: 600;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.04em;
}
.live-badge__dot {
2026-06-14 10:18:36 +08:00
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--color-success);
2026-06-14 10:18:36 +08:00
animation: pulse 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
.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;
2026-06-14 10:18:36 +08:00
background: rgba(59, 130, 246, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: white;
padding: 3px 10px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.68rem;
font-weight: 700;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.06em;
}
.observation-badge {
position: absolute;
top: 12px;
left: 12px;
2026-06-14 10:18:36 +08:00
background: rgba(52, 211, 153, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: white;
padding: 3px 10px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.68rem;
font-weight: 700;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.04em;
animation: pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
.video-overlay {
position: absolute;
inset: 0;
2026-06-14 10:18:36 +08:00
background: rgba(10, 10, 15, 0.4);
display: flex;
align-items: center;
justify-content: center;
2026-06-14 10:18:36 +08:00
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.video-overlay__spinner {
width: 36px;
height: 36px;
2026-06-14 10:18:36 +08:00
border: 2.5px solid rgba(255, 255, 255, 0.15);
border-top-color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
/* ---- 视频控制栏 ---- */
.video-controls {
flex-shrink: 0;
display: flex;
justify-content: center;
2026-06-14 10:18:36 +08:00
padding: 6px 0;
}
.video-controls__row {
display: flex;
2026-06-14 10:18:36 +08:00
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}
.btn--ctrl {
2026-06-14 10:18:36 +08:00
padding: 7px 14px;
font-size: 0.78rem;
border-radius: var(--radius-sm);
border: 1px solid var(--color-border);
background: var(--color-surface-2);
color: var(--color-text-muted);
cursor: pointer;
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
white-space: nowrap;
}
.btn--ctrl:hover {
2026-06-14 10:18:36 +08:00
background: var(--color-surface-3);
color: var(--color-text);
2026-06-14 10:18:36 +08:00
border-color: var(--color-surface-3);
}
.btn--ctrl:active {
transform: translateY(1px);
}
.btn--ctrl-on {
2026-06-14 10:18:36 +08:00
background: rgba(52, 211, 153, 0.1);
color: var(--color-success);
2026-06-14 10:18:36 +08:00
border-color: rgba(52, 211, 153, 0.25);
}
.btn--ctrl-on:hover {
background: rgba(52, 211, 153, 0.18);
}
.btn--ctrl-off {
2026-06-14 10:18:36 +08:00
background: rgba(248, 113, 113, 0.08);
color: var(--color-error);
2026-06-14 10:18:36 +08:00
border-color: rgba(248, 113, 113, 0.18);
}
.btn--ctrl-off:hover {
background: rgba(248, 113, 113, 0.15);
}
.btn--speaking {
2026-06-14 10:18:36 +08:00
animation: micPulse 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
@keyframes micPulse {
2026-06-14 10:18:36 +08:00
0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.3); transform: scale(1); }
50% { box-shadow: 0 0 18px rgba(52, 211, 153, 0.7); transform: scale(1.04); }
}
/* ---- 右侧聊天面板 ---- */
.chat-panel-wrapper {
flex: 1;
display: flex;
flex-direction: column;
background: var(--color-surface);
border-left: 1px solid var(--color-border);
min-width: 0;
}
.chat-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
2026-06-14 10:18:36 +08:00
padding: 14px 24px;
font-weight: 600;
2026-06-14 10:18:36 +08:00
font-size: 0.82rem;
border-bottom: 1px solid var(--color-border);
flex-shrink: 0;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
letter-spacing: -0.01em;
}
.chat-panel-header__mode {
2026-06-14 10:18:36 +08:00
font-size: 0.68rem;
font-weight: 500;
color: var(--color-success);
2026-06-14 10:18:36 +08:00
background: rgba(52, 211, 153, 0.08);
padding: 3px 10px;
border-radius: 12px;
letter-spacing: 0.02em;
}
.chat-panel-body {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* ---- Chat Panel (覆盖子组件样式) ---- */
.chat-panel {
flex: 1;
overflow-y: auto;
2026-06-14 10:18:36 +08:00
padding: 16px 24px;
display: flex;
flex-direction: column;
2026-06-14 10:18:36 +08:00
gap: 12px;
}
.chat-panel--empty {
display: flex;
2026-06-14 10:18:36 +08:00
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
2026-06-14 10:18:36 +08:00
gap: 12px;
color: var(--color-text-muted);
font-size: 0.85rem;
}
2026-06-14 10:18:36 +08:00
.chat-panel--empty-icon {
font-size: 2.4rem;
opacity: 0.12;
margin-bottom: 4px;
}
.chat-panel--empty-hint {
font-size: 0.75rem;
opacity: 0.6;
max-width: 240px;
text-align: center;
line-height: 1.5;
}
.chat-message {
2026-06-14 10:18:36 +08:00
padding: 12px 16px;
border-radius: var(--radius-sm);
background: var(--color-surface-2);
2026-06-14 10:18:36 +08:00
max-width: min(92%, 65ch);
transition: background var(--transition-fast);
}
.chat-message:hover {
background: var(--color-surface-3);
}
.chat-message--user {
border-left: 2px solid var(--color-primary);
align-self: flex-end;
2026-06-14 10:18:36 +08:00
background: rgba(59, 130, 246, 0.06);
}
.chat-message--user:hover {
background: rgba(59, 130, 246, 0.1);
}
.chat-message--assistant {
border-left: 2px solid var(--color-success);
}
.chat-message--streaming {
opacity: 0.85;
}
.chat-message__role {
2026-06-14 10:18:36 +08:00
font-size: 0.62rem;
font-weight: 600;
text-transform: uppercase;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.08em;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
margin-bottom: 4px;
}
.chat-message__content {
font-size: 0.82rem;
2026-06-14 10:18:36 +08:00
line-height: 1.65;
white-space: pre-wrap;
2026-06-14 10:18:36 +08:00
max-width: 65ch;
}
.chat-message__meta {
2026-06-14 10:18:36 +08:00
margin-top: 8px;
font-size: 0.62rem;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
font-weight: 400;
letter-spacing: 0.01em;
}
/* ---- Streaming Cursor ---- */
.cursor {
display: inline;
animation: blink 0.8s step-end infinite;
color: var(--color-success);
2026-06-14 10:18:36 +08:00
font-weight: 300;
}
/* ---- System Message ---- */
.system-message {
text-align: center;
2026-06-14 10:18:36 +08:00
padding: 10px 16px;
margin: 0 24px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.78rem;
font-weight: 500;
}
.system-message--warning {
2026-06-14 10:18:36 +08:00
background: rgba(251, 191, 36, 0.08);
color: var(--color-warning);
2026-06-14 10:18:36 +08:00
border: 1px solid rgba(251, 191, 36, 0.15);
}
/* ---- Drawer (Config Panel) ---- */
.drawer-overlay {
position: fixed;
inset: 0;
z-index: 100;
2026-06-14 10:18:36 +08:00
background: rgba(10, 10, 15, 0.5);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
animation: fadeIn 0.25s var(--transition-smooth);
}
.drawer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 320px;
background: var(--color-surface);
border-left: 1px solid var(--color-border);
display: flex;
flex-direction: column;
2026-06-14 10:18:36 +08:00
animation: slideInRight 0.35s var(--transition-smooth);
box-shadow: -8px 0 40px rgba(10, 10, 15, 0.5);
}
.drawer__header {
display: flex;
align-items: center;
justify-content: space-between;
2026-06-14 10:18:36 +08:00
padding: 16px 20px;
border-bottom: 1px solid var(--color-border);
flex-shrink: 0;
}
.drawer__title {
font-weight: 600;
2026-06-14 10:18:36 +08:00
font-size: 0.88rem;
letter-spacing: -0.01em;
}
.drawer__close {
background: none;
border: none;
color: var(--color-text-muted);
cursor: pointer;
font-size: 1rem;
2026-06-14 10:18:36 +08:00
padding: 6px 8px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
display: inline-flex;
align-items: center;
justify-content: center;
}
.drawer__close:hover {
background: var(--color-surface-2);
color: var(--color-text);
}
2026-06-14 10:18:36 +08:00
.drawer__close:active {
transform: scale(0.92);
}
.drawer__body {
flex: 1;
overflow-y: auto;
2026-06-14 10:18:36 +08:00
padding: 20px;
}
/* ---- Config Group ---- */
.config-group {
2026-06-14 10:18:36 +08:00
margin-bottom: 24px;
}
.config-group__title {
2026-06-14 10:18:36 +08:00
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.1em;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
margin-bottom: 14px;
padding-bottom: 10px;
border-bottom: 1px solid var(--color-border);
}
.config-row {
display: flex;
align-items: center;
justify-content: space-between;
2026-06-14 10:18:36 +08:00
padding: 10px 8px;
margin: 0 -8px;
font-size: 0.82rem;
color: var(--color-text);
cursor: pointer;
2026-06-14 10:18:36 +08:00
border-radius: var(--radius-sm);
transition: background var(--transition-fast);
}
.config-row:hover {
background: var(--color-surface-2);
}
.config-row__info {
display: flex;
flex-direction: column;
2026-06-14 10:18:36 +08:00
gap: 3px;
}
.config-row__label {
font-weight: 500;
color: var(--color-text);
}
.config-row__desc {
2026-06-14 10:18:36 +08:00
font-size: 0.7rem;
color: var(--color-text-muted);
2026-06-14 10:18:36 +08:00
line-height: 1.4;
}
.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-14 10:18:36 +08:00
padding: 6px 10px;
font-size: 0.78rem;
cursor: pointer;
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
}
.config-row select:hover,
.config-row input[type="checkbox"]:hover {
border-color: var(--color-surface-3);
}
.config-row select:focus,
.config-row input[type="checkbox"]:focus {
outline: 2px solid rgba(59, 130, 246, 0.4);
outline-offset: 1px;
}
.config-row input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
2026-06-14 10:18:36 +08:00
accent-color: var(--color-primary);
}
/* ---- Toast ---- */
.toast-container {
position: fixed;
2026-06-14 10:18:36 +08:00
top: 72px;
right: 24px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
}
.toast {
padding: 10px 16px;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
2026-06-14 10:18:36 +08:00
animation: slideIn 0.35s var(--transition-smooth);
max-width: 320px;
2026-06-14 10:18:36 +08:00
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 8px 32px rgba(10, 10, 15, 0.4);
}
2026-06-14 10:18:36 +08:00
.toast--error {
background: rgba(248, 113, 113, 0.92);
color: white;
}
.toast--warning {
background: rgba(251, 191, 36, 0.92);
color: #111;
}
.toast--info {
background: rgba(59, 130, 246, 0.92);
color: white;
}
/* ---- Buttons ---- */
.btn {
padding: 8px 20px;
border: none;
border-radius: var(--radius-sm);
2026-06-14 10:18:36 +08:00
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
2026-06-14 10:18:36 +08:00
transition: all var(--transition-fast);
display: inline-flex;
align-items: center;
gap: 6px;
2026-06-14 10:18:36 +08:00
letter-spacing: 0.01em;
}
.btn:active {
transform: translateY(1px);
}
.btn--lg {
padding: 12px 32px;
2026-06-14 10:18:36 +08:00
font-size: 0.92rem;
border-radius: var(--radius);
}
.btn--primary {
background: var(--color-primary);
color: white;
}
.btn--primary:hover {
background: var(--color-primary-hover);
}
.btn--secondary {
background: var(--color-surface-2);
color: var(--color-text);
border: 1px solid var(--color-border);
}
.btn--secondary:hover {
2026-06-14 10:18:36 +08:00
background: var(--color-surface-3);
border-color: var(--color-surface-3);
}
.btn--warning {
background: var(--color-warning);
2026-06-14 10:18:36 +08:00
color: #111;
}
2026-06-14 10:18:36 +08:00
.btn--warning:hover {
opacity: 0.9;
}
.btn--danger {
2026-06-14 10:18:36 +08:00
background: rgba(248, 113, 113, 0.1);
color: var(--color-error);
2026-06-14 10:18:36 +08:00
border: 1px solid rgba(248, 113, 113, 0.2);
}
.btn--danger:hover {
2026-06-14 10:18:36 +08:00
background: rgba(248, 113, 113, 0.18);
}
.btn--active {
background: var(--color-primary);
color: white;
2026-06-14 10:18:36 +08:00
box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
animation: pulseBtn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
/* ---- Animations ---- */
@keyframes pulse {
0%, 100% { opacity: 1; }
2026-06-14 10:18:36 +08:00
50% { opacity: 0.55; }
}
@keyframes pulseBtn {
2026-06-14 10:18:36 +08:00
0%, 100% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.35); }
50% { box-shadow: 0 0 22px rgba(59, 130, 246, 0.6); }
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes slideIn {
2026-06-14 10:18:36 +08:00
from { opacity: 0; transform: translateX(16px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideInRight {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
/* ---- Scrollbar ---- */
::-webkit-scrollbar {
2026-06-14 10:18:36 +08:00
width: 4px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-border);
2026-06-14 10:18:36 +08:00
border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-text-muted);
}