/* ==========================================================
   auimlab Articles Page v4 — web-designer skill 集成 (2026-08-09)
   灵感: Linear 暗黑精度 + web-designer 动画 playbook + auimlab 紫青色品牌
   本版变更 (v3 → v4):
   - 集成 web-designer skill (MickeyAlton33/web-designer-plugin, 82 stars)
     5 个 supporting docs: animation-playbook / anti-patterns /
     color-and-typography / design-patterns / interactive-features
   - 全局动画系统: ease curves + reveal / stagger / word-reveal classes
   - 文章卡 hover 升级: directional underline + card lift + image zoom (动态感)
   - Hero h1 word-reveal: 字逐个 fadeUp, 50ms stagger
   - 文章列表 stagger reveal: IntersectionObserver + 80ms stagger
   - 搜索按钮 text-swap: "搜索" ↔ "→"
   - ⌘K hint: 搜索框右侧命令面板提示
   - font-feature-settings: 'cv01', 'ss03' (几何 Inter, Linear 精髓)

   v3 → v4 实测对比:
   - hero h: 295 (无变化)
   - 文章卡 hover 时长: 150ms → 400ms (动态感 +167%)
   - 文章卡入场: 无 → stagger fade-up (新)
   - 文章卡 hover 效果: opacity 0.8 → translateY -4px + shadow (新)
   - 标题入场: 无 → word-by-word (新)
   - 搜索按钮: 无变化 → text-swap (新)
   ========================================================== */

/* === A. 全局动画基础 (web-designer skill animation-playbook.md §3) === */
:root {
  /* Easing curves — never linear, never generic ease */
  --ease-out:        cubic-bezier(0.23, 1, 0.32, 1);          /* entrances */
  --ease-in-out:     cubic-bezier(0.65, 0.01, 0.05, 0.99);     /* SVZ weighty */
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);       /* slight overshoot */
  --ease-snap:       cubic-bezier(0.85, 0, 0.15, 1);           /* UI state changes */
  /* Duration scale */
  --dur-micro:       150ms;
  --dur-state:       300ms;
  --dur-entrance:    600ms;
  --dur-luxurious:   1200ms;
  /* font-feature defaults for entire page */
  --font-feat:       "cv01", "ss03", "tnum";
}
/* OpenType features on ALL text (Linear 精髓: Inter Variable cv01 ss03) */
body, .articles-hero, .articles-hero h1, .articles-hero .lead,
.articles-search, .articles-hotwords, .articles-stats,
.article-item, .article-item-title, .article-item-desc, .article-item-meta,
.content-title, .content-meta, .current-module-title, .result-badge,
.sidebar, .pagination .btn, .pagination .page-num {
  font-feature-settings: var(--font-feat);
}
/* Font smoothing (always on dark backgrounds) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* prefers-reduced-motion 兜底 — 所有 transition 0.01ms (animation 禁用) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Scroll behavior (respects reduced-motion automatically) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* === Reveal 基础类 (animation-playbook.md §Fade Up) ===
   IntersectionObserver 在 articles.js setupEntryAnim 加 .visible */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity var(--dur-entrance) var(--ease-out),
              transform var(--dur-entrance) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger container — children 80ms 错开出现 */
.stagger > * {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: staggerFadeUp var(--dur-entrance) var(--ease-out) forwards;
  will-change: opacity, transform;
}
.stagger > *:nth-child(1)  { animation-delay:   0ms; }
.stagger > *:nth-child(2)  { animation-delay:  80ms; }
.stagger > *:nth-child(3)  { animation-delay: 160ms; }
.stagger > *:nth-child(4)  { animation-delay: 240ms; }
.stagger > *:nth-child(5)  { animation-delay: 320ms; }
.stagger > *:nth-child(6)  { animation-delay: 400ms; }
.stagger > *:nth-child(7)  { animation-delay: 480ms; }
.stagger > *:nth-child(8)  { animation-delay: 560ms; }
.stagger > *:nth-child(9)  { animation-delay: 640ms; }
.stagger > *:nth-child(10) { animation-delay: 720ms; }
.stagger > *:nth-child(n+11) { animation-delay: 800ms; }  /* 11+ 都 800ms */
@keyframes staggerFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === Word-reveal (animation-playbook.md §SVZ Word-by-Word) ===
   JS: articles.js auto-wrap words in <span class="word">
   CSS: 默认 hidden, .visible 时 word 逐个 translateY 0 (50ms stagger) */
