/* ============================================================
   server-monitor.css · LQYMonitor 服务器监控脚本专属样式
   依赖 style.css :root 令牌，不重复定义变量
   ============================================================ */

/* ---------- 1. 基础：滚动条、prefers-reduced-motion ---------- */

/* WebKit 自定义滚动条 */
.metric-card::-webkit-scrollbar,
.mp-row::-webkit-scrollbar,
.code-block pre::-webkit-scrollbar,
.threshold-table-wrap::-webkit-scrollbar,
.mgmt-card::-webkit-scrollbar,
.cmd-text::-webkit-scrollbar,
.inline-code-block::-webkit-scrollbar,
.accordion-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.metric-card::-webkit-scrollbar-track,
.mp-row::-webkit-scrollbar-track,
.code-block pre::-webkit-scrollbar-track,
.threshold-table-wrap::-webkit-scrollbar-track,
.mgmt-card::-webkit-scrollbar-track,
.cmd-text::-webkit-scrollbar-track,
.inline-code-block::-webkit-scrollbar-track,
.accordion-body::-webkit-scrollbar-track {
  background: var(--bg-3);
  border-radius: 4px;
}

.metric-card::-webkit-scrollbar-thumb,
.mp-row::-webkit-scrollbar-thumb,
.code-block pre::-webkit-scrollbar-thumb,
.threshold-table-wrap::-webkit-scrollbar-thumb,
.mgmt-card::-webkit-scrollbar-thumb,
.cmd-text::-webkit-scrollbar-thumb,
.inline-code-block::-webkit-scrollbar-thumb,
.accordion-body::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
  border: 1px solid var(--border-line);
}

.metric-card::-webkit-scrollbar-thumb:hover,
.mp-row::-webkit-scrollbar-thumb:hover,
.code-block pre::-webkit-scrollbar-thumb:hover,
.threshold-table-wrap::-webkit-scrollbar-thumb:hover,
.mgmt-card::-webkit-scrollbar-thumb:hover,
.cmd-text::-webkit-scrollbar-thumb:hover,
.inline-code-block::-webkit-scrollbar-thumb:hover,
.accordion-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

/* Firefox 滚动条 */
.metric-card,
.mp-row,
.code-block pre,
.threshold-table-wrap,
.mgmt-card,
.cmd-text,
.inline-code-block,
.accordion-body {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) var(--bg-3);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   2. Breadcrumb 面包屑导航
   ============================================================ */
.breadcrumb {
  position: sticky;
  top: var(--navbar-height);
  z-index: 40;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-line);
}

.breadcrumb .container {
  max-width: var(--container-max);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  padding-top: 14px;
  padding-bottom: 14px;
  margin: 0 auto;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
  line-height: 1.5;
}

a.breadcrumb-item:hover,
a.breadcrumb-item:focus-visible {
  color: var(--primary);
  outline: none;
}

.breadcrumb-sep {
  color: var(--text-dim);
  user-select: none;
  font-size: 12px;
}

.breadcrumb-item[aria-current="page"],
.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
  cursor: default;
}

/* ============================================================
   3. Monitor Hero 首屏
   ============================================================ */
.monitor-hero {
  padding: var(--space-6xl) 0;
  background:
    radial-gradient(
      ellipse 85% 60% at 50% -10%,
      rgba(37, 99, 235, 0.06),
      transparent 70%
    );
  position: relative;
  overflow: hidden;
}

.monitor-hero .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.monitor-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.monitor-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.monitor-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  line-height: 1.5;
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 179, 76, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(227, 179, 76, 0); }
}

.monitor-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0;
}

.monitor-hero-title .title-accent {
  color: var(--primary);
  font-weight: 800;
}

.monitor-hero-desc {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

.monitor-hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.monitor-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: none;
}

.monitor-hero-actions .btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.monitor-hero-actions .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.monitor-hero-actions .btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-line);
}

.monitor-hero-actions .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.monitor-hero-actions .btn-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.monitor-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-line);
}

.m-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.m-stat-suffix {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.m-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Hero 右侧监控面板模拟 --- */
.monitor-hero-visual {
  position: relative;
}

.monitor-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.monitor-panel-header {
  background: var(--bg-2);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-line);
}

.monitor-panel-header .dot {
  display: none;
}

.monitor-panel-title {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-family: var(--font-mono);
}

