/* ============================================================
   炼竞陪玩 · H5 端设计系统
   主题：浅灰白（柔和版）· 电竞暖金点缀
   ------------------------------------------------------------
   配色与后台 assets/admin/admin.css 共用同一套金色令牌，
   改动主色只需同步改这两处的 --gold-grad / --gold-1 ~ --gold-3。
   ============================================================ */

:root {
  /* ---------- 金色主色梯度（白底适配：加深保证对比度） ---------- */
  --gold-1: #C8912A;
  --gold-2: #D9A93F;
  --gold-3: #A8761C;
  --gold-grad: linear-gradient(135deg, #F0CE72 0%, #E0B44C 48%, #C8912A 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(224,180,76,.20), rgba(200,145,42,.08));
  --gold-soft: rgba(200,145,42,.10);

  /* ---------- 墨色/背景（浅灰白） ---------- */
  --ink-1: #F2F4F8;
  --ink-2: #F5F6FA;
  --ink-3: #FAFBFD;

  /* ---------- 纸面层级（卡片） ---------- */
  --paper: #FFFFFF;
  --paper-2: #F7F8FB;
  --paper-3: #EFF2F7;

  /* ---------- 文字 ---------- */
  --txt-1: #1B2130;
  --txt-2: #4A5468;
  --txt-3: #7A8499;
  --txt-4: #A3ABBD;
  --txt-inv: #F4F6FB;   /* 深色背景上的浅色文字（toast/遮罩） */

  /* ---------- 功能色（白底加深版） ---------- */
  --price: #E5382A;
  --online: #12A06E;
  --warn: #D98407;
  --info: #2B7FE0;
  --danger: #E5382A;

  /* ---------- 语义色（浅底 + 深字） ---------- */
  --ok-soft: rgba(18,160,110,.10);
  --ok-txt: #0B7F57;
  --warn-soft: rgba(217,132,7,.12);
  --warn-txt: #A9660A;
  --danger-soft: rgba(229,56,42,.09);
  --danger-txt: #C42F22;
  --info-soft: rgba(43,127,224,.10);
  --info-txt: #1F63B4;
  --muted-soft: rgba(17,24,39,.055);
  --hover-soft: rgba(17,24,39,.045);
  --placeholder-grad: linear-gradient(135deg, #EEF1F6, #E3E8F0);
  --glass: rgba(255,255,255,.88);
  --glass-strong: rgba(255,255,255,.94);
  --field-inset: rgba(17,24,39,.045);

  /* ---------- 分隔线 ---------- */
  --line: rgba(17,24,39,.09);
  --line-2: rgba(17,24,39,.16);
  --line-gold: rgba(200,145,42,.35);

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

  /* ---------- 阴影 ---------- */
  --sh-1: 0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04);
  --sh-2: 0 10px 30px rgba(17,24,39,.10), 0 2px 6px rgba(17,24,39,.05);
  --sh-gold: 0 8px 22px rgba(200,145,42,.24);

  /* ---------- 底部导航高度 ---------- */
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   基础重置
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
  min-height: 100vh;
  background: var(--ink-1);
  color: var(--txt-1);
  font: 400 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; outline: none; border: 0; background: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
svg { flex: 0 0 auto; }

input::placeholder, textarea::placeholder { color: var(--txt-3); }

/* 隐藏滚动条但保留滚动 */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ============================================================
   页面骨架
   ============================================================ */
.page {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  background:
    radial-gradient(680px 380px at 8% -4%, rgba(224,180,76,.16), transparent 62%),
    radial-gradient(520px 320px at 96% 2%, rgba(200,145,42,.12), transparent 58%),
    var(--ink-1);
}
.page--flat { padding-bottom: 16px; background: var(--ink-1); }
.page--chat {
  padding-bottom: 0; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  /* 微信/手机浏览器：100vh 含底部工具栏区域会遮住输入条，100dvh 按可视高度计算；
     老内核不支持 dvh 时由 h5_footer 的 JS 兜底用 innerHeight 锁定可视高度 */
}

.container { padding: 0 14px; }

/* ---------- 顶部标题栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 12px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 16.5px; font-weight: 650; letter-spacing: .3px; flex: 1; text-align: center; }
.topbar-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2); transition: .18s; flex: 0 0 auto;
}
.topbar-btn:active { background: rgba(17,24,39,.07); transform: scale(.94); }
.topbar-btn svg { width: 20px; height: 20px; }
.topbar-side { min-width: 34px; display: flex; justify-content: flex-end; }

/* ---------- Logo 区 ---------- */
.brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 13px; background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center; color: #1A1206;
  font-size: 19px; font-weight: 800; box-shadow: var(--sh-gold); overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .4px; }
.brand-slogan { font-size: 11.5px; color: var(--txt-3); }

/* ============================================================
   公告条
   ============================================================ */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 12px; padding: 9px 12px;
  background: var(--gold-grad-soft);
  border: 1px solid rgba(224,180,76,.2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.notice-bar svg { width: 15px; height: 15px; color: var(--gold-2); }
.notice-text {
  font-size: 12.5px; color: var(--txt-2); white-space: nowrap;
  animation: noticeScroll 22s linear infinite;
}
@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   轮播
   ============================================================ */
.banner-wrap { margin: 0 0 16px; }
.banner-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 14px 6px;
}
.banner-item {
  flex: 0 0 86%; scroll-snap-align: center;
  height: 128px; border-radius: var(--r-lg); overflow: hidden;
  position: relative; display: flex; align-items: center; padding: 0 20px;
  background: var(--gold-grad-soft);
  border: 1px solid rgba(224,180,76,.2);
  box-shadow: var(--sh-1);
}
.banner-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.42) 0%, transparent 55%);
  opacity: .12;
}
.banner-title {
  position: relative; z-index: 2; font-size: 16px; font-weight: 700;
  line-height: 1.45; max-width: 68%; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.banner-item--img .banner-title { color: #fff; }

.banner-dots { display: flex; gap: 5px; justify-content: center; margin-top: 2px; }
.banner-dot {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(17,24,39,.20);
  transition: .25s;
}
.banner-dot.is-active { width: 16px; border-radius: 3px; background: var(--gold-2); }

/* ============================================================
   分类（首页金刚区）
   ============================================================ */
.cate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px;
  padding: 4px 8px 8px;
}
.cate-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 4px; border-radius: var(--r-md); transition: .2s;
}
.cate-item:active { background: var(--muted-soft); transform: scale(.96); }
.cate-icon {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--muted-soft); border: 1px solid var(--line);
  color: var(--gold-2); overflow: hidden;
}
.cate-icon svg { width: 23px; height: 23px; }
.cate-icon img { width: 100%; height: 100%; object-fit: cover; }
.cate-item.is-active .cate-icon {
  background: var(--gold-grad); color: #1A1206; border-color: transparent;
  box-shadow: var(--sh-gold);
}
.cate-name { font-size: 11.5px; color: var(--txt-2); max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.cate-item.is-active .cate-name { color: var(--gold-1); font-weight: 600; }

/* ============================================================
   区块标题
   ============================================================ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px 10px;
}
.section-title {
  font-size: 16px; font-weight: 680; display: flex; align-items: center; gap: 8px;
  letter-spacing: .2px;
}
.section-title::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: var(--gold-grad);
}
.section-more {
  font-size: 12.5px; color: var(--txt-3); display: flex; align-items: center; gap: 2px;
}
.section-more svg { width: 14px; height: 14px; }

/* ============================================================
   商品卡片
   ============================================================ */
.goods-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 8px; }
.goods-list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.goods-card {
  display: flex; gap: 11px; padding: 11px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: .2s; position: relative; overflow: hidden;
}
.goods-card:active { transform: scale(.985); border-color: rgba(224,180,76,.28); }

.goods-cover {
  width: 88px; height: 88px; border-radius: var(--r-md); flex: 0 0 auto;
  background: var(--paper-2); overflow: hidden; position: relative;
  color: var(--txt-3);
}
.goods-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-cover svg { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; }
.goods-cover-badge {
  position: absolute; top: 0; left: 0; padding: 2px 7px; font-size: 10px;
  font-weight: 700; background: var(--gold-grad); color: #1A1206;
  border-radius: var(--r-md) 0 var(--r-sm) 0;
}

.goods-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.goods-title {
  font-size: 14.5px; font-weight: 620; line-height: 1.4; color: var(--txt-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 5px;
}
.goods-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: auto; }
.goods-tag {
  font-size: 10.5px; padding: 2px 6px; border-radius: 5px;
  background: rgba(17,24,39,.06); color: var(--txt-3); white-space: nowrap;
}
.goods-tag--gold { background: rgba(224,180,76,.13); color: var(--gold-1); }

.goods-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: 8px;
}
.price { color: var(--price); font-weight: 750; font-size: 18px; line-height: 1; display: flex; align-items: baseline; gap: 1px; }
.price i { font-size: 11.5px; font-style: normal; font-weight: 600; }
.price-origin {
  font-size: 11.5px; color: var(--txt-3); text-decoration: line-through;
  margin-left: 5px; font-weight: 400;
}
.goods-unit { font-size: 11.5px; color: var(--txt-3); font-weight: 400; }

.goods-sales { font-size: 11px; color: var(--txt-3); white-space: nowrap; }

/* ---------- 网格卡片（选人页） ---------- */
.goods-card--grid {
  flex-direction: column; padding: 0; gap: 0;
}
.goods-card--grid .goods-cover { width: 100%; height: 118px; border-radius: 0; }
.goods-card--grid .goods-card-inner { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 6px; }
.goods-card--grid .goods-title { font-size: 13.5px; margin-bottom: 0; -webkit-line-clamp: 2; }

/* ============================================================
   陪玩师卡片
   ============================================================ */
.player-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 8px; }

.player-card {
  display: flex; gap: 12px; padding: 13px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: .2s; position: relative;
}
.player-card:active { transform: scale(.985); border-color: rgba(224,180,76,.28); }

.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--gold-grad-soft); border: 1.5px solid rgba(224,180,76,.3);
  position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-size: 21px; font-weight: 700; color: var(--gold-1);
  background: linear-gradient(135deg, rgba(245,215,122,.2), rgba(200,145,42,.1)); }
.avatar--sm { width: 40px; height: 40px; }
.avatar--sm .avatar-fallback { font-size: 16px; }
.avatar--lg { width: 68px; height: 68px; }
.avatar--lg .avatar-fallback { font-size: 26px; }

.online-dot {
  position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--online); border: 2.5px solid var(--paper);
}
.online-dot--off { background: var(--txt-3); }

.player-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.player-head { display: flex; align-items: center; gap: 7px; }
.player-name { font-size: 15px; font-weight: 650; }
.player-level {
  font-size: 10px; padding: 1.5px 6px; border-radius: 4px; font-weight: 700;
  background: var(--gold-grad); color: #1A1206;
}
.player-rank { font-size: 11px; color: var(--info); background: var(--info-soft);
  padding: 1.5px 6px; border-radius: 4px; }
