/* ============================================================
   IntelliX System v2 — Mac Terminal 嵌入白色官网
   全局白色背景，仅终端窗口暗色
   ============================================================ */

/* ── 白色页面中的暗色终端窗口 ── */

/* ── Canvas 背景由 style.css + main.js 控制，不在此覆盖 ── */

/* ── 页面分割线 ── */
.section-divider { width: 100%; height: 1px; background: var(--border-soft, #e8e8ed); margin: 0; }

/* ═══════════════════════════════════
   五节点横排卡片（缩略版，在终端上方）
   ═══════════════════════════════════ */
.pipeline-nodes {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 24px; flex-wrap: nowrap;
  max-width: 960px; margin-left: auto; margin-right: auto;
}
.pipe-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 0; width: 142px;
  background: linear-gradient(175deg, #3a4355 0%, #333c4d 30%, #2d3545 60%, #333c4d 100%);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 1px 3px rgba(0,0,0,0.15),
    0 4px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  transition: all 0.35s ease;
}
.pipe-node:hover {
  background: linear-gradient(175deg, #4a5468 0%, #434d60 30%, #3d4658 60%, #434d60 100%);
  border-color: rgba(57,186,230,0.15);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 2px 6px rgba(0,0,0,0.2),
    0 6px 20px rgba(0,0,0,0.3),
    0 0 12px rgba(57,186,230,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.pipe-node-icon {
  font-size: 1.5rem; line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: filter 0.35s ease;
}
.pipe-node-label {
  font-size: 0.72rem; font-weight: 600;
  color: #8e9098;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: color 0.35s ease;
}
/* active 态——终端执行到该阶段时点亮 */
.pipe-node.active {
  background: linear-gradient(175deg, #2563eb 0%, #1d4ed8 30%, #1e40af 60%, #1d4ed8 100%);
  border-color: rgba(96,165,250,0.5);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 2px 6px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.35),
    0 0 24px rgba(37,99,235,0.35),
    0 0 56px rgba(37,99,235,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.pipe-node.active .pipe-node-icon {
  filter: drop-shadow(0 0 10px rgba(147,197,253,0.5));
}
.pipe-node.active .pipe-node-label {
  color: #e8edf5;
  text-shadow: 0 0 12px rgba(147,197,253,0.3);
}

.pipe-node-arrow {
  font-size: 1.1rem; color: rgba(255,255,255,0.1);
  margin: 0 4px; font-weight: 300;
  line-height: 1;
  transition: color 0.35s ease;
}

/* ── Section ── */
/* ⚠️ #bg-canvas 由 style.css 控制，system-v2.css 不覆盖 */

/* ═══════════════════════════════════
   Mac Terminal — 嵌入白色页面的暗色窗口
   ═══════════════════════════════════ */

/* 终端外层容器 — 白色页面中包住暗色窗口 */
.mac-terminal-wrapper {
  max-width: 960px; margin: 0 auto;
  background: #f8f9fb;
  border: 1px solid var(--border-soft, #e8e8ed);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

.mac-terminal {
  width: 100%;
  border-radius: 8px; overflow: hidden;
  /* Mac 原生终端背景色 */
  background: rgba(24,24,24,0.97);
  /* 白边 — 暗色页面上凸显终端窗口，像对话卡片 */
  border: 1px solid rgba(255,255,255,0.7);
  /* Mac 窗口投影 */
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.10),
    0 2px 6px rgba(0,0,0,0.12),
    0 8px 30px rgba(0,0,0,0.35),
    0 32px 90px rgba(0,0,0,0.5);
  font-family: "SF Mono","Menlo","Monaco","Courier New",monospace;
}

/* 标题栏 — Mac 风格渐变 */
.mac-titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  /* Mac 终端标题栏渐变：上亮下暗 */
  background: linear-gradient(180deg,
    rgba(60,60,62,0.95) 0%,
    rgba(50,50,52,0.95) 50%,
    rgba(42,42,44,0.95) 100%);
  border-bottom: 0.5px solid rgba(255,255,255,0.25);
  border-top: 0.5px solid rgba(255,255,255,0.15);
  user-select: none;
}
.mac-dots { display: flex; gap: 8px; flex-shrink: 0; margin-top: 1px; }
.mac-dot {
  width: 12px; height: 12px; border-radius: 50%;
  /* 内阴影模拟 Mac 按钮质感 */
  position: relative;
}
.mac-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
}
.mac-dot.red    { background: linear-gradient(180deg, #ff6259 0%, #ff554d 50%, #e0443e 100%); }
.mac-dot.red::after    { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.2); }
.mac-dot.yellow { background: linear-gradient(180deg, #ffbe2e 0%, #ffb520 50%, #e0a015 100%); }
.mac-dot.yellow::after { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.2); }
.mac-dot.green  { background: linear-gradient(180deg, #2bd142 0%, #27c93f 50%, #1fab31 100%); }
.mac-dot.green::after  { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.2); }
.mac-title-text {
  font-family: -apple-system,"SF Pro Text","Helvetica Neue",sans-serif;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.65);
  text-align: center; flex: 1; letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.mac-title-spacer { width: 60px; flex-shrink: 0; }

/* 终端内容区 — 固定窗口大小，内容滚动 */
.mac-body {
  padding: 12px 16px 16px;
  height: 420px;
  overflow-y: auto; overflow-x: hidden;
  font-size: 13px; line-height: 1.6;
  color: #bfbab0;
  -webkit-font-smoothing: antialiased;
  /* 终端顶部微微压暗 */
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30px);
  /* 隐藏滚动条 */
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.mac-body::-webkit-scrollbar { width: 5px; }
.mac-body::-webkit-scrollbar-track { background: transparent; }
.mac-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }

/* 终端行 */
.term-line {
  white-space: pre-wrap; word-break: break-all;
  animation: termFadeIn 0.25s ease-out;
  min-height: 1.75em;
}
@keyframes termFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Prompt */
.term-prompt { color: #28c840; }
.term-prompt .host { color: #39bae6; }
.term-prompt .path  { color: #7fd962; }
.term-prompt .symbol { color: #28c840; }
.term-cmd { color: #e8e4dd; }

/* 输出文字 */
.term-out   { color: #bfbab0; }
.term-dim   { color: #5c6773; }
.term-info  { color: #39bae6; }
.term-ok    { color: #7fd962; }
.term-warn  { color: #ffb454; }
.term-err   { color: #f26d78; }
.term-bold  { color: #e8e4dd; font-weight: 600; }
.term-hl    { color: #39bae6; font-weight: 600; }

/* 高亮框 — ASCII 表格/进度条 */
.term-box {
  display: block; padding: 8px 14px; margin: 6px 0;
  border-left: 2px solid #39bae6;
  background: rgba(57,186,230,0.04);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.term-box:hover {
  background: rgba(57,186,230,0.08);
  border-left-color: #7fd962;
}
.term-box .tag {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 0.68rem; margin-right: 6px;
  font-weight: 600;
}
.tag-ok    { background: rgba(127,217,98,0.12); color: #7fd962; }
.tag-info  { background: rgba(57,186,230,0.12); color: #39bae6; }
.tag-amber { background: rgba(255,180,84,0.12); color: #ffb454; }
.tag-red   { background: rgba(242,109,120,0.12); color: #f26d78; }

/* 指示条 */
.term-bar {
  display: inline-block; height: 3px; border-radius: 2px;
  vertical-align: middle; margin: 0 6px;
  background: #1e2a3a;
}
.term-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 2s ease;
}

/* 闪烁光标 */
.term-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── 详情抽屉 ── */
.drawer-overlay {
  position: fixed; top:0;left:0;width:100%;height:100%;
  background: rgba(0,0,0,0.5); z-index:200;
  opacity:0;visibility:hidden; transition: opacity .3s, visibility .3s;
}
.drawer-overlay.open { opacity:1;visibility:visible; }
.drawer {
  position: fixed; top:0;right:0;width:420px;max-width:90vw;height:100%;
  background: #12171f; border-left:1px solid #1e2a3a; z-index:201; overflow-y:auto;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.drawer.open { transform:translateX(0); }
.drawer-close {
  position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:6px;
  background:rgba(255,255,255,.04);border:1px solid #1e2a3a;color:var(--text-muted);
  font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .2s;z-index:5;
}
.drawer-close:hover { background:rgba(255,255,255,.08);color:#fff;border-color:#39bae6; }
.drawer-content { padding:40px 28px; }
.drawer-content .dc-icon { font-size:2rem;margin-bottom:16px; }
.drawer-content .dc-title {
  font-family: "SF Mono","Cascadia Code","Fira Code",monospace;
  font-size: 1rem; font-weight: 700; color:#e8e4dd; margin-bottom:8px;
}
.drawer-content .dc-status {
  display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:4px;
  background:rgba(127,217,98,.06);color:#7fd962;font-size:.68rem;font-weight:600;margin-bottom:20px;
  font-family:"SF Mono","Cascadia Code","Fira Code",monospace;
}
.drawer-content .dc-section { margin-bottom:24px; }
.drawer-content .dc-section-title {
  font-size:.68rem;font-weight:700;color:#5c6773;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;
}
.drawer-content .dc-metric { display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #1a2432; }
.drawer-content .dc-metric-label { color:var(--text-secondary);font-size:.78rem; }
.drawer-content .dc-metric-val {
  font-weight:600;color:#e8e4dd;font-size:.78rem;font-family:"SF Mono","Cascadia Code","Fira Code",monospace;
}
.drawer-content .dc-bar { height:4px;background:#1e2a3a;border-radius:2px;margin-top:4px;overflow:hidden; }
.drawer-content .dc-bar-fill { height:100%;border-radius:2px;background:linear-gradient(90deg,#39bae6,#7fd962);transition:width 1s cubic-bezier(.22,1,.36,1); }

/* ── 占位 ── */
.placeholder-section {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-top: 1px solid var(--border);
}
.placeholder-card {
  padding: 20px 40px; border-radius: 8px;
  background: rgba(255,255,255,.02); border: 1px dashed #1e2a3a;
  color: var(--text-muted); font-size: .9rem; font-weight: 500; letter-spacing: .04em;
}

/* ── CTA ── */
.sys-cta { position:relative;z-index:2;max-width:960px;margin:0 auto 100px;padding:80px 64px;text-align:center;background:#0f141d;border-radius:18px;border:1px solid var(--border); }
.sys-cta .cta-title { font-family:"Inter","SF Pro Display",-apple-system,sans-serif;font-size:2rem;font-weight:700;letter-spacing:-.03em;color:#e8e4dd;margin-bottom:12px; }
.sys-cta .cta-desc { color:var(--text-muted);margin-bottom:36px;font-size:1.06rem; }
.sys-cta .btn-primary { background:#1a5feb;color:#fff; }
.sys-cta .btn-primary:hover { background:#3b7cf7; }

/* ── Footer（白色页脚） ── */
.footer-brand { color: var(--text); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width:600px) {
  .sys-section { padding:80px 16px 48px;min-height:auto; }
  .sys-title { font-size:1.6rem; }
  .mac-body { padding:12px 14px;font-size:.75rem;height:440px;overflow-x:auto; }
  .term-line { white-space:pre-wrap; word-break:break-word; }
  .term-ascii { white-space:pre; }
  .term-box { white-space:normal; }
  .pipeline-nodes { flex-direction:column; }
  .pipe-node { width:100%; max-width:220px; margin:0 auto; }
  .pipe-node-arrow { transform:rotate(90deg); margin:2px 0; }
  .drawer { width:100vw;max-width:100vw; }
  .sys-cta { margin:0 16px 60px;padding:48px 24px; }
  .sys-cta .cta-title { font-size:1.5rem; }
  .placeholder-section { min-height:40vh; }
  .sys-dark .cta-strip { display: none; }
  .sys-dark .tag.danger { display: none; }
}

/* ═══════════════════════════════════
   GPU 推理仪表盘终端（终端内 ASCII 进度条，无需额外 CSS）
   ═══════════════════════════════════ */

/* ── GPU 推理仪表盘终端 ── */
.inference-body { height: 460px !important; overflow-y: auto; }

/* ── 策略监控终端 ── */
.strategy-body { height: 460px !important; overflow-y: auto; }

/* ── 风控审计终端 ── */
.audit-body { height: 460px !important; overflow-y: auto; }

/* 表格网格行 */
.strat-grid-row {
  display: flex; flex-wrap: nowrap; gap: 6px;
  padding: 3px 0;
  line-height: 1.9;
  font-size: 13px;
  transition: background 0.2s;
}
.strat-grid-row:hover {
  background: rgba(57,186,230,0.05);
}

.strat-cell {
  flex-shrink: 0; overflow: hidden; white-space: nowrap;
  font-family: "SF Mono","Menlo","Monaco","Courier New",monospace;
}

/* 策略名称列 —— 非等宽字体，保持可读性 */
.strat-cell:nth-child(2) {
  font-family: "PingFang SC","SF Pro Display","Helvetica Neue",sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* 快速闪烁（LIVE 状态灯） */
.term-blink-fast {
  animation: blinkFast 0.8s step-end infinite;
  color: #7fd962;
}
@keyframes blinkFast { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════
   暗色主题 — 技术后台沉浸感
   作用域：body.sys-dark（仅 system-v2 页面）
   ═══════════════════════════════════ */

/* ── CSS 变量覆写 ── */
.sys-dark {
  --bg: #0a0e14;
  --bg-soft: #0d1117;
  --bg-card: #131a24;
  --text: #e8edf5;
  --text-secondary: #9ca3b0;
  --text-muted: #6b7280;
  --border: #1e2a3a;
  --border-soft: #182230;
  --blue-light: rgba(59,130,246,0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.30);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.40);
  --ink: #e8edf5;
}

/* ── HTML / Body ── */
.sys-dark { background: #0a0e14; color: #e8edf5; }
/* 覆盖 style.css 里 body 的背景和文字 */
html:has(.sys-dark) { background: #0a0e14; }

/* ── 导航栏 ── */
.sys-dark .nav {
  background: rgba(10,14,20,0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.sys-dark .nav.scrolled {
  border-bottom-color: #1e2a3a;
  background: rgba(10,14,20,0.92);
}
.sys-dark .nav-logo { color: #e8edf5; }
.sys-dark .nav-logo:hover { color: #fff; }
.sys-dark .nav-logo-img { filter: brightness(0) invert(1); }
.sys-dark .nav-links a { color: #9ca3b0; }
.sys-dark .nav-links a:hover { color: #e8edf5; background: rgba(255,255,255,0.04); }
.sys-dark .nav-links a.active { color: #fff; background: var(--blue); }
.sys-dark .nav-links a.active:hover { color: #fff; }
.sys-dark .nav-cta { background: #e8edf5; color: #0a0e14; }
.sys-dark .nav-cta:hover { background: #fff; color: #000; }
.sys-dark .nav-toggle span { background: #e8edf5; }

/* 移动端导航展开 */
.sys-dark .nav-links.open {
  background: #0f141d; border-bottom-color: #1e2a3a;
}

/* ── Hero ── */
.sys-dark .hero-badge { background: rgba(59,130,246,0.12); color: #60a5fa; }
.sys-dark .hero-title { color: #e8edf5; }
.sys-dark .hero-subtitle { color: #9ca3b0; }
/* 暗底上光环更亮 */
.sys-dark .hero-orb.orb-1 { background: radial-gradient(circle, rgba(59,130,246,0.35) 0%, transparent 70%); }
.sys-dark .hero-orb.orb-3 { background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 70%); }

/* ── 按钮 ── */
.sys-dark .btn-primary { background: #e8edf5; color: #0a0e14; }
.sys-dark .btn-primary:hover { background: #fff; color: #000; }
.sys-dark .btn-outline { color: #e8edf5; border-color: #374151; }
.sys-dark .btn-outline:hover { border-color: #e8edf5; background: rgba(255,255,255,0.04); color: #fff; }

/* ── Section ── */
.sys-dark .section-title { color: #e8edf5; }
.sys-dark .section-desc { color: #9ca3b0; }
.sys-dark .section-alt { background: transparent; }

/* ── 分割线 ── */
.sys-dark .divider { background: #1a2432; }

/* ── 卡片 ── */
.sys-dark .card {
  overflow: hidden;
  background: linear-gradient(175deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.04),
    0 2px 10px rgba(0,0,0,0.20);
  transition: all 0.4s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
/* 卡片顶部光条 — 玻璃反射感 */
.sys-dark .card::after {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  z-index: 2; pointer-events: none;
  border-radius: 0 0 50% 50%;
}
/* 光条扫过 */
.sys-dark .card::before {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.03) 20%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.10) 60%,
    rgba(255,255,255,0.03) 80%,
    transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1; pointer-events: none;
}
.sys-dark .card:hover::before {
  left: 120%;
}
.sys-dark .card:hover {
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    0 0 28px rgba(59,130,246,0.10),
    0 0 60px rgba(59,130,246,0.04),
    0 8px 32px rgba(0,0,0,0.45);
  transform: translateY(-6px);
}
.sys-dark .card-icon.blue  { background: rgba(59,130,246,0.12); color: #60a5fa; }
.sys-dark .card-icon.gray  { background: rgba(255,255,255,0.05); color: #9ca3b0; }
.sys-dark .card-icon.indigo { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.sys-dark .card-icon.green { background: rgba(52,211,153,0.10); color: #34d399; }
.sys-dark .card-title { color: #f0f4ff; }
.sys-dark .card-desc { color: #bcc3d0; }
/* hover 时保持暗色可读（覆盖 style.css 里深色 hover 文字/图标） */
.sys-dark .card:hover .card-title { color: #f0f4ff; }
.sys-dark .card:hover .card-desc { color: #bcc3d0; }
.sys-dark .card:hover .card-icon.blue  { color: #60a5fa; }
.sys-dark .card:hover .card-icon.gray  { color: #9ca3b0; }
.sys-dark .card:hover .card-icon.indigo{ color: #a5b4fc; }
.sys-dark .card:hover .card-icon.green { color: #34d399; }

/* ── Feature 卡片 ── */
.sys-dark .feature-card:hover { border-color: #2a3a52; }
.sys-dark .feature-card .feature-num { color: #1a2432; }
.sys-dark .feature-card .feature-title { color: #e8edf5; }
.sys-dark .feature-card .feature-desc { color: #9ca3b0; }

/* ── 指标 ── */
.sys-dark .metric-value { color: #e8edf5; }
.sys-dark .metric-value.hl { color: #60a5fa; }
.sys-dark .metric-label { color: #9ca3b0; }
.sys-dark .metric-sub { color: #6b7280; }

/* ── 架构图 ── */
.sys-dark .arch-node { background: var(--bg-card); }
.sys-dark .arch-arrow { color: #374151; }

/* ── 表格 ── */
.sys-dark .data-table thead th { color: #9ca3b0; border-bottom-color: #1e2a3a; }
.sys-dark .data-table tbody td { color: #9ca3b0; border-bottom-color: #1a2432; }
.sys-dark .data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.sys-dark .data-table .hl { color: #60a5fa; }

/* ── 时间线 ── */
.sys-dark .timeline::before { background: #1e2a3a; }
.sys-dark .timeline-item::before { background: #0a0e14; }
.sys-dark .timeline-title { color: #e8edf5; }
.sys-dark .timeline-desc { color: #9ca3b0; }

/* ── Tag / 标签 ── */
.sys-dark .tag { background: var(--bg-card); border-color: var(--border); color: #9ca3b0; }
.sys-dark .tag:hover { border-color: #60a5fa; color: #e8edf5; background: rgba(59,130,246,0.08); }
.sys-dark .tag.danger { border-color: rgba(248,113,113,0.25); color: #f87171; background: rgba(248,113,113,0.06); }

/* ── CTA Strip ── */
.sys-dark .cta-strip { background: #0f141d; border-color: #1e2a3a; }
.sys-dark .cta-strip .cta-title { color: #e8edf5; }
.sys-dark .cta-strip .cta-desc { color: #9ca3b0; }

/* ── Footer ── */
.sys-dark .footer { background: #0d1117; border-top-color: #1e2a3a; }
.sys-dark .footer-brand { color: #e8edf5; }
.sys-dark .footer-info { color: #6b7280; }
.sys-dark .footer-links a { color: #6b7280; }
.sys-dark .footer-links a:hover { color: #e8edf5; }

/* ── 行情横条 ── */
.sys-dark .ticker-bar { background: #0a0e14; border-bottom-color: #1e2a3a; }
.sys-dark .ticker-item { border-right-color: #1e2a3a; }
.sys-dark .ticker-card:hover { background: rgba(59,130,246,0.06); }
.sys-dark .ticker-symbol { color: #e8edf5; }
.sys-dark .ticker-card-price { color: #9ca3b0; }

/* ── 语言切换 ── */
.sys-dark .lang-current { border-color: #1e2a3a; color: #9ca3b0; }
.sys-dark .lang-current:hover { border-color: #60a5fa; color: #60a5fa; background: rgba(59,130,246,0.08); }
.sys-dark .lang-dropdown { background: #131a24; border-color: #1e2a3a; }
.sys-dark .lang-dropdown button { color: #9ca3b0; }
.sys-dark .lang-dropdown button:hover { background: rgba(59,130,246,0.08); color: #e8edf5; }

/* ── 表单 ── */
.sys-dark .form-input, .sys-dark .form-textarea {
  background: #131a24; border-color: #1e2a3a; color: #e8edf5;
}
.sys-dark .form-input:focus, .sys-dark .form-textarea:focus {
  border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.08);
}
.sys-dark .form-label { color: #9ca3b0; }

/* ── 终端外层卡片 — 从浅灰改为深色，终端融入页面 ── */
.sys-dark .mac-terminal-wrapper {
  background: #0f141d;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.35);
}

/* ── 流水线箭头 — 暗底上稍微亮一点 ── */
.sys-dark .pipe-node-arrow { color: rgba(255,255,255,0.18); }

/* ── Flow break ── */
.sys-dark .flow-stat .flow-val { color: #e8edf5; }
.sys-dark .flow-stat .flow-lbl { color: #6b7280; }

/* ── 详情抽屉已为暗色，无需改动 ── */

/* ── 响应式微调 ── */
@media (max-width: 600px) {
  .sys-dark .mac-terminal-wrapper { padding: 0; }
}
