/* ValueCell 股票监控仪表板 - 暗色主题样式 */
/* ========================================= */

:root {
    /* 主题色系 */
    --bg-primary: #0d1321;
    --bg-secondary: #1a1f36;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-hover: rgba(50, 63, 89, 0.6);
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    
    /* 文字颜色 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 状态颜色 */
    --color-up: #ef4444;
    --color-down: #10b981;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --color-purple: #8b5cf6;
    
    /* 边框和阴影 */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(13, 19, 33, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    background: var(--gradient-primary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 30px;
    font-size: 12px;
    color: var(--color-down);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-down);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.time-display {
    font-size: 14px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.alert-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    background: none;
    border: none;
    color: var(--text-primary);
}

.alert-bell:hover {
    background: var(--bg-hover);
}

.alert-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-up);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ========== 主内容区 ========== */
.main-content {
    margin-top: 64px;
    padding: 24px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 统计卡片区 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card.highlight {
    background: var(--gradient-primary);
    border: none;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.stocks { background: rgba(102, 126, 234, 0.2); }
.stat-icon.up { background: rgba(239, 68, 68, 0.2); }
.stat-icon.down { background: rgba(16, 185, 129, 0.2); }
.stat-icon.signals { background: rgba(139, 92, 246, 0.2); }

.stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card.highlight .stat-value {
    color: white;
}

.stat-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--color-up); }
.stat-change.negative { color: var(--color-down); }

/* ========== 图表区域 ========== */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-btn:hover, .chart-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.chart-body {
    padding: 20px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 工具栏 ========== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 280px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 16px 0 44px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    height: 42px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    height: 42px;
    padding: 0 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.action-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.update-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 数据表格 ========== */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(13, 19, 33, 0.6);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    color: var(--text-primary);
}

.sort-icon {
    margin-left: 4px;
    opacity: 0.5;
}

.data-table th.sorted .sort-icon {
    opacity: 1;
    color: #667eea;
}

.data-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr.selected {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stock-name {
    font-weight: 500;
}

.stock-code {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.price-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.change-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.change-badge.up {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-up);
}

.change-badge.down {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-down);
}

.change-badge.limit-up {
    background: var(--gradient-danger);
    color: white;
}

.signal-cell {
    display: flex;
    gap: 6px;
}

.signal-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.signal-dot.active {
    background: var(--gradient-success);
    color: white;
}

.signal-dot.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.reason-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    border-radius: 4px;
    font-size: 12px;
}

.action-icons {
    display: flex;
    gap: 8px;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ========== 表格底部 ========== */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(13, 19, 33, 0.4);
    border-top: 1px solid var(--border-subtle);
}

