/* ==========================================================================
   templ 中文官方指南 · 工程工作台设计系统（纯暗色主题）
   - 核心美学：暗夜深空 (Obsidian Void) + 微光漫反射 + 极致纤细边缘 (Hairline)
   - 品牌主色：Go 官方青蓝 (#00add8) + 钛白高光 (#ffffff)
   - 材质层次：0.06~0.1 纤细边框 + 内嵌高光 (Specular Inset) + 玻璃拟态 (Glassmorphism)
   - 排版系统：紧凑字距 (-0.03em) + 高对比度文字 + Tabular 精密数字
   - 交互基因：键盘优先 (⌘K / 1-4 / `) + 胶囊控制器 (Pill Segments) + 微质感反馈
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 调色板与全局设计令牌 (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Linear 深空黑曜石底色体系 (The Linear Void) */
  --bg-app: #08090a;
  --bg-app-subtle: #0d0e12;
  --bg-surface: #101116;
  --bg-surface-elevated: #151720;
  --bg-surface-hover: #1c1e2b;
  --bg-panel: #0b0c10;
  --bg-glass: rgba(13, 14, 18, 0.78);
  --bg-glass-card: rgba(255, 255, 255, 0.02);
  --bg-glass-hover: rgba(255, 255, 255, 0.045);

  /* Linear 极致纤细结构线 (Hairline Borders) */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-active: var(--brand-primary);

  /* 文字对比度体系 (保证对比度 >= 12:1) */
  --text-primary: #f7f8f8;
  --text-secondary: #8a8f98;
  --text-muted: #62666d;
  --text-white: #ffffff;

  /* Go 官方品牌青蓝体系与主题色 (Official Go Cyan) */
  --brand-blue: #00add8;
  --brand-blue-hover: #00bceb;
  --brand-blue-glow: rgba(0, 173, 216, 0.28);
  --brand-blue-subtle: rgba(0, 173, 216, 0.12);
  --linear-brand: #00add8;
  --linear-brand-hover: #00bceb;
  --linear-brand-glow: rgba(0, 173, 216, 0.28);
  --linear-brand-subtle: rgba(0, 173, 216, 0.12);
  --brand-primary: #00add8;
  --brand-hover: #00bceb;
  --brand-glow: rgba(0, 173, 216, 0.28);
  --brand-subtle: rgba(0, 173, 216, 0.12);
  --brand-accent: #00add8;
  /* 实心品牌底上的墨色文字：暗色主题下亮青底配深墨字保证 AA 对比 */
  --brand-ink: #062b33;

  /* 辅助状态色 (严谨状态反馈) */
  --accent-green: #30d158;
  --accent-green-subtle: rgba(48, 209, 88, 0.12);
  --accent-amber: #ff9f0a;
  --accent-amber-subtle: rgba(255, 159, 10, 0.12);
  --accent-red: #ff453a;

  /* 代码分词系统：克制、雅致、以 Go Cyan 与中性灰阶为主 */
  --code-bg: #07080b;
  --code-text: #e2e8f0;
  --syn-kw: #00add8;   /* 品牌青蓝关键字 */
  --syn-fn: #f1f5f9;   /* 纯净白灰函数 */
  --syn-str: #7dd3fc;  /* 柔和浅青字符串 */
  --syn-type: #cbd5e1; /* 中性白灰类型 */
  --syn-tag: #00add8;  /* HTML 标签青蓝 */
  --syn-attr: #94a3b8; /* 次要属性灰 */
  --syn-comm: #475569; /* 注释暗灰 */

  /* 字体族 */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Linear 标志性多层微阴影与高光 (Specular Top Light) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  --shadow-cockpit: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 100px -20px rgba(0, 0, 0, 0.95);
  --specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);

  /* 几何圆角 */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* 丝滑缓动 */
  --ease-linear: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --t-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* --------------------------------------------------------------------------
   2. 基础重置与环境光幕 (Linear Environment Atmosphere)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: -0.015em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Linear 核心微光扩散背景天顶 (Ambient Radial Nebula) */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 500px;
  background: radial-gradient(circle 600px at 50% -120px, rgba(0, 173, 216, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shell-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* 键盘可达：统一焦点环 */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* 跳转主内容链接（Tab 首个可达） */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--brand-primary);
  color: var(--brand-ink);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
}

