/* zyy 钱包 — shared styles */
/* Layout concept: a "cold-storage ledger" in deep-sea blue — calm cool pages, one navy vault panel per page
   holding the product itself, live canvas visuals instead of photos, monospace for every on-chain value. */
:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --ink: #0B1630;
  --muted: #55627C;
  --line: #D6DEEC;
  --accent: #1B56D6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EAFB;
  --signal: #B4690C;
  --vault: #0A1733;
  --vault-ink: #E4ECFB;
  --vault-muted: #8EA3C8;
  --vault-line: #1C2E55;
  --vault-accent: #5EA8FF;
  --vault-signal: #F2B655;
  --shadow: 0 1px 2px rgba(10, 23, 51, .06), 0 12px 32px -16px rgba(10, 23, 51, .28);

  --f-display: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070E1E; --surface: #0E1830; --ink: #E4EBF8; --muted: #93A3C2; --line: #1F2D4D;
    --accent: #6CA0FF; --accent-ink: #061026; --accent-soft: #14254A; --signal: #F0B04A;
    --vault: #050B1A; --vault-line: #182850;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070E1E; --surface: #0E1830; --ink: #E4EBF8; --muted: #93A3C2; --line: #1F2D4D;
  --accent: #6CA0FF; --accent-ink: #061026; --accent-soft: #14254A; --signal: #F0B04A;
  --vault: #050B1A; --vault-line: #182850;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.25; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 4vw); }
.section { padding-block: var(--s-9); }
.section.tight { padding-block: var(--s-8); }
.section-head { display: grid; gap: var(--s-3); max-width: 44rem; margin-bottom: var(--s-7); }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .98rem/1 var(--f-body); padding: .95em 1.4em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-vault { background: var(--vault-accent); color: #061026; }
.btn-vault-ghost { border-color: var(--vault-line); color: var(--vault-ink); }
.btn-vault-ghost:hover { border-color: var(--vault-accent); color: var(--vault-accent); }
.btn .arr { font-family: var(--f-mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: var(--f-mono); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { font-family: var(--f-body); font-weight: 500; font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { color: var(--muted); padding: .5rem .85rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-cta { display: flex; gap: var(--s-2); }
.header-cta .btn { padding: .7em 1.15em; font-size: .9rem; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: grid; padding-block: var(--s-3) var(--s-5); }
.mobile-menu nav a { color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 500; display: flex; justify-content: space-between; }
.mobile-menu nav a::after { content: "→"; font-family: var(--f-mono); color: var(--muted); }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn-row { margin-top: var(--s-4); }
.mobile-menu .btn { flex: 1; }

@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open .mobile-menu { display: block; }
}

/* Hero */
.hero { padding-block: var(--s-8) var(--s-9); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s-8); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: .92rem; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.page-hero { padding-block: var(--s-8) var(--s-7); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: var(--s-4); }
.crumbs { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Wallet mock (the vault panel) */
.wallet {
  background: var(--vault); color: var(--vault-ink); border-radius: var(--r-l);
  padding: var(--s-5); box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid var(--vault-line); min-width: 0;
}
.wallet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--vault-line) 1px, transparent 1px), linear-gradient(90deg, var(--vault-line) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(120% 70% at 100% 0%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(120% 70% at 100% 0%, #000 0%, transparent 60%);
}
.wallet > * { position: relative; }
.w-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: .82rem; color: var(--vault-muted); }
.w-chip { font-family: var(--f-mono); font-size: .74rem; padding: .3rem .6rem; border: 1px solid var(--vault-line); border-radius: 999px; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.w-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--vault-accent); box-shadow: 0 0 0 3px rgba(94,168,255,.22); animation: blink 2s ease-in-out infinite; }
.w-balance { margin-block: var(--s-5) var(--s-2); }
.w-balance .label { font-size: .82rem; color: var(--vault-muted); }
.w-balance .num { font-family: var(--f-mono); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; }
.w-balance .num small { font-size: .5em; color: var(--vault-muted); margin-left: .3em; }
.w-addr { font-family: var(--f-mono); font-size: .8rem; color: var(--vault-muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.w-addr b { color: var(--vault-ink); font-weight: 500; }
.w-assets { list-style: none; padding: 0; margin: var(--s-5) 0 0; border-top: 1px solid var(--vault-line); }
.w-assets li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; padding-block: .7rem; border-bottom: 1px solid var(--vault-line); }
.coin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; font-weight: 600; color: #04211D; }
.coin.btc { background: #F2B655; } .coin.eth { background: #A9B8F0; } .coin.sol { background: #9FD8F0; } .coin.usdt { background: #7FD6B4; } .coin.trx { background: #F09A8F; }
.w-assets .n { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.w-assets .n small { display: block; color: var(--vault-muted); font-size: .76rem; font-family: var(--f-mono); }
.w-assets .v { text-align: right; font-family: var(--f-mono); font-size: .88rem; line-height: 1.3; }
.w-assets .v small { display: block; font-size: .74rem; color: var(--vault-accent); }
.w-assets .v small.down { color: var(--vault-signal); }
.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-4); }
.w-actions span { text-align: center; font-size: .78rem; color: var(--vault-muted); padding: .6rem 0; border: 1px solid var(--vault-line); border-radius: var(--r-s); }
.seed { margin-top: var(--s-4); padding: var(--s-3); border: 1px dashed var(--vault-line); border-radius: var(--r-m); }
.seed-head { display: flex; justify-content: space-between; gap: var(--s-2); font-size: .76rem; color: var(--vault-muted); margin-bottom: var(--s-2); flex-wrap: wrap; }
.seed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seed-grid span { font-family: var(--f-mono); font-size: .72rem; padding: .3rem .35rem; border-radius: 4px; background: rgba(255,255,255,.04); color: var(--vault-muted); white-space: nowrap; overflow: hidden; }
.seed-grid span b { color: var(--vault-line); font-weight: 400; margin-right: .3em; filter: brightness(2); }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: var(--s-5) var(--s-4); display: grid; gap: .2rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { font-family: var(--f-mono); font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; }
.trust-item span { color: var(--muted); font-size: .88rem; }

/* Generic grids & cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 22px; height: 22px; }
.spec { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: var(--s-3); margin-top: var(--s-2); }
.spec b { color: var(--ink); font-weight: 500; }

/* Advantages: big type list on the left, detail on the right */
.adv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.adv-row { display: grid; grid-template-columns: 5rem 1fr 1.3fr; gap: var(--s-6); padding-block: var(--s-6); border-bottom: 1px solid var(--line); align-items: start; }
.adv-row .tag { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); padding-top: .4rem; }
.adv-row h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.adv-row p { color: var(--muted); }

/* Media: live canvas visuals (drawn by main.js) */
.media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; max-width: 100%;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(94,168,255,.28), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(242,182,85,.14), transparent 60%),
    var(--vault);
}
.media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.media::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--vault-muted);
}
.media::before {
  content: "LIVE"; position: absolute; right: 12px; top: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; color: var(--vault-accent);
  padding: .15rem .45rem .15rem 1.1rem; border: 1px solid var(--vault-line); border-radius: 999px;
  background: radial-gradient(circle at .55rem 50%, var(--vault-accent) 0 3px, transparent 4px);
}
.media.tall { aspect-ratio: 4 / 5; }
.live-up { color: var(--vault-accent) !important; }
.live-down { color: var(--vault-signal) !important; }
.tick { transition: color .4s; }
.tick.flash { color: var(--vault-accent); }
@keyframes blink { 50% { opacity: .35; } }

