/* ==========================================================================
   VPNDM — nodes.css（线路页专属）
   首屏总览 / 线路类型速览卡 / 说明段 / 选线建议 / 地区徽章墙 / 底部 CTA 带
   ========================================================================== */

/* ---------- 首屏 ---------- */
.nodes-hero{
  position:relative;
  overflow-x:clip;
  max-width:100%;
  padding-top:66px;
  padding-bottom:64px;
  background:linear-gradient(180deg,var(--bg-top) 0%,var(--bg-bottom) 100%);
}
.nodes-hero-in{position:relative;z-index:1}
.nodes-hero h1{
  max-width:760px;
  margin-top:20px;
  font-size:clamp(34px,4.6vw,58px);
  font-weight:900;
  letter-spacing:-.03em;
  line-height:1.14;
}
.nodes-hero h1 .no-break{color:var(--accent)}
.nodes-hero-lede{
  max-width:720px;
  margin-top:20px;
  font-size:16.5px;
  line-height:1.8;
}
.nodes-hero-lede strong{color:var(--ink)}
.nodes-hero-facts{
  display:flex;
  flex-wrap:wrap;
  gap:12px 34px;
  margin-top:26px;
  padding:16px 20px;
  border:1px solid var(--border);
  border-radius:var(--r);
  background:var(--panel);
  box-shadow:var(--shadow-soft);
}
.nodes-hero-facts li{display:flex;flex-direction:column;gap:2px;min-width:0}
.nodes-hero-facts b{
  font-family:var(--font-mono);
  font-size:17px;
  font-weight:600;
  color:var(--ink);
  letter-spacing:-.02em;
  white-space:nowrap;
}
.nodes-hero-facts span{font-size:11.5px;color:var(--muted)}
.nodes-hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.nodes-hero-note{margin-top:16px;font-size:13px;color:var(--muted)}

/* ---------- 线路类型速览 ---------- */
.type-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.type-card{
  display:flex;
  flex-direction:column;
  background:var(--panel);
  border:1px solid var(--accent);
  border-radius:var(--r);
  padding:20px;
  box-shadow:0 18px 36px -16px var(--accent-glow-strong),inset 0 1px 0 var(--hl);
}
.type-card.is-relay{
  border-color:var(--coral);
  box-shadow:0 18px 36px -16px var(--coral-glow),inset 0 1px 0 var(--hl);
}
.type-card.is-direct{
  border-color:var(--ink-3);
  box-shadow:0 18px 36px -16px rgba(21,20,42,.18),inset 0 1px 0 var(--hl);
}
.type-head{display:flex;align-items:center;gap:9px}
.type-tag{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:800;
  color:var(--ink);
  letter-spacing:-.01em;
}
.type-dot{
  width:7px;
  height:7px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--accent);
}
.type-card.is-relay .type-dot{background:var(--coral)}
.type-card.is-direct .type-dot{background:var(--ink-3)}
.type-line{
  height:5px;
  margin-top:14px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--accent),var(--coral));
}
.type-card.is-relay .type-line{background:linear-gradient(90deg,var(--coral),var(--warn))}
.type-card.is-direct .type-line{background:linear-gradient(90deg,var(--ink-3),var(--border-strong))}
.type-desc{margin-top:14px;font-size:14px;line-height:1.75;color:var(--muted)}
.type-meta{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  color:var(--muted);
}
.type-meta li{display:flex;gap:7px}
.type-meta li::before{
  content:"";
  flex-shrink:0;
  width:5px;
  height:5px;
  margin-top:7px;
  border-radius:50%;
  background:var(--accent);
}
.type-card.is-relay .type-meta li::before{background:var(--coral)}
.type-card.is-direct .type-meta li::before{background:var(--ink-3)}

/* ---------- 表格补充 ---------- */
.table-note{
  margin-top:14px;
  font-size:12.5px;
  line-height:1.7;
  color:var(--muted-2);
}
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.data-table caption{text-align:left}

/* ---------- 原理说明段 ---------- */
.explain{
  max-width:860px;
  margin:0 auto 26px;
  padding:22px 24px;
  background:var(--panel);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--r);
  box-shadow:var(--shadow-soft);
}
.explain:last-child{margin-bottom:0}
.explain:nth-of-type(2){border-left-color:var(--coral)}
.explain:nth-of-type(3){border-left-color:var(--ink-3)}
.explain h3{margin-bottom:12px;font-size:18px}
.explain p{font-size:14.5px;line-height:1.82}
.explain p + p{margin-top:11px}
.explain strong{color:var(--ink)}