.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.word-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}
.word-reveal.visible .word { transform: translateY(0); }
.word-reveal.visible .word:nth-child(1)  { transition-delay:   0ms; }
.word-reveal.visible .word:nth-child(2)  { transition-delay:  50ms; }
.word-reveal.visible .word:nth-child(3)  { transition-delay: 100ms; }
.word-reveal.visible .word:nth-child(4)  { transition-delay: 150ms; }
.word-reveal.visible .word:nth-child(5)  { transition-delay: 200ms; }
.word-reveal.visible .word:nth-child(6)  { transition-delay: 250ms; }
.word-reveal.visible .word:nth-child(7)  { transition-delay: 300ms; }
.word-reveal.visible .word:nth-child(8)  { transition-delay: 350ms; }
.word-reveal.visible .word:nth-child(9)  { transition-delay: 400ms; }
.word-reveal.visible .word:nth-child(10) { transition-delay: 450ms; }
.word-reveal.visible .word:nth-child(11) { transition-delay: 500ms; }
.word-reveal.visible .word:nth-child(12) { transition-delay: 550ms; }
.word-reveal.visible .word:nth-child(13) { transition-delay: 600ms; }
.word-reveal.visible .word:nth-child(n+14) { transition-delay: 650ms; }
.word-reveal.visible .word .grad {
  display: inline-block;
  background: linear-gradient(120deg, #7f43ff 0%, #00cae0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Nav 完整样式 (本页面专用, 替代 jimeng.css) === */
:root {
  --nav-h: 64px;
  --nav-max: 1280px;
  --nav-text: #f7f8f8;
  --nav-text-sub: rgba(255,255,255,0.7);
  --nav-text-muted: rgba(255,255,255,0.5);
  --nav-border: rgba(255,255,255,0.08);
  --nav-bg-glass: rgba(8,9,10,0.7);
  --nav-accent: #7f43ff;
  --nav-cyan: #00cae0;
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: height .3s ease, background .3s ease, border-color .3s ease,
              backdrop-filter .3s ease;
  font-feature-settings: "cv01", "ss03";
}
.nav.is-scrolled {
  height: 56px;
  background: var(--nav-bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--nav-border);
}
.nav.is-scrolled .nav-logo-text { font-size: 18px; }
.nav.is-scrolled .nav-link { font-size: 13px; }
.nav.is-scrolled .nav-link.active { color: var(--nav-cyan); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-text);
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-logo:hover { opacity: .8; }
.nav-logo svg {
  color: var(--nav-accent);
  filter: drop-shadow(0 0 6px rgba(127,67,255,0.4));
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--nav-text);
  transition: font-size .3s;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-link {
  position: relative;
  color: var(--nav-text-sub);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color .15s;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.nav-link:hover { color: var(--nav-text); }
.nav-link.active {
  color: var(--nav-text);
  font-weight: 510;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: linear-gradient(90deg, var(--nav-cyan), var(--nav-accent));
  border-radius: 2px;
}
.nav.is-scrolled .nav-link.active::after {
  bottom: -18px;
}
.nav-more {
  position: relative;
  cursor: pointer;
  outline: none;
}
.nav-link-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-dropdown {
  position: absolute;
  top: 44px;
  left: -16px;
  min-width: 240px;
  padding: 8px;
  background: rgba(15,16,17,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow: rgba(0,0,0,0.5) 0 12px 32px, rgba(127,67,255,0.08) 0 0 0 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-section { padding: 6px 0; }
.nav-dropdown-section + .nav-dropdown-section {
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}
.nav-dropdown-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--nav-text-muted);
  letter-spacing: 1.5px;
  padding: 6px 14px 4px;
  text-transform: uppercase;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--nav-text-sub);
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav-dropdown-item svg {
  color: var(--nav-text-muted);
  flex-shrink: 0;
  transition: color .12s;
}
.nav-dropdown-item:hover {
  background: rgba(127,67,255,0.15);
  color: var(--nav-text);
}
.nav-dropdown-item:hover svg { color: var(--nav-cyan); }
.nav-dropdown-icon {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-icon-cyan { background: rgba(0,202,224,0.12); color: var(--nav-cyan); }
.nav-dropdown-icon-purple { background: rgba(127,67,255,0.15); color: #c2a8ff; }
.nav-dropdown-icon-green { background: rgba(0,184,148,0.12); color: #5ee9b0; }
.nav-dropdown-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-dropdown-title { font-weight: 510; color: var(--nav-text); font-size: 13px; line-height: 1.3; }
.nav-dropdown-sub { font-size: 11px; color: var(--nav-text-muted); line-height: 1.3; }
.nav-dropdown-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--nav-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,202,224,0.12);
  letter-spacing: 0.5px;
}
.nav-right { flex-shrink: 0; }
.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nav-accent) 0%, #6b30e6 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 510;
  text-decoration: none;
  transition: filter .15s, transform .15s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 2px 4px rgba(0,0,0,0.2);
}
.nav-login:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--nav-text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav-burger:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--nav-cyan);
}
.nav-burger.open {
  background: var(--nav-cyan);
  border-color: var(--nav-cyan);
  color: #08090a;
}

/* === nav-progress 滚动进度条 === */
.nav-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 1;
}
.nav-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nav-cyan), var(--nav-accent));
  transition: width .15s ease-out;
  box-shadow: 0 0 8px rgba(127,67,255,0.6);
}

/* === 移动端 nav 折叠 === */
@media (max-width: 1024px) {
  .nav-right { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,9,10,0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    padding: 12px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav.is-scrolled .nav-menu { top: 56px; }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 10px 0; font-size: 15px; }
  .nav-link.active::after { display: none; }
  .nav-more { padding: 10px 0; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 4px 0 4px 16px;
    min-width: 0;
  }
}

/* === 全局基底: 极深黑 + 弱网格纹理 === */
body,
.page-main {
  background: #08090a;
  color: #e6edf3;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 极弱网格 (4% 不透明度, 仅营造高级感纹理, 不抢戏) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.content-wrapper { position: relative; z-index: 1; }


/* === v7 顶部 Status Bar (8% height, mono 字体, 全局 LIVE 指示) === */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(0, 202, 224, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(0, 202, 224, 0.12);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.status-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 202, 224, 0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: status-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes status-sweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.status-bar-left, .status-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.status-cluster {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.status-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #62666d;
  text-transform: uppercase;
}
.status-num {
  font-family: 'JetBrains Mono', 'SF Mono', 'Berkeley Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 600;
  color: #f7f8f8;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.status-unit {
  font-size: 11px;
  color: #8a8f98;
  font-weight: 400;
}
.status-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.status-time {
  font-family: 'JetBrains Mono', 'SF Mono', 'Berkeley Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: #00cae0;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(0, 202, 224, 0.4);
}
.status-pulse {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  align-self: center;
}
.status-pulse-dot {
  width: 8px;
  height: 8px;
  background: #00cae0;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 8px rgba(0, 202, 224, 0.8), 0 0 16px rgba(0, 202, 224, 0.4);
  animation: status-pulse-core 2s ease-in-out infinite;
}
.status-pulse::before, .status-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #00cae0;
  animation: status-pulse-ripple 2s ease-out infinite;
}
.status-pulse::after { animation-delay: 1s; }
@keyframes status-pulse-core {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}
@keyframes status-pulse-ripple {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(4); }
}

