/* Shared page primitives for Luyun data-center pages. */
.luyun-page-bg {
  background:
    radial-gradient(circle at 12% 0%, rgba(99,102,241,0.14), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(6,182,212,0.08), transparent 28%),
    var(--bg);
}

.luyun-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.luyun-scrollbar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.luyun-card {
  background: rgba(17,24,39,0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ===== 统一全局导航（由 common.js 的 LuyunNav 渲染）===== */
/* 使用变量回退，确保在未定义主题变量的页面也能正常显示。 */
.global-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: clamp(38px, 4.4vh, 46px);
  padding: 0 clamp(8px, 1.2vw + 6px, 18px);
  background: var(--sidebar-bg, #111827);
  border-bottom: 1px solid var(--border, #1f2937);
  flex-shrink: 0;
  z-index: 50;
}
.global-nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.global-nav-brand span { color: var(--accent, #6366f1); }
.global-nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.global-nav-tabs::-webkit-scrollbar { display: none; }
.global-nav .nav-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim, #9ca3af);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.global-nav .nav-tab:hover { background: var(--card2, #1f2937); color: var(--text, #e5e7eb); }
.global-nav .nav-tab.active { background: var(--accent, #6366f1); color: #fff; }
.global-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .global-nav-brand { display: none; }
  .global-nav .nav-label { display: none; }
  .global-nav .nav-tab { padding: 6px 8px; gap: 0; }
}
