/* ==========================================================================
   VPNEH · home.css
   首页专属:线路状态容器、选择依据、套餐提示、区块尾链接、旗帜配色
   ========================================================================== */

/* ---------- 选择依据 ---------- */
.home-why{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);
  gap:var(--space-6);
  align-items:start;
  min-width:0;
}

.home-why-copy{
  min-width:0;
}

.home-why-copy p{
  margin:0 0 var(--space-4);
  font-size:15px;
  line-height:1.8;
  color:var(--text-muted);
}

.home-why-copy p:last-of-type{
  margin-bottom:0;
}

.home-why-copy strong{
  color:var(--text);
  font-weight:600;
}

.home-why-panel{
  min-width:0;
  padding:var(--space-5);
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--sh-card);
}

.home-why-panel h3{
  margin:0 0 var(--space-3);
  font-size:16px;
}

.home-facts{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}

.home-facts li{
  display:flex;
  align-items:flex-start;
  gap:var(--space-2);
  min-width:0;
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-muted);
}

.home-facts li::before{
  content:"✓";
  flex:none;
  width:16px;
  height:16px;
  margin-top:1px;
  border-radius:var(--r-pill);
  background:var(--ok-a12);
  color:var(--success);
  font-size:10px;
  font-weight:700;
  line-height:16px;
  text-align:center;
}

.home-facts b{
  color:var(--text);
  font-weight:600;
}

.home-route{
  max-width:100%;
  margin:var(--space-6) 0 0;
  color:var(--border-strong);
}

/* ---------- 线路类型说明与区块尾链接 ---------- */
.home-subtitle{
  margin:var(--space-6) 0 var(--space-2);
  font-size:16px;
  font-weight:700;
  letter-spacing:0;
}

.home-copy{
  max-width:72ch;
  margin:0 0 var(--space-4);
  font-size:15px;
  line-height:1.8;
  color:var(--text-muted);
}

.home-more{
  margin:var(--space-5) 0 0;
  font-size:13.5px;
}

.home-more a{
  color:var(--accent);
  font-weight:600;
  text-decoration:none;
}

.home-more a:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ---------- 线路状态容器(servers.js 注入位) ---------- */
.home-status-wrap{
  min-width:0;
  margin-top:var(--space-4);
}

.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-2) var(--space-4);
  min-width:0;
}

.server-status:empty{
  display:none;
}

.srv-row{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  min-width:0;
  padding:var(--space-3);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel);
}

.srv-dot{
  flex:none;
  width:7px;
  height:7px;
  border-radius:var(--r-pill);
  background:var(--success);
  box-shadow:0 0 0 3px var(--ok-a12);
  animation:srv-breathe 2.6s ease-in-out infinite;
}

.srv-flag{
  display:inline-flex;
  flex:none;
  width:20px;
  height:14px;
  border-radius:var(--r-xs);
  overflow:hidden;
  box-shadow:0 0 0 1px var(--border);
}

.srv-flag svg{
  display:block;
  width:20px;
  height:14px;
}

.srv-name{
  flex:1 1 auto;
  min-width:0;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.srv-type{
  flex:none;
  margin-left:auto;
  padding:2px 7px;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  background:var(--bg);
  font-family:var(--font-mono);
  font-size:10px;
  color:var(--text-muted);
  white-space:nowrap;
}

.srv-ms{
  flex:none;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text);
  white-space:nowrap;
}

.srv-bw{
  flex:none;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--text-muted);
  white-space:nowrap;
}

.home-status-note{
  margin:var(--space-3) 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-muted);
}

@keyframes srv-breathe{
  0%,
  100%{
    opacity:1;
    transform:scale(1);
  }
  50%{
    opacity:.55;
    transform:scale(.82);
  }
}

/* ---------- 套餐提示 ---------- */
.home-price-note{
  margin:var(--space-2) 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-muted);
}

.home-pack{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:var(--space-3) var(--space-4);
  margin-top:var(--space-5);
  padding:var(--space-4) var(--space-5);
  border:1px solid var(--warn);
  border-radius:var(--r-md);
  background:var(--bg-panel);
}

.home-pack h3{
  flex:none;
  margin:0;
  font-size:15px;
}

.home-pack p{
  flex:1 1 320px;
  min-width:0;
  margin:0;
  font-size:13.5px;
  line-height:1.7;
  color:var(--text-muted);
}

/* ---------- 旗帜配色(全部走设计令牌) ---------- */
.flag-svg .f-red{
  fill:var(--flag-red);
}

.flag-svg .f-white{
  fill:var(--flag-white);
}

.flag-svg .f-blue{
  fill:var(--flag-blue);
}

/* ---------- 响应式 ---------- */
@media (max-width:820px){
  .home-why{
    grid-template-columns:minmax(0,1fr);
  }
  .server-status{
    grid-template-columns:minmax(0,1fr);
  }
}

@media (max-width:640px){
  .home-pack{
    padding:var(--space-4);
  }
  .srv-row{
    flex-wrap:wrap;
  }
  .srv-type{
    margin-left:0;
  }
}

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