.player-intro {
  font-size: 12.5px; color: var(--txt-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.player-stats { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--txt-3); }
.player-stat b { color: var(--gold-1); font-weight: 650; }

.player-action { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 620; transition: .18s;
  background: rgba(17,24,39,.07); color: var(--txt-1);
  border: 1px solid var(--line-2); white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }

.btn--gold { background: var(--gold-grad); color: #1A1206; border-color: transparent; box-shadow: var(--sh-gold); }
.btn--gold:active { box-shadow: 0 4px 14px rgba(224,180,76,.3); }
.btn--ghost { background: transparent; border-color: rgba(200,145,42,.45); color: var(--gold-1); }
.btn--danger { background: var(--danger-soft); border-color: rgba(229,56,42,.30); color: var(--danger-txt); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--lg { padding: 14px 22px; font-size: 15.5px; border-radius: var(--r-lg); }
.btn--pill { border-radius: var(--r-pill); }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; }

/* ============================================================
   底部导航
   ============================================================ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: flex-start;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--glass-strong);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--tabbar-h); color: var(--txt-3);
  font-size: 10.5px; transition: .18s; position: relative;
}
.tabbar-item svg { width: 22px; height: 22px; transition: .2s; }
.tabbar-item.is-active { color: var(--gold-3); }
.tabbar-item.is-active svg { transform: translateY(-1px); }
.tabbar-item:active { background: var(--hover-soft); }

/* 中间突出的大按钮（选人） */
.tabbar-center {
  position: relative;
  margin-top: -14px;
  width: 56px; flex: 0 0 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
  box-shadow: 0 6px 16px rgba(107,114,128,.35), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
  border: 3px solid var(--ink-2);
}
.tabbar-center svg { width: 26px; height: 26px; stroke-width: 1.9; }
.tabbar-center span { font-size: 10px; margin-top: 1px; color: rgba(255,255,255,.95); }
.tabbar-center.is-active {
  background: var(--gold-grad);
  color: #1A1206;
  box-shadow: var(--sh-gold);
}
.tabbar-center.is-active span { color: #1A1206; }
.tabbar-center.is-active svg { transform: translateY(-1px); }
.tabbar-center:active { transform: scale(.96); }

.tabbar-badge {
  position: absolute; top: 4px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--price); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink-2);
}

/* ============================================================
   徽章 / 状态
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge--default { background: rgba(17,24,39,.07); color: var(--txt-2); }
.badge--gold { background: rgba(224,180,76,.14); color: var(--gold-1); }
.badge--green { background: var(--ok-soft); color: var(--online); }
.badge--red { background: var(--danger-soft); color: var(--danger-txt); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--blue { background: var(--info-soft); color: var(--info); }

/* ============================================================
   空状态
   ============================================================ */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 56px 24px; text-align: center;
}
.empty-icon {
  width: 68px; height: 68px; border-radius: 22px;
  background: var(--muted-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--txt-3);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-title { font-size: 14.5px; color: var(--txt-2); font-weight: 600; }
.empty-desc { font-size: 12.5px; color: var(--txt-3); line-height: 1.7; max-width: 260px; }

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--txt-2);
}
.form-label em { color: var(--price); font-style: normal; margin-left: 2px; }
.form-label .form-label-hint { font-weight: 400; color: var(--txt-3); font-size: 11.5px; margin-left: 6px; }

.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--field-inset); border: 1px solid var(--line-2);
  color: var(--txt-1); font-size: 14.5px; transition: .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-2); background: var(--field-inset);
  box-shadow: 0 0 0 3px rgba(224,180,76,.13);
}
.form-textarea { resize: vertical; min-height: 88px; line-height: 1.65; }
.form-select { appearance: none; background-image: none; cursor: pointer; }
.form-select option { background: var(--paper); color: var(--txt-1); }

.form-input-wrap { position: relative; display: flex; align-items: center; }
.form-input-wrap .form-input { padding-right: 46px; }
.form-eye {
  position: absolute; right: 6px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-3); border-radius: var(--r-sm); transition: .18s;
}
.form-eye:active { background: rgba(17,24,39,.07); }
.form-eye svg { width: 17px; height: 17px; }

.form-hint { font-size: 11.5px; color: var(--txt-3); margin-top: 6px; line-height: 1.6; }

.form-counter { position: absolute; right: 12px; bottom: 9px; font-size: 11.5px; color: var(--txt-3); }

/* 验证码 */
.code-row { display: flex; gap: 10px; }
.code-row .form-input { flex: 1; }
.code-btn {
  padding: 0 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  background: rgba(224,180,76,.13); color: var(--gold-1);
  border: 1px solid rgba(224,180,76,.26); white-space: nowrap; transition: .18s;
}
.code-btn:active { transform: scale(.97); }
.code-btn[disabled] { opacity: .45; }

/* 金额输入 */
.amount-input { position: relative; }
.amount-input .form-input { padding-left: 34px; font-size: 22px; font-weight: 700; color: var(--gold-1); }
.amount-input::before {
  content: '¥'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; font-weight: 600; color: var(--gold-2); z-index: 2;
}

/* 金额快选 */
.amount-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.amount-preset {
  padding: 11px 4px; border-radius: var(--r-md); text-align: center;
  background: var(--muted-soft); border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 650; transition: .18s;
}
.amount-preset:active { transform: scale(.96); }
.amount-preset.is-active {
  background: var(--gold-grad-soft); border-color: rgba(224,180,76,.5); color: var(--gold-1);
}

/* 支付方式选择 */
.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 9px; transition: .18s;
}
.pay-option.is-active { border-color: rgba(224,180,76,.5); background: var(--gold-grad-soft); }
.pay-option-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.06);
}
.pay-option-icon svg { width: 19px; height: 19px; }
.pay-option-body { flex: 1; }
.pay-option-name { font-size: 14px; font-weight: 600; }
.pay-option-desc { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.pay-radio {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-2);
  flex: 0 0 auto; position: relative; transition: .18s;
}
.pay-option.is-active .pay-radio { border-color: var(--gold-2); background: var(--gold-grad); }
.pay-option.is-active .pay-radio::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #1A1206; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 开关 */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px; background: var(--paper); border-radius: var(--r-md);
  border: 1px solid var(--line); margin-bottom: 9px;
}
.switch-label { font-size: 14px; font-weight: 600; }
.switch-desc { font-size: 11.5px; color: var(--txt-3); margin-top: 3px; line-height: 1.5; }
.switch-box {
  width: 46px; height: 26px; border-radius: 13px; background: rgba(17,24,39,.16);
  position: relative; transition: .22s; flex: 0 0 auto; cursor: pointer;
}
.switch-box::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .22s; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.switch-box.is-on { background: var(--gold-grad); }
.switch-box.is-on::after { transform: translateX(20px); }

/* ============================================================
   列表单元
   ============================================================ */
.cell-group {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin: 0 14px 14px; overflow: hidden;
}
.cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  border-bottom: 1px solid var(--line); transition: .18s;
}
.cell:last-child { border-bottom: 0; }
.cell:active { background: var(--hover-soft); }
.cell-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,180,76,.1); color: var(--gold-2);
}
.cell-icon svg { width: 17px; height: 17px; }
.cell-body { flex: 1; min-width: 0; }
.cell-title { font-size: 14px; font-weight: 600; }
.cell-desc { font-size: 11.5px; color: var(--txt-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-value { font-size: 13.5px; color: var(--txt-2); text-align: right; }
.cell-value--gold { color: var(--gold-1); font-weight: 650; }
.cell-arrow { color: var(--txt-3); flex: 0 0 auto; }
.cell-arrow svg { width: 16px; height: 16px; }

/* ============================================================
   筛选标签栏
   ============================================================ */
.filter-bar {
  display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto;
  position: sticky; top: 50px; z-index: 40;
  background: rgba(11,13,18,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px;
  background: var(--muted-soft); color: var(--txt-2);
  border: 1px solid var(--line); white-space: nowrap; transition: .18s;
}
.filter-chip.is-active {
  background: var(--gold-grad); color: #1A1206; border-color: transparent; font-weight: 650;
}

/* ============================================================
   底部动作条
   ============================================================ */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.action-bar-body { flex: 1; min-width: 0; }
.action-bar-label { font-size: 11.5px; color: var(--txt-3); }
.action-bar-price { font-size: 20px; font-weight: 750; color: var(--price); line-height: 1.25; }
.action-bar-price i { font-size: 12.5px; font-style: normal; }

/* ============================================================
   弹层
   ============================================================ */
.sheet-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.62);
  opacity: 0; visibility: hidden; transition: .25s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.sheet-mask.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
  max-height: 82vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--line-2);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-bottom: var(--safe-b);
}
.sheet.is-open { transform: translateY(0); }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.sheet-title { font-size: 16px; font-weight: 680; }
.sheet-close { width: 30px; height: 30px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--txt-3); }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.sheet-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); flex: 0 0 auto; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9);
  z-index: 500; padding: 12px 22px; border-radius: var(--r-md);
  background: rgba(20,23,29,.96); color: var(--txt-inv); font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
  transition: .22s; max-width: 76vw; text-align: center; line-height: 1.6;
  border: 1px solid rgba(255,255,255,.12);
}
.toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }

/* ============================================================
   订单卡片
   ============================================================ */
.order-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; margin-bottom: 10px; transition: .18s;
}
.order-card:active { transform: scale(.99); }
.order-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 11px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.order-no { font-size: 11.5px; color: var(--txt-3); font-family: ui-monospace, Menlo, monospace; }
.order-body { display: flex; gap: 11px; }
.order-cover {
  width: 62px; height: 62px; border-radius: var(--r-md); flex: 0 0 auto;
  background: var(--paper-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--txt-3);
}
.order-cover img { width: 100%; height: 100%; object-fit: cover; }
.order-cover svg { width: 22px; height: 22px; }
.order-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.order-title { font-size: 14px; font-weight: 620; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.order-meta { font-size: 11.5px; color: var(--txt-3); }
.order-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
}
.order-amount { font-size: 12.5px; color: var(--txt-3); }
.order-amount b { color: var(--price); font-size: 17px; font-weight: 750; margin-left: 2px; }
.order-actions { display: flex; gap: 8px; }

/* 订单进度 */
.order-steps { display: flex; align-items: center; gap: 0; margin: 16px 0 6px; }
.order-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.order-step::before {
  content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 1.5px;
  background: var(--line-2); z-index: 0;
}
.order-step:first-child::before { display: none; }
.order-step.is-done::before { background: var(--gold-2); }
.order-step-dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--paper-3);
  border: 1.5px solid var(--line-2); z-index: 1; transition: .25s;
  display: flex; align-items: center; justify-content: center;
}
.order-step.is-done .order-step-dot { background: var(--gold-grad); border-color: transparent; }
.order-step.is-done .order-step-dot::after {
  content: ''; width: 4px; height: 7px; border: solid #1A1206;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -2px;
}
.order-step-name { font-size: 10.5px; color: var(--txt-3); white-space: nowrap; }
.order-step.is-done .order-step-name { color: var(--gold-1); }

/* ============================================================
   钱包卡片
   ============================================================ */
.wallet-card {
  margin: 0 14px 16px; padding: 20px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(245,215,122,.16) 0%, rgba(200,145,42,.07) 60%, rgba(22,26,34,.9) 100%);
  border: 1px solid rgba(224,180,76,.24);
  position: relative; overflow: hidden;
}
.wallet-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,215,122,.16), transparent 70%);
}
.wallet-label { font-size: 12.5px; color: var(--txt-2); margin-bottom: 6px; }
.wallet-balance { font-size: 34px; font-weight: 750; color: var(--gold-1); line-height: 1.1;
  letter-spacing: -.5px; display: flex; align-items: baseline; gap: 3px; }
.wallet-balance i { font-size: 18px; font-style: normal; font-weight: 600; }
.wallet-sub { display: flex; gap: 20px; margin-top: 14px; position: relative; z-index: 2; }
.wallet-sub-item { font-size: 11.5px; color: var(--txt-3); }
.wallet-sub-item b { display: block; font-size: 15px; color: var(--txt-1); font-weight: 650; margin-top: 2px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 2; }
.wallet-actions .btn { flex: 1; }

