/* ============================================================
   Snipaste 中文版 — 官网样式
   设计：现代大气、轻量高速（Core Web Vitals 友好）
   仅用原生 CSS，无外部框架，首屏零阻塞
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --brand-1: #6366f1;   /* indigo  */
  --brand-2: #8b5cf6;   /* violet  */
  --brand-3: #06b6d4;   /* cyan    */
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 48%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.12));

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-card: #ffffff;
  --ok: #16a34a;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15,23,42,.06);
  --shadow: 0 12px 40px rgba(15,23,42,.10);
  --shadow-lg: 0 30px 80px rgba(79,70,229,.18);

  --maxw: 1180px;
  --nav-h: 66px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 基础重置 ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }
h1,h2,h3,h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
code { background: #eef2ff; color: #4338ca; padding: 1px 7px; border-radius: 6px; font-size: .88em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(99,102,241,.34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(99,102,241,.42); color:#fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: #222;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; }
.brand .logo {
  width: 30px; height: 30px; display: block; flex: none;
}
.brand small { font-weight: 600; font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; margin-left: 5px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.74); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28); color: #e5e7eb;
  background: rgba(255,255,255,.04);
  font-weight: 600; font-size: 14px; letter-spacing: .3px;
  transition: background .2s, color .2s, border-color .2s;
}
.lang-switch:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 540px at 82% -12%, rgba(99,102,241,.22), transparent 60%),
    radial-gradient(820px 460px at 4% 8%, rgba(6,182,212,.16), transparent 55%),
    #222;
  padding: 86px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--brand-1);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.025em; color: #fff; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: #cbd5e1; max-width: 540px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { font-size: 14px; color: rgba(255,255,255,.62); }
