/* ==========================================================================
   ODMSCM.COM — ODM 供应链与智能制造知识库 全局微调样式
   Slate / Industrial Blue 工业科技视觉体系
   ========================================================================== */

:root {
  --brand-primary: #1d4ed8;
  --brand-accent: #0284c7;
  --slate-surface: #f8fafc;
  --card-border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
}

/* 工业科技网格底纹（用于 Hero 顶栏） */
.hero-industrial-grid {
  background-color: #0f172a;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.24), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.18), transparent 40%),
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

/* 通用知识卡片微阴影与悬浮态 */
.scm-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scm-card-hover:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.09), 0 4px 10px -4px rgba(29, 78, 216, 0.08);
}

/* 数学计算公式展示块 */
.formula-box {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-left: 4px solid #38bdf8;
  border-radius: 0.5rem;
  padding: 0.875rem 1.125rem;
  overflow-x: auto;
}

/* 顶部导航激活态下划线指示器 */
.nav-link-active {
  color: #2563eb !important;
  background-color: #eff6ff;
  font-weight: 600;
}

/* 工业拓扑节点激活高亮 */
.topo-node {
  transition: all 0.2s ease;
  cursor: pointer;
}

.topo-node.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* 关键词检索高亮 */
mark.kw-highlight {
  background-color: #fef08a;
  color: #0f172a;
  padding: 0 2px;
  border-radius: 2px;
}

/* 创始人 IP 专属工业蓝图边框与批注卡片 */
.founder-blueprint-card {
  background: linear-gradient(145deg, #0f172a 0%, #172554 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
}

.architect-note {
  background: linear-gradient(to right, #eff6ff, #f8fafc);
  border-left: 4px solid #1d4ed8;
  border-top: 1px solid #dbeafe;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0.625rem;
}

/* 精细化滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