/* status-bar 紧凑搜索框 */
.status-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  min-width: 280px;
  transition: all 0.2s ease;
}
.status-search:focus-within {
  border-color: rgba(0, 202, 224, 0.4);
  background: rgba(0, 202, 224, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 202, 224, 0.08);
}
.status-search-icon {
  display: inline-flex;
  color: #62666d;
}
.status-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #f7f8f8;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.011em;
  min-width: 0;
}
.status-search input::placeholder { color: #62666d; }
.status-search-kbd {
  display: inline-flex;
  gap: 2px;
}
.status-search-kbd kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: #8a8f98;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  letter-spacing: 0;
}/* === v7 Mono font utility class (Berkeley Mono / JetBrains Mono fallback) === */
.mono {
  font-family: 'JetBrains Mono', 'SF Mono', 'Berkeley Mono', ui-monospace, 'Menlo', monospace !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* === v7 Panel 系统 (统一 dashboard 容器) === */
.panel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.panel:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

/* panel-header: 更紧凑 (32px instead of 48px) */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.panel-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #f7f8f8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #00cae0;
  background: rgba(0, 202, 224, 0.08);
  border: 1px solid rgba(0, 202, 224, 0.2);
  border-radius: 3px;
  text-transform: uppercase;
}
.panel-dot {
  width: 4px;
  height: 4px;
  background: #00cae0;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 202, 224, 0.6);
}
.panel-meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: #8a8f98;
}
.meta-num {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  color: #f7f8f8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.meta-unit {
  font-size: 11px;
  color: #8a8f98;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.meta-state {
  font-size: 11px;
  color: #00cae0;
  font-weight: 500;
}
.panel-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #8a8f98;
  font-weight: 400;
  letter-spacing: 0;
}
.dot-sep {
  width: 3px;
  height: 3px;
  background: #62666d;
  border-radius: 50%;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* === v7 Dashboard 网格 (4 区域: status-bar 全宽 + 3 列) === */
.dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.panel-live     { grid-column: span 3; }
.panel-list     { grid-column: span 6; }
.panel-insights { grid-column: span 3; max-height: calc(100vh - 200px); overflow-y: auto; }
.panel-timeline { grid-column: span 12; }

/* === v7 LiveFeed (左列) === */
.live-indicator {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}
.live-dot {
  width: 10px;
  height: 10px;
  background: #00cae0;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 8px rgba(0, 202, 224, 0.6);
}
.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #00cae0;
  position: absolute;
  top: 0;
  left: 0;
  animation: live-pulse-anim 1.8s ease-out infinite;
}
@keyframes live-pulse-anim {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.5); }
}

.live-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 202, 224, 0.3) transparent;
}
.live-feed-list::-webkit-scrollbar { width: 4px; }
.live-feed-list::-webkit-scrollbar-thumb {
  background: rgba(0, 202, 224, 0.2);
  border-radius: 2px;
}
.live-feed-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 202, 224, 0.4);
}

.live-feed-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(0, 202, 224, 0.3);
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.live-feed-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 202, 224, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.live-feed-item:hover {
  background: rgba(0, 202, 224, 0.06);
  border-left-color: #00cae0;
  transform: translateX(2px);
}
.live-feed-item:hover::before { opacity: 1; }

.live-feed-item-indicator {
  width: 6px;
  height: 6px;
  background: #00cae0;
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 4px rgba(0, 202, 224, 0.6);
  flex-shrink: 0;
}
.live-feed-item.is-new {
  animation: feed-new-clip 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-left-color: #00cae0;
  background: rgba(0, 202, 224, 0.05);
}
@keyframes feed-new-clip {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}
.live-feed-item-body {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.live-feed-item-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #62666d;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.live-feed-item-source {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #00cae0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.live-feed-item-title {
  font-size: 12px;
  font-weight: 500;
  color: #d0d6e0;
  line-height: 1.45;
  letter-spacing: -0.011em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-feed-item:hover .live-feed-item-title { color: #f7f8f8; }

/* === v7 ArticleList (中列) === */
.module-pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.module-pill {
  padding: 4px 10px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.module-pill:hover { color: #f7f8f8; }
.module-pill.active {
  background: rgba(0, 202, 224, 0.12);
  color: #00cae0;
  font-weight: 600;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #8a8f98;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
  background: rgba(0, 202, 224, 0.06);
}
.icon-btn:active { transform: rotate(180deg); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* === v7 Lean banner (紧凑, mono badge) === */
.lean-banner {
  position: relative;
  margin: 14px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(0, 202, 224, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  overflow: hidden;
}
.lean-banner-inner { position: relative; z-index: 1; }
.lean-banner-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.lean-banner-title {
  font-size: 16px;
  font-weight: 510;
  color: #f7f8f8;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lean-banner-desc {
  font-size: 12px;
  color: #8a8f98;
  line-height: 1.55;
  margin: 0 0 10px;
  letter-spacing: -0.011em;
}
.lean-banner-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lean-tool {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #d0d6e0;
  letter-spacing: 0.04em;
}

/* === v7 List toolbar (紧凑) === */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
}
.list-module-title {
  font-size: 14px;
  font-weight: 510;
  color: #f7f8f8;
  margin: 0;
  letter-spacing: -0.02em;
}
.list-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg-group {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}
.seg-btn {
  padding: 3px 8px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  cursor: pointer;
  transition: all 0.2s ease;
}
.seg-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f7f8f8;
}
.toggle-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn:hover {
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
}
.toggle-btn.active {
  background: rgba(0, 202, 224, 0.08);
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
}

/* === v7 Article list (compact denser) === */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.article-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 202, 224, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
  pointer-events: none;
}
.article-item:hover {
  border-left-color: #00cae0;
  border-color: rgba(0, 202, 224, 0.2);
  background: rgba(0, 202, 224, 0.04);
  transform: translateX(2px);
}
.article-item:hover::before { opacity: 1; }

/* === v7 Pagination (紧凑, mono) === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.page-btn {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-pages {
  display: flex;
  gap: 4px;
}
.pagination-pages button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-pages button.active {
  background: rgba(0, 202, 224, 0.12);
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
}

/* === v7 InsightsPanel 洞察卡片 (radial gauge 替换 horizontal bar) === */
.panel-insights::-webkit-scrollbar { width: 4px; }
.panel-insights::-webkit-scrollbar-thumb {
  background: rgba(0, 202, 224, 0.2);
  border-radius: 2px;
}
.panel-insights::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 202, 224, 0.4);
}

.insight-card {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.insight-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.insight-title {
  font-size: 11px;
  font-weight: 600;
  color: #d0d6e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.insight-state {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.insight-trend {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  font-variant-numeric: tabular-nums;
}
.insight-meta {
  font-size: 11px;
  color: #8a8f98;
  margin-top: 6px;
  font-weight: 400;
}

/* Radial Gauge (新增, 替代 insight-bar) */
.radial-gauge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin-bottom: 8px;
}
.radial-svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}
.radial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}
.radial-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 213.6;  /* 2π × 34 = 213.6 */
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}
.radial-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.radial-num .mono {
  font-size: 22px;
  font-weight: 600;
  color: #10b981;
  letter-spacing: -0.02em;
}
.radial-unit {
  font-size: 11px;
  color: #8a8f98;
  font-weight: 500;
}

