/* ==========================================================================
   VPNFH — 首页专属样式
   仅补充线路状态组件容器与行样式;其余全部沿用 base.css / components.css
   ========================================================================== */

/* ---------- 线路状态组件(数据由 servers.js 注入,页面不手写任何节点数据) ---------- */
#server-status{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  margin:0 0 var(--sp-6);
}
#server-status:empty{display:none}

.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0;
  max-width:100%;
}

.srv-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  max-width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-panel);
  box-shadow:var(--shadow-pill);
}

.srv-dot{
  flex:none;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--success-light);
  box-shadow:0 0 0 3px var(--success-halo);
  animation:srv-breathe 2.6s ease-in-out infinite;
}

@keyframes srv-breathe{
  0%,100%{opacity:.55;transform:scale(.86)}
  50%{opacity:1;transform:scale(1)}
}

.srv-flag{
  flex:none;
  width:18px;
  height:12px;
  border-radius:2px;
  overflow:hidden;
  box-shadow:0 0 0 1px var(--border);
}
.srv-flag svg,
.srv-flag img{
  display:block;
  width:100%;
  height:100%;
}

.srv-name{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13.5px;
  color:var(--text);
}

.srv-type{
  flex:none;
  padding:2px 8px;
  border-radius:var(--r-pill);
  border:1px solid var(--accent-line);
  background:var(--accent-soft-2);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.02em;
  white-space:nowrap;
  color:var(--accent-dark);
}

.srv-ms,
.srv-bw{
  flex:none;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.02em;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  color:var(--text-muted);
}
.srv-ms{
  min-width:52px;
  text-align:right;
  color:var(--success);
}
.srv-bw{
  min-width:62px;
  text-align:right;
}

/* ---------- 正文补充块:窄栏说明段落 ---------- */
.net-notes{
  margin-top:var(--sp-6);
  padding-inline:0;
  font-size:15px;
  line-height:1.8;
  color:var(--text-muted);
}
.net-notes > * + *{margin-top:14px}
.net-notes h3{
  margin-top:var(--sp-5);
  font-size:19px;
  color:var(--text);
}
.net-notes h3:first-child{margin-top:0}
.net-notes strong{color:var(--text)}
.net-notes a{
  color:var(--accent-dark);
  text-decoration:underline;
  text-underline-offset:2px;
  overflow-wrap:anywhere;
}
.net-more{margin-top:var(--sp-5)}

.wrap > .net-notes{
  max-width:840px;
}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .server-status{grid-template-columns:1fr}
}

@media (max-width:760px){
  .srv-row{padding:11px 12px;gap:8px}
  .srv-name{font-size:12.5px}
  .srv-ms,
  .srv-bw{font-size:11px}
  .srv-ms{min-width:44px}
  .srv-bw{min-width:52px}
  .net-notes{font-size:14.5px;line-height:1.78}
  .net-notes h3{font-size:17px}
}

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