:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #171717);
  --hint: var(--tg-theme-hint-color, #707579);
  --surface: var(--tg-theme-secondary-bg-color, #f4f4f5);
  --accent: var(--tg-theme-button-color, #2481cc);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --line: rgba(127, 127, 127, 0.22);
  --radius: 14px;
  --safe-bottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "SF Pro Text", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- 版块与滚动区 ---------- */

.page {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.page.active {
  display: flex;
}

.head {
  position: relative;
  padding: 16px 16px 8px;
}

.head-bell {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.head-bell svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bell-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.head-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 首页 tab ---------- */

.seg {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.seg button {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--hint);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.seg button.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}

/* ---------- 区块标题 ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.section-head .count {
  font-size: 12px;
  color: var(--hint);
}

/* ---------- 广告轮播 ---------- */

.banner {
  margin-top: 14px;
}

.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: var(--radius);
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.banner-copy {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
}

.banner-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 11px;
  line-height: 16px;
}

.banner-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.banner-sub {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.85;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.banner-dots button.active {
  width: 16px;
  background: var(--accent);
}

/* ---------- 陪玩卡片 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.p-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #dfe3e8, #bcc3cc);
  cursor: pointer;
}

.p-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.p-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.p-online {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.p-online .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0fdc78;
}

.p-online.offline .dot {
  background: #a1a1aa;
}

.p-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.p-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-no {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.detail-contact {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
  color: var(--hint);
}

.detail-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-contact b {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
  text-align: left;
  white-space: pre-line;
  line-height: 1.6;
}

.contact-copy {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.p-sub {
  font-size: 11px;
  line-height: 16px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-price {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #7cf5b5;
}

.p-price span {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

/* ---------- 关注 / 地区 ---------- */

.follow-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.follow-row .p-card {
  aspect-ratio: 3 / 4;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.empty {
  margin-top: 10px;
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--hint);
  font-size: 13px;
}

/* ---------- 我的 ---------- */

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.profile-sub {
  font-size: 13px;
  color: var(--hint);
}

.role {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
}

.menu {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row .chevron {
  color: var(--hint);
}

/* ---------- 消息通知 ---------- */
.menu-badge {
  margin-left: auto;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.notif-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.notif-read-all {
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
}

.notif-item.unread {
  box-shadow: inset 3px 0 0 var(--accent);
}

.notif-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--hint);
}

.notif-icon.recharge { background: #34c759; }
.notif-icon.spend { background: #ff9500; }

.notif-main {
  flex: 1;
  min-width: 0;
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
}

.notif-content {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-all;
}

.notif-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--hint);
}

.notif-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--hint);
  font-size: 14px;
}

/* ---------- 入驻申请 / 管理后台 ---------- */

.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--accent);
}

.switch.on i {
  transform: translateX(18px);
}

.apply-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.apply-option:last-child {
  border-bottom: 0;
}

.apply-option b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.apply-option span.desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--hint);
}

.apply-shots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
}

.apply-shots img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.apply-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
}

.apply-name {
  font-size: 14px;
  font-weight: 500;
}

.apply-role {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
}

.apply-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hint);
}

.apply-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.apply-actions button {
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.apply-actions button.reject {
  border-color: rgba(232, 70, 58, 0.45);
  background: transparent;
  color: #e8463a;
}

.panel-empty {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--hint);
}

/* ---------- 底价 / 商家管理 ---------- */

.price-card.base {
  border-color: rgba(232, 162, 58, 0.45);
  background: rgba(232, 162, 58, 0.08);
}

.price-card.base b {
  color: #d98b1f;
}

.manage-item {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
}

.manage-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
}

.manage-info {
  flex: 1;
  min-width: 0;
}

.manage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.manage-name {
  font-size: 15px;
  font-weight: 600;
}

.manage-no {
  font-size: 12px;
  color: var(--hint);
}

.manage-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--hint);
}

.manage-meta b {
  color: var(--text);
  font-weight: 600;
}

.online-flag {
  color: #a1a1aa;
}

.online-flag.on {
  color: #0fdc78;
}

