/* ============================================================
   m-ref.css —— 移动端视觉层 v1.2（按参考图细化到每一个子页面）
   基调：更亮的白底 + iOS 灰底分组 + 黑色强调 + 柔和三色卡
   原则：所有控件统一成胶囊；每个子页面的按钮、信息层级、
        分类框、小胶囊都单独调过
   ============================================================ */

/* ---------------- 0. 全局色板：去米白，换亮白 ---------------- */
:root {
  --ink-900: #0b0b0c;
  --ink-800: #1c1c1e;
  --ink-700: #3a3a3c;
  --ink-600: #57575c;
  --ink-500: #6e6e73;
  --ink-400: #8e8e93;
  --ink-300: #c7c7cc;
  --ink-200: #e5e5ea;
  --ink-100: #f2f2f7;
  --ink-50:  #f7f7fa;

  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --surface-3: #f2f2f5;
  --line: #ececee;
  --line-soft: #f3f3f5;

  --sh-1: 0 1px 2px rgba(11, 11, 12, 0.04);
  --sh-2: 0 6px 18px -14px rgba(11, 11, 12, 0.28), 0 1px 2px rgba(11, 11, 12, 0.04);
}

body { background: #ffffff; }
.app {
  --pb: #ffffff;
  background: var(--pb);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.app[data-page="orders"],
.app[data-page="mine"],
.app[data-page="wallet"],
.app[data-page="notify"],
.app[data-page="settings"],
.app[data-page="detail"],
.app[data-page="create"],
.app[data-page="chat"] { --pb: #f5f5f7; }

@media (min-width: 720px) { body { background: #e7e7ea; } }

/* ---------------- 1. 顶栏 ---------------- */
.hdr {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; gap: 12px;
  height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  background: color-mix(in srgb, var(--pb) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.hdr__tabs { display: flex; align-items: center; gap: 22px; }
.hdr__tabs button {
  position: relative; padding: 6px 0 11px;
  font-size: 17px; font-weight: var(--fw-m); color: var(--ink-400);
  letter-spacing: -0.01em;
  transition: color var(--dur-1) var(--ease);
}
.hdr__tabs button.is-on { color: var(--ink-900); font-weight: var(--fw-b); }
.hdr__tabs button.is-on::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 20px; height: 3px; border-radius: 99px;
  transform: translateX(-50%); background: var(--ink-900);
}
.hdr__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.hdr .icon-btn { width: 34px; height: 34px; background: transparent; box-shadow: none; color: var(--ink-900); }
.hdr .icon-btn svg { width: 21px; height: 21px; stroke-width: 1.75; }
.hdr .icon-btn__dot { top: 5px; right: 6px; box-shadow: 0 0 0 2px var(--pb); }

.topbar {
  background: color-mix(in srgb, var(--pb) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  gap: 6px;
}
.topbar__title { font-size: 19px; font-weight: var(--fw-b); letter-spacing: -0.03em; }
.topbar .icon-btn { background: transparent; box-shadow: none; color: var(--ink-900); }
.topbar .icon-btn svg { width: 21px; height: 21px; }
.brand__name { letter-spacing: 0.08em; }

/* ---------------- 2. 首屏 Bento ---------------- */
.page { padding: 4px 18px 30px; }
.bento { display: grid; grid-template-columns: 1.42fr 1fr; gap: 10px; margin-top: 4px; }
.bento__main, .bento__small {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(150deg, var(--g1), var(--g2));
  box-shadow: 0 10px 22px -18px rgba(11, 11, 12, 0.32);
  transition: transform var(--dur-2) var(--ease);
}
.bento__main:active, .bento__small:active { transform: scale(0.985); }
.bento__main { padding: 17px 15px 15px; min-height: 172px; display: flex; flex-direction: column; }
.bento__small { padding: 15px 14px; min-height: 81px; display: flex; align-items: center; }
.bento__side { display: flex; flex-direction: column; gap: 10px; }

.bento__t { font-size: 16px; font-weight: var(--fw-b); letter-spacing: -0.02em; color: #14100d; }
.bento__small .bento__t { font-size: 14px; }
.bento__s { margin-top: 4px; font-size: 11px; color: rgba(20, 16, 13, 0.5); }
.bento__small .bento__s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento__small .grow { max-width: calc(100% - 48px); }

.bento__art { position: absolute; right: 12px; top: 12px; width: 88px; height: 88px; }
.bento__small .bento__art { right: 8px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.bento__art svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.bento__art::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .44) 58%, rgba(255, 255, 255, 0));
}
.bento__small .bento__art::before { inset: 0; }

.bento__foot { margin-top: auto; display: flex; align-items: center; gap: 7px; }
.avstack { display: flex; align-items: center; }
.avstack > span {
  width: 23px; height: 23px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .92); margin-left: -7px; background: #fff;
}
.avstack > span:first-child { margin-left: 0; }
.avstack img { width: 100%; height: 100%; display: block; }
.bento__num { font-size: 10.5px; color: rgba(20, 16, 13, 0.48); }
.bento__num b { color: #14100d; font-weight: var(--fw-sb); }
.bento__tag {
  margin-top: 9px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; padding: 0 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .66);
  font-size: 10px; color: rgba(20, 16, 13, .56);
}

/* ---------------- 3. 分区标题与胶囊 ---------------- */
.sec { margin-top: 26px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; }
.sec__head h2 { font-size: 22px; line-height: 1.22; font-weight: var(--fw-b); letter-spacing: -0.035em; }
.sec__head a { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--ink-400); }

.chips {
  gap: 8px; padding-right: 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chips > * { flex: none; scroll-snap-align: start; }   /* 关键：胶囊不参与收缩，否则文字会顶到边 */
/* 右侧渐隐，暗示可以横向滑动，同时避免胶囊被"硬切" */
.chips {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
}
.chip {
  height: 35px; padding: 0 15px; border-radius: 99px;
  font-size: 13px; font-weight: var(--fw-m); color: #4a4a4f;
  background: #f2f2f5; box-shadow: none; gap: 5px;
}
.chip svg { width: 14px; height: 14px; stroke-width: 1.9; color: #7c7c82; }
.chip:hover { box-shadow: none; }
.chip.is-active { color: #fff; background: #0b0b0c; box-shadow: 0 8px 18px -10px rgba(11, 11, 12, .7); }
.chip.is-active svg { color: #fff; }

/* 统一小胶囊：标签 / 段位 / 状态 */
.tag { height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11px; background: #f2f2f5; color: #58585d; }
.tag svg { width: 10px; height: 10px; }
.tag--brand { background: #f2f2f5; color: #3a3a3c; }
.tag--brand svg { color: #3a3a3c; }
.tag--sand { background: #fff3e6; color: #c2610c; }
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #6e6e73; }
.rank { height: 22px; padding: 0 9px 0 7px; border-radius: 99px; background: #f2f2f5; color: #3a3a3c; box-shadow: none; font-size: 11px; }
.rank::before { background: #a1a1a6; }

.status { height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11px; font-weight: var(--fw-m); }
.status--live { color: #1d4ed8; background: #eef3ff; }
.status--wait { color: #c2610c; background: #fff3e6; }
.status--done { color: #6e6e73; background: #f2f2f5; }
.status--warn { color: #b42318; background: #feeceb; }
.status--ok   { color: #15803d; background: #eaf7ef; }
.status::before { width: 5px; height: 5px; }

/* ---------------- 4. 大图信息卡 ---------------- */
.feed { display: flex; flex-direction: column; gap: 16px; margin-top: 15px; }
.photo-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 26px; background: #14161a;
  box-shadow: 0 18px 36px -26px rgba(11, 11, 12, .55);
  transition: transform var(--dur-2) var(--ease);
}
.photo-card:active { transform: scale(0.99); }
.photo-card__media { position: relative; aspect-ratio: 4 / 3.15; }
.photo-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.68) 100%);
}
.photo-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 16px 16px; color: #fff; }
.photo-card__more {
  position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}
.photo-card__more svg { width: 16px; height: 16px; }
.photo-card__live {
  position: absolute; top: 13px; left: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 25px; padding: 0 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 10.5px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.photo-card__live i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.photo-card__name { display: flex; align-items: center; gap: 7px; font-size: 20px; font-weight: var(--fw-b); letter-spacing: -0.025em; }
.photo-card__name em {
  font-style: normal; font-size: 10px; font-weight: var(--fw-m);
  padding: 4px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.photo-card__sub { margin-top: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .76); }
.photo-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.mpill {
  display: inline-flex; align-items: center; gap: 3px;
  height: 25px; padding: 0 9px; border-radius: 99px;
  font-size: 10.5px; font-variant-numeric: tabular-nums; color: #fff;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  white-space: nowrap;
}
.mpill svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.mpill--price { font-weight: var(--fw-sb); }
.photo-card__cta {
  margin-left: auto; height: 35px; padding: 0 16px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: #0b0b0c; font-size: 13px; font-weight: var(--fw-b);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .85);
}
.photo-card__cta svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* ---------------- 5. 悬浮 Dock ---------------- */
.tabbar {
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 66px; padding: 0 6px;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(11, 11, 12, .05);
  border-radius: 26px;
  box-shadow: 0 16px 40px -20px rgba(11, 11, 12, .38), 0 2px 8px rgba(11, 11, 12, .04);
}
@media (min-width: 720px) { .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 406px; } }
.tabbar__item { gap: 3px; color: #a1a1a6; font-size: 9.5px; }
.tabbar__item svg { width: 21px; height: 21px; stroke-width: 1.6; }
.tabbar__item.is-active { color: #0b0b0c; }
.tabbar__item.is-active svg { stroke-width: 2.1; }
.tabbar__badge { top: 11px; margin-left: 4px; background: #ff3b30; }
.tabbar__fab {
  justify-self: center; display: grid; place-items: center;
  width: 52px; height: 52px; margin-top: -24px;
  border-radius: 50%; background: #0b0b0c; color: #fff;
  box-shadow: 0 12px 24px -8px rgba(11, 11, 12, .65), 0 0 0 4px #fff;
  transition: transform var(--dur-1) var(--ease);
}
.tabbar__fab:active { transform: scale(0.94); }
.tabbar__fab svg { width: 23px; height: 23px; }

/* ---------------- 6. 通用卡片 / 列表 / 按钮 ---------------- */
.card, .list { background: var(--surface); border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 11, 12, .04); }
.card--pad { padding: 16px; }
.list { border-radius: 18px; overflow: hidden; }
.list__item { min-height: 54px; padding: 12px 16px; gap: 12px; }
.list__item + .list__item::before { left: 16px; background: var(--line-soft); }
.list__item--link:active { background: #f7f7f9; }
.list__title { font-size: 15px; color: var(--ink-900); letter-spacing: -0.01em; }
.list__value { font-size: 13px; color: var(--ink-400); }
.chevron { color: #c7c7cc; width: 15px; height: 15px; }

.q-ic { width: 32px; height: 32px; border-radius: 10px; background: #f2f2f5; color: var(--ink-900); }
.q-ic svg { width: 17px; height: 17px; stroke-width: 1.7; }
.q-ic--blue  { background: #eef3ff; color: #2563eb; }
.q-ic--orange{ background: #fff3e6; color: #ea7317; }
.q-ic--green { background: #eaf7ef; color: #15803d; }
.q-ic--pink  { background: #fdeef4; color: #d6336c; }
.q-ic--violet{ background: #f1edfe; color: #6d4aff; }

.btn { border-radius: 99px; height: 38px; padding: 0 16px; font-size: 13px; font-weight: var(--fw-sb); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 12px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 99px; }
.btn--primary { background: #0b0b0c; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px -12px rgba(11,11,12,.7); }
.btn--primary:hover { background: #232326; }
.btn--ink { background: #0b0b0c; }
.btn--line { background: #fff; box-shadow: inset 0 0 0 1px #e3e3e6; color: var(--ink-900); }
.btn--line:hover { background: #fafafa; }
.btn--soft { background: #f2f2f5; color: var(--ink-900); }
.btn--ghost { color: var(--ink-600); }
.btn--danger { background: #feeceb; color: #b42318; }
.btn[disabled] { background: #f2f2f5 !important; color: #b8b8bd !important; box-shadow: none !important; }

.input, .textarea { background: #f7f7f9; box-shadow: none; border-radius: 14px; height: 48px; }
.input:focus, .textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px #0b0b0c, 0 0 0 4px rgba(11,11,12,.05); }
.search { background: #f2f2f5; box-shadow: none; border-radius: 99px; height: 44px; padding: 0 16px; }
.search input { font-size: 14px; }

.segment { background: #f2f2f5; border-radius: 99px; padding: 3px; }
.segment button { height: 32px; border-radius: 99px; font-size: 13px; color: #6e6e73; }
.segment button.is-active { box-shadow: 0 1px 4px rgba(11,11,12,.1); font-weight: var(--fw-sb); }

.switch { width: 51px; height: 31px; background: #e5e5ea; }
.switch.is-on { background: #34c759; }
.switch::after { width: 27px; height: 27px; box-shadow: 0 2px 6px rgba(0,0,0,.16); }
.switch.is-on::after { transform: translateX(20px); }

/* ---------------- 7. 发现页 ---------------- */
.market-head { padding-top: 4px; gap: 10px; }
.market-head .icon-btn { width: 44px; height: 44px; background: #f2f2f5; box-shadow: none; }
.filter-meta { padding: 18px 2px 12px; }
.filter-meta .eyebrow { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-400); font-weight: var(--fw-m); }
.filter-meta .t-xs { font-size: 11.5px; }

.pw-mini { background: #fff; box-shadow: 0 1px 2px rgba(11,11,12,.04); border-radius: 20px; padding: 14px; }
.pw-mini:active { background: #fafafa; }
.pw-mini__name { font-size: 14.5px; }
.pw-mini__meta { font-size: 11px; color: var(--ink-400); }

/* ---------------- 8. 选手主页 ---------------- */
.cover { height: 250px; border-radius: 0 0 28px 28px; }
.cover__caption { bottom: 52px; }
.cover__caption h1 { font-size: 21px; line-height: 1.35; }
.cover__caption .eyebrow { font-size: 9.5px; letter-spacing: .18em; }
.cover__rule { width: 22px; margin-bottom: 10px; background: rgba(255,255,255,.4); }
.cover__nav .icon-btn { width: 36px; height: 36px; background: rgba(255,255,255,.2); }

.profile-head { margin-top: -44px; }
.profile-head .avatar { box-shadow: 0 0 0 3px #fff, 0 6px 18px -10px rgba(11,11,12,.5); }
.profile-head .avatar--xl { width: 82px; height: 82px; }
.follow-btn {
  margin-left: auto; height: 36px; padding: 0 16px; border-radius: 99px;
  background: #fff; color: var(--ink-900); font-size: 12.5px; font-weight: var(--fw-sb);
  box-shadow: 0 2px 8px -2px rgba(11,11,12,.12), inset 0 0 0 1px #ececee;
}
.profile-head .follow-btn { margin-bottom: 2px; }
.profile-name { margin-top: 12px; }
.profile-name h2 { font-size: 26px; letter-spacing: -0.035em; gap: 8px; }
.profile-name h2 .tag { height: 22px; font-size: 10.5px; }
.profile-name p { margin-top: 6px; font-size: 12.5px; color: var(--ink-400); }

.stat-row { padding: 4px 0; }
.stat-row__v { font-size: 21px; letter-spacing: -0.03em; }
.stat-row__k { font-size: 11px; color: var(--ink-400); margin-top: 5px; }

.voice { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(11,11,12,.04); padding: 13px 15px; }
.voice__btn { width: 42px; height: 42px; background: #0b0b0c; }
.voice__wave i { background: #e5e5ea; }
.voice__time { font-size: 11.5px; color: var(--ink-400); }

.tagline { gap: 6px; margin-top: 16px; }
.tagline .tag { height: 26px; padding: 0 11px; font-size: 11.5px; }
.bio { margin-top: 12px; font-size: 13px; line-height: 1.75; color: var(--ink-600); }

.skill { padding: 15px 16px; gap: 13px; }
.skill__game { width: 40px; height: 40px; border-radius: 12px; background: #f2f2f5; font-size: 16px; color: var(--ink-900); box-shadow: none; }
.skill__name { font-size: 14.5px; font-weight: var(--fw-sb); }
.skill__sub { margin-top: 4px; font-size: 11.5px; color: var(--ink-400); }
.skill .price { font-size: 18px !important; }

.week__d { padding: 10px 0 9px; border-radius: 14px; background: #f7f7f9; box-shadow: none; gap: 6px; }
.week__d span { font-size: 10px; color: var(--ink-400); }
.week__d b { font-size: 14px; }
.week__d i { width: 4px; height: 4px; background: #34c759; }
.week__d i.is-busy { background: #e5e5ea; }
.week__d.is-on { background: #0b0b0c; }
.week__d.is-on span { color: rgba(255,255,255,.5); }
.week__d.is-on i { background: #ffd60a; }

.gallery { gap: 8px; }
.gallery > div { border-radius: 16px; }

.review { padding: 15px 16px; }
.review__head { gap: 8px; margin-bottom: 9px; }
.review__text { font-size: 13px; line-height: 1.72; color: var(--ink-700); }
.stars { font-size: 11px; }
.stars .on { color: #ffb020; }

.cta-bar {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border-top: 0; box-shadow: 0 -14px 30px -26px rgba(11,11,12,.5);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
}
.cta-bar .btn { height: 50px; border-radius: 99px; }
.cta-bar__info .price { font-size: 23px; letter-spacing: -0.03em; }
.cta-bar__info .eyebrow { font-size: 9.5px; letter-spacing: .14em; color: var(--ink-400); }

/* ---------------- 9. 下单页 ---------------- */
.buyer { padding: 15px; border-radius: 20px; box-shadow: 0 1px 2px rgba(11,11,12,.04); }
.buyer .t-h2 { font-size: 16px; font-weight: var(--fw-sb); }

.section { padding-top: 24px; }
.section__title h2 { font-size: 18px; letter-spacing: -0.025em; }
.section__title .eyebrow { display: none; }
.section__title { gap: 0; }

.opt-grid { gap: 9px; }
.opt {
  height: 60px; border-radius: 16px; background: #f7f7f9; box-shadow: none;
  font-size: 14px; font-weight: var(--fw-m); color: var(--ink-800); gap: 4px;
}
.opt small { font-size: 10.5px; color: var(--ink-400); }
.opt.is-on { background: #0b0b0c; color: #fff; box-shadow: none; }
.opt.is-on small { color: rgba(255,255,255,.62); }
.opt:disabled { background: #f7f7f9; color: #c7c7cc; }
.opt:disabled small { color: #d5d5da; }
.sub-label { margin: 16px 0 9px; font-size: 12px; color: var(--ink-400); }

.form-row { min-height: 54px; padding: 0 16px; }
.form-row__k { font-size: 14px; color: var(--ink-700); }
.form-row__v { font-size: 13.5px; }
.stepper { background: #f2f2f5; border-radius: 99px; padding: 3px; }
.stepper button { border-radius: 99px; width: 34px; height: 34px; }
.stepper__value { font-size: 17px; }

.amount-row { padding: 9px 16px; font-size: 13px; }
.amount-row--total b { font-size: 19px; }
.amount-row b { font-weight: var(--fw-sb); }

.agree { font-size: 11.5px; color: var(--ink-400); }
.agree__box { width: 19px; height: 19px; border-radius: 6px; }
.agree__box.is-on { background: #0b0b0c; }

/* ---------------- 10. 订单页 ---------------- */
.page > .segment { margin: 6px 0 16px; }
.order-card { padding: 16px; border-radius: 22px; gap: 13px; background: #fff; box-shadow: 0 1px 2px rgba(11,11,12,.04); }
.order-card__no { font-size: 11px; color: var(--ink-300); letter-spacing: .02em; }
.order-card__title { font-size: 15px; font-weight: var(--fw-sb); letter-spacing: -0.015em; }
.order-card__sub { font-size: 12px; color: var(--ink-400); }
.order-card__foot { padding-top: 13px; border-top: 1px solid var(--line-soft); }
.order-card__amount { font-size: 12px; }
.order-card__amount b { font-size: 19px; letter-spacing: -0.02em; }
.order-card__timer { font-size: 11px; color: #c2610c; background: #fff7ee; height: 21px; padding: 0 8px; border-radius: 99px; }
.order-card__actions .btn { height: 33px; }
.orders-foot { color: var(--ink-300); font-size: 11px; }
.orders-foot svg { color: var(--ink-300); }

/* ---------------- 11. 聊天 ---------------- */
.chat-shell { background: #f5f5f7; }
.chat-head { background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(11,11,12,.05); }
.chat-head__info b { font-size: 15px; }
.chat-head__info span { font-size: 10.5px; color: #15803d; }
.chat-head__info span::before { background: #34c759; }
.chat-body { gap: 12px; padding: 16px 16px 20px; }
.chat-day { font-size: 10.5px; color: var(--ink-300); }
.msg { max-width: 80%; }
.msg__bubble {
  padding: 11px 14px; border-radius: 20px;
  font-size: 14px; line-height: 1.55;
  background: #fff; box-shadow: 0 1px 2px rgba(11,11,12,.05);
  border-bottom-left-radius: 7px;
}
.msg--me .msg__bubble {
  background: #0b0b0c; color: #fff;
  border-bottom-left-radius: 20px; border-bottom-right-radius: 7px;
  box-shadow: 0 8px 18px -12px rgba(11,11,12,.75);
}
.msg__time { font-size: 9.5px; color: var(--ink-300); margin-top: 5px; }
.msg-order { width: 78%; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(11,11,12,.05); }
.msg-order__head { font-size: 10px; color: var(--ink-400); }
.msg-order__t { font-size: 14px; }
.msg-order__m { font-size: 11px; }
.chat-guard { background: #fff7ee; border-bottom: 1px solid #f7e9da; color: #8a5a1e; }

.quick-phrases { gap: 7px; padding: 0 16px 9px; background: transparent; }
.quick-phrases button {
  height: 30px; padding: 0 12px; border-radius: 99px; font-size: 11.5px;
  background: #fff; box-shadow: inset 0 0 0 1px #e9e9ec; color: var(--ink-600);
}
.chat-composer { padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 0; box-shadow: 0 -12px 26px -24px rgba(11,11,12,.4); gap: 9px; }
.chat-composer__input { background: #f2f2f5; box-shadow: none; height: 42px; }
.chat-composer__send { width: 42px; height: 42px; background: #0b0b0c; box-shadow: none; }

/* ---------------- 12. 我的 ---------------- */
.me-head { padding: 16px 0 18px; gap: 13px; }
.me-head .avatar--xl { width: 66px; height: 66px; }
.me-head__name h1 { font-size: 22px; letter-spacing: -0.03em; gap: 7px; }
.me-head__name h1 .tag { height: 21px; font-size: 10px; }
.me-head__id { font-size: 11px; color: var(--ink-400); }

.balance-card {
  border-radius: 24px;
  background: radial-gradient(120% 100% at 88% 0%, rgba(255,255,255,.16), transparent 58%), linear-gradient(155deg, #26262a, #0b0b0c);
  box-shadow: 0 20px 40px -26px rgba(11,11,12,.85);
  padding: 18px;
}
.balance-card__num { font-size: 36px; letter-spacing: -0.04em; }
.balance-card__chips { font-size: 10.5px; color: rgba(255,255,255,.56); }
.balance-card__foot .btn { height: 36px; border-radius: 99px; font-size: 12.5px; }

.quick-grid { padding: 6px 0; }
.quick-grid__i { gap: 9px; padding: 12px 0; font-size: 11px; color: var(--ink-600); }
.quick-grid__i > div {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center;
  background: #f2f2f5; color: #0b0b0c;
}
.quick-grid__i:nth-child(1) > div { background: #fff3e6; color: #ea7317; }
.quick-grid__i:nth-child(2) > div { background: #eef3ff; color: #2563eb; }
.quick-grid__i:nth-child(3) > div { background: #fdeef4; color: #d6336c; }
.quick-grid__i:nth-child(4) > div { background: #eaf7ef; color: #15803d; }
.quick-grid__i > div svg { width: 21px; height: 21px; }
.quick-grid__i .badge { transform: translate(15px, -7px); background: #ff3b30; }

.group-label { padding: 22px 4px 9px; font-size: 11px; letter-spacing: .1em; color: var(--ink-400); }

/* ---------------- 13. 钱包 ---------------- */
.app[data-page="wallet"] .card { border-radius: 20px; }
.txn { padding: 14px 16px; gap: 12px; }
.txn__icon { width: 36px; height: 36px; border-radius: 12px; background: #f2f2f5; color: var(--ink-800); }
.txn__icon svg { width: 17px; height: 17px; }
.txn__val { font-size: 15px; letter-spacing: -0.02em; }
.txn__val--in { color: #15803d; }
.amount-grid { gap: 9px; }
.amount-opt { height: 54px; border-radius: 16px; background: #f7f7f9; box-shadow: none; font-size: 17px; }
.amount-opt.is-on { background: #0b0b0c; color: #fff; box-shadow: none; }

/* ---------------- 14. 消息 ---------------- */
.msg-row { padding: 15px 16px; gap: 13px; }
.msg-row__icon { width: 44px; height: 44px; border-radius: 14px; }
.msg-row__icon svg { width: 20px; height: 20px; }
.msg-row__title { font-size: 14.5px; display: flex; align-items: center; }
.msg-row__time { font-size: 10.5px; color: var(--ink-300); }
.msg-row__desc { margin-top: 4px; font-size: 12px; color: var(--ink-400); }
.unread-dot { width: 6px; height: 6px; background: #ff3b30; margin-right: 6px; }

/* ---------------- 15. 设置 ---------------- */
.app[data-page="settings"] .list { border-radius: 18px; }
.app[data-page="settings"] .list__item { min-height: 56px; }

/* ---------------- 16. 弹层 / 弹窗 / Toast ---------------- */
.sheet { background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px -30px rgba(11,11,12,.5); }
.sheet__grab { background: #e5e5ea; width: 40px; height: 5px; margin: 10px auto 4px; }
.sheet__head { padding: 12px 20px 12px; }
.sheet__head .t-h2 { font-size: 18px; letter-spacing: -0.02em; }
.sheet__body { padding: 4px 20px 10px; }
.sheet__foot { padding: 12px 20px 18px; gap: 10px; }
.sheet .btn { height: 48px; }
.overlay { background: rgba(11,11,12,.36); }

.modal__card { border-radius: 28px; padding: 24px 22px 20px; box-shadow: 0 30px 70px -30px rgba(11,11,12,.5); }
.modal__icon { width: 46px; height: 46px; border-radius: 15px; margin-bottom: 15px; }
.modal__title { font-size: 19px; letter-spacing: -0.02em; }
.modal__desc { font-size: 13px; line-height: 1.65; color: var(--ink-500); }
.modal__actions { gap: 10px; margin-top: 20px; }
.modal__actions .btn { height: 46px; }

.toast { background: rgba(11,11,12,.9); border-radius: 99px; padding: 11px 18px; font-size: 13px; }

/* ---------------- 17. 空 / 加载 / 错误 ---------------- */
.state { padding: 48px 24px; }
.state__art { width: 84px; height: 84px; }
.state__art::before { width: 84px; height: 84px; background: #f2f2f5; }
.state__art::after { width: 58px; height: 58px; box-shadow: 0 2px 8px rgba(11,11,12,.06); }
.state__title { font-size: 17px; letter-spacing: -0.02em; }
.state__desc { font-size: 12.5px; color: var(--ink-400); }
.skeleton-card { border-radius: 22px; }
.sk { background: #f2f2f5; }
.trust { background: #f7f7f9; box-shadow: none; border-radius: 18px; }
.trust b { font-size: 13px; }
.trust span { font-size: 11.5px; }

/* 灰底页面上的可选项要给白色载体，否则与背景糊在一起 */
.app[data-page="create"] .opt,
.app[data-page="create"] .amount-opt,
.app[data-page="detail"] .week__d {
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 11, 12, .05);
}
.app[data-page="create"] .opt.is-on,
.app[data-page="create"] .amount-opt.is-on,
.app[data-page="detail"] .week__d.is-on {
  background: #0b0b0c; box-shadow: none;
}
.app[data-page="create"] .opt:disabled {
  background: #efeff2; color: #b8b8bd; box-shadow: none;
}
.app[data-page="create"] .form-row,
.app[data-page="create"] .amount-row { padding-left: 16px; padding-right: 16px; }
.app[data-page="create"] .sub-label { padding-left: 2px; }

/* ---------------- 18. 动效与交互细节 ---------------- */
:root { --dur-nav: 340ms; }

[data-nav="push"] .page-enter { animation: pushIn var(--dur-nav) var(--ease) both; }
[data-nav="tab"]  .page-enter { animation: fadeIn var(--dur-2) var(--ease-out) both; }
@keyframes pushIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* 信息流卡片轻微错峰上浮 */
.feed > *, .grid-2 > *, .stack > * { animation: riseIn 0.5s var(--ease-out) both; }
.feed > *:nth-child(1), .grid-2 > *:nth-child(1), .stack > *:nth-child(1) { animation-delay: 0.02s; }
.feed > *:nth-child(2), .grid-2 > *:nth-child(2), .stack > *:nth-child(2) { animation-delay: 0.06s; }
.feed > *:nth-child(3), .grid-2 > *:nth-child(3), .stack > *:nth-child(3) { animation-delay: 0.10s; }
.feed > *:nth-child(4), .grid-2 > *:nth-child(4), .stack > *:nth-child(4) { animation-delay: 0.14s; }
.feed > *:nth-child(n+5), .grid-2 > *:nth-child(n+5), .stack > *:nth-child(n+5) { animation-delay: 0.18s; }

/* 按压反馈 */
.chip:active, .opt:active, .amount-opt:active, .segment button:active, .tabbar__item:active { transform: scale(0.96); }
.chip, .opt, .amount-opt, .tabbar__item { transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.photo-card img { transition: transform 0.6s var(--ease-out); }
.photo-card:active img { transform: scale(1.03); }
.list__item--link:active { transform: scale(0.995); }

/* 关注成功的小弹跳 */
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.follow-btn.is-done { animation: pop 0.4s var(--ease-out); color: var(--brand-700); background: var(--brand-50); box-shadow: none; }

/* 在线点呼吸节奏稍慢，避免抢视线 */
.dot-online::after { animation-duration: 3.2s; }

/* 底部留白，避免最后一段文案被 Dock 压住 */
.page { padding-bottom: 40px; }

/* 卡片元信息在窄屏可换行，避免和 CTA 打架 */
.photo-card__meta { flex-wrap: wrap; row-gap: 8px; }
.photo-card__cta { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .feed > *, .grid-2 > *, .stack > *, [data-nav] .page-enter { animation: none !important; }
}

/* ---------------- 19. 游戏分类 / 图标 ---------------- */
.game-chip {
  width: 22px; height: 22px; border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 2px 6px -3px rgba(0,0,0,.5);
  flex: none;
}
.skill__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  box-shadow: 0 0 0 1px rgba(11,11,12,.05);
}

.games-row {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 14px 0 4px;
  scroll-snap-type: x proximity;
}
.games-row > * { flex: none; scroll-snap-align: start; }
.game-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 58px;
}
.game-pick img {
  width: 46px; height: 46px; border-radius: 14px;
  box-shadow: 0 4px 10px -6px rgba(11,11,12,.5);
  transition: transform var(--dur-2) var(--ease);
}
.game-pick span { font-size: 10px; color: var(--ink-400); white-space: nowrap; }
.game-pick.is-on span { color: var(--ink-900); font-weight: var(--fw-sb); }
.game-pick.is-on img { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 16px -8px rgba(11,11,12,.6); }
.game-pick__all {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: #f2f2f5; color: #6e6e73;
}
.game-pick__all svg { width: 20px; height: 20px; }
.game-pick.is-on .game-pick__all { background: #0b0b0c; color: #fff; }
.game-pick:active img, .game-pick:active .game-pick__all { transform: scale(.94); }

.chip__icon { width: 16px; height: 16px; border-radius: 5px; flex: none; }

/* ---------------- 20. 快速匹配 ---------------- */
.match { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 6px; }
.match__ring {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #ffe9d2, #ffd7ae);
  color: #c2410c;
  box-shadow: 0 12px 26px -16px rgba(194,65,12,.7);
}
.match__ring svg { width: 34px; height: 34px; }
.match__ring::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed rgba(194,65,12,.28);
}
.match__ring.is-scanning { animation: breathe 1.6s var(--ease) infinite; }
.match__ring.is-scanning::after { animation: spin 3.4s linear infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.match__title { margin-top: 18px; font-size: 16px; font-weight: var(--fw-b); letter-spacing: -0.02em; }
.match__sub { margin-top: 6px; font-size: 12px; color: var(--ink-400); }
.match__dots { display: flex; gap: 6px; margin-top: 16px; }
.match__dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7cc; animation: dotPulse 1.1s infinite; }
.match__dots i:nth-child(2) { animation-delay: .16s; }
.match__dots i:nth-child(3) { animation-delay: .32s; }
@keyframes dotPulse { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.match__done {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 14px;
  background: #eaf7ef; color: #15803d; font-size: 12px; font-weight: var(--fw-m);
}
.match__done svg { width: 14px; height: 14px; }

/* 试音播放时波形高亮 */
.voice__wave.is-live i { animation: wavePulse .9s var(--ease) infinite alternate; }
@keyframes wavePulse { from { transform: scaleY(.6); } to { transform: scaleY(1.15); } }
.voice__btn.is-playing { background: #c2410c; }

/* ---------------- 21. 发现页：横向长条卡（头像 + 信息） ---------------- */
.row-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }

.pw-row {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(11, 11, 12, .04);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.pw-row:active { transform: scale(.995); box-shadow: 0 4px 14px -8px rgba(11, 11, 12, .25); }

.pw-row__thumb {
  position: relative; flex: none;
  width: 84px; height: 84px;
}
.pw-row__thumb img {
  width: 100%; height: 100%; display: block;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .05);
}
.pw-row__thumb .dot-online { right: 3px; bottom: 3px; }

.pw-row__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1px 0 2px;
}
.pw-row__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pw-row__top > b { font-size: 16.5px; font-weight: var(--fw-b); letter-spacing: -0.02em; max-width: 6.5em; }
.pw-row__top .tag { height: 20px; padding: 0 7px; font-size: 10px; flex: none; }
.pw-row__top .rank { height: 20px; font-size: 10px; padding: 0 7px 0 5px; flex: none; }

.pw-row__mid {
  font-size: 12px; color: var(--ink-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
}

.pw-row__bot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pw-row__meta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: var(--ink-600); font-variant-numeric: tabular-nums;
}
.pw-row__meta svg { width: 11px; height: 11px; fill: #ffb020; stroke: none; }
.pw-row__meta i { font-style: normal; color: var(--ink-300); margin: 0 1px; }
.pw-row__price { margin-left: auto; white-space: nowrap; }
.pw-row__price .price { font-size: 17px; }
.pw-row__cta {
  width: 46px; height: 34px; border-radius: 99px;
  background: #0b0b0c; color: #fff;
  font-size: 12px; font-weight: var(--fw-sb);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-1) var(--ease);
}
.pw-row__cta:active { transform: scale(.92); }

@media (max-width: 360px) {
  .pw-row__thumb { width: 72px; height: 72px; }
  .pw-row__top > b { font-size: 15.5px; }
  .pw-row__price .price { font-size: 15px; }
}

/* ---------------- 22. 优惠券 ---------------- */
.coupon {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11,11,12,.04);
}
.coupon.is-dim { opacity: .48; }
.coupon__amt {
  font-family: var(--font-num); font-size: 24px; font-weight: 700; color: #c2410c;
  min-width: 64px; letter-spacing: -0.03em;
}
.coupon__amt small { font-size: 13px; margin-right: 1px; }
.coupon__body { flex: 1; min-width: 0; }
.coupon__name { font-size: 14px; font-weight: 600; }
.coupon__rule { font-size: 11px; color: var(--ink-400); margin-top: 3px; }
.card.empty-box, .empty-box { padding: 36px 20px; text-align: center; color: var(--ink-400); font-size: 13px; }