/* 锚点定位避开吸顶导航 */
section[id], main[id] {
  scroll-margin-top: 4.5rem;
}

/* 动效降级：前庭敏感用户获得静态页面 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 低透明度偏好：玻璃导航回退实底 */
@media (prefers-reduced-transparency: reduce) {
  .app-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-app);
  }
}

code, kbd {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
   标准触感按钮系统 (Tactile Button Architecture)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all var(--t-fast);
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.96); /* better-ui 触感微反馈 */
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.775rem;
  border-radius: var(--radius-xs);
}

.btn-primary {
  background: var(--linear-brand);
  color: var(--brand-ink);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--linear-brand-hover);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px var(--linear-brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--specular-top);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #ffffff;
}
/* --------------------------------------------------------------------------
   3. 顶部微光应用导航栏 (Linear Top Navigation Bar)
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-track {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* 品牌区 */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-emblem {
  height: 20px;
  width: auto;
  border-radius: 4px;
  filter: drop-shadow(0 2px 8px var(--linear-brand-glow));
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Linear 标志性浮动胶囊控制器 (Segmented Mode Selector) */
.view-mode-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  box-shadow: var(--specular-top);
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mode-tab.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), var(--specular-top);
}

/* 工具栏与外链 */
.header-util-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--t-fast);
}

.util-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.util-btn kbd {
  font-size: 0.65rem;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.util-btn.icon-only {
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* 白色胶囊按钮 (Signature White Pill) */
.cta-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #08090a;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all var(--t-fast);
}

.cta-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cta-pill-btn:active {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .header-track {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .search-label {
    display: none;
  }
}

@media (max-width: 900px) {
  .mode-tab {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .version-tag {
    display: none;
  }
  .cta-pill-btn span {
    display: none;
  }
}

@media (max-width: 680px) {
  /* 窄屏：头部两行布局，品牌行 + 视图切换行，保证工作台导航可达 */
  .app-header {
    height: auto;
  }

  .header-track {
    flex-wrap: wrap;
    padding: 8px 1rem;
    row-gap: 6px;
  }

  .brand-cluster {
    flex: 1;
  }

  .header-util-group {
    gap: 0.35rem;
  }

  .search-trigger kbd {
    display: none;
  }

  .search-trigger .search-label {
    display: none;
  }

  .term-toggle-btn span {
    display: none;
  }

  .util-btn {
    padding: 5px 8px;
  }

  .view-mode-selector {
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .view-mode-selector::-webkit-scrollbar {
    display: none;
  }

  .mode-tab {
    white-space: nowrap;
    flex: 1 0 auto;
  }
}
/* --------------------------------------------------------------------------
   4. Linear 风格英雄区 (Linear Hero Section)
   -------------------------------------------------------------------------- */
.hero-executive {
  padding: 4.5rem 0 3rem 0;
  position: relative;
}

.hero-linear-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 高光主标题 */
.executive-headline-block {
  max-width: 860px;
  margin: 0 auto;
}

.linear-gradient-title {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
}
.main-subtext {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 2rem auto;
  text-wrap: balance;
}

/* Linear 核心行动条 (CTA Cluster) */
.linear-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-linear-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #08090a;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all var(--t-fast);
}

.btn-linear-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.icon-linear-arrow {
  transition: transform var(--t-fast);
}
.btn-linear-primary:hover .icon-linear-arrow {
  transform: translateX(3px);
}

.linear-install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 14px 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  box-shadow: var(--specular-top);
}

.box-prompt {
  font-family: var(--font-mono);
  color: var(--linear-brand);
  font-weight: 700;
  user-select: none;
}

.box-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.box-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: all var(--t-fast);
}

.box-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Linear 权威指标条 (Metrics Strip) */
.executive-meta-ribbon {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-link {
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.meta-link:hover {
  color: var(--text-primary);
}

.font-accent {
  color: var(--accent-green);
  font-weight: 600;
}

.meta-divider {
  opacity: 0.3;
  user-select: none;
}

/* --------------------------------------------------------------------------
   5. Linear 核心交互式驾驶舱 (The Cockpit Stage)
   -------------------------------------------------------------------------- */
.cockpit-section {
  padding: 1.5rem 0 4rem 0;
}

.cockpit-frame {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-cockpit);
  overflow: hidden;
}

/* Linear 标志性顶部单像素高光拉丝 (Edge Shine Line) */
.cockpit-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(0, 173, 216, 0.7) 50%, rgba(255, 255, 255, 0.35) 70%, transparent);
  z-index: 10;
  pointer-events: none;
}

