:root {
  --bg: #ffffff; --bg2: #f9fafb; --text: #1c1c1e; --muted: #5b5f66; --line: #e5e7eb;
  --card: #ffffff; --accent: #1c1c1e; --accent-text: #ffffff; --pill: #eef0f3; --brand: #172d54;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --bg2: #151820; --text: #eceef2; --muted: #9aa0aa; --line: #262a33;
    --card: #171a21; --accent: #eceef2; --accent-text: #0f1115; --pill: #1f232c; --brand: #c9d6f0;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --bg2: #151820; --text: #eceef2; --muted: #9aa0aa; --line: #262a33;
  --card: #171a21; --accent: #eceef2; --accent-text: #0f1115; --pill: #1f232c; --brand: #c9d6f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, -apple-system, system-ui, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 auto 44px; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.6); } }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.menu { display: none; width: 38px; height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; }
.menu span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--accent); transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #888) 0%, var(--accent) 100%); color: var(--accent-text); }
.btn-line { background: var(--card); color: var(--text); }
.btn-sm { padding: 7px 16px; font-size: 13px; color: var(--accent-text) !important; }

/* 首屏 */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); padding: 72px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: var(--pill); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(26px, 7vw, 44px); font-weight: 800; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 62%, transparent), var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); margin: 22px 0 32px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.phones { position: relative; width: 360px; height: 520px; max-width: 100%; }
.phone { position: absolute; width: 230px; aspect-ratio: 603 / 1311; border-radius: 36px; background: #0b0b0d; padding: 9px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone .screen { width: 100%; height: 100%; border-radius: 28px; object-fit: cover; overflow: hidden; }
.phone-front { right: 0; top: 30px; z-index: 2; }
.phone-back { left: 0; top: 0; transform: rotate(-4deg); }
.mock { background: #fff; color: #1c1c1e; padding: 14px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 8px; }
.mock-bar { font-weight: 700; font-size: 11px; padding: 2px 6px 6px; }
.mock-title { font-weight: 800; font-size: 18px; padding: 0 6px 4px; }
.mock-row { display: flex; gap: 9px; align-items: center; padding: 7px 6px; border-bottom: 1px solid #f0f1f3; }
.mock-row i { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; flex: none; }
.mock-row b { display: block; font-size: 12px; }
.mock-row small { color: #8a8f98; font-size: 10.5px; }
.mock-packet { margin-top: auto; display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #f25c3b, #d63b2a); color: #fff; border-radius: 12px; padding: 12px; }
.mock-packet span { font-size: 22px; }
.mock-packet b { display: block; font-size: 11.5px; }
.mock-packet small { opacity: .85; font-size: 10.5px; }
.hero-caption { color: var(--muted); font-size: 14px; max-width: 300px; text-align: center; margin: 18px 0 0; }

/* 功能卡片 */
.features { padding: 96px 0; background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 40px -24px rgba(0,0,0,.25); transform: translateY(-2px); }
.ico { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--pill); border-radius: 14px; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.grid > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }

/* 安全 */
.security { background: var(--bg2); padding: 96px 0; }
.security-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.long { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0; }
.algos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.algos span { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.flow { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 500; }
.step b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }

/* 钱包 */
.wallet { background: var(--bg2); padding: 24px 0 96px; }
.wallet-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.wallet-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rp { width: 260px; max-width: 100%; border-radius: 20px; padding: 26px 22px; color: #fff; text-align: center; background: linear-gradient(160deg, #f4653f 0%, #d1372a 100%); box-shadow: 0 24px 50px -24px rgba(209,55,42,.6); }
.rp-top { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; }
.rp-top span { font-size: 36px; }
.rp-amt { font-size: 34px; font-weight: 800; margin: 14px 0 4px; }
.rp-meta { opacity: .85; font-size: 13px; }
.rp-btn { width: 64px; height: 64px; margin: 18px auto 0; border-radius: 50%; background: #f8d77a; color: #8a3a12; display: grid; place-items: center; font-weight: 800; font-size: 22px; box-shadow: 0 6px 0 #d9a93e; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips span { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--text); }

/* 链上小店 */
.shop { background: var(--bg); padding: 96px 0 24px; }
.shop-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.shop-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.store { width: 300px; max-width: 100%; border-radius: 20px; padding: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); }
.store-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.store-head b { display: block; font-size: 15px; }
.store-logo { width: 40px; height: 40px; border-radius: 12px; background: #172D54; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.store-url { display: block; font-size: 12px; color: var(--muted); }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.item-img { aspect-ratio: 1; border-radius: 12px; }
.img-a { background: linear-gradient(150deg, #d9c7a8 0%, #a98a60 100%); }
.img-b { background: linear-gradient(150deg, #9fc3e8 0%, #4f7fbf 100%); }
.item-name { font-size: 13px; margin-top: 8px; }
.item-price { font-size: 13px; display: flex; gap: 6px; align-items: baseline; }
.item-price b { color: #d1372a; }
.item-price s { color: var(--muted); font-size: 12px; }
.store-btn { text-align: center; padding: 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .shop-inner { grid-template-columns: 1fr; } .shop { padding: 64px 0 8px; } }

/* 功能列表 */
.flist { padding: 96px 0; background: var(--bg); }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.fl { border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 20px; background: var(--card); }
.fl h3 { font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fl ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.fl li { color: var(--muted); font-size: 14.5px; padding-left: 16px; position: relative; }
.fl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: .55; }

/* 下载 */
.download { padding: 96px 0; color: #fff; background: linear-gradient(135deg, #8d9194 0%, #4b4e52 50%, #1c1c1e 100%); }
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,.8); margin: 0 0 36px; }
.dl-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 14px 24px; min-width: 220px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; text-align: left; cursor: default; }
.dl span { display: flex; flex-direction: column; line-height: 1.25; }
.dl small { font-size: 12px; opacity: .8; }
.dl b { font-size: 18px; }
.dl-on { cursor: pointer; transition: background .15s; }
.dl-on:hover { background: rgba(255,255,255,.2); }
.dl-on em { color: #9be7a8; }
#apk-ver { display: block; margin-top: 2px; color: rgba(255,255,255,.7); font-size: 12px; }
.dl em { font-style: normal; font-size: 12px; margin-top: 3px; color: #f8d77a; }

/* FAQ */
.faq { padding: 96px 0; background: var(--bg); }
.faq h2 { margin-bottom: 36px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg); }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { color: var(--muted); max-width: 320px; font-size: 14px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols h4 { margin: 0 0 12px; font-size: 14px; }
.foot-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.foot-cols a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 13px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* 窄屏 */
@media (max-width: 900px) {
  .hero-inner, .security-inner, .wallet-inner { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-text { text-align: left; }
  .wallet-art { order: 2; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu { display: flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links .btn-sm { margin-top: 12px; border-bottom: 0; padding: 12px; }
  .nav-tools { margin-left: auto; }
  .features, .security, .flist, .download, .faq { padding: 64px 0; }
  .wallet { padding: 8px 0 64px; }
  .phones { width: 300px; height: 440px; }
  .phone { width: 190px; border-radius: 30px; padding: 7px; }
  .phone .screen { border-radius: 24px; }
  .cta .btn { flex: 1 1 auto; }
  .fl-grid, .grid { grid-template-columns: 1fr; }
  .foot-cols { gap: 36px; }
}

/* 导航栏「问题反馈」描边按钮：btn-sm 默认把文字设成反色，这里改回正文色 */
.btn-sm.btn-feedback { color: var(--text) !important; border-color: var(--line); }
.btn-sm.btn-feedback:hover { border-color: var(--text); }