.monitor-panel-body {
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mp-row {
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.mp-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.mp-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.mp-bar-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 4px;
  transition: width var(--dur) var(--ease);
  transform-origin: left center;
  animation: mpBarIn 0.8s var(--ease) both;
}

.mp-row:nth-child(1) .mp-bar-fill { animation-delay: 0.10s; }
.mp-row:nth-child(2) .mp-bar-fill { animation-delay: 0.20s; }
.mp-row:nth-child(3) .mp-bar-fill { animation-delay: 0.30s; }
.mp-row:nth-child(4) .mp-bar-fill { animation-delay: 0.40s; }
.mp-row:nth-child(5) .mp-bar-fill { animation-delay: 0.50s; }

@keyframes mpBarIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.mp-bar-fill.status-warning {
  background: var(--warning);
}

.mp-bar-fill.status-danger {
  background: var(--danger);
}

.mp-bar-fill.status-success {
  background: var(--success);
}

.mp-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mp-footer {
  margin-top: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-2);
}

.mp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}

.mp-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.40); }
  50% { box-shadow: 0 0 0 4px rgba(21, 128, 61, 0); }
}

/* ============================================================
   4. Metrics 监控指标区
   ============================================================ */
.metrics-section {
  background: var(--bg-2);
  padding: var(--space-6xl) 0;
}

.metrics-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-5xl);
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: 0.3px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid var(--border-line);
  position: relative;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.metric-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-icon.icon-green {
  background: var(--success-subtle);
  color: var(--success);
}

.metric-icon.icon-cyan {
  background: var(--gold-subtle);
  color: var(--gold-strong);
}

.metric-icon.icon-purple {
  background: var(--accent-subtle);
  color: var(--accent);
}

.metric-icon.icon-warning {
  background: var(--warning-subtle);
  color: var(--warning);
}

.metric-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 auto;
  flex-grow: 1;
}

.metric-threshold {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--danger-subtle);
  color: var(--danger);
  width: fit-content;
  line-height: 1.5;
}

.metric-threshold.metric-threshold-info {
  background: var(--primary-subtle);
  color: var(--primary);
}

.metric-threshold.metric-threshold-warn {
  background: var(--warning-subtle);
  color: var(--warning);
}

.metric-threshold.metric-threshold-danger {
  background: var(--danger-subtle);
  color: var(--danger);
}

.metric-threshold.metric-threshold-ok {
  background: var(--success-subtle);
  color: var(--success);
}

/* ============================================================
   5. Workflow 工作流程区
   ============================================================ */
.workflow-section {
  background: var(--bg-3);
  padding: var(--space-6xl) 0;
}

.workflow-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 61px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--primary-subtle);
  z-index: 0;
  pointer-events: none;
}

.workflow-step {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.workflow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.workflow-step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.workflow-step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}

.workflow-step-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Workflow timeline dots (备选视觉元素) */
.workflow-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.workflow-timeline .tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.workflow-timeline .tl-connector {
  flex: 1;
  height: 1.5px;
  background: var(--primary-subtle);
}

/* ============================================================
   6. Threshold 阈值配置表
   ============================================================ */
.threshold-section {
  background: var(--bg-2);
  padding: var(--space-6xl) 0;
}

.threshold-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.threshold-table-wrap {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.threshold-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.threshold-table thead th {
  background: var(--bg-2);
  padding: 14px 18px;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-line);
  border-top: 1px solid var(--border-line);
}

.threshold-table thead th:first-child {
  border-top: none;
}

.threshold-table tbody tr {
  border-bottom: 1px solid var(--border-line);
  transition: background var(--dur-fast) var(--ease);
}

.threshold-table tbody tr:last-child {
  border-bottom: none;
}

.threshold-table tbody tr:hover {
  background: var(--bg-3);
}

.threshold-table tbody td {
  padding: 14px 18px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  vertical-align: middle;
  line-height: 1.6;
}

.threshold-table tbody td.tt-metric {
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-body);
}

.threshold-table tbody td.tt-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.threshold-table tbody td.tt-note {
  font-size: 12.5px;
  color: var(--text-dim);
}

.threshold-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-line);
}

.threshold-table-row:last-child {
  border-bottom: none;
}

.threshold-col-name,
.threshold-col-warn,
.threshold-col-danger,
.threshold-col-ok {
  flex: 1;
}

.threshold-col-warn {
  color: var(--warning);
  font-weight: 600;
}

.threshold-col-danger {
  color: var(--danger);
  font-weight: 600;
}

.threshold-col-ok {
  color: var(--success);
  font-weight: 600;
}

