/* ============================================================
   VPNCZ — home.css
   首页专属样式：卖点分栏内的窗口面板内容、选线说明、套餐
   补充块、差异说明网格、底部 CTA 带、线路状态组件。
   首屏区样式全部来自 base.css，此处不重复定义。
   ============================================================ */

/* ---------- 1. 卖点窗口面板内的内容块 ---------- */
.hm-stack{display:flex;flex-direction:column;gap:10px}
.hm-row{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:10px 12px;border-radius:var(--r-sm);background:var(--bg);
  min-width:0;
}
.hm-row b{
  font-family:var(--font-display);font-weight:800;font-size:13px;
  color:var(--ink);flex:none;
}
.hm-row>span:nth-child(2){font-size:12px;color:var(--muted);min-width:0;flex:1 1 auto}
.hm-row .tag{flex:none}

.hm-tunnel{
  display:flex;align-items:center;gap:12px;
  padding:26px 8px;min-width:0;
}
.hm-node{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:0 14px;border-radius:var(--r-pill);
  background:var(--bg);border:1px solid var(--border);
  font-size:12px;font-weight:600;color:var(--ink);
  flex:none;max-width:100%;
}
.hm-node.is-exit{
  background:linear-gradient(135deg,var(--accent),var(--accent-soft));
  border-color:transparent;color:var(--panel);
}
.hm-wire{
  flex:1 1 auto;min-width:24px;height:0;
  border-top:2px dashed var(--accent);
  opacity:.6;
}

.hm-matrix{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:10px;
}
.hm-matrix li{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 8px;border-radius:var(--r-sm);background:var(--bg);
  font-size:12px;font-weight:600;color:var(--ink);min-width:0;
}
.hm-matrix svg{width:22px;height:22px;flex:none;color:var(--ink)}

.hm-ai{display:flex;flex-direction:column;gap:2px}
.hm-ai li{
  display:flex;align-items:center;gap:10px;
  min-height:40px;padding:6px 4px;font-size:13px;font-weight:600;
  color:var(--ink);border-bottom:1px solid var(--border);min-width:0;
}
.hm-ai li:last-child{border-bottom:0}
.hm-ai-note{
  margin-left:auto;font-family:var(--font-mono);font-size:11px;
  font-weight:600;color:var(--muted);white-space:nowrap;flex:none;
}

.hm-stream{display:flex;flex-direction:column;gap:2px}
.hm-stream li{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  min-height:44px;padding:8px 4px;border-bottom:1px solid var(--border);
  min-width:0;
}
.hm-stream li:last-child{border-bottom:0}
.hm-stream b{
  font-family:var(--font-display);font-weight:700;font-size:13px;
  color:var(--ink);flex:1 1 120px;min-width:0;
}
.hm-stream .tags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}

.hm-steps{display:flex;flex-direction:column;gap:14px}
.hm-steps li{display:flex;gap:12px;min-width:0}
.hm-steps li>span:first-child{
  flex:none;width:24px;height:24px;border-radius:50%;
  background:rgba(var(--accent-rgb),.14);color:var(--accent-dark);
  font-family:var(--font-mono);font-size:12px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
}
.hm-steps li>span:last-child{min-width:0}
.hm-steps b{
  display:block;font-family:var(--font-display);font-weight:800;
  font-size:13px;color:var(--ink);margin-bottom:2px;
}
.hm-steps p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.hm-steps li:nth-child(1)>span:first-child::before{content:"1"}
.hm-steps li:nth-child(2)>span:first-child::before{content:"2"}
.hm-steps li:nth-child(3)>span:first-child::before{content:"3"}

.hm-cap{
  margin:12px 0 0;font-family:var(--font-mono);font-size:11px;
  letter-spacing:.02em;color:var(--muted);line-height:1.6;
}

/* ---------- 2. 正文补充段落 ---------- */
.hm-note{
  max-width:76ch;margin:24px 0 0;font-size:15px;line-height:1.75;
  color:var(--muted);
}
.hm-note a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:2px}
.hm-note a:hover{color:var(--accent)}
.hm-more{margin:20px 0 0}

