/* ============================================================
   大韭菜物语 · 站点样式（无外部依赖）
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-alt: #0f151c;
  --surface: #141b24;
  --surface-2: #1a232e;
  --border: #24303d;
  --text: #e8eef5;
  --muted: #93a2b2;
  --primary: #ff5a5f;
  --primary-2: #ff8a5b;
  --up: #f5475b;   /* 红涨 */
  --down: #2ecc71; /* 绿跌 */
  --ok: #2ecc71;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 780px; }

.up { color: var(--up); }
.down { color: var(--down); }
.center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 90, 95, .32);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(255, 90, 95, .42); }
.btn--ghost { border-color: var(--border); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: #35404d; background: rgba(255,255,255,.05); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--xl { padding: 16px 30px; font-size: 17px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, .78);
  border-bottom: 1px solid rgba(36, 48, 61, .7);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { width: 32px; height: 32px; border-radius: 9px; }
.brand__text { font-size: 17px; letter-spacing: .3px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 90, 95, .16), transparent 60%),
    radial-gradient(760px 380px at 92% 8%, rgba(46, 204, 113, .12), transparent 60%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.pill--ok { color: #b6f2cd; border-color: rgba(46,204,113,.35); background: rgba(46,204,113,.1); }
.hero__title { font-size: 42px; line-height: 1.22; margin: 0 0 14px; letter-spacing: -.5px; }
.grad {
  background: linear-gradient(100deg, var(--primary), var(--primary-2) 55%, #ffd166);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 26px; font-weight: 700;
}
.hero__desc { color: var(--muted); font-size: 16.5px; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__meta {
  list-style: none; display: grid; grid-template-columns: repeat(4, auto);
  gap: 22px; padding: 0; margin: 0;
}
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta b { font-size: 17px; }
.hero__meta span { font-size: 12.5px; color: var(--muted); }

/* 手机示意 */
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 600px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #26313d, #131a22 60%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
  transform: rotate(-2deg);
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 8px; border-radius: 8px; background: #0a0e13;
}
.phone__screen {
  height: 100%; border-radius: 30px; overflow: hidden;
  background: #0e141b; padding: 26px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.ph-amount { font-size: 30px; font-weight: 800; }
.ph-sub { font-size: 12.5px; color: var(--muted); }
.ph-bar { height: 8px; border-radius: 6px; background: #1d2733; overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-cell {
  background: #131b24; border: 1px solid #1f2a36; border-radius: 12px;
  padding: 8px 10px; display: flex; flex-direction: column; font-size: 11.5px;
}
.ph-cell em { color: var(--muted); font-style: normal; font-size: 11px; }
.ph-cell b { font-size: 14px; }
.ph-card {
  background: #131b24; border: 1px solid #1f2a36; border-radius: 14px; padding: 10px 12px;
}
.ph-card__hd { display: flex; justify-content: space-between; font-size: 13px; }
.ph-card__bd { font-size: 11.5px; color: var(--muted); margin: 2px 0 6px; }
.ph-spark { width: 100%; height: 40px; color: var(--up); }
.ph-spark.down { color: var(--down); }

/* 信任条 */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 52px;
}
.trust__item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.trust__item .ico { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.trust__item b { display: block; font-size: 14.5px; }
.trust__item span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section__head--left { text-align: left; margin: 0 0 22px; }
.section__head h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.3px; }
.section__head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #33414f; box-shadow: var(--shadow); }
.card--pad { padding: 26px; }
.card__ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.22);
  color: var(--primary);
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 16.5px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 截图 / 预览 ---------- */
.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.shot {
  width: 240px; border-radius: 26px; border: 1px solid var(--border);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot figcaption { padding: 10px 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.shots__placeholder {
  display: grid; grid-template-columns: repeat(3, 240px); gap: 18px; justify-content: center;
}
.mini {
  border-radius: 26px; border: 1px solid var(--border); background: var(--surface);
  padding: 18px; min-height: 380px; box-shadow: var(--shadow);
}
.mini h4 { margin: 6px 0 12px; font-size: 14px; }
.mini .ln { height: 8px; border-radius: 6px; background: #1e2833; margin-bottom: 9px; }
.mini .ln.s { width: 55%; }
.mini .ln.m { width: 78%; }
.mini .box { height: 62px; border-radius: 12px; background: #18212b; margin: 12px 0; }
.mini .box.up { background: linear-gradient(135deg, rgba(245,71,91,.22), rgba(245,71,91,.06)); }
.mini .box.down { background: linear-gradient(135deg, rgba(46,204,113,.2), rgba(46,204,113,.05)); }

/* ---------- 下载 ---------- */
.download {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px;
  background: linear-gradient(160deg, #18222d, #101821 70%);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow);
}
.dl-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.dl-info__item { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.dl-info__item span { display: block; font-size: 12px; color: var(--muted); }
.dl-info__item b { font-size: 15px; }
.download__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mirrors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sha {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: rgba(0,0,0,.25); border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 18px;
}
.sha span { font-size: 12px; color: var(--muted); }
.sha code { font-size: 12px; word-break: break-all; color: #cfe3d5; }
.steps { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 6px; }
.fineprint { font-size: 12.5px; color: #7d8b99; }

.download__side { background: rgba(0,0,0,.18); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.download__side h3 { margin: 0 0 14px; font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700;
}
.qrbox { display: flex; align-items: center; gap: 14px; }
.qrbox img { width: 74px; height: 74px; border-radius: 14px; background: #fff; padding: 5px; }
.qrbox p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--primary), transparent);
  opacity: .5;
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(255,90,95,.15);
}
.tl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-head b { font-size: 16px; }
.tl-head time { font-size: 12.5px; color: var(--muted); }
.tl-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tl-item li { margin-bottom: 4px; }

/* ---------- 反馈 / 社区 ---------- */
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.crash-tip {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: 12px; padding: 16px 18px;
}
.crash-tip b { font-size: 14.5px; }
.crash-tip p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.crash-tip code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }

.community {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 30px;
}
.community h2 { margin: 0 0 10px; font-size: 26px; }
.community p { color: var(--muted); margin: 0; }
.community__art { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  align-self: flex-start; max-width: 86%;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-size: 13.5px;
}
.bubble--right {
  align-self: flex-end; border-radius: 14px 14px 4px 14px;
  background: rgba(255,90,95,.12); border-color: rgba(255,90,95,.3);
}

/* ---------- 打赏 ---------- */
.donate-card { text-align: center; }
.donate-card .qr {
  width: 176px; height: 176px; margin: 0 auto 14px;
  border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden;
}
.donate-card .qr img { width: 100%; height: 100%; object-fit: contain; }
.donate-card .qr--empty {
  background: repeating-linear-gradient(45deg, #1a232e, #1a232e 10px, #202b37 10px, #202b37 20px);
  color: var(--muted); font-size: 12.5px; border: 1px dashed var(--border);
  padding: 16px; text-align: center;
}
.donate-card h3 { margin: 0 0 6px; font-size: 16px; }
.donate-card p { font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  font-size: 15px; font-weight: 600; padding: 16px 18px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; font-family: inherit;
}
.faq__q::after { content: "+"; color: var(--muted); transition: transform .2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq__a p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand b { display: block; }
.footer__brand span { font-size: 12.5px; color: var(--muted); }
.footer__nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: 13.5px; }
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer__bottom p { margin: 0; }
.footer__bottom p[data-disclaimer] { color: #7d8b99; font-size: 12.5px; max-width: 720px; }
.footer__legal { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #6e7c8a; }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 60; font-size: 18px;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { transform: translateY(-2px); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); 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; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__phone { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .shots__placeholder { grid-template-columns: repeat(2, 240px); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(11,15,20,.98); border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px; gap: 2px;
  }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero__title { font-size: 32px; }
  .grad { font-size: 21px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .dl-info { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 54px 0; }
  .section__head h2 { font-size: 24px; }
  .shots__placeholder { grid-template-columns: 1fr; }
  .mini { min-height: 320px; }
  .phone { transform: none; }
}
