/* ========================================
   Clash Verge — 干净极简风格 v2
   ======================================== */

/* ----- Reset ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-white:   #ffffff;
  --c-bg:      #f8f9fa;
  --c-bg-alt:  #f1f3f5;
  --c-card:    #ffffff;
  --c-border:  #e9ecef;
  --c-border2: #dee2e6;

  --c-text:    #212529;
  --c-sub:     #6c757d;
  --c-muted:   #adb5bd;

  --c-blue:    #2563eb;
  --c-blue-l:  #3b82f6;
  --c-blue-bg: #eff6ff;
  --c-blue-bd: #bfdbfe;
  --c-green:   #059669;
  --c-orange:  #d97706;

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;

  --r: 8px;
  --r-lg: 14px;
  --t: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: #1d4ed8; }

/* ----- 通用容器 ----- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ==================== 导航 ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  height: 58px;
}
.nav.scrolled { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.05rem; font-weight: 700; color: var(--c-text);
}
.nav-brand .logo-dot {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--c-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--c-sub);
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color var(--t), border var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-text); border-bottom-color: var(--c-blue); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 18px; border-radius: 6px;
  background: var(--c-blue); color: #fff !important;
  font-size: 0.83rem; font-weight: 600;
}

/* ==================== Hero ==================== */
.hero {
  padding: 8rem 0 5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 14px; border-radius: 20px;
  background: var(--c-blue-bg); border: 1px solid var(--c-blue-bd);
  font-size: 0.78rem; font-weight: 600; color: var(--c-blue);
  margin-bottom: 1.5rem;
  animation: up 0.5s ease both;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 750; line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  animation: up 0.5s ease 0.08s both;
}
.hero h1 em {
  font-style: normal; color: var(--c-blue);
}

.hero p {
  font-size: 1.05rem; color: var(--c-sub);
  max-width: 540px; margin: 0 auto 2.25rem;
  animation: up 0.5s ease 0.14s both;
}

.hero-actions {
  display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap;
  animation: up 0.5s ease 0.2s both;
}