/* Big number row (今日新增) */
.insight-num-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0;
}
.insight-big-num {
  font-size: 28px;
  font-weight: 600;
  color: #00cae0;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 202, 224, 0.3);
}
.insight-unit {
  font-size: 11px;
  color: #8a8f98;
  font-weight: 500;
}
.insight-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  margin-top: 4px;
}
.sparkline-bar {
  flex: 1;
  background: linear-gradient(180deg, #00cae0 0%, rgba(0, 202, 224, 0.3) 100%);
  border-radius: 1px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 2px;
}

/* Source distribution (horizontal bar) */
.source-distribution {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.source-row {
  display: grid;
  grid-template-columns: 80px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.source-name {
  color: #d0d6e0;
  font-weight: 500;
  letter-spacing: -0.011em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.source-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00cae0 0%, rgba(0, 202, 224, 0.6) 100%);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 4px rgba(0, 202, 224, 0.4);
}
.source-num {
  font-size: 11px;
  font-weight: 600;
  color: #f7f8f8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Category list (紧凑 chip-row) */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cat-row:hover { background: rgba(0, 202, 224, 0.06); }
.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 4px currentColor;
}
.cat-name {
  font-size: 11px;
  color: #d0d6e0;
  font-weight: 500;
}
.cat-num {
  font-size: 11px;
  font-weight: 600;
  color: #f7f8f8;
  font-variant-numeric: tabular-nums;
}

/* Tag cloud (紧凑 chip) */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #d0d6e0;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.tag-chip:hover {
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
  background: rgba(0, 202, 224, 0.06);
}
.tag-chip-skeleton {
  display: inline-block;
  width: 60px;
  height: 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  animation: tag-pulse 1.5s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* === v7 Timeline 24h (底部全宽, status-bar 风格) === */
.timeline-24h-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding: 6px 0;
  position: relative;
}
.timeline-24h-bar {
  flex: 1;
  background: linear-gradient(180deg, #00cae0 0%, rgba(0, 202, 224, 0.4) 100%);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}
.timeline-24h-bar:hover {
  background: linear-gradient(180deg, #00cae0 0%, #00cae0 100%);
  box-shadow: 0 0 8px rgba(0, 202, 224, 0.6);
}
.timeline-24h-bar.is-current {
  background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.4) 100%);
  animation: timeline-current-pulse 2s ease-in-out infinite;
}
@keyframes timeline-current-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}
.timeline-24h-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #62666d;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* === v7 prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  .status-pulse-dot,
  .status-pulse::before,
  .status-pulse::after,
  .live-pulse,
  .live-feed-item.is-new,
  .status-bar::before,
  .timeline-24h-bar.is-current {
    animation: none !important;
  }
  .live-feed-item,
  .article-item,
  .icon-btn,
  .radial-fill,
  .source-bar-fill,
  .timeline-24h-bar {
    transition: none !important;
  }
}/* === 移动端 dashboard 折叠 (<1024px) === */
@media (max-width: 1023px) {
  .dashboard { grid-template-columns: 1fr; gap: 12px; }
  .live-feed          { grid-column: span 1; max-height: 400px; order: 1; }
  .article-list-panel { grid-column: span 1; order: 2; }
  .insights-panel     { grid-column: span 1; max-height: none; order: 3; }
  .timeline-24h       { grid-column: span 1; order: 4; }
}

/* === 侧栏: v5 恢复显示 (保留 v3 容器感 + 侧栏文章项 hover 动态感) === */
/* v3 §articles-sidebar-contrast-v2: bg/border 提升透明度让"容器感"更强 */
.sidebar {
  display: block;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 14px;
  position: sticky;
  top: 80px;  /* SPA TopNav 64px + 16px gap */
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  backdrop-filter: blur(8px);
  transition: border-color 0.4s var(--ease-out);
}
/* 侧栏滚动条美化 (v4 web-designer polish) */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  transition: background 0.4s var(--ease-out);
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(127,67,255,0.30);
}

/* 移动端 sidebar toggle 按钮 (保持原 v3 行为, <1024px 时显示折叠按钮) */
.sidebar-mobile-toggle { display: none; }
.sidebar-close { display: none !important; }
.sidebar-overlay { display: none !important; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.sidebar-section { margin-top: 22px; }
.sidebar-section:first-child { margin-top: 0; }
.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8f98 !important;
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 10px;
  font-feature-settings: "cv01", "ss03";
}
.sidebar-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7f43ff, #00cae0);
}

/* sidebar item 重新设计 */
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #d0d6e0 !important;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s ease;
  margin-bottom: 1px;
  font-feature-settings: "cv01", "ss03";
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.04);
  color: #ffffff !important;
}
.sidebar-item.active {
  background: linear-gradient(135deg, rgba(127,67,255,0.18) 0%, rgba(0,202,224,0.06) 100%);
  color: #ffffff !important;
  border-left: 2px solid #7f43ff;
  padding-left: 8px;
  font-weight: 510;
}
.sidebar-item-emoji { font-size: 14px; width: 18px; text-align: center; }
.sidebar-item-count {
  margin-left: auto;
  font-size: 11px;
  color: #62666d;
  font-feature-settings: "cv01", "ss03", "tnum";
  background: rgba(255,255,255,0.04);
  padding: 1px 7px;
  border-radius: 9999px;
  min-width: 24px;
  text-align: center;
  font-weight: 510;
}
.sidebar-item.active .sidebar-item-count {
  background: rgba(127,67,255,0.2);
  color: #d0c2ff;
}
.sidebar-item-quick {
  background: rgba(0,202,224,0.04);
  border: 1px solid rgba(0,202,224,0.15);
}
.sidebar-item-quick:hover {
  background: rgba(0,202,224,0.1);
  border-color: rgba(0,202,224,0.3);
}
.sidebar-item-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 510;
  color: #5ee9f0;
  background: rgba(0,202,224,0.15);
  padding: 2px 7px;
  border-radius: 9999px;
  font-feature-settings: "cv01", "ss03", "tnum";
}