/* 驾驶舱顶部状态机条 */
.cockpit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.cockpit-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.crumb-active {
  color: var(--text-primary);
  font-weight: 600;
}

.cockpit-status-readouts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cockpit-status-readouts strong {
  color: var(--text-secondary);
}

.text-green {
  color: var(--accent-green) !important;
}

/* 面板切换控制 */
.cockpit-panel {
  display: none;
  animation: fadeIn 0.2s var(--ease-linear);
}
.cockpit-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. 模式 1: 交互式工坊 (Studio Workbench)
   -------------------------------------------------------------------------- */
.studio-workbench {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  min-height: 480px;
  background: var(--bg-surface);
}

@media (max-width: 1024px) {
  .studio-workbench {
    grid-template-columns: 1fr;
  }
}

/* 左侧文件树 */
.studio-file-tree {
  border-right: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0.5rem;
}

.tree-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem 0.6rem 0.5rem;
}

.tree-nodes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.tree-node:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tree-node.active {
  color: var(--text-white);
  background: var(--linear-brand-subtle);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

/* 中间编辑器区域 */
.studio-editor-area {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--code-bg);
  position: relative;
}

.editor-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.pane-tab-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lsp-hover-hint {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.mini-tool-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.mini-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.editor-code-container {
  display: flex;
  flex: 1;
  padding: 1rem 0;
  overflow-x: auto;
  position: relative;
}

.editor-gutter {
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 12px;
  user-select: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  opacity: 0.5;
}

.studio-code-pre {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.7;
  color: var(--code-text);
  overflow-x: auto;
  padding-right: 1.5rem;
}

/* 语法分词颜色 */
.syn-kw { color: var(--syn-kw); font-weight: 600; }
.syn-fn { color: var(--syn-fn); }
.syn-str { color: var(--syn-str); }
.syn-type { color: var(--syn-type); }
.syn-tag { color: var(--syn-tag); }
.syn-attr { color: var(--syn-attr); }
.syn-comm { color: var(--syn-comm); font-style: italic; }

/* 悬浮的真实 LSP 信息浮窗 (Simulated LSP Tooltip) */
.lsp-floating-card {
  position: absolute;
  top: 75px;
  left: 110px;
  z-index: 50;
  width: 320px;
  background: rgba(18, 19, 26, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--linear-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 20px var(--linear-brand-glow);
  padding: 0.75rem 1rem;
  display: none;
  animation: fadeIn 0.15s var(--ease-linear);
}

.lsp-floating-card.visible {
  display: block;
}

.lsp-type-sig {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #7dd3fc;
  font-weight: 600;
}

.lsp-card-doc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.5rem 0;
}

.lsp-card-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.35rem;
}

/* 右侧预览区域 */
.studio-preview-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.preview-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-mode-toggles {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: var(--radius-sm);
}

.preview-sub-tab {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.preview-sub-tab:hover {
  color: var(--text-primary);
}

.preview-sub-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-weight: 500;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.preview-sub-panel {
  display: none;
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
}

.preview-sub-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rendered-frame-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.compiled-go-pre, .raw-html-pre {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   7. 模式 2: 全流程任务流水线 (DAG Pipeline Workbench)
   -------------------------------------------------------------------------- */
.dag-workbench {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  background: var(--bg-surface);
}

.dag-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.dag-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dag-title-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dag-title-tag-row h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.dag-stats-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-subtle);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

.dag-title-block p {
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin: 0;
}

.dag-controls-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dag-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.legend-chip {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.legend-separator {
  color: var(--border-subtle);
  font-size: 0.75rem;
  margin: 0 2px;
}

.legend-indicator {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.legend-indicator.ind-up {
  background: var(--brand-subtle);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

.legend-indicator.ind-down {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px dashed var(--border-strong);
}
.legend-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.chip-build,
.chip-gen,
.chip-test,
.chip-rel,
.chip-generate,
.chip-release {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.dag-pipeline-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 左右分栏布局与画布 */
.dag-split-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  flex: 1;
  min-height: 520px;
}

@media (max-width: 960px) {
  .dag-split-layout {
    grid-template-columns: 1fr;
  }
}

.dag-graph-canvas {
  padding: 1.5rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-x: auto;
  background: var(--bg-surface);
}

.dag-stage {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--specular-top);
  transition: all var(--t-fast);
}

.dag-stage:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.stage-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.stage-flow-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.725rem;
}

.flow-arrow-down {
  font-size: 0.9rem;
  color: var(--linear-brand);
  opacity: 0.8;
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.flow-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* 分支与子群组排版 */
.stage-branches-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-branch-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.branch-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 75px;
  padding-right: 8px;
  border-right: 1px solid var(--border-subtle);
}

.branch-nodes-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.stage-subgroups-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stage-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.subgroup-title {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
}

.stage-nodes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dag-connector-line {
  color: var(--text-muted);
  font-size: 0.95rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  user-select: none;
}

/* 精密 DAG 节点设计 */
.dag-node {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: all var(--t-fast);
  min-width: 130px;
  box-shadow: var(--shadow-sm);
  user-select: none;
  position: relative;
}

.dag-node:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-md);
}

