/* ==========================================================================
   VPNOh — home.css
   Page-scoped layout for the zh-CN home page only. Every colour, radius and
   shadow is read from the :root tokens declared in base.css; nothing here
   re-declares a palette value.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 服务定位:左侧标题列 / 右侧正文列
   -------------------------------------------------------------------------- */
.home-split{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);
  gap:var(--sp-7);
  align-items:start;
  margin-top:var(--sp-7);
}
.home-split .sec-head{margin-bottom:0;max-width:none}
.home-split .prose{max-width:none}
.home-split .prose p:last-child{margin-bottom:0}

/* --------------------------------------------------------------------------
   2. 区块末尾动作行(查看全部 … →)
   -------------------------------------------------------------------------- */
.sec-actions{
  margin-top:var(--sp-5);
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-3);
}

/* --------------------------------------------------------------------------
   3. 线路状态参考(容器由 servers.js 注入行)
   -------------------------------------------------------------------------- */
.lines-status{margin-top:var(--sp-6)}
.lines-status h3{font-size:17px}

#server-status{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(400px,100%),1fr));
  gap:10px;
  margin-top:var(--sp-4);
  margin-bottom:0;
  overflow:hidden;
  max-width:100%;
}
#server-status:empty{display:none}
.server-status > *{min-width:0}

.srv-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel);
  box-shadow:var(--hl-edge);
  font-size:13px;
}
.srv-dot{
  width:8px;height:8px;flex:none;
  border-radius:50%;
  background:var(--success);
  animation:srv-breathe 2.6s ease-in-out infinite;
}
@keyframes srv-breathe{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.4;transform:scale(.78)}
}
.srv-flag{width:22px;height:15px;border-radius:3px;overflow:hidden;flex:none}
.srv-name{
  flex:1 1 auto;min-width:0;
  font-weight:700;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.srv-type{
  flex:none;
  display:inline-flex;align-items:center;
  max-width:100%;overflow:hidden;
  min-height:22px;padding:0 8px;
  border-radius:6px;
  background:var(--bg-panel-2);
  font-size:11.5px;font-weight:600;color:var(--text-muted);
  white-space:nowrap;
}
.srv-ms,.srv-bw{
  flex:none;
  font-family:var(--font-mono);
  font-size:12px;font-weight:600;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.srv-ms{color:var(--text)}
.srv-bw{color:var(--text-muted)}

.home-note{
  margin-top:var(--sp-3);
  font-size:13px;line-height:1.7;
  color:var(--text-muted);
  max-width:78ch;
}

/* --------------------------------------------------------------------------
   4. 套餐预览补充:流量包提示块
   -------------------------------------------------------------------------- */
.traffic-note{
  margin-top:var(--sp-6);
  padding:22px 24px;
  border:1px dashed var(--border);
  border-radius:var(--r-md);
  background:rgba(var(--hl-rgb),.5);
}
.traffic-note h3{font-size:17px}
.traffic-note p{
  margin-top:8px;
  font-size:14.5px;line-height:1.75;
  color:var(--text-muted);
  max-width:78ch;
}
.traffic-note .btn{margin-top:var(--sp-4)}

/* --------------------------------------------------------------------------
   5. 响应式
   -------------------------------------------------------------------------- */
@media (max-width:1000px){
  .home-split{grid-template-columns:minmax(0,1fr);gap:var(--sp-5)}
}

@media (max-width:640px){
  #server-status{grid-template-columns:minmax(0,1fr);gap:8px}
  .srv-row{flex-wrap:wrap;gap:8px}
  .srv-name{flex-basis:calc(100% - 32px)}
  .srv-ms{margin-left:auto}
  .traffic-note{padding:18px}
}

@media (prefers-reduced-motion:reduce){
  .srv-dot{animation:none}
}