/* ==========================================================================
   VPNVan · home.css
   首页专属样式:区块标题、更多链接、卖点资料浏览器、事实速览、
   选线说明与线路状态行。只新增本页需要的类,不改写 base.css /
   components.css 中已有组件的取值。
   ========================================================================== */

/* ---------- 区块标题 ---------- */

.sec-head{
  max-width:760px;
  margin:0 0 var(--space-5);
}

.sec-head .kicker{margin-bottom:8px}

.sec-title{
  margin:0;
  font-size:var(--fs-h2);
}

.sec-lead{
  margin:12px 0 0;
  font-size:15.5px;
  line-height:1.75;
  color:var(--text-muted);
}

.sub-title{
  margin:0 0 8px;
  font-size:var(--fs-h4);
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--text);
}

/* ---------- 更多链接 ---------- */

.more-row{margin:var(--space-5) 0 0}

.more-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:600;
  color:var(--accent-dark);
  text-decoration:none;
}

.more-link:hover{color:var(--accent);text-decoration:none}
.more-link svg{display:block;flex:none}

/* ---------- 卖点资料浏览器 ---------- */

.fb{
  display:grid;
  grid-template-columns:minmax(0,330px) minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.fb-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}

.fb-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:56px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:var(--radius-md);
  background:transparent;
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  transition:background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fb-item::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:2px;
  background:var(--accent);
  opacity:0;
  transition:opacity .18s ease;
}

.fb-item:hover{background:var(--tint-cool)}

.fb-item[aria-selected="true"]{
  background:var(--bg-panel);
  border-color:var(--border);
  box-shadow:var(--shadow-hair);
}

.fb-item[aria-selected="true"]::before{opacity:1}

.fb-num{
  flex:none;
  width:20px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.02em;
  color:var(--text-muted);
}

.fb-item[aria-selected="true"] .fb-num{color:var(--accent-dark)}

.fb-label{
  min-width:0;
  font-weight:600;
  font-size:14px;
}

.fb-chip{
  flex:none;
  margin-left:auto;
  font-size:11px;
}

.fb-detail{
  min-width:0;
  min-height:360px;
  padding:26px 28px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  background:var(--bg-panel);
  box-shadow:var(--shadow-card), var(--edge-light);
}

.fb-panel[hidden]{display:none}

.fb-panel h3{
  margin:0 0 10px;
  font-size:var(--fs-h3);
}

.fb-panel p{
  margin:0;
  font-size:15px;
  line-height:1.85;
  color:var(--text-muted);
}

.fb-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 0;
  padding:0;
  list-style:none;
}

.fb-fact{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:28px;
  padding:4px 11px;
  border-radius:var(--radius-pill);
  border:1px solid var(--border);
  background:var(--tint-cool);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.01em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fb-art{
  display:block;
  width:120px;
  height:80px;
  margin-top:18px;
  color:var(--accent-soft);
}

/* ---------- 为什么选:正文 + 事实速览 ---------- */

.why{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:28px;
  align-items:start;
}

.why-body{min-width:0}

.why-body h3:first-child{margin-top:0}

.why-side{min-width:0}

.fact-list{
  display:flex;
  flex-direction:column;
  margin:0;
  padding:0;
  list-style:none;
}

.fact-list li{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:4px 12px;
  padding:9px 0;
  border-bottom:1px dashed var(--border-soft);
  font-size:13px;
  color:var(--text-muted);
}

.fact-list li:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.fact-list b{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:700;
  color:var(--text);
  overflow-wrap:anywhere;
}

/* ---------- 选线说明 ---------- */

.route-notes{
  max-width:74ch;
  margin-top:var(--space-5);
}

.route-notes p{
  margin:0 0 10px;
  font-size:14.5px;
  line-height:1.85;
  color:var(--text-muted);
}

.route-notes p:last-child{margin-bottom:0}

/* ---------- 线路状态行(数据由 servers.js 注入) ---------- */

.route-live{margin-top:var(--space-6)}

.route-live-note{
  margin:0 0 12px;
  font-size:13px;
  color:var(--text-muted);
}

.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 16px;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.server-status:empty{display:none}
.server-status > *{min-width:0}

.srv-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px 12px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-soft);
  background:var(--bg-panel);
  box-shadow:var(--shadow-hair);
  font-size:12.5px;
  color:var(--text);
}

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

@keyframes srv-breathe{
  0%,100%{opacity:1}
  50%{opacity:.42}
}

.srv-flag{
  flex:none;
  line-height:0;
  border-radius:2px;
  overflow:hidden;
  box-shadow:0 0 0 1px var(--border);
}

.srv-flag svg{display:block}

.srv-name{
  flex:none;
  font-weight:600;
  white-space:nowrap;
  color:var(--text);
}

.srv-type{
  flex:none;
  margin-left:auto;
  padding:2px 6px;
  border-radius:4px;
  background:var(--tint-cool);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.02em;
  color:var(--text-muted);
  white-space:nowrap;
}

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

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

/* ---------- 流量包区块 ---------- */

.pack-block{margin-top:var(--space-6)}

.pack-lead{
  max-width:70ch;
  margin:0 0 var(--space-4);
  font-size:14px;
  line-height:1.8;
  color:var(--text-muted);
}

/* ---------- 断点 ---------- */

@media (max-width:980px){
  .fb{grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:18px}
  .fb-detail{padding:22px}
  .why{grid-template-columns:minmax(0,1fr);gap:20px}
}

@media (max-width:768px){
  .fb{grid-template-columns:minmax(0,1fr);gap:14px}
  .fb-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
  }
  .fb-item{
    width:auto;
    flex:1 1 auto;
    min-height:44px;
    padding:8px 12px;
  }
  .fb-item::before{display:none}
  .fb-num{width:auto}
  .fb-chip{display:none}
  .fb-detail{min-height:0;padding:20px}
  .fb-panel p{font-size:14.5px}
  .server-status{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:640px){
  .sec-lead{font-size:14.5px}
  .fb-fact{white-space:normal;overflow:visible}
  .fb-art{width:100px;height:66px}
}

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