/* ==========================================================
   SafeW 官方下载站 · style.css
   配色：深色高级底 + 紫蓝品牌渐变（与官网 logo 一致）
   ========================================================== */

:root {
  --bg: #0a0c13;
  --bg-soft: #11141f;
  --bg-card: #161a27;
  --bg-card-2: #1c2130;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-2: #a6adc2;
  --text-3: #79819a;
  --purple: #a855f7;
  --violet: #7c3aed;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 48%, #3b82f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.18));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用标题 ---------- */
.section { padding: 96px 0; position: relative; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); font-weight: 600; margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--grad); }

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 16px;
}
.section-head p { color: var(--text-2); font-size: 17px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font);
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124, 58, 237, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 12, 19, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: 0.02em; }
.brand-name span { color: var(--text-3); font-weight: 500; font-size: 13px; display: block; letter-spacing: 0.06em; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav-menu a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 480px at 18% 12%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(760px 520px at 85% 30%, rgba(59, 130, 246, 0.2), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(124, 58, 237, 0.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text-2);
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.18;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; color: var(--text-3); font-size: 14px; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--purple); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img.main-shot {
  width: 100%; max-width: 460px; filter: drop-shadow(0 40px 70px rgba(124, 58, 237, 0.35));
}
.hero-logo-float {
  position: absolute; top: -6%; left: 4%; width: 74px; height: 74px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; padding: 14px;
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 数据条 ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0; }
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- 功能卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.4); background: var(--bg-card-2); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--purple); }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 15px; }

/* ---------- 下载中心 ---------- */
.download { background: var(--bg-soft); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s ease, border-color .25s ease;
}
.dl-card:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, 0.4); }
.dl-top { display: flex; align-items: center; gap: 16px; }
.dl-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; }
.dl-icon svg { width: 26px; height: 26px; color: var(--blue); }
.dl-top h3 { font-size: 18.5px; font-weight: 700; }
.dl-top .ver { font-size: 13px; color: var(--text-3); }
.dl-info { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.dl-info li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.dl-info li b { color: var(--text); font-weight: 500; }
.dl-card .btn { margin-top: auto; }

.dl-note { margin-top: 34px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- 三步上手 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; }
.step .step-no {
  font-size: 15px; font-weight: 800; color: var(--purple); letter-spacing: 0.1em; margin-bottom: 14px;
  display: inline-block;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- 产品展示 ---------- */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase-visual { position: relative; }
.showcase-visual img { border-radius: 22px; border: 1px solid var(--line); }
.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.showcase-copy p { color: var(--text-2); margin-bottom: 18px; }
.showcase-list { display: grid; gap: 14px; margin-top: 24px; }
.showcase-list li { display: flex; gap: 12px; color: var(--text-2); font-size: 15px; }
.showcase-list svg { width: 20px; height: 20px; color: #34d399; flex-shrink: 0; margin-top: 3px; }

/* ---------- 更新日志 ---------- */
.changelog { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.log-item { display: grid; grid-template-columns: 170px 1fr; gap: 24px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 28px; }
.log-item .ver { font-weight: 700; color: var(--purple); }
.log-item .date { font-size: 13px; color: var(--text-3); }
.log-item p { color: var(--text-2); font-size: 15px; }

/* ---------- 对比表 ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-card); }
table.compare th, table.compare td { padding: 18px 22px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line); }
table.compare th { color: var(--text-2); font-weight: 600; background: var(--bg-card-2); }
table.compare td:first-child, table.compare th:first-child { text-align: left; }
table.compare .self { color: var(--text); font-weight: 700; }
.yes { color: #34d399; font-weight: 600; }
.no { color: var(--text-3); }
.part { color: #f59e0b; }

/* ---------- 场景 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.scene-card img { height: 180px; width: 100%; object-fit: cover; }
.scene-body { padding: 26px; }
.scene-body h3 { font-size: 18px; margin-bottom: 10px; }
.scene-body p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.scene-body blockquote { color: var(--text-3); font-size: 14px; border-left: 2px solid var(--purple); padding-left: 14px; }

/* ---------- 教程 ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s; }
.guide-card:hover { border-color: rgba(168, 85, 247, 0.4); }
.guide-card .tag { font-size: 12.5px; color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card h3 { font-size: 17.5px; margin: 10px 0; }
.guide-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.guide-card a { color: var(--blue); font-size: 14px; font-weight: 600; }

/* ---------- 评价 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote-card p { color: var(--text-2); font-size: 15.5px; margin-bottom: 22px; }
.quote-user { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.quote-user .who { font-size: 14.5px; font-weight: 600; }
.quote-user .role { font-size: 13px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; background: none; border: none; color: var(--text);
  font-size: 16.5px; font-weight: 600; cursor: pointer; text-align: left; font-family: var(--font);
}
.faq-q .chev { transition: transform .25s; color: var(--purple); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 26px 22px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta-box {
  background: var(--grad-soft); border: 1px solid var(--line-strong); border-radius: 26px;
  padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(168, 85, 247, 0.25), transparent 70%);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-box p { color: var(--text-2); max-width: 520px; margin: 0 auto 30px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 14px; color: var(--text-3); font-size: 13.5px;
}

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid, .dl-grid, .steps-grid, .scene-grid, .guides-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid, .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 340px; }
  .nav-menu a { padding: 16px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .features-grid, .dl-grid, .steps-grid, .scene-grid, .guides-grid, .quote-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .log-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
}