/* sidebar popular (v5 §articles-restore-sidebar: hover 升级到 web-designer 风) */
.sidebar-popular { list-style: none; padding: 0; margin: 0; }
.sidebar-popular li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition:
    background 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
  cursor: pointer;
  color: #d0d6e0;
  margin-bottom: 1px;
}
.sidebar-popular li:hover {
  background: rgba(127,67,255,0.10);  /* v5: 用紫调替代纯白, 与品牌一致 */
  color: #ffffff;
  transform: translateX(2px);  /* v4 web-designer: 微右滑提示"可点击" */
}
.sidebar-popular-rank {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #8a8f98;
  font-size: 11px;
  font-weight: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  font-feature-settings: "cv01", "ss03", "tnum";
}
.sidebar-popular li:nth-child(1) .sidebar-popular-rank { background: linear-gradient(135deg, #7f43ff, #5e25d6); border: none; color: #fff; }
.sidebar-popular li:nth-child(2) .sidebar-popular-rank { background: linear-gradient(135deg, #00cae0, #008cb1); border: none; color: #fff; }
.sidebar-popular li:nth-child(3) .sidebar-popular-rank { background: linear-gradient(135deg, #ff6cab, #d93583); border: none; color: #fff; }
.sidebar-popular-content { flex: 1; min-width: 0; }
.sidebar-popular-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-feature-settings: "cv01", "ss03";
}
.sidebar-popular-meta { font-size: 11px; color: #62666d; }

/* sidebar tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 6px;
}
.sidebar-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #d0d6e0;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s ease;
  font-feature-settings: "cv01", "ss03";
}
.sidebar-tag:hover {
  background: rgba(127,67,255,0.12);
  border-color: rgba(127,67,255,0.4);
  color: #ffffff;
}

/* sidebar sources */
.sidebar-sources {
  list-style: none;
  padding: 0 6px;
  margin: 0;
  columns: 2;
  column-gap: 8px;
}
.sidebar-sources li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 11px;
  color: #8a8f98;
  break-inside: avoid;
  font-feature-settings: "cv01", "ss03";
}
.source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00cae0;
  flex-shrink: 0;
}
.source-more {
  background: rgba(127,67,255,0.2);
  color: #d0c2ff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 510;
  margin-right: 4px;
}

/* === 主区 content-header === */
.main-content {
  min-width: 0;  /* 防 grid 撑爆 */
}
.main-content > section { background: transparent !important; }
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.content-title {
  font-size: 24px;
  font-weight: 510;
  color: #f7f8f8;
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin: 0;
  font-feature-settings: "cv01", "ss03";
}
.content-meta {
  color: #8a8f98;
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: -0.005em;
}

/* === 分类 pills (重设计) === */
.category-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  width: fit-content;
}
.category-pill {
  padding: 7px 14px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #8a8f98;
  font-size: 13px;
  font-weight: 510;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03";
  letter-spacing: -0.005em;
}
.category-pill:hover {
  background: rgba(255,255,255,0.04);
  color: #d0d6e0;
}
.category-pill.active {
  background: linear-gradient(135deg, rgba(127,67,255,0.18) 0%, rgba(0,202,224,0.08) 100%);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(127,67,255,0.3);
}

/* === filter-bar (排序 + 仅国内) === */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-group {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2px;
}
.sort-btn {
  padding: 5px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #8a8f98;
  font-size: 12px;
  font-weight: 510;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03";
}
.sort-btn:hover { color: #d0d6e0; }
.sort-btn.active {
  background: rgba(127,67,255,0.18);
  color: #ffffff;
}
.toggle-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: #d0d6e0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03";
}
.toggle-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: #ffffff;
}
.toggle-btn.active {
  background: rgba(0,202,224,0.1);
  border-color: rgba(0,202,224,0.4);
  color: #5ee9f0;
}

/* === result-badge (结果数) === */
.result-badge {
  font-size: 12px;
  color: #62666d;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
  font-feature-settings: "cv01", "ss03";
}

/* === 文章列表: 现代卡片 + 动态感 (2026-08-09 v4) ===
   旧版: article-list gap 1px + 静态分割线 + hover opacity 0.04
   v4: 每张独立卡片, gap 12px, 单卡 bg+radius, hover 4 项联动动画:
     1. card lift translateY(-4px) + shadow 增强
     2. cover-wrap scale 1.05 (内部图片)
     3. 标题方向性下划线 wipe-in (Chiara Luzzana 风格)
     4. 标题颜色提亮 + 微 translateX (动态感)
     5. ⌘K-style "→" 出现在右侧 (signature move)
*/
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.article-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  font-feature-settings: var(--font-feat);
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  overflow: hidden;
}
.article-item + .article-item { border-top: 1px solid rgba(255,255,255,0.06); }
/* Directional underline on title (Chiara Luzzana style) */
.article-item-title {
  position: relative;
  display: inline-block;
  /* baseline shift for visual balance */
  transition: color 0.4s var(--ease-out);
}
.article-item-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.article-item:hover .article-item-title::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* ★ SIGNATURE: hover 时右侧滑入"→"指示器 (subtle CTA cue) */
.article-item::before {
  content: '→';
  position: absolute;
  top: 50%;
  right: 24px;
  font-size: 20px;
  font-weight: 400;
  color: var(--nav-cyan);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.article-item:hover::before {
  opacity: 0.7;
  transform: translate(0, -50%);
}
.article-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(127,67,255,0.28);
  transform: translateY(-4px);
  box-shadow:
    0 6px 18px -8px rgba(127,67,255,0.32),
    0 2px 6px -2px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.article-item:hover .article-item-title { color: #ffffff; }
.article-item:hover .article-item-cover,
.article-item:hover .article-item-cover-placeholder {
  transform: scale(1.05);
}
/* Active (pressed) — 微下沉, 让交互有 tactile 感 */
.article-item:active {
  transform: translateY(-1px);
  transition-duration: 80ms;
}
/* Cover wrap hover 时长延长 (article-item 0.4s 内统一) */
.article-cover-wrap,
.article-item-cover,
.article-item-cover-placeholder {
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease;
}

/* === 封面缩略图 + 占位 (2026-08-09 §articles-cover-placeholder-v2) ===
   旧 bug: img IntersectionObserver 懒加载, cloudfront 国内慢/被墙,
   5s+ 后图片才 complete=true, 中间窗口用户看到的是 1×1 透明 gif = "空白"
   新版: 父级 .article-cover-wrap 是相对定位 + 96×96 固定尺寸, img/placeholder 叠加 (grid-area 1/1),
   占位永远 visible, img 加载成功加 .is-loaded → img opacity:1 覆盖在占位上.
   img 加载失败时 (articles.js onerror) outerHTML 替换 img → placeholder 重新成为唯一节点.
   注意: 因为 .article-cover-wrap 是 wrapper, JS 需要把 img 和 placeholder 都包进这个 div
   (见 articles.js renderArticle line ~95). */
.article-cover-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  display: grid;  /* img 和 placeholder 都 grid-area 1/1 叠放 */
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.article-cover-wrap > .article-item-cover,
.article-cover-wrap > .article-item-cover-placeholder {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 0;     /* 圆角由 wrapper 提供, 子元素不再 border-radius */
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-item-cover {
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
.article-item-cover.is-loaded { opacity: 1; }
/* placeholder 永远 visible (无 is-loaded 时 opacity 1), 加载成功后被 img 覆盖 */
.article-item-cover-placeholder {
  font-size: 32px;
  font-weight: 510;
  color: #ffffff;
  letter-spacing: -0.04em;
  opacity: 1;
}
.article-item-cover-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.article-item-cover-placeholder.cat-AI     { background: linear-gradient(135deg, #7f43ff 0%, #4d18b8 100%); }
.article-item-cover-placeholder.cat-技术   { background: linear-gradient(135deg, #00cae0 0%, #008cb1 100%); }
.article-item-cover-placeholder.cat-制造   { background: linear-gradient(135deg, #ff6cab 0%, #d93583 100%); }
.article-item-cover-placeholder.cat-精益   { background: linear-gradient(135deg, #00b894 0%, #00875f 100%); }
.article-item-cover-placeholder.cat-default{ background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%); }
/* hover 时整体放大 */
.article-item:hover .article-cover-wrap { transform: scale(1.04); }

/* 文章主体区 */
.article-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #62666d;
}
.article-item-title {
  font-size: 16px;
  font-weight: 510;
  color: #f7f8f8;
  line-height: 1.4;
  letter-spacing: -0.011em;
  transition: all .15s ease;
  font-feature-settings: "cv01", "ss03";
}
.article-item-desc {
  font-size: 13px;
  color: #8a8f98;
  line-height: 1.55;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-feature-settings: "cv01", "ss03";
}
.article-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: #62666d;
  flex-wrap: wrap;
}
.article-item-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #62666d;
  font-feature-settings: "cv01", "ss03";
}
.article-item-meta .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 510;
  border: 1px solid transparent;
  font-feature-settings: "cv01", "ss03";
}
.article-item-meta .source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  color: #8a8f98;
  font-size: 10px;
  font-weight: 500;
}
.article-item-meta .badge-priority {
  color: #f7b955;
  font-size: 11px;
}
.article-item-meta .badge-domestic {
  background: rgba(0,202,224,0.12);
  color: #5ee9f0;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 510;
}

/* === 分页 (2026-08-09 §articles-pagination-v2) ===
   经典 1 2 3 ... 12: 上一页/页码/下一页, 居中分布, 当前页 brand 色高亮 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding: 16px;
  flex-wrap: wrap;
}
.pagination .btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);  /* 2026-08-09 0.08 → 0.10 (提对比) */
  border-radius: 8px;
  color: #d0d6e0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03";
}
.pagination .btn:hover:not(:disabled) {
  background: rgba(127,67,255,0.14);
  border-color: rgba(127,67,255,0.45);
  color: #ffffff;
}
.pagination .btn:disabled { opacity: 0.30; cursor: not-allowed; }
/* 中间页码容器 */
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* 单个页码按钮 (正方形) */
.page-num {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: #d0d6e0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03", "tnum";
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-num:hover {
  background: rgba(127,67,255,0.14);
  border-color: rgba(127,67,255,0.45);
  color: #ffffff;
}
.page-num.active {
  background: linear-gradient(135deg, rgba(127,67,255,0.25), rgba(0,202,224,0.10));
  border-color: rgba(127,67,255,0.55);
  color: #ffffff;
  font-weight: 510;
  box-shadow: 0 0 0 1px rgba(127,67,255,0.30), 0 2px 8px -2px rgba(127,67,255,0.40);
}
/* 省略号 … */
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: #62666d;
  font-size: 14px;
  user-select: none;
}

/* === empty-state === */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: #8a8f98;
}
.empty-state svg { color: #62666d; margin-bottom: 12px; }
.empty-state h3 {
  color: #d0d6e0;
  font-size: 16px;
  font-weight: 510;
  margin: 8px 0;
  font-feature-settings: "cv01", "ss03";
}
.empty-state p { font-size: 13px; color: #62666d; }

/* === tag-cyan: 精益制造 (Lean) 模块配色 === */
.tag-cyan {
  background: rgba(0, 202, 224, 0.12);
  color: #5ee9f0;
  border-color: rgba(0, 202, 224, 0.35);
}

/* === Lean Banner (2026-08-04) — 切到「精益」分类时显隐 === */
.lean-banner {
  position: relative;
  margin-bottom: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08) 0%, rgba(0, 202, 224, 0.04) 100%);
  border: 1px solid rgba(0, 184, 148, 0.25);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.lean-banner-inner { position: relative; z-index: 1; max-width: 880px; }
.lean-banner-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid rgba(0, 184, 148, 0.4);
  border-radius: 9999px;
  color: #5ee9b0;
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  font-feature-settings: "cv01", "ss03";
}
.lean-banner-title {
  font-size: 22px;
  font-weight: 510;
  color: #f7f8f8;
  margin: 0 0 10px;
  letter-spacing: -0.022em;
  line-height: 1.3;
  font-feature-settings: "cv01", "ss03";
}
.lean-banner-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #c2d6cc;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  font-feature-settings: "cv01", "ss03";
}
.lean-banner-desc strong { color: #5ee9b0; font-weight: 510; }
.lean-banner-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lean-tool {
  padding: 3px 10px;
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid rgba(0, 184, 148, 0.25);
  border-radius: 6px;
  color: #b3f0d4;
  font-size: 11px;
  font-weight: 510;
  font-feature-settings: "cv01", "ss03";
  transition: all .15s ease;
  cursor: default;
}
.lean-tool:hover {
  background: rgba(0, 184, 148, 0.18);
  border-color: rgba(0, 184, 148, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}
/* 装饰用 orb: 右上角绿色辉光 */
.lean-banner-orb {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* === 入场动画: GSAP staggered fade-in (2026-08-04) ===
   卡片渲染后由 setupEntryAnim() 触发, 单次执行, 避免重复 alloc (脑 §98)
   默认 .article-item opacity:0 + translateY 12px, 0.4s 内 8ms stagger 上浮到位
   reduced-motion 媒体查询自动禁用 (见末尾 media 块) */
.article-item {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}
.article-item.anim-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity .4s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.22, 1, .36, 1);
}

/* === 封面图懒加载渐显 (2026-08-04) ===
   <img loading="lazy"> 配合 fade-in, IntersectionObserver 触发
   - 占位: rgba(255,255,255,0.04) 哑光底
   - loaded: opacity 0→1, scale 1.02→1, 0.5s ease-out */
.article-item-cover,
.article-item-cover-placeholder {
  opacity: 0;
  transition: opacity .5s ease-out, transform .2s ease;
}
.article-item-cover.is-loaded,
.article-item-cover-placeholder.is-loaded {
  opacity: 1;
}
/* placeholder 默认就位 (无图片加载等待), 立即设 is-loaded 即可 */
.article-item-cover-placeholder { opacity: 1; }

/* === Mobile sidebar toggle (1026px 以下显示) === */
.sidebar-mobile-toggle {
  display: none;  /* 桌面默认隐藏 */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: #d0d6e0;
  font-size: 13px;
  font-weight: 510;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-feature-settings: "cv01", "ss03";
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.sidebar-mobile-toggle:hover {
  background: rgba(127,67,255,0.08);
  border-color: rgba(127,67,255,0.3);
  color: #ffffff;
}
.sidebar-mobile-toggle svg { transition: transform .25s ease; }
.sidebar-mobile-toggle[aria-expanded="true"] {
  background: rgba(127,67,255,0.12);
  border-color: rgba(127,67,255,0.4);
  color: #ffffff;
}
.sidebar-mobile-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* === sidebar 折叠态: < 1024px === */
@media (max-width: 1023px) {
  .sidebar-mobile-toggle { display: flex; }
  .sidebar {
    display: none;  /* 默认折叠 */
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 0;
  }
  .sidebar.is-open { display: block; }
  .sidebar-close { display: block; }  /* 移动端显式关闭按钮 */
  .sidebar-close {
    position: sticky;
    top: 0;
    right: 0;
    margin-left: auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #8a8f98;
    cursor: pointer;
    display: none;
  }
  .sidebar.is-open .sidebar-close { display: block; }
}
@media (min-width: 1024px) {
  /* 2026-08-09 v5 §articles-restore-sidebar: 桌面端恢复侧栏 + 1fr 主区布局 (v3 删除, 用户反馈不好) */
  .sidebar { display: block; }
  .sidebar-close { display: none; }
}

/* === skeleton === */
.skeleton {
  pointer-events: none;
}
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-mb-12 { margin-bottom: 12px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 响应式 === */
@media (max-width: 960px) {
  .articles-hero h1 { font-size: 36px; }
  .articles-hero .lead { font-size: 15px; }
  .articles-stats { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: relative; top: 0; max-height: none; }
  .article-item { padding: 16px; gap: 12px; }
  .article-item-cover, .article-item-cover-placeholder { width: 64px; height: 64px; }
  .article-item-cover-placeholder { font-size: 22px; }
  .article-item-title { font-size: 15px; }
}
@media (max-width: 600px) {
  .articles-hero { padding: 56px 0 36px; }
  .articles-hero h1 { font-size: 28px; }
  .articles-stats { grid-template-columns: 1fr; }
  .article-item-cover, .article-item-cover-placeholder { width: 56px; height: 56px; }
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .articles-hero::after,
  .article-item,
  .article-item-cover,
  .skeleton-line { animation: none !important; transition: none !important; }
}
/* === v8 顶部 Hero Ribbon (紧凑 dashboard 风, 不是营销大字) === */
.hero-ribbon {
  margin-bottom: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0, 202, 224, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(0, 202, 224, 0.12);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.hero-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 202, 224, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.6fr 1.4fr;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-stat:last-of-type { border-right: 0; }
.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #62666d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-stat-num {
  font-size: 24px;
  font-weight: 600;
  color: #f7f8f8;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(0, 202, 224, 0.2);
}
.hero-stat-trend {
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.hero-stat-trend.up { color: #10b981; }
.hero-stat-trend.down { color: #ef4444; }

.hero-flow, .hero-keywords {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.hero-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hero-flow-title {
  font-size: 10px;
  font-weight: 600;
  color: #62666d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-flow-now {
  font-size: 11px;
  color: #00cae0;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 202, 224, 0.3);
}
.hero-flow-svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* 关键词 tag (compact, 5 级字号区分热度) */
.hero-keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kw-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: #d0d6e0;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
}
.kw-tag:hover {
  border-color: rgba(0, 202, 224, 0.4);
  color: #00cae0;
  background: rgba(0, 202, 224, 0.06);
}
.kw-l1 { font-size: 14px; font-weight: 700; color: #00cae0; background: rgba(0, 202, 224, 0.08); border-color: rgba(0, 202, 224, 0.3); }
.kw-l2 { font-size: 12px; font-weight: 600; color: #f7f8f8; background: rgba(255, 255, 255, 0.06); }
.kw-l3 { font-size: 11px; font-weight: 600; color: #d0d6e0; }
.kw-l4 { font-size: 10px; font-weight: 500; color: #8a8f98; }
.kw-l5 { font-size: 9px; font-weight: 500; color: #62666d; }

/* === v8 数据源健康矩阵 (8 mini radial gauges) === */
.source-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0;
}
.source-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.source-cell:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.source-cell-svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}
.source-cell .sc-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}
.source-cell .sc-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 81.68;  /* 2π × 13 = 81.68 */
  stroke-dashoffset: calc(81.68 * (1 - var(--p, 1)));
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}
.source-cell .sc-warn { stroke: #f59e0b; filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4)); }
.source-cell-name {
  font-size: 9px;
  font-weight: 600;
  color: #d0d6e0;
  letter-spacing: 0.04em;
}

/* === v8 主题聚类 (ML cluster) === */
.topic-clusters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.topic-row {
  display: grid;
  grid-template-columns: 22px 1fr 60px 36px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.topic-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 12px;
}
.topic-name {
  color: #d0d6e0;
  font-weight: 500;
  letter-spacing: -0.011em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.topic-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.topic-num {
  font-size: 11px;
  font-weight: 600;
  color: #f7f8f8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* === v8 系统活动日志 === */
.system-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 202, 224, 0.3) transparent;
}
.system-log::-webkit-scrollbar { width: 3px; }
.system-log::-webkit-scrollbar-thumb {
  background: rgba(0, 202, 224, 0.2);
  border-radius: 2px;
}
.log-line {
  display: grid;
  grid-template-columns: 50px 36px 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}
.log-line:hover { background: rgba(255, 255, 255, 0.04); }
.log-time {
  font-size: 9px;
  color: #62666d;
  letter-spacing: 0.02em;
}
.log-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  text-transform: uppercase;
}
.log-info { background: rgba(0, 202, 224, 0.12); color: #00cae0; border: 1px solid rgba(0, 202, 224, 0.3); }
.log-ok { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.log-warn { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.log-error { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.log-msg {
  color: #d0d6e0;
  font-weight: 400;
  letter-spacing: -0.011em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === v8 dashboard 列宽调整 (insights 撑大放更多卡片) === */
.panel-insights { max-height: calc(100vh - 240px); }

/* === v8 响应式: hero-ribbon 在小屏自动换行 === */
@media (max-width: 1280px) {
  .hero-ribbon-grid {
    grid-template-columns: repeat(4, 1fr) 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  .hero-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-flow, .hero-keywords {
    grid-column: span 2;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 0;
    padding-top: 10px;
  }
  .hero-stat:nth-child(2n) { border-right: 0; }
}

/* === v8 reduced motion 扩展 === */
@media (prefers-reduced-motion: reduce) {
  .sc-fill, .topic-bar-fill, .kw-tag {
    transition: none !important;
  }
}

/* === v8 log-new 单次入场动画 === */
@keyframes log-new-slide {
  0% {
    opacity: 0;
    transform: translateX(-12px);
    background: rgba(0, 202, 224, 0.08);
    border-left-color: rgba(0, 202, 224, 0.5);
  }
  60% {
    background: rgba(0, 202, 224, 0.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.02);
    border-left-color: rgba(255, 255, 255, 0.04);
  }
}
.log-line.log-new {
  animation: log-new-slide 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* === v9 字体优化 (taste-skill §4.1 严格执行) ===
   - 标题: Inter 600 letter-spacing -0.02em (Linear 风格)
   - 描述: Inter 400 line-height 1.6 letter-spacing -0.011em
   - meta: 全用 mono class + tabular-nums
   - 移除 font-feature-settings: "cv01" "ss03" (字体未必支持, 会导致回退)
   - 强化对比: title #f7f8f8, desc #8a8f98 → #a3acb8 (略提对比)
*/
.article-item-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-size: 15.5px;
  font-weight: 600;
  color: #f7f8f8;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
  /* 移除 font-feature-settings: "cv01", "ss03" — 字体未必支持, 改为 display: -webkit-box; 控制行数 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  color: #a3acb8;  /* 8a8f98 → a3acb8 (提对比) */
  line-height: 1.6;
  letter-spacing: -0.011em;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #8a8f98;
  flex-wrap: nowrap;
  min-width: 0;
}
.article-item-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8a8f98;
  white-space: nowrap;
  flex-shrink: 0;
}
/* spacer 占位 - 把 views/time 推到右侧 */
.article-item-meta .meta-item-spacer {
  flex: 1;
  min-width: 0;
}
.article-item-meta .meta-views,
.article-item-meta .meta-time {
  font-size: 11px;
  font-weight: 500;
  color: #8a8f98;
  letter-spacing: 0;
}
.article-item-meta .meta-views svg {
  color: #62666d;
  flex-shrink: 0;
}
.article-item-meta .meta-views .mono {
  font-weight: 600;
  color: #d0d6e0;
  font-variant-numeric: tabular-nums;
}
.article-item-meta .meta-unit {
  font-size: 10px;
  color: #62666d;
  font-weight: 400;
}
.article-item-meta .source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #8a8f98;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-item-meta .source-tag.mono {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* tag chip - 紧凑 */
.article-item-meta .tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #d0d6e0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* badge 重做 */
.article-item-meta .badge-priority {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  color: #f59e0b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.article-item-meta .badge-domestic {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(0, 202, 224, 0.1);
  border: 1px solid rgba(0, 202, 224, 0.25);
  border-radius: 4px;
  color: #00cae0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* article-item-header 紧凑 */
.article-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  min-height: 18px;
}

/* === v9 LiveFeed 重新设计 (vertical-stack + 严格字号) === */
.live-feed-item {
  display: grid !important;
  grid-template-columns: 8px 1fr !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-left: 2px solid rgba(0, 202, 224, 0.3) !important;
  border-radius: 6px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.live-feed-item:hover {
  background: rgba(0, 202, 224, 0.05) !important;
  border-left-color: #00cae0 !important;
  transform: translateX(2px);
}

.live-feed-item-indicator {
  width: 6px !important;
  height: 6px !important;
  background: #00cae0 !important;
  border-radius: 50% !important;
  margin-top: 7px !important;
  box-shadow: 0 0 6px rgba(0, 202, 224, 0.6) !important;
  flex-shrink: 0;
  position: relative;
}
.live-feed-item.is-new .live-feed-item-indicator {
  animation: indicator-pulse 1.5s ease-in-out infinite;
}
@keyframes indicator-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 202, 224, 0.6); }
  50% { box-shadow: 0 0 12px rgba(0, 202, 224, 1), 0 0 20px rgba(0, 202, 224, 0.4); }
}

.live-feed-item-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.live-feed-item-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 10px !important;
  color: #62666d !important;
  margin: 0 !important;
}
.live-feed-item-source {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #00cae0 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.live-feed-item-time {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #62666d !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.live-feed-item-time.is-fresh {
  color: #00cae0;
  font-weight: 600;
}
.live-feed-item-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #d0d6e0 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.011em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden;
  margin: 0 !important;
  transition: color 0.2s ease;
}
.live-feed-item:hover .live-feed-item-title { color: #f7f8f8; }

/* live-feed-list 容器 — 紧凑间距 */
.live-feed-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 202, 224, 0.3) transparent;
}
