:root {
    /* 主色系 - 科技蓝 */
    --color-primary: #1976D2;
    --color-primary-dark: #0D47A1;
    --color-primary-light: #42A5F5;
    --color-accent: #00BCD4;              /* 青色点缀 */
    
    /* 背景与表面 */
    --color-bg: #0a1628;                  /* 深蓝黑背景 */
    --color-surface: rgba(255,255,255,0.05);
    --color-surface-solid: #0f2240;       /* 实心卡片背景 */
    --color-border: rgba(255,255,255,0.1);
    
    /* 文字色 */
    --color-text: #E3F2FD;                /* 浅蓝白 */
    --color-text-secondary: rgba(255,255,255,0.6);
    
    /* 状态色 */
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-error: #F44336;
    --color-neutral-sentiment: #78909C;
    
    /* 科技主题变量 */
    --color-glow: rgba(25,118,210,0.3);
    --gradient-navbar: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
    --gradient-bg: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #102a52 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* 阴影 - 发光效果 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(25,118,210,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--gradient-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* ===== 动态科技背景 ===== */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(25,118,210,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0,188,212,0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(25,118,210,0.05) 0%, transparent 60%);
    animation: bgPulse 15s ease-in-out infinite;
}

.tech-bg .grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(25,118,210,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25,118,210,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

.tech-bg .particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-bg .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(25,118,210,0.6);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(25,118,210,0.8);
}

.tech-bg .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.tech-bg .particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 2s; }
.tech-bg .particle:nth-child(3) { left: 40%; top: 30%; animation-delay: 4s; }
.tech-bg .particle:nth-child(4) { left: 60%; top: 70%; animation-delay: 1s; }
.tech-bg .particle:nth-child(5) { left: 75%; top: 40%; animation-delay: 3s; }
.tech-bg .particle:nth-child(6) { left: 85%; top: 80%; animation-delay: 5s; }
.tech-bg .particle:nth-child(7) { left: 15%; top: 85%; animation-delay: 2.5s; }
.tech-bg .particle:nth-child(8) { left: 90%; top: 15%; animation-delay: 1.5s; }

@keyframes bgPulse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    50% { transform: translate(2%, 2%) rotate(1deg); opacity: 0.8; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

/* ===== 导航栏 ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: var(--gradient-navbar);
    color: #fff;
    box-shadow: 0 2px 20px rgba(13,71,161,0.5);
    z-index: 100;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-icon { font-size: 24px; }

.navbar-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* ===== 版权底栏 ===== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-navbar);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    letter-spacing: 0.5px;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer .footer-divider {
    color: rgba(255,255,255,0.4);
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

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

/* ===== 状态指示 ===== */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255,255,255,0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #81C784;
}

.status-indicator.status-running .status-dot {
    background: var(--color-primary);
    animation: pulse 1.2s ease-in-out infinite;
}

.status-indicator.status-error .status-dot { background: #EF5350; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #fff;
    color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-ink-wash);
    box-shadow: var(--shadow-ink);
}

.btn-danger {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239,83,80,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover { background: rgba(25,118,210,0.15); }

.btn-xs { padding: 2px 8px; font-size: 12px; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===== 主布局 ===== */
.main-layout {
    display: flex;
    height: calc(100vh - 56px - 32px);
    overflow: hidden;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--color-surface-solid);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    padding: 16px;
}

.sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ===== 搜索框 ===== */
.search-box { margin-bottom: 10px; }

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    background: rgba(255,255,255,0.05);
    color: var(--color-text);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
}

/* ===== 关键词列表 ===== */
.keyword-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.keyword-list::-webkit-scrollbar {
    width: 6px;
}

.keyword-list::-webkit-scrollbar-track {
    background: transparent;
}

