/* ==========================================================================
   拾光艺术 · 设计系统
   浅色画廊风：雾蓝到淡紫的底、白色卡片、24px 圆角、细描边、柔和投影
   ========================================================================== */

:root {
  --ink: #11162d;
  --body: #5b6378;
  --muted: #8b92a6;
  --faint: #b3b9c9;
  --blue: #5368ff;
  --blue-deep: #3d4fe0;
  --blue-soft: #eef1ff;
  --green: #18a860;
  --green-soft: #e8f8ef;
  --gold: #c1974f;
  --gold-soft: #fbf3e3;
  --red: #e0413f;
  --line: #eef1f7;
  --bg: #f5f7fd;
  --card: #ffffff;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 10px 28px rgba(28, 44, 92, .07);
  --shadow-lg: 0 24px 60px rgba(28, 44, 92, .12);
  --max: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 18% -8%, #e6eeff 0%, rgba(230, 238, 255, 0) 62%),
    radial-gradient(800px 520px at 92% 4%, #f0e9ff 0%, rgba(240, 233, 255, 0) 58%),
    radial-gradient(700px 700px at 50% 110%, #eef6ff 0%, rgba(238, 246, 255, 0) 60%),
    linear-gradient(180deg, #eef3fc 0%, #f7f4ff 45%, #f4f8ff 100%);
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(83, 104, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 104, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(800px 600px at 50% 20%, #000 0%, transparent 78%);
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; letter-spacing: 0; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   壳层
   -------------------------------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 90px rgba(28, 44, 92, .10);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

@media (min-width: 560px) {
  .app {
    margin: 0 auto;
    min-height: 100vh;
    border-radius: 0;
  }
}

.page { animation: pageIn .34s cubic-bezier(.22, 1, .36, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pad { padding-left: 18px; padding-right: 18px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.topbar.plain { background: transparent; backdrop-filter: none; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-badge {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  background: #0f1324;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(15, 19, 36, .22);
  overflow: hidden;
}
.logo-badge img { width: 100%; height: 100%; }
.brand-text { min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .4px; line-height: 1.25; }
.brand-sub {
  font-size: 9px; font-weight: 700; letter-spacing: 2.4px; color: var(--faint);
  text-transform: uppercase; line-height: 1.4;
}
.icon-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #3b4256;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(28, 44, 92, .06);
  transition: transform .18s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }

/* 返回栏 */
.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(238, 241, 247, .8);
}
.appbar-title { font-size: 16px; font-weight: 700; }
.appbar .icon-btn { box-shadow: none; background: #f4f6fb; border-color: transparent; }

/* --------------------------------------------------------------------------
   公告条
   -------------------------------------------------------------------------- */
.ticker {
  margin: 0 18px 14px;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  background: #f8faff;
  border: 1px solid #edf1fb;
  border-radius: 12px;
  overflow: hidden;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(83, 104, 255, .12);
}
.ticker-track { flex: 1; min-width: 0; overflow: hidden; }
.ticker-text {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: #4a5266;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ticker-more { font-size: 12px; color: var(--blue); font-weight: 600; flex: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  margin: 0 18px;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0f1324;
  box-shadow: var(--shadow-lg);
}
.hero-media { width: 100%; aspect-ratio: 4 / 3.7; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 30, 0) 42%, rgba(10, 14, 30, .58) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, .72); margin-bottom: 6px;
}
.hero-title { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.hero-meta { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .78); }
.hero-dots { display: flex; gap: 5px; margin-top: 10px; }
.hero-dots i {
  width: 5px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .42); transition: .25s;
}
.hero-dots i.on { width: 16px; background: #fff; }

/* --------------------------------------------------------------------------
   快捷入口
   -------------------------------------------------------------------------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 18px 12px 6px;
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; }
.quick-ico {
  width: 52px; height: 52px; border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #eef3ff, #e4ecff);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 18px rgba(40, 60, 120, .08);
  transition: transform .18s;
}
.quick-item:active .quick-ico { transform: translateY(-2px) scale(.97); }
.quick-ico svg { width: 25px; height: 25px; color: #3f56d8; }
.quick-ico.g2 { background: linear-gradient(150deg, #f1ecff, #e7e0ff); }
.quick-ico.g2 svg { color: #7a55d6; }
.quick-ico.g3 { background: linear-gradient(150deg, #fff2e9, #ffe6d3); }
.quick-ico.g3 svg { color: #d0713a; }
.quick-ico.g4 { background: linear-gradient(150deg, #e9f9f1, #dcf3e7); }
.quick-ico.g4 svg { color: #1f9b63; }
.quick-label { font-size: 11.5px; color: #4d5468; font-weight: 500; }

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */
.sec { padding: 22px 0 4px; }
.sec-head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 0 18px 12px;
}
.sec-title { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.sec-en {
  font-size: 9px; font-weight: 800; letter-spacing: 2.2px; color: var(--faint);
  text-transform: uppercase;
}
.sec-more {
  margin-left: auto; font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 2px;
}
.sec-more svg { width: 13px; height: 13px; }

/* 首发横滑卡 */
.drop-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.drop-row::-webkit-scrollbar { display: none; }
.drop-card {
  position: relative; flex: none; width: 78%; max-width: 320px;
  aspect-ratio: 4 / 3.1; border-radius: var(--r-lg); overflow: hidden;
  background: #10142a; scroll-snap-align: start;
  box-shadow: 0 14px 32px rgba(20, 30, 70, .16);
}
.drop-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.drop-card:active img { transform: scale(1.03); }
.drop-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 26, 0) 38%, rgba(8, 12, 26, .78) 100%);
}
.drop-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(12, 16, 34, .62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.drop-badge.live { background: rgba(24, 168, 96, .9); border-color: transparent; }
.drop-copy { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.drop-name { font-size: 21px; font-weight: 800; letter-spacing: .4px; line-height: 1.2; }
.drop-sub { margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, .66); }
.drop-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }
.drop-price { font-size: 16px; font-weight: 800; }
.drop-price small { font-size: 10px; font-weight: 500; opacity: .7; margin-right: 2px; }

/* 市场双列 */
.grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 18px;
}
.gcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: 0 6px 18px rgba(28, 44, 92, .05);
  transition: transform .2s, box-shadow .2s;
}
.gcard:active { transform: translateY(1px) scale(.995); }
.gcard-media { position: relative; aspect-ratio: 1 / 1; background: #0f1324; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard-tag {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 7px; border-radius: 7px; font-size: 9.5px; font-weight: 700;
  background: rgba(12, 16, 34, .55); color: #fff; backdrop-filter: blur(6px);
  letter-spacing: .4px;
}
.gcard-tag.auction { background: rgba(225, 138, 30, .86); }
.gcard-body { padding: 10px 11px 12px; }
.gcard-title { font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.gcard-meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); display: flex; gap: 6px; }
.gcard-price { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.price { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.price .cny { font-size: 11px; font-weight: 600; margin-right: 1px; }
.price.green { color: var(--blue); }

/* --------------------------------------------------------------------------
   资讯
   -------------------------------------------------------------------------- */
.news-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.news-meta { margin-top: 6px; font-size: 11px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.news-thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; flex: none; background: #eef2fa; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px;
  border-radius: 6px; font-size: 10px; font-weight: 600;
  background: var(--blue-soft); color: var(--blue);
}
.tag.gold { background: var(--gold-soft); color: #a87c2c; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.grey { background: #f2f4f9; color: var(--muted); }
.tag.red { background: #fdecec; color: var(--red); }

/* --------------------------------------------------------------------------
   底部导航
   -------------------------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(232, 237, 247, .9);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #9aa1b3; font-size: 10.5px; font-weight: 500; transition: color .16s;
}
.tab-item svg { width: 22px; height: 22px; }
.tab-item.on { color: var(--blue); font-weight: 700; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .3px;
  background: #f2f5fb; color: var(--ink);
  transition: transform .16s, opacity .16s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); opacity: .92; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, #5f76ff 0%, #4053ee 100%);
  color: #fff; box-shadow: 0 12px 26px rgba(70, 90, 240, .28);
}
.btn-gold {
  background: linear-gradient(135deg, #d8b26a, #b98f42);
  color: #2a2010; box-shadow: 0 12px 26px rgba(180, 140, 70, .26);
}
.btn-green { background: linear-gradient(135deg, #23b771, #149257); color: #fff; box-shadow: 0 12px 26px rgba(20, 150, 90, .24); }
.btn-ghost { background: #f4f6fc; color: #3d4560; }
.btn-outline { background: #fff; border: 1.4px solid var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* --------------------------------------------------------------------------
   卡片 / 列表
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: 0 6px 20px rgba(28, 44, 92, .045);
}
.card.tight { padding: 0; overflow: hidden; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card-title .line { width: 3px; height: 14px; border-radius: 2px; background: var(--blue); }

.cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cell:last-child { border-bottom: 0; }
.cell-label { font-size: 13.5px; color: #3c4356; }
.cell-value { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }

.menu { background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: #f4f7fd; color: #3f56d8;
}
.menu-item .ico svg { width: 18px; height: 18px; }
.menu-item .chev { margin-left: auto; color: #c7ccda; width: 16px; height: 16px; }

/* 通用右箭头 */
.chev { width: 16px; height: 16px; flex: none; color: #c7ccda; }
.holding-foot .chev { margin-left: auto; }
.holding-foot .tag { flex: none; }

/* --------------------------------------------------------------------------
   我的
   -------------------------------------------------------------------------- */
.me-hero {
  position: relative; margin: 0 18px; padding: 20px;
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(140deg, #1b2242 0%, #2a2350 52%, #3a2a5e 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.me-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(214, 178, 106, .45), transparent 65%);
}
.me-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.me-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #f0d9a8, #c1974f);
  display: grid; place-items: center; font-weight: 800; color: #2a2010; font-size: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  overflow: hidden;
}
.me-name { font-size: 17px; font-weight: 800; }
.me-sub { font-size: 11px; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.me-chain {
  display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 10.5px; color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .10); border-radius: 7px; padding: 2px 7px;
}
.me-chain .dot { width: 5px; height: 5px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 6px #7ee0a8; }
.me-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 10px; padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9);
}
.me-assets {
  margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; z-index: 2;
}
.me-asset { text-align: left; }
.me-asset b { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.me-asset span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.me-actions { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 2; }
.me-actions .btn {
  flex: 1; height: 38px; font-size: 12.5px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   详情
   -------------------------------------------------------------------------- */
.detail-hero { position: relative; background: #0d1122; }
.detail-hero img { width: 100%; aspect-ratio: 3 / 3.5; object-fit: cover; }
.detail-hero .appbar {
  position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(6, 9, 20, .55), transparent);
  border: 0;
}
.detail-hero .appbar .icon-btn { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); }
.detail-hero .appbar-title { color: #fff; }

.detail-body {
  position: relative; margin-top: -26px; background: #fff;
  border-radius: 26px 26px 0 0; padding: 20px 18px 0;
  box-shadow: 0 -10px 30px rgba(20, 28, 60, .08);
}
.detail-title { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.detail-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 10.5px; padding: 3px 8px; border-radius: 7px;
  background: #f4f6fc; color: #5a6280;
}
.detail-price-box {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #f7f9ff, #eef3ff);
  border: 1px solid #e8eeff;
}
.detail-price-box .price { font-size: 25px; }
.detail-price-box .label { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }

.kv { display: flex; flex-direction: column; gap: 0; }
.kv-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-key { color: var(--muted); }
.kv-val { margin-left: auto; font-weight: 600; }

.section-title { font-size: 15px; font-weight: 800; margin: 20px 0 10px; display: flex; align-items: center; gap: 7px; }
.section-title .line { width: 3px; height: 13px; border-radius: 2px; background: var(--blue); }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.buy-bar .price { font-size: 20px; }
.buy-bar .btn { flex: 1; height: 48px; }
.buy-bar .fav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #f4f6fc; color: #7c849b; flex: none;
}
.buy-bar .fav.on { color: var(--gold); background: var(--gold-soft); }
.buy-bar .fav svg { width: 20px; height: 20px; }

/* 进度条 */
.progress { height: 6px; border-radius: 99px; background: #eef1f8; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6d84ff, #4a5cf0); transition: width .5s; }
.progress.gold i { background: linear-gradient(90deg, #e2c07e, #c1974f); }

/* 倒计时 */
.countdown { display: flex; gap: 6px; align-items: center; }
.cd-num {
  min-width: 32px; height: 32px; padding: 0 7px; border-radius: 9px;
  background: #171d35; color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cd-sep { color: var(--faint); font-weight: 700; }
.countdown.light .cd-num { background: #eef2fb; color: var(--ink); }

/* --------------------------------------------------------------------------
   市场筛选
   -------------------------------------------------------------------------- */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 18px 12px; height: 42px; padding: 0 14px;
  background: #f6f8fd; border: 1px solid #edf1f9; border-radius: 999px;
}
.searchbar svg { width: 17px; height: 17px; color: #a2a9bc; }
.searchbar input { flex: 1; border: 0; background: none; outline: none; font-size: 13px; }
.searchbar input::placeholder { color: #a9b0c2; }

.segmented {
  display: flex; gap: 4px; margin: 0 18px; padding: 4px;
  background: #f4f7fd; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.seg {
  flex: 1; min-width: 62px; height: 32px; border-radius: 999px;
  font-size: 12.5px; color: #6b7386; font-weight: 500;
  display: grid; place-items: center; white-space: nowrap; transition: .18s;
}
.seg.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 4px 12px rgba(28, 44, 92, .08); }

.filter-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px 10px; font-size: 12px; color: var(--muted); }
.filter-row .on { color: var(--ink); font-weight: 700; }

/* 市场系列分区 */
.series-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 18px 2px; scrollbar-width: none; }
.series-row::-webkit-scrollbar { display: none; }
.series-chip {
  flex: none; height: 32px; padding: 0 14px; border-radius: 999px;
  background: #f5f7fc; color: var(--body); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.series-chip em { font-style: normal; font-size: 11px; opacity: .55; font-weight: 500; }
.series-chip.on { background: var(--ink); color: #fff; }
.series-chip.on em { opacity: .75; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field-label { font-size: 12px; color: var(--muted); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.input {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 14px;
  background: #f7f9fd; border: 1.4px solid #eef1f9; outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  font-size: 14px;
}
.input:focus { border-color: #b9c5ff; background: #fff; box-shadow: 0 0 0 4px rgba(83, 104, 255, .08); }
.input::placeholder { color: #adb4c6; }
textarea.input { height: 96px; padding: 13px 15px; resize: vertical; line-height: 1.6; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-btn {
  height: 50px; padding: 0 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600;
  background: var(--blue-soft); color: var(--blue); white-space: nowrap;
}
.code-btn[disabled] { opacity: .5; }

.auth-wrap { padding: 8px 26px 40px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 0 22px; }
.auth-logo .logo-badge { width: 62px; height: 62px; border-radius: 20px; }
.auth-logo h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.auth-logo p { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }
.auth-tip { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.7; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-switch b { color: var(--blue); font-weight: 700; }

/* --------------------------------------------------------------------------
   弹层
   -------------------------------------------------------------------------- */
.layer { position: relative; z-index: 200; }
.mask {
  position: fixed; inset: 0; background: rgba(12, 16, 30, .45);
  backdrop-filter: blur(3px); z-index: 200;
  animation: fadeIn .22s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  max-width: var(--max); margin: 0 auto;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
  animation: sheetUp .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 -20px 50px rgba(16, 24, 60, .18);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 99px; background: #e4e8f2; margin: 6px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-title { font-size: 16.5px; font-weight: 800; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f4f6fc; color: #7d849a; }
.sheet-close svg { width: 15px; height: 15px; }
.sheet-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

.dialog {
  position: fixed; z-index: 210; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(88vw, 340px); background: #fff; border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 80px rgba(16, 24, 60, .3); animation: pop .24s cubic-bezier(.22, 1.4, .36, 1);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } }
.dialog h3 { font-size: 16px; font-weight: 800; text-align: center; }
.dialog p { margin-top: 10px; font-size: 13px; color: var(--body); text-align: center; line-height: 1.7; }
.dialog .btn-row { margin-top: 18px; }

/* 支付密码键盘 */
.paypad { padding-top: 4px; }
.paypad-amount { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 2px; }
.paypad-amount small { font-size: 15px; font-weight: 700; margin-right: 2px; }
.paypad-sub { text-align: center; font-size: 12px; color: var(--muted); }
.paypad-dots { display: flex; justify-content: center; gap: 12px; margin: 20px 0 6px; }
.paypad-dots i {
  width: 11px; height: 11px; border-radius: 50%; background: #e6eaf3; transition: .14s;
}
.paypad-dots i.on { background: var(--ink); transform: scale(1.06); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.key {
  height: 52px; border-radius: 14px; background: #f6f8fd;
  font-size: 21px; font-weight: 600; display: grid; place-items: center;
  transition: background .12s;
}
.key:active { background: #e9eefb; }
.key.fn { font-size: 13px; color: #7c849b; background: transparent; }
.key.ok { background: var(--blue); color: #fff; }

/* toast */
.toast {
  position: fixed; z-index: 500; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  background: rgba(17, 22, 45, .93); color: #fff; font-size: 13px;
  padding: 10px 17px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s; max-width: 80vw; text-align: center;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   其它页面元素
   -------------------------------------------------------------------------- */
.balance-card {
  margin: 0 18px; padding: 22px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(135deg, #1d2547 0%, #2b2452 60%, #3b2c63 100%);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.balance-card::after {
  content: ""; position: absolute; right: -30px; bottom: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(214, 178, 106, .38), transparent 68%);
}
.balance-card .label { font-size: 11px; color: rgba(255, 255, 255, .6); }
.balance-card .num { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; }
.balance-card .num small { font-size: 16px; font-weight: 600; margin-right: 3px; }
.balance-card .btn-row { margin-top: 16px; position: relative; z-index: 2; }
.balance-card .btn { flex: 1; height: 38px; font-size: 12.5px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }

.tx-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tx-item:last-child { border-bottom: 0; }
.tx-ico {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #f4f7fd; color: #5a6ad0;
}
.tx-ico svg { width: 18px; height: 18px; }
.tx-amount { margin-left: auto; font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tx-amount.in { color: var(--green); }
.tx-amount.out { color: var(--ink); }

.holding-card {
  display: flex; gap: 12px; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px;
}
.holding-card img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.holding-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.holding-title { font-size: 14px; font-weight: 700; }
.holding-serial { font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.holding-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 8px; }

.order-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; }
.order-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.order-body { display: flex; gap: 12px; margin-top: 10px; }
.order-body img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.material-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.material-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mat-qty { margin-left: auto; font-size: 12px; color: var(--muted); }
.mat-qty b { color: var(--ink); }

.result-card {
  text-align: center; padding: 26px 18px;
  background: radial-gradient(120% 90% at 50% 0%, #fbf5e8 0%, #fff 62%);
  border: 1px solid #f3e8d2; border-radius: var(--r-xl);
}
.result-card h3 { font-size: 18px; font-weight: 800; margin-top: 12px; }
.result-card p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.result-prize { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; margin: 14px auto 0; box-shadow: var(--shadow-lg); }

.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty .ico {
  width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 14px;
  display: grid; place-items: center; background: #f4f7fd; color: #c0c7d8;
}
.empty .ico svg { width: 30px; height: 30px; }
.empty p { font-size: 13px; }
.empty .btn { margin-top: 16px; }

.loader { display: grid; place-items: center; padding: 60px 0; color: var(--muted); font-size: 12.5px; gap: 10px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid #e8edf7; border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #f2f5fa 25%, #e9eef7 37%, #f2f5fa 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.notice-box {
  padding: 14px 16px; border-radius: var(--r-md); background: #fbf7ee;
  border: 1px solid #f4e9d4; font-size: 11.5px; color: #8a7448; line-height: 1.75;
}

.legal { padding: 18px; font-size: 12.5px; color: var(--body); line-height: 1.9; }
.legal h3 { font-size: 14px; color: var(--ink); margin: 18px 0 6px; }
.legal p { margin-bottom: 8px; }

/* 商品瀑布细节 */
.thumb-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.thumb-row::-webkit-scrollbar { display: none; }
.thumb-row img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; border: 2px solid transparent; }
.thumb-row img.on { border-color: var(--blue); }

.stat-strip { display: flex; gap: 10px; }
.stat-strip > div { flex: 1; background: #f8faff; border: 1px solid #eef2fb; border-radius: 14px; padding: 11px 12px; }
.stat-strip b { font-size: 16px; font-weight: 800; display: block; }
.stat-strip span { font-size: 10.5px; color: var(--muted); }

.safe-bottom { height: calc(18px + env(safe-area-inset-bottom)); }
