/* ==========================================================================
   VPS领航员 全站样式
   ========================================================================== */

:root {
  --rvps-accent: #2563eb;
  --rvps-accent-dark: #1d4ed8;
  --rvps-ink: #0f172a;
  --rvps-text: #1e293b;
  --rvps-muted: #64748b;
  --rvps-line: #e2e8f0;
  --rvps-bg: #f8fafc;
  --rvps-radius: 14px;
  --rvps-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

body {
  background: #fff;
  color: var(--rvps-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

/* 站点标识 */
.site-title a, .site-title {
  font-weight: 700;
  letter-spacing: -.01em;
}
.site-description {
  color: var(--rvps-muted);
  font-size: 13px;
}

/* 导航 */
.main-header-menu > .menu-item > .menu-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--rvps-text);
}
.main-header-menu > .menu-item > .menu-link:hover {
  color: var(--rvps-accent);
}

/* 容器 */
.rvps-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 首页 Hero ---------- */
.rvps-hero {
  background: radial-gradient(1200px 400px at 15% -10%, rgba(37, 99, 235, .35), transparent 60%),
              linear-gradient(140deg, #0b1220 0%, #101c33 55%, #0b1220 100%);
  color: #fff;
  padding: 84px 0 72px;
  margin-bottom: 0;
}
.rvps-hero .rvps-wrap { max-width: 1160px; }
.rvps-hero-badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .04em;
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, .35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 22px;
}
.rvps-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.rvps-hero p.rvps-sub {
  color: #cbd5e1;
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 660px;
  margin: 0 0 32px;
}
.rvps-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.rvps-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.rvps-btn-primary { background: var(--rvps-accent); color: #fff !important; box-shadow: 0 8px 22px -10px rgba(37, 99, 235, .9); }
.rvps-btn-primary:hover { background: var(--rvps-accent-dark); transform: translateY(-1px); }
.rvps-btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: #e2e8f0 !important; }
.rvps-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.rvps-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.rvps-stat strong { display: block; font-size: 26px; color: #fff; font-weight: 700; }
.rvps-stat span { font-size: 13px; color: #94a3b8; }

/* ---------- 通用区块 ---------- */
.rvps-section { padding: 64px 0; }
.rvps-section.alt { background: var(--rvps-bg); }
.rvps-head { text-align: center; margin-bottom: 38px; }
.rvps-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--rvps-ink);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.rvps-head p { color: var(--rvps-muted); margin: 0; font-size: 15px; }

/* 分类卡片 */
.rvps-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.rvps-cat {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--rvps-line);
  border-radius: var(--rvps-radius);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.rvps-cat:hover { box-shadow: var(--rvps-shadow); transform: translateY(-2px); border-color: #c7d2fe; }
.rvps-cat-name { display: block; font-size: 17px; font-weight: 650; color: var(--rvps-ink); margin-bottom: 6px; }
.rvps-cat-desc { display: block; font-size: 13.5px; color: var(--rvps-muted); margin-bottom: 12px; line-height: 1.6; }
.rvps-cat-count { font-size: 12.5px; color: var(--rvps-accent); background: #eff6ff; border-radius: 999px; padding: 2px 10px; }

/* 文章卡片网格 */
.rvps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.rvps-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rvps-line);
  border-radius: var(--rvps-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.rvps-card:hover { box-shadow: var(--rvps-shadow); transform: translateY(-2px); }
.rvps-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e0e7ff, #f1f5f9); overflow: hidden; }
.rvps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvps-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-weight: 700; color: #93c5fd; letter-spacing: .12em; font-size: 26px;
}
.rvps-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.rvps-badge {
  align-self: flex-start;
  font-size: 12px;
  color: var(--rvps-accent);
  background: #eff6ff;
  border-radius: 6px;
  padding: 2px 9px;
  text-decoration: none;
  margin-bottom: 10px;
}
.rvps-card-title { font-size: 16.5px; line-height: 1.5; margin: 0 0 10px; font-weight: 650; }
.rvps-card-title a { color: var(--rvps-ink); text-decoration: none; }
.rvps-card-title a:hover { color: var(--rvps-accent); }
.rvps-card-excerpt { font-size: 14px; color: var(--rvps-muted); margin: 0 0 14px; flex: 1; }
.rvps-card-meta { font-size: 12.5px; color: #94a3b8; }

/* 特性卡片 */
.rvps-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.rvps-feature {
  background: #fff;
  border: 1px solid var(--rvps-line);
  border-radius: var(--rvps-radius);
  padding: 26px 24px;
}
.rvps-feature .rvps-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: #eff6ff; color: var(--rvps-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 16px; font-size: 18px;
}
.rvps-feature h3 { font-size: 17px; margin: 0 0 8px; color: var(--rvps-ink); font-weight: 650; }
.rvps-feature p { margin: 0; font-size: 14px; color: var(--rvps-muted); }

/* 步骤 */
.rvps-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.rvps-step { position: relative; padding: 24px 22px 22px 22px; border-radius: var(--rvps-radius); background: #fff; border: 1px solid var(--rvps-line); }
.rvps-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rvps-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.rvps-step h3 { font-size: 16px; margin: 6px 0 8px; color: var(--rvps-ink); font-weight: 650; }
.rvps-step p { margin: 0; font-size: 14px; color: var(--rvps-muted); }

/* CTA */
.rvps-cta {
  background: linear-gradient(120deg, #1d4ed8, #2563eb 45%, #3b82f6);
  color: #fff;
  border-radius: 18px;
  padding: 42px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.rvps-cta h2 { color: #fff; font-size: 24px; margin: 0 0 8px; border: 0; }
.rvps-cta p { margin: 0; color: #dbeafe; font-size: 15px; }
.rvps-cta .rvps-btn-primary { background: #fff; color: var(--rvps-accent-dark) !important; box-shadow: none; }
.rvps-cta .rvps-btn-primary:hover { background: #f1f5f9; }

/* 免责声明 */
.rvps-disclaimer {
  margin: 34px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--rvps-accent);
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--rvps-muted);
  line-height: 1.75;
}

/* ---------- 文章页 ---------- */
.entry-content { font-size: 16px; color: var(--rvps-text); }
.entry-content h2 {
  font-size: 21px;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--rvps-accent);
  line-height: 1.4;
}
.entry-content h3 { font-size: 18px; margin: 28px 0 12px; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 20px 0;
  border: 1px solid var(--rvps-line);
  border-radius: 8px;
  overflow: hidden;
}
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--rvps-line); text-align: left; }
.entry-content thead th { background: #f1f5f9; font-weight: 650; color: var(--rvps-ink); white-space: nowrap; }
.entry-content tbody tr:nth-child(even) { background: #fcfdff; }
.entry-content a { color: var(--rvps-accent); }
.entry-content img { border-radius: 10px; height: auto; }

/* 面包屑 / 标题区域 */
.ast-archive-description p { color: var(--rvps-muted); }

/* 侧边栏 */
.widget-title { font-size: 16px; font-weight: 650; }

/* 页脚 */
.site-footer { background: #0b1220 !important; color: #cbd5e1; }
.site-footer .widget-title, .site-footer h2 { color: #fff; }
.site-footer a, .site-footer .widget a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { color: #bfdbfe; }
.site-footer .wp-block-heading { color: #fff; }
.site-footer ul li { margin-bottom: 8px; font-size: 14px; }
.site-below-footer-wrap, .site-primary-footer-wrap { border-color: rgba(255, 255, 255, .08) !important; }
.ast-footer-copyright { color: #94a3b8; font-size: 13.5px; }
.ast-footer-copyright a { color: #94a3b8; }

/* 分页 */
.ast-pagination .nav-links a, .ast-pagination .page-numbers {
  border-radius: 8px;
}
.ast-pagination .page-numbers.current { background: var(--rvps-accent); color: #fff; }

/* 移动端 */
@media (max-width: 768px) {
  .rvps-hero { padding: 60px 0 52px; }
  .rvps-stats { gap: 26px; }
  .rvps-section { padding: 44px 0; }
  .rvps-cta { padding: 32px 24px; }
}
