/* ==========================================================================
   VPNCW · home.css
   首页专属：线路状态网格 / 状态说明 / 区块底部链接 / 流量包提示 /
   差异说明双列 / 旗帜补充色
   颜色、圆角、阴影一律引用 base.css 的 :root 令牌。
   ========================================================================== */

/* ---------- 1. 旗帜补充填充（本页德国旗用到） ---------- */
.fl-ink{ fill:var(--ink); }
.fl-sand{ fill:var(--sand); }

/* ---------- 2. 线路状态网格 ---------- */
#server-status.server-status{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1px;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--border);
  box-shadow:var(--shadow-card);
}
#server-status.server-status:empty{ display:none; }

.srv-row{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:9px 13px;
  background:var(--bg-panel);
}

.srv-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 3px var(--success-a16);
  animation:breathe 3.2s ease-in-out infinite;
  flex:0 0 auto;
}

.srv-flag{
  width:16px;
  height:16px;
  flex:0 0 auto;
  display:block;
}
.srv-flag svg,
.srv-flag img{
  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{
  flex:0 0 auto;
  padding:2px 6px;
  border-radius:var(--r-xs);
  background:var(--bg-panel-2);
  color:var(--text-muted);
  font-family:var(--font-mono);
  font-size:9px;
  letter-spacing:.06em;
  white-space:nowrap;
}

.srv-ms{
  margin-left:auto;
  flex:0 0 auto;
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-size:11.5px;
  color:var(--text);
  white-space:nowrap;
}

.srv-bw{
  flex:0 0 auto;
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-size:10.5px;
  letter-spacing:.02em;
  color:var(--text-muted);
  white-space:nowrap;
}

/* ---------- 3. 状态说明 ---------- */
.status-note{
  max-width:62em;
  margin-top:14px;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-muted);
}

/* ---------- 4. 区块底部链接行 ---------- */
.sec-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  margin-top:22px;
}

.link-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  color:var(--accent-dark);
  border-bottom:1px solid var(--accent-a22);
  transition:color .16s ease, border-color .16s ease;
}
.link-more:hover{
  color:var(--accent);
  border-bottom-color:var(--accent);
}

/* ---------- 5. 线路表下方说明 ---------- */
.line-notes{
  margin-top:22px;
  font-size:14.5px;
}
.plan-notes{
  margin-top:22px;
  font-size:14.5px;
}

/* ---------- 6. 流量包提示条 ---------- */
.pack-note{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 18px;
  margin-top:18px;
  padding:14px 18px;
  border:1px dashed var(--border);
  border-radius:var(--r-md);
  background:var(--bg-panel-2);
  font-size:13px;
  line-height:1.65;
  color:var(--text-muted);
  min-width:0;
}
.pack-note b{
  font-family:var(--font-mono);
  font-weight:500;
  color:var(--text);
}
.pack-tag{
  flex:0 0 auto;
  padding:2px 7px;
  border-radius:var(--r-xs);
  background:var(--accent-a14);
  color:var(--accent-dark);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.12em;
  white-space:nowrap;
}

/* ---------- 7. 差异说明双列 ---------- */
.why-wrap{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,.85fr);
  gap:38px;
  align-items:start;
}
.why-aside{
  min-width:0;
}
.why-facts{
  display:flex;
  flex-direction:column;
}
.why-facts li{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:4px 12px;
  padding:9px 0;
  border-bottom:1px solid var(--border);
  font-size:12.5px;
  color:var(--text-muted);
  min-width:0;
}
.why-facts li:first-child{ padding-top:0; }
.why-facts li:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.why-facts b{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:500;
  color:var(--text);
  text-align:right;
  overflow-wrap:anywhere;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width:960px){
  .why-wrap{
    grid-template-columns:minmax(0,1fr);
    gap:28px;
  }
}

@media (max-width:768px){
  #server-status.server-status{
    grid-template-columns:minmax(0,1fr);
  }
  .srv-row{ padding:8px 12px; }
  .line-notes,
  .plan-notes{ font-size:14px; }
  .pack-note{ padding:12px 14px; }
}

@media (max-width:640px){
  .srv-bw{ font-size:10px; }
  .srv-ms{ font-size:11px; }
  .why-facts li{ font-size:12px; }
  .why-facts b{ font-size:12px; }
}

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