/* Services preview */
.svc-link { display: grid; gap: var(--s-3); color: var(--ink); }
.svc-link:hover { text-decoration: none; }
.svc-link h3 { display: flex; justify-content: space-between; gap: var(--s-2); }
.svc-link h3 .arr { font-family: var(--f-mono); color: var(--accent); transition: transform .2s; }
.svc-link:hover h3 .arr { transform: translateX(4px); }
.svc-link p { color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-6); display: grid; gap: var(--s-5); align-content: space-between; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.75; }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; }
.quote figcaption small { display: block; color: var(--muted); font-size: .8rem; }
.sample-note { font-family: var(--f-mono); font-size: .72rem; color: var(--signal); border: 1px solid currentColor; border-radius: 999px; padding: .15rem .55rem; width: fit-content; }

/* Vault band (dark CTA band used on every page) */
.vault-band { background: var(--vault); color: var(--vault-ink); border-radius: var(--r-l); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.vault-band h2 { color: var(--vault-ink); }
.vault-band p { color: var(--vault-muted); margin-top: var(--s-3); }
.vault-band .btn-row { justify-content: flex-end; }
.vault-band .hash { position: absolute; right: -2rem; top: 1rem; font-family: var(--f-mono); font-size: .7rem; color: var(--vault-line); line-height: 1.6; white-space: pre; pointer-events: none; filter: brightness(1.6); }

/* About preview / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split > * { min-width: 0; }
.split .copy { display: grid; gap: var(--s-4); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-3); }
.facts div { border-top: 2px solid var(--accent); padding-top: var(--s-3); }
.facts strong { display: block; font-family: var(--f-mono); font-size: 1.3rem; font-weight: 500; }
.facts span { font-size: .85rem; color: var(--muted); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: "STEP " counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .74rem; color: var(--accent); letter-spacing: .1em; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--s-5); max-width: 44rem; }

/* Listing */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding-block: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); background: var(--bg); z-index: 10; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { font: 500 .9rem/1 var(--f-body); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ct { font-family: var(--f-mono); font-size: .75rem; opacity: .6; margin-left: .3rem; }
.search { display: flex; align-items: center; gap: var(--s-2); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .2rem .4rem .2rem 1rem; min-width: 0; flex: 0 1 260px; }
.search input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; padding: .45rem 0; width: 100%; min-width: 0; outline: none; }
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.lcard .media { border-radius: 0; aspect-ratio: 16 / 9; }
.lcard-body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.lcard-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.badge { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; padding: .22rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.warm { background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal); }
.lcard p { color: var(--muted); font-size: .93rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-4); font-size: .82rem; margin: 0; }
.kv div { display: grid; }
.kv dt { color: var(--muted); font-size: .76rem; }
.kv dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.lcard .btn { justify-self: start; padding: .7em 1.1em; font-size: .88rem; margin-top: var(--s-2); }
.empty { text-align: center; color: var(--muted); padding: var(--s-8) 0; }

