/* ==========================================================================
   VPNDU · home.css(首页专属)
   只放首页独有的区块样式:线路状态列表、卖点区微调、事实带节奏。
   首屏装置样式全部来自 base.css,本文件不重复定义。
   ========================================================================== */

/* ===== 事实数据条 ===== */
.sec-tight .stat-line{gap:20px 40px}
.sec-tight .stat-line li{font-size:14.5px}
.sec-tight .stat-line strong{font-size:22px}

/* ===== 线路状态列表(#server-status 容器由 servers.js 填充) ===== */
/* 容器夹住网格:留在文档流里占位,与下一个兄弟用普通间距隔开 */
.server-status{
  display:block;
  position:relative;
  overflow:hidden;
  max-width:100%;
  margin:0;
}
.server-status:empty{display:none}
.server-status .status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
}
.srv-row{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr) auto auto auto;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:11px 14px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:13.5px;
  color:var(--text-muted);
}
.srv-row:hover{border-color:var(--accent)}
.srv-dot{
  width:8px;height:8px;border-radius:50%;flex:none;
  background:var(--cyan);
  box-shadow:0 0 0 3px rgba(var(--cyan-rgb),.22);
  animation:srv-breathe 2.6s ease-in-out infinite;
}
.srv-flag{
  width:20px;height:14px;border-radius:2.5px;overflow:hidden;flex:none;
  box-shadow:0 0 0 1px rgba(var(--text-rgb),.08);
}
.srv-flag svg{width:20px;height:14px;display:block}
.srv-name{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--text);font-weight:600;
}
.srv-type{
  display:inline-flex;align-items:center;
  padding:3px 9px;border-radius:var(--radius-pill);
  font-size:11.5px;font-weight:700;white-space:nowrap;
  background:rgba(var(--accent-rgb),.12);color:var(--accent-dark);
}
.srv-type.is-relay{background:rgba(var(--cyan-rgb),.16);color:var(--cyan-ink)}
.srv-type.is-direct{background:var(--bg-panel2);color:var(--text-muted)}
.srv-ms,.srv-bw{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-size:12.5px;
  white-space:nowrap;
  text-align:right;
}
.srv-ms{color:var(--text)}
.srv-bw{color:var(--cyan-ink);min-width:5.5ch}

@keyframes srv-breathe{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.55;transform:scale(.86)}
}
@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}

/* ===== 卖点区底部按钮与演示面板的间距 ===== */
.feature-split + .btn-row{margin-top:32px}

/* ===== 首页表格与说明段落之间 ===== */
.table-scroll + .prose{margin-top:26px}

/* ===== 响应式 ===== */
@media (max-width:900px){
  .server-status .status-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .srv-row{grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px;font-size:13px}
  .srv-ms,.srv-bw{font-size:12px}
  .srv-bw{display:none}
  .sec-tight .stat-line{gap:14px 26px}
  .sec-tight .stat-line strong{font-size:20px}
}