/* ============================================================
   VPNBN · nodes.css
   全球节点页(servers.html)专属样式。
   只补充 base.css / components.css 未覆盖的页面结构,
   颜色一律引用 :root 设计令牌。
   ============================================================ */

:root{
  /* 旗帜补充色(仅本页 SVG symbol 使用) */
  --flag-navy:#1B3A6B;
  --candy-honey-ink:#A85A20;
  /* 遮罩渐变用的纯黑,只作用于 mask,不参与任何视觉配色 */
  --nodes-mask:rgba(0,0,0,.8);
}

/* SVG symbol 定义容器:不参与布局、不拦截指针 */
.defs{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
  pointer-events:none;
}

/* ------------------------------------------------------------
   页首
   ------------------------------------------------------------ */
.nodes-hero{
  position:relative;
  overflow-x:clip;
  max-width:100%;
  padding-top:60px;
  padding-bottom:96px;
  background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 46%,var(--bg) 100%);
}
.nodes-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(var(--border-soft) 1px,transparent 1.2px);
  background-size:24px 24px;
  opacity:.6;
  pointer-events:none;
  z-index:0;
  -webkit-mask-image:linear-gradient(180deg,var(--nodes-mask),transparent 76%);
  mask-image:linear-gradient(180deg,var(--nodes-mask),transparent 76%);
}
.nodes-hero__deco{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  width:min(1080px,104%);
  height:auto;
  opacity:.55;
  pointer-events:none;
  z-index:0;
}
.nodes-hero__wave{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  width:100%;
  height:60px;
  display:block;
  pointer-events:none;
  z-index:1;
}
.nodes-hero__inner{
  position:relative;
  z-index:2;
}
.nodes-hero__copy{
  max-width:840px;
  margin:0 auto;
  text-align:center;
}
.nodes-hero__copy h1{margin:0}
.nodes-hero__lead{
  margin:18px auto 0;
  max-width:700px;
  color:var(--text-muted);
  font-size:17.5px;
  line-height:1.68;
}
.nodes-hero .btn-row{
  justify-content:center;
  margin-top:26px;
}
.nodes-hero__note{
  margin:20px 0 0;
  font-size:13.5px;
  color:var(--text-muted);
}

/* ------------------------------------------------------------
   事实数据条(嵌在页首底部)
   ------------------------------------------------------------ */
.nodes-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  max-width:1000px;
  margin:40px auto 0;
  background:var(--border-soft);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  overflow:hidden;
  box-shadow:0 22px 46px -32px var(--sh-teal-12);
}
.nodes-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  padding:20px 14px;
  background:var(--bg-panel);
  text-align:center;
}
.nodes-stat__num{
  display:inline-flex;
  align-items:baseline;
  gap:2px;
  font-family:var(--font-mono);
  font-size:clamp(21px,2.2vw,28px);
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--accent-dark);
  font-variant-numeric:tabular-nums;
}
.nodes-stat__num--word{
  font-size:clamp(16px,1.5vw,19px);
  color:var(--text);
}
.nodes-stat__label{
  font-size:13.5px;
  color:var(--text-muted);
}

/* ------------------------------------------------------------
   地区跳转
   ------------------------------------------------------------ */
.nodes-jump{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 34px;
}
.nodes-jump a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 18px;
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  border:1px solid var(--border);
  font-size:14px;
  font-weight:600;
  color:var(--text-muted);
  text-decoration:none;
  transition:color .2s,border-color .2s,background .2s,transform .2s;
}
.nodes-jump a:hover{
  color:var(--accent-dark);
  border-color:var(--accent);
  background:var(--glass-strong);
  transform:translateY(-2px);
}

/* ------------------------------------------------------------
   地区分组
   ------------------------------------------------------------ */
.nodes-region{margin-top:44px}
.nodes-region:first-of-type{margin-top:0}
.nodes-region__head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 14px;
  margin:0 0 8px;
}
.nodes-region__head h3{margin:0}
.nodes-region__count{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--text-muted);
}
.nodes-region__note{
  margin:0 0 16px;
  max-width:820px;
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.72;
}

