/* ==========================================================================
   VPNDT · home.css
   首页专属样式:首屏装置在窄屏的兜底、线路状态组件、首页区块微调
   设计值全部引用 base.css 的 :root 令牌,不新增硬编码颜色
   ========================================================================== */

/* ---------- 首屏装置:窄屏兜底与层级 ---------- */
.hero .stage{min-width:0}
.hero .window{min-width:0}
.hero .panes{min-width:0}
.hero .pane{min-width:0}
.hero .seg{white-space:nowrap}

@media (max-width:900px){
  .hero .stage{height:320px}
  .hero .window{height:320px}
}

@media (max-width:640px){
  .hero .stage{height:260px}
  .hero .window{height:260px}
  .hero .chrome{grid-template-columns:auto 1fr auto;gap:10px;padding:0 12px}
  .hero .search{width:auto;min-width:0}
  .hero .seg{top:-20px}
}

/* ---------- 线路状态组件(servers.js 注入,样式随本页设计系统给出) ---------- */
.server-status{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  min-width:0;
  margin-bottom:22px;
}
.server-status:empty{display:none}

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

.server-status .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;
  border-radius:var(--r-card);
  background:var(--bg-panel);
  border:1px solid var(--border);
  box-shadow:var(--shadow-card);
  font-size:13px;
}

.server-status .srv-dot{
  width:8px;height:8px;border-radius:50%;flex:none;
  background:var(--success);
  box-shadow:0 0 0 3px var(--success-10);
}

.server-status .srv-flag{
  width:20px;height:14px;border-radius:3px;flex:none;
  box-shadow:0 0 0 1px var(--ink-10);
}

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

.server-status .srv-type{
  display:inline-flex;align-items:center;height:20px;padding:0 8px;
  border-radius:var(--r-pill);
  font-size:11px;font-weight:600;line-height:1;white-space:nowrap;
  color:var(--accent);
  border:1px solid var(--accent-22);
  background:var(--accent-08);
  max-width:100%;overflow:hidden;
}

.server-status .srv-ms,
.server-status .srv-bw{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-size:12px;
  white-space:nowrap;
  color:var(--muted);
}

.server-status .srv-ms b,
.server-status .srv-bw b{color:var(--text);font-weight:600}

@media (max-width:900px){
  .server-status .srv-grid{grid-template-columns:1fr}
}

/* ---------- 首页区块微调 ---------- */
.hero + .after .factband strong{font-variant-numeric:tabular-nums}

.home-note{
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
}

.plan__note{min-height:0}

@media (max-width:640px){
  .plan__note{font-size:12.5px}
}

/* 表格内的标签与胶囊在窄屏不撑列 */
.data-table .tag,
.data-table .pill{max-width:100%;overflow:hidden}