.hero-meta b { display: block; font-size: 22px; color: #fff; font-weight: 800; }

/* Hero 模拟截图窗口（纯 CSS） */
.window {
  border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: rotate(-1.5deg);
}
.window .bar { height: 38px; background: var(--bg-soft); display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window .bar i.r { background: #ff5f57; } .window .bar i.y { background: #febc2e; } .window .bar i.g { background: #28c840; }
.window .bar span { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.window .body { padding: 22px; display: grid; gap: 14px; }
.shot {
  height: 96px; border-radius: 12px; background: var(--grad-soft);
  border: 1px dashed rgba(99,102,241,.4); display: grid; place-items: center; color: var(--brand-1); font-weight: 700;
}
.kbd-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.kbd { background: var(--ink); color: #fff; border-radius: 7px; padding: 4px 10px; font-weight: 700; font-size: 12px; }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.stat span { color: var(--ink-3); font-size: 14px; }

/* ---------- 区块标题 ---------- */
.head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.head .tag { color: var(--brand-1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.head p { color: var(--ink-3); font-size: 17px; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.35); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--brand-1);
}
.card h3 { font-size: 20px; }
.card p { font-size: 15px; color: var(--ink-3); }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-3); font-size: 14.5px; }
.card ul li { margin: 6px 0; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; position: relative; }
.step .num { font-size: 46px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { margin-top: 10px; font-size: 20px; }
.step p { color: var(--ink-3); font-size: 15px; }

/* ---------- 对比表 ---------- */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.cmp thead th { background: var(--bg-soft); font-weight: 800; }
table.cmp th:first-child { position: sticky; left: 0; background: var(--bg-soft); }
table.cmp td:first-child { font-weight: 600; color: var(--ink); position: sticky; left: 0; background: #fff; }
table.cmp .yes { color: var(--ok); font-weight: 800; }
table.cmp .no { color: #cbd5e1; }
.pill-free, .pill-pro { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pill-free { background: #eef2ff; color: #4f46e5; }
.pill-pro { background: linear-gradient(135deg,#f5f3ff,#ecfeff); color: #7c3aed; border: 1px solid #ddd6fe; }

/* ---------- 下载平台 ---------- */
.plats { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.plat { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: var(--shadow-sm); display: flex; gap: 18px; align-items: flex-start; }
.plat .pic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex: none; }
.plat .pic img { width: 32px; height: 32px; }
.plat .pic.store { background: var(--grad-soft); font-size: 26px; }
.plat h3 { font-size: 19px; margin-bottom: 4px; }
.plat .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.plat .dl-links { display: flex; gap: 10px; flex-wrap: wrap; }
.plat .dl-links a { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.plat .dl-links a:hover { border-color: var(--brand-1); color: var(--brand-1); }

/* ---------- FAQ 手风琴 ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.acc { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { transition: transform .25s; color: var(--brand-1); font-size: 24px; flex: none; }
.acc[open] summary .plus { transform: rotate(45deg); }
.acc .ans { padding: 0 24px 22px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- 手册 ---------- */
.manual-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 18px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.toc h4 { font-size: 14px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0; color: var(--ink-2); font-size: 15px; border-bottom: 1px dashed var(--line); }
.toc a:last-child { border-bottom: none; }
.toc a:hover { color: var(--brand-1); }
.manual section { margin-bottom: 46px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.manual h2 { font-size: 26px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.manual h3 { font-size: 19px; margin-top: 26px; }
.kbd-table { width: 100%; border-collapse: collapse; }
.kbd-table th, .kbd-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14.5px; }
.kbd-table th { background: var(--bg-soft); }
.kbd-table code { background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 13px; }

/* ---------- Hero 右图（对齐官方：干净截图，无窗口栏 / 无倾斜） ---------- */
.hero-shot {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
}
.hero-shot img { width: 100%; height: auto; display: block; }

.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; cursor: zoom-in; }
.figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.figure .bar { height: 34px; background: var(--bg-soft); display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.figure .bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.figure .bar i.r { background: #ff5f57; } .figure .bar i.y { background: #febc2e; } .figure .bar i.g { background: #28c840; }
.figure .bar span { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.figure img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.figure figcaption { padding: 16px 20px; font-size: 14.5px; color: var(--ink-2); }
.figure figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- 功能详解：截图 + 要点（左右交替） ---------- */
.feat { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.feat:last-child { margin-bottom: 0; }
.feat.rev .feat-media { order: 2; }
.feat.rev .feat-copy { order: 1; }
.feat-media { display: grid; gap: 18px; }
.feat-media .figure { box-shadow: var(--shadow); }
.feat-media .figure.sub { width: 78%; margin-left: auto; }
.feat-copy h3 { position: relative; padding-left: 18px; font-size: clamp(22px, 2.8vw, 31px); margin-bottom: 12px; }
.feat-copy h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--grad); }
.feat-copy > p { padding-left: 18px; font-size: 16px; color: var(--ink-3); margin-bottom: 14px; }
.feat-list { list-style: none; margin: 0; padding: 0 0 0 18px; }
.feat-list > li { position: relative; padding: 8px 0 8px 24px; font-size: 15.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.feat-list > li:last-child { border-bottom: none; }
.feat-list > li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.feat-list b { color: var(--ink); }
.feat-list ul { list-style: none; margin: 8px 0 2px; padding: 0; }
.feat-list ul li { position: relative; padding: 3px 0 3px 18px; font-size: 14.5px; color: var(--ink-3); }
.feat-list ul li::before { content: "–"; position: absolute; left: 0; color: var(--brand-1); font-weight: 800; }

/* 截图放大灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(15,18,38,.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 5vh 5vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; opacity: .7; font-size: 13px; }

/* 手册内嵌截图 */
.manual .figure { margin: 20px 0 30px; }
.manual .figure:hover { transform: none; box-shadow: var(--shadow-sm); }
.shots-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 30px; }
.shots-pair .figure { margin: 0; }

/* ---------- 文档页通用 ---------- */
.doc { max-width: 900px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px,4vw,44px); }
.doc h2 { font-size: 24px; margin-top: 38px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 19px; margin-top: 26px; }
.doc ul, .doc ol { color: var(--ink-2); }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 30px; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-1); }

/* ---------- CTA 区块 ---------- */
.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(26px,3.4vw,38px); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); color:#fff; }
.cta-band .btn-white { background: #fff; color: var(--brand-1); }
.cta-band .btn-white:hover { transform: translateY(-2px); color: var(--brand-1); }

/* ---------- 页脚 ---------- */
.footer { background: #0b1020; color: #cbd5e1; padding: 60px 0 30px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: #94a3b8; display: block; padding: 5px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .desc { font-size: 14px; color: #94a3b8; max-width: 280px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #64748b; }
.footer .socials { display: flex; gap: 12px; }
.footer .socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .window { transform: none; max-width: 460px; margin: 0 auto; }
  .cards, .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .manual-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .feat { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
  .feat.rev .feat-media, .feat.rev .feat-copy { order: 0; }
  .feat-media .figure.sub { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #222; flex-direction: column; padding: 14px 22px; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switch { height: 34px; padding: 0 12px; font-size: 13px; }
  .section { padding: 64px 0; }
  .cards, .steps, .plats, .stats, .gallery, .shots-pair { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
