.compute-arch-section {
    margin-bottom: 25px;
}

.compute-arch-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.compute-arch-section p {
    color: #999;
    font-size: 14px;
}

.compute-arch-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 28px;
}

.compute-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.compute-tab {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.compute-tab:hover:not(.active) {
    border-color: #cbd5e1;
    background: #f9fafb;
}

.compute-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 500;
}

/* 主题：Tab / 说明条 与统计卡同色 */
.compute-arch-panel.theme-home .compute-tab.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
}
.compute-arch-panel.theme-home .compute-desc-bar {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #15803d;
}

.compute-arch-panel.theme-cafe .compute-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #2563eb;
}
.compute-arch-panel.theme-cafe .compute-desc-bar {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.compute-arch-panel.theme-datacenter .compute-tab.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #ea580c;
}
.compute-arch-panel.theme-datacenter .compute-desc-bar {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.compute-arch-panel.theme-remote .compute-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #7c3aed;
}
.compute-arch-panel.theme-remote .compute-desc-bar {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.compute-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.compute-stat-card {
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.compute-stat-card.highlight {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.compute-stat-card.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.compute-stat-card.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.compute-stat-card.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.compute-stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.compute-stat-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.compute-stat-label {
    font-size: 14px;
    opacity: 0.95;
}

.compute-desc-bar {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #1d4ed8;
    line-height: 1.7;
}

.compute-desc-bar strong {
    font-weight: 600;
}

.compute-task-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e5e7eb;
}

.compute-task-panel.hidden {
    display: none;
}

.compute-arch-panel.theme-home .compute-task-panel {
    border-top-color: #bbf7d0;
}

.compute-task-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.compute-task-panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

        .compute-arch-panel.theme-home .compute-task-panel-header h3 {
            color: #15803d;
        }

        .compute-arch-panel.theme-home .ai-toolbar h3 {
            color: #15803d;
        }

        .compute-arch-panel.theme-remote .ai-toolbar h3 {
            color: #6d28d9;
        }

.compute-task-panel-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.compute-task-panel .data-table {
    width: 100%;
}

.compute-task-panel .data-table thead th {
    background: #f9fafb;
    font-size: 13px;
}

.compute-arch-panel.theme-home .data-table thead th {
    background: #ecfdf5;
    color: #166534;
}

.compute-arch-panel.theme-home .btn-home-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
}

.compute-arch-panel.theme-home .btn-home-primary:hover {
    background: #16a34a;
}

.metric-query-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 20px 0 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.compute-arch-panel.theme-home .metric-query-bar {
    border-top-color: #bbf7d0;
}

.metric-list-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: #374151;
}

.compute-arch-panel.theme-home .metric-list-title {
    color: #15803d;
}

@media (max-width: 900px) {
    .compute-stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .compute-stat-cards {
        grid-template-columns: 1fr;
    }
}
