/* ==========================================================================
   VPNAN - 首页专属样式
   ========================================================================== */

/* ---- 区块节奏 ---- */
.sec {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
}

.sec + .sec {
  border-top: 1px solid var(--border);
}

.sec .overline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-dark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.sec-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 44em;
  margin-bottom: 32px;
  line-height: 1.75;
}

.sec-intro strong {
  color: var(--text);
  font-weight: 700;
}

/* ---- 链接箭头 ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--accent-dark);
  margin-top: 20px;
  padding: 4px 0;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow svg {
  display: block;
  flex: 0 0 auto;
}

/* ---- 核心卖点台账网格 ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-cell {
  position: relative;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  transition: transform .15s, box-shadow .15s;
}

.feature-cell-wide {
  grid-column: 1 / -1;
}

.feature-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.feature-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -14px rgba(41, 33, 21, .25);
}

.feature-cell:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  background: var(--tint-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  display: block;
  color: var(--accent);
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 36em;
}

/* ---- 线路状态 ---- */
.server-status {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  overflow: hidden;
  margin-top: 24px;
}

.srv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.srv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.srv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}

.srv-row:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.srv-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.srv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--tint-accent);
  flex-shrink: 0;
  animation: srv-pulse 2s ease-in-out infinite;
}

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

.srv-flag {
  flex: 0 0 auto;
  display: inline-flex;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--border);
}

.srv-flag svg {
  display: block;
  border-radius: 3px;
}

.srv-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.srv-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: var(--bg-panel2);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.srv-ms {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.srv-bw {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

/* ---- 横向缓滚带 ---- */
.ticker-band {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 14px 0;
  max-width: 100%;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

html.gsap-ready .ticker-track {
  animation: none;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticker-track span::after {
  content: "·";
  margin-left: 28px;
  color: var(--border);
}

/* ---- 为什么选我们 ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}

.why-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
}

.why-card-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- 博客预览 ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- 套餐预览补充 ---- */
.pricing-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-note strong {
  color: var(--text);
}

/* ---- 节点预览补充 ---- */
.nodes-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

@media (max-width: 768px) {
  .sec {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .sec-title {
    font-size: 26px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .srv-grid {
    grid-template-columns: 1fr;
  }
  .srv-row:nth-child(odd) {
    border-right: none;
  }
  .srv-row:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }
  .srv-row:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

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