/* Blog */
.post { display: grid; gap: var(--s-3); align-content: start; }
.post .meta { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.post details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .92rem; list-style: none; }
.post details summary::-webkit-details-marker { display: none; }
.post details[open] summary { margin-bottom: var(--s-2); }
.post details p { color: var(--muted); font-size: .94rem; margin-bottom: var(--s-2); }

/* Story timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 var(--s-6) var(--s-5); position: relative; display: grid; gap: var(--s-1); }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.timeline p { color: var(--muted); }

.mission { font-family: var(--f-display); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.5; font-weight: 700; max-width: 52rem; text-wrap: balance; }
.mission mark { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); color: inherit; }

/* App / download */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: border-color .2s, transform .15s; }
.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dl strong { font-size: 1.1rem; }
.dl .mono { font-size: .76rem; color: var(--muted); }
.dl-panel { margin-top: var(--s-5); display: grid; grid-template-columns: auto 1fr; gap: var(--s-6); align-items: center; }
.qr { width: 168px; height: 168px; background: #fff; padding: 10px; border-radius: var(--r-m); display: grid; grid-template-columns: repeat(21, 1fr); }
.qr i { background: #0D2422; }
.qr i.o { background: transparent; }
.dl-info { display: grid; gap: var(--s-3); min-width: 0; }
.hashline { font-family: var(--f-mono); font-size: .76rem; color: var(--vault-muted); word-break: break-all; background: rgba(255,255,255,.04); border: 1px solid var(--vault-line); padding: .6rem .8rem; border-radius: var(--r-s); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); align-items: start; }
.checklist li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; margin-top: .15rem; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .94rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-7); align-items: start; }
.contact-grid > * { min-width: 0; }
form.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: var(--s-4); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: .8rem .9rem; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 140px; resize: vertical; }
.field .err { color: var(--signal); font-size: .82rem; }
.form-ok { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-m); padding: var(--s-5); display: grid; gap: var(--s-2); }
.form-ok b { color: var(--accent); }
.info-list { display: grid; gap: var(--s-5); }
.info-list .item { display: grid; gap: .25rem; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.info-list .k { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copyline { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.copyline .mono { font-size: 1rem; user-select: all; }
.copy-btn { font: 500 .78rem var(--f-mono); padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); margin-top: var(--s-8); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
.footer-grid h4 { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-3); font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid ul a { color: var(--ink); font-size: .94rem; }
.footer-brand { display: grid; gap: var(--s-3); align-content: start; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 22rem; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: .82rem; color: var(--muted); }
.risk { font-size: .8rem; color: var(--muted); max-width: 46rem; }

/* Reveal motion (visible at rest; only a gentle lift when supported) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .wallet { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .wallet { animation-delay: .2s; }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Responsive */
@media (max-width: 1024px) {
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-6); }
}
@media (max-width: 920px) {
  .hero-grid, .split, .grid-2, .contact-grid, .vault-band { grid-template-columns: 1fr; }
  .vault-band .btn-row { justify-content: flex-start; }
  .grid-3, .quotes { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .adv-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding-block: var(--s-8); }
}
@media (max-width: 640px) {
  .grid-3, .quotes, .lgrid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-panel { grid-template-columns: 1fr; }
  .field-row, .facts { grid-template-columns: 1fr; }
  .facts { gap: var(--s-3); }
  .filter-bar { position: static; }
  .search { flex: 1 1 100%; }
  .seed-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: var(--s-6) var(--s-8); }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Direct download links (app.html) */
.dl-direct { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: .9rem; color: var(--muted); }
.dl-direct a { font-weight: 500; }
.dl-direct a.is-pending { color: var(--muted); }
.dl-direct a.is-pending::after { content: " · 即将开放"; font-size: .78rem; }