.manage-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.manage-actions button {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.manage-actions button.rec {
  border-color: rgba(255, 178, 60, 0.55);
  color: #ffb23c;
}

.manage-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

.rec-flag {
  color: #ffb23c;
}

.p-rec {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 178, 60, 0.16);
  color: #ffb23c;
  font-size: 10px;
  font-weight: 600;
}

.save-btn.ghost {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--hint);
}

.manage-actions button.danger {
  border-color: rgba(232, 70, 58, 0.45);
  color: #e8463a;
}

/* ---------- 余额与充值 ---------- */

.balance-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
}

.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.balance-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.balance-id-label {
  font-size: 12px;
  color: var(--hint);
}

.balance-id-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.balance-id-copy {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.balance-label {
  display: block;
  font-size: 12px;
  color: var(--hint);
}

.balance-value {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.balance-value small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--hint);
}

.recharge-btn {
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.recharge-grid button {
  padding: 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.recharge-grid b {
  font-size: 20px;
}

.recharge-grid span {
  margin-left: 2px;
  font-size: 12px;
  color: var(--hint);
}

/* ---------- 我的陪玩：悬浮增加按钮 ---------- */

.panel-fab {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 11px 30px;
  border: 1px solid #2f6fed;
  border-radius: 10px;
  background: #2f6fed;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.35);
}

.panel-fab:active {
  transform: translateX(-50%) scale(0.97);
}

.panel-fab-space {
  height: 80px;
}

/* ---------- 增加陪玩：照片上传 ---------- */

.photo-row {
  align-items: flex-start;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.photo-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.photo-hint {
  display: block;
  margin-top: 6px;
  color: var(--hint);
  font-size: 12px;
}

.photo-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1px 5px;
  border-radius: 0 6px 0 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 9px;
}

.photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.photo-add {
  width: 64px;
  height: 64px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--hint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 地区：搜索与省市区 ---------- */

.region-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.search-icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--hint);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.paste-btn {
  flex: none;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--line);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.paste-btn:active {
  opacity: 0.8;
}

.search-box input::placeholder {
  color: var(--hint);
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.region-selects {
  display: flex;
  gap: 8px;
}

.region-select:disabled {
  opacity: 0.55;
}

.setting-row .region-selects {
  flex: 1;
}

.region-select {
  flex: 1;
  min-width: 0;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b8b93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

/* 城市选择器：自定义弹层（列表限高，避免下拉过长） */
.city-picker-trigger {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 62vh;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--bg);
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.picker-head button {
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
}

.picker-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.picker-list {
  max-height: 45vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.picker-item {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
}

.picker-item.active {
  color: var(--accent);
  font-weight: 600;
}

.picker-item[hidden] {
  display: none;
}

.note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--hint);
}

/* ---------- 底部导航 ---------- */

.tabbar {
  display: flex;
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  background: var(--bg);
}

.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border: 0;
  background: transparent;
  color: var(--hint);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.tabbar button.active {
  color: var(--accent);
}

.tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 陪玩详情 ---------- */

.detail {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
}

.detail[hidden] {
  display: none;
}

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 90px;
  -webkit-overflow-scrolling: touch;
}

.copy-no-btn {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5;
  transform: translateX(-50%);
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.copy-no-btn:active {
  opacity: 0.85;
}

.detail-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.detail-photos {
  position: relative;
}

.detail-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.detail-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
}

.detail-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.detail-icon-btn.on {
  background: rgba(0, 0, 0, 0.6);
}

#iconFollow.on {
  color: #ffd257;
}

.detail-icon-btn.on svg {
  fill: currentColor;
}

.detail-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.detail-track::-webkit-scrollbar {
  display: none;
}

.detail-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--surface);
}

.detail-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.detail-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.detail-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.detail-dots button.active {
  width: 16px;
  background: #fff;
}

.detail-info {
  padding: 16px 16px 0;
}

.detail-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.status-pill {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  color: var(--hint);
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0fdc78;
}

.status-pill.offline .dot {
  background: #a1a1aa;
}

.detail-region {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--hint);
}

