/* ========== 智能体指挥中心 - 样式 ========== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #00f0ff;
    --accent-green: #22d3ee;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --border: #2a3a5c;
    --glow: 0 0 20px rgba(0, 240, 255, 0.3);
}

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

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========== 背景效果 ========== */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.scan-line {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    z-index: 1;
    animation: scanDown 5s linear infinite;
}

@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100vh; }
}

/* ========== 布局 ========== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ========== 头部 ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 40px;
}

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

.logo-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 10px var(--accent));
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.accent { color: var(--accent); }

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

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

/* ========== 智能体卡片 ========== */
.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.agent-card.hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 240, 255, 0.1));
    border: 2px solid var(--accent);
}

.agent-avatar {
    font-size: 48px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 12px;
    box-shadow: var(--glow);
}

.agent-info {
    flex: 1;
}

.agent-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.role {
    color: var(--accent);
    font-size: 16px;
    font-weight: 500;
}

.model {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.agent-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.status-active { color: #22d3ee; }
.status-dormant { color: var(--text-muted); }

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

/* ========== 区块标题 ========== */
.agents-section, .stats-section, .kanban-section {
    margin-bottom: 40px;
}

.agents-section h2, .stats-section h2, .kanban-section h2 {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ========== 智能体网格 ========== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.mini-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow);
}

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

.mini-avatar {
    font-size: 36px;
}

.mini-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.mini-status.active {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    border: 1px solid #22d3ee;
}

.mini-status.dormant {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.mini-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-title {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.mini-model {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.mini-role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.mini-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.cap {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    color: var(--text-secondary);
}

.mini-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.mini-stats .value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ========== 统计网格 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

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

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

.stat-icon {
    font-size: 32px;
}

.stat-card .stat-value {
    font-size: 28px;
}

.stat-card .stat-label {
    font-size: 12px;
}

/* ========== 任务看板 ========== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kanban-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.kanban-col h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.task-item {
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.task-item.active {
    border-left: 3px solid var(--accent);
}

.task-item.done {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 24px 0;
    border-top: 2px solid var(--accent);
    margin-top: 40px;
}

.footer p {
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0;
}

.footer .muted {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .agent-card.hero {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-stats {
        justify-content: center;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}