/* ============================================================
   统计条
   ============================================================ */
.stats-row { display: flex; gap: 10px; padding: 0 14px 14px; }
.stat-card {
  flex: 1; padding: 14px 12px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); text-align: center;
}
.stat-value { font-size: 20px; font-weight: 750; color: var(--gold-1); line-height: 1.2; }
.stat-label { font-size: 11.5px; color: var(--txt-3); margin-top: 4px; }

/* ============================================================
   聊天
   ============================================================ */
.chat-head {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 12px; flex: 0 0 auto;
  background: var(--glass-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); position: relative; z-index: 10;
}
.chat-peer { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.chat-peer-name { font-size: 15px; font-weight: 650; }
.chat-peer-status { font-size: 11px; color: var(--online); }
.chat-peer-status--off { color: var(--txt-3); }

.chat-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(400px 240px at 50% 0%, rgba(224,180,76,.03), transparent 70%),
    var(--ink-1);
  -webkit-overflow-scrolling: touch;
}

.msg { display: flex; gap: 9px; max-width: 82%; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); font-size: 14px; color: var(--gold-1);
  border: 1px solid var(--line-2); }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.msg-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg--me .msg-content { align-items: flex-end; }

.msg-bubble {
  padding: 10px 13px; border-radius: var(--r-md);
  font-size: 14.5px; line-height: 1.55; word-break: break-word;
  background: var(--paper-2); border: 1px solid var(--line);
  border-top-left-radius: 4px;
}
.msg--me .msg-bubble {
  background: var(--gold-grad-soft); border-color: rgba(224,180,76,.28);
  color: var(--txt-1); border-top-left-radius: var(--r-md); border-top-right-radius: 4px;
}
.msg-image {
  max-width: 190px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--paper-2);
}
.msg-image img { width: 100%; display: block; }
.msg-emoji { font-size: 30px; line-height: 1; padding: 2px 0; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', sans-serif; }
.msg-emoji-img { width: 72px; height: 72px; }
.msg-emoji-img img { width: 100%; height: 100%; object-fit: contain; }
.msg-time { font-size: 10.5px; color: var(--txt-3); padding: 0 2px; }

.msg-system {
  align-self: center; max-width: 88%; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--muted-soft); font-size: 11.5px; color: var(--txt-3);
  text-align: center; line-height: 1.6;
}
.msg-order-card {
  padding: 11px 13px; border-radius: var(--r-md); background: var(--paper-2);
  border: 1px solid rgba(224,180,76,.24); display: flex; flex-direction: column; gap: 5px;
  min-width: 200px;
}
.msg-order-title { font-size: 13.5px; font-weight: 620; }
.msg-order-meta { font-size: 11.5px; color: var(--txt-3); }

.chat-input-bar {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.chat-tool {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2); background: rgba(17,24,39,.06); transition: .18s;
}
.chat-tool:active { transform: scale(.92); background: rgba(17,24,39,.11); }
.chat-tool svg { width: 19px; height: 19px; }
.chat-input {
  flex: 1; min-height: 36px; max-height: 96px; padding: 9px 13px;
  border-radius: 18px; background: var(--field-inset);
  border: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.4;
  resize: none; overflow-y: auto;
}
.chat-input:focus { border-color: rgba(224,180,76,.45); }
.chat-send {
  width: 62px; height: 36px; border-radius: 18px; flex: 0 0 auto;
  background: var(--gold-grad); color: #1A1206; font-size: 14px; font-weight: 680;
  display: flex; align-items: center; justify-content: center; transition: .18s;
}
.chat-send:active { transform: scale(.95); }
.chat-send[disabled] { opacity: .4; }

.chat-emoji-panel {
  flex: 0 0 auto; border-top: 1px solid var(--line);
  background: var(--paper); max-height: 260px; overflow-y: auto;
  padding: 10px 12px 14px; display: none;
}
.chat-emoji-panel.is-open { display: block; }
.chat-emoji-tabs {
  display: flex; gap: 6px; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.chat-emoji-tab {
  padding: 5px 10px; border-radius: var(--r-pill); font-size: 12px; color: var(--txt-2);
  background: transparent; border: 1px solid transparent; transition: .15s;
}
.chat-emoji-tab.is-active {
  color: #1A1206; font-weight: 600;
  background: var(--gold-grad); border-color: transparent;
}
.chat-emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.chat-emoji-item {
  aspect-ratio: 1; border-radius: var(--r-sm); display: flex;
  align-items: center; justify-content: center; background: var(--muted-soft);
  font-size: 22px; transition: .15s; overflow: hidden;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', sans-serif;
}
.chat-emoji-item:active { transform: scale(.9); background: rgba(17,24,39,.09); }
.chat-emoji-item img { width: 100%; height: 100%; object-fit: contain; }

/* 会话列表 */
.session-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-bottom: 1px solid var(--line); transition: .18s;
}
.session-item:active { background: var(--hover-soft); }
.session-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.session-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-name { font-size: 14.5px; font-weight: 620; display: flex; align-items: center; gap: 6px; }
.session-time { font-size: 11px; color: var(--txt-3); flex: 0 0 auto; }
.session-msg {
  font-size: 12.5px; color: var(--txt-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.session-unread {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--price); color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* ============================================================
   登录页
   ============================================================ */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: 0 26px calc(30px + var(--safe-b));
  background:
    radial-gradient(760px 480px at 50% -10%, rgba(224,180,76,.13), transparent 62%),
    radial-gradient(500px 340px at 12% 30%, rgba(200,145,42,.06), transparent 62%),
    var(--ink-1);
}
.auth-wrap { display: flex; flex-direction: column; flex: 1; width: 100%; }
.auth-head { padding: 62px 0 34px; text-align: center; }
.auth-logo {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 24px;
  background: var(--gold-grad); display: flex; align-items: center; justify-content: center;
  color: #1A1206; font-size: 34px; font-weight: 800;
  box-shadow: 0 16px 42px rgba(224,180,76,.3); overflow: hidden;
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { font-size: 23px; font-weight: 720; letter-spacing: .5px; margin-bottom: 7px; }
.auth-sub { font-size: 13px; color: var(--txt-3); }

.auth-form { flex: 1; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md);
  background: var(--field-inset); border: 1px solid var(--line); margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: var(--r-sm); text-align: center;
  font-size: 14px; font-weight: 620; color: var(--txt-3); transition: .2s;
}
.auth-tab.is-active { background: var(--gold-grad); color: #1A1206; box-shadow: var(--sh-1); }

.auth-foot { text-align: center; padding-top: 22px; }
.auth-agree {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12px;
  color: var(--txt-3); line-height: 1.6; margin-bottom: 18px;
}
.auth-check {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2);
  flex: 0 0 auto; margin-top: 1px; position: relative; transition: .18s;
  background: var(--field-inset);
}
.auth-check.is-on { background: var(--gold-grad); border-color: transparent; }
.auth-check.is-on::after {
  content: ''; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #1A1206; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.auth-agree a { color: var(--gold-2); }
.auth-bottom { margin-top: auto; text-align: center; font-size: 12px; color: var(--txt-3); line-height: 1.9; }

/* ============================================================
   个人中心
   ============================================================ */
.profile-head {
  display: flex; align-items: center; gap: 14px; padding: 22px 16px 24px;
  background: linear-gradient(180deg, rgba(224,180,76,.09), transparent);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-desc { font-size: 12px; color: var(--txt-3); margin-top: 4px; }

/* ============================================================
   详情页
   ============================================================ */
.detail-hero {
  position: relative; height: 210px; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero svg { width: 52px; height: 52px; color: var(--txt-3); }
.detail-hero-back {
  position: absolute; left: 12px; top: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff; z-index: 5;
}
.detail-hero-back svg { width: 19px; height: 19px; }

.detail-card {
  margin: -18px 14px 0; padding: 16px; border-radius: var(--r-xl);
  background: var(--paper); border: 1px solid var(--line);
  position: relative; z-index: 3;
}
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.detail-price-row .price { font-size: 27px; }
.detail-price-row .price i { font-size: 15px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.detail-section {
  margin: 14px 14px 0; padding: 16px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.detail-section-title {
  font-size: 14.5px; font-weight: 680; margin-bottom: 12px;
  display: flex; align-items: center; gap: 7px;
}
.detail-section-title::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--gold-grad);
}
.detail-text { font-size: 13.5px; color: var(--txt-2); line-height: 1.85; word-break: break-word; }
.detail-text p { margin-bottom: 9px; }
.detail-text p:last-child { margin-bottom: 0; }
.detail-text strong { color: var(--txt-1); font-weight: 650; }

.info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-row-label { color: var(--txt-3); flex: 0 0 auto; }
.info-row-value { color: var(--txt-1); text-align: right; word-break: break-all; font-weight: 500; }

/* ============================================================
   分割线 / 工具类
   ============================================================ */
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.divider--inset { margin: 14px; }
.text-gold { color: var(--gold-1); }
.text-price { color: var(--price); }
.text-muted { color: var(--txt-3); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-11 { font-size: 11.5px; }
.fs-12 { font-size: 12.5px; }
.fs-13 { font-size: 13.5px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.px-14 { padding-left: 14px; padding-right: 14px; }
.flex { display: flex; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ============================================================
   骨架屏
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--muted-soft) 25%, rgba(17,24,39,.085) 50%, var(--muted-soft) 75%);
  background-size: 200% 100%; animation: skeleton 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 112px; border-radius: var(--r-lg); margin-bottom: 10px; }
.skeleton-line { height: 13px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   全局提示条（表单校验、操作反馈）
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.6; margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--paper-2); color: var(--txt-2);
  animation: alertIn .22s ease;
}
.alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.alert--danger { background: var(--danger-soft); border-color: rgba(229,56,42,.28); color: var(--danger-txt); }
.alert--danger svg { color: var(--price); }
.alert--warn   { background: rgba(224,180,76,.1); border-color: rgba(224,180,76,.28); color: var(--gold-1); }
.alert--warn svg { color: var(--gold-2); }
.alert--ok     { background: var(--ok-soft); border-color: rgba(18,160,110,.28); color: var(--ok-txt); }
.alert--ok svg { color: var(--online); }
@keyframes alertIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ============================================================
   输入框内嵌图标
   ============================================================ */
.form-input-ico {
  position: absolute; left: 13px; width: 18px; height: 18px;
  color: var(--txt-3); pointer-events: none; transition: color .2s;
}
.form-input-wrap:focus-within .form-input-ico { color: var(--gold-2); }
.form-input-wrap:has(.form-input-ico) .form-input { padding-left: 41px; }

/* ============================================================
   全局兜底：SVG 图标未显式指定尺寸时默认 16px，防止撑爆布局
   ============================================================ */
.page svg:not([width]):not([height]) { width: 16px; height: 16px; flex: 0 0 auto; }
.page .btn svg { width: 16px; height: 16px; }
.page .cell-icon svg, .page .cell-arrow svg { width: 18px; height: 18px; }

/* ============================================================
   选人页（陪玩师列表）
   ============================================================ */
.player-summary {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 14px 0; padding: 12px 15px;
  background: linear-gradient(120deg, rgba(224,180,76,.16), rgba(255,255,255,.6));
  border: 1px solid var(--line-gold, rgba(224,180,76,.2)); border-radius: var(--r-lg);
}
.ps-item { display: flex; flex-direction: column; gap: 1px; }
.ps-item strong { font-size: 19px; font-weight: 700; color: var(--txt-1); line-height: 1.15; }
.ps-item strong.c-online { color: var(--online); }
.ps-item span { font-size: 11px; color: var(--txt-3); }
.ps-line { width: 1px; height: 26px; background: var(--line-2); }
.ps-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  background: rgba(17,24,39,.06); border: 1px solid var(--line-2); color: var(--txt-2);
}
.ps-toggle i {
  width: 30px; height: 17px; border-radius: 9px; background: rgba(17,24,39,.20);
  position: relative; transition: .2s; flex: 0 0 auto;
}
.ps-toggle i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.ps-toggle.is-on { background: var(--ok-soft); border-color: rgba(18,160,110,.30); color: var(--online); }
.ps-toggle.is-on i { background: rgba(32,201,151,.5); }
.ps-toggle.is-on i::after { transform: translateX(13px); }
.ps-toggle em { font-style: normal; }

/* 陪玩师卡片修正 */
.player-card { align-items: stretch; }
.player-link { display: flex; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.player-head { position: relative; flex: 0 0 auto; padding: 0; }
.player-head .avatar.player-avatar { width: 52px; height: 52px; }
.player-head .online-dot { right: 0; bottom: 0; z-index: 2; }

.player-head2 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.player-rank { display: inline-flex; align-items: center; gap: 4px; }
.player-rank svg { width: 13px; height: 13px; }
.player-rank .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); opacity: .7; }
.player-rank .c-gold { color: var(--gold-1); font-weight: 650; }
.player-rank .c-3 { color: var(--txt-3); }
.player-stats { margin-top: 1px; }
.player-stat { display: flex; align-items: baseline; gap: 3px; }
.player-stat b { font-size: 13.5px; }
.player-stat span { font-size: 11px; color: var(--txt-3); }
.player-stat b.c-gold { color: var(--gold-1); }
.player-stat b.c-online { color: var(--online); }

.player-action {
  flex-direction: column; gap: 8px; justify-content: center;
  padding-left: 10px; border-left: 1px solid var(--line);
}
.player-action .btn { width: 86px; }

.badge--muted { background: rgba(17,24,39,.06); color: var(--txt-3); }

/* ============================================================
   详情页导航 / 区块
   ============================================================ */
.detail-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 12px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.detail-nav--float {
  position: fixed; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(8,9,12,.72), rgba(8,9,12,0));
  border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.dn-back, .dn-share {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--field-inset); color: var(--txt-1); border: 1px solid var(--line-2);
}
.dn-back svg, .dn-share svg { transform: rotate(180deg); }
.dn-share svg { transform: none; }
.detail-nav .dn-back { transform: none; }
.detail-nav--float .dn-back svg { transform: rotate(180deg); }
.dn-title { flex: 1; text-align: center; font-size: 14.5px; font-weight: 620; color: var(--txt-1); }

