/* ============================================================
   小宿算力中心 · Token Matrix · 投影演示版样式
   主题：冷白蓝（商务专业）
   适配：1920x1080 及以上投影仪，长时间观看不累
   ============================================================ */

:root {
  /* —— 基础色 —— */
  --bg: #F4F7FB;
  --bg-2: #E9EFF7;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(14, 143, 211, 0.18);
  --line-strong: rgba(14, 143, 211, 0.42);
  --line-soft: rgba(20, 34, 51, 0.06);

  /* —— 文字色（投影仪高对比度 7:1）—— */
  --text: #142233;
  --text-2: #34465B;
  --muted: #7A8A9C;

  /* —— 强调色（投影降饱和 1 档）—— */
  --brand: #0E8FD3;
  --brand-2: #0B7BB8;
  --green: #00B27A;
  --violet: #6B5BD0;
  --amber: #E48F1F;
  --orange: #E5673A;
  --red: #D9364A;

  /* —— 状态色（用于节点/连线）—— */
  --status-space: #2C6FE5;
  --status-system: #0E8FD3;
  --status-power: #E48F1F;
  --status-cooling: #2BB7C9;
  --status-monitoring: #00B27A;
  --status-event: #D9364A;
  --status-governance: #6B5BD0;
  --status-risk: #E5673A;
  --status-ai: #00B27A;

  /* —— 阴影 —— */
  --shadow-soft: 0 1px 2px rgba(20, 34, 51, 0.04), 0 6px 20px rgba(20, 34, 51, 0.06);
  --shadow-hover: 0 4px 10px rgba(20, 34, 51, 0.08), 0 12px 32px rgba(14, 143, 211, 0.16);
  --shadow-cyan: 0 0 0 1px rgba(14, 143, 211, 0.10), 0 8px 24px rgba(14, 143, 211, 0.10);

  /* —— 圆角 —— */
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;

  /* —— 缓动 —— */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   基础重置
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ============================================================
   页面骨架与背景
   ============================================================ */

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 8% 4%, rgba(14, 143, 211, 0.10), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(0, 178, 122, 0.06), transparent 32%),
    linear-gradient(180deg, #F4F7FB 0%, #E9EFF7 100%);
  isolation: isolate;
  overflow: hidden;
}

/* 极淡对角网格 */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(14, 143, 211, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 143, 211, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, black 55%, transparent 100%);
}

/* 顶部缓慢移动的"光带" */
.light-ribbon {
  position: absolute;
  left: -20%;
  top: -10%;
  width: 60%;
  height: 40%;
  z-index: -2;
  background: radial-gradient(ellipse at center, rgba(14, 143, 211, 0.10), transparent 60%);
  filter: blur(40px);
  animation: lightDrift 60s linear infinite;
  pointer-events: none;
}

@keyframes lightDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(50%, 30%, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* ============================================================
   通用面板
   ============================================================ */

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   顶部 Topbar
   ============================================================ */

.topbar {
  height: 76px;
  border-radius: var(--radius-xl);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

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

/* 品牌前缀装饰条（替代方块 logo） */
.brand-mark {
  width: 6px;
  height: 38px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--green));
  box-shadow: 0 4px 14px rgba(14, 143, 211, 0.32);
  margin-right: 4px;
  animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(14, 143, 211, 0.32); }
  50%      { box-shadow: 0 4px 22px rgba(14, 143, 211, 0.55); }
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.global-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-pill,
.time-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.pulse-pill:hover,
.time-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.pulse-pill span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 178, 122, 0.18);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50%      { transform: scale(1.25); opacity: 1; }
}

/* ============================================================
   主布局
   ============================================================ */

.layout {
  height: calc(100vh - 110px);
  margin-top: 16px;
  display: grid;
  grid-template-columns: 304px minmax(640px, 1fr) 340px;
  gap: 16px;
}

.left-panel,
.right-panel {
  border-radius: var(--radius-xl);
  padding: 18px;
  overflow: auto;
}

