/* Magpie / 搁一搁 — magpieapp.app */
:root {
  --bg: #fbfaf8;
  --bg-2: #f4f2ee;
  --card: #ffffff;
  --ink: #1c1b1f;
  --muted: #6b6870;
  --line: rgba(28, 27, 31, 0.09);
  --brand-a: #ffaa50;
  --brand-b: #f04a70;
  --accent: #f4705c;
  --grad: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  --shadow: 0 1px 2px rgba(20, 10, 10, 0.04), 0 12px 32px rgba(60, 20, 30, 0.08);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d11;
    --bg-2: #15141a;
    --card: #19181e;
    --ink: #f4f2f5;
    --muted: #a19ea8;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.lang-zh-Hans { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
body.lang-zh-Hant { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif; }
body.lang-ja { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
body.lang-ko { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
body.lang-zh-Hans h1, body.lang-zh-Hant h1, body.lang-ja h1, body.lang-ko h1,
body.lang-zh-Hans h2, body.lang-zh-Hant h2, body.lang-ja h2, body.lang-ko h2 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
h1, h2, .lead, .sub { text-wrap: balance; }
section[id] { scroll-margin-top: 62px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-pick { position: relative; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.lang-pick select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: inherit; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(240, 74, 112, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(240, 74, 112, 0.36); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn-light { background: #fff; color: #c2364f; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }

/* ---------- 首屏 ---------- */
.hero { padding: 84px 0 40px; text-align: center; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(42px, 7vw, 82px); font-weight: 750; margin: 22px auto 0; max-width: 14ch; }
body.lang-zh-Hans .hero h1, body.lang-zh-Hant .hero h1, body.lang-ja .hero h1, body.lang-ko .hero h1 { max-width: 16em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.dl-count { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; font-size: 14px; color: var(--muted); }
.dl-count[hidden] { display: none; }
.dl-count .n { font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3db286; box-shadow: 0 0 0 0 rgba(61, 178, 134, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 178, 134, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 178, 134, 0); } }
.final .dl-count { color: rgba(255, 255, 255, .92); }
.final .pulse { background: #fff; animation: none; }

/* 演示场景：从「访达」拖起文件 → 架子滑出 → 放进去（8 秒循环） */
.scene {
  --sx: 0px; --sy: 0px; --mx: 0px; --my: 0px; --ex: 0px; --ey: 0px; --dw: 40px;
  position: relative; margin: 64px auto 0; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9;
  border-radius: 30px; overflow: hidden; text-align: left;
  background: linear-gradient(140deg, #ffb35c 0%, #f77a62 48%, #e94a76 100%);
  box-shadow: 0 30px 80px rgba(200, 60, 80, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.o1 { width: 44%; aspect-ratio: 1; left: -8%; top: -18%; background: rgba(255, 255, 255, 0.35); animation: drift1 16s ease-in-out infinite alternate; }
.o2 { width: 50%; aspect-ratio: 1; right: -12%; bottom: -30%; background: rgba(140, 40, 140, 0.35); animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18%, 12%); } }
@keyframes drift2 { to { transform: translate(-16%, -10%); } }

.win {
  position: absolute; border-radius: 14px; overflow: hidden;
  background: rgba(24, 22, 28, 0.9); box-shadow: 0 24px 60px rgba(40, 10, 20, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 5.4%; min-height: 18px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; padding: 0 2.4%;
  background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: clamp(9px, 1.1vw, 13px); font-weight: 600;
}
.menubar b { display: inline-block; height: 0.55em; border-radius: 3px; background: rgba(255, 255, 255, 0.75); vertical-align: middle; }
.mb-left { display: flex; gap: 1.6em; }
.mb-left b { width: 2.6em; }
.mb-left b:first-child { width: 0.9em; height: 0.9em; border-radius: 50%; }
.mb-right { display: flex; align-items: center; gap: 1.1em; }
.mb-right b { width: 1.2em; height: 0.8em; }
.mb-tray { width: 1.7em; height: 1.4em; padding: 0.15em 0.3em; border-radius: 0.35em; }
.scene.ready .mb-tray { animation: trayhl 8s ease-in-out infinite; }
@keyframes trayhl {
  0%, 11% { background: transparent; }
  17%, 86% { background: rgba(255, 255, 255, 0.32); }
  94%, 100% { background: transparent; }
}
.finder { left: 6%; top: 22%; width: 54%; height: 66%; }
.win-body { display: flex; height: calc(100% - 35px); }
.side { width: 23%; padding: 6% 3.5%; display: grid; align-content: start; gap: 11px; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.side b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.side b:nth-child(2) { background: rgba(255, 170, 80, 0.55); width: 80%; }
.side b:nth-child(4) { width: 70%; }
.win-bar { display: flex; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 9% 5%; padding: 7% 6%; }
.doc { width: 100%; aspect-ratio: 40 / 52; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.grid .doc { width: 64%; justify-self: center; }

.shelf {
  position: absolute; right: 5.5%; top: 11%; width: 26%;
  padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 50px rgba(60, 10, 30, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: #2a2830;
}
.shelf-head { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: clamp(10px, 1.3vw, 14px); padding: 2px 4px 10px; }
.shelf-head .ic { color: var(--accent); }
.row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.row .th { width: clamp(16px, 2.6vw, 28px); aspect-ratio: 1; border-radius: 6px; flex: none; }
.row .tx { flex: 1; display: grid; gap: 5px; }
.row .tx i { display: block; height: 5px; border-radius: 3px; background: rgba(40, 30, 50, 0.45); width: 78%; }
.row .tx i + i { background: rgba(40, 30, 50, 0.18); width: 52%; height: 4px; }
.row .ic { color: rgba(40, 30, 50, 0.4); }
.row .ic.ok { color: var(--accent); }

.fly { position: absolute; left: 0; top: 0; width: var(--dw); opacity: 0; z-index: 3; }
.cursor { position: absolute; left: 0; top: 0; width: clamp(16px, 2.2vw, 24px); z-index: 4; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }

.scene.ready .shelf { animation: shelf 8s ease-in-out infinite; }
.scene.ready .row-new { animation: rownew 8s ease-in-out infinite; }
.scene.ready .ghost { animation: ghost 8s ease-in-out infinite; }
.scene.ready .fly { animation: fly 8s cubic-bezier(.45, .05, .35, 1) infinite; }
.scene.ready .cursor { animation: cursor 8s cubic-bezier(.45, .05, .35, 1) infinite; }
.scene:not(.ready) .row-new { opacity: 0; }
.scene:not(.ready) .cursor { opacity: 0; }

@keyframes shelf {
  0%, 11% { opacity: 0; transform: translateY(-14px) scale(.98); }
  17%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(-14px) scale(.98); }
}
@keyframes rownew {
  0%, 40% { opacity: 0; transform: scale(.94); }
  46%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; }
}
@keyframes ghost {
  0%, 9% { opacity: 1; }
  11%, 88% { opacity: .28; }
  96%, 100% { opacity: 1; }
}
@keyframes fly {
  0%, 9% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1); }
  11% { opacity: 1; transform: translate(var(--sx), var(--sy)) scale(1.12); }
  26% { transform: translate(var(--mx), var(--my)) scale(1.12) rotate(-7deg); }
  40% { opacity: 1; transform: translate(var(--ex), var(--ey)) scale(1) rotate(-4deg); }
  46%, 100% { opacity: 0; transform: translate(var(--ex), var(--ey)) scale(.45); }
}
@keyframes cursor {
  0% { opacity: 0; transform: translate(calc(var(--sx) + var(--dw) * 1.6), calc(var(--sy) + var(--dw) * 2.4)); }
  3% { opacity: 1; }
  9%, 11% { transform: translate(calc(var(--sx) + var(--dw) * .55), calc(var(--sy) + var(--dw) * .7)); }
  26% { transform: translate(calc(var(--mx) + var(--dw) * .55), calc(var(--my) + var(--dw) * .7)); }
  40%, 80% { opacity: 1; transform: translate(calc(var(--ex) + var(--dw) * .55), calc(var(--ey) + var(--dw) * .7)); }
  88%, 100% { opacity: 0; transform: translate(calc(var(--ex) + var(--dw) * .55), calc(var(--ey) + var(--dw) * .7)); }
}
@media (prefers-reduced-motion: reduce) {
  .scene.ready .shelf, .scene.ready .row-new, .scene.ready .ghost, .orb { animation: none; }
  .scene .fly, .scene .cursor { display: none; }
  .scene .row-new { opacity: 1 !important; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 110px 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 720; text-align: center; }
.section .sub { color: var(--muted); font-size: 19px; text-align: center; max-width: 640px; margin: 18px auto 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 23px; margin-top: 20px; }
.step p { color: var(--muted); margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; margin-top: 56px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20, 10, 10, .04), 0 20px 44px rgba(60, 20, 30, .12); }
.features .card:nth-child(1), .features .card:nth-child(7) { grid-column: span 2; }
.badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 170, 80, .18), rgba(240, 74, 112, .18)); color: var(--accent);
}
.badge .ic { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-top: 18px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* 隐私：深色区块 */
.section.dark {
  background: radial-gradient(1200px 500px at 50% -10%, rgba(240, 74, 112, .28), transparent 60%), #121016;
  color: #f4f2f5;
}
.section.dark .sub { color: #b4b0bb; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pillar { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: var(--radius); padding: 30px; }
.pillar .ic { width: 30px; height: 30px; color: #ffb36b; }
.pillar h3 { font-size: 21px; margin-top: 18px; }
.pillar p { color: #b4b0bb; margin-top: 8px; font-size: 16px; }
.more { text-align: center; margin-top: 36px; }
.more a { display: inline-flex; align-items: center; gap: 6px; color: #ffb36b; text-decoration: none; font-weight: 600; }

/* 快捷键 */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 860px; margin: 48px auto 0; }
.key-row { display: flex; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.caps { display: flex; gap: 5px; min-width: 116px; }
kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-grid; place-items: center; border-radius: 8px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line);
}

/* 常见问题 */
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa:first-of-type { margin-top: 40px; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  font-weight: 620; font-size: 19px; padding: 18px 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; display: inline-block; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); padding: 0 0 20px; }

/* 结尾号召 */
.final {
  text-align: center; color: #fff; border-radius: 34px; padding: 72px 28px;
  background: radial-gradient(800px 300px at 20% 0%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, #ffad57, #f2566c 60%, #e2457a);
  box-shadow: 0 30px 80px rgba(200, 60, 80, .25);
}
.final img { margin: 0 auto 24px; filter: drop-shadow(0 18px 30px rgba(80, 10, 30, .35)); }
.final h2 { color: #fff; }
.final p { opacity: .92; font-size: 19px; margin: 14px auto 30px; max-width: 560px; }
.final .meta { color: rgba(255, 255, 255, .85); margin-bottom: 0; font-size: 14px; }

/* 文档页（隐私政策） */
.doc-page h1 { font-size: clamp(34px, 5vw, 52px); }
.doc-page .updated { color: var(--muted); margin-top: 12px; font-size: 15px; }
.doc-page .lead { margin: 26px 0 0; max-width: none; }
.doc-page h2 { font-size: 24px; text-align: left; margin: 44px 0 12px; }
.doc-page p { color: var(--ink); opacity: .86; margin-bottom: 12px; }

.notfound { text-align: center; }
.notfound .doc.big { width: 90px; margin: 0 auto 20px; }
.notfound h1 { font-size: 72px; }
.notfound .lead { margin: 12px auto 32px; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 9px; }
.foot-brand div { display: grid; }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 24px; font-size: 15px; }
.foot-links a, .foot-langs a { text-decoration: none; color: var(--muted); }
.foot-links a:hover, .foot-langs a:hover { color: var(--ink); }
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features .card:nth-child(1), .features .card:nth-child(7) { grid-column: span 2; }
  .steps, .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
  .lang-pick .ic { display: none; }
  .hero { padding-top: 56px; }
  .scene { aspect-ratio: 4 / 3; border-radius: 22px; margin-top: 44px; }
  .finder { left: 5%; top: 30%; width: 62%; height: 60%; }
  .side { display: none; }
  .grid .doc:nth-child(n+9) { display: none; }
  .mb-left b:not(:first-child) { display: none; }
  .shelf { width: 36%; right: 4%; top: 7%; padding: 8px; border-radius: 12px; }
  .row { padding: 5px; gap: 6px; }
  .grid { gap: 9% 6%; padding: 9% 8%; }
  .features { grid-template-columns: 1fr; }
  .features .card:nth-child(1), .features .card:nth-child(7) { grid-column: auto; }
  .keys { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .foot-in { grid-template-columns: 1fr; }
}