/* 色值编码 inline 标签 */
.threshold-inline-warn {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--warning-subtle);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.threshold-inline-danger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--danger-subtle);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.threshold-inline-ok {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--success-subtle);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.threshold-inline-info {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ============================================================
   7. Deploy 部署指南区
   ============================================================ */
.deploy-section {
  background: var(--bg-3);
  padding: var(--space-6xl) 0;
}

.deploy-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

/* --- 一键安装卡 --- */
.oneclick-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: relative;
  border: 1px solid var(--border-line);
  margin-bottom: var(--space-5xl);
}

.oneclick-card::before {
  display: none;
}

.oneclick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.oneclick-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.oneclick-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.oneclick-desc {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}

.oneclick-desc .inline-code,
.menu-option-body .inline-code,
.mgmt-card .inline-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.os-tab {
  border: none;
  background: var(--bg-2);
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  line-height: 1.5;
  font-family: inherit;
}

.os-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}

.os-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.os-tab.active::after {
  display: none;
}

.os-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}

.cmd-box {
  background: var(--bg-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--border-line);
}

.cmd-text {
  flex: 1;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  user-select: all;
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
}

.cmd-copy {
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 10px 16px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: inherit;
  font-size: var(--fs-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

.cmd-copy:hover {
  background: var(--primary-hover);
}

.cmd-copy.pressed {
  transform: scale(0.96);
}

.cmd-copied {
  display: none;
  font-size: var(--fs-xs);
  color: var(--success);
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 500;
}

.cmd-copied.show {
  display: block;
}

.oneclick-tips {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.oneclick-tips li {
  padding-left: 22px;
  position: relative;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.oneclick-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--success-subtle);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.oneclick-tips li .inline-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

/* --- Deploy Divider --- */
.deploy-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--space-5xl);
  position: relative;
}

.deploy-divider::before,
.deploy-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-line);
}

.deploy-divider::before {
  margin-right: var(--space-4);
}

.deploy-divider::after {
  margin-left: var(--space-4);
}

.deploy-divider span {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-weight: 500;
  padding: 0 var(--space-3);
  flex-shrink: 0;
}

/* --- Deploy Steps 垂直时间线 --- */
.deploy-steps {
  position: relative;
  padding-left: 68px;
}

.deploy-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 52px;
  left: 15px;
  width: 2px;
  background: rgba(37, 99, 235, 0.25);
  z-index: 0;
}

.deploy-step {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-6);
}

.deploy-step:last-child {
  margin-bottom: 0;
}

.deploy-step-marker {
  position: absolute;
  left: -52px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  border: 3px solid var(--bg-3);
}

.deploy-step-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 36px;
  border: 1px solid var(--border-line);
}

.deploy-step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}

.deploy-step-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

/* --- Code Block 代码块 --- */
.code-block {
  background: var(--bg-3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-line);
}

.code-block-sm {
  border-radius: var(--radius);
}

.code-block-header {
  background: var(--bg-3);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-line);
}

.code-block-header .dot {
  display: none;
}

.code-block-title {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.code-block pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: none;
  background: transparent;
}

.code-block pre code {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
  background: transparent;
  padding: 0;
  margin-top: 6px;
  display: block;
  white-space: pre;
}

.code-block-sm pre code {
  font-size: 12.5px;
  line-height: 1.7;
}

.code-block code .cmd {
  color: var(--primary);
  font-weight: 600;
}

.code-block code .flag {
  color: var(--gold-strong);
  font-weight: 500;
}

.code-block code .cmt {
  color: var(--text-dim);
  font-style: normal;
}

/* ============================================================
   8. Management 日常管理区
   ============================================================ */
.management-section {
  background: var(--bg);
  padding: var(--space-6xl) 0;
}

.management-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

/* --- Menu Card 主菜单交互卡 --- */
.menu-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--space-5xl);
  border: 1px solid var(--border-line);
}

.menu-card-head {
  background: var(--primary-subtle);
  padding: 18px;
}

.menu-card-head h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.menu-card-subtitle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
}

.menu-option {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-line);
  transition: background var(--dur-fast) var(--ease);
  cursor: default;
}

.menu-option:last-child {
  border-bottom: none;
}

.menu-option:hover {
  background: var(--bg-2);
}

.menu-option-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  flex-shrink: 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.menu-option-default .menu-option-num {
  background: var(--primary);
}

.menu-option-danger .menu-option-num {
  background: var(--danger);
}

.menu-option-edit .menu-option-num {
  background: var(--success);
}

.menu-option-body {
  flex: 1;
  min-width: 0;
}