.detail-cover { width: 100%; aspect-ratio: 16 / 11; background: var(--paper-2); overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(200,145,42,.45); background: var(--placeholder-grad);
}

.detail-main {
  margin: -18px 12px 0; position: relative; z-index: 2;
  padding: 15px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.detail-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price--lg { font-size: 27px; align-items: baseline; gap: 6px; display: flex; }
.price--lg .price-sym { font-size: 15px; }
.price--lg .price-num { font-size: 27px; font-weight: 780; }
.price-origin { font-size: 12px; color: var(--txt-3); text-decoration: line-through; }
.price-unit { font-size: 12.5px; color: var(--txt-3); }
.detail-sales { font-size: 11.5px; color: var(--txt-3); white-space: nowrap; }
.detail-sales b { color: var(--gold-1); }

.detail-title { font-size: 17.5px; font-weight: 680; line-height: 1.42; margin: 10px 0 0; color: var(--txt-1); }
.detail-sub { font-size: 12.5px; color: var(--txt-2); line-height: 1.6; margin: 6px 0 0; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.mini-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: var(--muted-soft); border: 1px solid var(--line-2); color: var(--txt-2);
}
.mini-tag svg { width: 13px; height: 13px; }
.mini-tag--gold { color: var(--gold-1); border-color: rgba(224,180,76,.32); background: rgba(224,180,76,.1); }

.detail-stats {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line-2);
}
.ds-item { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; color: var(--txt-3); font-size: 11px; }
.ds-item svg { width: 16px; height: 16px; color: var(--gold-2); }
.ds-item b { font-size: 12.5px; color: var(--txt-1); font-weight: 620; }

.detail-block {
  margin: 12px; padding: 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.db-title { font-size: 14.5px; font-weight: 660; color: var(--txt-1); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.db-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--gold-grad); }
.db-title--flex { justify-content: space-between; }
.db-title--flex em { font-style: normal; font-size: 11.5px; color: var(--txt-3); font-weight: 500; }

/* ============================================================
   陪玩师主页
   ============================================================ */
.pp-hero { position: relative; height: 168px; overflow: hidden; background: var(--paper-2); }
.pp-hero-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-hero-bg--ph { background: linear-gradient(135deg, #F4F6FA, #F7F1E4 60%, #F3EADA); }
.pp-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,.5) 0%, rgba(8,9,12,0) 42%, var(--glass-strong) 100%); }

.pp-card {
  position: relative; z-index: 2; margin: -58px 12px 0;
  padding: 14px 15px 15px; background: var(--paper);
  border: 1px solid rgba(224,180,76,.18); border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.pp-top { display: flex; align-items: flex-start; gap: 13px; }
.pp-avatar-wrap { position: relative; flex: 0 0 auto; }
.pp-avatar-wrap .online-dot { right: 2px; bottom: 2px; width: 14px; height: 14px; border-width: 3px; }
.pp-info { flex: 1; min-width: 0; padding-top: 5px; }
.pp-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pp-name { font-size: 17px; font-weight: 700; color: var(--txt-1); }
.pp-rank { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; color: var(--info); }
.pp-rank svg { width: 13px; height: 13px; }
.pp-price { text-align: right; flex: 0 0 auto; padding-top: 4px; }
.pp-price b { font-size: 19px; font-weight: 750; color: var(--gold-1); display: block; line-height: 1.2; }
.pp-price span { font-size: 10.5px; color: var(--txt-3); }

.pp-stats {
  display: flex; align-items: center; margin-top: 15px; padding: 12px 0;
  border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
}
.pp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.pp-stat + .pp-stat::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--line); }
.pp-stat b { font-size: 16px; font-weight: 700; color: var(--txt-1); line-height: 1.2; }
.pp-stat span { font-size: 10.5px; color: var(--txt-3); }

.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.pp-games { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-game {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill); font-size: 12.5px;
  background: var(--info-soft); border: 1px solid rgba(43,127,224,.26); color: var(--info-txt);
}
.pp-game svg { width: 14px; height: 14px; }

.pp-intro { font-size: 13px; line-height: 1.78; color: var(--txt-2); word-break: break-word; }

.pp-certs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 3px; }
.pp-certs::-webkit-scrollbar { display: none; }
.pp-cert {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--line-2); background: var(--paper-2);
}
.pp-cert img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 评价分布 */
.rv-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rv-bar-row { display: flex; align-items: center; gap: 9px; }
.rv-star { font-size: 11px; color: var(--txt-3); width: 26px; flex: 0 0 auto; }
.rv-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(17,24,39,.09); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold-grad); }
.rv-cnt { font-size: 11px; color: var(--txt-3); width: 22px; text-align: right; flex: 0 0 auto; }

.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv-item { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rv-name { font-size: 13px; font-weight: 620; color: var(--txt-1); }
.rv-stars { display: inline-flex; gap: 2px; }
.rv-stars i { width: 11px; height: 11px; background: rgba(17,24,39,.18); clip-path(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.rv-stars i.is-on { background: var(--gold-2); }
.rv-time { font-size: 11px; color: var(--txt-3); flex: 0 0 auto; }
.rv-text { font-size: 13px; line-height: 1.72; color: var(--txt-2); margin-top: 9px; word-break: break-word; }
.rv-imgs { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.rv-imgs a { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.rv-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-reply {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--r-sm);
  background: rgba(224,180,76,.07); border-left: 2px solid rgba(224,180,76,.4);
  font-size: 12.5px; line-height: 1.65; color: var(--txt-2);
}
.rv-reply b { color: var(--gold-1); font-weight: 620; }

/* 底部动作条扩展 */
.action-bar-body { display: flex; align-items: center; gap: 10px; }
.ab-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--txt-2); font-size: 10.5px; flex: 0 0 auto; padding: 0 4px;
}
.ab-icon-btn svg { width: 21px; height: 21px; color: var(--gold-2); }
.ab-icon-btn:active { opacity: .7; }
.ab-main { flex: 1; margin-left: 2px; }

/* 陪玩师卡片（宽版，商品详情复用） */
.player-card--wide { padding: 13px; }
.player-head2 { display: flex; align-items: center; gap: 7px; }
.player-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rank-chip {
  font-size: 10.5px; padding: 1.5px 7px; border-radius: 5px;
  background: var(--info-soft); color: var(--info-txt); border: 1px solid rgba(43,127,224,.26);
}
.player-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.player-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gold-1); font-weight: 620; }
.player-rate svg { width: 12px; height: 12px; }
.player-rate em { font-style: normal; font-size: 11px; color: var(--txt-3); font-weight: 400; margin-left: 3px; }
.player-price { font-size: 11.5px; color: var(--txt-3); }
.player-price b { color: var(--gold-1); font-size: 14px; }

/* ============================================================
   订单列表
   ============================================================ */
.ord-switch {
  display: flex; gap: 6px; margin: 12px 14px 0; padding: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.os-item {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 620; color: var(--txt-3); transition: .18s;
}
.os-item.is-active { background: var(--gold-grad); color: #1A1206; box-shadow: var(--sh-gold); }
.os-item--lock { color: var(--txt-3); border: 1px dashed var(--line-2); }

.ord-stats {
  display: flex; align-items: center; gap: 8px; margin: 12px 14px 0;
  padding: 13px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.ostat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.ostat + .ostat::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--line); }
.ostat b { font-size: 19px; font-weight: 750; color: var(--txt-1); line-height: 1.15; }
.ostat b.c-warn { color: var(--warn); }
.ostat b.c-info { color: var(--info); }
.ostat b.c-gold { color: var(--gold-1); }
.ostat b.c-ok { color: var(--online); }
.ostat span { font-size: 10.5px; color: var(--txt-3); }

.ord-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ord-tabs::-webkit-scrollbar { display: none; }
.ord-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--muted-soft); border: 1px solid var(--line-2); color: var(--txt-2); white-space: nowrap;
}
.ord-tab.is-active { background: var(--gold-grad); color: #1A1206; border-color: transparent; }

.order-list { display: flex; flex-direction: column; gap: 11px; padding: 4px 14px 8px; }

.order-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line-2);
}
.order-foot-hint { font-size: 11.5px; color: var(--txt-3); }
.order-foot-btn {
  display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 640; color: var(--gold-1);
}
.order-amount { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.order-amount b { font-size: 16px; font-weight: 720; color: var(--price); }
.order-income { font-size: 10.5px; color: var(--online); }
.order-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(224,180,76,.35); background: var(--paper-2);
}
.order-no svg { width: 13px; height: 13px; vertical-align: -2px; }
.order-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); opacity: .6; }