.table-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 告警面板 ========== */
.alert-panel {
    position: fixed;
    top: 64px;
    right: 0;
    width: 400px;
    height: calc(100vh - 64px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.alert-panel.open {
    transform: translateX(0);
}

.alert-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.alert-panel-title {
    font-size: 18px;
    font-weight: 600;
}

.alert-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.alert-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-tab:hover, .alert-tab.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.alert-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.alert-list {
    padding: 12px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border-left: 3px solid;
    transition: all 0.2s;
}

.alert-item:hover {
    background: var(--bg-hover);
}

.alert-item.new { border-left-color: var(--color-purple); }
.alert-item.price { border-left-color: var(--color-up); }
.alert-item.limit { border-left-color: var(--color-down); }
.alert-item.volume { border-left-color: var(--color-warning); }

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-item.new .alert-icon { background: rgba(139, 92, 246, 0.2); }
.alert-item.price .alert-icon { background: rgba(239, 68, 68, 0.2); }
.alert-item.limit .alert-icon { background: rgba(16, 185, 129, 0.2); }
.alert-item.volume .alert-icon { background: rgba(245, 158, 11, 0.2); }

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.alert-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.alert-time {
    font-size: 11px;
    color: var(--text-muted);
}

.alert-unread {
    width: 8px;
    height: 8px;
    background: var(--color-info);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== 告警配置模态框 ========== */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.alert-modal.open {
    display: flex;
}

.alert-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
}

.alert-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.alert-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.alert-modal-body {
    padding: 20px;
}

.alert-config-group {
    margin-bottom: 20px;
}

.alert-config-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.alert-config-input {
    width: 100%;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 16px;
    color: var(--text-primary);
    font-size: 14px;
}

.alert-config-input:focus {
    outline: none;
    border-color: #667eea;
}

.alert-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--bg-hover);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--gradient-primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

.toggle-label {
    flex: 1;
    font-size: 14px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .charts-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-center {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left, .toolbar-right {
        flex-wrap: wrap;
    }
    
    .search-input {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .alert-panel {
        width: 100%;
    }
    
    .data-table th, .data-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card, .chart-card, .table-container {
    animation: fadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* ========== 加载状态 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== Toast 提示 ========== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left: 3px solid var(--color-down); }
.toast.error { border-left: 3px solid var(--color-up); }
.toast.warning { border-left: 3px solid var(--color-warning); }
.toast.info { border-left: 3px solid var(--color-info); }

/* ========== 老样式兼容 ========== */
/* 保持与现有JS的兼容 */
.header { display: none; }  /* 隐藏旧header，使用新navbar */

#stockTable { width: 100%; }

.filter-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.export-btn {
    height: 42px;
    padding: 0 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.export-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

#refreshBtn {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-status.connected {
    color: var(--color-down);
}

.connection-status.disconnected {
    color: var(--color-up);
}

/* 价格涨跌颜色 */
.up, .positive, .rise { color: var(--color-up) !important; }
.down, .negative, .fall { color: var(--color-down) !important; }
/ *   = = = = = = = = = =   A I   YtPBv9p? = = = = = = = = = =   * /  
 . a i - o b s e r v e - r o o m   {  
         m a r g i n - b o t t o m :   2 4 p x ;  
 }  
  
 . a i - s u m m a r y - c a r d   {  
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   r g b a ( 3 0 ,   4 1 ,   5 9 ,   0 . 9 )   0 % ,   r g b a ( 1 5 ,   2 3 ,   4 2 ,   0 . 9 5 )   1 0 0 % ) ;  
         b o r d e r :   1 p x   s o l i d   r g b a ( 1 3 9 ,   9 2 ,   2 4 6 ,   0 . 3 ) ;  
         p o s i t i o n :   r e l a t i v e ;  
         o v e r f l o w :   h i d d e n ;  
         p a d d i n g :   2 0 p x ;  
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - l g ) ;  
 }  
  
 . a i - s u m m a r y - c a r d : : b e f o r e   {  
         c o n t e n t :   ' ' ;  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   0 ;  
         l e f t :   0 ;  
         w i d t h :   4 p x ;  
         h e i g h t :   1 0 0 % ;  
         b a c k g r o u n d :   v a r ( - - c o l o r - p u r p l e ) ;  
 }  
  
 . a i - c a r d - h e a d e r   {  
         d i s p l a y :   f l e x ;  
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
         a l i g n - i t e m s :   c e n t e r ;  
         m a r g i n - b o t t o m :   1 2 p x ;  
 }  
  
 . a i - t i t l e   {  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   8 p x ;  
         f o n t - s i z e :   1 6 p x ;  
         f o n t - w e i g h t :   6 0 0 ;  
         c o l o r :   v a r ( - - t e x t - p r i m a r y ) ;  
 }  
  
 . a i - b a d g e   {  
         p a d d i n g :   4 p x   1 2 p x ;  
         b o r d e r - r a d i u s :   2 0 p x ;  
         f o n t - s i z e :   1 2 p x ;  
         f o n t - w e i g h t :   6 0 0 ;  
         b a c k g r o u n d :   r g b a ( 1 3 9 ,   9 2 ,   2 4 6 ,   0 . 2 ) ;  
         c o l o r :   v a r ( - - c o l o r - p u r p l e ) ;  
 }  
  
 . a i - c o n t e n t - b o x   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         g a p :   8 p x ;  
 }  
  
 . a i - t e x t   {  
         f o n t - s i z e :   1 4 p x ;  
         l i n e - h e i g h t :   1 . 6 ;  
         c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ;  
 }  
  
 . a i - t a g s   {  
         d i s p l a y :   f l e x ;  
         g a p :   8 p x ;  
         m a r g i n - t o p :   4 p x ;  
 }  
  
 . a i - t a g   {  
         f o n t - s i z e :   1 2 p x ;  
         p a d d i n g :   2 p x   8 p x ;  
         b o r d e r - r a d i u s :   4 p x ;  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ;  
         c o l o r :   v a r ( - - t e x t - m u t e d ) ;  
 }  
 
/* ========== 告警配置新增样式 ========== */
.alert-section-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0 12px;
}

.config-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.test-email-btn {
    width: 100%;
    height: 42px;
    margin-top: 16px;
    background: var(--gradient-success);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.test-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