/* ---------- 3. 套餐补充块 ---------- */
.hm-pack{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  margin-top:28px;padding:22px 26px;border-radius:var(--r-md);
  background:linear-gradient(120deg,var(--panel-2) 0%,var(--bg) 100%);
  min-width:0;
}
.hm-pack p{flex:1 1 320px;margin:0;font-size:14px;line-height:1.7;color:var(--muted);min-width:0}
.hm-pack .btn{flex-shrink:0;white-space:nowrap}

/* ---------- 4. 差异说明网格 ---------- */
.hm-why{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:var(--gap);
}
.hm-why>*{min-width:0}
.hm-why article{
  background:var(--panel);border:1px solid var(--border);
  border-radius:var(--r-md);padding:26px 24px;min-width:0;
  box-shadow:0 2px 6px rgba(var(--ink-rgb),.04);
}
.hm-why h3{font-size:18px;margin-bottom:10px}
.hm-why p{font-size:14px;line-height:1.75;color:var(--muted);margin:0}

/* ---------- 5. 底部 CTA 带 ---------- */
.hm-cta{
  display:flex;align-items:center;gap:28px;flex-wrap:wrap;
  padding:40px 48px;border-radius:var(--r-lg);
  background:var(--ink);color:var(--panel);
  box-shadow:var(--sh-card);min-width:0;
}
.hm-cta>div{flex:1 1 320px;min-width:0}
.hm-cta b{
  display:block;font-family:var(--font-display);font-weight:900;
  font-size:clamp(20px,2.2vw,26px);letter-spacing:-.02em;
  line-height:1.25;margin-bottom:10px;color:var(--panel);
}
.hm-cta p{
  margin:0;font-size:14px;line-height:1.7;
  color:rgba(var(--white-rgb),.72);
}
.hm-cta .btn{flex-shrink:0;white-space:nowrap}

/* ---------- 6. 线路状态组件（servers.js 注入后生效） ---------- */
.server-status:empty{display:none}
.server-status{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;overflow:hidden;max-width:100%;min-width:0;
}
.srv-row{
  display:flex;align-items:center;gap:12px;
  padding:14px 18px;border-radius:var(--r-md);
  background:var(--panel);border:1px solid var(--border);
  min-width:0;
}
.srv-dot{
  width:8px;height:8px;border-radius:50%;flex:none;
  background:var(--ok);box-shadow:0 0 0 3px rgba(28,158,106,.18);
  animation:srvPulse 2.6s ease-in-out infinite;
}
.srv-flag{width:22px;height:15px;border-radius:3px;flex:none;box-shadow:0 0 0 1px rgba(var(--ink-rgb),.10)}
.srv-name{
  font-size:14px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  min-width:0;flex:1 1 auto;
}
.srv-type{
  font-family:var(--font-mono);font-size:11px;font-weight:600;
  color:var(--muted);background:var(--panel-2);border-radius:4px;
  padding:2px 6px;white-space:nowrap;flex:none;
}
.srv-ms,.srv-bw{
  font-family:var(--font-mono);font-size:12px;font-weight:600;
  color:var(--ink);font-variant-numeric:tabular-nums;
  white-space:nowrap;flex:none;
}
.srv-bw{color:var(--muted);min-width:5ch;text-align:right}
@keyframes srvPulse{0%,100%{opacity:1}50%{opacity:.42}}

/* ---------- 7. 响应式 ---------- */
@media (max-width:900px){
  .hm-cta{padding:28px;gap:20px}
  .hm-cta .btn{flex:1 1 100%}
  .hm-pack{padding:20px}
  .hm-pack .btn{flex:1 1 100%}
  .server-status{grid-template-columns:1fr}
}
@media (max-width:640px){
  .hm-tunnel{flex-direction:column;align-items:stretch;gap:10px;padding:20px 0}
  .hm-wire{width:0;height:28px;min-width:0;flex:none;margin:0 auto;border-top:0;border-left:2px dashed var(--accent)}
  .hm-node{align-self:center}
  .hm-row b{flex:1 1 100%}
  .hm-cta{padding:24px 20px}
  .srv-row{gap:10px;padding:12px 14px}
  .srv-bw{min-width:0}
}
@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}