.keyword-list::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.keyword-category {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(25,118,210,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.category-header:hover { background: rgba(25,118,210,0.25); }

.category-actions {
    display: flex;
    gap: 4px;
}

.category-body {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 4px;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    background: rgba(25,118,210,0.2);
    color: var(--color-primary-light);
    border: 1px solid rgba(25,118,210,0.3);
    user-select: none;
}

.keyword-tag:hover { background: rgba(25,118,210,0.35); }

.keyword-tag.selected {
    background: var(--color-primary);
    color: #fff;
}

.keyword-tag mark {
    background: #FFE082;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.keyword-tag.selected mark {
    background: rgba(255,255,255,0.3);
}

/* ===== 媒体源列表 ===== */
.source-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.count-badge {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.source-list {
    max-height: 320px;
    overflow-y: auto;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.source-item:hover { background: rgba(255,255,255,0.08); }

.source-item input[type="checkbox"] {
    accent-color: var(--color-primary);
}

/* ===== 参数组 ===== */
.param-group {
    margin-bottom: 10px;
}

.param-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.param-val {
    font-weight: 600;
    color: var(--color-primary);
}

.param-group input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.input-textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.input-textarea:focus {
    border-color: var(--color-primary);
}

/* ===== 导入 ===== */
.import-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-label {
    cursor: pointer;
}

.file-label input[type="file"] {
    display: none;
}

.template-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
}

.link-sm {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: none;
}

.link-sm:hover { text-decoration: underline; }

.hidden { display: none !important; }

.weibo-config {
    padding-top: 8px;
}

/* ===== 内容区 ===== */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== Tab 栏 ===== */
.tab-bar {
    display: flex;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-border);
    padding: 0 20px;
    gap: 0;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

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

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* 子Tab按钮样式 */
.sub-tab-btn.active {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}
.sub-tab-btn:hover {
    color: var(--color-primary) !important;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* ===== Tab 面板 ===== */
.tab-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-panel.active { display: flex; flex-direction: column; }

/* ===== 监控指标 ===== */
.metrics-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1;
    min-width: 120px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.metric-card.compact {
    padding: 12px;
    min-width: 100px;
}

.metric-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.metric-card.compact .metric-value { font-size: 20px; }

.metric-error { color: var(--color-error); }
.text-positive { color: var(--color-success) !important; }
.text-negative { color: var(--color-error) !important; }
.text-neutral { color: var(--color-neutral-sentiment) !important; }

/* ===== 进度条 ===== */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-item { width: 100%; }

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(25,118,210,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-fill.fill-accent {
    background: linear-gradient(90deg, var(--color-accent), #90CAF9);
}

/* ===== 当前任务 ===== */
.current-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.task-icon { font-size: 18px; }

/* ===== 错误日志 ===== */
.error-section {
    margin-bottom: 16px;
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,152,0,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: #FFB74D;
}

.error-header:hover { background: rgba(255,152,0,0.25); }

.chevron { transition: transform 0.2s; }
.chevron.open { transform: rotate(90deg); }

.error-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 8px 14px;
    background: rgba(255,152,0,0.1);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.error-item {
    padding: 4px 0;
    font-size: 12px;
    color: #FFCC80;
    border-bottom: 1px solid rgba(255,152,0,0.2);
}

.error-item:last-child { border-bottom: none; }

/* ===== 实时动态 ===== */
.live-feed {
    flex: 1;
    min-height: 0;
}

.feed-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feed-list {
    max-height: 400px;
    overflow-y: auto;
}

.feed-empty {
    text-align: center;
    padding: 40px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
    animation: fadeInSlide 0.3s ease;
    border-left: 3px solid var(--color-accent);
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-content { flex: 1; min-width: 0; }

.feed-title-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.feed-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(25,118,210,0.25);
    color: var(--color-primary-light);
}

.sentiment-badge {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.sentiment-positive { background: rgba(76,175,80,0.2); color: #81C784; }
.sentiment-negative { background: rgba(244,67,54,0.2); color: #E57373; }
.sentiment-neutral { background: rgba(120,144,156,0.2); color: #B0BEC5; }

/* ===== 文章列表 ===== */
.articles-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.articles-toolbar .search-input { flex: 1; min-width: 200px; }

.select-input {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    min-width: 120px;
}

.select-input:focus { border-color: var(--color-primary); }

.articles-list {
    flex: 1;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.article-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover { color: var(--color-primary); }

.article-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.article-card-summary {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-keywords {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.article-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.article-card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== 分析看板 ===== */
.analysis-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
}

.chart-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.chart-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.chart-full { grid-column: 1 / -1; }

/* ===== 导出 ===== */
.export-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.export-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.export-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.export-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.export-card .btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 28px;
}

.export-card .btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.export-stats {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.export-stats h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.export-stats-content p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

/* ===== 微博 ===== */
.weibo-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid #FFB74D;
}

.weibo-card-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.weibo-card-content {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.5;
}

.weibo-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(25,118,210,0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(25,118,210,0.6);
}

/* ===== 浏览器登录状态 ===== */
.browser-login-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-status-content {
    background: var(--color-surface-solid);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    text-align: center;
    box-shadow: 0 0 40px rgba(25,118,210,0.3);
}

.login-status-content .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(25,118,210,0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-status-content p {
    margin: 8px 0;
    color: var(--color-text);
    font-size: 14px;
}

.login-status-content .login-hint {
    color: var(--color-primary-light);
    font-size: 12px;
    opacity: 0.8;
}

/* 平台爬虫中的登录小按钮 */
.btn-login-mini {
    margin-left: auto;
    padding: 1px 8px;
    font-size: 10px;
    background: rgba(25,118,210,0.3);
    color: var(--color-primary-light);
    border: 1px solid rgba(25,118,210,0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-login-mini:hover {
    background: rgba(25,118,210,0.5);
    color: #fff;
}

.platform-item {
    display: flex;
    align-items: center;
}

/* ===== 相关度样式 ===== */
.relevance-summary {
    margin-bottom: 20px;
}

.relevance-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.relevance-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.relevance-card {
    flex: 1;
    min-width: 100px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.relevance-card .relevance-label {
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.relevance-card .relevance-value {
    font-size: 22px;
    font-weight: 700;
}

.relevance-high {
    background: rgba(46,125,50,0.2);
    border-left: 4px solid #4CAF50;
}
.relevance-high .relevance-label { color: #81C784; }
.relevance-high .relevance-value { color: #A5D6A7; }

.relevance-medium {
    background: rgba(21,101,192,0.2);
    border-left: 4px solid #1976D2;
}
.relevance-medium .relevance-label { color: #64B5F6; }
.relevance-medium .relevance-value { color: #90CAF9; }

.relevance-low {
    background: rgba(239,108,0,0.2);
    border-left: 4px solid #FF9800;
}
.relevance-low .relevance-label { color: #FFB74D; }
.relevance-low .relevance-value { color: #FFCC80; }

.relevance-weak {
    background: rgba(120,144,156,0.2);
    border-left: 4px solid #78909C;
}
.relevance-weak .relevance-label { color: #90A4AE; }
.relevance-weak .relevance-value { color: #B0BEC5; }

.relevance-badge {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.relevance-badge-high { background: rgba(46,125,50,0.25); color: #81C784; }
.relevance-badge-medium { background: rgba(21,101,192,0.25); color: #64B5F6; }
.relevance-badge-low { background: rgba(239,108,0,0.25); color: #FFB74D; }
.relevance-badge-weak { background: rgba(120,144,156,0.25); color: #90A4AE; }

.article-card-relevance-score {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-left: 4px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-box {
    background: var(--color-surface-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(25,118,210,0.2);
    width: 440px;
    max-width: 90vw;
    animation: modalIn 0.2s ease;
    border: 1px solid var(--color-border);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.modal-close {
    border: none;
    background: none;
    font-size: 22px;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
}

.modal-body .param-group {
    margin-bottom: 14px;
}

.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.modal-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

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

.modal-confirm {
    background: var(--color-primary) !important;
    color: #fff !important;
}

.modal-confirm:hover {
    background: var(--color-primary-dark) !important;
}

/* ===== 侧边栏操作行 ===== */
.sidebar-actions-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

/* ===== 媒体源分类分组 ===== */
.source-category {
    margin-bottom: 6px;
}

.source-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: rgba(25,118,210,0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    user-select: none;
}

.source-category-header:hover { background: rgba(25,118,210,0.2); }

.source-category-header .cat-chevron {
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--color-text-secondary);
}

.source-category-header .cat-chevron.open {
    transform: rotate(90deg);
}

.source-category-count {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-left: 4px;
}

.source-category-body {
    padding: 2px 0 2px 4px;
}

/* ===== 文章详情弹窗（大号） ===== */
.modal-box-large {
    width: 720px;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.modal-body-scroll {
    overflow-y: auto;
    max-height: calc(88vh - 120px);
    padding: 20px;
}

.detail-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-meta-label {
    font-weight: 500;
    color: var(--color-text);
}

.detail-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.detail-badge-credibility {
    background: rgba(106,27,154,0.25);
    color: #BA68C8;
}

.detail-badge-category {
    background: rgba(0,105,92,0.25);
    color: #4DB6AC;
}

.detail-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
}

.detail-stat {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.detail-stat strong {
    color: var(--color-text);
    font-weight: 600;
}

.detail-keywords {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    white-space: pre-wrap;
    word-break: break-all;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    max-height: 400px;
    overflow-y: auto;
}

/* ===== 文章卡片可点击 ===== */
.article-card.clickable {
    cursor: pointer;
}

.article-card-extra {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.article-card-extra .extra-tag {
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

/* ===== 高级可视化面板 ===== */
.viz-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.viz-toolbar .btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.viz-container {
    flex: 1;
    min-height: 500px;
    position: relative;
}

.viz-panel {
    display: none;
    height: 100%;
}

.viz-panel.active {
    display: block;
}

.echarts-container {
    width: 100%;
    height: 500px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ===== 标签编辑区域 ===== */
.detail-tags-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
}

.tags-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tags-section-header h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.tags-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 30px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
}

.tag-item.auto {
    background: #2E7D32;
}

.tag-item.manual {
    background: #7B1FA2;
}

.tag-item .tag-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
}

.tag-item .tag-remove:hover {
    opacity: 1;
}

.tags-empty {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* ===== 标签选择弹窗 ===== */
.modal-box-medium {
    width: 560px;
}

.tag-picker-search {
    margin-bottom: 12px;
}

.tag-picker-tree {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: rgba(255,255,255,0.03);
}

.tag-category {
    margin-bottom: 8px;
}

.tag-category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(25,118,210,0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.tag-category-header:hover {
    background: rgba(25,118,210,0.2);
}

.tag-category-header .chevron {
    font-size: 10px;
    transition: transform 0.2s;
}

.tag-category-header .chevron.open {
    transform: rotate(90deg);
}

.tag-category-body {
    padding: 8px 0 8px 16px;
}

.tag-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    margin: 2px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--color-text);
}

.tag-option:hover {
    border-color: var(--color-primary);
    background: rgba(25,118,210,0.2);
}

.tag-option.selected {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===== 文章列表复选框 ===== */
.article-checkbox {
    margin-right: 8px;
}

.article-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-delete-article {
    padding: 2px 8px;
    font-size: 11px;
    background: transparent;
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

.btn-delete-article:hover {
    background: var(--color-error);
    color: #fff;
}

/* ===== 批量操作栏 ===== */
.batch-action-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,152,0,0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.batch-action-bar .selected-count {
    font-size: 13px;
    color: var(--color-text);
}

/* ===== 确认删除弹窗 ===== */
.confirm-delete-text {
    font-size: 14px;
    color: var(--color-text);
    text-align: center;
    padding: 20px 0;
}

.confirm-delete-text strong {
    color: var(--color-error);
}

/* ===== 登录页面 ===== */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
}

.login-container {
    background: rgba(15, 34, 64, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(25,118,210,0.2);
    padding: 40px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    animation: loginGlow 3s ease-in-out infinite;
}

@keyframes loginGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.login-logo {
    margin-bottom: 20px;
}

.platform-logo {
    width: 100px;
    height: 100px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(25,118,210,0.5);
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.form-error {
    background: #FFEBEE;
    color: var(--color-error);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.login-footer {
    margin-top: 32px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ===== 导航栏Logo ===== */
.navbar-logo {
    width: 36px;
    height: 36px;
}

/* ===== 用户信息 ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 13px;
}

.user-role {
    padding: 2px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 11px;
}

.user-name {
    font-weight: 500;
}

/* ===== 管理员专属按钮 ===== */
.admin-only {
    display: none;
}

body.is-admin .admin-only {
    display: inline-flex;
}

/* ===== 系统管理面板 ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 4px;
}

.admin-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s;
}

.admin-tab:hover {
    background: #F5F8FC;
    color: var(--color-text);
}

.admin-tab.active {
    background: var(--color-primary);
    color: #fff;
}

.admin-panel {
    min-height: 300px;
}

.admin-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    font-weight: 600;
    color: var(--color-text);
    background: rgba(255,255,255,0.05);
}

.admin-table td {
    color: var(--color-text-secondary);
}

.admin-table .role-admin {
    color: var(--color-error);
    font-weight: 500;
}

.admin-table .role-operator {
    color: var(--color-success);
}

.admin-table .status-active {
    color: var(--color-success);
}

.admin-table .status-inactive {
    color: var(--color-error);
}

.admin-table .btn-group {
    display: flex;
    gap: 4px;
}

/* ===== AI配置帮助 ===== */
.ai-config-help {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
}

.ai-config-help h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.ai-provider-list {
    display: grid;
    gap: 12px;
}

.ai-provider-item {
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
}

.ai-provider-item strong {
    font-size: 13px;
    color: var(--color-text);
}

.ai-provider-item p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 4px 0 0 0;
    word-break: break-all;
}

/* ===== 系统设置 ===== */
.system-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.system-info p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.system-actions {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

/* ===== 应用容器 ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.app-container .main-layout {
    flex: 1;
}

/* ===== 导航栏Logo图片 ===== */
.navbar-logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.platform-logo-img {
    max-width: 260px;
    height: auto;
    margin-bottom: 8px;
}

/* ===== 导航栏操作按钮修复(字体颜色清晰) ===== */
.btn-nav-action {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    font-weight: 500;
}

.btn-nav-action:hover:not(:disabled) {
    background: rgba(255,255,255,0.35) !important;
}

/* ===== 平台爬虫选择 ===== */
.platform-crawlers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.platform-item:hover {
    background: rgba(255,255,255,0.08);
}

.platform-item input[type="checkbox"] {
    accent-color: var(--color-primary);
}

/* ===== AI智能分析面板 ===== */
.ai-analysis-section {
    max-width: 100%;
}

.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.ai-feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-primary);
    transition: box-shadow 0.2s, transform 0.15s;
    text-align: center;
}

.ai-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ai-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.ai-feature-card h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.ai-feature-card p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* AI区域顶部 */
.ai-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ai-header-actions { display: flex; gap: 8px; }

/* 报告结果区 */
.ai-result-panel {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    min-height: 200px;
}

.ai-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}
.ai-result-meta { display: flex; align-items: center; gap: 12px; }
.ai-result-actions { display: flex; gap: 8px; }
.ai-result-time { font-size: 12px; color: var(--color-text-secondary); }

.ai-result-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
}
.ai-badge-summarize { background: #10b981; }
.ai-badge-analyze { background: #6366f1; }
.ai-badge-predict { background: #f59e0b; }
.ai-badge-framework { background: #8b5cf6; }

.ai-result-content {
    font-size: 14px;
    line-height: 1.85;
    color: var(--color-text);
}

.ai-report-body { padding: 4px 0; }

.ai-result-content h1 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--color-text); border-bottom: 2px solid var(--color-primary); padding-bottom: 8px; }
.ai-result-content h2 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; color: var(--color-text); border-bottom: 1px solid var(--color-border, #e0e0e0); padding-bottom: 6px; }
.ai-result-content h3 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; color: var(--color-primary); }
.ai-result-content h4 { font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: var(--color-text); }
.ai-result-content h5 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: var(--color-text-secondary); }
.ai-result-content p { margin: 8px 0; }
.ai-result-content ul, .ai-result-content ol { margin: 8px 0 8px 24px; padding: 0; }
.ai-result-content li { margin: 4px 0; line-height: 1.7; }
.ai-result-content li > ul, .ai-result-content li > ol { margin-top: 4px; margin-bottom: 4px; }
.ai-result-content hr { border: none; border-top: 1px solid var(--color-border, #e0e0e0); margin: 20px 0; }
.ai-result-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; border-radius: var(--radius-sm); overflow: hidden; }
.ai-result-content thead th { background: var(--color-primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.ai-result-content th { background: var(--color-primary); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.ai-result-content td { padding: 9px 14px; border-bottom: 1px solid var(--color-border, #e0e0e0); }
.ai-result-content tbody tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.ai-result-content tr:hover td { background: rgba(var(--color-primary-rgb, 99,102,241), 0.06); }
.ai-result-content blockquote { border-left: 3px solid var(--color-primary); margin: 14px 0; padding: 10px 18px; background: rgba(var(--color-primary-rgb, 99,102,241), 0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ai-result-content code { background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.ai-result-content pre { background: rgba(0,0,0,0.06); padding: 14px 18px; border-radius: var(--radius-sm); overflow-x: auto; margin: 14px 0; }
.ai-result-content pre code { background: none; padding: 0; }
.ai-result-content strong { color: var(--color-text); }

.ai-result-content .empty-hint {
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

.ai-error-msg {
    background: rgba(239,68,68,0.08);
    border-left: 3px solid var(--color-error, #ef4444);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    color: var(--color-error, #ef4444);
}

.ai-result-content .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-primary);
    padding: 40px 0;
    font-size: 15px;
}

.ai-result-content .loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 历史记录面板 */
.ai-history-panel {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border, #e0e0e0);
}
.ai-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ai-history-header h5 { font-size: 14px; font-weight: 600; margin: 0; }
.ai-history-filters { display: flex; gap: 8px; align-items: center; }
.ai-history-filters select {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border, #ccc);
    background: var(--color-bg, #fff);
    color: var(--color-text);
    font-size: 12px;
}
.ai-history-list { max-height: 300px; overflow-y: auto; }

.ai-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ai-history-item:hover { background: rgba(var(--color-primary-rgb, 99,102,241), 0.06); }
.ai-history-item-main { display: flex; align-items: center; gap: 10px; }
.ai-history-item-meta { display: flex; align-items: center; gap: 8px; }
.ai-history-name { font-size: 13px; font-weight: 500; color: var(--color-text); }
.ai-history-time { font-size: 12px; color: var(--color-text-secondary); }

.ai-history-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.btn-icon-sm:hover { color: var(--color-error, #ef4444); background: rgba(239,68,68,0.1); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border, #ccc);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb, 99,102,241), 0.06); }

/* ===== 审核与导出 ===== */
.review-section {
    max-width: 100%;
}

.review-status {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.review-actions .btn {
    min-width: 100px;
}

/* ===== 五阶段工作流漏斗 ===== */
.workflow-stats-container {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--color-border);
}

.workflow-funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.funnel-label {
    width: 80px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.funnel-bar {
    height: 24px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    min-width: 20px;
}

.funnel-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    min-width: 40px;
}

/* ===== 待审核文章列表 ===== */
.pending-articles-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
}

.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.review-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    line-height: 1.4;
}

.review-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.review-card-summary {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-card-actions {
    display: flex;
    gap: 8px;
}

/* ===== 传播影响力分析 ===== */
.propagation-section {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.prop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.prop-tab {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.prop-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.prop-panel {
    min-height: 300px;
}

.prop-panel.hidden {
    display: none;
}

/* ===== 热度排行榜 ===== */
.ranking-list {
    max-height: 500px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.ranking-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-position { background: #FFD700; color: #333; }
.ranking-item:nth-child(2) .ranking-position { background: #C0C0C0; color: #333; }
.ranking-item:nth-child(3) .ranking-position { background: #CD7F32; color: #fff; }

.ranking-content {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ranking-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.heat-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.ranking-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ===== 受众画像 ===== */
.chart-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.8;
}

.tag-cloud-item {
    color: var(--color-primary);
    transition: transform 0.2s;
    cursor: default;
}

.tag-cloud-item:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

.audience-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audience-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.audience-item span:first-child {
    color: var(--color-text);
}

.audience-item span:last-child {
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== 按钮样式扩展 ===== */
.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background: #a52828;
}

.btn-success {
    background: var(--color-success);
    color: #fff;
    border: none;
}

.btn-success:hover {
    background: #28a745;
}

.btn-warning {
    background: #e6a817;
    color: #fff;
    border: none;
}

.btn-warning:hover {
    background: #d49b10;
}

/* ===== Toast通知样式 ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: var(--color-surface-solid);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

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

.toast-success {
    border-color: var(--color-success);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.toast-error {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
}

.toast-success .toast-icon {
    color: var(--color-success);
}

.toast-error .toast-icon {
    color: var(--color-accent);
}

.toast-message {
    color: var(--color-text);
    font-size: 14px;
}

/* ===== 登录成功动画 ===== */
.login-success {
    animation: fadeOutUp 0.5s ease forwards;
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* ===== 分析页面重设计 ===== */
.viz-hero {
    background: linear-gradient(135deg, rgba(25,118,210,0.15) 0%, rgba(156,39,176,0.1) 100%);
    border: 1px solid rgba(25,118,210,0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.viz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.viz-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viz-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 2px;
}

.viz-large {
    min-height: 400px;
}

.viz-large .echarts-container {
    height: 380px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.analysis-card {
    background: var(--color-surface-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(25,118,210,0.15);
}

.analysis-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.analysis-card .chart-mini {
    height: 180px;
    margin-top: 12px;
}

.analysis-card .chart-content {
    height: 200px;
}

.analysis-card.chart-wide {
    grid-column: span 1;
}

.analysis-card .analysis-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.analysis-card .relevance-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.analysis-card .relevance-card {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.analysis-card .relevance-label {
    font-size: 11px;
    margin-bottom: 4px;
}

.analysis-card .relevance-value {
    font-size: 20px;
    font-weight: 700;
}

/* 相关度卡片颜色优化 */
.relevance-high {
    background: linear-gradient(135deg, rgba(76,175,80,0.2) 0%, rgba(76,175,80,0.1) 100%);
    border: 1px solid rgba(76,175,80,0.4);
}

.relevance-high .relevance-value {
    color: #4CAF50;
}

.relevance-medium {
    background: linear-gradient(135deg, rgba(25,118,210,0.2) 0%, rgba(25,118,210,0.1) 100%);
    border: 1px solid rgba(25,118,210,0.4);
}

.relevance-medium .relevance-value {
    color: var(--color-primary);
}

.relevance-low {
    background: linear-gradient(135deg, rgba(255,193,7,0.2) 0%, rgba(255,193,7,0.1) 100%);
    border: 1px solid rgba(255,193,7,0.4);
}

.relevance-low .relevance-value {
    color: #FFC107;
}

.relevance-weak {
    background: linear-gradient(135deg, rgba(158,158,158,0.2) 0%, rgba(158,158,158,0.1) 100%);
    border: 1px solid rgba(158,158,158,0.4);
}

.relevance-weak .relevance-value {
    color: #9E9E9E;
}

/* 可视化工具栏优化 */
.viz-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.viz-toolbar .btn-outline {
    border-color: rgba(25,118,210,0.5);
    color: var(--color-primary-light);
}

.viz-toolbar .btn-outline:hover,
.viz-toolbar .btn-outline.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.viz-toolbar .btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #e53935 100%);
    border: none;
    color: #fff;
}

.viz-toolbar .btn-accent:hover {
    background: linear-gradient(135deg, #e53935 0%, var(--color-accent) 100%);
}

@media (max-width: 1200px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-card.chart-wide {
        grid-column: span 1;
    }
}

/* ===== 审核表格样式 ===== */
.review-table-wrapper {
    background: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    max-height: 500px;
    overflow-y: auto;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.review-table thead {
    position: sticky;
    top: 0;
    background: var(--color-bg-tertiary);
    z-index: 10;
}

.review-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.review-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.review-table tbody tr:hover {
    background: rgba(25, 118, 210, 0.05);
}

.review-table tbody tr.selected {
    background: rgba(25, 118, 210, 0.1);
}

.review-table .title-cell {
    max-width: 250px;
}

.review-table .title-link {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-table .title-link:hover {
    color: var(--color-primary);
}

.review-table .sentiment-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.review-table .sentiment-positive {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.review-table .sentiment-neutral {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.review-table .sentiment-negative {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.review-table .relevance-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.review-table .relevance-high {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.review-table .relevance-medium {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.review-table .relevance-low {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.review-table .relevance-weak {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.review-table .action-btns {
    display: flex;
    gap: 4px;
}

.review-table .btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.review-table .empty-state {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 40px;
}

.review-toolbar .checkbox-label {
    font-size: 13px;
    color: var(--color-text);
}

.review-toolbar .checkbox-label input {
    width: 16px;
    height: 16px;
}

/* 导出部分分隔样式 */
.export-main-section {
    padding-top: 16px;
}

/* ===== 后台监控面板 ===== */
.status-dot-mini {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.status-dot-running {
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
    animation: pulse 1.2s ease-in-out infinite;
}

.status-dot-stopped {
    background: var(--color-text-secondary);
}

.bg-monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bg-monitor-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.bg-monitor-actions {
    display: flex;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-running {
    background: rgba(76,175,80,0.2);
    color: #81C784;
}

.status-badge-stopped {
    background: rgba(120,144,156,0.2);
    color: #B0BEC5;
}

.bg-current-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-left: 3px solid var(--color-accent);
}

.bg-progress-section {
    margin-bottom: 20px;
}

.bg-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.bg-history-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.bg-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bg-history-table th,
.bg-history-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.bg-history-table th {
    font-weight: 600;
    color: var(--color-text);
    background: rgba(255,255,255,0.05);
}

.bg-history-table td {
    color: var(--color-text-secondary);
}

.bg-history-table .text-positive { color: var(--color-success); }
.bg-history-table .text-primary { color: var(--color-primary); }
.bg-history-table .text-negative { color: var(--color-error); }

.bg-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ===== 数据集选择器 ===== */
.dataset-selector {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dataset-selector h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}

.dataset-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
}

.dataset-option input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.dataset-count-badge {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(25,118,210,0.2);
    color: var(--color-primary-light);
}

.dataset-info {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-left: auto;
}

/* ===== 审核来源过滤 ===== */
.filter-select {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    outline: none;
    min-width: 120px;
}

.filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
}

.filter-select option {
    background: var(--color-surface-solid);
    color: var(--color-text);
}

/* ===== 气泡提示组件 ===== */
.help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: rgba(25,118,210,0.3);
    color: var(--color-primary-light);
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    vertical-align: middle;
    transition: background 0.2s;
}

.help-tip:hover {
    background: rgba(25,118,210,0.6);
}

.help-tip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
}

.help-tip:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.92);
    z-index: 10001;
    pointer-events: none;
}

/* ===== 系统概览仪表盘 ===== */
.overview-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.overview-kpi-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.overview-kpi-card:hover {
    box-shadow: var(--shadow-glow);
}

.overview-kpi-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.overview-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1.2;
}

.overview-kpi-sub {
    font-size: 12px;
    margin-top: 4px;
}

.kpi-change-positive {
    color: var(--color-success);
}

.kpi-change-negative {
    color: var(--color-error);
}

.overview-time-range {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.overview-time-range .range-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-right: 4px;
}

.time-range-btn {
    padding: 5px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-range-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
}

.time-range-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.overview-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.overview-chart-container {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.overview-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.overview-chart-box {
    height: 280px;
    width: 100%;
}

.overview-health-panel {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.overview-health-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.health-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.health-dot.healthy {
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}

.health-dot.warning {
    background: var(--color-warning);
    box-shadow: 0 0 6px var(--color-warning);
}

.health-dot.error {
    background: var(--color-error);
    box-shadow: 0 0 6px var(--color-error);
}

.health-dot.unknown {
    background: var(--color-text-secondary);
}

.health-label {
    color: var(--color-text-secondary);
}

.health-value {
    color: var(--color-text);
    font-weight: 500;
}

/* 系统概览 - 最近任务表格 */
.overview-jobs-section {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.overview-jobs-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .overview-chart-grid {
        grid-template-columns: 1fr;
    }
}