.menu-option-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.tag-default {
  background: var(--primary-subtle);
  color: var(--primary);
}

.tag-danger {
  background: var(--danger-subtle);
  color: var(--danger);
}

.tag-edit {
  background: var(--success-subtle);
  color: var(--success);
}

.menu-option-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.menu-option-desc strong {
  color: var(--text);
  font-weight: 700;
}

.menu-option-desc .inline-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

.menu-option-cmd {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px solid var(--border-line);
  overflow-x: auto;
}

.safety-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.safety-checklist li {
  padding-left: 30px;
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.safety-checklist .shield {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.safety-checklist li:nth-child(1) .shield { background: var(--danger); color: #FFFFFF; }
.safety-checklist li:nth-child(2) .shield { background: var(--warning); color: #FFFFFF; }
.safety-checklist li:nth-child(3) .shield { background: var(--gold); color: var(--text); }
.safety-checklist li:nth-child(4) .shield { background: var(--success); color: #FFFFFF; }

.safety-checklist li strong {
  color: var(--text);
  font-weight: 700;
}

/* --- Management 三列卡片 --- */
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.mgmt-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mgmt-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mgmt-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-2xl);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.mgmt-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.mgmt-icon-uninstall {
  background: var(--danger-subtle);
  color: var(--danger);
}

.mgmt-icon-uninstall::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='1.8'><path d='M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6M10 11v6M14 11v6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  opacity: 1;
}

.mgmt-icon-recover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mgmt-icon-recover::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.8'><path d='M3 12a9 9 0 0115.5-6.3L21 8M21 3v5h-5M21 12a9 9 0 01-15.5 6.3L3 16M3 21v-5h5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  opacity: 1;
}

.mgmt-icon-cli {
  background: var(--success-subtle);
  color: var(--success);
}

.mgmt-icon-cli::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='1.8'><path d='M4 17l6-6-6-6M12 19h8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  opacity: 1;
}

.mgmt-card p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.mgmt-card p .inline-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

.mgmt-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: mgmt-step;
}

.mgmt-steps li {
  padding: 10px 12px 10px 38px;
  position: relative;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  counter-increment: mgmt-step;
  border: 1px solid var(--border-line);
}

.mgmt-steps li::before {
  content: counter(mgmt-step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mgmt-steps li strong {
  color: var(--text);
  font-weight: 700;
}

.mgmt-steps li code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

.inline-code-block {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border: 1px solid var(--border-line);
  overflow-x: auto;
  white-space: nowrap;
}

/* ============================================================
   9. Related 相关内容跳转区
   ============================================================ */
.related-section {
  background: var(--bg-2);
  padding: var(--space-6xl) 0;
}

.related-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.related-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid var(--border-line);
  color: inherit;
  padding: 20px 20px 18px;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}

.related-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.related-thumb {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 60%),
    var(--surface-2);
  position: relative;
  overflow: hidden;
}

.related-card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-line);
}

.related-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 12px 0 0;
  transition: color var(--dur) var(--ease);
}

.related-card:hover .related-card-title {
  color: var(--primary);
}

.related-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.related-desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 4px 0 10px;
  flex: 1;
}

.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
  margin-top: auto;
}

.related-card:hover .related-card-link {
  transform: translateX(4px);
  text-decoration: underline;
}

/* ============================================================
   10. FAQ 常见问题 (作用域仅 .faq-wrap)
   ============================================================ */
.faq-section {
  background: var(--bg-3);
  padding: var(--space-6xl) 0;
}

.faq-section .container {
  max-width: var(--container-max);
  padding: 0 var(--space-6);
  margin: 0 auto;
}

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* --- 以下 accordion 样式仅在 .faq-wrap 作用域下生效 --- */
.faq-wrap .docs-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-wrap .accordion-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-line);
  transition: border-color var(--dur-fast) var(--ease);
}

.faq-wrap .accordion-item:hover {
  border-color: var(--primary-subtle);
}

.faq-wrap .accordion-header {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
  font-family: inherit;
}

.faq-wrap .accordion-header:hover {
  background: var(--bg-3);
}

.faq-wrap .accordion-header.active {
  background: var(--primary-subtle);
}

.faq-wrap .accordion-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.faq-wrap .accordion-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}

.faq-wrap .accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-wrap .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-wrap .accordion-content {
  padding: 0 20px 20px;
}

.faq-wrap .accordion-content p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.faq-wrap .accordion-content p strong {
  color: var(--text);
  font-weight: 700;
}

