/* ============================================================
   Promptly · 视觉系统
   设计取向：墨色文字 + 单一品牌强调色 + 大留白 + 细描边
   ============================================================ */

:root {
  /* 墨阶 */
  --ink: #0b0d12;
  --ink-2: #4b5261;
  --ink-3: #8b91a0;
  --ink-4: #b3b8c4;

  /* 面 */
  --bg: #f6f7fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --surface-3: #eceef4;

  /* 线 */
  --line: #e7e9ef;
  --line-soft: #eff1f6;
  --line-strong: #d9dde7;

  /* 品牌 */
  --brand: #4c43e0;
  --brand-2: #7a5cf0;
  --brand-ink: #2f28ad;
  --brand-soft: #eeecfe;
  --brand-line: #d9d4fb;
  --brand-grad: linear-gradient(135deg, #4c43e0 0%, #7059ef 55%, #9a6bf2 100%);

  /* 语义 */
  --ok: #0f7a55;
  --ok-soft: #e8f6ef;
  --ok-line: #c8e8d8;
  --warn: #9a6b12;
  --warn-soft: #fdf4e4;
  --warn-line: #efe0bd;
  --danger: #c0392b;
  --danger-soft: #fdeeeb;
  --danger-line: #f4d6d0;
  --price: #171a21;

  /* 圆角 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(11, 13, 18, 0.04), 0 2px 6px rgba(11, 13, 18, 0.035);
  --sh-2: 0 2px 4px rgba(11, 13, 18, 0.04), 0 14px 34px -14px rgba(11, 13, 18, 0.16);
  --sh-3: 0 4px 10px rgba(11, 13, 18, 0.06), 0 30px 60px -22px rgba(11, 13, 18, 0.28);
  --sh-brand: 0 1px 2px rgba(76, 67, 224, 0.3), 0 10px 24px -12px rgba(76, 67, 224, 0.55);

  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
  background-image:
    radial-gradient(880px 420px at 12% -8%, rgba(76, 67, 224, 0.07), transparent 62%),
    radial-gradient(680px 360px at 96% 4%, rgba(154, 107, 242, 0.06), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(76, 67, 224, 0.16); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- boot ---------- */
#boot {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 50;
}
.boot-inner { text-align: center; }
.boot-logo {
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-text { margin-top: 10px; color: var(--ink-3); font-size: 13px; }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.02), 0 8px 24px -18px rgba(11, 13, 18, 0.35);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 14px;
}

.logo { display: flex; align-items: center; gap: 9px; flex: none; cursor: pointer; }
.logo-mark {
  width: 31px; height: 31px; border-radius: 10px; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  letter-spacing: -0.02em;
}
.logo-text { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }

.nav { display: flex; gap: 2px; flex: none; }
.nav a {
  padding: 7px 13px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.searchbar {
  flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 0 14px; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.searchbar svg { flex: none; color: var(--ink-3); }
.searchbar:focus-within {
  background: var(--surface); border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(76, 67, 224, 0.08);
}
.searchbar input {
  border: 0; background: transparent; outline: none; padding: 8px 0; width: 100%; font-size: 14px;
}
.searchbar input::placeholder { color: var(--ink-4); }

.avatar {
  width: 31px; height: 31px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  flex: none; overflow: hidden; user-select: none; border: 1px solid rgba(76, 67, 224, 0.14);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 54px; height: 54px; font-size: 20px; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; border-width: 0; }

main { max-width: var(--max); margin: 0 auto; padding: 22px 22px 96px; }

.page-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 2px 0 8px; }
.page-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; max-width: 720px; }

