/* ============================================================
   VPNLS · nodes.css
   线路列表页(locations.html)专属样式
   仅补齐本页需要的版式,颜色/圆角/阴影全部引用 :root 令牌
   ============================================================ */

/* ---------- 首屏 ---------- */
.hero--nodes {
  padding-bottom: 26px;
}

.hero-legend {
  max-width: 940px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- 正文节奏 ---------- */
.nodes-article {
  padding-top: 44px;
}

.nodes-sec {
  margin-bottom: 54px;
}

.nodes-sec:last-of-type {
  margin-bottom: 12px;
}

/* ---------- 覆盖概览 ---------- */
.cover-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.cover-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 12.5px;
}

.cover-chip-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cover-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  background: var(--amber-10);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- 表格补充 ---------- */
.mark-part {
  color: var(--warn);
  font-weight: 600;
}

/* ---------- 线路类型 ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.type-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.type-card h3 {
  font-size: 18px;
}

.type-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.type-meter-wrap {
  margin-top: auto;
  padding-top: 6px;
}

.type-meter-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.type-meter {
  display: flex;
  gap: 4px;
}

.type-meter span {
  flex: 1;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--track);
}

.type-meter span.is-on {
  background: var(--accent);
}

.type-meter span.is-on-amber {
  background: var(--amber);
}

/* ---------- 选线建议 ---------- */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advice-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.advice-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  padding: 0 9px;
  border: 1px solid var(--accent-18);
  border-radius: var(--r-pill);
  background: var(--accent-06);
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.advice-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.advice-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 收尾 ---------- */
.nodes-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-panel);
}

.nodes-cta-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.nodes-cta-copy .kicker {
  margin-bottom: 8px;
}

.nodes-cta-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 26px);
}

.nodes-cta-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.nodes-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .type-grid,
  .advice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nodes-article {
    padding-top: 32px;
  }

  .nodes-sec {
    margin-bottom: 40px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nodes-cta {
    padding: 20px;
  }

  .nodes-cta-actions {
    width: 100%;
  }

  .nodes-cta-actions .btn {
    flex: 1 1 auto;
  }
}