.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
  width: 8px;
}
.left-panel::-webkit-scrollbar-thumb,
.right-panel::-webkit-scrollbar-thumb {
  background: rgba(14, 143, 211, 0.22);
  border-radius: 999px;
}
.left-panel::-webkit-scrollbar-thumb:hover,
.right-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 143, 211, 0.42);
}

.center-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: 110px minmax(0, 1fr) 148px;
  gap: 16px;
}

.panel-section {
  margin-bottom: 20px;
}
.panel-section.compact {
  margin-bottom: 18px;
}

.section-title {
  position: relative;
  margin-bottom: 12px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--green));
}

/* ============================================================
   视角切换 / Tab
   ============================================================ */

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tab,
.tool-btn,
.scenario {
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out),
              background 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

.tab {
  min-height: 38px;
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s var(--ease-out);
}

.tab:hover,
.tool-btn:hover,
.scenario:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: rgba(14, 143, 211, 0.06);
  box-shadow: 0 6px 18px rgba(14, 143, 211, 0.12);
  color: var(--text);
}

.tab:hover::after {
  width: 36%;
}

.tab.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 143, 211, 0.30);
}

.tab.active::after { display: none; }

/* ============================================================
   搜索框
   ============================================================ */

.search-box {
  display: flex;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 143, 211, 0.14);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: rgba(122, 138, 156, 0.85);
}

.search-box button {
  width: 44px;
  border: none;
  color: var(--muted);
  font-size: 20px;
  background: transparent;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.search-box button:hover {
  color: var(--brand);
  background: rgba(14, 143, 211, 0.08);
}

.search-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ============================================================
   事故剧本列表
   ============================================================ */

.scenario-list {
  display: grid;
  gap: 8px;
}

.scenario {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
}

.scenario-icon {
  font-size: 14px;
  text-shadow: 0 0 8px currentColor;
}

.scenario-icon.hot    { color: var(--red); }
.scenario-icon.power  { color: var(--amber); }
.scenario-icon.cold   { color: var(--status-cooling); }
.scenario-icon.monitor{ color: var(--green); }

/* ============================================================
   工具按钮
   ============================================================ */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-btn {
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
}

/* ============================================================
   图例
   ============================================================ */

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  color: var(--text-2);
  font-size: 12.5px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.dot.space      { background: var(--status-space); }
.dot.power      { background: var(--status-power); }
.dot.cooling    { background: var(--status-cooling); }
.dot.event      { background: var(--status-event); }
.dot.governance { background: var(--status-governance); }
.dot.risk       { background: var(--status-risk); }
.dot.ai         { background: var(--status-ai); }

/* ============================================================
   中间区域：KPI 卡片
   ============================================================ */

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.kpi-card {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 143, 211, 0.10), transparent 64%);
  pointer-events: none;
}

.kpi-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.kpi-foot {
  margin-top: 6px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 500;
}

/* ============================================================
   图谱主区
   ============================================================ */

.graph-card {
  min-height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel-strong);
}

.graph-toolbar {
  height: 76px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

.graph-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.01em;
}

.graph-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.mini-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.mini-stats span:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.graph-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(14, 143, 211, 0.05), transparent 35%),
    linear-gradient(180deg, #FAFCFE 0%, #F0F5FA 100%);
}

#graphSvg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#graphSvg.dragging { cursor: grabbing; }

.watermark {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(14, 143, 211, 0.10);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

/* —— 边 —— */
.edge {
  stroke-opacity: 0.55;
  stroke-linecap: round;
  transition: stroke-opacity 0.25s var(--ease-out), stroke-width 0.25s var(--ease-out);
}
.edge.dimmed    { stroke-opacity: 0.08; }
.edge.highlight {
  stroke-opacity: 1;
  stroke-width: 2.4px;
  filter: drop-shadow(0 0 6px currentColor);
}
.edge.flow {
  stroke-dasharray: 6 7;
  animation: dash 1.4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -26; } }