.load-more {
  margin: 12px 14px 16px; padding: 12px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 13px; color: var(--txt-2); font-weight: 600;
}
.load-more:active { background: var(--paper-2); }
.load-more.is-loading .lm-text::after { content: ' …'; }
.load-more.is-loading { pointer-events: none; opacity: .7; }
.list-end { text-align: center; font-size: 11.5px; color: var(--txt-3); padding: 16px 14px 20px; }

/* ============================================================
   订单详情
   ============================================================ */
.dn-share--ghost { background: transparent; border-color: transparent; }

.od-status {
  margin: 12px 14px 0; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(224,180,76,.16), rgba(255,255,255,.75));
  border: 1px solid rgba(224,180,76,.2);
}
.od-status--warn { background: linear-gradient(135deg, var(--warn-soft), rgba(255,255,255,.75)); border-color: rgba(217,132,7,.24); }
.od-status--info { background: linear-gradient(135deg, var(--info-soft), rgba(255,255,255,.75)); border-color: rgba(43,127,224,.24); }
.od-status--success, .od-status--ok { background: linear-gradient(135deg, var(--ok-soft), rgba(255,255,255,.75)); border-color: rgba(18,160,110,.24); }
.od-status--default, .od-status--muted { background: var(--muted-soft); border-color: var(--line); }
.od-status--red, .od-status--danger { background: var(--danger-soft); border-color: rgba(229,56,42,.22); }

.od-status-top { display: flex; align-items: center; gap: 13px; }
.od-status-ico { color: var(--gold-1); flex: 0 0 auto; }
.od-status--warn .od-status-ico { color: var(--warn); }
.od-status--info .od-status-ico { color: var(--info); }
.od-status--success .od-status-ico, .od-status--ok .od-status-ico { color: var(--online); }
.od-status--red .od-status-ico, .od-status--danger .od-status-ico { color: var(--danger-txt); }
.od-status-txt h2 { font-size: 17px; font-weight: 700; color: var(--txt-1); margin: 0; line-height: 1.3; }
.od-status-txt p { font-size: 12.5px; color: var(--txt-2); margin: 5px 0 0; line-height: 1.55; }
.od-countdown {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line-2);
  font-size: 12.5px; color: var(--txt-2);
}
.od-countdown b { color: var(--price); font-size: 15px; font-weight: 720; letter-spacing: .5px; }

.od-steps-wrap { margin: 12px 14px 0; padding: 15px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.order-steps { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.order-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 2; }
.order-step::before {
  content: ''; position: absolute; top: 12px; left: 50%; right: -50%; height: 2px; background: var(--line-2); z-index: -1;
}
.order-step:last-child::before { display: none; }
.order-step.is-done::before, .order-step.is-active::before { background: rgba(224,180,76,.45); }
.order-step-dot {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: rgba(17,24,39,.07); color: var(--txt-3);
  border: 1.5px solid var(--line-2); flex: 0 0 auto;
}
.order-step-dot svg { width: 12px; height: 12px; }
.order-step.is-done .order-step-dot { background: var(--gold-grad); color: #1A1206; border-color: transparent; }
.order-step.is-active .order-step-dot {
  background: rgba(224,180,76,.14); color: var(--gold-1); border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(224,180,76,.1);
}
.order-step-name { font-size: 10.5px; color: var(--txt-3); text-align: center; white-space: nowrap; }
.order-step.is-done .order-step-name, .order-step.is-active .order-step-name { color: var(--gold-1); font-weight: 620; }

.od-block { margin: 12px 14px 0; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }

.od-goods { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.od-goods-cover { width: 62px; height: 62px; border-radius: var(--r-md); overflow: hidden; flex: 0 0 auto; background: var(--paper-2); }
.od-goods-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-goods-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(200,145,42,.45); }
.od-goods-info { flex: 1; min-width: 0; }
.od-goods-title { font-size: 14.5px; font-weight: 620; color: var(--txt-1); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.od-goods-meta { font-size: 11.5px; color: var(--txt-3); margin-top: 6px; }
.od-goods-price { font-size: 16px; font-weight: 720; color: var(--price); flex: 0 0 auto; }

.od-peer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; }
.od-peer-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.od-peer-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.od-peer-name { font-size: 13.5px; color: var(--txt-1); font-weight: 620; }
.od-peer-sub { font-size: 11px; color: var(--info); }
.od-peer-right { flex: 0 0 auto; }
.od-peer--wait { justify-content: flex-start; color: var(--txt-3); font-size: 12.5px; }
.od-wait-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(255,169,64,.5); animation: waitPulse 1.8s infinite;
}
@keyframes waitPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,169,64,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(255,169,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,169,64,0); }
}

.desc-list { display: flex; flex-direction: column; gap: 11px; }
.desc-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-size: 13px; }
.desc-item > span { color: var(--txt-3); flex: 0 0 auto; }
.desc-item > b { color: var(--txt-1); font-weight: 600; text-align: right; word-break: break-all; }
.desc-item > b.c-price { color: var(--price); font-size: 14px; }
.desc-item > b.c-online { color: var(--online); }
.desc-item > b.c-3 { color: var(--txt-3); font-weight: 500; }
.desc-copy { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-1) !important; cursor: pointer; }
.desc-copy svg { width: 12px; height: 12px; }

.timeline { display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 4px; }
.tl-item { position: relative; padding-left: 16px; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 0 3px rgba(224,180,76,.13);
}
.tl-item:not(:last-child)::after {
  content: ''; position: absolute; left: 3px; top: 15px; bottom: -14px; width: 1px; background: var(--line-2);
}
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-title { font-size: 13px; font-weight: 620; color: var(--txt-1); }
.tl-time { font-size: 11px; color: var(--txt-3); flex: 0 0 auto; }
.tl-desc { font-size: 12px; color: var(--txt-3); margin-top: 4px; line-height: 1.6; }

.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-item {
  width: 100%; text-align: left; padding: 11px 13px; border-radius: var(--r-md);
  background: var(--muted-soft); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--txt-2);
}
.reason-item.is-on { background: rgba(224,180,76,.1); border-color: rgba(224,180,76,.42); color: var(--gold-1); font-weight: 620; }

/* ============================================================
   钱包
   ============================================================ */
.wallet-card {
  margin: 12px 14px 0; padding: 18px 16px 16px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #FFF8E8 0%, #FDF3DF 45%, #FFFFFF 100%);
  border: 1px solid rgba(224,180,76,.24);
  box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.wallet-card::after {
  content: ''; position: absolute; right: -46px; top: -56px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,180,76,.28), transparent 68%);
}
.wallet-label { font-size: 12px; color: #8A6516; position: relative; z-index: 1; }
.wallet-balance {
  display: flex; align-items: baseline; gap: 2px; margin-top: 8px; position: relative; z-index: 1;
}
.wallet-balance .wb-sym { font-size: 19px; font-weight: 600; color: var(--gold-1); }
.wallet-balance .wb-num { font-size: 34px; font-weight: 780; color: #7A5210; letter-spacing: -.5px; line-height: 1.1; }
.wb-eye { margin-left: 9px; color: rgba(138,101,22,.65); align-self: center; }
.wallet-sub { display: flex; gap: 20px; margin-top: 14px; position: relative; z-index: 1; }
.wallet-sub-item { display: flex; flex-direction: column; gap: 2px; }
.wallet-sub-item span { font-size: 11px; color: rgba(17,24,39,.42); }
.wallet-sub-item b { font-size: 14px; color: var(--txt-1); font-weight: 650; }
.wallet-sub-item b.c-warn { color: var(--warn); }
.wallet-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.wa-btn { flex: 1; }

.stats-row { display: flex; gap: 10px; margin: 12px 14px 0; }
.stat-card {
  flex: 1; padding: 13px 10px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.stat-value { font-size: 16px; font-weight: 720; color: var(--txt-1); }
.stat-value.c-price { color: var(--price); }
.stat-value.c-gold { color: var(--gold-1); }
.stat-value.c-online { color: var(--online); }
.stat-label { font-size: 10.5px; color: var(--txt-3); }

.wallet-quick {
  display: flex; gap: 10px; margin: 12px 14px 0; padding: 15px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.wq-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--txt-2);
}
.wq-ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,180,76,.1); color: var(--gold-1); border: 1px solid rgba(224,180,76,.2);
}
.wq-item:active .wq-ico { background: rgba(224,180,76,.18); }

.db-more { font-size: 11.5px; color: var(--txt-3); display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }

.flow-list { display: flex; flex-direction: column; }
.flow-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.flow-item:last-child { border-bottom: 0; padding-bottom: 0; }
.flow-item:first-child { padding-top: 0; }
.flow-ico {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.06); color: var(--txt-2);
}
.flow-ico--green { background: var(--ok-soft); color: var(--online); }
.flow-ico--red { background: rgba(255,77,61,.12); color: var(--danger-txt); }
.flow-ico--gold { background: rgba(224,180,76,.13); color: var(--gold-1); }
.flow-ico--blue { background: var(--info-soft); color: var(--info); }
.flow-info { flex: 1; min-width: 0; }
.flow-title { font-size: 13.5px; color: var(--txt-1); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-meta { font-size: 11px; color: var(--txt-3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-amt { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; }
.flow-amt b { font-size: 14.5px; font-weight: 700; }
.flow-amt b.c-online { color: var(--online); }
.flow-amt b.c-price { color: var(--price); }
.flow-amt span { font-size: 10.5px; color: var(--txt-3); }

/* ============================================================
   充值 / 提现
   ============================================================ */
.rc-balance {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 14px 0; padding: 13px 15px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  font-size: 13px; color: var(--txt-3);
}
.rc-balance b { font-size: 17px; font-weight: 720; color: var(--gold-1); }

.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md);
  font-size: 12.5px; line-height: 1.6;
}
.alert svg { flex: 0 0 auto; margin-top: 1px; }
.alert b { display: block; font-size: 13px; margin-bottom: 3px; }
.alert p { margin: 0; color: inherit; opacity: .86; }
.alert--warn { background: var(--warn-soft); border: 1px solid rgba(217,132,7,.26); color: var(--warn-txt); }
.alert--info { background: var(--info-soft); border: 1px solid rgba(43,127,224,.26); color: var(--info-txt); }
.alert--danger { background: var(--danger-soft); border: 1px solid rgba(229,56,42,.26); color: var(--danger-txt); }

.amount-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line-2);
}
.amount-input:focus-within { border-color: rgba(224,180,76,.5); box-shadow: 0 0 0 3px rgba(224,180,76,.08); }
.ai-sym { font-size: 19px; font-weight: 650; color: var(--gold-1); }
.ai-field {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-size: 23px; font-weight: 720; color: var(--txt-1); font-family: inherit;
}
.ai-field::placeholder { color: var(--txt-3); font-weight: 400; }
.ai-field::-webkit-outer-spin-button, .ai-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ai-clear { color: var(--txt-3); padding: 2px; }

.amount-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 13px; }
.amount-preset {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 6px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line-2); transition: .18s;
}
.amount-preset b { font-size: 15px; font-weight: 700; color: var(--txt-1); }
.amount-preset em { font-size: 10.5px; font-style: normal; color: var(--online); }
.amount-preset.is-on { background: rgba(224,180,76,.11); border-color: rgba(224,180,76,.5); }
.amount-preset.is-on b { color: var(--gold-1); }
.amount-preset:active { transform: scale(.97); }

.rc-bonus-tip {
  display: flex; align-items: center; gap: 7px; margin-top: 13px; padding: 10px 12px;
  border-radius: var(--r-sm); background: rgba(18,160,110,.08); border: 1px solid rgba(18,160,110,.22);
  font-size: 12px; color: var(--ok-txt);
}
.rc-bonus-tip b { color: var(--online); }

