/* ==========================================================================
   VPNNK — home.css
   首页专属:线路类型说明卡、线路状态脚手架样式、小节收尾链接、卖点面板内小元素。
   全部颜色引用 base.css 设计令牌,不散落硬编码值。
   ========================================================================== */

/* ---- 卖点面板内的平台图标与状态 ---- */
.mini-win .plat-ico {
  width: 18px;
  height: 18px;
  color: var(--on-ink-muted);
  flex: 0 0 auto;
}
.mini-win .mini-state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-ink-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.mini-win .mini-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--on-ink-muted);
}
.mini-win .refund { margin-top: 14px; }

/* ---- 小节收尾链接行 ---- */
.sec-more {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

/* ---- 线路类型说明卡 ---- */
.line-kinds {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.line-kinds > * { min-width: 0; }
.line-kind {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  min-width: 0;
}
.line-kind b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
}
.line-kind p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---- 线路状态脚手架(servers.js 注入 .srv-row 等结构) ---- */
.server-status {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 26px;
}
.server-status:empty { display: none; }

.server-status .srv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.server-status .srv-row {
  display: grid;
  grid-template-columns: 12px 20px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  min-width: 0;
  font-size: 13px;
}
.server-status .srv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
  flex: 0 0 auto;
  animation: srv-breathe 2.6s var(--ease) infinite;
}
.server-status .srv-flag {
  width: 20px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border);
  flex: 0 0 auto;
}
.server-status .srv-name {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.server-status .srv-type {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  flex: 0 0 auto;
}
.server-status .srv-ms,
.server-status .srv-bw {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.server-status .srv-ms { min-width: 6.5ch; text-align: right; }
.server-status .srv-bw { min-width: 8ch; text-align: right; }

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

/* ---- 首页特有:hero 下方数据条内的等宽强调 ---- */
.statsband .mono { color: var(--text); font-weight: 700; }

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

@media (max-width: 640px) {
  .server-status .srv-row {
    grid-template-columns: 12px 20px minmax(0, 1fr) auto;
    row-gap: 6px;
  }
  .server-status .srv-ms,
  .server-status .srv-bw { grid-column: 3 / -1; text-align: left; }
}

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