.node-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.node-id {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

.node-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.node-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all var(--t-fast);
}

.featured-indicator-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--brand-subtle);
  color: var(--brand-primary);
  font-weight: 600;
  border: 1px solid rgba(0, 173, 216, 0.25);
}

.node-featured {
  border-color: rgba(0, 173, 216, 0.25);
}

/* 节点高级交互高亮态 (Graph Traceability) */
.dag-node.active,
.dag-node.node-focused {
  border-color: var(--brand-primary) !important;
  background: var(--brand-subtle) !important;
  box-shadow: 0 0 16px var(--brand-glow), inset 0 0 0 1px var(--brand-primary) !important;
  transform: translateY(-2px);
  opacity: 1 !important;
}

.dag-node.active .node-id,
.dag-node.node-focused .node-id {
  color: var(--text-primary);
}

.dag-node.active .node-meta,
.dag-node.node-focused .node-meta {
  color: var(--brand-primary);
}

.dag-node.node-upstream {
  border-color: var(--brand-primary) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 0 10px var(--brand-glow) !important;
  opacity: 1 !important;
}

.dag-node.node-upstream .node-id {
  color: var(--text-primary);
}

.dag-node.node-upstream .node-meta {
  color: var(--text-secondary);
}

.dag-node.node-downstream {
  border: 1px dashed var(--border-strong) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

.dag-node.node-downstream .node-id {
  color: var(--text-primary);
}

.dag-node.node-downstream .node-meta {
  color: var(--text-muted);
}

.dag-node.node-dimmed {
  opacity: 0.32 !important;
  filter: grayscale(45%);
}

/* 节点执行中与成功完成态 */
.dag-node.status-running {
  border-color: #fba738 !important;
  box-shadow: 0 0 14px rgba(251, 167, 56, 0.4) !important;
  animation: pulseRunning 1.2s infinite ease-in-out;
}

.dag-node.status-running .node-status-dot {
  background: #fba738;
  box-shadow: 0 0 8px #fba738;
}

@keyframes pulseRunning {
  0%, 100% { box-shadow: 0 0 8px rgba(251, 167, 56, 0.3); }
  50% { box-shadow: 0 0 18px rgba(251, 167, 56, 0.7); }
}

.dag-node.status-success {
  border-color: rgba(48, 209, 88, 0.7) !important;
}

.dag-node.status-success .node-status-dot {
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}

/* 侧边检查器 (Sticky Inspector) */
.dag-inspector-panel {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.inspector-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.inspector-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-subtle);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

.node-state-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.node-state-badge.running {
  background: rgba(251, 167, 56, 0.15);
  color: #fba738;
  border: 1px solid rgba(251, 167, 56, 0.4);
}

.node-state-badge.success {
  background: rgba(48, 209, 88, 0.15);
  color: #4ade80;
  border: 1px solid rgba(48, 209, 88, 0.4);
}

.inspector-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  letter-spacing: -0.02em;
}

/* 依赖追踪矩阵 */
.inspector-dep-matrix {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.dep-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dep-block-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dep-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 24px;
  align-items: center;
}

.dep-none-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-style: italic;
}

