/* ============================================================
   VPNCU · home.css
   首页专属样式:端口清单主从面板 / 节点预览 / 客户端下载 / 套餐预览 / 博客预览 / CTA 带
   ============================================================ */

/* ---------- 端口清单主从面板 ---------- */
.features-wrap {
  background: var(--bg);
}

.port-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  min-width: 0;
}

.port-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--panel2);
  padding: 12px;
  gap: 4px;
  min-width: 0;
}

.port-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  min-height: 48px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.port-tab:hover {
  background: var(--bg);
  color: var(--ink);
}

.port-tab.active {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.port-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--accent-dark);
  flex-shrink: 0;
  min-width: 34px;
}

.port-name {
  white-space: nowrap;
}

.port-details {
  padding: 32px 36px;
  min-width: 0;
  position: relative;
}

.port-panel-body {
  display: none;
}

.port-panel-body.active {
  display: block;
}

.port-panel-body[hidden] {
  display: none;
}

.port-panel-body h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.port-panel-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.port-fact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.port-fact .pf-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  flex-shrink: 0;
}

.port-fact .pf-value {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 节点预览 ---------- */
.nodes-wrap {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nodes-more {
  margin-top: 24px;
  text-align: center;
}

.nodes-more .btn {
  display: inline-flex;
}

/* ---------- 客户端下载 ---------- */
.clients-wrap {
  background: var(--bg);
}

/* ---------- 套餐预览 ---------- */
.plans-wrap {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.traffic-note {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 14px;
  color: var(--muted);
}

.traffic-note strong {
  color: var(--ink);
}

.plans-more {
  margin-top: 24px;
  text-align: center;
}

/* ---------- 为什么选我们 ---------- */
.why-wrap {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 28px;
  box-shadow: var(--shadow-1);
  min-width: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 博客预览 ---------- */
.blog-wrap {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-more {
  margin-top: 24px;
  text-align: center;
}

/* ---------- 底部 CTA 带 ---------- */
.cta-band {
  background: var(--accent-dark);
  color: var(--white);
  padding-top: 56px;
  padding-bottom: 56px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  max-width: 480px;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.cta-band .btn-primary:hover {
  background: var(--bg);
  color: var(--accent-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .port-panel {
    grid-template-columns: 1fr;
  }

  .port-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .port-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    min-height: 44px;
  }

  .port-no {
    min-width: 0;
  }

  .port-details {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .btn-primary {
    width: 100%;
  }

  .traffic-note {
    padding: 14px 16px;
  }
}