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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 页面包装器 - 三栏布局 */
.page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1500px;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.container {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 左侧基础概念侧边栏 */
.basics-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 16px;
}

.sidebar-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.8;
}

.basics-list {
    padding: 12px;
}

.basics-list .concept-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.basics-list .concept-card:last-child {
    margin-bottom: 0;
}

.basics-list .concept-card h4 {
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 8px;
}

.basics-list .concept-card p {
    font-size: 11px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 6px;
}

.basics-list .concept-card p:last-child {
    margin-bottom: 0;
}

.basics-list .highlight-card {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* 过程步骤简化版 */
.mini-flow {
    margin: 8px 0;
}

.mini-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 11px;
    color: #475569;
}

.mini-num {
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.mini-note {
    font-size: 10px !important;
    color: #64748b !important;
    font-style: italic;
    margin-top: 4px;
}

/* 并行类型卡片 */
.parallel-type {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.parallel-type:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.type-badge.tp {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-badge.pp {
    background: #f3e8ff;
    color: #7c3aed;
}

.type-badge.dp {
    background: #dcfce7;
    color: #16a34a;
}

.type-badge.ep {
    background: #ffedd5;
    color: #c2410c;
}

.type-badge.sp {
    background: #e0e7ff;
    color: #4338ca;
}

.type-badge.cp {
    background: #fce7f3;
    color: #be185d;
}

.parallel-type div b {
    font-size: 12px;
    color: #1e293b;
    display: block;
}

.parallel-type div p {
    font-size: 10px;
    margin: 2px 0;
}

.parallel-type div small {
    font-size: 9px;
    color: #94a3b8;
}

/* 迫你图 */
.mini-diagram {
    background: #1e293b;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    text-align: center;
}

.mini-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mini-gpu {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.mini-link {
    color: #60a5fa;
    font-size: 12px;
}

.mini-label {
    color: #94a3b8;
    font-size: 9px;
    margin: 4px 0;
}

.mini-pp {
    color: #a855f7;
    font-size: 10px;
    margin: 4px 0;
}

/* NCCL侧边栏 */
.nccl-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.nccl-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 16px;
}

.nccl-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.nccl-header p {
    font-size: 11px;
    opacity: 0.7;
}

/* 当前步骤使用的NCCL */
.current-nccl {
    background: #f0fdf4;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.current-nccl-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.current-nccl-ops {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.nccl-list {
    padding: 12px;
}

.nccl-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.nccl-item:last-child {
    margin-bottom: 0;
}

.nccl-item.highlight {
    border-color: #3b82f6;
    background: #eff6ff;
}

.nccl-item.active {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.nccl-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.nccl-name {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    font-family: 'Monaco', 'Consolas', monospace;
}

.nccl-cn {
    font-size: 12px;
    color: #64748b;
}

.nccl-hot {
    font-size: 10px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.nccl-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.nccl-before, .nccl-after {
    display: flex;
    gap: 4px;
}

.nccl-gpu {
    width: 28px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.nccl-gpu.has-data {
    background: #3b82f6;
    color: white;
}

.nccl-arrow {
    font-size: 16px;
    color: #94a3b8;
}

.nccl-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

/* 头部 */
.header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.header h2 {
    font-size: 18px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header p {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.icon { width: 20px; height: 20px; }

/* 控制按钮 */
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-counter {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 80px;
}

.btn {
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 10px;
}

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

.btn-prev {
    background: #f1f5f9;
    color: #475569;
}

.btn-prev:hover:not(:disabled) {
    background: #e2e8f0;
}

.btn-next {
    background: #3b82f6;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #2563eb;
}

.btn-reset {
    background: #fef2f2;
    color: #dc2626;
    margin-left: auto;
}

.btn-reset:hover {
    background: #fee2e2;
}

/* 步骤指示器 */
.step-indicators {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background 0.3s;
}

.step-dot.completed { background: #94a3b8; }
.step-dot.current.TP { background: #3b82f6; }
.step-dot.current.PP { background: #a855f7; }
.step-dot.current.DP { background: #22c55e; }
.step-dot.current.IO { background: #eab308; }
.step-dot.current.Compute { background: #f97316; }
.step-dot.current.EP { background: #ea580c; }

/* 步骤信息 */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.step-type {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.step-type.TP { background: #dbeafe; color: #1d4ed8; }
.step-type.PP { background: #f3e8ff; color: #7c3aed; }
.step-type.DP { background: #dcfce7; color: #16a34a; }
.step-type.IO { background: #fef9c3; color: #a16207; }
.step-type.Compute { background: #ffedd5; color: #c2410c; }
.step-type.EP { background: #ffedd5; color: #c2410c; }

/* 说明卡片 */
.explanation-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.explanation-main {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.explanation-detail {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.explanation-detail.TP { border-left-color: #3b82f6; }
.explanation-detail.PP { border-left-color: #a855f7; }
.explanation-detail.DP { border-left-color: #22c55e; }
.explanation-detail.IO { border-left-color: #eab308; }
.explanation-detail.Compute { border-left-color: #f97316; }
.explanation-detail.EP { border-left-color: #ea580c; }

.key-point {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* 可视化区域 */
.visualization {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.stage-label {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 5;
}

.stage-label.stage1 { top: 8px; left: 8px; }
.stage-label.stage2 { bottom: 8px; left: 8px; }

/* 通信标注 */
.comm-label {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s;
}

.comm-label.active { opacity: 1; }
.comm-label.tp-label { background: #3b82f6; color: white; }
.comm-label.pp-label { background: #a855f7; color: white; }
.comm-label.dp-label { background: #22c55e; color: white; }
.comm-label.ep-label { background: #ea580c; color: white; }

/* SVG 连线 */
.connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.link-line {
    stroke: #cbd5e1;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke 0.3s, stroke-width 0.3s;
}

.link-line.active-tp { stroke: #3b82f6; stroke-width: 6; }
.link-line.active-pp { stroke: #a855f7; stroke-width: 6; }

.dp-line {
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 6 4;
    opacity: 0;
    transition: opacity 0.3s;
}

.dp-line.active { opacity: 1; }

/* GPU 网格 */
.gpu-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px 70px;
    z-index: 10;
}

/* GPU 卡片 */
.gpu-card {
    width: 115px;
    height: 125px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gpu-card.active {
    border-color: #475569;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gpu-card.inactive {
    opacity: 0.5;
}

.gpu-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.gpu-core {
    width: 95px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 4px;
    line-height: 1.3;
    transition: background-color 0.3s;
    background: #e2e8f0;
    color: #64748b;
    white-space: pre-line;
}

.gpu-core.active-TP { background: #3b82f6; color: white; }
.gpu-core.active-PP { background: #a855f7; color: white; }
.gpu-core.active-DP { background: #22c55e; color: white; }
.gpu-core.active-IO { background: #eab308; color: white; }
.gpu-core.active-Compute { background: #f97316; color: white; }
.gpu-core.active-EP { background: #ea580c; color: white; }

/* 推理特有 GPU core 样式 */
.gpu-core.active {
    background: #f97316;
    color: white;
}

.gpu-core.active.prefill {
    background: #3b82f6;
    color: white;
}

.gpu-core.active.decode {
    background: #f97316;
    color: white;
}

.gpu-core.active.moe {
    background: #ea580c;
    color: white;
}

.gpu-footer {
    font-size: 9px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 4px;
}

/* 图例 */
.legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 11px;
    color: #475569;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.tp { background: #3b82f6; }
.legend-dot.pp { background: #a855f7; }
.legend-dot.dp { background: #22c55e; }
.legend-dot.ep { background: #ea580c; }

.legend-text { line-height: 1.2; }
.legend-text strong { font-size: 11px; }
.legend-text small { display: block; font-size: 9px; color: #94a3b8; }

/* 网络要求对比表 */
.network-table-section {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    cursor: pointer;
    user-select: none;
}

.section-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.network-table-wrapper {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s;
}

.network-table-wrapper.collapsed {
    max-height: 0;
    padding: 0 10px;
    overflow: hidden;
}

.network-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.network-table th,
.network-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.network-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 9px;
}

.network-table tbody tr:hover {
    background: #f8fafc;
}

.row-tp { border-left: 3px solid #3b82f6; }
.row-pp { border-left: 3px solid #a855f7; }
.row-dp { border-left: 3px solid #22c55e; }
.row-ep { border-left: 3px solid #ea580c; }
.row-sp { border-left: 3px solid #4338ca; }
.row-cp { border-left: 3px solid #be185d; }

.level-critical {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.level-high {
    background: #f97316;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.level-medium {
    background: #eab308;
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.level-low {
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.table-notes {
    margin-top: 10px;
    padding: 10px;
    background: #fffbeb;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    font-size: 11px;
    line-height: 1.5;
}

.table-notes p {
    margin: 0 0 6px 0;
    color: #92400e;
}

.table-notes ul {
    margin: 0;
    padding-left: 16px;
    color: #78350f;
}

.table-notes li {
    margin-bottom: 4px;
}

.highlight-text {
    background: #fef3c7;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.icon { width: 18px; height: 18px; }

/* 通用样式 */
.tp-color { color: #3b82f6; }
.pp-color { color: #a855f7; }
.dp-color { color: #22c55e; }

/* 网络挑战区域 */
.network-challenge {
    margin-top: 8px;
    padding: 8px 10px;
    background: #1e293b;
    border-radius: 6px;
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.5;
}

/* 通信量区域 */
.traffic-volume {
    margin-top: 8px;
    padding: 8px 10px;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 11px;
    color: #1e40af;
    line-height: 1.5;
    border-left: 3px solid #3b82f6;
}

.net-scaleout {
    background: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.net-scaleup {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.net-frontend {
    background: #eab308;
    color: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.net-none {
    background: #64748b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.net-critical {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-left: 6px;
}

.net-medium {
    background: #f59e0b;
    color: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-left: 6px;
}

/* ===== 推理特有样式 ===== */

/* 阶段标签 */
.phase-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.phase-tag.prefill {
    background: #dbeafe;
    color: #1d4ed8;
}

.phase-tag.decode {
    background: #dcfce7;
    color: #16a34a;
}

/* 阶段对比卡片 */
.phase-compare {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.phase-item {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.phase-item.prefill {
    background: #eff6ff;
    border-color: #3b82f6;
}

.phase-item.decode {
    background: #f0fdf4;
    border-color: #22c55e;
}

.phase-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.phase-item.prefill .phase-badge {
    background: #3b82f6;
    color: white;
}

.phase-item.decode .phase-badge {
    background: #22c55e;
    color: white;
}

.phase-desc b {
    font-size: 12px;
    color: #1e293b;
    display: block;
}

.phase-desc p {
    font-size: 10px;
    margin: 2px 0;
}

.phase-desc small {
    font-size: 9px;
    color: #64748b;
}

/* 指标卡片 */
.metric-card {
    background: #fefce8 !important;
    border-color: #eab308 !important;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.metric-name {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.metric-desc {
    font-size: 10px;
    color: #64748b;
}

/* KV Cache 显存条 */
.gpu-memory {
    width: 95px;
    margin-top: 4px;
    flex-shrink: 0;
}

.mem-label {
    font-size: 8px;
    color: #94a3b8;
    display: block;
}

.mem-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.mem-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s;
    width: 0%;
}

/* 延迟信息 */
.latency-info {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
    border-left: 3px solid #f59e0b;
}

/* 推理特有的 step-type */
.step-type.PREFILL { background: #dbeafe; color: #1d4ed8; }
.step-type.DECODE { background: #dcfce7; color: #16a34a; }
.step-type.MOE { background: #ffedd5; color: #c2410c; }

.step-dot.current.PREFILL { background: #3b82f6; }
.step-dot.current.DECODE { background: #22c55e; }
.step-dot.current.MOE { background: #ea580c; }

.explanation-detail.PREFILL { border-left-color: #3b82f6; }
.explanation-detail.DECODE { border-left-color: #22c55e; }
.explanation-detail.MOE { border-left-color: #ea580c; }

/* EP 连接线 */
.ep-line {
    stroke: #ea580c;
    stroke-width: 2;
    stroke-dasharray: 8 4;
    opacity: 0;
    transition: opacity 0.3s;
}

.ep-line.active {
    opacity: 1;
}

/* 关键文本样式 */
.critical {
    color: #dc2626;
    font-weight: 600;
}

/* mini-list 样式 */
.mini-list {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.mini-list li {
    font-size: 10px;
    color: #475569;
    padding: 3px 0;
    padding-left: 12px;
    position: relative;
}

.mini-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* highlight-row */
.highlight-row {
    background: #fef9c3 !important;
}

/* table-note 单行注释 */
.table-note {
    font-size: 11px;
    color: #92400e;
    padding: 8px 10px;
    margin: 0;
}