/* ---------- 选线建议 ---------- */
.pick-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.pick-card{
  display:flex;
  flex-direction:column;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:20px;
  box-shadow:var(--shadow-soft);
}
.pick-card:nth-child(1){border-color:var(--accent)}
.pick-card:nth-child(2){border-color:var(--coral)}
.pick-card:nth-child(3){border-color:var(--accent)}
.pick-card:nth-child(4){border-color:var(--coral)}
.pick-card:nth-child(5){border-color:var(--ink-3)}
.pick-card h3{font-size:16.5px}
.pick-tag{
  margin-top:8px;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:600;
  color:var(--accent-dark);
}
.pick-card:nth-child(2) .pick-tag,
.pick-card:nth-child(4) .pick-tag{color:var(--coral)}
.pick-card:nth-child(5) .pick-tag{color:var(--ink-3)}
.pick-card > p:not(.pick-tag){margin-top:12px;font-size:14px;line-height:1.75}
.pick-card ul{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  color:var(--muted);
}
.pick-card ul li{display:flex;gap:7px}
.pick-card ul li::before{
  content:"";
  flex-shrink:0;
  width:5px;
  height:5px;
  margin-top:7px;
  border-radius:50%;
  background:var(--accent);
}
.pick-card:nth-child(2) ul li::before,
.pick-card:nth-child(4) ul li::before{background:var(--coral)}
.pick-card:nth-child(5) ul li::before{background:var(--ink-3)}

/* ---------- 地区徽章墙 ---------- */
.region-wall{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  max-width:960px;
  margin:0 auto;
}
.region-wall li{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid var(--border);
  border-radius:var(--r);
  background:var(--panel);
  color:var(--ink-2);
  font-size:12.5px;
  font-weight:600;
}
.region-wall li:nth-child(3n+1){border-color:var(--accent)}
.region-wall li:nth-child(3n+2){border-color:var(--coral)}
.region-wall li:nth-child(3n){border-color:var(--ink-line)}
.wall-note{
  max-width:760px;
  margin:22px auto 0;
  text-align:center;
  font-size:12.5px;
  line-height:1.7;
  color:var(--muted-2);
}

/* ---------- FAQ 补充 ---------- */
.faq-more{margin-top:20px;text-align:center;font-size:13.5px}
.faq-more a{color:var(--accent-dark);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* ---------- 底部 CTA 带 ---------- */
.cta-band-sec{padding-top:0}
.cta-band{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:22px;
  padding:28px 26px;
  border-radius:var(--r);
  background:linear-gradient(135deg,var(--ink-2),var(--ink-deep));
  color:var(--on-dark);
  position:relative;
  overflow:hidden;
}
.cta-band::before{
  content:"";
  position:absolute;
  top:0;
  right:12%;
  left:12%;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--accent),var(--coral),transparent);
  opacity:.8;
}
.cta-band-copy{flex:1 1 340px;min-width:0}
.cta-band h2{font-size:clamp(19px,2.4vw,24px);color:var(--on-dark)}
.cta-band p{margin-top:10px;font-size:13.5px;line-height:1.75;color:var(--on-dark-muted)}
.cta-band-act{display:flex;flex-wrap:wrap;gap:12px;flex-shrink:0}
.cta-band .btn-primary{background:var(--panel);border-color:var(--panel);color:var(--ink)}
.cta-band .btn-primary:hover{background:var(--on-dark);border-color:var(--on-dark)}
.cta-band .btn-ghost{color:var(--on-dark);border-color:var(--coral)}

/* ---------- 跳转链接（a11y） ---------- */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:200;
  padding:10px 16px;
  background:var(--ink);
  color:var(--panel);
  border-radius:var(--r);
  font-size:13px;
  font-weight:700;
}
.skip-link:focus{left:12px;top:12px}

/* ---------- 响应式 ---------- */
@media (max-width:980px){
  .type-grid{grid-template-columns:1fr;max-width:560px;margin-inline:auto}
  .pick-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .nodes-hero{padding-top:48px;padding-bottom:48px}
  .nodes-hero h1{font-size:clamp(28px,7.4vw,40px)}
  .nodes-hero-lede{font-size:15px}
  .nodes-hero-facts{gap:10px 22px;padding:14px 16px}
  .nodes-hero-cta{flex-direction:column}
  .nodes-hero-cta .btn{width:100%}
  .explain{padding:18px 18px}
  .cta-band{padding:22px 18px}
  .cta-band-act{width:100%}
  .cta-band-act .btn{flex:1 1 150px}
}
@media (max-width:640px){
  .pick-grid{grid-template-columns:1fr;max-width:560px;margin-inline:auto}
  .region-wall{gap:8px}
  .region-wall li{font-size:12px;min-height:30px;padding:0 10px}
  .cta-band-act{flex-direction:column}
  .cta-band-act .btn{width:100%}
}