.pay-options { display: flex; flex-direction: column; gap: 9px; }
.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line-2); transition: .18s;
}
.pay-option.is-on { background: rgba(224,180,76,.08); border-color: rgba(224,180,76,.46); }
.pay-option-icon {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.06);
}
.pay-option-body { flex: 1; min-width: 0; }
.pay-option-body b { font-size: 14px; font-weight: 620; color: var(--txt-1); }
.pay-radio {
  width: 19px; height: 19px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--line-2); position: relative;
}
.pay-option.is-on .pay-radio { border-color: var(--gold-2); }
.pay-option.is-on .pay-radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold-grad);
}

.action-bar-price-wrap { display: flex; flex-direction: column; gap: 1px; flex: 0 0 auto; }

/* 支付中弹层 */
.pay-sheet-body { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 26px 20px; }
.pay-wait-ico {
  width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(224,180,76,.16), transparent 70%); color: var(--gold-1);
  animation: payPulse 2.2s ease-in-out infinite;
}
@keyframes payPulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.07); opacity: 1; } }
.pay-wait-title { font-size: 14px; color: var(--txt-2); }
.pay-wait-amount { font-size: 27px; font-weight: 780; color: var(--price); }
.pay-wait-order { font-size: 11.5px; color: var(--txt-3); word-break: break-all; text-align: center; }
.pay-wait-status {
  display: flex; align-items: center; gap: 7px; margin-top: 6px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--muted-soft); border: 1px solid var(--line-2); font-size: 12px; color: var(--txt-2);
}
.pay-wait-status.is-ok { background: var(--ok-soft); border-color: rgba(32,201,151,.3); color: var(--online); }
.pw-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: 0 0 auto;
  animation: payPulse 1.4s ease-in-out infinite;
}

/* 提现 */
.wd-account-type { display: flex; gap: 9px; margin-bottom: 13px; }
.wd-type {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 6px; border-radius: var(--r-md); font-size: 12px; color: var(--txt-2);
  background: var(--paper-2); border: 1px solid var(--line-2);
}
.wd-type svg { width: 20px; height: 20px; color: var(--gold-2); }
.wd-type.is-on { background: rgba(224,180,76,.1); border-color: rgba(224,180,76,.48); color: var(--gold-1); }
.wd-fee-row { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 11px 13px;
  border-radius: var(--r-sm); background: var(--hover-soft); font-size: 12.5px; color: var(--txt-3); }
.wd-fee-row b { font-size: 15px; font-weight: 720; color: var(--price); }
.wd-fee-row.rcv b { color: var(--online); }

.wd-all-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.wd-all { font-size: 12.5px; color: var(--gold-1); font-weight: 620; padding: 2px 4px; }
.flow-amt span.c-green { color: var(--online); }
.flow-amt span.c-red { color: var(--danger-txt); }
.flow-amt span.c-gold { color: var(--gold-1); }

/* ============================================================
   评价页
   ============================================================ */
.rv-hero {
  display: flex; align-items: center; gap: 13px; margin: 12px 14px 0;
  padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.rv-hero-info { display: flex; flex-direction: column; gap: 4px; }
.rv-hero-name { font-size: 15.5px; font-weight: 680; color: var(--txt-1); }
.rv-hero-sub { font-size: 12px; color: var(--info); }

.rv-block {
  margin: 12px 14px 0; padding: 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.rv-block-title { font-size: 14px; font-weight: 660; color: var(--txt-1); margin-bottom: 13px; }
.rv-score-block { text-align: center; }
.rv-score-block .rv-block-title { text-align: left; }

.rv-stars-input { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rv-star-btn { color: rgba(17,24,39,.20); transition: .15s; padding: 2px; }
.rv-star-btn svg { width: 32px; height: 32px; }
.rv-star-btn.is-on { color: var(--gold-2); filter: drop-shadow(0 2px 8px rgba(224,180,76,.3)); }
.rv-star-btn:active { transform: scale(1.12); }
.rv-score-text { font-size: 14px; font-weight: 650; color: var(--gold-1); margin-top: 11px; }

.rv-score-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.rv-chip {
  padding: 6px 13px; border-radius: var(--r-pill); font-size: 12px;
  background: var(--muted-soft); border: 1px solid var(--line-2); color: var(--txt-2);
}
.rv-chip.is-on { background: rgba(224,180,76,.12); border-color: rgba(224,180,76,.45); color: var(--gold-1); font-weight: 620; }

.form-textarea {
  width: 100%; padding: 12px 13px; border-radius: var(--r-md); font-family: inherit;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--txt-1);
  font-size: 13.5px; line-height: 1.65; resize: vertical; outline: none; box-sizing: border-box;
}
.form-textarea:focus { border-color: rgba(224,180,76,.5); box-shadow: 0 0 0 3px rgba(224,180,76,.08); }
.form-textarea::placeholder { color: var(--txt-3); }
.form-counter { text-align: right; font-size: 11px; color: var(--txt-3); margin-top: 5px; }

.rv-upload-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.rv-upload-btn {
  width: 82px; height: 82px; border-radius: var(--r-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: var(--paper-2); border: 1px dashed var(--line-2); color: var(--txt-3); font-size: 10.5px;
}
.rv-upload-btn svg { width: 22px; height: 22px; color: var(--gold-2); }
.rv-upload-btn em { font-style: normal; font-size: 10px; opacity: .7; }
.rv-upload-item {
  width: 82px; height: 82px; border-radius: var(--r-md); overflow: hidden;
  position: relative; border: 1px solid var(--line-2); background: var(--paper-2);
}
.rv-upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-upload-item.is-loading { display: flex; align-items: center; justify-content: center; }
.rv-upload-loading {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(224,180,76,.25);
  border-top-color: var(--gold-2); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rv-upload-del {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.switch-row-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.switch-row-title { font-size: 13.5px; font-weight: 620; color: var(--txt-1); }
.switch-row-desc { font-size: 11.5px; color: var(--txt-3); }
.switch-box {
  width: 44px; height: 25px; border-radius: 13px; background: rgba(17,24,39,.18);
  position: relative; flex: 0 0 auto; transition: .2s; cursor: pointer;
}
.switch-box::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch-box.is-on { background: rgba(224,180,76,.55); }
.switch-box.is-on::after { transform: translateX(19px); }

.form-group { margin-bottom: 13px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 12.5px; color: var(--txt-2); margin-bottom: 7px; }
.form-label i { color: var(--price); font-style: normal; }
.form-input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-md); font-family: inherit; box-sizing: border-box;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--txt-1); font-size: 13.5px; outline: none;
}
.form-input:focus { border-color: rgba(224,180,76,.5); box-shadow: 0 0 0 3px rgba(224,180,76,.08); }
.form-input::placeholder { color: var(--txt-3); }
.form-hint { font-size: 11.5px; color: var(--txt-3); line-height: 1.6; }

/* ============================================================
   接单广场
   ============================================================ */
.pool-gate {
  margin: 14px; padding: 34px 22px; text-align: center;
  background: var(--paper); border: 1px solid rgba(224,180,76,.18); border-radius: var(--r-xl);
}
.pg-icon {
  width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(224,180,76,.16), transparent 72%); color: var(--gold-1);
}
.pg-title { font-size: 18px; font-weight: 700; color: var(--txt-1); margin: 0; }
.pg-desc { font-size: 13px; color: var(--txt-2); line-height: 1.75; margin: 11px 0 0; }
.pg-feats { display: flex; justify-content: center; gap: 22px; margin: 22px 0; }
.pg-feat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--txt-3); }
.pg-feat svg { width: 19px; height: 19px; color: var(--gold-2); }
.pg-btn { margin-top: 4px; }

.pool-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 14px 0; padding: 13px 15px;
  background: linear-gradient(120deg, rgba(18,160,110,.10), rgba(255,255,255,.75));
  border: 1px solid rgba(18,160,110,.22); border-radius: var(--r-lg);
}
.pool-status-left { display: flex; align-items: center; gap: 11px; }
.ps-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--txt-3);
}
.ps-dot.is-on {
  background: var(--online); box-shadow: 0 0 0 0 rgba(32,201,151,.5);
  animation: waitPulse 1.8s infinite;
}
.ps-title { font-size: 13.5px; font-weight: 650; color: var(--txt-1); }
.ps-desc { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }

.pool-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 2px; font-size: 12.5px; color: var(--txt-3);
}
.pool-head b { color: var(--gold-1); font-weight: 700; }
.pool-refresh {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--txt-2);
}
.pool-refresh svg { width: 14px; height: 14px; }

.pool-list { display: flex; flex-direction: column; gap: 11px; padding: 4px 14px 8px; }
.pool-card {
  padding: 13px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
}
.pool-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-grad);
}
.pool-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pool-no { font-size: 11px; color: var(--txt-3); display: inline-flex; align-items: center; gap: 4px; }
.pool-no svg { width: 12px; height: 12px; }
.pool-card-body { display: flex; gap: 11px; margin-top: 11px; }
.pool-cover { width: 54px; height: 54px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; background: var(--paper-2); }
.pool-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pool-info { flex: 1; min-width: 0; }
.pool-title { font-size: 14px; font-weight: 620; color: var(--txt-1); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pool-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--txt-3); margin-top: 6px; flex-wrap: wrap; }
.pool-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); opacity: .6; }
.pool-remark {
  display: flex; align-items: center; gap: 4px; margin-top: 7px; padding: 5px 8px;
  border-radius: 5px; background: rgba(43,127,224,.08); font-size: 11px; color: var(--info-txt);
}
.pool-remark svg { width: 11px; height: 11px; flex: 0 0 auto; }
.pool-amount { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pool-amount b { font-size: 17px; font-weight: 730; color: var(--price); }
.pool-amount span { font-size: 10.5px; color: var(--txt-3); }
.pool-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line-2);
}
.pool-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); min-width: 0; }
.pool-grab { flex: 0 0 auto; }

/* ============================================================
   横向筛选 chip（分类页 / 选人页 / 接单广场公用）
   ============================================================ */
.chip-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--muted-soft); border: 1px solid var(--line-2); color: var(--txt-2);
  transition: .18s;
}
.chip.is-active { background: var(--gold-grad); color: #1A1206; border-color: transparent; font-weight: 650; }
.chip .chip-ico { width: 14px; height: 14px; flex: 0 0 auto; }
.chip.is-active .chip-ico { color: #1A1206; }
.chip:active { transform: scale(.97); }

/* 图标默认尺寸兜底：任何裸 SVG 都不会撑爆布局 */
.chip svg, .chip-ico { width: 14px; height: 14px; }
.tag-ico, .mini-tag svg { width: 13px; height: 13px; }
.icon-text { font-size: 13px; line-height: 1; }

/* ============================================================
   首页 / 通用：搜索栏、区块、快捷入口、页脚
   ============================================================ */
.search-bar {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 14px 18px; padding: 10px 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.search-bar svg { width: 17px; height: 17px; color: var(--txt-3); flex: 0 0 auto; }
.search-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-size: 13.5px; color: var(--txt-1); font-family: inherit;
}
.search-input::placeholder { color: var(--txt-3); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,24,39,.09); color: var(--txt-3);
}
.search-clear svg { width: 13px; height: 13px; }
.search-submit {
  flex: 0 0 auto; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--gold-grad); color: #1A1206; font-size: 12.5px; font-weight: 650;
}
.search-bar--form { padding-right: 6px; }

