/* ============================================================
   VPNTea · nodes.css
   服务器目录页：线路索引纸、地区表、接入方式账册与选线流程
   ============================================================ */

.node-hero{
  position:relative;
  overflow-x:clip;
  border-bottom:1px solid var(--border);
  background:var(--bg);
}

.node-hero-grid{
  min-height:620px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,.86fr);
  gap:clamp(36px,6vw,88px);
  align-items:center;
  padding-top:clamp(64px,8vw,108px);
  padding-bottom:clamp(64px,8vw,108px);
}

.node-hero-grid>*{min-width:0}

.node-hero-copy h1{
  margin-top:16px;
  font-size:clamp(48px,5.2vw,70px);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.018em;
}

.node-hero-copy h1 span{color:var(--accent)}

.node-hero-lead{
  max-width:650px;
  margin-top:22px;
  color:var(--muted);
  font-size:17px;
  line-height:1.85;
}

.node-hero-lead strong{
  color:var(--ink);
  font-weight:750;
}

.node-facts{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}

.node-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.route-sheet{
  position:relative;
  min-height:470px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:calc(var(--r) + 2px);
  overflow:hidden;
}

.route-sheet::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(var(--border) 1px,transparent 1px),
    linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size:32px 32px;
  opacity:.45;
  pointer-events:none;
}

.route-sheet-head,
.route-sheet-foot{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--muted);
}

.route-sheet-head{border-bottom:1px solid var(--border)}
.route-sheet-foot{border-top:1px solid var(--border)}

.route-sheet-foot span{
  display:inline-flex;
  align-items:center;
  min-width:0;
}

.route-diagram{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:auto;
}

.route-axis{
  fill:none;
  stroke:var(--border);
  stroke-width:1.5;
  stroke-dasharray:5 7;
}

.route-curve{
  fill:none;
  stroke:var(--accent);
  stroke-width:2;
  stroke-linecap:round;
}

.route-curve-alt{
  stroke:var(--accent-dark);
  stroke-dasharray:5 8;
}

.route-ring{
  fill:var(--bg-panel);
  stroke:var(--accent);
  stroke-width:1.4;
}

.route-point{fill:var(--accent)}

.route-label{
  fill:var(--muted);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.1em;
  text-anchor:middle;
}

.route-ledger{
  border-top:1px solid var(--border);
}

.route-ledger-row{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:34px;
  padding-top:42px;
  padding-bottom:42px;
  border-bottom:1px solid var(--border);
}

.route-ledger-row>*{min-width:0}

.route-ledger-row:nth-child(even){
  grid-template-columns:minmax(0,1fr) 190px;
}

.route-ledger-row:nth-child(even) .route-ledger-mark{
  order:2;
  align-items:flex-end;
  text-align:right;
}

.route-ledger-mark{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
  color:var(--accent-dark);
}

.route-ledger-mark svg{
  width:58px;
  height:58px;
  padding:9px;
  border:1px solid var(--accent);
  border-radius:var(--r);
}

.route-ledger-code{
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--accent-dark);
}

.route-ledger-copy h3{
  font-size:clamp(20px,2vw,26px);
  margin-bottom:14px;
}

.route-ledger-copy p{
  max-width:760px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:15px;
  line-height:1.95;
}

.route-ledger-copy p:last-of-type{margin-bottom:0}

.route-ledger-stamp{
  display:inline-flex;
  max-width:100%;
  margin-top:18px;
  padding:5px 10px;
  border:1px solid var(--border);
  border-radius:var(--r-s);
  color:var(--accent-dark);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.09em;
  overflow-wrap:anywhere;
}

.node-steps{
  max-width:820px;
}

.node-steps>li{
  padding-bottom:27px;
  border-bottom:1px solid var(--border);
}

.node-steps>li:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.method-note{
  margin-top:48px;
  padding:30px;
  background:var(--bg-panel);
  border:1px solid var(--accent);
  border-radius:calc(var(--r) + 2px);
}

.method-note-title{
  margin-bottom:10px;
  color:var(--accent-dark);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
}

.method-note p{
  max-width:780px;
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
}

.method-note-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

@media (max-width:1020px){
  .node-hero-grid{
    grid-template-columns:1fr;
    min-height:0;
  }

  .route-sheet{
    width:100%;
    min-height:430px;
  }
}

@media (max-width:768px){
  .node-hero-grid{
    padding-top:52px;
    padding-bottom:56px;
  }

  .node-hero-copy h1{
    font-size:clamp(34px,9vw,40px);
    line-height:1.12;
  }

  .node-hero-lead{
    font-size:15.5px;
  }

  .route-sheet{
    min-height:360px;
  }

  .route-ledger-row,
  .route-ledger-row:nth-child(even){
    grid-template-columns:1fr;
    gap:18px;
  }

  .route-ledger-row:nth-child(even) .route-ledger-mark{
    order:0;
    align-items:flex-start;
    text-align:left;
  }

  .route-ledger-mark{
    flex-direction:row;
    align-items:center;
  }

  .route-ledger-mark svg{
    width:48px;
    height:48px;
  }
}

@media (max-width:640px){
  .node-facts{
    align-items:flex-start;
  }

  .route-sheet{
    min-height:300px;
  }

  .route-sheet-head,
  .route-sheet-foot{
    padding:14px 15px;
    font-size:10px;
  }

  .route-sheet-foot{
    flex-wrap:wrap;
  }

  .route-label{
    font-size:9px;
  }

  .method-note{
    padding:24px 20px;
  }
}