/* ===== Ventoy中文网 全局样式 ===== */
:root {
  --primary: #6366f1;
  --accent: #38bdf8;
  --ink: #0f172a;
  --ink-soft: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(15, 23, 42, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-link img { height: 40px; width: auto; }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all .2s;
}

.site-nav a:hover { color: var(--primary); background: #eef2ff; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(56, 189, 248, .18), transparent),
    radial-gradient(700px 500px at 10% 90%, rgba(99, 102, 241, .16), transparent),
    linear-gradient(180deg, #0b1120 0%, #111c33 100%);
  color: #e2e8f0;
  padding: 80px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .08);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.35;
  font-weight: 800;
  background: linear-gradient(100deg, #ffffff 30%, #93c5fd 70%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.lead {
  font-size: 17px;
  color: #94a3b8;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, .5); }

.btn-ghost {
  color: #e2e8f0;
  border: 1px solid #334155;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.mirror-note {
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
}

.mirror-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, .5);
}

.mirror-note a:hover { border-bottom-style: solid; }

.steps-detail a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(99, 102, 241, .5);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 44px;
  margin-top: 44px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  background: linear-gradient(120deg, var(--accent), #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats span { font-size: 13px; color: #64748b; }

.hero-figure img { filter: drop-shadow(0 20px 50px rgba(56, 189, 248, .2)); }

/* ===== 通用 Section ===== */
.section { padding: 84px 0; }

.section-alt { background: #eef2f9; }

.section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  margin-bottom: 36px;
  position: relative;
  padding-left: 18px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.section p { color: var(--ink-soft); margin-bottom: 14px; }

/* ===== 什么是 Ventoy ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}

.figure-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.figure-card figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 10px;
}

/* ===== 功能卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(99, 102, 241, .16);
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h4 {
  font-size: 14px;
  color: var(--ink);
  margin: 16px 0 6px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.tags { font-size: 13px; letter-spacing: .02em; }

/* ===== 教程 ===== */
.figure-wide {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  overflow-x: auto;
}

.figure-wide img { margin: 0 auto; }

.steps-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.steps-detail h3 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }

/* ===== FAQ ===== */
.faq-wrap details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.faq-wrap summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-wrap summary::-webkit-details-marker { display: none; }

.faq-wrap summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: transform .2s;
}

.faq-wrap details[open] summary::after { transform: rotate(45deg); }

.faq-wrap summary h3 { font-size: 16px; font-weight: 700; }

.faq-wrap details p { margin: 12px 0 4px; }

/* ===== 页脚 ===== */
.site-footer {
  background: #0b1120;
  color: #cbd5e1;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

.site-footer .muted { color: #64748b; font-size: 13px; margin-top: 8px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid, .steps-detail { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 0; }
}