.sort-bar {
  display: flex; align-items: center; gap: 16px; overflow-x: auto;
  padding: 13px 14px 2px; scrollbar-width: none; -ms-overflow-style: none;
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-item { flex: 0 0 auto; font-size: 13px; color: var(--txt-3); white-space: nowrap; }
.sort-item.is-active { color: var(--gold-1); font-weight: 680; position: relative; }
.sort-item.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 1px; background: var(--gold-grad);
}
.sort-count { font-size: 11.5px; color: var(--txt-3); margin-left: auto; flex: 0 0 auto; }

.section { margin-top: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 11px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--txt-1); display: flex; align-items: center; gap: 7px; }
.section-title::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--gold-grad); }
.section-more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--txt-3); }
.section-more svg { width: 13px; height: 13px; }
.title-flame { font-size: 13px; }

.quick-row {
  display: flex; gap: 8px; margin: 12px 14px 0; padding: 15px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quick-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--txt-2);
}
.quick-ico {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(224,180,76,.1); color: var(--gold-1); border: 1px solid rgba(224,180,76,.2);
}
.quick-ico svg { width: 20px; height: 20px; }
.quick-name { white-space: nowrap; }

.home-foot {
  margin-top: 22px; padding: 22px 20px calc(var(--tabbar-h) + 24px);
  text-align: center; border-top: 1px solid var(--line);
}
.foot-brand { font-size: 15px; font-weight: 700; color: var(--gold-1); margin-bottom: 7px; }
.foot-desc { font-size: 11.5px; color: var(--txt-3); line-height: 1.8; }
.foot-service { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 13px 0 0; font-size: 11.5px; color: var(--txt-3); }
.foot-service svg { width: 13px; height: 13px; vertical-align: -2px; }
.foot-copy, .foot-icp { font-size: 11px; color: var(--txt-3); margin-top: 9px; line-height: 1.7; }

.banner-caption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 3;
  font-size: 13px; font-weight: 650; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.banner-solid { background: linear-gradient(135deg, #F7F1E4, #EEF1F6); }

/* 商品列表补充 */
.goods-list--page { padding: 12px 14px 8px; }
.goods-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(200,145,42,.40); background: var(--placeholder-grad);
}
.goods-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.goods-buy {
  flex: 0 0 auto; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--gold-grad); color: #1A1206; font-size: 11.5px; font-weight: 650; white-space: nowrap;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.empty-state svg { width: 46px; height: 46px; color: var(--txt-3); }

/* ============================================================
   商品详情页补充（下单面板 / 相关推荐 / 公告）
   ============================================================ */
.detail-desc { font-size: 13px; line-height: 1.82; color: var(--txt-2); word-break: break-word; }

.os-title { font-size: 14.5px; font-weight: 660; color: var(--txt-1); margin-bottom: 13px; }
.os-goods { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.os-cover { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; background: var(--paper-2); }
.os-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-info { flex: 1; min-width: 0; }
.os-label { font-size: 11.5px; color: var(--txt-3); }
.os-price { font-size: 16px; font-weight: 720; color: var(--price); }

.oa-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.oa-row:last-of-type { border-bottom: 0; }
.oa-row--total { border-bottom: 0; border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 13px; }
.oa-label { font-size: 12.5px; color: var(--txt-3); }
.oa-total { font-size: 19px; font-weight: 750; color: var(--price); }
.oa-total i { font-size: 13px; font-style: normal; }
.os-balance { font-size: 12.5px; color: var(--txt-2); }
.os-balance b { color: var(--gold-1); }

.os-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.os-row:last-child { border-bottom: 0; }
.os-row--field { display: block; }
.os-row--textarea { display: block; }
.os-row .os-label { flex: 0 0 66px; font-size: 12.5px; color: var(--txt-2); }
.os-row .os-label.os-required::after { content: ' *'; color: var(--price); }
.os-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-size: 13.5px; color: var(--txt-1); font-family: inherit; text-align: right;
}
.os-input::placeholder { color: var(--txt-3); }
.os-textarea {
  width: 100%; margin-top: 8px; padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--txt-1);
  font-size: 13px; line-height: 1.65; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box;
}
.os-textarea::placeholder { color: var(--txt-3); }
.os-note { font-size: 11.5px; color: var(--txt-3); line-height: 1.65; margin-top: 9px; }
.os-amount { font-size: 14px; font-weight: 700; color: var(--price); }

.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.st-btn {
  width: 32px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--muted-soft); color: var(--txt-2);
}
.st-btn svg { width: 14px; height: 14px; }
.st-btn[disabled] { opacity: .35; }
.st-input {
  width: 46px; height: 30px; text-align: center; background: transparent; border: 0; outline: none;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  color: var(--txt-1); font-size: 13.5px; font-weight: 620; font-family: inherit;
  -moz-appearance: textfield;
}
.st-input::-webkit-outer-spin-button, .st-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.os-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--txt-3); line-height: 1.65; margin-top: 12px; }
.os-agree input { margin-top: 2px; accent-color: var(--gold-2); }

.action-bar--goods .action-bar-side {
  display: flex; align-items: center; gap: 16px; flex: 0 0 auto;
}
.ab-ico {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--txt-3); flex: 0 0 auto;
}
.ab-ico svg { width: 21px; height: 21px; color: var(--gold-2); }
.ab-label { font-size: 11.5px; color: var(--txt-3); }
.ab-price { font-size: 19px; font-weight: 750; color: var(--price); line-height: 1.25; }
.ab-price i { font-size: 12.5px; font-style: normal; }
.action-bar-btn { flex: 1; }

.notice-list { display: flex; flex-direction: column; }
.nl-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--txt-2); }
.nl-item:last-child { border-bottom: 0; }
.nl-item svg { width: 14px; height: 14px; color: var(--gold-2); flex: 0 0 auto; }

.rel-list { display: flex; flex-direction: column; gap: 11px; }
.rel-item { display: flex; align-items: center; gap: 11px; }
.rel-cover { width: 54px; height: 54px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; background: var(--paper-2); }
.rel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-body { flex: 1; min-width: 0; }
.rel-title { font-size: 13.5px; font-weight: 600; color: var(--txt-1); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-price { font-size: 14.5px; font-weight: 700; color: var(--price); flex: 0 0 auto; }

.topbar--home { border-bottom-color: transparent; }

/* ============================================================
   选人卡片修正 v2（内联标签 / 头像定位 / 底部对齐）
   ============================================================ */
.player-card { align-items: flex-start; }
.player-link { align-items: flex-start; }

/* 头像容器固定尺寸，online-dot 紧贴右下 */
.player-head {
  width: 52px; height: 52px; position: relative; flex: 0 0 52px;
  padding: 0;
}
.player-head .avatar.player-avatar { width: 52px; height: 52px; display: block; }
.player-head .online-dot { right: 0; bottom: 0; z-index: 3; }

/* 段位行：内联自适应，不撑满整行 */
.player-rank {
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; max-width: 100%;
  align-self: flex-start;
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; line-height: 1.5;
  background: var(--info-soft); color: var(--info-txt);
}
.player-rank svg { width: 13px; height: 13px; flex: 0 0 auto; }
.player-rank span { white-space: nowrap; }
.player-rank .c-gold, .player-rank span.c-gold { color: var(--gold-1); font-weight: 650; }
.player-rank .c-3, .player-rank span.c-3 { color: var(--txt-3); }

.player-body { gap: 6px; }

/* 数据行：不换行，等分对齐 */
.player-stats {
  display: flex; align-items: stretch; gap: 0; margin-top: 3px;
  padding-top: 9px; border-top: 1px dashed var(--line-2);
}
.player-stat {
  flex: 1; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 0 8px; position: relative; min-width: 0;
}
.player-stat:first-child { padding-left: 0; }
.player-stat + .player-stat::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--line);
}
.player-stat b { font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.player-stat span { font-size: 10.5px; color: var(--txt-3); white-space: nowrap; }

/* 右侧操作列居中，与卡片等高 */
.player-action {
  justify-content: center; align-self: stretch;
  padding-left: 11px; border-left: 1px solid var(--line);
}
.player-action .btn { width: 84px; padding: 7px 10px; }

/* 排序栏：允许横向滚动，不挤压 */
.sort-bar { gap: 18px; padding-right: 14px; }

/* 选人卡片：头像垂直居中，消除下方留白 */
.player-link .player-head { align-self: center; }
.player-head .online-dot {
  right: -1px; bottom: -1px; width: 12px; height: 12px; border-width: 2px;
}

/* 陪玩师主页：头图占位更明显 + 无 tabbar 时底部留白 */
.pp-hero-bg--ph {
  background:
    radial-gradient(circle at 22% 28%, rgba(224,180,76,.22), transparent 52%),
    radial-gradient(circle at 78% 72%, var(--info-soft), transparent 50%),
    linear-gradient(135deg, #F2F5FA 0%, #F8F2E6 55%, #EEF2F8 100%);
}
.player-page { padding-bottom: 96px; }

/* 页面底部留白（含 tabbar 的页面自动让位） */
.page--flat { padding-bottom: 0; }
.action-bar { z-index: 90; }

/* ============================================================
   聊天增强（在线点 / 订单条 / 加载态）
   ============================================================ */
.dot-online {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--online);
  box-shadow: 0 0 0 2px rgba(18,160,110,.22);
}

.chat-order-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px;
  background: rgba(224,180,76,.07);
  border-bottom: 1px solid rgba(224,180,76,.16);
  color: var(--txt-2);
}
.chat-order-bar .co-title { font-weight: 600; color: var(--gold-1); }
.chat-order-bar .co-no { color: var(--txt-3); font-size: 11px; }
.chat-order-bar .co-link {
  margin-left: auto; color: var(--gold-1); font-weight: 600; font-size: 12px;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(224,180,76,.3);
}

.chat-loading { padding: 34px 0; text-align: center; color: var(--txt-3); font-size: 12.5px; }
.chat-empty { display: flex; flex-direction: column; }

/* 会话列表页容器 */
.chat-list-page .session-list {
  background: var(--paper); margin: 12px 14px; border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.chat-list-page .session-item:last-child { border-bottom: 0; }

/* ============================================================
   入驻申请
   ============================================================ */
.apply-page .container { padding-bottom: 26px; }

.ap-hero { padding: 22px 4px 18px; }
.ap-hero-title { font-size: 21px; font-weight: 720; letter-spacing: .2px; }
.ap-hero-desc { font-size: 12.5px; color: var(--txt-3); margin-top: 7px; }

.ap-cards { display: flex; flex-direction: column; gap: 12px; }
.ap-pick {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 15px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: .18s;
}
.ap-pick:active { transform: scale(.985); border-color: rgba(224,180,76,.3); }
.ap-pick.is-disabled { opacity: .5; }
.ap-pick > svg { color: var(--txt-4); flex: 0 0 auto; }
.ap-pick-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.ap-pick-ico--gold { background: rgba(224,180,76,.13); color: var(--gold-1); border: 1px solid rgba(224,180,76,.24); }
.ap-pick-ico--blue { background: var(--info-soft); color: var(--info-txt); border: 1px solid rgba(43,127,224,.24); }
.ap-pick-ico--pink { background: rgba(233,92,160,.12); color: #D6417F; border: 1px solid rgba(233,92,160,.26); }

/* 表单里的方向提示条 */
.ap-kind-tip {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; margin-bottom: 16px; border-radius: var(--r-md);
  font-size: 12.5px;
}
.ap-kind-tip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.ap-kind-tip b { font-weight: 700; }
.ap-kind-tip--gold { background: rgba(224,180,76,.12); color: var(--gold-1); border: 1px solid rgba(224,180,76,.24); }
.ap-kind-tip--pink { background: rgba(233,92,160,.1); color: #C93A79; border: 1px solid rgba(233,92,160,.22); }
.ap-pick-body { flex: 1; min-width: 0; }
.ap-pick-title { font-size: 15px; font-weight: 660; display: flex; align-items: center; gap: 7px; }
.ap-pick-desc { font-size: 12px; color: var(--txt-3); margin-top: 5px; line-height: 1.55; }
.ap-pick-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.mini-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--muted-soft); color: var(--txt-3);
  border: 1px solid var(--line);
}
.mini-tag--gold { background: rgba(224,180,76,.1); color: var(--gold-1); border-color: rgba(224,180,76,.22); }

/* 选项 chips */
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--txt-2);
  background: var(--paper-2); border: 1px solid var(--line-2);
  transition: .16s;
}
.ap-chip.is-on {
  background: var(--gold-soft); color: var(--gold-1);
  border-color: rgba(224,180,76,.5); font-weight: 600;
}

