/* ==========================================================================
   VPNDN — home.css
   首页专属:线路状态组件 / 分区氛围光晕 / 小节收尾链接
   ========================================================================== */

/* 分区氛围光晕(纯装饰,可参与视差;父级需 .has-decor) */
.sec-halo{
  position:absolute;left:0;right:0;top:-40px;
  width:min(980px,94vw);height:420px;margin-inline:auto;
  border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--accent) 7%,transparent) 0%,transparent 70%);
}
.sec.has-decor > .wrap{position:relative;z-index:1}

/* 小节收尾链接 */
.sec-more{margin-top:22px}

/* 为什么选 VPNDN:步骤列表限宽,保证行长可读 */
.why-steps{max-width:840px}

/* ---------------------------------------------------------- 线路状态段 */
.status-block{
  position:relative;margin-top:26px;
  max-width:100%;overflow:hidden;
}
.status-note{margin-bottom:14px;font-size:13.5px;line-height:1.75;color:var(--muted)}

/* 容器必须夹住网格:留在文档流里占位,注入后自己长出高度 */
#server-status.server-status{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;margin:0;padding:2px;
  position:static;max-width:100%;overflow:hidden;
}
#server-status.server-status:empty{display:none}

.srv-row{
  display:flex;align-items:center;gap:10px;min-width:0;
  padding:10px 14px;border-radius:var(--r-md);
  background:var(--panel);
  box-shadow:inset 0 0 0 1px var(--border),var(--shadow-lift);
  font-size:13px;color:var(--muted);
}
.srv-dot{
  width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent);
  animation:srv-pulse 2.6s ease-in-out infinite;
}
.srv-flag{display:block;flex:none;border-radius:3px;box-shadow:var(--shadow-lift)}
.srv-name{
  flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-weight:600;color:var(--ink);
}
.srv-type{
  display:inline-flex;align-items:center;flex:none;height:20px;padding:0 9px;
  border-radius:var(--r-pill);white-space:nowrap;
  background:color-mix(in srgb,var(--accent) 12%,var(--white));
  color:var(--accent-dark);font:600 11px/1 var(--font-mono);
}
.srv-ms{
  flex:none;min-width:52px;text-align:right;
  font:600 12.5px/1 var(--font-mono);color:var(--ink);
}
.srv-bw{
  flex:none;min-width:68px;text-align:right;
  font:500 12px/1 var(--font-mono);color:var(--muted-2);
}

@keyframes srv-pulse{0%,100%{opacity:.45}50%{opacity:1}}

@media (max-width:768px){
  #server-status.server-status{grid-template-columns:minmax(0,1fr)}
  .srv-bw{min-width:58px}
}
@media (max-width:640px){
  .srv-row{gap:8px;padding:9px 12px;font-size:12.5px}
  .srv-name{white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}