.faq-wrap .accordion-content p code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-line);
}

/* ============================================================
   11. 响应式
   ============================================================ */

/* ≤1024px: metric 2col / workflow 2col / mgmt 2col / related 2col */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .workflow-steps::before {
    display: none;
  }

  .management-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .monitor-hero-title {
    font-size: 38px;
  }
}

/* ≤768px: 所有 2/3/4 col grid → 1 col，section padding 减半，hero 2栏 stack */
@media (max-width: 768px) {
  .breadcrumb .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .monitor-hero {
    padding: var(--space-3xl) 0;
  }

  .monitor-hero .container {
    padding: 0 var(--space-4);
  }

  .monitor-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .monitor-hero-title {
    font-size: 30px;
  }

  .monitor-hero-desc {
    font-size: 15px;
  }

  .monitor-hero-actions {
    flex-direction: column;
  }

  .monitor-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .monitor-hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .m-stat-value {
    font-size: 24px;
  }

  .mp-row {
    grid-template-columns: 80px 1fr 48px;
    gap: 10px;
  }

  .metrics-section {
    padding: var(--space-3xl) 0;
  }

  .metrics-section .container {
    padding: 0 var(--space-4);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-4xl);
  }

  .section-title {
    font-size: 26px;
  }

  .workflow-section {
    padding: var(--space-3xl) 0;
  }

  .workflow-section .container {
    padding: 0 var(--space-4);
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .threshold-section {
    padding: var(--space-3xl) 0;
  }

  .threshold-section .container {
    padding: 0 var(--space-4);
  }

  .threshold-table thead th {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .threshold-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .threshold-table-wrap {
    overflow-x: auto;
  }

  .threshold-table {
    min-width: 600px;
  }

  .deploy-section {
    padding: var(--space-3xl) 0;
  }

  .deploy-section .container {
    padding: 0 var(--space-4);
  }

  .oneclick-card {
    padding: 24px;
    margin-bottom: var(--space-4xl);
  }

  .oneclick-title {
    font-size: 19px;
  }

  .os-tabs {
    gap: 8px;
  }

  .os-tab {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .cmd-box {
    flex-direction: column;
  }

  .cmd-copy {
    width: 100%;
    justify-content: center;
  }

  .deploy-steps {
    padding-left: 52px;
  }

  .deploy-step-marker {
    left: -36px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .deploy-steps::before {
    left: 13px;
    top: 14px;
  }

  .deploy-step-content {
    padding: 16px;
    margin-top: 14px;
    margin-bottom: 28px;
  }

  .code-block pre {
    padding: 12px;
  }

  .code-block pre code {
    font-size: 12px;
    line-height: 1.7;
  }

  .management-section {
    padding: var(--space-3xl) 0;
  }

  .management-section .container {
    padding: 0 var(--space-4);
  }

  .menu-card {
    margin-bottom: var(--space-4xl);
  }

  .menu-option {
    flex-direction: column;
    gap: var(--space-2);
  }

  .menu-option-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .management-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .related-section {
    padding: var(--space-3xl) 0;
  }

  .related-section .container {
    padding: 0 var(--space-4);
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .faq-section {
    padding: var(--space-3xl) 0;
  }

  .faq-section .container {
    padding: 0 var(--space-4);
  }

  .faq-wrap .accordion-header {
    padding: 14px 16px;
  }

  .faq-wrap .accordion-title {
    font-size: 15px;
  }

  .faq-wrap .accordion-content {
    padding: 0 16px 16px;
  }
}

/* ≤480px: 进一步压缩间距与字号 */
@media (max-width: 480px) {
  .monitor-hero-title {
    font-size: 26px;
  }

  .oneclick-card {
    padding: 18px;
    border-radius: var(--radius-xl);
  }

  .oneclick-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .deploy-steps {
    padding-left: 44px;
  }

  .deploy-step-marker {
    left: -28px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .deploy-steps::before {
    left: 11px;
  }

  .menu-card-head {
    padding: 14px;
  }

  .menu-option {
    padding: 14px;
  }

  .mgmt-card {
    padding: 18px;
  }

  .mgmt-card-title {
    font-size: 16px;
  }

  .mgmt-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
  }
}

/* ========== v5 缺失类补齐（last patch） ========== */
.cmd-copy-text { font-size: 13px; font-weight: 600; line-height: 1; color: #FFFFFF; }
.related-card-desc {
  font-size: 13px; line-height: 1.65; color: var(--text-muted);
  margin: 6px 0 14px;
}