/* —— 节点 —— */
.node {
  cursor: pointer;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.node.dimmed { opacity: 0.20; }

.node circle {
  stroke: #FFFFFF;
  stroke-width: 1.6;
  filter: drop-shadow(0 2px 6px rgba(20, 34, 51, 0.18));
  transition: filter 0.2s var(--ease-out), stroke 0.2s var(--ease-out);
}

.node.selected circle {
  stroke: var(--brand);
  stroke-width: 2.8;
  filter: drop-shadow(0 0 14px rgba(14, 143, 211, 0.55));
}

.node text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3.2px;
  stroke-linejoin: round;
  fill: #142233;
  font-size: 10.5px;
  font-weight: 600;
  pointer-events: none;
}
.node.root text,
.node.selected text {
  font-size: 12.5px;
  font-weight: 800;
}

/* 节点状态描边 */
.node.status-warning  circle { stroke: var(--amber); }
.node.status-critical circle { stroke: var(--red); }
.node.status-normal   circle { stroke: #FFFFFF; }

/* 节点呼吸 / 脉冲 */
.node.idle circle {
  animation: nodeBreath 4s ease-in-out infinite;
}
.node.selected circle {
  animation: nodePulse 1.6s var(--ease-out) infinite;
}
.node.status-critical circle {
  animation: nodeCritical 1.2s ease-in-out infinite;
}

@keyframes nodeBreath {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.04); opacity: 0.92; }
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.18); }
}
@keyframes nodeCritical {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 2px 6px rgba(217, 54, 74, 0.18)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 14px rgba(217, 54, 74, 0.6)); }
}

/* ============================================================
   底部时间线
   ============================================================ */

.bottom-strip {
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  overflow: hidden;
  background: var(--panel-strong);
}

.strip-title {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.strip-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--green));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.timeline-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  cursor: pointer;
  opacity: 0;
  transform: translateX(20px);
  animation: timelineIn 0.5s var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.25s; }
.timeline-item:nth-child(4) { animation-delay: 0.35s; }

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--brand);
}

@keyframes timelineIn {
  to { opacity: 1; transform: translateX(0); }
}

.timeline-time {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timeline-title {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   右侧详情面板
   ============================================================ */

.detail-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-kicker {
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

#detailTitle {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 800;
}

.detail-meta {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.health-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.7);
}

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

.health-score {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.health-tag {
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0, 178, 122, 0.12);
  color: var(--green);
}

.health-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(14, 143, 211, 0.10);
}

.health-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, var(--brand) 60%, var(--violet) 100%);
  width: 0;
  transition: width 1s var(--ease-out);
  box-shadow: 0 0 12px rgba(14, 143, 211, 0.28);
}

.property-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prop-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  border-bottom: 1px solid var(--line-soft);
}
.prop-row:last-child { border-bottom: none; }

.prop-key,
.prop-value {
  min-width: 0;
  padding: 10px 12px;
  font-size: 12.5px;
}

.prop-key {
  color: var(--muted);
  background: rgba(14, 143, 211, 0.04);
  font-weight: 600;
}

.prop-value {
  color: var(--text);
  word-break: break-word;
}

.relation-list,
.record-list {
  display: grid;
  gap: 8px;
}

.rel-item,
.record-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.rel-item:hover,
.record-item:hover {
  transform: translateX(2px);
  border-color: var(--brand);
}

.rel-line {
  color: var(--text);
  line-height: 1.4;
}

.rel-type {
  display: inline-block;
  margin-top: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.record-title {
  color: var(--text);
  font-weight: 700;
}

.record-desc {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Toast 提示
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(14, 143, 211, 0.24);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================================
   AI 副驾驶
   ============================================================ */

.ai-pill { border-color: rgba(0, 178, 122, 0.30); }
.ai-pill span { background: var(--green); box-shadow: 0 0 0 4px rgba(0, 178, 122, 0.18); }

.ai-query-section { position: relative; }

.ai-query-box {
  border: 1px solid rgba(0, 178, 122, 0.20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 143, 211, 0.05), rgba(0, 178, 122, 0.03));
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.ai-query-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 143, 211, 0.14);
}

