/* ==========================================================================
   VPNWing — home.css
   首页专属：线路状态组件、保障卡并列区、区块末尾链接、卖点区间距
   颜色、圆角、阴影一律引用 base.css 的 :root 令牌。
   ========================================================================== */

/* ==========================================================================
   线路状态组件（servers.js 注入内容，页面只提供容器与样式）
   容器 #server-status 在 base.css 已有文档流占位与 overflow:hidden，
   这里用 id + class 提高优先级把内部排成双列，且注入为空时整体隐藏。
   ========================================================================== */

#server-status.server-status{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--hi-white), var(--shadow-card);
}

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

.srv-row{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg-panel-2);
  font-size: 12.5px;
  color: var(--text);
}

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

.srv-flag{
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  border-radius: 50%;
  overflow: hidden;
}

.srv-name{
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srv-type{
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.srv-ms,
.srv-bw{
  flex: none;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.srv-ms{ margin-left: auto; }

/* ==========================================================================
   保障卡并列区（不限台数 / 30 天无理由退款）
   ========================================================================== */

.assure-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.assure-grid > *{ min-width: 0; }

.assure-grid h3{ font-size: 19px; }

.assure-grid p{
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   卖点区内部节奏
   ========================================================================== */

.feature-bento + .fact-strip{ margin-top: 20px; }

.feature-card h3 + p{ margin-top: 10px; }

.offset-card h3{ font-size: 18px; }

.offset-card p{
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   区块末尾链接
   ========================================================================== */

.section-cta{ margin-top: 26px; }

/* ==========================================================================
   节点 / 套餐区的说明段落
   ========================================================================== */

.line-notes{ margin-top: 22px; }

.line-notes p + p{ margin-top: 14px; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1080px){
  #server-status.server-status{ gap: 2px 18px; }
}

@media (max-width: 860px){
  .assure-grid{ grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px){
  #server-status.server-status{
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
  }
  .srv-row{ padding: 6px 0; }
  .section-cta{ margin-top: 22px; }
}

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