/* ======================== 滚动通知栏 ======================== */
.marquee-container {
    overflow: hidden;
    padding: 4px 0;
    position: relative;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: rgba(144, 238, 144, 0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-right: 100px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ======================== 全新布局系统 ======================== */

/* CSS 变量 */
:root {
    /* 颜色系统 */
    --primary: #90EE90;
    --primary-dim: rgba(144, 238, 144, 0.15);
    --primary-glow: 0 0 20px rgba(144, 238, 144, 0.5);
    
    --bg-dark: #0a0a0a;
    --bg-panel: rgba(15, 15, 15, 0.95);
    --bg-card: rgba(144, 238, 144, 0.05);
    --bg-hover: rgba(144, 238, 144, 0.1);
    --bg-input: rgba(144, 238, 144, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --border: rgba(144, 238, 144, 0.2);
    --border-active: rgba(144, 238, 144, 0.5);
    
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    
    /* 尺寸 */
    --sidebar-width: 200px;
    --header-height: 56px;
    --toolbar-height: 52px;
    --gap: 16px;
    --gap-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
}

/* 重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

/* ==================== 主容器 ==================== */
.main-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--primary);
    border-radius: 32px;
    padding: 16px;
    gap: var(--gap);
    position: relative;
    overflow: hidden;
}

/* 边框动画光点 */
.border-light {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--primary-glow);
    animation: borderMove 6s linear infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes borderMove {
    0% { top: 0; left: 0; }
    25% { top: 0; left: calc(100% - 10px); }
    50% { top: calc(100% - 10px); left: calc(100% - 10px); }
    75% { top: calc(100% - 10px); left: 0; }
    100% { top: 0; left: 0; }
}

/* ==================== 顶部栏 ==================== */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-dim);
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--primary-glow);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-select {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.8rem;
    min-width: 140px;
    cursor: pointer;
}

/* 全局 select 样式 - 确保所有下拉框背景色正确 */
select {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    outline: none !important;
    cursor: pointer;
}

select option {
    background: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

.btn-global {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-global:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== 工作区 ==================== */
.main-workspace {
    flex: 1;
    display: flex;
    gap: var(--gap);
    min-height: 0;
}

/* ==================== 左侧导航 ==================== */
.step-sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    padding: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    height: 100%;
    justify-content: flex-start;
}

.step-sidebar.empty {
    justify-content: center;
}

.step-progress-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    transition: width 0.5s;
}

.step-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.step-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-btn.active {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--primary-glow);
}

.step-btn.completed::after {
    content: '\2713';
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
    color: var(--success);
}

.step-num {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.step-btn.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* ==================== 模态框 ==================== */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.99) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(144, 238, 144, 0.15), 0 25px 50px rgba(0, 0, 0, 0.7);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(144, 238, 144, 0.03);
}

.custom-modal-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.custom-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.custom-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.custom-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn.confirm {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(144, 238, 144, 0.3);
}

.modal-btn.confirm:hover {
    background: #a8f5a8;
    box-shadow: 0 4px 15px rgba(144, 238, 144, 0.4);
    transform: translateY(-1px);
}

.modal-btn.cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.modal-btn.cancel:hover {
    background: var(--bg-hover);
    border-color: var(--border-active);
}

/* ==================== API配置表单样式 ==================== */
.api-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.api-tab-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.api-tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.api-tab-btn.active {
    background: rgba(144, 238, 144, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.api-config-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.api-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.api-form-field label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.api-form-field input,
.api-form-field select {
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.api-form-field input:focus,
.api-form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(144, 238, 144, 0.1);
}

.api-form-field input::placeholder {
    color: var(--text-muted);
}

.api-form-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.api-form-buttons-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-desc {
    margin-top: 20px;
    padding: 14px;
    background: rgba(144, 238, 144, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Toast 通知 ==================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s ease-out;
}

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

.toast-success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.toast-error {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.toast-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.toast-info {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.1) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    max-width: 300px;
}

/* ==================== 按钮点击涟漪效果 ==================== */
.project-btn, .step-btn, .btn-global, .modal-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(144, 238, 144, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== 统计面板 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-bottom: 8px;
    padding: 0 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.stat-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(144, 238, 144, 0.1);
    border-radius: var(--radius);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== 主舞台 ==================== */
.stage-area {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== 模块通用布局 ==================== */

/* 模块容器 */
.module-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 4px;
}

/* 工具栏 - 简化版 */
.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 6px;
}

/* 按钮样式 - 简化版 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 2px 5px;
    font-size: 0.55rem;
    gap: 3px;
}

.btn-icon {
    padding: 6px;
    min-width: 28px;
}

/* 保存按钮闪烁动画 */
@keyframes save-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    50% { 
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

.btn-save-changed {
    animation: save-pulse 1s ease-in-out infinite;
}

/* 内容区 - 统一左右分栏 */
.module-content {
    flex: 1;
    display: flex;
    gap: 16px;
    padding: 2px;
    min-height: 0;
}

/* 面板 - 统一样式 */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.panel::-webkit-scrollbar {
    display: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-body {
    flex: 1;
    padding: 10px 10px 4px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.panel-body::-webkit-scrollbar {
    display: none;
}

.panel-body.center-content {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.panel-body.empty-content {
    justify-content: center;
    align-items: center;
}

/* 左侧列表面板 - 固定宽度 */
.panel-left {
    width: 260px;
    flex-shrink: 0;
}

/* 右侧详情面板 - 自适应 */
.panel-right {
    flex: 1;
    min-width: 0;
}

.panel-right.empty,
.panel-left.empty {
    justify-content: center;
}

/* 中间主内容面板 */
.panel-main {
    flex: 1;
    min-width: 0;
}

/* 列表项 */
.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

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

.list-item.active {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--border-active);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
}

/* 表单 */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(144, 238, 144, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: var(--bg-input);
    border-radius: 12px;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.badge-primary {
    background: var(--primary-dim);
    color: var(--primary);
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
    min-height: 300px;
    width: 100%;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.4;
    filter: drop-shadow(0 0 20px rgba(144, 238, 144, 0.2));
    transition: all 0.3s ease;
}

.empty-state:hover .empty-state-icon {
    opacity: 0.6;
    transform: scale(1.05);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 320px;
}

.empty-state-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 通用居中容器 */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 提示消息居中 */
.alert-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* 进度条 */
.progress {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    transition: width 0.3s;
}

/* ==================== 模态框 ==================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--primary-glow);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.modal-close {
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-active);
}

/* ==================== 工具类 ==================== */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
