/* ==========================================================================
   ROBOX · articles/ 目录专用 V2 覆盖层
   作用：把 articles/ 下 5 篇自带头部内联样式的文章页，统一为全站 V2 深色
        工业蓝图风（与 index.html / subpage-v2.css 同一套设计语言）。
   挂载位置：必须在本页内联 <style> 之后，才能压过内联浅色规则。
   注意：本页内联 <style> 内含 body{background:#fff} 等浅色声明，
        因此本文件对关键属性一律使用 !important，避免级联顺序踩坑。
   ========================================================================== */

:root {
  --bg: #0a0e17;
  --bg2: #0f1626;
  --panel: #121b2e;
  --panel2: #16203a;
  --line: #22304d;
  --cyan: #2ad4ee;
  --orange: #ff7a18;
  --text: #e8eef6;
  --muted: #9fb0c6;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
}

/* ---------- 页面底色与文字 ---------- */
html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
}
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif !important;
  line-height: 1.9 !important;
}

/* ---------- 站内导航（对齐主站 v2-nav） ---------- */
.site-nav {
  background: rgba(10, 14, 23, 0.94) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px);
}
.site-nav-inner { border-bottom: 0 !important; }
.site-nav-logo { color: var(--text) !important; }
.site-nav-name {
  color: var(--cyan) !important;
  font-family: var(--mono) !important;
  letter-spacing: 1px;
}
.site-nav-tag { color: var(--muted) !important; }
.site-nav-menu a {
  color: var(--text) !important;
  border-radius: 6px !important;
}
.site-nav-menu a:hover {
  color: var(--cyan) !important;
  background: rgba(42, 212, 238, 0.1) !important;
}

/* ---------- 文章主体 ---------- */
.article-wrap { max-width: 900px !important; }

.article-head {
  border-bottom: 1px solid var(--line) !important;
  padding-bottom: 28px !important;
}
.article-tag {
  background: rgba(42, 212, 238, 0.12) !important;
  color: var(--cyan) !important;
  border: 1px solid rgba(42, 212, 238, 0.35) !important;
  border-radius: 4px !important;
}
h1 {
  color: var(--text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
h2 {
  color: var(--text) !important;
  border-left: 3px solid var(--cyan) !important;
}
h3 { color: var(--cyan) !important; }
p { color: #c3d2e4 !important; }
strong { color: #ffffff !important; }

.article-lead {
  background: var(--panel) !important;
  color: #c3d2e4 !important;
  border-left: 3px solid var(--cyan) !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--cyan) !important;
  border-radius: 0 8px 8px 0 !important;
}

/* ---------- 图片块 ---------- */
.img-block {
  background: linear-gradient(135deg, #0d1526, #16233d) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
.img-block .img-caption { color: var(--muted) !important; }

/* ---------- 数据卡 ---------- */
.data-card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}
.data-card .num { color: var(--cyan) !important; }
.data-card .unit { color: var(--muted) !important; }
.data-card .label { color: #c3d2e4 !important; }

/* ---------- 通用表格 / 参数表 ---------- */
table { border-collapse: collapse !important; }
td {
  border-bottom: 1px solid var(--line) !important;
  color: #c3d2e4 !important;
}
tr:nth-child(even) td { background: rgba(18, 27, 46, 0.7) !important; }
td:first-child { color: var(--muted) !important; }
td:last-child { color: var(--text) !important; }
th {
  background: var(--panel2) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* ---------- ROI 表（roi-guide） ---------- */
.roi-table th {
  background: linear-gradient(90deg, #0f2038, #16283f) !important;
  color: var(--cyan) !important;
}
.roi-table td { border-bottom: 1px solid var(--line) !important; }
.roi-table tr:nth-child(even) td { background: rgba(18, 27, 46, 0.7) !important; }
.roi-table .total-row td {
  background: rgba(255, 122, 24, 0.1) !important;
  color: var(--orange) !important;
  border-top: 1px solid var(--orange) !important;
}

/* ---------- 对比表（servo / industry-scenarios） ---------- */
.compare-table th {
  background: var(--panel2) !important;
  color: var(--cyan) !important;
}
.compare-table th:first-child {
  background: #0d1526 !important;
  color: var(--muted) !important;
}
.compare-table td { border-bottom: 1px solid var(--line) !important; }
.compare-table td:first-child { color: var(--muted) !important; }
.compare-table tr:nth-child(even) td { background: rgba(18, 27, 46, 0.7) !important; }
.compare-table .win { color: #3ddc97 !important; }
.compare-table .lose { color: #ff6b6b !important; }

/* ---------- 场景卡（industry-scenarios） ---------- */
.scenario-card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
}
.scenario-card .s-title { color: var(--cyan) !important; }
.scenario-card .s-desc { color: var(--muted) !important; }

/* ---------- 特性列表 ---------- */
.feature-list li { border-bottom: 1px solid var(--line) !important; color: #c3d2e4 !important; }
.feature-list .icon {
  background: linear-gradient(135deg, #2ad4ee, #157a9c) !important;
  color: #05121a !important;
}

/* ---------- 高亮框 ---------- */
.highlight-box {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--cyan) !important;
  color: #c3d2e4 !important;
}
.highlight-box.success {
  background: rgba(61, 220, 151, 0.08) !important;
  border-color: rgba(61, 220, 151, 0.3) !important;
  border-left-color: #3ddc97 !important;
}
.highlight-box.warning {
  background: rgba(255, 122, 24, 0.08) !important;
  border-color: rgba(255, 122, 24, 0.3) !important;
  border-left-color: var(--orange) !important;
}

/* ---------- 引用块 ---------- */
.blockquote {
  background: var(--panel) !important;
  border-left: 3px solid var(--orange) !important;
  color: #c3d2e4 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* ---------- 文末与联系条 ---------- */
.article-footer {
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}
.footer-nav a { color: var(--cyan) !important; }
.footer-nav a:hover { color: var(--orange) !important; }
.contact-bar {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  color: var(--cyan) !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .site-nav-menu { display: flex !important; }
}
/* ---------- 响应式兜底 ---------- */
img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}
@media (max-width: 600px) {
  .data-row, .scenario-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
