/* ==========================================================================
   VPNAK — home.css
   首页专属样式：线路状态组件外观 + 首页特有的间距与栅格微调。
   所有颜色/圆角/字体引用 base.css 的 :root 令牌，不写死色值。
   ========================================================================== */

/* ---- 线路状态脚手架容器（servers.js 注入 .srv-* 结构） ---- */
.server-status{
  position:relative;
  display:block;
  overflow:hidden;
  max-width:100%;
  margin:0 0 26px;
}
.server-status:empty{display:none}

.server-status .srv-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-bottom:12px;
}
.server-status .srv-title{
  font-family:var(--font-display);font-size:13px;font-weight:700;
  letter-spacing:.06em;color:var(--muted);
}
.server-status .srv-live{
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;font-weight:700;color:var(--success);
}
.server-status .srv-live i{
  width:7px;height:7px;flex-shrink:0;border-radius:50%;
  background:var(--success);box-shadow:0 0 0 3px var(--success-soft);
  animation:srv-breathe 2.4s ease-in-out infinite;
}
@keyframes srv-breathe{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.82)}
}
@media (prefers-reduced-motion:reduce){
  .server-status .srv-live i{animation:none}
}

.server-status .srv-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;
  min-width:0;
}
.server-status .srv-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;gap:10px 12px;
  min-width:0;
  padding:11px 14px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:0 12px 28px -22px var(--shadow-tint),inset 0 1px 0 var(--highlight);
}
.server-status .srv-dot{
  width:8px;height:8px;flex-shrink:0;border-radius:50%;
  background:var(--success);box-shadow:0 0 0 3px var(--success-soft);
  animation:srv-breathe 2.4s ease-in-out infinite;
}
.server-status .srv-flag{
  width:20px;height:20px;flex-shrink:0;display:block;
  border-radius:50%;box-shadow:0 0 0 1px var(--border);
}
.server-status .srv-name{
  min-width:0;font-size:13.5px;font-weight:600;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.server-status .srv-type{
  font-size:11.5px;font-weight:600;padding:3px 9px;
  border-radius:var(--radius-pill);
  background:var(--bg-panel2);color:var(--muted);
  white-space:nowrap;max-width:100%;overflow:hidden;
}
.server-status .srv-ms{
  font-family:var(--font-mono);font-size:12.5px;font-weight:600;
  color:var(--accent);white-space:nowrap;
}
.server-status .srv-bw{
  font-family:var(--font-mono);font-size:12.5px;font-weight:600;
  color:var(--muted);white-space:nowrap;
}
@media (max-width:768px){
  .server-status .srv-grid{grid-template-columns:1fr}
  .server-status .srv-row{grid-template-columns:auto minmax(0,1fr) auto;gap:8px 10px}
  .server-status .srv-bw{display:none}
}
@media (prefers-reduced-motion:reduce){
  .server-status .srv-dot{animation:none}
}

/* ---- 灰阶标识横排之后的节奏 ---- */
.strip + .sec-tight{padding-top:0}

/* ---- Bento 内迷你界面与胶囊的间距 ---- */
.bento-cell .mini-ui{max-width:100%}
.bento-cell .mini-ui .mu-row span{white-space:nowrap}
.bento-cell.row-2 p + p{margin-top:2px}

/* ---- 选线说明 ---- */
.sel-note{
  margin-top:20px;
  max-width:900px;
  font-size:14.5px;
}

/* ---- 流量包与月订阅之间的间距 ---- */
.pack-gap{margin-top:22px}
.pack-note{
  margin-top:22px;
  max-width:900px;
  font-size:14.5px;
}

/* ---- 为什么选我们 ---- */
.why-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
.why-grid .panel{
  display:flex;flex-direction:column;gap:8px;min-width:0;
}
.why-grid h3{font-size:17px}
.why-grid p{font-size:14px;line-height:1.75;color:var(--muted)}

/* ---- 首页底部 CTA 带文案列 ---- */
.cta-band > div{min-width:0}

/* ---- 窄屏 ---- */
@media (max-width:1024px){
  .why-grid{gap:16px}
}
@media (max-width:768px){
  .sel-note,.pack-note{font-size:13.5px}
}
@media (max-width:640px){
  .why-grid{grid-template-columns:1fr}
  .strip + .sec-tight{padding-top:0}
}