.dep-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.dep-chip:hover {
  background: var(--linear-brand-subtle);
  border-color: var(--linear-brand);
  color: #ffffff;
}

.dep-chip.up {
  border-color: rgba(0, 173, 216, 0.4);
  color: #7dd3fc;
}

/* 下游解锁：虚线中性描边，与图例语义一致 */
.dep-chip.down {
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

.inspector-subhead {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspector-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.inspector-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.inspector-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.code-lang-label {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--linear-brand);
}

.inspector-code-box {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
}

.inspector-code-box code {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--code-text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.inspector-btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.inspector-btn-row .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
/* --------------------------------------------------------------------------
   8. 模式 3: 性能遥测基准 (Bench Telemetry)
   -------------------------------------------------------------------------- */
.bench-workbench {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.bench-control-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--specular-top);
}

@media (max-width: 900px) {
  .bench-control-bar {
    grid-template-columns: 1fr;
  }
}

.control-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.control-label-row label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.control-num-val {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--linear-brand);
}

.tech-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--linear-brand);
  box-shadow: 0 0 10px var(--linear-brand-glow), 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tech-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--linear-brand);
}

.control-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.stat-k {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-v {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--code-bg);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  color: #7dd3fc;
  border: 1px solid var(--border-subtle);
}

.bench-meters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .bench-meters-grid {
    grid-template-columns: 1fr;
  }
}

.bench-meter-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--specular-top);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meter-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meter-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.meter-badge.speedup {
  background: var(--brand-subtle);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 173, 216, 0.3);
}

.meter-badge.alloc {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.meter-diff-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.meter-target {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.target-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

.target-name {
  color: var(--text-secondary);
}

.meter-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.meter-bar-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-accent {
  background: var(--brand-primary);
}

.bg-green {
  background: var(--accent-green);
}

.bg-muted {
  background: rgba(255, 255, 255, 0.16);
}
.target-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.text-accent {
  color: var(--linear-brand) !important;
}

.meter-footnote {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.bench-takeaway-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--linear-brand-subtle);
  border: 1px solid rgba(0, 173, 216, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
}

@media (max-width: 850px) {
  .bench-takeaway-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.takeaway-ratio-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 0.25rem;
  display: block;
}

.takeaway-text {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.takeaway-stats-row {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.t-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.pill-k {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pill-v {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
/* --------------------------------------------------------------------------
   9. 模式 4: IDE 实机演示 (IDE Live Showcase)
   -------------------------------------------------------------------------- */
.ide-live-workbench {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .ide-live-workbench {
    grid-template-columns: 1fr;
  }
}

.ide-video-frame {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ide-video-topbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot.r { background-color: #ff5f56; }
.mac-dot.y { background-color: #ffbd2e; }
.mac-dot.g { background-color: #27c93f; }

.video-path {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
  margin-left: 0.25rem;
}

.btn-secondary {
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.ide-media-box {
  display: flex;
  justify-content: center;
  background: #000;
}

.ide-gif-display {
  width: 100%;
  height: auto;
  display: block;
}

.ide-milestones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.milestone-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--specular-top);
}

.milestone-block h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.milestone-block p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Linear 风格核心支柱特性矩阵 (Linear Bento Features Grid)
   -------------------------------------------------------------------------- */
.linear-bento-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.linear-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.linear-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--linear-brand);
  margin-bottom: 0.6rem;
}

.linear-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.linear-section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.linear-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .linear-bento-grid {
    grid-template-columns: 1fr;
  }
}

.linear-bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--specular-top);
  display: flex;
  flex-direction: column;
  transition: all var(--t-fast);
}

.linear-bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md), var(--specular-top);
}

.card-content {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-preview-frame {
  margin-top: auto;
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.mock-code-box {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  line-height: 1.6;
}

.mock-stat-badge {
  text-align: center;
  padding: 0.5rem 0;
}

.mock-stat-badge .stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
}

.mock-stat-badge .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-lsp-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7dd3fc;
  padding: 0.5rem 0;
}

/* --------------------------------------------------------------------------
   11. Linear 风格 16 项任务数据表格 (Linear Issue List View)
   -------------------------------------------------------------------------- */
.tasks-table-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.table-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.linear-table-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--linear-brand);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Linear 风格筛选器胶囊 (Filter Pills) */
.table-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.t-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.t-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.t-pill.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), var(--specular-top);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.t-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Linear 表格容器 */
.tasks-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), var(--specular-top);
  overflow-x: auto;
}