.detail-intro {
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hint);
  white-space: pre-wrap;
}

.detail-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.social-btn.follow:not(.on) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.social-btn.on {
  border-color: var(--accent);
  color: var(--accent);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding: 14px 0;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.detail-facts b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.detail-facts span {
  font-size: 12px;
  color: var(--hint);
}

.price-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.price-card {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card span {
  display: block;
  font-size: 12px;
  color: var(--hint);
}

.price-card b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.base-row {
  margin-top: 8px;
}

.base-row .price-card {
  padding: 10px;
}

.base-row .price-card b {
  font-size: 17px;
}

.tier-line {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hint);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
}

.reviews {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 14px;
}

.review {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review:last-child {
  border-bottom: 0;
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.review-user {
  font-size: 13px;
  font-weight: 500;
}

.review-time {
  font-size: 12px;
  color: var(--hint);
}

.stars {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #f5a623;
}

.review-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 40;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 设置 ---------- */

.settings-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--hint);
  cursor: pointer;
}

.settings-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-btn {
  flex: none;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
}

.sheet[hidden] {
  display: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-back {
  width: 28px;
  height: 28px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sheet-title {
  font-size: 17px;
  font-weight: 600;
}

.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 32px;
  -webkit-overflow-scrolling: touch;
}

.settings-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hint);
}

.settings-card {
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

/* ---------- 测试账号 ---------- */

.test-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.test-account-row:last-child {
  border-bottom: 0;
}

.test-account-row.active .test-account-main b {
  color: var(--accent);
}

.test-account-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.test-account-main b {
  font-size: 15px;
  font-weight: 500;
}

.test-account-main em {
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--line);
  color: var(--hint);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.test-account-main small {
  color: var(--hint);
  font-size: 12px;
}

.test-account-row .chevron {
  flex: none;
  color: var(--hint);
  font-size: 13px;
}

.test-exit {
  margin-top: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.intro-row {
  align-items: flex-start;
}

.intro-input {
  text-align: left;
  line-height: 1.5;
  min-height: 56px;
  resize: vertical;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-label {
  flex: none;
  font-size: 14px;
}

/* 价格分组标题：区分展示价格与圈内价格 */
.price-group-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.price-group-title small {
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
}

.setting-value {
  min-width: 0;
  color: var(--hint);
  font-size: 13px;
  text-align: right;
  word-break: break-all;
}

.avatar-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
}

.upload-btn {
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.nick-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: right;
  outline: none;
}

.nick-input:focus {
  border-bottom-color: var(--accent);
}

.save-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 0;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.logout-btn {
  width: 100%;
  margin-top: 24px;
  padding: 13px 0;
  border: 1px solid rgba(232, 70, 58, 0.45);
  border-radius: 10px;
  background: transparent;
  color: #e8463a;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* ---------- 管理员登录 / 申请审核 ---------- */

.admin-login {
  padding: 14px 16px;
}

.admin-login .nick-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 8px 0;
  text-align: left;
}

.admin-login .save-btn,
.admin-login .logout-btn {
  margin-top: 0;
}

.admin-login .note {
  margin-bottom: 0;
}

.admin-list {
  margin-top: 12px;
}

/* ---------- 管理后台：轮播广告 ---------- */
.ad-admin-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--surface);
}

.ad-admin-thumb {
  flex: none;
  width: 84px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.ad-admin-main {
  flex: 1;
  min-width: 0;
}

.ad-admin-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ad-admin-off {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
  font-size: 11px;
  font-weight: 500;
}

.ad-admin-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--hint);
}

.ad-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ad-admin-actions button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.ad-admin-actions button.danger {
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.4);
}

.ad-form-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px 12px;
  height: 120px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--hint);
  font-size: 13px;
  overflow: hidden;
}

.ad-form-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-pick-btn {
  width: auto;
  padding: 6px 12px;
  font-size: 13px;
}

.ad-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--hint);
}

.apply-content {
  flex: 1;
  min-width: 0;
}

.apply-review {
  margin-top: 5px;
  color: var(--hint);
  font-size: 12px;
  line-height: 1.5;
}

