/* ==========================================================================
   VPNAW — home.css（首页专属）
   线路状态容器（servers.js 注入行）在本站的排版
   ========================================================================== */

/* ---- 线路状态容器：留在文档流里占位、夹住网格，禁止绝对定位盖住后文 ---- */
#server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  overflow:hidden;
  max-width:100%;
}
#server-status:empty{display:none}

.srv-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:46px;
  padding:0 16px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--r-tile);
  box-shadow:inset 0 1px 0 var(--white);
}

.srv-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--success);
  animation:srvPulse 2.4s ease-in-out infinite;
}
@keyframes srvPulse{
  0%,100%{opacity:.5;transform:scale(.86)}
  50%{opacity:1;transform:scale(1.06)}
}

.srv-flag{
  width:20px;
  height:14px;
  flex:0 0 20px;
  display:block;
  border-radius:2px;
}

.srv-name{
  min-width:0;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.srv-type{
  flex-shrink:0;
  padding:1px 8px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--panel-2);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.04em;
  color:var(--muted);
  white-space:nowrap;
}

.srv-ms{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:700;
  color:var(--text);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.srv-bw{
  min-width:6ch;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:nowrap;
}

@media (max-width:900px){
  #server-status{grid-template-columns:minmax(0,1fr)}
}

@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}