.hero-tags {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-top: 2rem;
  animation: up 0.5s ease 0.26s both;
}
.hero-tags span {
  padding: 4px 12px; border-radius: 20px;
  background: #fff; border: 1px solid var(--c-border2);
  font-size: 0.76rem; color: var(--c-muted);
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 5px;
}
.hero-tags span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
}
.hero-tags .t-rust::before { background: #ef7a4c; }
.hero-tags .t-tauri::before { background: #ffc131; }
.hero-tags .t-react::before { background: #61dafb; }
.hero-tags .t-meta::before { background: var(--c-blue); }

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 7px;
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; white-space: nowrap;
  transition: all var(--t); text-decoration: none;
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-outline {
  background: #fff; color: var(--c-text);
  border: 1.5px solid var(--c-border2);
}
.btn-outline:hover { border-color: #adb5bd; background: #f8f9fa; }

/* ==================== 数字亮点 ==================== */
.section { padding: 5rem 0; }
.section--tight { padding: 0 0 3rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem;
  text-align: center;
}
.stat-card strong {
  display: block; font-size: 1.65rem; font-weight: 750;
  color: var(--c-blue); margin-bottom: 2px;
}
.stat-card span {
  font-size: 0.8rem; color: var(--c-muted);
}

/* ==================== 特性区 ==================== */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.section-head p { color: var(--c-sub); font-size: 0.98rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem;
  transition: border var(--t), box-shadow var(--t);
}
.feature:hover {
  border-color: var(--c-blue-bd);
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.feature .f-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.f-icon.blue    { background: #eff6ff; color: #3b82f6; }
.f-icon.emerald { background: #ecfdf5; color: #059669; }
.f-icon.amber   { background: #fffbeb; color: #d97706; }
.f-icon.violet  { background: #f5f3ff; color: #7c3aed; }
.f-icon.cyan    { background: #ecfeff; color: #06b6d4; }
.f-icon.rose    { background: #fff1f2; color: #e11d48; }

.feature h3 { font-size: 1rem; font-weight: 650; margin-bottom: 4px; }
.feature p  { font-size: 0.84rem; color: var(--c-sub); line-height: 1.6; }

/* ==================== CTA ==================== */
.cta-section { padding: 5rem 0; text-align: center; }
.cta-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.cta-section p  { color: var(--c-sub); margin-bottom: 1.5rem; }

/* ==================== Footer ==================== */
.footer {
  border-top: 1px solid var(--c-border);
  background: #fff; padding: 1.8rem 0; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 1.75rem; margin-bottom: 8px; }
.footer-links a { font-size: 0.82rem; color: var(--c-sub); }
.footer p { font-size: 0.78rem; color: var(--c-muted); }

/* ==================== 滚动渐入 ==================== */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== 下载页 ==================== */
.dl-head {
  padding: 7rem 0 1.5rem; text-align: center;
}
.dl-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 8px; }
.dl-head p  { color: var(--c-sub); font-size: 1rem; }

.dl-body { padding: 1rem 0 5rem; }

.version-tabs {
  display: inline-flex; background: #fff; border: 1px solid var(--c-border);
  border-radius: 7px; padding: 3px; margin-bottom: 1.5rem;
}
.vtab {
  padding: 7px 18px; border: none; border-radius: 5px;
  background: transparent; color: var(--c-sub);
  font-size: 0.84rem; font-weight: 500; cursor: pointer;
  transition: all var(--t);
}
.vtab.active { background: var(--c-blue); color: #fff; }

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plt-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 2rem 1.5rem;
  text-align: center; transition: all var(--t);
}
.plt-card:hover { border-color: var(--c-blue); box-shadow: 0 2px 14px rgba(0,0,0,0.04); }
.plt-card.recommended {
  border: 2px solid var(--c-blue);
  position: relative;
}
.plt-card.recommended::before {
  content: "推荐"; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 2px 14px; border-radius: 12px;
  background: var(--c-blue); color: #fff;
  font-size: 0.72rem; font-weight: 600;
}

.plt-card .p-icon {
  width: 54px; height: 54px; margin: 0 auto 1rem;
  background: var(--c-bg-alt); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.plt-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 2px; }
.plt-card .p-arch {
  font-size: 0.78rem; color: var(--c-muted); font-family: var(--font-mono);
  margin-bottom: 8px;
}
.plt-card .p-ver {
  font-size: 0.8rem; color: var(--c-blue);
  font-family: var(--font-mono); margin-bottom: 1.25rem;
}

.btn-dl { width: 100%; justify-content: center; font-size: 0.86rem; }
.btn-dl-sm {
  font-size: 0.78rem; padding: 7px 14px; border-radius: 6px;
}
.dl-meta {
  margin-top: 10px; font-size: 0.74rem; color: var(--c-muted);
}

.req-box {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem;
  max-width: 680px; margin: 2.5rem auto 0;
}
.req-box h3 { font-size: 0.92rem; font-weight: 650; text-align: center; margin-bottom: 1rem; }
.req-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.req-item .rl { font-size: 0.73rem; color: var(--c-muted); }
.req-item .rv { font-size: 0.83rem; font-weight: 500; margin-top: 1px; }

/* ==================== 404 ==================== */
.p404 {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh;
  padding: 2rem; text-align: center; background: #fff;
}
.p404 .n404 {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 800; line-height: 1; color: var(--c-blue);
  letter-spacing: -0.04em;
}
.p404 h2 { font-size: 1.15rem; font-weight: 650; margin: 0.5rem 0 0.4rem; }
.p404 p  { color: var(--c-sub); font-size: 0.9rem; max-width: 420px; margin-bottom: 2rem; line-height: 1.6; }
.p404 .p404-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 6rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .features { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: 1fr; }
  .req-row { grid-template-columns: repeat(2, 1fr); }
  .hero-tags { gap: 4px; }
  .hero-tags span { font-size: 0.72rem; padding: 3px 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
