/* ==========================================================================
   VPNPF — home.css(首页专属样式)
   只补 components.css 未覆盖的页面级部件:缓滚线路带、线路状态网格、
   运营口径两列、区块内节奏;颜色/圆角一律引用 :root 令牌。
   ========================================================================== */

/* 区块内节奏:标题块与紧随其后的内容之间留一段呼吸 */
.head-block + * { margin-top: 30px; }

/* 正文块首元素去掉顶部外边距(prose 的 h3 默认带 30px) */
.prose > :first-child { margin-top: 0; }

/* 区块末尾的箭头链接 */
.more-link { margin-top: 28px; }

/* 黄铜罗盘里的速度箭头:令牌色跟随墨底 */
.compass svg { color: var(--on-ink); }

/* Linux 企鹅的眼睛与喙:与所在格子底色一致,只留剪影 */
.linux-eye { fill: var(--bg); }

/* ==========================================================================
   1. 缓滚线路带(ticker-loop 配方;轨迹宽度由 motion.js 复制到两倍容器宽)
   ========================================================================== */
.ticker {
  overflow: hidden;
  max-width: 100%;
  margin-top: 56px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.ticker-item::after {
  content: "·";
  margin: 0 18px;
  color: var(--accent);
}
.ticker.is-static { overflow-x: auto; }

/* ==========================================================================
   2. 线路状态(servers.js 注入;容器留在文档流,夹住自身网格)
   ========================================================================== */
.status-block { margin-top: 44px; }
.status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.status-head h3 { font-size: 18px; }
.status-head .muted { font-size: 12.5px; }

.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 100%;
}
.server-status:empty { display: none; }

.srv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--border);
}
.srv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--bg-panel2);
  flex-shrink: 0;
  animation: srv-breathe 2.8s ease-in-out infinite;
}
.srv-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.srv-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srv-type {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.srv-ms,
.srv-bw {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.srv-ms { margin-left: auto; }

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

/* ==========================================================================
   3. 运营口径两列(细线分区,不做卡片)
   ========================================================================== */
.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.why-list > li {
  min-width: 0;
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--border);
}
.why-list > li:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.why-list h3 { font-size: 17px; }
.why-list p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.why-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   4. 响应式与动效降级
   ========================================================================== */
@media (max-width: 768px) {
  .ticker { margin-top: 40px; }
  .server-status { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-list > li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .status-block { margin-top: 34px; }
}

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