.sec-head { margin: 30px 0 14px; }
.sec-head:first-child { margin-top: 6px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 6px;
}
.sec-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-2);
  padding: 34px 34px 30px;
  margin-bottom: 22px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(560px 260px at 88% -10%, rgba(76, 67, 224, 0.16), transparent 62%),
    radial-gradient(420px 220px at 4% 106%, rgba(154, 107, 242, 0.14), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(11, 13, 18, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 18, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(420px 240px at 78% 12%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(420px 240px at 78% 12%, #000, transparent 72%);
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--brand-line); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(76, 67, 224, 0.16);
}
.hero h1 {
  margin: 16px 0 12px; max-width: 720px;
  font-size: 40px; line-height: 1.16; font-weight: 750; letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 0; max-width: 640px; color: var(--ink-2); font-size: 15px; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 26px;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.hero-stat { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat .v {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.hero-stat .k { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 筛选条 ---------- */
.filterbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.filterbar .flabel {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 8px;
}

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--r); padding: 8px 15px; font-size: 14px; font-weight: 500;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.03);
}
.btn:hover { border-color: var(--ink-4); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.primary {
  background: var(--brand-grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: var(--sh-brand);
}
.btn.primary:hover { box-shadow: var(--sh-brand), 0 16px 30px -14px rgba(76, 67, 224, 0.7); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); }

.btn.accent {
  background: linear-gradient(135deg, #171a21, #2c313d); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.2), 0 12px 26px -14px rgba(11, 13, 18, 0.7);
}
.btn.accent:hover { transform: translateY(-1px); }

.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; padding: 11px; }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13px; white-space: nowrap; transition: 0.14s;
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.on {
  background: linear-gradient(135deg, #171a21, #2b303c); border-color: transparent; color: #fff;
  font-weight: 600; box-shadow: 0 1px 2px rgba(11, 13, 18, 0.18), 0 8px 18px -10px rgba(11, 13, 18, 0.6);
}

.tag {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface-2);
  color: var(--ink-2); font-size: 12px; border: 1px solid var(--line-soft);
}
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); }
.tag.accent { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.pill-official { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 13px;
  background: var(--surface); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 1px rgba(11, 13, 18, 0.02);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(76, 67, 224, 0.1);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.7; font-family: var(--font); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- notices ---------- */
.notice {
  border-radius: var(--r); padding: 12px 15px; font-size: 13px; line-height: 1.65;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: #6f4d0d; }
.notice.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.notice.err { background: var(--danger-soft); border-color: var(--danger-line); color: #93291d; }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-line); color: #105c41; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.grid.tools { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* ---------- 商品卡 ---------- */
.lcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.18s, border-color 0.18s;
  animation: rise 0.42s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: calc(var(--i, 0) * 34ms);
}
.lcard:hover {
  transform: translateY(-3px); border-color: var(--brand-line);
  box-shadow: var(--sh-2), 0 0 0 3px rgba(76, 67, 224, 0.06);
}

.lcover {
  position: relative; height: 124px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lcover::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.34), transparent 58%),
    radial-gradient(90% 90% at 100% 108%, rgba(0, 0, 0, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
}
.lcover > * { position: relative; z-index: 1; }
.lcover .wm {
  position: absolute; right: -6px; bottom: -24px; font-size: 104px; font-weight: 800;
  color: rgba(255, 255, 255, 0.11); line-height: 1; letter-spacing: -0.04em; user-select: none;
}
.lcover .glyph {
  position: relative; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: 0.14em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.lcover .badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.lcover .badge.free { background: rgba(232, 246, 239, 0.95); color: var(--ok); }
.lcover .badge.hot { background: rgba(23, 26, 33, 0.86); color: #fff; }

.lbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ltitle {
  font-size: 15.5px; font-weight: 650; line-height: 1.5; letter-spacing: -0.011em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 46px;
}
.lsub {
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lmeta { display: flex; align-items: center; gap: 8px; }
.lfoot {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line-soft); padding-top: 11px;
}
.price {
  font-size: 17px; font-weight: 750; color: var(--price); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price.free { color: var(--ok); }
.price .unit { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }

/* ---------- 行列表 ---------- */
.rows { display: flex; flex-direction: column; }
.rowitem {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.rowitem:last-child { border-bottom: 0; }
.rowitem .main { flex: 1; min-width: 0; }

/* ---------- 帖子 ---------- */
.post-item {
  padding: 20px 22px; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  transition: background 0.15s;
}
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: var(--surface-2); }
.post-title { font-size: 16.5px; font-weight: 650; margin: 0 0 7px; letter-spacing: -0.015em; line-height: 1.5; }
.post-excerpt {
  color: var(--ink-2); font-size: 13.5px; line-height: 1.68;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prose { font-size: 15.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; color: #1c1f27; }
.prose.mono-block {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.75;
}

.likebtn {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 13px; padding: 4px 11px;
  border-radius: var(--r-pill); transition: 0.15s;
}
.likebtn:hover { border-color: var(--ink-4); color: var(--ink); }
.likebtn.on { color: var(--brand-ink); border-color: var(--brand-line); background: var(--brand-soft); font-weight: 600; }

/* ---------- modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 13, 18, 0.44);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade 0.16s ease both;
}
.modal {
  background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 480px;
  max-height: 88vh; overflow: auto; border: 1px solid var(--line);
  box-shadow: var(--sh-3); animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.modal.wide { max-width: 740px; }
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.modal-body { padding: 22px; }
.modal-foot {
  padding: 15px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px;
  justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface);
}

/* ---------- toast ---------- */
#toast-root {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: rgba(17, 20, 27, 0.94); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 13.5px; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1); max-width: 82vw;
  backdrop-filter: blur(10px); animation: toastIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; padding: 10px 14px; color: var(--ink-2); font-size: 14px;
  border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; transition: 0.15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand-ink); font-weight: 650; border-bottom-color: var(--brand); }

/* ---------- 钱包 ---------- */
.balance-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); padding: 24px;
  background: linear-gradient(140deg, #14172a 0%, #232a4d 55%, #2f2a63 100%);
  box-shadow: var(--sh-2);
}
.balance-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(420px 200px at 92% -20%, rgba(122, 92, 240, 0.55), transparent 62%),
    radial-gradient(320px 180px at 0% 120%, rgba(76, 67, 224, 0.4), transparent 60%);
}
.balance-card > * { position: relative; }
.balance-card .amt {
  font-size: 36px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.balance-card .lbl { font-size: 13px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.01em; }

.stat { display: flex; flex-direction: column; gap: 3px; }
.stat .v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12.5px; color: var(--ink-3); }

.amt-plus { color: var(--ok); font-weight: 650; font-variant-numeric: tabular-nums; }
.amt-minus { color: var(--danger); font-weight: 650; font-variant-numeric: tabular-nums; }

.stars { color: #d99a2b; letter-spacing: 0.5px; font-size: 13px; }

/* ---------- 空态 / 骨架 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty .t { font-size: 15.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

.skel {
  background: linear-gradient(90deg, #eef0f6, #f8f9fc 45%, #eef0f6);
  background-size: 220% 100%; animation: sk 1.25s linear infinite; border-radius: var(--r-lg);
}

/* ---------- 动效 ---------- */
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -220% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

main > * { animation: rise 0.34s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
main > *:nth-child(2) { animation-delay: 40ms; }
main > *:nth-child(3) { animation-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 26px 22px 24px; border-radius: var(--r-lg); }
  .hero h1 { font-size: 30px; }
  .hero-stat { padding-right: 20px; margin-right: 20px; }
  .hero-stat .v { font-size: 19px; }
}

@media (max-width: 820px) {
  .topbar-inner { padding: 8px 14px; gap: 10px; }
  .nav { order: 3; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .searchbar { max-width: none; }
  main { padding: 16px 14px 84px; }
  .page-title { font-size: 21px; }
  .grid.cards { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 12px; }
  .grid.tools { grid-template-columns: 1fr; }
  .lcover { height: 100px; }
  .lcover .wm { font-size: 78px; bottom: -18px; }
  .lcover .glyph { font-size: 15px; }
  .lbody { padding: 12px 13px 14px; }
  .ltitle { font-size: 14.5px; min-height: 43px; }
  .lsub { display: none; }
  .logo-text { display: none; }
  .hero-stats { gap: 0; }
  .post-item { padding: 16px; }
}
