/* ==========================================================================
   VPNYF — 首页专属样式
   线路状态组件（servers.js 注入）/ 选线说明 / 选择理由网格 / 脚注
   ========================================================================== */

/* ---------- 线路状态 ---------- */
#server-status{
  display:block;
  margin-top:4px;
  margin-bottom:18px;
  overflow:hidden;
}
#server-status .wp-grid{
  max-height:294px;
  overflow:hidden;
}
#server-status:empty{display:none}

.srv-row{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:46px;
  padding:8px 12px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  box-shadow:var(--shadow-row);
  font-size:12.5px;
  line-height:1.4;
  color:var(--text);
}
.srv-dot{
  flex:none;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px var(--success-wash);
  animation:srv-breathe 2.8s ease-in-out infinite;
}
@keyframes srv-breathe{
  0%,100%{opacity:1}
  50%{opacity:.42}
}
.srv-flag{
  flex:none;
  display:inline-flex;
  border-radius:3px;
  overflow:hidden;
}
.srv-flag svg,.srv-flag img{
  width:22px;
  height:15px;
  border-radius:3px;
}
.srv-name{
  min-width:0;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.srv-type{
  flex:none;
  padding:2px 7px;
  border-radius:var(--r-pill);
  background:var(--bg-panel-2);
  color:var(--text-muted);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
}
.srv-ms,.srv-bw{
  flex:none;
  margin-left:auto;
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-size:11.5px;
  font-weight:700;
  color:var(--text-muted);
  white-space:nowrap;
}
.srv-bw{color:var(--text-faint)}

.srv-note{
  margin:0;
  font-size:12.5px;
  line-height:1.75;
  color:var(--text-muted);
}

/* ---------- 选线说明 ---------- */
.node-note{
  margin-top:28px;
  margin-bottom:0;
  max-width:var(--maxw-narrow);
}
.node-note h3{
  margin-bottom:10px;
  font-size:18px;
  font-weight:700;
}
.node-note p{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.85;
  color:var(--text-muted);
}
.node-note p:last-child{margin-bottom:0}

/* ---------- 客户端说明 ---------- */
.dl-note{
  max-width:760px;
  margin:20px auto 0;
  text-align:center;
  font-size:13.5px;
  line-height:1.8;
  color:var(--text-muted);
}

/* ---------- 套餐脚注 ---------- */
.plan-foot{
  max-width:820px;
  margin:20px auto 0;
  text-align:center;
  font-size:13.5px;
  line-height:1.85;
  color:var(--text-muted);
}
.plan-foot b{
  font-family:var(--font-mono);
  font-weight:700;
  color:var(--text);
}

/* ---------- 选择理由 ---------- */
.why-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  gap:16px;
  min-width:0;
}
.why-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.why-card h3{font-size:16.5px}
.why-card p{
  margin:0;
  font-size:13.5px;
  line-height:1.8;
  color:var(--text-muted);
}

/* ---------- 响应式 ---------- */
@media (max-width:760px){
  #server-status{grid-template-columns:1fr}
  .srv-ms,.srv-bw{font-size:11px}
}
@media (max-width:640px){
  .node-note{margin-top:22px}
  .node-note p{font-size:13.5px}
  .plan-foot{text-align:left}
  .dl-note{text-align:left}
}
@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}