.ai-query-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  max-height: 128px;
  border: none;
  outline: none;
  padding: 12px 14px 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.55;
}

.ai-query-box textarea::placeholder { color: var(--muted); }

.ai-query-box button {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(14, 143, 211, 0.12);
  padding: 10px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  letter-spacing: 0.04em;
  transition: filter 0.18s var(--ease-out);
}

.ai-query-box button:hover { filter: brightness(1.08); }
.ai-query-box button:active { transform: scale(0.99); }

.ai-quick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ai-quick {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.ai-quick:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: rgba(0, 178, 122, 0.06);
  color: var(--text);
}

.ai-query-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.ai-copilot {
  border: 1px solid rgba(0, 178, 122, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  overflow: hidden;
}

.ai-copilot-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.ai-copilot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.ai-mode-chip {
  flex: none;
  border: 1px solid rgba(0, 178, 122, 0.30);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--green);
  background: rgba(0, 178, 122, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ai-copilot-summary {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 18px;
}

.ai-copilot-summary .caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: -1px;
  animation: caretBlink 0.9s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.ai-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.ai-section:last-child { border-bottom: none; }

.ai-section-title {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ai-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.ai-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 178, 122, 0.18);
}

.ai-evidence-grid {
  display: grid;
  gap: 8px;
}

.ai-evidence {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.ai-evidence:hover {
  transform: translateX(2px);
  border-color: var(--brand);
  background: rgba(14, 143, 211, 0.05);
}

.ai-evidence-name {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-evidence-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.ai-score-row {
  display: grid;
  grid-template-columns: 72px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-2);
}

.ai-score-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(14, 143, 211, 0.10);
  overflow: hidden;
}

.ai-score-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--brand), var(--violet));
  box-shadow: 0 0 12px rgba(14, 143, 211, 0.28);
  transition: width 0.9s var(--ease-out);
}

.ai-warning-note {
  color: #8A5A1A;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(228, 143, 31, 0.10);
  border-left: 3px solid var(--amber);
}

.node.ai-node circle {
  stroke: var(--green);
  filter: drop-shadow(0 0 12px rgba(0, 178, 122, 0.45));
}

/* ============================================================
   入场动画（topbar / 三栏 / 节点）
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.topbar   { animation: fadeDown 0.5s var(--ease-out) both; }
.left-panel  { animation: fadeUp 0.5s var(--ease-out) 0.10s both; }
.center-panel{ animation: scaleIn 0.6s var(--ease-out) 0.18s both; }
.right-panel { animation: fadeUp 0.5s var(--ease-out) 0.24s both; }

.kpi-card { animation: fadeUp 0.45s var(--ease-out) both; }
.kpi-card:nth-child(1) { animation-delay: 0.20s; }
.kpi-card:nth-child(2) { animation-delay: 0.28s; }
.kpi-card:nth-child(3) { animation-delay: 0.36s; }
.kpi-card:nth-child(4) { animation-delay: 0.44s; }
.kpi-card:nth-child(5) { animation-delay: 0.52s; }
.kpi-card:nth-child(6) { animation-delay: 0.60s; }

.graph-card    { animation: fadeIn 0.6s var(--ease-out) 0.30s both; }
.bottom-strip  { animation: fadeUp 0.5s var(--ease-out) 0.40s both; }

/* 视图切换时图谱重排 */
#graphSvg.view-fade .edge,
#graphSvg.view-fade .node {
  animation: fadeIn 0.4s var(--ease-out) both;
}

/* ============================================================
   响应式断点
   ============================================================ */

@media (max-width: 1380px) {
  .layout { grid-template-columns: 280px minmax(560px, 1fr) 320px; }
  .dashboard-row { grid-template-columns: repeat(3, 1fr); }
  .center-panel { grid-template-rows: 222px minmax(0, 1fr) 142px; }
}

