/* =========================================================================
   VPNLW — home.css
   Page layer for zh-CN/index.html. The approved first screen is styled
   entirely by base.css / components.css and is not re-declared here.
   This file only carries the sections below the hero plus the line-status
   component that servers.js fills at runtime.
   ========================================================================= */

/* ---------------------------------------------------------- section parts */
.features-note{
  max-width:56ch;
  margin:0 0 16px;
  font-size:13px;
  line-height:1.7;
  color:var(--text-muted);
}

.block-note{
  max-width:74ch;
  margin:20px 0 0;
  font-size:13.5px;
  line-height:1.8;
  color:var(--text-muted);
}

.block-actions{margin:24px 0 0}

.nodes-prose{max-width:74ch;margin-top:22px}
.nodes-prose p{font-size:14px;line-height:1.8;color:var(--text-muted)}
.nodes-status-note{margin-top:26px;max-width:66ch}

.pack-title{
  margin:34px 0 12px;
  font-family:var(--font-display);
  font-size:clamp(1.1rem,1.8vw,1.3rem);
  font-weight:400;
  letter-spacing:-.01em;
  color:var(--accent-dark);
}

/* ------------------------------------------------------------- why block */
.why-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:36px;
  align-items:start;
}
.why-copy{min-width:0}
.why-copy .prose{margin-top:14px}
.why-panel{min-width:0}
.why-panel h3{
  margin:0 0 14px;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:400;
  letter-spacing:-.01em;
  color:var(--accent-dark);
}
.why-facts{display:grid;gap:10px;margin:0 0 18px}
.why-facts > div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  padding-bottom:9px;
  border-bottom:1px solid var(--line);
}
.why-facts > div:last-child{border-bottom:0;padding-bottom:0}
.why-facts dt{
  flex:none;
  font-size:12px;
  letter-spacing:.06em;
  color:var(--text-muted);
}
.why-facts dd{
  margin:0;
  font-size:12.5px;
  line-height:1.5;
  text-align:right;
  color:var(--text);
}
.why-facts dd.mono{color:var(--accent);letter-spacing:.01em}

/* --------------------------------------------------------- extra flag ink */
.f-ink{fill:var(--accent-dark);color:var(--accent-dark)}
.f-gold{fill:var(--warn);color:var(--warn)}

/* ======================= line status (servers.js) ======================== */
/* The container stays in normal flow and clips its own overflow so the
   injected grid can never paint over the block that follows it. */
#server-status{
  display:block;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  margin:14px 0 0;
}
#server-status:empty{display:none}

.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 14px;
  min-width:0;
}
.server-status > *{min-width:0}

.srv-row{
  display:grid;
  grid-template-columns:8px 20px minmax(0,1fr) auto auto auto;
  align-items:center;
  gap:6px 10px;
  min-width:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
  background:var(--bg-panel);
  box-shadow:0 1px 0 var(--w-90) inset;
}

.srv-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px var(--success-14);
  flex:none;
  animation:srvPulse 2.8s ease-out infinite;
}

.srv-flag{
  display:inline-flex;
  width:20px;
  height:13px;
  border-radius:3px;
  overflow:hidden;
  flex:none;
  box-shadow:0 0 0 1px var(--line-strong) inset;
}
.srv-flag svg{width:100%;height:100%;display:block}

.srv-name{
  min-width:0;
  font-size:12.5px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.srv-type{
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 7px;
  border-radius:var(--radius-pill);
  border:1px solid var(--accent-08);
  background:var(--accent-06);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.02em;
  color:var(--accent);
  white-space:nowrap;
}

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

@keyframes srvPulse{
  0%{box-shadow:0 0 0 0 var(--success-30)}
  70%,100%{box-shadow:0 0 0 6px transparent}
}

/* ------------------------------------------------------------ breakpoints */
@media (max-width:1080px){
  .why-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px}
}

@media (max-width:900px){
  .why-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .server-status{grid-template-columns:minmax(0,1fr)}
  .why-facts dd{text-align:right}
}

@media (max-width:640px){
  .srv-row{grid-template-columns:8px 20px minmax(0,1fr) auto;gap:6px 8px;padding:8px 10px}
  .srv-type{display:none}
  .srv-ms,.srv-bw{font-size:11px}
  .block-actions .btn{width:100%}
}