.apply-reject-reason,
.application-reason {
  color: #e8463a;
  line-height: 1.5;
}

.apply-reject-reason {
  margin-top: 5px;
  font-size: 12px;
  word-break: break-word;
}

.reject-form {
  display: block;
  margin-top: 16px;
  font-size: 14px;
}

.reject-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.reject-textarea:focus {
  border-color: #e8463a;
}

.reject-submit {
  border-color: #e8463a;
  background: #e8463a;
  color: #fff;
}

.cancel-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--hint);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* 余额卡：仅展示，不再提供自助充值 */
.balance-hint {
  font-size: 12px;
  color: var(--hint);
}

/* 管理后台菜单 */
.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* 商家充值列表 */
.merchant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.merchant-info {
  flex: 1;
  min-width: 0;
}

.merchant-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.merchant-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hint);
}

.merchant-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.merchant-balance {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.merchant-balance small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
}

/* 余额变动记录 */
.tx-row {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.tx-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-type {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tx-recharge {
  background: rgba(46, 160, 67, 0.12);
  color: #2ea043;
}

.tx-spend {
  background: rgba(232, 70, 58, 0.12);
  color: #e8463a;
}

.tx-refund {
  background: rgba(210, 153, 34, 0.12);
  color: #d29922;
}

.tx-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-amount {
  font-size: 16px;
  font-weight: 700;
}

.tx-amount.plus {
  color: #2ea043;
}

.tx-amount.minus {
  color: #e8463a;
}

.tx-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--hint);
  line-height: 1.5;
  word-break: break-word;
}

/* 充值统计卡片 */
.stat-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-tab {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--hint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.stat-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.stat-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stat-custom input[type='date'] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.stat-custom span {
  color: var(--hint);
  font-size: 12px;
}

.stat-query {
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.stat-metrics {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--bg);
}

.stat-metric-label {
  font-size: 11px;
  color: var(--hint);
}

.stat-metric-val {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.stat-metric-val small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
}

.stat-chart {
  margin-top: 4px;
}

.stat-bars {
  display: flex;
  align-items: flex-end;
  height: 150px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.stat-bar-col {
  flex: 1 1 0;
  min-width: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.stat-bar-val {
  font-size: 10px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
  white-space: nowrap;
}

.stat-bar {
  width: 100%;
  max-width: 22px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), #7aa2ff);
}

.stat-bar-label {
  margin-top: 4px;
  font-size: 9px;
  color: var(--hint);
  white-space: nowrap;
}

/* 商家充值管理：搜索框 */
.merchant-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.merchant-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.merchant-search-input:focus {
  border-color: var(--accent);
}

.merchant-search-clear {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--hint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.merchant-search-clear:active {
  background: var(--bg);
}

/* 统计指标卡可点击：查看充值明细 */
.stat-metric {
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.stat-metric:hover {
  background: var(--bg);
}

.stat-metric:active {
  transform: scale(0.97);
}

/* 充值记录汇总条 */
.tx-summary {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.tx-summary b {
  color: var(--accent);
}

/* 擅长类型：自定义标签编辑器 */
.skills-row .skill-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}

.skill-chip-del {
  border: none;
  background: transparent;
  color: var(--hint);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.skill-chip-del:hover {
  color: var(--accent);
}

.skill-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.skill-input {
  flex: 1;
  min-width: 0;
}

.skill-add-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.skill-add-btn:active {
  opacity: 0.85;
}





/* 平台规则提示弹窗 */
.rules-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.rules-mask[hidden] {
  display: none;
}

.rules-card {
  width: min(92vw, 380px);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: rulesIn 0.22s ease-out;
}

@keyframes rulesIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rules-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.rules-body {
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
}

.rules-body p {
  margin: 0 0 8px;
}

.rules-body ol {
  margin: 0 0 8px;
  padding-left: 18px;
}

.rules-body li {
  margin-bottom: 6px;
}

.rules-tip {
  color: var(--hint);
  font-size: 12px;
}

.rules-btn {
  margin-top: 12px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}

.rules-btn:active {
  opacity: 0.85;
}