/* 审核中 */
.ap-pending {
  margin-top: 30px; text-align: center; padding: 30px 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ap-pending-ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,176,32,.1); color: var(--warn);
  border: 1px solid rgba(255,176,32,.24);
}
.ap-pending-title { font-size: 17px; font-weight: 680; }
.ap-pending-desc { font-size: 12.5px; color: var(--txt-3); margin-top: 10px; line-height: 1.7; }
.ap-pending-meta { font-size: 11.5px; color: var(--txt-4); margin-top: 14px; }

/* 申请历史 */
.ap-hist {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 10px;
}
.ap-hist-item { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.ap-hist-item:last-child { border-bottom: 0; }
.ap-hist-head { display: flex; align-items: center; gap: 9px; }
.ap-hist-type { font-size: 13.5px; font-weight: 620; }
.ap-hist-time { margin-left: auto; font-size: 11.5px; color: var(--txt-4); }
.ap-hist-note {
  font-size: 12px; color: var(--txt-3); margin-top: 8px;
  display: flex; align-items: flex-start; gap: 5px; line-height: 1.55;
}

.form-label .req { color: var(--price); font-style: normal; margin-left: 2px; }
.form-label .opt { color: var(--txt-4); font-weight: 400; font-size: 11.5px; }

/* ============================================================
   资金明细页 balance_logs.php
   ============================================================ */
.bl-summary {
  margin: 12px 14px 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 15px 16px;
  display: flex; align-items: stretch; gap: 14px;
}
.bl-sum-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.bl-sum-main > span { font-size: 11.5px; color: var(--txt-3); }
.bl-sum-main > b {
  font-size: 25px; font-weight: 760; letter-spacing: -.4px; margin-top: 3px;
  font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bl-sum-main > em {
  font-style: normal; font-size: 11px; color: var(--warn); margin-top: 4px;
}
.bl-sum-side {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding-left: 14px; border-left: 1px dashed var(--line-2);
}
.bl-sum-item { text-align: right; }
.bl-sum-item b { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-sum-item span { font-size: 10.5px; color: var(--txt-4); }

/* 类型筛选横向滚动 */
.bl-tabs {
  display: flex; gap: 7px; overflow-x: auto; padding: 12px 14px 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tab {
  flex: 0 0 auto; padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; color: var(--txt-2); background: var(--paper-2);
  border: 1px solid var(--line); transition: .16s; white-space: nowrap;
}
.bl-tab.is-active {
  color: #3A2D0C; font-weight: 640;
  background: var(--gold-grad); border-color: transparent;
  box-shadow: 0 3px 10px rgba(224,180,76,.22);
}

.bl-list {
  margin: 10px 14px 0; padding: 14px 15px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.balance-logs-page .load-more { margin: 12px 14px 0; }
.balance-logs-page .list-end { padding-bottom: 26px; }

/* ============================================================
   桌面端（PC）适配
   ------------------------------------------------------------
   手机端保持原样（<= 720px 不做任何改动）；
   宽屏下把「整屏铺开的手机版式」收敛为居中卡片，
   并把单列列表 / 横滑条改成多列网格，避免元素被拉得过宽。
   ============================================================ */
@media (min-width: 721px) {

  /* ---------- 页面容器：居中 + 限宽 ---------- */
  body { background: var(--ink-1); }

  .page {
    max-width: 1040px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(17,24,39,.05), 0 12px 44px rgba(17,24,39,.07);
    background:
      radial-gradient(680px 380px at 8% -4%, rgba(224,180,76,.16), transparent 62%),
      radial-gradient(520px 320px at 96% 2%, rgba(200,145,42,.12), transparent 58%),
      var(--ink-1);
  }
  /* 聊天页固定高度，桌面下同样限宽 */
  .page--chat { max-width: 1040px; height: 100vh; height: 100dvh; }

  /* 顶部栏跟随容器宽度居中 */
  .topbar { max-width: 1040px; margin: 0 auto; }
  .topbar--home { max-width: none; }

  /* ---------- 底部导航：固定在居中容器内 ---------- */
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 100%; max-width: 1040px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .tabbar-item { font-size: 11.5px; }

  /* ---------- 首页：轮播 + 四宫格 + 商品网格 ---------- */
  .cc-banner { max-width: 1040px; margin: 16px auto 18px; padding: 0 18px; }
  .cc-banner__scroll { gap: 14px; padding: 0; scroll-snap-type: none; }
  .cc-banner__item { flex: 0 0 100%; height: 210px; }
  .cc-banner__item img { border-radius: var(--r-lg); }

  .cc-quick {
    max-width: 1040px; margin-left: auto; margin-right: auto;
    padding-left: 18px; padding-right: 18px;
  }
  .cc-tabs {
    max-width: 1040px; margin-left: auto; margin-right: auto;
    padding-left: 18px; padding-right: 18px;
  }

  /* 分类区：标题左右留白，商品横滑改网格 */
  .cc-sec { max-width: 1040px; margin-left: auto; margin-right: auto; padding: 0 18px; }
  .cc-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 0;
  }
  .cc-card { flex: initial; width: auto; min-width: 0; }
  /* 网格里取消「查看全部」占位卡片的横向样式 */
  .cc-card--more { min-height: 168px; }
  /* 覆盖 h5home.css 的 1/1（后者在本文件之后加载，需提高优先级） */
  .cc-sec .cc-scroll .cc-card .cc-card__cover { aspect-ratio: 16 / 11; }

  /* 优选陪玩师网格化（取消 31% 固定宽，交给网格列宽） */
  .cc-sec .cc-scroll .cc-player {
    flex: initial; max-width: none; width: auto; min-width: 0;
    flex-direction: row; align-items: center; gap: 11px; padding: 12px 14px;
  }
  .cc-sec .cc-scroll .cc-player__head { flex: none; }
  .cc-sec .cc-scroll .cc-player__name { text-align: left; }
  .cc-sec .cc-scroll .cc-player__foot { margin-left: auto; flex: none; }
  /* 优选陪玩师区块用更宽松的列宽 */
  .cc-sec .cc-scroll:has(.cc-player) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

  /* ---------- 我的订单：状态卡扩为一行 ---------- */
  .ord-stats { max-width: 1040px; margin-left: auto; margin-right: auto; }

  /* ---------- 陪玩师主页 / 商品详情：居中限宽 ---------- */
  .pp-card, .detail-block, .goods-detail, .goods-hero { max-width: 1040px; margin-left: auto; margin-right: auto; }
  .pp-hero { max-width: 1040px; margin: 0 auto; }
  .action-bar { left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: 1040px;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

  /* 详情页导航居中 */
  .detail-nav { max-width: 1040px; margin-left: auto; margin-right: auto; }

  /* ---------- 个人中心：分组两列 ---------- */
  .profile-card, .profile-group { max-width: 1040px; margin-left: auto; margin-right: auto; }

  /* ---------- 表单页：限宽，避免输入框过宽 ---------- */
  .container { max-width: 1040px; margin: 0 auto; }
  .setting-page .container, .apply-page .container, .player-goods-page .container,
  .orders-page .container, .wallet-page .container {
    max-width: 760px;
    margin-left: auto; margin-right: auto;
  }

  /* ---------- 选人页：网格化 ---------- */
  .player-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
}

/* 超宽屏（>= 1280px）：容器再放宽一点，信息密度更高 */
@media (min-width: 1280px) {
  .page, .topbar, .tabbar, .action-bar { max-width: 1200px; }
  .cc-banner, .cc-quick, .cc-tabs, .cc-sec, .profile-card, .profile-group { max-width: 1200px; }
  .cc-scroll { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ============================================================
   商品卡片 · 发布者身份标签（陪玩 / 代打）
   ------------------------------------------------------------
   身份标签占左上角，原「保底」角标让位到右上角。
   选择器带 .cc-card__cover 前缀以确保覆盖 h5home.css 的同名规则。
   ============================================================ */
.cc-card__cover .cc-card__role {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  padding: 2px 7px; border-radius: 5px;
  font-size: 10px; font-weight: 700; line-height: 1.5;
  letter-spacing: .3px; white-space: nowrap;
  color: #fff;
}
.cc-card__cover .cc-card__role--pei {
  background: linear-gradient(135deg, #FF7BA9, #E5457E);
  box-shadow: 0 3px 10px rgba(229, 69, 126, .38);
}
.cc-card__cover .cc-card__role--dai {
  background: linear-gradient(135deg, #5BA8FF, #2C74D8);
  box-shadow: 0 3px 10px rgba(44, 116, 216, .38);
}
/* 有身份标签时，保底角标移到右上角避让。
   注意：卡片宽度只有 ~114px，两个标签必须严格分列两侧，
   否则长文案（如「保底3000w」）会与身份标签叠在一起（看起来像多余的白字）。
   同时支持 :has() 与 JS 添加的 .has-role（兼容不支持 :has 的旧内核）。 */
.cc-card__cover:has(.cc-card__role) .cc-card__badge,
.cc-card__cover.has-role .cc-card__badge {
  left: auto; right: 6px;
  /* 给左侧身份标签预留空间：卡片宽度 - 左标签宽 - 左右间距 - 间隙 */
  max-width: calc(100% - 52px);
  padding-left: 5px; padding-right: 5px;
  font-size: 9.5px; letter-spacing: 0;
}
/* 身份标签本身也要限宽，避免过长时挤压 badge */
.cc-card__cover .cc-card__role {
  max-width: calc(100% - 56px);
  overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 分类页卡片 · 发布者身份标签（陪玩 / 代打） ---------- */
.goods-cover .goods-role {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 2px 7px; border-radius: var(--r-md) 0 var(--r-sm) 0;
  font-size: 10px; font-weight: 700; line-height: 1.5;
  letter-spacing: .3px; white-space: nowrap; color: #fff;
}
.goods-cover .goods-role--pei {
  background: linear-gradient(135deg, #FF7BA9, #E5457E);
}
.goods-cover .goods-role--dai {
  background: linear-gradient(135deg, #5BA8FF, #2C74D8);
}
/* 已售角标改为右上角细节标签；有身份标签时自动避开 */
.goods-cover .goods-sales {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  padding: 2px 6px; border-radius: var(--r-sm) 0 var(--r-md) 0;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 9.5px; line-height: 1.5;
  backdrop-filter: blur(2px);
}
.goods-cover .goods-sales--shift { bottom: auto; top: 0; border-radius: 0 var(--r-md) 0 var(--r-sm); }