.tasks-data-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.tasks-data-table th {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.tasks-data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.linear-issue-row {
  transition: background-color var(--t-fast);
}

.linear-issue-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.linear-issue-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.linear-status-icon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.linear-issue-row:hover .linear-status-icon {
  border-color: var(--brand-primary);
}

.linear-status-icon.status-done {
  border-color: var(--accent-green);
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.linear-status-icon.status-running {
  border-color: var(--brand-primary);
  background-color: transparent;
  border-style: dashed;
}

.t-name-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.linear-tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}
.linear-issue-desc {
  color: var(--text-secondary);
  font-size: 0.825rem;
}

.linear-cmd-snippet {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-secondary);
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linear-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.linear-action-pill {
  padding: 3px 9px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.linear-action-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. 5 分钟上手指南 (Quickstart Grid)
   -------------------------------------------------------------------------- */
.onboarding-section {
  padding: 3.5rem 0 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .onboarding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
}

.onboarding-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--specular-top);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.onboarding-step:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.onboarding-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.onboarding-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.step-code-box {
  margin-top: auto;
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--code-text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-code-box code {
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
}
.step-copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.step-copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-subtle);
}

.step-copy-btn:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   13. 底部实时交互终端抽屉 (Linear Terminal Drawer)
   -------------------------------------------------------------------------- */
.terminal-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  height: 280px;
  transform: translateY(100%);
  transition: transform var(--t-normal);
}

.terminal-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-shortcut-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.drawer-ctrls {
  display: flex;
  gap: 0.5rem;
}

.drawer-btn {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.drawer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.drawer-close {
  font-size: 1rem;
  line-height: 1;
  padding: 0 6px;
}

.drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  overflow: hidden;
}

.terminal-logs {
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
}

.t-line.t-dim { color: var(--text-muted); }
.t-line.t-cmd { color: #38bdf8; font-weight: 600; }
.t-line.t-info { color: #93c5fd; }
.t-line.t-success { color: #4ade80; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

.t-prompt {
  font-family: var(--font-mono);
  color: var(--linear-brand);
  font-weight: 700;
}

.t-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-primary);
  outline: none;
}

.t-send-btn {
  padding: 3px 10px;
  font-size: 0.75rem;
  background: var(--linear-brand);
  color: var(--brand-ink);
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   14. 全局搜索模态框 (Linear ⌘K Palette)
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  border: none;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 500;
}

.search-modal[open] {
  display: flex;
}

.search-modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-medium);
  overflow: hidden;
  animation: fadeIn 0.15s var(--ease-linear);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}

.kbd-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.search-modal-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-hit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin-bottom: 2px;
}

.search-hit-item:hover, .search-hit-item.active {
  background: var(--brand-subtle);
  border-color: rgba(0, 173, 216, 0.25);
}

.hit-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.hit-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hit-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hit-desc {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.hit-cmd-preview {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-primary);
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  margin-top: 2px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hit-right {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.hit-nav-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--t-fast), color var(--t-fast);
}

.search-hit-item.active .hit-nav-arrow,
.search-hit-item:hover .hit-nav-arrow {
  color: var(--brand-primary);
  transform: translateX(3px);
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.75rem;
}

.search-empty-state svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.search-empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.search-hint-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.search-hint-chip {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.search-hint-chip:hover {
  background: var(--brand-subtle);
  border-color: var(--brand-primary);
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   15. 模态大图与 Toast 通知
   -------------------------------------------------------------------------- */
.image-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 600;
}

.image-modal[open] {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-large-gif {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
}

.image-modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  font-size: 1.5rem;
  color: #fff;
}

.modal-image-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--t-fast);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. Linear 风格全站页脚 (Footer)
   -------------------------------------------------------------------------- */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 0 2rem 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 850px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.footer-source-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-source-note a {
  color: var(--linear-brand);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links-col h6 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a, .footer-jump-btn {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  text-align: left;
}

.footer-links-col a:hover, .footer-jump-btn:hover {
  color: var(--text-primary);
}

.footer-copyright {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-pills {
  display: flex;
  gap: 0.5rem;
}

.p-pill {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}
