/* ==================== 用户中心（订单/预约/收藏/优惠券/通知/客服） ==================== */

/* 老师详情页操作条：收藏 / 预约 */
.ci-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.ci-act {
    flex: 1; padding: 10px 0; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--c-surface); font-size: 13px; font-weight: 700; color: var(--gray-2); cursor: pointer;
    transition: transform .12s;
}
.ci-act:active { transform: scale(.97); }
.ci-act.on { border-color: var(--s-amber-400); color: var(--s-amber-600); background: var(--s-amber-50); }
.ci-act.primary {
    border: none; background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface);
}

/* 我的页：服务中心入口九宫格 */
.uc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.uc-entry {
    position: relative; background: var(--c-surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 15px 8px 13px; text-align: center; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.uc-entry:active { transform: scale(.97); }
.uc-entry:hover { box-shadow: 0 8px 20px rgba(15, 23, 42, .08); border-color: var(--v-200); }
.uc-entry-ico {
    width: 46px; height: 46px; margin: 0 auto; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 23px; line-height: 1;
    background: linear-gradient(135deg, var(--v-50), var(--v-100));
}
.uc-entry:nth-child(1) .uc-entry-ico { background: linear-gradient(135deg, var(--s-indigo-50), var(--s-indigo-100)); }
.uc-entry:nth-child(2) .uc-entry-ico { background: linear-gradient(135deg, var(--brand-purple-soft), var(--v-100)); }
.uc-entry:nth-child(3) .uc-entry-ico { background: linear-gradient(135deg, var(--s-amber-50), var(--s-amber-100)); }
.uc-entry:nth-child(4) .uc-entry-ico { background: linear-gradient(135deg, var(--s-red-50), var(--s-red-100)); }
.uc-entry:nth-child(5) .uc-entry-ico { background: linear-gradient(135deg, #f0f9ff, var(--s-sky-100)); }
.uc-entry:nth-child(6) .uc-entry-ico { background: linear-gradient(135deg, var(--v-25), var(--v-25)); }
.uc-entry b { display: block; font-size: 13px; margin-top: 9px; color: var(--gray-1); }
.uc-entry p { font-size: 11px; color: var(--gray-3); margin-top: 3px; line-height: 1.4; }
.uc-badge {
    position: absolute; top: 8px; right: 10px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--s-red-500); color: var(--c-surface); border-radius: 8px; font-size: 10px; font-style: normal;
    line-height: 16px; font-weight: 700;
}

/* Tab 栏 */
.uc-tabs {
    display: flex; gap: 4px; padding: 8px 12px; background: var(--c-surface);
    border-bottom: 1px solid var(--line); overflow-x: auto;
}
.uc-tabs button {
    position: relative; flex: 0 0 auto; padding: 7px 14px; border: none; background: #f4f5f9;
    border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--gray-2); cursor: pointer;
}
.uc-tabs button.active {
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface);
}
.uc-dot {
    position: absolute; top: 4px; right: 6px; width: 7px; height: 7px;
    background: var(--s-red-500); border-radius: 50%;
}

/* 通用块 */
.uc-loading, .uc-empty {
    padding: 48px 20px; text-align: center; color: var(--gray-3); font-size: 13px; line-height: 1.8;
}
.uc-empty.small { padding: 22px 12px; font-size: 12px; }
.uc-empty-sub { font-size: 11px; color: var(--gray-3); }
.uc-block-title {
    font-size: 12px; font-weight: 800; color: var(--gray-2); margin: 16px 2px 8px;
}
.uc-tip {
    margin: 10px 12px 0; padding: 8px 10px; background: var(--s-amber-50); border: 1px solid var(--s-amber-200);
    border-radius: 10px; font-size: 12px; color: var(--s-amber-800);
}
.uc-list { display: flex; flex-direction: column; gap: 10px; }

/* 汇总条 */
.uc-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.uc-summary > div {
    background: linear-gradient(135deg, var(--v-50), var(--v-100)); border-radius: 12px;
    padding: 12px 6px; text-align: center;
}
.uc-summary b { display: block; font-size: 17px; color: var(--v-700); }
.uc-summary span { font-size: 11px; color: #7c6bb0; }

/* 卡片 */
.uc-card {
    background: var(--c-surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.ucc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ucc-kind {
    font-size: 11px; font-weight: 700; color: #6d5efc; background: #f1eeff;
    padding: 3px 8px; border-radius: 8px;
}
.ucc-status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.ucc-status.ok { color: var(--s-emerald-600); background: var(--brand-purple-soft); }
.ucc-status.warn { color: var(--s-amber-600); background: var(--s-amber-50); }
.ucc-status.gray { color: var(--n-500); background: var(--n-100); }
.ucc-title { font-size: 14px; font-weight: 700; color: var(--gray-1); line-height: 1.4; }
.ucc-inline { font-size: 11px; font-weight: 500; color: var(--gray-3); margin-left: 4px; }
.ucc-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: var(--gray-3); margin-top: 6px;
}
.ucc-note {
    margin-top: 8px; padding: 8px 10px; background: var(--n-50); border-radius: 8px;
    font-size: 12px; color: var(--gray-2); line-height: 1.6;
}
.ucc-note.staff { background: var(--v-25); color: var(--s-green-800); }
.ucc-foot {
    display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.ucc-foot b { font-size: 15px; color: var(--brand-rose); }
.ucc-btn {
    padding: 6px 14px; border: none; border-radius: 16px; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface); cursor: pointer;
}
.ucc-btn.ghost { background: var(--n-100); color: var(--gray-2); }
.ucc-btn:active { transform: scale(.95); }
.ucc-btn:disabled { opacity: .55; cursor: not-allowed; }

/* 待支付订单（可继续支付 / 取消） */
.uc-pending { margin-bottom: 14px; }
.uc-pending-head {
    font-size: 12px; font-weight: 700; color: var(--s-amber-700); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.uc-pending-head span {
    font-size: 10.5px; font-weight: 800; background: var(--s-amber-100); color: var(--s-amber-700);
    border-radius: 999px; padding: 1px 8px;
}
.uc-card-pending {
    border: 1.5px solid var(--s-amber-200); background: linear-gradient(135deg, var(--s-amber-50), #fffdf7);
}
.ucc-status.warn { background: var(--s-amber-100); color: var(--s-amber-700); }
.ucc-actions { display: flex; gap: 8px; }

/* 收藏卡 */
.fav-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.fav-avatar {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: var(--v-50);
    display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden;
}
.fav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fav-main { flex: 1; min-width: 0; }
.fav-name { font-size: 14px; font-weight: 700; color: var(--gray-1); }
.fav-desc {
    font-size: 11px; color: var(--gray-3); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fav-meta { font-size: 11px; color: var(--brand-rose); margin-top: 4px; }

/* 通知未读 */
.uc-card.notif.unread { border-color: var(--v-200); background: var(--v-25); }
.uc-card.notif.unread .ucc-title::before {
    content: ''; display: inline-block; width: 6px; height: 6px; background: var(--s-red-500);
    border-radius: 50%; margin-right: 6px; vertical-align: middle;
}

/* 优惠券（票券式：左侧色块存根 + 缺口 + 虚线分隔） */
.coupon-card {
  --stub: 88px; position: relative; display: flex; align-items: stretch;
  border-radius: 16px; overflow: hidden; background: var(--c-surface);
  box-shadow: 0 6px 18px rgba(225,29,72,.10); margin-bottom: 12px;
  -webkit-mask:
    radial-gradient(circle 7px at var(--stub) 0, #0000 7px, #000 7.5px) top / 100% 50.6% no-repeat,
    radial-gradient(circle 7px at var(--stub) 100%, #0000 7px, #000 7.5px) bottom / 100% 50.6% no-repeat;
          mask:
    radial-gradient(circle 7px at var(--stub) 0, #0000 7px, #000 7.5px) top / 100% 50.6% no-repeat,
    radial-gradient(circle 7px at var(--stub) 100%, #0000 7px, #000 7.5px) bottom / 100% 50.6% no-repeat;
}
.coupon-card:active { transform: scale(.99); }
.cc-stub {
  flex: 0 0 var(--stub); background: linear-gradient(135deg, #ff8a8a, var(--brand-rose)); color: var(--c-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 12px 4px; border-right: 2px dashed rgba(255,255,255,.6);
}
.cc-amt { display: flex; align-items: baseline; font-weight: 900; line-height: 1; color: var(--c-surface); }
.cc-amt b { font-size: 30px; }
.cc-cur { font-size: 15px; margin-right: 1px; }
.cc-unit { font-size: 15px; margin-left: 1px; }
.cc-cond { font-size: 10px; opacity: .92; text-align: center; }
.cc-body { flex: 1; min-width: 0; padding: 13px 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-info { min-width: 0; }
.cc-name { font-size: 14.5px; font-weight: 800; color: var(--n-800); line-height: 1.3; }
.cc-scope { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 700; color: var(--brand-rose); background: #fff1f3; border-radius: 6px; padding: 2px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-state { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cc-state.unused { color: var(--brand-rose); background: #fff1f3; }
.cc-state.used, .cc-state.expired { color: var(--n-500); background: var(--n-100); }
.cc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-valid { font-size: 11px; color: var(--n-400); }
.cc-valid.soon { color: var(--s-red-600); font-weight: 700; }
.cc-btn {
  flex: 0 0 auto; padding: 7px 16px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ff8a8a, var(--brand-rose)); color: var(--c-surface); font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(225,29,72,.28); transition: transform .15s ease;
}
.cc-btn:active { transform: scale(.95); }
.cc-btn.disabled { background: var(--n-200); color: var(--n-400); box-shadow: none; }

/* 表单 */
.uc-form { display: flex; flex-direction: column; gap: 10px; }
.uc-input {
    width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box; background: var(--c-surface);
}
.uc-input:focus { border-color: var(--brand-5); }
textarea.uc-input { resize: vertical; line-height: 1.6; }

/* 预约弹层 */
.uc-booking-body { max-height: 62vh; overflow-y: auto; padding: 4px 2px; }
.book-staff { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bs-avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--v-50);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    overflow: hidden;
}
.bs-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: inherit; }
.book-staff b { font-size: 15px; }
.book-staff p { font-size: 11px; color: var(--gray-3); margin-top: 3px; }
.book-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.book-day {
    position: relative; flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--c-surface); font-size: 12px; color: var(--gray-2); cursor: pointer;
}
.book-day.active { border-color: var(--v-600); color: var(--v-600); background: var(--v-50); font-weight: 700; }
.book-day.empty { opacity: .45; }
.book-day i {
    display: block; width: 5px; height: 5px; background: var(--brand-3); border-radius: 50%;
    margin: 3px auto 0;
}
.book-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.book-slot {
    padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--c-surface);
    font-size: 12px; color: var(--gray-1); cursor: pointer;
}
.book-slot.active { border-color: var(--v-600); background: var(--v-50); color: var(--v-600); font-weight: 700; }
.book-modes, .book-modes { display: flex; gap: 8px; }
.book-mode {
    flex: 1; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--c-surface); font-size: 12px; color: var(--gray-2); cursor: pointer;
}
.book-mode.active { border-color: var(--v-600); background: var(--v-50); color: var(--v-600); font-weight: 700; }
.book-tip { margin-top: 8px; font-size: 11px; color: var(--gray-3); text-align: center; }

@media (max-width: 360px) {
    .uc-grid { grid-template-columns: repeat(2, 1fr); }
    .uc-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .uc-group-grid { grid-template-columns: repeat(3, 1fr); }
    .book-slots { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== 「我的」页 Premium 重排 ==================== */

/* 四列服务宫格 */
.uc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.uc-grid-4 .uc-entry { padding: 13px 4px 11px; border-radius: 16px; border: 1px solid rgba(15,23,42,.05); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.uc-grid-4 .uc-entry-ico { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
.uc-grid-4 .uc-entry b { font-size: 12px; margin-top: 8px; }
.uc-grid-4 .uc-entry p { display: none; }

/* 我的服务 · 分组（交易与资产 / 学习与成长 / 服务与支持） */
.uc-groups { display: flex; flex-direction: column; gap: 18px; margin-bottom: 6px; }
.uc-group-h {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 800; color: var(--gray-1); margin-bottom: 10px;
}
.uc-group-ico { font-size: 15px; line-height: 1; }
.uc-group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.uc-group-grid .uc-entry { padding: 13px 4px 11px; border-radius: 16px; border: 1px solid rgba(15,23,42,.05); box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.uc-group-grid .uc-entry-ico { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
.uc-group-grid .uc-entry b { font-size: 12px; margin-top: 8px; }
.uc-group-grid .uc-entry p { display: none; }

/* 我的学习：已购课程 + 学习进度（横向滑动卡片） */
.my-learning-wrap { margin-bottom: 6px; }
.ml-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ml-head b { font-size: 15px; font-weight: 800; color: var(--gray-1); }
.ml-more { border: none; background: none; font-size: 12px; color: var(--v-600); font-weight: 700; cursor: pointer; padding: 0; }
.ml-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ml-list::-webkit-scrollbar { display: none; }
.ml-card {
    flex: 0 0 148px; background: var(--c-surface); border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.ml-card:active { transform: scale(.98); }
.ml-cover {
    height: 74px; display: flex; align-items: center; justify-content: center; font-size: 30px;
    background: linear-gradient(135deg, var(--brand-purple-soft), var(--v-100)); color: var(--brand-2);
}
.ml-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 7px; }
.ml-name {
    font-size: 13px; font-weight: 700; color: var(--gray-1); line-height: 1.4; height: 36px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ml-progress { height: 5px; border-radius: 999px; background: var(--n-100); overflow: hidden; }
.ml-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); }
.ml-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--gray-3); }
.ml-go { color: var(--v-600); font-weight: 700; }

/* 头卡（渐变保留 · 更克制的阴影与圆角） */
.profile-card { border-radius: 20px; }

/* 资产行：积分 / 心启币 / 优惠券 / 倾听时长 */
.profile-assets {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px;
}

/* 咨询倾听权益（我的页独立成区，参考壹心理/壹点灵「我的权益」） */
.profile-rights { margin: 4px 0 12px; }
.rights-loading { font-size: 12px; color: var(--n-400); padding: 14px; text-align: center; }
.rights-card { background: var(--c-surface); border-radius: 18px; padding: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.rights-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rights-ico { font-size: 20px; }
.rights-ht { display: flex; flex-direction: column; }
.rights-ht b { font-size: 15px; color: var(--n-800); }
.rights-ht span { font-size: 11px; color: var(--n-400); margin-top: 2px; }
.rights-block { border-top: 1px solid var(--n-100); padding: 12px 0 2px; }
.rights-block:first-of-type { border-top: none; padding-top: 2px; }
.rb-title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--n-700); margin-bottom: 8px; }
.rb-title i { font-style: normal; font-size: 12px; color: var(--v-600); font-weight: 600; }
.rc-list { display: flex; flex-direction: column; gap: 6px; }
.rc-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 12px; background: linear-gradient(135deg,var(--v-100),var(--v-50)); font-size: 13px; color: var(--n-600); }
.rc-item .rc-name { font-weight: 600; color: var(--v-900); }
.rc-item .rc-num { color: var(--n-600); }
.rc-item .rc-num b { color: var(--v-700); font-size: 15px; margin: 0 1px; }
.rc-item .rc-date { font-style: normal; font-size: 10px; color: var(--n-400); margin-left: 6px; font-weight: 400; }
.rc-empty { font-size: 12px; color: var(--n-400); padding: 8px 4px; }
.rb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.rb-hint { font-size: 11px; color: var(--n-400); }

/* ============ 我的权益（我的服务栏目）· 高标准重设计 ============ */
.rights2 { padding: 14px 14px 4px; }

/* 顶部：资产总览 */
.r2-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 14px; }
.r2-ov-item {
  position: relative; background: linear-gradient(135deg, var(--v-50), var(--v-100));
  border: 1px solid rgba(16,185,129,.08); border-radius: 16px; padding: 14px 6px 12px; text-align: center; overflow: hidden;
}
.r2-ov-item i { font-size: 15px; font-style: normal; display: block; margin-bottom: 3px; opacity: .9; }
.r2-ov-item b { display: block; font-size: 19px; color: var(--v-900); font-weight: 800; line-height: 1.15; }
.r2-ov-item b em { font-size: 11px; font-style: normal; font-weight: 700; margin-left: 1px; }
.r2-ov-item span { display: block; font-size: 10px; color: var(--v-600); opacity: .8; margin-top: 2px; }
.r2-ov-item.listen { background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.r2-ov-item.listen b { color: #be185d; }
.r2-ov-item.listen span { color: #be185d; }

/* 栏目菜单（分段控件） */
.r2-tabs {
  display: flex; gap: 4px; background: #f4f5f9; padding: 4px; border-radius: 14px; margin-bottom: 6px;
}
.r2-tabs button {
  flex: 1; border: none; background: transparent; padding: 9px 4px; border-radius: 11px;
  font-size: 12.5px; font-weight: 700; color: var(--gray-2, var(--n-500)); cursor: pointer; transition: .15s;
}
.r2-tabs button span { white-space: nowrap; }
.r2-tabs button.active {
  background: var(--c-surface); color: var(--v-700); box-shadow: 0 2px 10px rgba(13,148,136,.16);
}
.r2-tab-desc {
  font-size: 11.5px; color: var(--gray-3, var(--n-400)); line-height: 1.6; padding: 6px 4px 12px;
}

/* 区块 */
.r2-section { margin-bottom: 16px; }
.r2-sec-title {
  display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 800; color: var(--gray-1, var(--n-700));
  margin-bottom: 9px; padding-left: 9px; position: relative;
}
.r2-sec-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 13px; border-radius: 3px; background: linear-gradient(135deg, var(--indigo-400), var(--v-600));
}
.r2-sec-title span { font-size: 11px; font-weight: 600; color: var(--gray-3, var(--n-400)); }

/* 次卡权益卡 */
.r2-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r2-cc {
  background: var(--c-surface); border: 1px solid var(--line, var(--n-100)); border-radius: 16px; padding: 13px 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.r2-cc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.r2-cc-top span { font-size: 12.5px; color: var(--gray-1, var(--n-700)); font-weight: 700; }
.r2-cc-top b { font-size: 16px; color: var(--v-700); font-weight: 800; }
.r2-cc-top b i { font-size: 11px; font-style: normal; color: var(--gray-3, var(--n-400)); font-weight: 600; }
.r2-cc-bar { height: 7px; border-radius: 7px; background: var(--v-100); overflow: hidden; }
.r2-cc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo-400), var(--v-600)); border-radius: 7px; transition: width .3s; }
.r2-cc-sub { font-size: 11px; color: var(--gray-3, var(--n-400)); margin-top: 7px; }

/* 倾听资产 */
.r2-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.r2-wallet-item {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 1px solid rgba(190,24,93,.07);
  border-radius: 16px; padding: 16px 14px; text-align: center;
}
.r2-wallet-item .r2-w-ico { font-size: 18px; display: block; margin-bottom: 4px; }
.r2-wallet-item b { display: block; font-size: 22px; color: #be185d; font-weight: 800; line-height: 1.1; }
.r2-wallet-item b em { font-size: 12px; font-style: normal; font-weight: 700; }
.r2-wallet-item span { display: block; font-size: 11px; color: #be185d; opacity: .85; margin-top: 4px; }

.r2-tip {
  font-size: 11.5px; color: var(--gray-3, var(--n-400)); line-height: 1.7;
  background: var(--n-50); border-radius: 12px; padding: 11px 13px;
}

/* 筛选 / 排序 / 搜索工具条 */
.r2-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.r2-sel, .r2-inp {
  height: 34px; border: 1px solid var(--line, #e6e8ef); border-radius: 10px; background: var(--c-surface);
  font-size: 12.5px; color: var(--gray-1, var(--n-700)); padding: 0 10px; outline: none;
}
.r2-sel { flex: 0 0 auto; }
.r2-inp { flex: 1; min-width: 0; }
.r2-sel:focus, .r2-inp:focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }

/* 记录列表 */
.r2-records { display: flex; flex-direction: column; gap: 9px; }
.r2-rec {
  display: flex; gap: 12px; align-items: center; background: var(--c-surface);
  border: 1px solid var(--line, var(--n-100)); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.r2-rec-ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--n-100); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.r2-rec-ava img { width: 100%; height: 100%; object-fit: cover; }
.r2-rec-main { flex: 1; min-width: 0; }
.r2-rec-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.r2-rec-top b { font-size: 14px; color: var(--gray-1, var(--n-700)); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r2-rec-sub { font-size: 12px; color: var(--gray-3, var(--n-400)); margin-bottom: 5px; }
.r2-rec-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--gray-3, var(--n-400)); }
.r2-rec-star { color: var(--s-amber-500); letter-spacing: 1px; }

/* 状态药丸 */
.r2-pill {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex-shrink: 0;
}
.r2-pill.live { color: var(--s-blue-600); background: var(--s-blue-50); }
.r2-pill.done { color: var(--s-emerald-600); background: var(--brand-purple-soft); }
.r2-pill.gray { color: var(--n-500); background: var(--n-100); }

/* 我的沟通套餐列表 */
.r2-buys { display: flex; flex-direction: column; gap: 9px; }
.r2-buy {
  display: flex; align-items: center; gap: 12px; background: var(--c-surface);
  border: 1px solid var(--line, var(--n-100)); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.r2-buy-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--v-50);
}
.r2-buy-main { flex: 1; min-width: 0; }
.r2-buy-main b {
  display: block; font-size: 13.5px; color: var(--gray-1, var(--n-700)); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.r2-buy-main span { font-size: 11px; color: var(--gray-3, var(--n-400)); }
.r2-buy-amt { font-size: 15px; font-weight: 800; color: var(--v-700); flex-shrink: 0; }

/* 空态 */
.r2-empty {
  text-align: center; font-size: 13px; color: var(--gray-3, var(--n-400)); line-height: 1.7;
  background: var(--c-surface); border: 1px dashed var(--line, #e6e8ef); border-radius: 16px; padding: 22px 16px;
}
.r2-empty.small { padding: 16px; font-size: 12px; }

/* 翻页 */
.r2-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.r2-pg {
  min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--line, var(--n-100));
  background: var(--c-surface); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--gray-2, var(--n-500)); cursor: pointer; transition: .12s;
}
.r2-pg:hover:not(:disabled):not(.dis) { border-color: var(--brand-5); color: var(--v-700); }
.r2-pg.on { background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface); border-color: transparent; }
.r2-pg.dis, .r2-pg:disabled { opacity: .4; cursor: not-allowed; }
.r2-pg-ell { color: var(--gray-3, var(--n-400)); padding: 0 2px; }
.rb-btn { border: none; border-radius: 12px; padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--c-surface); background: linear-gradient(135deg,var(--indigo-400),var(--v-600)); cursor: pointer; }
.rb-btn.ghost { background: var(--c-surface); color: var(--v-600); border: 1px solid var(--brand-5); }
.rb-btn:active { transform: scale(.97); }
.rights-flash { animation: rightsFlash 1.1s ease; }
@keyframes rightsFlash { 0%,100% { box-shadow: 0 4px 16px rgba(15,23,42,.05); } 30% { box-shadow: 0 0 0 3px rgba(16,185,129,.35); } }
/* ============================================================
   资产卡（我的页顶部：积分 / 心启币 / 优惠券 / 倾听分钟）
   ------------------------------------------------------------
   2026-10 重设计：原横排（图标左+文字右）在 4 列窄卡中必然溢出
   ——长数字挤压、标签竖排、箭头绝对定位压字、图标色块缺定义。
   现改为竖排三层资产卡（对标一线钱包）：
     ① 图标  32px 统一柔和色块（绿/琥珀/玫瑰/青，同一圆角同一定义）
     ② 数字  17px/800 tabular-nums，≥1万自动缩写（JS fmtAsset），
             nowrap + ellipsis 双保险，永不换行不撑破
     ③ 标签  11px 灰 + 内联箭头（不再绝对定位）
   ============================================================ */
.pa-item {
    min-width: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
    background: var(--c-surface); border: 1px solid rgba(15,23,42,.05); border-radius: 16px;
    padding: 13px 12px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pa-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16,185,129,.28);
    box-shadow: 0 8px 18px -10px rgba(6,95,70,.22);
}
.pa-item:active { transform: scale(.97); }
.pa-ico {
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.pa-ico.points { background: linear-gradient(135deg, var(--v-50,var(--brand-purple-soft)), var(--v-100,var(--v-100))); }
.pa-ico.wallet { background: linear-gradient(135deg, var(--s-amber-100), var(--s-amber-200)); }
.pa-ico.coupon { background: linear-gradient(135deg, #FFE4E6, #FECDD3); }
.pa-ico.listen { background: linear-gradient(135deg, var(--s-sky-100), #BAE6FD); }
.pa-ico.credit { background: linear-gradient(135deg, var(--v-100), var(--v-200)); }
.pa-num {
    max-width: 100%;
    font-size: 17px; font-weight: 800; color: var(--ink, var(--ink));
    font-variant-numeric: tabular-nums; line-height: 1;
    letter-spacing: -.2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pa-lb {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 11px; color: var(--gray-3, var(--gray-3));
    white-space: nowrap; line-height: 1;
}
.pa-go { font-style: normal; color: #B6C2BD; font-size: 12px; line-height: 1; transition: transform .15s, color .15s; }
.pa-item:hover .pa-go { color: var(--brand-2, var(--brand-3)); transform: translateX(2px); }

/* 零值弱化：空资产用次级色，不与真实余额争抢视觉焦点（精致细节） */
.pa-num.is-zero { color: var(--gray-3, #9AA8A2); font-weight: 700; }

/* 跨系统渲染一致性：iOS/macOS 字体抗锯齿 + 数字等宽，避免各平台字重与字距漂移 */
.pa-num, .pa-lb {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 触控热区：整卡可点且满足移动端最小点按尺寸（内容高度已 >44px，此处保证宽度） */
.pa-item { min-height: 44px; }

/* 超窄屏（≤360px）：4 列时单卡仅约 78px，"倾听分钟"+箭头会挤压，
   降级为 2×2 网格，优先保证可读性而非密度。 */
@media (max-width: 360px) {
    .profile-assets { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* 暗色适配：卡片与图标色块同步转暗阶，数字/标签提亮 */
@media (prefers-color-scheme: dark) {
    .pa-item { background: var(--c-surface); border-color: var(--c-line); box-shadow: 0 1px 2px rgba(0,0,0,.34); }
    .pa-item:hover { border-color: rgba(52,211,153,.36); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
    .pa-ico { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
    .pa-ico.points, .pa-ico.credit { background: linear-gradient(135deg, rgba(52,211,153,.20), rgba(52,211,153,.10)); }
    .pa-ico.wallet { background: linear-gradient(135deg, rgba(251,191,36,.20), rgba(251,191,36,.10)); }
    .pa-ico.coupon { background: linear-gradient(135deg, rgba(251,113,133,.20), rgba(251,113,133,.10)); }
    .pa-ico.listen { background: linear-gradient(135deg, rgba(56,189,248,.20), rgba(56,189,248,.10)); }
    .pa-num { color: #EAF6F1; }
    .pa-num.is-zero { color: #5C7A6F; }
    .pa-lb { color: #8AA69C; }
}

/* 成长与社区 / 设置：列表行 */
.pm-list {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px;
}
.pm-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--c-surface); border: 1px solid rgba(15,23,42,.05); border-radius: 16px;
    padding: 13px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: transform .15s;
}
.pm-item:active { transform: scale(.985); }
.pm-ico {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: var(--v-25);
}
.pm-ico.mood { background: linear-gradient(135deg, var(--s-amber-100), var(--s-amber-200)); }
.pm-ico.help { background: linear-gradient(135deg, var(--s-sky-100), #bae6fd); }
.pm-ico.apply { background: linear-gradient(135deg, var(--brand-purple-soft), var(--v-100)); }
.pm-ico.empower { background: linear-gradient(135deg, var(--v-100), var(--v-200)); }
/* 赋能中心入口：高端强调（渐变描边 + 微光） */
#empowerEntryBtn {
    position: relative; overflow: hidden;
    border: 1px solid var(--v-100) !important;
    background: linear-gradient(112deg, var(--v-25) 0%, var(--v-50) 48%, var(--s-yellow-50) 100%);
    box-shadow: 0 10px 24px -20px rgba(109, 40, 217, .9);
}
#empowerEntryBtn::after {
    content: ''; position: absolute; right: -18px; top: -22px;
    width: 90px; height: 90px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(251, 191, 36, .22), transparent 68%);
}
#empowerEntryBtn .pm-ico.empower {
    background: linear-gradient(135deg, var(--v-700), var(--v-600) 55%, var(--brand-4));
    box-shadow: 0 8px 18px -10px rgba(109, 40, 217, .95);
}
#empowerEntryBtn .pm-ico.empower { font-size: 19px; }
#empowerEntryBtn .pm-txt b { color: var(--v-900); }
#empowerEntryBtn .pm-go { color: var(--brand-4); }
.pm-ico.course { background: linear-gradient(135deg, var(--s-amber-25), #ffedd5); }
.pm-txt { flex: 1; min-width: 0; }
.pm-txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.pm-txt p { font-size: 11.5px; color: var(--gray-3); margin-top: 2px; }
.pm-go { color: var(--gray-3); font-size: 17px; flex-shrink: 0; }
.pm-item.pm-danger .pm-txt b { color: var(--brand-rose); }
.pm-item.pm-danger .pm-ico { background: var(--s-red-50); }

.profile-foot { text-align: center; font-size: 11px; color: var(--gray-3); padding: 22px 0 8px; letter-spacing: .5px; }

/* 邀请横幅（浅色重设计） */
.invite-banner {
    border: 1px solid rgba(217, 119, 6, .18);
    background: linear-gradient(120deg, #fffaf0, #fff5e6);
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
}

/* 测评记录 Tab（服务中心内） */
.rec-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.rec-badge {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 21px;
    box-shadow: 0 6px 14px rgba(16,185,129,.16);
}
.rec-main { flex: 1; min-width: 0; }
.rec-summary {
    font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rec-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.rec-chiprow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rec-type { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.rec-time { font-size: 11.5px; color: var(--gray-3); }
.rec-go { color: var(--gray-3); font-size: 18px; flex-shrink: 0; }

/* ==================== 邀请有礼 ==================== */

.invite-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: linear-gradient(120deg, #fdf2f8, var(--s-amber-100), var(--v-25));
    border: 1px solid var(--s-amber-200); border-radius: 14px; padding: 12px 14px;
    margin: 10px 0; cursor: pointer;
}
.invite-banner-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.invite-banner-ico { font-size: 26px; flex-shrink: 0; }
.invite-banner-left b { display: block; font-size: 14px; color: var(--gray-1); }
.invite-banner-left p { font-size: 11px; color: var(--gray-3); margin-top: 2px; }
.invite-banner-go { color: var(--s-amber-600); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ============ 邀请有礼（营销裂变 · 高标准） ============ */
.invite2 { padding: 14px 14px 4px; }

/* Hero */
.inv-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 18px 20px; color: var(--c-surface);
  background: linear-gradient(135deg, var(--v-600) 0%, var(--brand-2) 45%, #db2777 100%);
  box-shadow: 0 14px 30px rgba(16,185,129,.28); text-align: center;
}
.inv-hero-glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
  top: -90px; right: -60px; pointer-events: none;
}
.inv-hero-t { font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.inv-hero-d { font-size: 12.5px; opacity: .94; margin-top: 8px; line-height: 1.7; }
.inv-hero-stats { display: flex; justify-content: center; gap: 0; margin-top: 18px; }
.inv-hero-stats > div {
  flex: 1; position: relative;
}
.inv-hero-stats > div + div::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: rgba(255,255,255,.25);
}
.inv-hero-stats b { display: block; font-size: 22px; font-weight: 900; }
.inv-hero-stats span { font-size: 11px; opacity: .85; margin-top: 2px; }

/* 邀请码卡片 */
.inv-code-card {
  background: var(--c-surface); border: 1px solid var(--line, var(--n-100)); border-radius: 18px; padding: 16px;
  margin-top: 12px; text-align: center; box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
.inv-code-label { font-size: 12px; color: var(--gray-3, var(--n-400)); }
.inv-code {
  font-size: 30px; font-weight: 900; letter-spacing: 4px; color: var(--v-700);
  margin: 8px 0 14px; background: linear-gradient(135deg, var(--v-50), #fce7f3);
  border-radius: 12px; padding: 12px; border: 1px dashed var(--brand-5);
}
.inv-code-actions { display: flex; gap: 8px; }
.inv-btn {
  flex: 1; height: 40px; border: 1px solid var(--line, #e6e8ef); background: var(--c-surface); border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--gray-1, var(--n-700)); cursor: pointer; transition: .12s;
}
.inv-btn:active { transform: scale(.97); }
.inv-btn.primary { background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface); border-color: transparent; box-shadow: 0 4px 12px rgba(16,185,129,.28); }

/* 双向奖励 */
.inv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.inv-two-card {
  border-radius: 16px; padding: 14px; color: var(--c-surface); position: relative; overflow: hidden;
}
.inv-two-card.you { background: linear-gradient(135deg, var(--indigo-500), var(--v-600)); }
.inv-two-card.friend { background: linear-gradient(135deg, #ec4899, #db2777); }
.inv-two-ico { font-size: 22px; }
.inv-two-t { font-size: 12.5px; opacity: .95; margin: 6px 0 4px; }
.inv-two-r { font-size: 12px; opacity: .92; line-height: 1.5; }
.inv-two-r b { display: block; font-size: 14px; font-weight: 800; margin-top: 2px; }

/* 阶梯奖励 */
.inv-progress { margin-bottom: 12px; }
.inv-progress-top { font-size: 12px; color: var(--gray-2, var(--n-500)); margin-bottom: 7px; }
.inv-progress-top b { color: var(--v-700); font-weight: 800; }
.inv-progress-bar { height: 9px; border-radius: 9px; background: var(--v-100); overflow: hidden; }
.inv-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo-400), #db2777); border-radius: 9px; transition: width .4s; }
.inv-progress.done .inv-progress-top { color: #be185d; font-weight: 700; }
.inv-tiers { display: flex; flex-direction: column; gap: 9px; }
.inv-tier {
  display: flex; gap: 12px; align-items: center; background: var(--c-surface); border: 1px solid var(--line, var(--n-100));
  border-radius: 14px; padding: 12px 14px; opacity: .7;
}
.inv-tier.on { opacity: 1; border-color: var(--brand-5); box-shadow: 0 2px 10px rgba(16,185,129,.10); }
.inv-tier-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; background: var(--v-100); color: var(--v-700);
}
.inv-tier.on .inv-tier-dot { background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface); }
.inv-tier-body { flex: 1; min-width: 0; }
.inv-tier-label { font-size: 13.5px; font-weight: 700; color: var(--gray-1, var(--n-700)); }
.inv-tier-reward { font-size: 11.5px; color: var(--gray-3, var(--n-400)); margin-top: 2px; }
.inv-tier-reward em { font-style: normal; color: var(--s-emerald-600); font-weight: 700; }
.inv-tier-reward em.wait { color: var(--s-amber-600); }

/* 我的奖励流水 */
.inv-rew { display: flex; flex-direction: column; gap: 8px; }
.inv-rew-item { display: flex; gap: 12px; align-items: center; background: var(--c-surface); border: 1px solid var(--line, var(--n-100)); border-radius: 14px; padding: 11px 14px; }
.inv-rew-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--v-50); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.inv-rew-main { flex: 1; min-width: 0; }
.inv-rew-main b { display: block; font-size: 13px; color: var(--gray-1, var(--n-700)); font-weight: 700; }
.inv-rew-main span { font-size: 11px; color: var(--gray-3, var(--n-400)); }

.inv-rules { background: var(--n-50); border-radius: 12px; padding: 12px 14px; }
.inv-rule { font-size: 12px; color: var(--gray-3, var(--n-400)); line-height: 1.9; }

/* 海报弹层 */
.inv-poster-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.72); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.inv-poster-box { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 92vw; }
.inv-poster-box canvas { width: 280px; height: auto; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.inv-poster-acts { display: flex; gap: 10px; }
.inv-poster-acts .inv-btn { width: 110px; }

.invite-claim { display: flex; gap: 8px; }
.invite-claim .uc-input { flex: 1; }

/* 邀请页二维码 + 三步流程 + 微信引导（升级版） */
.inv-qr-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--v-100); text-align: center; }
.inv-qr-canvas { width: 180px; height: 180px; border-radius: 14px; background: var(--c-surface); box-shadow: 0 6px 18px rgba(16,185,129,.12); }
.inv-qr-tip { font-size: 11.5px; color: var(--gray-3, var(--n-400)); margin: 10px 0 8px; line-height: 1.6; }
.inv-btn.sm { flex: none; width: auto; height: 34px; font-size: 12.5px; padding: 0 18px; display: inline-block; }
/* 三步拿奖励 */
.inv-steps { display: flex; flex-direction: column; gap: 10px; }
.inv-step { display: flex; gap: 12px; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--line, var(--n-100)); border-radius: 14px; padding: 12px 14px; }
.inv-step-n { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--c-surface); background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); }
.inv-step-b { flex: 1; min-width: 0; }
.inv-step-b b { display: block; font-size: 13.5px; color: var(--gray-1, var(--n-700)); }
.inv-step-b span { display: block; font-size: 11.5px; color: var(--gray-3, var(--n-400)); margin-top: 3px; line-height: 1.6; }
/* 微信分享引导 */
.inv-wx-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 1000; }
.inv-wx-box { position: absolute; top: 14px; right: 14px; left: 14px; background: var(--c-surface); border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.inv-wx-arr { position: absolute; top: -34px; right: 14px; font-size: 30px; color: var(--c-surface); }
.inv-wx-t { font-size: 16px; font-weight: 800; color: var(--n-800); }
.inv-wx-s { font-size: 12.5px; color: var(--gray-3, var(--n-400)); margin: 10px 0 16px; line-height: 1.7; }
.inv-wx-box .inv-btn { width: 120px; margin: 0 auto; }

/* ==================== 心启币钱包 / 签到 / 充值 / 商城 / 限时特惠 ==================== */

/* 钱包 banner（profile 顶部） */
.wallet-banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; margin-bottom: 12px; border-radius: 16px; color: var(--c-surface);
    background: linear-gradient(135deg, var(--s-amber-500) 0%, var(--s-red-500) 50%, #ec4899 100%);
    cursor: pointer; box-shadow: 0 8px 20px rgba(236,72,153,.18);
}
.wallet-banner-bg {
    position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,.32), transparent 60%); pointer-events: none;
}
.wallet-banner-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wallet-banner-ico { font-size: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.wallet-banner-left b { display: block; font-size: 16px; font-weight: 800; }
.wallet-banner-left p { font-size: 11px; opacity: .92; margin-top: 2px; }
.wallet-banner-go { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* 钱包 Hero */
.wallet-hero {
    position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 20px;
    background: linear-gradient(135deg, var(--v-700) 0%, var(--v-600) 50%, #db2777 100%);
    color: var(--c-surface); margin-bottom: 16px; box-shadow: 0 12px 30px rgba(16,185,129,.28);
}
.wallet-hero-glow {
    position: absolute; top: -60px; right: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%); pointer-events: none;
}
.wallet-hero-row { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.wallet-hero-label { font-size: 12px; opacity: .85; letter-spacing: .4px; }
.wallet-hero-num { font-size: 36px; font-weight: 800; margin-top: 4px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.18); }
.wallet-hero-right { text-align: right; min-width: 110px; }
.wallet-hero-level { font-size: 13px; font-weight: 700; }
.wallet-hero-progress { width: 100px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 6px 0 0; overflow: hidden; }
.wallet-hero-bar { height: 100%; background: linear-gradient(90deg, var(--s-amber-400), var(--s-amber-500)); border-radius: 3px; transition: width .3s; }
.wallet-hero-tip { font-size: 11px; opacity: .85; margin-top: 4px; }

/* 区块通用 */
.wallet-section {
    background: var(--c-surface); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.wallet-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wallet-sec-title { font-size: 15px; font-weight: 800; color: var(--gray-1); }
.wallet-sec-tip { font-size: 12px; color: var(--gray-3); }

/* 签到 */
.signin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.signin-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; background: var(--n-50); }
.signin-day.done { background: linear-gradient(135deg, var(--s-amber-400), var(--s-amber-500)); color: var(--c-surface); }
.signin-day.today { box-shadow: 0 0 0 2px var(--purple-2); }
.signin-day.bonus { background: linear-gradient(135deg, var(--brand-4), var(--indigo-500)); color: var(--c-surface); }
.signin-day .sd-day { font-size: 11px; opacity: .7; }
.signin-day .sd-coin { font-size: 12px; font-weight: 800; }
.signin-btn { width: 100%; padding: 13px; border-radius: 12px; background: linear-gradient(135deg, var(--s-amber-500), var(--s-red-500)); color: var(--c-surface); font-size: 15px; font-weight: 800; border: none; box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.signin-btn:active { transform: scale(.97); }
.signin-btn:disabled { background: var(--n-300); box-shadow: none; color: var(--c-surface); }

/* 积分（与心启币隔离） */
.points-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.points-balance { display: flex; align-items: baseline; gap: 6px; }
.points-balance b { font-size: 24px; font-weight: 800; color: var(--v-600); }
.points-balance span { font-size: 13px; color: var(--gray-3); }
.points-exchange { display: flex; gap: 8px; align-items: center; }
.points-exchange input { width: 120px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 14px; outline: none; }
.points-exchange-btn { padding: 9px 14px; border-radius: 10px; border: none; background: linear-gradient(135deg, var(--brand-3), var(--v-700)); color: var(--c-surface); font-size: 14px; font-weight: 700; cursor: pointer; }
.points-exchange-btn:active { transform: scale(.97); }
.points-exchange-btn:disabled { background: var(--n-300); }
.points-exchange-tip { font-size: 12px; color: var(--s-red-500); margin-top: 8px; min-height: 16px; }

/* 充值套餐 */
.recharge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.recharge-card { position: relative; padding: 14px 6px 12px; border-radius: 14px; background: var(--n-50); border: 1.5px solid var(--line); text-align: center; cursor: pointer; transition: .15s; }
.recharge-card.hot { background: linear-gradient(135deg, var(--s-amber-100), var(--s-amber-200)); border-color: var(--s-amber-500); }
.recharge-card:active { transform: scale(.97); }
.recharge-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 10px; background: var(--s-red-500); color: var(--c-surface); font-size: 10px; font-weight: 700; white-space: nowrap; }
.recharge-name { font-size: 12px; color: var(--gray-2); margin-bottom: 4px; }
.recharge-yuan { font-size: 17px; font-weight: 800; color: var(--s-red-500); }
.recharge-coins { font-size: 12px; color: var(--gray-1); margin-top: 4px; }
.recharge-bonus { font-size: 11px; color: var(--s-green-600); font-weight: 700; margin-top: 2px; }

/* 流水 */
.ledger-list { display: flex; flex-direction: column; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--n-100); }
.ledger-row:last-child { border-bottom: none; }
.ledger-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ledger-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--n-100); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ledger-info { min-width: 0; }
.ledger-info b { display: block; font-size: 13px; color: var(--gray-1); }
.ledger-info span { font-size: 11px; color: var(--gray-3); }
.ledger-amount { font-size: 15px; font-weight: 800; }
.ledger-amount.plus { color: var(--s-green-600); }
.ledger-amount.minus { color: var(--s-red-500); }
.ledger-empty { text-align: center; color: var(--gray-3); padding: 24px 0; font-size: 13px; }

/* 商城入口 */
.wallet-shop-entry {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--s-amber-100), var(--s-amber-200));
    padding: 14px 16px; border-radius: 16px; margin-bottom: 12px; cursor: pointer;
}
.wse-left { display: flex; align-items: center; gap: 10px; }
.wse-ico { font-size: 26px; }
.wse-left b { display: block; font-size: 14px; color: #78350f; }
.wse-left p { font-size: 11px; color: var(--s-amber-800); margin-top: 2px; }
.wse-go { font-size: 18px; color: #78350f; }

/* 商城页 */
.shop-balance {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--s-amber-500), var(--s-red-500));
    color: var(--c-surface); padding: 14px 16px; border-radius: 16px; margin-bottom: 16px;
}
.shop-balance-ico { font-size: 22px; }
.shop-balance b { font-size: 22px; font-weight: 800; }
.shop-balance-back { margin-left: auto; font-size: 12px; opacity: .9; cursor: pointer; padding: 4px 10px; border-radius: 16px; background: rgba(255,255,255,.18); }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-card { background: var(--c-surface); border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.04); display: flex; flex-direction: column; }
.shop-ico { font-size: 42px; text-align: center; margin-bottom: 6px; }
.shop-name { font-size: 14px; font-weight: 800; color: var(--gray-1); text-align: center; }
.shop-desc { font-size: 11px; color: var(--gray-3); text-align: center; margin: 4px 0 10px; min-height: 28px; }
.shop-cost { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--s-amber-500); font-weight: 800; margin-bottom: 10px; }
.shop-buy { width: 100%; padding: 9px; border-radius: 10px; background: linear-gradient(135deg, var(--s-amber-500), var(--s-red-500)); color: var(--c-surface); font-size: 13px; font-weight: 700; border: none; }
.shop-buy:active { transform: scale(.97); }
.shop-buy:disabled { background: var(--n-300); }
.shop-empty { text-align: center; color: var(--gray-3); padding: 40px 0; font-size: 14px; grid-column: 1 / -1; }

/* 限时特惠 banner */
.flash-banner {
    display: flex; align-items: center; gap: 12px; margin: 12px;
    padding: 12px 14px; border-radius: 16px; color: var(--c-surface);
    background: linear-gradient(135deg, var(--s-red-500), var(--brand-orange));
    box-shadow: 0 8px 20px rgba(239,68,68,.28); cursor: pointer;
    position: relative; overflow: hidden;
}
.flash-banner-bg { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 60%); pointer-events: none; }
.fb-ico { font-size: 30px; }
.fb-info { flex: 1; min-width: 0; }
.fb-title { font-size: 14px; font-weight: 800; }
.fb-sub { font-size: 11px; opacity: .92; margin-top: 2px; }
.fb-timer { font-size: 13px; font-weight: 800; padding: 6px 10px; background: rgba(0,0,0,.25); border-radius: 8px; }
.invitee-info span { font-size: 11px; color: var(--gray-3); margin-top: 2px; }

/* 测评记录分页（每页 10 条，手机触控优先） */
.uc-pager {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 14px 12px 0; padding: 8px; background: var(--c-surface);
    border: 1px solid var(--line, var(--n-200)); border-radius: 14px;
}
.uc-pg-btn {
    min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
    background: var(--v-50); color: var(--v-700); flex-shrink: 0; transition: .15s;
}
.uc-pg-btn:active { transform: scale(.97); }
.uc-pg-btn[disabled] { background: var(--n-100); color: var(--n-300); cursor: not-allowed; }
.uc-pg-nums { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.uc-pg-num {
    min-width: 32px; min-height: 32px; padding: 0 4px; border-radius: 9px;
    font-size: 13px; font-weight: 700; color: var(--gray-1, var(--n-600)); background: transparent; transition: .15s;
}
.uc-pg-num.on {
    background: linear-gradient(135deg, var(--v-600), var(--brand-3)); color: var(--c-surface);
    box-shadow: 0 4px 10px rgba(16, 185, 129, .28);
}
.uc-pg-gap { color: var(--gray-3, var(--n-400)); font-size: 12px; padding: 0 2px; }
.uc-pg-tip { margin-top: 8px; text-align: center; font-size: 11px; color: var(--gray-3, var(--n-400)); }

@media (max-width: 360px) {
    .uc-pg-btn { padding: 0 8px; font-size: 12px; }
    .uc-pg-num { min-width: 28px; }
}

/* 头像容器：图片铺满（emoji 由容器的 flex 居中负责，不要给 span 设满宽高） */
.fav-avatar img, .invitee-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; border-radius: inherit;
}

/* ===== 我的服务模块升级：筛选 Tab + 订单/预约卡片 + 券临期 + 信息行 ===== */

/* 状态/分类筛选条（可横向滚动的胶囊 Tab） */
.uc-tabs2 {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.uc-tabs2::-webkit-scrollbar { display: none; }
.uc-tabs2 button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; border: 1px solid var(--line, var(--n-200)); border-radius: 16px;
  background: var(--c-surface); color: var(--gray-1, var(--n-600)); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: .15s;
}
.uc-tabs2 button.active {
  background: linear-gradient(135deg, var(--v-600), var(--brand-3)); color: var(--c-surface); border-color: transparent;
  box-shadow: 0 4px 12px rgba(16,185,129,.25);
}
.uc-tabs2 button i {
  font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: rgba(16,185,129,.12); color: var(--v-700); font-size: 10px; line-height: 16px; text-align: center;
}
.uc-tabs2 button.active i { background: rgba(255,255,255,.22); color: var(--c-surface); }

/* 订单卡片增强 */
.od-ico { width: 24px; text-align: center; font-size: 16px; }
.od-card .ucc-title { margin-top: 4px; }
.od-remain {
  margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 11.5px; color: var(--s-amber-700);
  background: var(--s-amber-50); border: 1px solid var(--s-amber-200);
}

/* 预约卡片增强（顶级标准：左侧日期磁贴 + 状态色编码 + 大留白） */
.ap-card {
  display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line, var(--n-100)); background: var(--c-surface);
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ap-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.09); }
.ap-card:active { transform: translateY(0) scale(.992); box-shadow: 0 4px 12px rgba(15,23,42,.06); }

/* 错峰淡入，提升列表层次感 */
@keyframes apIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.uc-list .ap-card { animation: apIn .34s ease backwards; }
.uc-list .ap-card:nth-child(1) { animation-delay: .02s; }
.uc-list .ap-card:nth-child(2) { animation-delay: .06s; }
.uc-list .ap-card:nth-child(3) { animation-delay: .10s; }
.uc-list .ap-card:nth-child(4) { animation-delay: .14s; }
.uc-list .ap-card:nth-child(5) { animation-delay: .18s; }
.uc-list .ap-card:nth-child(n+6) { animation-delay: .22s; }

/* 左侧日期磁贴（颜色随状态变化，作为视觉锚点） */
.ap-date {
  flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 12px 0; color: var(--n-500); background: var(--n-100);
  border-right: 1px solid rgba(15,23,42,.04);
}
.ap-date--warn { background: linear-gradient(160deg, #fff7e6, var(--s-amber-50)); color: var(--s-amber-700); }
.ap-date--ok   { background: linear-gradient(160deg, var(--brand-purple-soft), #f0fdf9); color: var(--s-emerald-700); }
.ap-date--gray { background: linear-gradient(160deg, var(--n-100), var(--n-50)); color: var(--n-500); }
.ap-dm { font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.ap-dd { font-size: 26px; font-weight: 800; line-height: 1.06; }
.ap-dw { font-size: 10.5px; font-weight: 600; opacity: .85; }

.ap-body { flex: 1; min-width: 0; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.ap-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ap-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-avatar {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-purple-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden;
}
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ap-id { min-width: 0; }
.ap-name { font-size: 14.5px; font-weight: 800; color: var(--n-800); line-height: 1.3; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ap-title { font-style: normal; font-size: 11px; font-weight: 600; color: var(--n-400); }
.ap-mode { font-size: 11.5px; font-weight: 700; color: #6d5efc; margin-top: 3px; }

.ap-status { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ap-status.ok { color: var(--s-emerald-700); background: var(--v-100); }
.ap-status.warn { color: var(--s-amber-700); background: var(--s-amber-100); }
.ap-status.gray { color: var(--n-600); background: var(--n-200); }

.ap-time {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--n-700);
  background: var(--n-50); border: 1px solid #eef2f7; border-radius: 10px; padding: 5px 10px;
}
.ap-clock { font-size: 12px; }

.ap-note {
  font-size: 12px; color: var(--n-600); line-height: 1.6; background: var(--n-50);
  border-left: 3px solid var(--n-200); border-radius: 6px; padding: 7px 10px;
}
.ap-note.staff { background: var(--v-25); border-left-color: #86efac; color: var(--s-green-800); }

.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-price { font-size: 15px; font-weight: 800; color: var(--brand-rose); }
.ap-actions { display: flex; gap: 8px; }

/* 空状态升级 */
.ap-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; }
.ap-empty-ico { font-size: 40px; }
.uc-empty-t { font-size: 15px; font-weight: 800; color: var(--gray-1, var(--n-600)); }
.ap-empty-btn {
  margin-top: 6px; padding: 9px 20px; border: none; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, var(--indigo-400), var(--v-600)); color: var(--c-surface); cursor: pointer;
  box-shadow: 0 6px 16px rgba(16,185,129,.28); transition: transform .15s ease;
}
.ap-empty-btn:active { transform: scale(.96); }

/* 优惠券：列表容器 + 状态置灰 */
.coupon-list { display: block; }
.coupon-card.mine.used, .coupon-card.mine.expired { box-shadow: none; filter: grayscale(.35); opacity: .72; }
.coupon-card.mine.used .cc-stub, .coupon-card.mine.expired .cc-stub { background: linear-gradient(135deg, var(--n-300), var(--n-400)); }
.coupon-card.mine.used .cc-scope, .coupon-card.mine.expired .cc-scope { color: var(--n-500); background: var(--n-100); }

/* 通知设置：信息行 + 圆点 */
.uc-info-row { display: flex; align-items: center; justify-content: space-between; }
.uc-info-row span { font-size: 13px; color: var(--gray-1, var(--n-600)); }
.uc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--n-300); }
.uc-dot.on { background: var(--s-green-500); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }

/* ============================================================
   牌阵记录详情弹层
   ============================================================ */
/* z-index 400：须高于服务中心全屏容器 .apply-screen(300)，否则详情弹层被整层压住「点了没反应」 */
.uc-modal { position: fixed; inset: 0; z-index: 400; display: none; }
.uc-modal.show { display: block; }
.uc-modal-mask { position: absolute; inset: 0; background: rgba(6, 20, 16, .48); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.uc-modal-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; box-sizing: border-box;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  background: var(--c-surface, var(--c-surface)); border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(6, 40, 30, .22);
  animation: ucSlideUp .3s cubic-bezier(.16, 1, .3, 1);
}
@keyframes ucSlideUp { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.uc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.uc-modal-head b { font-size: 16px; font-weight: 800; color: var(--c-ink, var(--ink)); }
.uc-modal-x { font-size: 18px; color: var(--c-mut, #687770); cursor: pointer; padding: 4px 8px; }

.uc-spread-dom { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--c-surface-2, #F7FAF8); margin-bottom: 16px; }
.uc-spread-dom-badge { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--c-surface); box-shadow: 0 4px 12px -4px rgba(6, 95, 70, .4); flex: none; }
.uc-spread-dom-t { font-size: 15px; font-weight: 800; }
.uc-spread-dom-time { font-size: 12px; color: var(--c-mut, #687770); margin-top: 3px; }

.uc-spread-bars { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.uc-spread-bar { display: flex; align-items: center; gap: 10px; }
.uc-spread-bar-l { width: 44px; font-size: 12px; font-weight: 700; flex: none; }
.uc-spread-bar-track { flex: 1; height: 9px; border-radius: 999px; background: var(--c-surface-2, #F0F4F2); overflow: hidden; }
.uc-spread-bar-track i { display: block; height: 100%; border-radius: 999px; transition: width .4s cubic-bezier(.16, 1, .3, 1); }
.uc-spread-bar-v { width: 30px; font-size: 12px; font-weight: 800; color: var(--c-ink, var(--ink)); text-align: right; flex: none; }

.uc-spread-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uc-spread-col { padding: 12px; border-radius: 12px; background: var(--c-surface-2, #F7FAF8); }
.uc-spread-col-t { font-size: 12px; font-weight: 800; color: var(--c-sub, var(--c-sub)); margin-bottom: 8px; }
.uc-chip { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--c-ink, var(--ink)); background: var(--c-surface, var(--c-surface)); border: 1px solid var(--c-line, var(--c-line)); }

/* —— 牌阵记录详情增强：三排卡牌摆放 / 正负分 / AB 分层 —— */
.uc-spread-detail { max-height: 84vh; overflow: auto; }
.uc-sec-t { font-size: 13px; font-weight: 800; color: var(--c-ink, var(--ink)); margin: 14px 0 8px; }
.uc-board { display: flex; flex-direction: column; gap: 8px; }
.uc-board-row { display: flex; align-items: flex-start; gap: 8px; }
.uc-board-lb { width: 92px; flex: none; font-size: 11px; font-weight: 800; color: var(--c-mut, #687770); padding-top: 6px; }
.uc-board-slots { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
/* 卡牌样式与「摆牌时」完全同款（spread.css .sp-card）：左侧彩色书脊 + 彩色文字 + 同色淡底，
   不再渲染左上角色块；圆角按运营要求收窄为 3px。 */
.uc-board-slot { min-height: 52px; border-radius: 3px; padding: 5px 4px 5px 9px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--c-surface, var(--c-surface)); border: 1px solid var(--c-line, var(--c-line)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); box-sizing: border-box; }
.uc-board-slot::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sp-card-spine, transparent); }
.uc-board-slot b { font-size: 10px; font-weight: 700; color: inherit; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.uc-board-slot em { font-style: normal; font-size: 9px; color: var(--c-mut, #687770); }
.uc-board-slot.yellow { color: var(--s-amber-800); --sp-card-spine: var(--brand-amber); background: color-mix(in srgb, var(--brand-amber) 8%, var(--c-surface, #fff)); }
.uc-board-slot.blue { color: var(--s-blue-800); --sp-card-spine: var(--c-info); background: color-mix(in srgb, var(--c-info) 8%, var(--c-surface, #fff)); }
.uc-board-slot.red { color: var(--s-red-800); --sp-card-spine: var(--s-red-500); background: color-mix(in srgb, var(--s-red-500) 8%, var(--c-surface, #fff)); }
.uc-board-slot.green { color: var(--s-green-800); --sp-card-spine: var(--s-green-500); background: color-mix(in srgb, var(--s-green-500) 8%, var(--c-surface, #fff)); }
.uc-posneg-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 4px; }
.uc-posneg { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 9px; background: var(--c-surface-2, #F7FAF8); font-size: 11.5px; }
.uc-posneg b { color: var(--c-ink, var(--ink)); font-weight: 800; font-family: ui-monospace, monospace; }
.uc-ab { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-sub, var(--c-sub)); padding: 9px 12px; border-radius: 10px; background: var(--c-surface-2, #F7FAF8); margin-bottom: 4px; }
.uc-ab b { color: var(--c-ink, var(--ink)); }
.uc-ab i { font-style: normal; color: var(--c-mut, #687770); }
/* 列表迷你四色能量条 */
.rec-mini-bars { display: flex; height: 5px; border-radius: 999px; overflow: hidden; margin-top: 7px; background: var(--c-surface-2, #F0F4F2); }
.rec-mini-bars i { display: block; height: 100%; }
/* 多人牌阵记录（几人摆几人的完整还原） */
.uc-member { margin-bottom: 16px; border: 1px solid var(--c-line, var(--c-line)); border-radius: 14px; overflow: hidden; }
.uc-member-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--c-surface); font-size: 14px; font-weight: 800; }
.uc-member-h span { font-size: 11.5px; font-weight: 700; opacity: .95; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.uc-member-bars { padding: 12px 14px 4px; }
.uc-member .uc-board { padding: 6px 14px 12px; }

@media (prefers-color-scheme: dark) {
  .uc-modal-card { background: var(--c-surface); }
  .uc-modal-head b, .uc-spread-dom-t, .uc-spread-bar-v { color: #EAF6F1; }
  .uc-spread-dom, .uc-spread-col { background: var(--c-surface-2); }
  .uc-spread-bar-track { background: var(--c-line); }
  .uc-chip { color: #EAF6F1; background: var(--c-surface-2); border-color: var(--c-line); }
  .uc-sec-t, .uc-posneg b, .uc-ab b { color: #EAF6F1; }
  .uc-board-slot { background: var(--c-surface); border-color: var(--c-line); }
  .uc-board-slot em, .uc-board-lb { color: #8AA69C; }
  /* 卡牌彩色文字暗色适配（与牌阵页 spread.css 同款） */
  .uc-board-slot.yellow { color: var(--s-amber-200); background: rgba(245, 158, 11, .14); }
  .uc-board-slot.blue { color: #BFDBFE; background: rgba(59, 130, 246, .14); }
  .uc-board-slot.red { color: var(--s-red-200); background: rgba(239, 68, 68, .14); }
  .uc-board-slot.green { color: var(--s-green-200); background: rgba(34, 197, 94, .14); }
  .uc-board-slot b { color: inherit; }
  .uc-posneg, .uc-ab { background: var(--c-surface-2); color: var(--c-sub); }
  .rec-mini-bars { background: var(--c-surface-2); }
}