/* 表格行内旗帜 */
.row-flag svg{
  display:block;
  width:22px;
  height:16px;
  flex:0 0 auto;
  border:1px solid var(--border);
  border-radius:3px;
  overflow:hidden;
  background:var(--text-invert);
}

/* ------------------------------------------------------------
   线路类型说明卡
   ------------------------------------------------------------ */
.line-type-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.line-type-card{
  --lc:var(--accent);
  --lc-soft:var(--accent-soft);
  display:flex;
  flex-direction:column;
  min-width:0;
  border-radius:var(--r-card-lg);
  background:var(--bg-panel);
  border:1px solid var(--border);
  box-shadow:0 22px 46px -32px var(--sh-accent-14),inset 0 1px 0 var(--text-invert);
  overflow:hidden;
  transition:transform .22s,box-shadow .22s;
}
.line-type-card:hover{
  transform:translateY(-4px);
  box-shadow:0 30px 54px -30px var(--sh-accent-28),inset 0 1px 0 var(--text-invert);
}
.line-type-card--relay{
  --lc:var(--success);
  --lc-soft:var(--tint-teal-soft);
}
.line-type-card--direct{
  --lc:var(--candy-honey-ink);
  --lc-soft:var(--tint-honey-soft);
}
.line-type-card__fig{
  display:grid;
  place-items:center;
  padding:24px 22px 20px;
  border-bottom:1px solid var(--border-soft);
  background:linear-gradient(165deg,var(--lc-soft) 0%,var(--bg-panel) 92%);
}
.line-type-card__fig svg{
  display:block;
  width:100%;
  max-width:230px;
  height:auto;
}
.line-type-card__body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:22px 24px 26px;
}
.line-type-card__tag{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 12px;
  border-radius:var(--r-pill);
  background:var(--lc-soft);
  color:var(--lc);
  font-size:12.5px;
  font-weight:700;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.line-type-card__body h3{margin:0}
.line-type-card__body p{
  margin:0;
  color:var(--text-muted);
  font-size:14.5px;
  line-height:1.75;
}
.line-type-card__facts{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:2px 0 0;
}
.line-type-card__facts li{
  position:relative;
  padding-left:18px;
  font-size:14px;
  line-height:1.65;
  color:#2C3352;
}
.line-type-card__facts li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.62em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--lc);
  opacity:.8;
}

/* ------------------------------------------------------------
   覆盖范围墙
   ------------------------------------------------------------ */
.coverage-wall{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
}
.coverage-item{
  min-width:0;
  padding:18px 20px 20px;
  border-radius:var(--r-card);
  background:var(--bg-panel);
  border:1px solid var(--border);
  box-shadow:inset 0 1px 0 var(--text-invert),0 16px 36px -30px var(--sh-neutral-10);
  transition:transform .22s,box-shadow .22s;
}
.coverage-item:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 44px -30px var(--sh-teal-12),inset 0 1px 0 var(--text-invert);
}
.coverage-item h3{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  font-size:16px;
}
.coverage-item h3 svg{
  flex:0 0 auto;
  color:var(--accent);
}
.coverage-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.coverage-tags span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 11px;
  border-radius:var(--r-pill);
  background:var(--bg-panel2);
  border:1px solid var(--border-soft);
  font-size:12.5px;
  color:var(--text);
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ------------------------------------------------------------
   帮助中心入口
   ------------------------------------------------------------ */
.nodes-faq-more{
  margin:24px 0 0;
  text-align:center;
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width:1024px){
  .line-type-grid{grid-template-columns:minmax(0,1fr)}
  .line-type-card__fig{padding:20px}
  .line-type-card__fig svg{max-width:200px}
}
@media (max-width:768px){
  .nodes-hero{padding-top:44px;padding-bottom:84px}
  .nodes-hero__deco{bottom:44px;opacity:.4}
  .nodes-hero__lead{font-size:16.5px}
  .nodes-stats{margin-top:32px}
  .nodes-jump{margin-bottom:26px}
  .nodes-region{margin-top:34px}
}
@media (max-width:640px){
  .nodes-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nodes-stat{padding:16px 10px}
  .nodes-hero__deco{display:none}
  .nodes-hero{padding-bottom:70px}
}