/* ==========================================================================
   VPNMK · home.css
   首页专属:线路状态脚手架 / 装饰层 / 拼盘与博客补充件
   颜色、字体、圆角、阴影一律引用 base.css 的 :root 令牌。
   ========================================================================== */

/* ==========================================================================
   0. 内联图标雪碧容器(平台标识 symbol 定义处,不占布局)
   ========================================================================== */

.svg-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

/* ==========================================================================
   1. 线路状态脚手架(servers.js 注入,本页只给样式)
   #server-status 的 display 需要压过 base.css 的 display:block
   ========================================================================== */

#server-status,
.server-status{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 14px;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
#server-status:empty{display:none}
#server-status > *{
  min-width:0;
  max-width:100%;
}

.srv-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel);
}
.srv-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--success);
  flex:none;
  animation:srv-breath 2.6s ease-in-out infinite;
}
@keyframes srv-breath{
  0%,100%{opacity:.35;transform:scale(.8)}
  50%{opacity:1;transform:scale(1)}
}
.srv-flag{
  display:block;
  width:20px;
  height:14px;
  flex:none;
  border-radius:3px;
  overflow:hidden;
  box-shadow:0 0 0 1px var(--border);
}
.srv-flag svg{
  width:100%;
  height:100%;
}
.srv-name{
  flex:1;
  min-width:0;
  font-size:12.5px;
  letter-spacing:.01em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.srv-type{
  flex:none;
  padding:3px 6px;
  border-radius:var(--r-xs);
  background:var(--accent-12);
  color:var(--accent-dark);
  font-size:9px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
}
.srv-ms,
.srv-bw{
  flex:none;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  color:var(--text-muted);
}

/* ==========================================================================
   2. 装饰层(视差光斑 / 线路标记连线)
   ========================================================================== */

.feat-sec{
  position:relative;
  isolation:isolate;
}
.sec-glow{
  position:absolute;
  left:0;
  right:0;
  top:-30px;
  z-index:-1;
  height:300px;
  max-width:1000px;
  margin-inline:auto;
  pointer-events:none;
  background:radial-gradient(58% 62% at 50% 42%,var(--warm-06) 0%,var(--clear) 74%);
}

.marker-line{
  display:flex;
  justify-content:center;
  margin:0 0 24px;
}
.marker-line .topo{
  width:100%;
  max-width:880px;
  height:auto;
}
.marker-line .tl-line{
  fill:none;
  stroke:var(--accent-32);
  stroke-width:1.4;
  stroke-linecap:round;
}
.marker-line .tl-a{fill:var(--accent)}
.marker-line .tl-b{fill:var(--accent-warm)}
.marker-line .tl-c{fill:var(--violet)}

/* ==========================================================================
   3. 拼盘补充
   ========================================================================== */

.bento-card .chip-row{margin-top:auto}
.bento-card--lg p{max-width:46em}

.why-card{margin-top:18px}
.why-title{letter-spacing:-.02em}
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:16px;
}
.why-item{min-width:0}
.why-item h4{margin-bottom:6px}
.why-item p{
  font-size:13.5px;
  line-height:1.78;
  color:var(--text-muted);
}

/* ==========================================================================
   4. 区块补充说明与"查看更多"
   ========================================================================== */

.sec-note{
  margin-top:16px;
  max-width:62em;
  font-size:13.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.sec-note + .sec-note{margin-top:10px}
.sec-more{margin-top:18px}

/* ==========================================================================
   5. 博客"查看全部"卡
   ========================================================================== */

.post-card--all{
  justify-content:flex-start;
  background:var(--bg-panel2);
  border-style:dashed;
}

/* ==========================================================================
   6. 响应式
   ========================================================================== */

@media (max-width:760px){
  #server-status,
  .server-status{grid-template-columns:minmax(0,1fr)}
  .sec-glow{height:220px}
  .why-grid{grid-template-columns:minmax(0,1fr)}
}

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