@media (max-width: 1080px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; }
  .layout {
    height: auto;
    grid-template-columns: 1fr;
  }
  .left-panel,
  .right-panel { max-height: none; }
  .center-panel { grid-template-rows: auto 620px auto; }
  .dashboard-row { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   可访问性 · 降级动画
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   小宿算力中心 · Token Matrix · 驾驶舱
   ============================================================ */

/* —— 顶部状态条 —— */
.topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  min-height: 76px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

/* —— 自治等级指示器 —— */
.autonomy-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(14,143,211,0.06), rgba(107,91,208,0.06));
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  flex-shrink: 0;
}

.meter-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.meter-track {
  position: relative;
  width: 80px;
  height: 6px;
  background: rgba(20,34,51,0.08);
  border-radius: 999px;
  overflow: visible;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 80%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--violet) 100%);
  border-radius: 999px;
  transition: width 0.6s var(--ease-out);
}

.meter-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.meter-ticks i {
  width: 1px;
  height: 100%;
  background: rgba(20,34,51,0.18);
}

.meter-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* —— 自成长指标 —— */
.growth-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(14,143,211,0.04);
}

.growth-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 56px;
}

.growth-stats .stat-num {
  font-family: "SF Mono", "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.5px;
  transition: color 0.3s var(--ease-out);
}

.growth-stats .stat-num.bump {
  animation: statBump 0.9s var(--ease-spring);
  color: var(--green);
}

@keyframes statBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--green); }
  100% { transform: scale(1); }
}

.growth-stats .stat-tag {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.stat-sep {
  width: 1px;
  height: 22px;
  background: var(--line-soft);
}

/* —— 模拟触发按钮（高亮琥珀色，demo 杀手锏） —— */
.btn-simulate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #F0A53A 0%, #E48F1F 60%, #C7711A 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(228,143,31,0.36), 0 1px 0 rgba(255,255,255,0.4) inset;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring), filter 0.18s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-simulate:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(228,143,31,0.5), 0 1px 0 rgba(255,255,255,0.4) inset;
}

.btn-simulate:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-simulate.running {
  background: linear-gradient(135deg, #6B5BD0 0%, #0E8FD3 100%);
  box-shadow: 0 4px 14px rgba(14,143,211,0.36);
  pointer-events: none;
}

.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: simDotPulse 1.4s ease-in-out infinite;
}

@keyframes simDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* —— 驾驶舱面板 —— */
.cockpit-section { padding-bottom: 14px; }

.cockpit-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 0 0 0;
}

.stage-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage {
  padding: 9px 10px 10px 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.stage.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(14,143,211,0.06), rgba(107,91,208,0.04));
  transform: translateX(2px);
}

.stage.active::before { opacity: 1; }

.stage.done {
  border-color: var(--green);
  background: rgba(0,178,122,0.05);
}
.stage.done::before { background: var(--green); opacity: 1; }

.stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(20,34,51,0.05);
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.stage.active .stage-num {
  color: #fff;
  background: var(--brand);
}

.stage.done .stage-num {
  color: #fff;
  background: var(--green);
}

.stage-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.stage-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

.stage-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(20,34,51,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.stage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--violet) 100%);
  border-radius: 999px;
  transition: width 0.4s var(--ease-out);
}

.stage.done .stage-fill {
  background: linear-gradient(90deg, var(--green) 0%, #2BB7C9 100%);
  width: 100%;
}

/* —— ES 摘要 —— */
.es-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(14,143,211,0.04), rgba(107,91,208,0.04));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.es-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  align-items: start;
}

.es-row-k {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.es-row-v {
  color: var(--text);
  word-break: break-word;
}

.es-row-v b {
  color: var(--brand);
  font-weight: 600;
}

/* —— 知识沉淀小窗 —— */
.growth-feed {
  background: linear-gradient(180deg, rgba(0,178,122,0.05), rgba(14,143,211,0.04));
  border: 1px solid rgba(0,178,122,0.18);
  border-radius: 12px;
  padding: 10px 12px;
}

.feed-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: feedPulse 1.4s ease-in-out infinite;
}

