/* ============================================================
   Safew 官网全局样式
   配色：深墨蓝 #0B1622 + 青碧 #14B8A6
   ============================================================ */

:root {
  --ink-950: #070D16;
  --ink-900: #0B1622;
  --ink-800: #112236;
  --ink-700: #1B2F47;
  --ink-600: #2A4059;

  --brand: #14B8A6;
  --brand-strong: #0D9488;
  --brand-bright: #2DD4BF;
  --brand-soft: rgba(20, 184, 166, 0.12);
  --brand-line: rgba(20, 184, 166, 0.35);

  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6B7F;
  --line: #E4E9EF;
  --gold: #F59E0B;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 34, 0.05);
  --shadow-md: 0 8px 28px rgba(11, 22, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 22, 34, 0.16);

  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶部导航 ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 22, 34, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .25s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: .5px;
}
.brand-mark {
  width: 32px; height: 32px; flex: none;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--brand-bright); }
.nav-cta {
  margin-left: 10px;
  background: var(--brand);
  color: #06251F !important;
  font-weight: 600;
  padding: 9px 18px !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-bright) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: 0;
  transition: transform .15s ease, background .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #06251F;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}
.btn-primary:hover { background: var(--brand-bright); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-dark {
  background: var(--ink-900); color: #fff;
}
.btn-dark:hover { background: var(--ink-700); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Hero（首页深色） ============ */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(20,184,166,0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(20,184,166,0.10), transparent 60%),
    var(--ink-900);
  color: #fff;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 22px;
  font-family: var(--font-display);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--brand-bright);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--brand-bright); }
.hero p.lead {
  font-size: 18px; color: rgba(255,255,255,0.72);
  max-width: 520px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,0.6);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-visual img { width: 100%; height: auto; }

/* 信任条 */
.trust-bar {
  background: var(--ink-950);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.trust-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.trust-badges { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-badges b { color: #fff; font-weight: 600; }

/* ============ 通用 section ============ */
.section { padding: 96px 0; }
.section.tinted { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2; font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ============ 特性网格 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-900);
}
.feature-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .body { padding: 22px; }
.feature-card h3 {
  font-size: 18px; margin-bottom: 8px; font-weight: 600;
}
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ============ 图文交错块 ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.split-body h3 {
  font-family: var(--font-display);
  font-size: 28px; margin-bottom: 16px; line-height: 1.3;
}
.split-body p { color: var(--muted); margin-bottom: 18px; }
.check-list { list-style: none; }
.check-list li {
  padding-left: 30px; position: relative; margin-bottom: 12px;
  color: var(--text); font-size: 15px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D9488' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ============ 数据带 ============ */
.stat-band {
  background: var(--ink-900);
  color: #fff;
  padding: 64px 0;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700; color: var(--brand-bright);
  line-height: 1; margin-bottom: 10px;
}
.stat-label { color: rgba(255,255,255,0.6); font-size: 14px; }

/* ============ 步骤 ============ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 14px; color: var(--brand-strong);
  font-weight: 700; letter-spacing: 2px;
}
.step h4 { margin: 12px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============ CTA 横幅 ============ */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(20,184,166,0.2), transparent 60%),
    var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h3 { font-family: var(--font-display); font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.7); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-950);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
  font-size: 14px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h5 {
  color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--brand-bright); }
.footer-about p { margin-top: 14px; max-width: 320px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px;
}

/* ============ 内页页头（非首页） ============ */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(20,184,166,0.15), transparent 60%),
    var(--ink-900);
  color: #fff;
  padding: 150px 0 80px;
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-bright); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px; line-height: 1.15;
}
.page-hero p { color: rgba(255,255,255,0.7); max-width: 640px; font-size: 17px; }

/* ============ 下载页 ============ */
.download-layout {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: start;
}
.download-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
}
.download-card .ver {
  display: inline-block; background: var(--brand-soft); color: var(--brand-strong);
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.download-card h2 { font-size: 26px; margin-bottom: 10px; }
.download-card .meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; margin: 18px 0 26px;
}
.download-card .meta-row b { color: var(--text); font-weight: 600; }
.hash-box {
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: 10px; padding: 12px 16px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px; color: var(--muted); word-break: break-all;
  margin-top: 14px;
}
.alt-links { margin-top: 22px; font-size: 14px; color: var(--muted); }
.alt-links a { color: var(--brand-strong); margin-left: 10px; }

.side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 20px;
}
.side-card h4 { font-size: 16px; margin-bottom: 16px; }
.side-card ul { list-style: none; }
.side-card li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
  display: flex; justify-content: space-between;
}
.side-card li:last-child { border-bottom: 0; }
.side-card li b { color: var(--text); font-weight: 500; }

/* 更新日志 */
.changelog { margin-top: 64px; }
.log-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.log-item .ver-tag {
  font-family: var(--font-display); font-weight: 700; color: var(--ink-900);
}
.log-item .date { color: var(--muted); font-size: 13px; margin-top: 4px; }
.log-item ul { padding-left: 20px; color: var(--muted); font-size: 15px; }
.log-item li { margin-bottom: 6px; }

/* ============ FAQ 页 ============ */
.faq-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 48px; align-items: start;
}
.faq-side { position: sticky; top: 90px; }
.faq-side h5 {
  font-size: 12px; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase; margin-bottom: 14px;
}
.faq-side ul { list-style: none; }
.faq-side a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--muted); font-size: 14.5px; margin-bottom: 2px;
}
.faq-side a:hover, .faq-side a.active {
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 600;
}
.faq-search {
  margin-bottom: 30px; position: relative;
}
.faq-search input {
  width: 100%; padding: 13px 18px 13px 46px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-family: var(--font-body);
  background: var(--surface);
}
.faq-search input:focus { outline: 2px solid var(--brand-line); border-color: var(--brand); }
.faq-search::before {
  content: ""; position: absolute; left: 18px; top: 50%;
  width: 16px; height: 16px; transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B7F' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") center/contain no-repeat;
}
.faq-group { margin-bottom: 48px; }
.faq-group > h3 {
  font-size: 22px; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink-900);
  display: inline-block;
}
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
  font-family: var(--font-body); color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .icon {
  flex: none; width: 24px; height: 24px; position: relative;
  transition: transform .25s;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; background: var(--brand-strong);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 12px; height: 2px; }
.faq-q .icon::after { width: 2px; height: 12px; transition: opacity .2s; }
.faq-item.open .faq-q .icon::after { opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ============ Windows 客户端页 ============ */
.milestone-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin: 40px 0;
}
.mini-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.mini-card .num {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--brand-strong); margin-bottom: 6px;
}
.mini-card .lbl { color: var(--muted); font-size: 14px; }

.spec-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.spec-table th, .spec-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-table th {
  background: var(--bg); font-weight: 600; width: 200px; color: var(--ink-900);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero { padding: 130px 0 80px; }
  .hero-grid, .split, .split.reverse, .download-layout, .faq-layout {
    grid-template-columns: 1fr; gap: 36px;
  }
  .split.reverse > .split-media { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .milestone-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-side { position: static; }
  .log-item { grid-template-columns: 1fr; gap: 8px; }

  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-900);
    flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .section { padding: 64px 0; }
}