@keyframes feedPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.7);
  border-left: 2px solid var(--green);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  animation: feedIn 0.5s var(--ease-out) both;
}

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

.feed-item .feed-time {
  color: var(--muted);
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 10px;
  white-space: nowrap;
  margin-top: 1px;
}

.feed-item .feed-body { flex: 1; }

.feed-item b { color: var(--green); font-weight: 700; }

.feed-empty {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 14px 0;
  font-style: italic;
}

/* —— 底部 ES 时间轴 —— */
.bottom-strip {
  min-height: 96px;
  padding: 12px 16px;
}

.strip-title {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.es-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 4px 0 4px;
}

.es-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  transition: all 0.35s var(--ease-out);
  position: relative;
  min-width: 0;
}

.es-stage .es-num {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.es-stage .es-name {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
}

.es-stage.active {
  background: linear-gradient(135deg, rgba(14,143,211,0.12), rgba(107,91,208,0.08));
  border-color: var(--brand);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(14,143,211,0.18);
}
.es-stage.active .es-num { color: var(--brand); }
.es-stage.active .es-name { color: var(--brand); }

.es-stage.done {
  background: rgba(0,178,122,0.08);
  border-color: rgba(0,178,122,0.4);
}
.es-stage.done .es-num { color: var(--green); }
.es-stage.done .es-name { color: var(--green); }

.es-arrow {
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-soft), var(--line));
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.es-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-left-color: var(--line);
  transform: translateY(-50%);
}

/* —— 顶部 brand 微调 —— */
.brand-title {
  font-size: 16px !important;
  letter-spacing: 0.3px;
}

/* —— SVG 节点上的 POSTMORTEM 角标 —— */
.node-badge {
  pointer-events: none;
  font-family: "SF Mono", "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  fill: #fff;
  letter-spacing: 0.4px;
}

.node-badge-bg {
  fill: var(--green);
  filter: drop-shadow(0 1px 2px rgba(0,178,122,0.4));
}

/* —— 响应式微调 —— */
@media (max-width: 1380px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .topbar-status {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .es-stage .es-name { font-size: 11.5px; }
}

@media (max-width: 1080px) {
  .topbar-status { gap: 10px; }
  .growth-stats .stat { min-width: 44px; }
  .es-stage { padding: 6px 4px; }
  .es-stage .es-name { font-size: 11px; }
}

/* ============================================================
   缺失的修饰 section（浅色主题补丁）
   ============================================================ */

.health-section {
  margin-bottom: 18px;
}

.health-section:empty { display: none; }

.legend-section .legend,
.scenario-section .scenario-list {
  margin-top: 2px;
}

/* 健康度卡空状态 */
.health-section .health-empty {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
}

/* Feed 增长项补充（追加兼容浅色主题） */
.feed-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.feed-item:hover {
  transform: translateX(2px);
  border-color: var(--brand);
}
.feed-time {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.feed-body {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

/* 入场动画（适配 Token Matrix 组件） */
.topbar > .topbar-status { animation: fadeIn 0.5s var(--ease-out) 0.20s both; }
.cockpit-panel { animation: fadeUp 0.5s var(--ease-out) 0.30s both; }
.es-timeline { animation: fadeUp 0.45s var(--ease-out) 0.40s both; }

.es-stage {
  opacity: 0;
  transform: translateX(20px);
  animation: timelineIn 0.45s var(--ease-out) forwards;
}
.es-stage:nth-child(1) { animation-delay: 0.30s; }
.es-stage:nth-child(3) { animation-delay: 0.38s; }
.es-stage:nth-child(5) { animation-delay: 0.46s; }
.es-stage:nth-child(7) { animation-delay: 0.54s; }
.es-stage:nth-child(9) { animation-delay: 0.62s; }
