:root {
  --primary: #5c6ef2;
  --primary-soft: #8aa4f8;
  --price: #ff5a3c;
  --yellow: #ffe56a;
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #222;
  --text-sub: #9aa0b4;
  --tab-height: 54px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; border: none; outline: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 12px);
  background: var(--bg);
}

.home-hero {
  position: relative;
  z-index: 1;
  padding: 12px 16px 16px;
  background: transparent;
}
.home-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: linear-gradient(90deg, #6f84f6 0%, #9aa8f8 52%, #8f9cf5 100%);
}

.announcement {
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(92, 110, 242, 0.08);
  color: #4a5163;
  font-size: 13px;
  font-weight: 500;
  line-height: 38px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.25);
}
.banner-track { display: flex; transition: transform .35s ease; }
.banner-item { flex: 0 0 100%; aspect-ratio: 16 / 9; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.banner-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }
.banner-dot.active { width: 14px; border-radius: 99px; background: #fff; }

.category-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }
.category-item {
  flex: 0 0 64px;
  width: 64px;
  text-align: center;
  cursor: pointer;
}
.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 12px !important;
  overflow: hidden;
  background: rgba(255,255,255,.4);
  box-shadow: none;
  border: 0;
  flex-shrink: 0;
}
.category-item.active .category-icon {
  border: 0;
  box-shadow: none;
  background: rgba(255,255,255,.7);
}
.category-icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px !important;
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  opacity: .72;
}
.category-item.active .category-icon img {
  -webkit-filter: grayscale(0) !important;
  filter: grayscale(0) !important;
  opacity: 1 !important;
}
.category-name {
  font-size: 12px;
  color: #9aa3b5;
  white-space: nowrap;
}
.category-item.active .category-name { color: #222 !important; font-weight: 600; }

.home-main { padding: 12px 12px 8px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 36, 48, 0.04);
}
.search-bar svg { color: #b4bacb; flex-shrink: 0; }
.search-bar input { flex: 1; font-size: 13px; color: #333; }
.search-bar input::placeholder { color: #b8beca; }

.filter-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #7b8296;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 36, 48, 0.05);
}
.product-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eceff8;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-banner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  min-height: 28px;
  padding: 5px 8px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-banner em {
  color: var(--yellow);
  font-style: normal;
}
.product-body { padding: 8px 8px 10px; }
.product-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  min-height: 32px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #a0a6b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.product-price {
  color: var(--price);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.4px;
}
.product-price del {
  margin-left: 4px;
  color: #c5cad6;
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
}
.product-badge {
  padding: 3px 6px;
  border-radius: 4px;
  background: #1d1d1d;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.empty-box, .loading-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 16px;
  color: var(--text-sub);
  font-size: 14px;
}
.empty-box { overflow: visible; }
.empty-box::before {
  content: "";
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  background: url("../../imges/empty.svg") center / contain no-repeat;
}
.empty-box:has(.empty-illu)::before,
.empty-box:has(.fav-ico)::before { display: none; }
.empty-illu {
  width: 148px; height: 148px;
  margin: 0 auto 10px;
  display: block;
  overflow: visible;
}
.empty-box .mdi { display: none; }
.empty-box p { margin:0 0 10px; }
.empty-box a {
  display:inline-block; height:32px; line-height:32px; padding:0 14px;
  border-radius:16px; background:#eef1ff; color:var(--primary); font-size:13px; font-weight:600;
}

.float-service {
  position: fixed;
  right: max(8px, calc(50% - 240px + 8px));
  bottom: calc(var(--tab-height) + var(--safe-bottom) + 16px);
  width: 76px;
  z-index: 90;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  will-change: transform;
  filter: drop-shadow(0 8px 16px rgba(255, 122, 69, 0.24));
}
.float-service.is-dragging {
  cursor: grabbing;
  z-index: 200;
  filter: none;
}
.float-service img {
  width: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.float-service.float-order { bottom: calc(24px + var(--safe-bottom)); }
.page-porders.has-bar ~ .float-service.float-order { bottom: calc(88px + var(--safe-bottom) + 8px); }

.cs-pop {
  position: relative;
  width: min(100%, 320px);
  padding: 22px 18px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20,24,50,.18);
  text-align: left;
}
.cs-pop-x {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  color: #9aa0b4; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cs-pop-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: #eef1ff; color: #5c6ef2;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 12px;
}
.cs-pop h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cs-pop > p { font-size: 13px; color: #8b93a7; line-height: 1.5; margin-bottom: 14px; }
.cs-pop .h5-textarea { height: 110px; background: #f4f6fb; border-radius: 12px; }
.cs-pop .remark-count { text-align: right; margin: 8px 0 14px; }
.cs-pop-ft { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.cs-pop-ft .h5-btn { height: 44px; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  height: calc(var(--tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #eef0f5;
  z-index: 100;
}
.tab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #b0b6c6;
  font-size: 11px;
}
.tab-item .tab-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 2px #fff;
  z-index: 1;
}
.tab-item span { transition: color .2s; }
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-item svg { width: 24px; height: 24px; display: block; }
.tab-item .tab-fill { fill: #c5cad6; transition: fill .25s; }
.tab-item.active .tab-fill { fill: #5c6ef2; }
.tab-item.active svg { animation: tab-ico-pop .4s cubic-bezier(.2,1.45,.35,1); }
@keyframes tab-ico-pop {
  0% { transform: scale(.72) translateY(4px); opacity: .6; }
  55% { transform: scale(1.14) translateY(-1px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

.h5-toast {
  position: fixed; left: 50%; top: 42%; z-index: 9999;
  transform: translate(-50%, -50%);
  max-width: 80%; padding: 10px 16px; border-radius: 8px;
  background: rgba(20,24,38,.86); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.h5-toast.show { opacity: 1; }

.skill-badge {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  height: 22px; min-width: 82px; margin-top: 4px;
  padding: 0 12px 1px 28px;
  font-size: 10px; font-weight: 800; font-style: normal;
  letter-spacing: 0; line-height: 1; white-space: nowrap;
  color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border: none; border-radius: 0;
  overflow: hidden;
}
.skill-badge.lv1 { color: #6d8b8d; background-image: url("../../imges/skill-1.svg?v=2"); }
.skill-badge.lv2 { background-image: url("../../imges/skill-2.svg?v=2"); }
.skill-badge.lv3 { background-image: url("../../imges/skill-3.svg?v=2"); }
.skill-badge.lv4 { background-image: url("../../imges/skill-4.svg?v=2"); }
.skill-badge.lv5 { background-image: url("../../imges/skill-5.svg?v=2"); }
.skill-badge.lv2, .skill-badge.lv4, .skill-badge.lv5 {
  min-width: 92px; font-size: 9px; padding: 0 12px 1px 28px;
}
.skill-badge.skill-frame { min-width: 86px; }
.skill-badge.custom {
  min-width: 0; padding: 0 8px 0 2px; gap: 4px;
  color: #4a3f32; background-image: none; background: #f4efe6;
  border-radius: 999px;
}
.skill-badge.custom img {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: #fff;
}
.skill-badge.custom em {
  font-style: normal; font-weight: 800; padding-right: 2px;
}
.gender-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px; border-radius: 4px;
  background: #dbe4ff; color: #4d6ef5; font-size: 12px; vertical-align: middle;
}
.gender-ico.female { background: #ffd6e7; color: #e85a8a; }
.pw-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 10px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.pw-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #edf0ff; flex-shrink: 0; }
.pw-card .pw-main { flex: 1; min-width: 0; }
.pw-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; }
.pw-card .pw-intro { font-size: 12px; color: #8b93a7; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-link {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0; color: inherit;
}
.fav-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f4f6fb;
  -webkit-tap-highlight-color: transparent;
}
.fav-ico { width: 22px; height: 22px; display: block; }
.fav-ico .fav-fill { fill: #64EDAC; transition: fill .2s; }
.fav-ico.on .fav-fill { fill: #FF5A7A; }
.page-favs .product-card { position: relative; }
.page-favs .fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(20,24,50,.1);
}
.page-follows .empty-box::before,
.page-favs .empty-box::before { display: none; }
.empty-box .fav-ico { width: 48px; height: 48px; margin: 0 auto 10px; }
.empty-box .fav-ico .fav-fill { fill: #d5dae6; }
.mine-grid .g-ico .fav-ico { width: 26px; height: 26px; }
.pw-pick {
  flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px;
  background: #dce6ff; color: #3d5bd6; font-size: 13px; font-weight: 600;
}
.pw-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0;
}
.pw-card .voice-btn {
  margin: 0; height: 26px; min-width: 62px; padding: 0 10px; border-radius: 999px;
  background: #eef1ff; color: var(--primary); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.pw-card .voice-btn.is-play { background: #e4e9ff; }
.hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin: 2px 0 4px;
}
.page-play .category-row { margin-top: 10px; }
.page-assign .home-hero::before,
.page-play .home-hero::before {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: linear-gradient(90deg, #6f84f6 0%, #9aa8f8 52%, #c5ccfb 100%);
}
.page-assign .category-icon,
.page-assign .category-icon img,
.page-play .category-icon,
.page-play .category-icon img { border-radius: 12px; }
.page-assign .category-icon img,
.page-play .category-icon img { -webkit-filter: grayscale(1); filter: grayscale(1); opacity: .72; }
.page-assign .category-item.active .category-icon img,
.page-play .category-item.active .category-icon img { -webkit-filter: grayscale(0) !important; filter: grayscale(0) !important; opacity: 1 !important; }
.page-assign .category-name,
.page-play .category-name { color: #9aa3b5; }
.page-assign .category-item.active .category-name,
.page-play .category-item.active .category-name {
  color: #222;
  font-weight: 700;
  border-bottom: none !important;
  padding-bottom: 0;
  box-shadow: none;
}
.assign-body, .play-body {
  position: relative; z-index: 2;
  margin-top: -10px; padding: 12px 12px 20px;
  background: var(--bg);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  min-height: 50vh;
}
.page-player { padding-bottom: calc(72px + var(--safe-bottom)); }
.page-player .h5-hero {
  min-height: 168px;
  padding: 14px 16px 48px;
  overflow: hidden;
}
.page-player.has-cover .h5-hero { min-height: 210px; }
.page-player.has-cover .h5-hero::before { opacity: 0; }
.page-player .h5-nav { position: relative; z-index: 2; }
.page-player .h5-nav .right { width: 24px; }
.page-player .h5-nav .right svg { width: 22px; height: 22px; display: block; }
.page-player .h5-nav .right .fav-fill { fill: #64EDAC; transition: fill .2s; }
.page-player .h5-nav .right.on .fav-fill { fill: #FF5A7A; }
.player-cover {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,50,.22) 0%, rgba(20,24,50,.08) 42%, rgba(92,110,242,.55) 100%);
}
.page-player .h5-sheet {
  margin-top: -28px;
  padding: 0 12px 24px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.player-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
  padding: 0 4px 14px;
}
.player-ava {
  width: 72px; height: 72px; border-radius: 50%;
  margin-top: -36px;
  object-fit: cover; background: #fff; flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(20,24,50,.16);
}
.player-hero-info { flex: 1; min-width: 0; padding-top: 8px; }
.player-hero-info h2 {
  font-size: 18px; font-weight: 700; color: #222;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.player-hero-info .skill-badge { margin-top: 0; height: 24px; min-width: 88px; font-size: 11px; padding: 0 12px 1px 30px; }
.player-hero-info .skill-badge.lv2,
.player-hero-info .skill-badge.lv4,
.player-hero-info .skill-badge.lv5 { min-width: 98px; font-size: 10px; }
.player-hero-info .skill-badge.custom { min-width: 0; padding: 0 10px 0 2px; }
.player-hero-info .skill-badge.custom img { width: 20px; height: 20px; }
.player-hero-info .gender-ico { margin-left: 0; }
.player-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 8px; font-size: 12px; color: #8b93a7;
}
.player-meta b { color: #222; font-weight: 700; }
.player-score { display: inline-flex; align-items: center; gap: 3px; }
.player-score .score-ico { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.player-profile .voice-btn {
  margin: 10px 0 0 auto; height: 28px; min-width: 76px; padding: 0 12px; border-radius: 999px;
  background: #eef1ff; color: var(--primary); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: background .2s, transform .2s;
}
.voice-btn .voice-ico { width: 12px; height: 12px; display: block; flex-shrink: 0; }
.voice-btn .voice-pause { display: none; }
.voice-btn .voice-play {
  transform-origin: 55% 50%;
  animation: voice-play-idle 1.8s ease-in-out infinite;
}
.voice-btn.is-play {
  background: #e4e9ff;
}
.voice-btn.is-play .voice-play { display: none; animation: none; }
.voice-btn.is-play .voice-pause { display: block; }
.voice-btn.is-play .voice-pause path {
  transform-box: fill-box;
  transform-origin: center;
  animation: voice-bar 0.7s ease-in-out infinite;
}
.voice-btn.is-play .voice-pause path:nth-child(2) { animation-delay: .18s; }
@keyframes voice-play-idle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes voice-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.55); }
}
.player-tabs {
  display: flex;
  margin: 0 -12px 12px;
  padding: 0 4px;
  background: #fff;
  border-bottom: 1px solid #eef0f5;
}
.player-tab {
  flex: 1; height: 44px;
  font-size: 15px; font-weight: 600; color: #8b93a7;
  position: relative;
}
.player-tab .tab-num {
  margin-left: 4px; font-size: 11px; font-weight: 500; color: #b4bacb;
}
.player-tab.active { color: #222; }
.player-tab.active .tab-num { color: var(--primary); }
.player-tab.active::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 44px; height: 13px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3072 1024'%3E%3Cpath fill='%235c6ef2' d='M491.52 192c380.672-305.408 909.824-240.128 1219.584 151.04 142.336 179.456 379.648 218.368 561.92 97.792l33.536-24.32 139.776-112.128c103.936-83.456 244.992-101.12 356.864 45.056 111.872 145.92 23.808 262.4-60.416 349.696l-22.528 20.48-140.032 112.384c-380.416 305.408-909.568 240.128-1219.328-151.04-142.336-179.456-379.648-218.368-561.92-97.792l-33.536 24.32-139.776 112.128c-103.936 83.456-261.376 66.56-350.72-49.408-89.088-115.968-29.952-258.048 54.272-345.6l22.528-20.48 140.032-112.128z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: tab-wave-in .28s ease-out both, tab-wave-flow 1.15s ease-in-out .28s infinite;
}
@keyframes tab-wave-in {
  from { width: 12px; opacity: 0; }
  to { width: 44px; opacity: 1; }
}
@keyframes tab-wave-flow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-38%) translateY(-1px); }
}
.page-player .filter-tabs { padding: 0 0 12px; }
.player-tip-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); bottom: 0; z-index: 80;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: #fff; box-shadow: 0 -4px 16px rgba(31,36,48,.06);
}
.player-tip-btn {
  width: 100%; height: 44px; border-radius: 22px;
  background: linear-gradient(90deg, #ffb347, #ff7b54);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.player-tip-btn .mdi { font-size: 20px; }
.tip-panel {
  width: min(100%, 480px); margin: auto;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 0 16px calc(16px + var(--safe-bottom));
}
.tip-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
}
.tip-hd b { font-size: 16px; }
.tip-close { width: 32px; height: 32px; color: #9aa0b4; font-size: 20px; }
.tip-gifts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px; max-height: 220px; overflow-y: auto;
}
.tip-gifts-empty {
  grid-column: 1 / -1; padding: 24px 0; text-align: center;
  font-size: 13px; color: #9aa0b4;
}
.tip-gift {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 10px 6px; border-radius: 14px; background: #f4f6fb;
  border: 1.5px solid transparent;
}
.tip-gift.on { background: #fff7ef; border-color: #ffc9a8; }
.tip-gift img { width: 44px; height: 44px; object-fit: contain; }
.tip-gift-ph {
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; color: #ff8a4c; font-size: 24px;
}
.tip-gift em { font-size: 12px; color: #333; font-style: normal; font-weight: 700; line-height: 1.2; }
.tip-gift-price { font-size: 11px; color: #ff5a3c; font-weight: 600; line-height: 1; }
.tip-presets {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.tip-preset {
  height: 36px; border-radius: 8px; background: #f4f6fb;
  color: #4b5568; font-size: 14px; font-weight: 700;
}
.tip-preset.on { background: #fff1e8; color: #ff6b35; }
.tip-input-row {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; margin-bottom: 10px;
  border-radius: 10px; background: #f4f6fb;
}
.tip-input-row span { font-size: 18px; font-weight: 800; color: #ff5a3c; }
.tip-input-row input {
  flex: 1; height: 100%; border: 0; background: transparent;
  font-size: 18px; font-weight: 700;
}
.tip-msg {
  width: 100%; padding: 10px 12px; margin-bottom: 12px;
  border-radius: 10px; background: #f4f6fb; font-size: 14px;
  resize: none;
}
.tip-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tip-pay-btn {
  height: 38px; border-radius: 8px; background: #f4f6fb; color: #4b5568; font-size: 13px; font-weight: 600;
}
.tip-pay-btn.on { background: #eef1ff; color: #5c6ef2; }
.tip-submit {
  width: 100%; height: 44px; border-radius: 22px;
  background: linear-gradient(90deg, #ffb347, #ff7b54);
  color: #fff; font-size: 16px; font-weight: 800;
}
#tipModal.modal-mask { align-items: flex-end; }
.player-album {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.album-cell {
  padding: 0; border: 0; background: #edf0ff;
  border-radius: 8px; overflow: hidden;
}
.album-cell img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.player-about-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.player-about-title {
  padding: 14px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.player-info-list { padding: 4px 16px 2px; }
.player-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-bottom: 0.5px solid #ededed;
}
.player-info-row:last-child { border-bottom: none; }
.player-info-row span {
  flex-shrink: 0;
  font-size: 14px;
  color: #888;
}
.player-info-row b {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-align: right;
}
.player-about-text {
  padding: 8px 16px 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.65;
}
.player-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 14px;
}
.player-about-card .player-review { padding-left: 16px; padding-right: 16px; }
.player-about-card .empty-box { padding: 8px 16px 16px; }
.player-review {
  display: flex; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid #f2f3f7;
}
.player-review:last-child { border-bottom: 0; padding-bottom: 0; }
.player-review:first-of-type { padding-top: 4px; }
.player-review img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #edf0ff; flex-shrink: 0;
}
.player-review-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.player-review-hd b { font-size: 13px; }
.player-review-hd span { font-size: 11px; color: #b4bacb; }
.player-stars { color: #ffb020; font-size: 12px; margin: 2px 0 4px; }
.player-stars .mdi-star-outline { color: #e5e7ef; }
.player-review p { font-size: 13px; color: #4b5568; line-height: 1.55; }
.album-preview {
  padding: 0; background: rgba(8,10,16,.96);
  z-index: 320; touch-action: none;
  flex-direction: column; align-items: stretch; justify-content: stretch;
}
.album-preview-close {
  position: absolute; z-index: 2;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 36px; height: 36px; border-radius: 18px;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.album-preview-stage {
  flex: 1; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
}
.album-preview img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  border-radius: 0; object-fit: contain;
  transform-origin: center center;
  user-select: none; -webkit-user-drag: none;
  will-change: transform;
}
.album-preview-bar {
  position: absolute; left: 0; right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: #fff; font-size: 13px;
  pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
body.album-open { overflow: hidden; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-wrap { position: relative; }
.modal-panel {
  width: min(100%, 320px);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.modal-panel img { width: 100%; display: block; }
.modal-mask.entry-ad { cursor: pointer; }
.modal-mask.entry-ad .modal-panel {
  width: min(100%, 340px);
  background: transparent;
}
.modal-mask.entry-ad .modal-panel img {
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}
.modal-close {
  position: absolute;
  top: -40px; right: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #333;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
}
.service-panel {
  width: min(100%, 300px);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.service-panel img {
  width: 180px;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.service-panel p { font-size: 14px; color: #666; }
.know-btn {
  margin-top: 12px;
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.hidden { display: none !important; }

.page-catalog {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
  overflow: hidden;
  background: #f5f6fa;
}
.page-catalog .home-hero {
  flex-shrink: 0;
  padding: 12px 16px 22px;
}
.page-catalog .home-hero::before {
  border-radius: 0;
}
.page-catalog .category-row { margin-top: 0; }
.page-catalog .category-item.active .category-name {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.catalog-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  min-height: 0;
  margin-top: -16px;
  background: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
}
.catalog-side {
  width: 86px;
  flex-shrink: 0;
  background: #f3f4f8;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}
.catalog-side-item {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #333;
  line-height: 1.3;
  background: transparent;
  z-index: 1;
}
.catalog-side-item .side-txt { position: relative; z-index: 1; }
.catalog-side-item .side-mark,
.catalog-side-item .side-curve { display: none; pointer-events: none; }
.catalog-side-item.active {
  color: var(--primary);
  font-weight: 700;
  background: #fff;
  z-index: 2;
}
.catalog-side-item.active .side-mark {
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 0 3px 3px 0;
  background: #5c6ef2;
}
.catalog-side-item.active .side-curve {
  display: block;
  position: absolute;
  right: 0;
  width: 16px;
  height: 16px;
}
.catalog-side-item.active .side-curve-t { top: -16px; }
.catalog-side-item.active .side-curve-b { bottom: -16px; }
.catalog-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 20px;
  background: #fff;
}
.catalog-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid #8ec8ff;
}
.catalog-list { display: flex; flex-direction: column; }
.catalog-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f7;
  cursor: pointer;
}
.catalog-item:last-child { border-bottom: none; }
.catalog-item-cover {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eceff8;
}
.catalog-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-item-cover .product-banner {
  min-height: 22px;
  padding: 3px 6px;
  font-size: 10px;
}
.catalog-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.catalog-item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.catalog-item-desc {
  flex: 1;
  font-size: 12px;
  line-height: 1.45;
  color: #8b93a7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-item-price {
  margin-top: 6px;
  color: var(--price);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.catalog-item-price del {
  margin-left: 6px;
  color: #c5cad6;
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}
.page-catalog .empty-box,
.page-catalog .loading-box {
  padding: 36px 10px;
}

.h5-hero {
  position: relative;
  z-index: 1;
  padding: 14px 16px 26px;
  color: #fff;
}
.h5-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #6f84f6 0%, #9aa8f8 52%, #c5ccfb 100%);
  pointer-events: none;
}
.h5-nav {
  display: flex; align-items: center; gap: 10px;
  height: 36px; margin-bottom: 8px;
}
.h5-nav .back { font-size: 22px; color: #fff; }
.h5-nav h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.h5-nav .right { width: 22px; }
.h5-sheet {
  position: relative; z-index: 2;
  margin: -16px 0 0;
  padding: 12px 12px 20px;
  min-height: 60vh;
  background: var(--bg);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.h5-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.menu-card { padding: 0; overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f2f3f7;
  font-size: 15px; color: #222;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .mdi { font-size: 20px; color: var(--primary); }
.menu-item .menu-ico {
  width: 28px; height: 28px; flex: 0 0 28px;
  object-fit: contain; display: block;
}
.menu-item .txt { flex: 1; }
.menu-item .mdi-chevron-right { color: #c5cad6; margin-left: auto; }
.h5-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px;
  border-radius: 10px; background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 700;
}
.h5-btn:disabled { opacity: .55; }
.h5-btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.h5-btn.danger { background: #ff5a3c; }
.h5-input, .h5-textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border-radius: 10px; background: #f4f6fb; font-size: 14px;
}
.h5-textarea { height: 88px; padding: 10px 12px; resize: none; }
.h5-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.h5-tabs::-webkit-scrollbar { display: none; }
.h5-tab {
  flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 8px;
  background: #fff; color: #7b8296; font-size: 13px;
}
.h5-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.tag-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; background: #eef1ff; color: var(--primary);
}
.tag-pill.gray { background: #eef0f4; color: #8b93a7; }
.tag-pill.orange { background: #fff1e8; color: #ff7a3c; }
.tag-pill.green { background: #e8f8ef; color: #1aa35a; }
.page-grab { padding-bottom: calc(18px + var(--safe-bottom)) !important; }
.page-grab .grab-games { padding: 2px 0 8px; }
.page-grab .grab-types { padding: 0 0 12px; }
.page-grab .grab-types .h5-tab { height: 28px; font-size: 12px; }
.grab-card {
  background: #fff; border-radius: 14px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.grab-top { display: flex; align-items: center; gap: 10px; color: inherit; }
.grab-top img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #edf0ff; flex-shrink: 0;
}
.grab-main { flex: 1; min-width: 0; }
.grab-main h3 {
  font-size: 15px; font-weight: 800; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grab-go { flex-shrink: 0; font-size: 22px; color: #c5cad6; }
.grab-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.grab-meta .po-price { font-size: 18px; }
.grab-meta span { font-size: 12px; color: #8b93a7; }
.grab-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 6px; background: #eef1ff; color: #5c6ef2;
  font-size: 11px; font-weight: 700; font-style: normal;
}
.grab-tag.quick { background: #fff1e8; color: #ff7a3c; }
.grab-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.grab-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  background: #f4f6fb; color: #8b93a7; font-size: 12px;
}
.grab-chip b { color: #222; font-weight: 700; }
.grab-info { margin-top: 8px; }
.grab-info .form-kv { padding: 6px 0; font-size: 13px; }
.grab-ft { margin-top: 12px; }
.grab-ft .h5-btn { width: 100%; height: 40px; }
.grab-ft .h5-btn[disabled] { opacity: .7; }
.player-row, .order-row {
  display: flex; gap: 10px; padding: 12px; background: #fff;
  border-radius: 12px; margin-bottom: 10px;
}
.player-row img, .order-row img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #edf0ff;
}
.player-row h3, .order-row h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.player-row p, .order-row p { font-size: 12px; color: #8b93a7; line-height: 1.4; }
.fix-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: #fff; border-top: 1px solid #eef0f5; z-index: 80;
  box-shadow: 0 -8px 24px rgba(31,36,48,.06);
}
.wallet-num { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wallet-mini {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallet-mini.three { grid-template-columns: 1fr 1fr 1fr; }
.wallet-mini a { color: inherit; text-decoration: none; }
.wallet-cards { display: grid; gap: 10px; margin-bottom: 12px; }
.wallet-card {
  display: block; background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(31,36,48,.05); color: inherit; text-decoration: none;
}
.wallet-card .name { font-size: 13px; color: #8b93a7; }
.wallet-card .num { font-size: 26px; font-weight: 800; margin: 4px 0; }
.wallet-card .tip { font-size: 12px; color: #5c6ef2; }

.page-wallet {
  position: relative;
  overflow: visible;
}
.page-wallet .h5-hero { overflow: visible; }
.page-wallet .wallet-deco {
  position: absolute;
  right: 4px;
  top: 18px;
  width: 118px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
}
.page-wallet .wallet-main { position: relative; z-index: 1; }
.ticket-bal {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 108px 14px 2px;
}
.ticket-bal span { font-size: 14px; color: #3c4660; font-weight: 600; }
.ticket-bal b { font-size: 34px; font-weight: 800; color: #111; letter-spacing: -1px; line-height: 1; }
.ticket-bal em { font-style: normal; font-size: 14px; color: #3c4660; }
.ticket-acts { display: flex; gap: 10px; margin-bottom: 12px; }
.ticket-acts a {
  flex: 1; height: 36px; line-height: 36px; text-align: center;
  border-radius: 18px; background: #eef1ff; color: #5c6ef2;
  font-size: 13px; font-weight: 700;
}
.ticket-acts a:last-child { background: #5c6ef2; color: #fff; }
.ticket-tabs {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px;
  scrollbar-width: none;
}
.ticket-tabs::-webkit-scrollbar { display: none; }
.ticket-tabs button {
  flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 14px;
  background: #f4f6fb; color: #7b8296; font-size: 12px;
}
.ticket-tabs button.on { background: #5c6ef2; color: #fff; font-weight: 600; }
.ticket-logs { padding-bottom: 8px; }
.ticket-log {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f2f4f8;
}
.ticket-log .t { font-size: 14px; color: #222; }
.ticket-log .s { font-size: 12px; color: #8b93a7; margin-top: 3px; }
.ticket-log b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.page-wallet .empty-box, .page-wallet .loading-box { background: transparent; box-shadow: none; }

.recommend-row { margin: 2px 0 16px; }
.recommend-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.recommend-head b { font-size: 16px; font-weight: 800; }
.recommend-head a {
  display: inline-flex; align-items: center;
  font-size: 12px; color: #8b93a7; font-weight: 600;
}
.recommend-head a .mdi { font-size: 16px; margin-left: -2px; }
.recommend-scroller {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: none;
}
.recommend-scroller::-webkit-scrollbar { display: none; }
.recommend-item {
  flex: 0 0 112px;
  background: #fff; border-radius: 14px; overflow: hidden;
  color: #222; text-decoration: none;
  box-shadow: 0 4px 14px rgba(31,36,48,.06);
}
.recommend-cover {
  position: relative; height: 112px; background: #edf0ff;
}
.recommend-cover img { width: 100%; height: 100%; object-fit: cover; }
.recommend-online {
  position: absolute; left: 6px; top: 6px;
  height: 18px; padding: 0 7px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(15,18,30,.48); color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal;
}
.recommend-online i {
  width: 6px; height: 6px; border-radius: 50%; background: #c5cad6;
}
.recommend-online.on1 { background: rgba(26,163,90,.9); }
.recommend-online.on1 i { background: #bbf7d0; }
.recommend-online.on2 { background: rgba(255,122,60,.92); }
.recommend-online.on2 i { background: #ffe0cc; }
.recommend-body { padding: 8px 8px 10px; }
.recommend-body .nm {
  font-size: 13px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recommend-item .skill-badge {
  display: inline-flex; margin: 6px 0 0; height: 18px; min-width: 68px;
  padding: 0 8px 0 22px; font-size: 8px;
}
.recommend-item .skill-badge.lv2,
.recommend-item .skill-badge.lv4,
.recommend-item .skill-badge.lv5 { min-width: 76px; font-size: 7px; }
.recommend-item .skill-badge.custom { min-width: auto; padding: 0 6px 0 1px; }
.recommend-item .skill-badge.custom img { width: 16px; height: 16px; }
.recommend-item .skill-badge.custom em { font-size: 8px; }
.recommend-body .meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 11px; color: #8b93a7;
}
.recommend-body .meta em { font-style: normal; font-weight: 700; color: #ffb020; }

.page-lottery { padding-bottom: calc(18px + var(--safe-bottom)) !important; }
.page-lottery .h5-hero { padding-bottom: 36px; }
.page-order-lottery .h5-sheet { padding-top: 4px; }
.lot-stage { margin-top: -12px; padding: 0 0 10px; }
.lot-board {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #7286f7 0%, #5c6ef2 52%, #4a5de8 100%);
  box-shadow: 0 14px 32px rgba(76, 94, 232, .28);
}
.lot-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 0 2px;
  color: rgba(255,255,255,.95); font-size: 13px; font-weight: 600;
}
.lot-meta b {
  min-width: 30px; height: 26px; padding: 0 10px; border-radius: 13px;
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 15px; line-height: 26px; text-align: center;
}
.lottery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: rgba(16, 22, 68, .18); border-radius: 18px; padding: 10px;
}
.lottery-grid.is-count-1 {
  grid-template-columns: minmax(0, 140px);
  justify-content: center;
}
.lottery-grid.is-count-2 { grid-template-columns: repeat(2, 1fr); }
.lottery-grid.is-count-3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lottery-grid.is-count-4 { grid-template-columns: repeat(2, 1fr); }
.lottery-grid.is-count-5,
.lottery-grid.is-count-6,
.lottery-grid.is-count-7,
.lottery-grid.is-count-8,
.lottery-grid.is-count-9 { grid-template-columns: repeat(3, 1fr); }
.lottery-cell {
  min-height: 96px; border-radius: 16px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: #24304a; font-weight: 700;
  border: 2px solid transparent; padding: 10px 6px; text-align: center;
  box-shadow: 0 4px 12px rgba(31, 36, 48, .06);
  transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
}
.page-order-lottery .lottery-grid.is-count-1 .lottery-cell,
.page-order-lottery .lottery-grid.is-count-2 .lottery-cell,
.page-order-lottery .lottery-grid.is-count-3 .lottery-cell {
  min-height: 112px;
  padding: 12px 8px;
}
.lottery-cell span {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lottery-cell img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.page-order-lottery .lottery-grid.is-count-3 .lottery-cell img,
.page-order-lottery .lottery-grid.is-count-2 .lottery-cell img,
.page-order-lottery .lottery-grid.is-count-1 .lottery-cell img {
  width: 52px; height: 52px;
}
.lottery-cell .mdi { font-size: 28px; color: #5c6ef2; }
.lottery-cell.is-miss { background: #f7f8fc; color: #9aa0b4; }
.lottery-cell.is-miss .mdi { color: #9aa0b4; }
.lottery-cell.active {
  border-color: #fff; background: #fff9ed; color: #c27803;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255,255,255,.4), 0 10px 20px rgba(31,36,48,.14);
}
.lot-draw {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; margin-top: 14px;
  border-radius: 14px; background: #fff; color: #5c6ef2;
  font-size: 16px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 10px 20px rgba(31,36,48,.1);
}
.lot-draw:disabled { opacity: .72; }
.page-order-lottery .lot-rule {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; margin-top: 2px;
  font-size: 12px; color: #8b93a7; line-height: 1.65;
  border: 1px solid #eef1f6;
}
.page-order-lottery .lot-rule .lottery-wheel-ico { margin-top: 2px; flex-shrink: 0; }
.page-order-lottery .lot-rule b { color: #5c6ef2; font-weight: 700; }
.lot-rule {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px; font-size: 12px; color: #8b93a7; line-height: 1.6;
}
.lot-rule .mdi { color: #5c6ef2; font-size: 16px; margin-top: 1px; }
.lot-rule b { color: #5c6ef2; }
.lot-log { padding: 14px 16px; }
.lot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f2f4f8;
}
.lot-item:last-child { border-bottom: none; }
.lot-item img, .lot-item .mdi {
  width: 36px; height: 36px; flex: 0 0 36px;
  object-fit: contain;
}
.lot-item .mdi {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #eef1ff; color: #5c6ef2; font-size: 18px;
}
.lot-item-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lot-item b { font-size: 14px; }
.lot-item span { font-size: 12px; color: #8b93a7; white-space: nowrap; }
.lot-item a { color: #5c6ef2; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lot-mask {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(15,18,30,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lot-pop {
  width: min(100%, 300px); background: #fff; border-radius: 18px;
  padding: 22px 18px 18px; text-align: center;
  box-shadow: 0 18px 40px rgba(20,24,50,.22);
}
.lot-pop-tag {
  display: inline-block; height: 22px; padding: 0 10px; margin-bottom: 10px;
  border-radius: 11px; background: #eef1ff; color: #5c6ef2;
  font-size: 11px; font-weight: 700; line-height: 22px;
}
.lot-pop.is-miss .lot-pop-tag { background: #f3f4f6; color: #8b93a7; }
.lot-pop img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; }
.lot-pop .mdi { font-size: 48px; color: #5c6ef2; }
.lot-pop.is-miss .mdi { color: #9aa0b4; }
.lot-pop h3 { font-size: 18px; margin-bottom: 6px; }
.lot-pop p { font-size: 13px; color: #8b93a7; margin-bottom: 16px; }
.lot-pop .h5-btn { height: 42px; }

.star-row { font-size: 26px; color: #d1d5db; }
.star-row .mdi-star { color: #ffb020; }
.star-row .pick { cursor: pointer; }

.voice-btn {
  margin-top: 8px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.player-intro { font-size: 13px; color: #4b5568; line-height: 1.6; margin-top: 8px; }
.album-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.album-row::-webkit-scrollbar { display: none; }
.album-row img {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: #edf0ff;
}

.poster-mask {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(15,18,30,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 28px calc(20px + var(--safe-bottom));
}
.poster-pop {
  width: min(100%, 300px);
  display: flex; flex-direction: column; align-items: center;
}
.poster-pop-card {
  width: 100%;
  position: relative;
  aspect-ratio: 750 / 1334;
  border-radius: 14px;
  overflow: hidden;
  background: #edf0ff;
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
}
.poster-pop-card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.poster-pop-card canvas { display: none; }
.poster-pop-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: #fff; color: #5c6ef2; font-size: 13px;
}
.poster-pop-loading .mdi { font-size: 28px; }
.poster-pop-tip { margin-top: 12px; color: rgba(255,255,255,.86); font-size: 13px; }
.poster-pop-x {
  margin-top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

.page-dist .money-hero { position: relative; padding-bottom: 18px; }
.page-dist .dist-wd {
  position: absolute; right: 16px; top: 18px;
  height: 30px; line-height: 30px; padding: 0 12px;
  border-radius: 15px; background: #fff; color: #5c6ef2;
  font-size: 12px; font-weight: 700;
}
.dist-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: 10px;
}
.dist-stats div {
  background: #fff; border-radius: 12px; padding: 12px 8px;
  text-align: center; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.dist-stats b { display: block; font-size: 18px; font-weight: 800; color: #222; }
.dist-stats span { display: block; margin-top: 4px; font-size: 11px; color: #8b93a7; }
.dist-code {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px; margin-bottom: 10px;
  border-radius: 12px; background: #f4f6fb;
}
.dist-code span { font-size: 13px; color: #8b93a7; flex-shrink: 0; }
.dist-code b {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dist-code button { color: #5c6ef2; font-size: 13px; font-weight: 700; }
.dist-link {
  word-break: break-all; font-size: 12px; color: #8b93a7;
  line-height: 1.5; padding: 0 2px 12px;
}
.dist-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dist-acts .h5-btn { height: 42px; font-size: 14px; }
.dist-panel { padding-top: 12px; }
.dist-tabs {
  display: flex; padding: 4px; margin-bottom: 8px;
  border-radius: 12px; background: #f4f6fb;
}
.dist-tabs button {
  flex: 1; height: 34px; border-radius: 10px;
  color: #8b93a7; font-size: 13px; font-weight: 600;
}
.dist-tabs button.on { background: #fff; color: #5c6ef2; box-shadow: 0 2px 8px rgba(31,36,48,.06); }
.dist-user, .dist-log {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f2f4f8;
}
.dist-user:last-child, .dist-log:last-child { border-bottom: none; }
.dist-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #edf0ff; }
.dist-user b, .dist-log b { display: block; font-size: 14px; }
.dist-user p, .dist-log p { margin-top: 3px; font-size: 12px; color: #8b93a7; }
.dist-user > div, .dist-log > div:first-child { flex: 1; min-width: 0; }
.dist-log-r { text-align: right; }
.dist-log-r em { display: block; font-style: normal; font-size: 15px; font-weight: 800; color: #1aa35a; }
.dist-log-r .st { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; }
.dist-log-r .st.s0 { color: #ff7a3c; }
.dist-log-r .st.s1 { color: #5c6ef2; }
.dist-log-r .st.s2 { color: #8b93a7; }
.page-dist .empty-box, .page-dist .loading-box { padding: 28px 10px; }

.h5-switch {
  position: relative; width: 44px; height: 24px; border-radius: 999px;
  background: #d5d9e3; flex: 0 0 44px;
}
.h5-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s;
}
.h5-switch.on { background: var(--primary); }
.h5-switch.on::after { transform: translateX(20px); }

.page-mine { background: linear-gradient(180deg, #d9e0fb 0%, #f3f5fa 220px); }
.page-mine .mine-top { padding: 18px 16px 0; }
.mine-user {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 2px 16px;
}
.mine-avatar {
  position: relative;
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(92,110,242,.14);
}
.mine-avatar::before,
.mine-avatar::after {
  content: "";
  position: absolute; inset: -4px; border-radius: 50%;
  pointer-events: none;
}
.mine-avatar::before {
  background: conic-gradient(from 200deg, rgba(92,110,242,.12) 0 74%, #5c6ef2 86%, #fff 94%, rgba(92,110,242,.12) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: mine-ring 3.6s linear infinite;
}
.mine-avatar::after {
  background: radial-gradient(circle at 50% 2px, #fff 2.2px, rgba(92,110,242,.9) 3px, transparent 4px);
  animation: mine-ring 3.6s linear infinite;
  z-index: 3;
  filter: drop-shadow(0 0 4px rgba(92,110,242,.65));
}
.mine-avatar img {
  position: relative; z-index: 2;
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; background: #edf0ff;
  box-shadow: inset 0 0 0 2px #fff;
}
@keyframes mine-ring {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mine-avatar::before, .mine-avatar::after { animation: none; }
}
.mine-user-info { flex: 1; min-width: 0; }
.mine-user-info h2 {
  font-size: 20px; font-weight: 800; color: #1f2540;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mine-user-info p { margin-top: 4px; font-size: 12px; color: #7b8296; }
.mine-user-go { font-size: 22px; color: #b8bfd0; }
.mine-vip {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}
.mine-vip img { width: 100%; height: auto; display: block; }
.mine-body { padding: 12px 12px 8px; }
.mine-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mine-qcard {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.mine-qcard img { width: 32px; height: 32px; }
.mine-qcard > div { flex: 1; min-width: 0; }
.mine-qcard .q-num { font-size: 18px; font-weight: 800; color: #222; line-height: 1.2; }
.mine-qcard .q-name { font-size: 12px; color: #8b93a7; margin-top: 2px; }
.mine-qcard .mdi { color: #c5cad6; font-size: 18px; }
.mine-income {
  margin-bottom: 10px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.mine-income a {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
}
.mine-income span { color: #8b93a7; font-size: 13px; }
.mine-income b { flex: 1; font-size: 20px; font-weight: 800; }
.mine-income em { font-style: normal; font-size: 12px; color: #5c6ef2; }
.mine-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 14px; padding: 16px 8px 8px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.mine-grid a {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 8px 4px 12px;
  font-size: 12px; color: #4b5568;
}
.mine-grid .g-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: #eef1ff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mine-grid .g-ico img { width: 28px; height: 28px; }
.mine-grid a { position: relative; }
.mine-grid .g-dot {
  position: absolute; top: 8px; right: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d4f; font-style: normal;
}
.mine-grid .g-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #ff4d4f; color: #fff;
  font-size: 10px; font-weight: 800; font-style: normal;
  line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.mine-list { margin-bottom: 8px; }

.mine-mp {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, #07c160 0%, #2ad17a 100%);
  color: #fff; box-shadow: 0 8px 18px rgba(7,193,96,.22);
}
.mine-mp .mp-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.mine-mp > div { flex: 1; min-width: 0; }
.mine-mp .mp-title { font-size: 14px; font-weight: 700; }
.mine-mp .mp-sub { font-size: 12px; opacity: .92; margin-top: 2px; }
.mine-mp .mp-go {
  flex: 0 0 auto; height: 26px; line-height: 26px; padding: 0 10px;
  border-radius: 13px; background: #fff; color: #07c160; font-size: 12px; font-weight: 700;
}

.mp-panel { width: min(100%, 320px); }
.mp-panel-title { font-size: 17px; font-weight: 700; color: #222; display:flex; align-items:center; justify-content:center; gap:6px; }
.mp-panel-title .mdi { color:#07c160; font-size:22px; }
.mp-panel-name { margin: 8px 0 12px; font-size: 13px; color:#6b7280; }
.mp-panel img { width: 188px; height: 188px; object-fit: contain; background:#f7f8fa; }
.mp-steps { text-align:left; margin: 4px 8px 12px; padding-left: 22px; color:#4b5568; font-size:13px; line-height:1.8; }
.mp-panel .h5-btn { margin-top: 4px; height: 42px; font-size: 15px; }
.mp-panel .know-btn { width:100%; background:#f4f6fb; color:#6b7280; }

.mp-card { background:#fff; border-radius:14px; padding:0; margin-bottom:10px; overflow:hidden; box-shadow:0 4px 14px rgba(31,36,48,.05); }
.mp-card-inner { display:flex; align-items:center; gap:10px; padding:14px; }
.mp-card-inner .mp-ico {
  width:40px; height:40px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.mp-card-inner div { flex:1; min-width:0; }
.mp-card-inner strong { display:block; font-size:14px; }
.mp-card-inner p { margin-top:3px; font-size:12px; color:#8b93a7; line-height:1.4; }
.mp-card-inner .mp-go {
  flex:0 0 auto; height:28px; line-height:28px; padding:0 12px; border-radius:14px;
  background:#07c160; color:#fff; font-size:12px; font-weight:700;
}
.mp-card-inner.ok .mp-ico { background:#e8f8ef; color:#1aa35a; }
.mp-card-inner.wait .mp-ico { background:#fff6e8; color:#f59e0b; }
.mp-card-inner.warn .mp-ico { background:#eef1ff; color:#5c6ef2; }
.notify-row small { display:block; color:#8b93a7; font-size:12px; font-weight:400; margin-top:2px; }
.set-tip { font-size:12px; color:#8b93a7; line-height:1.6; padding:4px 6px 16px; }

.page-profile { padding-bottom: calc(72px + var(--safe-bottom)) !important; }
.page-profile .h5-hero { padding-bottom: 32px; }
.page-profile .h5-sheet { padding-bottom: 8px; }
.pf-card { padding: 4px 16px 8px; }
.pf-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 6px;
}
.pf-hd b { flex: 1; font-size: 15px; }
.pf-hd span { font-size: 12px; color: #8b93a7; }
.pf-hd a { font-size: 13px; color: #5c6ef2; font-weight: 700; }
.pf-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 0;
  border-bottom: 1px solid #f2f4f8;
}
.pf-card .pf-row:last-child,
.pf-card .pf-block:last-child { border-bottom: none; }
.pf-row > em {
  width: 72px; flex-shrink: 0; font-style: normal;
  font-size: 14px; color: #222;
}
.pf-row input {
  flex: 1; min-width: 0; height: 36px;
  text-align: right; font-size: 14px; color: #222; background: transparent;
}
.pf-row input::placeholder { color: #c5cad6; }
.pf-select {
  flex: 1; min-width: 0; position: relative;
  display: flex; align-items: center; justify-content: flex-end; gap: 2px;
  min-height: 36px;
}
.pf-select-native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: none; outline: none; box-shadow: none;
  opacity: 0; z-index: 2; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.pf-select-text {
  font-size: 14px; color: #222; text-align: right;
  max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none;
}
.pf-select-text.is-placeholder { color: #c5cad6; }
.pf-select-arrow { color: #c5cad6; font-size: 18px; flex-shrink: 0; pointer-events: none; }
.pf-row > b { flex: 1; text-align: right; font-size: 14px; font-weight: 600; color: #222; }
.pf-row > b.pf-link {
  min-width: 0; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-row .mdi-chevron-right { color: #c5cad6; font-size: 20px; }
.pf-opts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; flex: 1; }
.pf-opts .opt-btn { height: 28px; padding: 0 12px; font-size: 12px; }
.pf-avatar-row { cursor: pointer; }
.pf-ava { position: relative; width: 48px; height: 48px; margin-left: auto; }
.pf-ava img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #edf0ff; }
.pf-ava .cam {
  position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: #5c6ef2; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; border: 2px solid #fff;
}
.pf-online { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 6px 0 12px; }
.pf-online button {
  height: 44px; border-radius: 12px; background: #f4f6fb; color: #4b5568;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pf-online button i {
  width: 8px; height: 8px; border-radius: 50%; background: #c5cad6;
}
.pf-online button[data-s="1"] i { background: #22c55e; }
.pf-online button[data-s="2"] i { background: #ff7a3c; }
.pf-online button[data-s="0"] i { background: #9aa0b4; }
.pf-online button.on { background: #eef1ff; color: #5c6ef2; box-shadow: inset 0 0 0 1.5px #5c6ef2; }
.pf-online button.on.busy { background: #fff4ee; color: #ff7a3c; box-shadow: inset 0 0 0 1.5px #ff7a3c; }
.pf-online button.on.off { background: #f3f4f6; color: #6b7280; box-shadow: inset 0 0 0 1.5px #c5cad6; }
.pf-cover {
  position: relative; height: 128px; margin: 8px 0 4px;
  border-radius: 12px; background: #f4f6fb; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #8b93a7; font-size: 13px;
}
.pf-cover span { display: flex; align-items: center; gap: 6px; }
.pf-cover .mdi { font-size: 20px; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-cover em {
  position: absolute; right: 10px; bottom: 10px;
  height: 24px; padding: 0 8px; border-radius: 12px;
  background: rgba(15,18,30,.55); color: #fff;
  font-size: 11px; font-style: normal; line-height: 24px;
}
.pf-block { padding: 10px 0 12px; border-bottom: 1px solid #f2f4f8; }
.pf-block > em {
  display: block; font-style: normal; font-size: 14px; color: #222; margin-bottom: 8px;
}
.pf-block > em small { margin-left: 6px; font-size: 12px; color: #8b93a7; font-weight: 400; }
.pf-block textarea {
  width: 100%; min-height: 88px; padding: 10px 12px;
  border-radius: 10px; background: #f4f6fb; font-size: 14px; line-height: 1.5; resize: none;
}
.pf-muted { flex: 1; text-align: right; font-size: 13px; color: #8b93a7; }
.pf-muted.warn { color: #e85d3f; }
.pf-voice-row { flex-wrap: wrap; gap: 6px 0; }
.pf-voice-hold {
  min-width: 88px; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.pf-voice-hold.recording { background: #5c6ef2; color: #fff; }
.voice-rec-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15,18,30,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  touch-action: none;
  pointer-events: none;
}
.voice-rec-panel {
  width: min(280px, 88vw); padding: 28px 20px 22px;
  border-radius: 18px; background: #fff; text-align: center;
  box-shadow: 0 18px 40px rgba(20,24,50,.18);
}
.voice-rec-panel p { margin: 14px 0 4px; font-size: 15px; color: #4b5568; }
.voice-rec-panel b { font-size: 28px; color: #5c6ef2; font-weight: 800; }
.voice-rec-waves {
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 36px;
}
.voice-rec-waves span {
  width: 6px; border-radius: 6px; background: #5c6ef2;
  animation: voice-rec-bar .8s ease-in-out infinite;
}
.voice-rec-waves span:nth-child(2) { animation-delay: .15s; }
.voice-rec-waves span:nth-child(3) { animation-delay: .3s; }
@keyframes voice-rec-bar {
  0%, 100% { height: 10px; opacity: .55; }
  50% { height: 32px; opacity: 1; }
}
.pf-mini {
  height: 28px; padding: 0 10px; border-radius: 8px;
  background: #f4f6fb; color: #4b5568; font-size: 12px; font-weight: 700;
}
.pf-mini.on { background: #eef1ff; color: #5c6ef2; }
.pf-album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-album .item, .pf-album .add {
  position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden; background: #f4f6fb;
}
.pf-album .item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-album .del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,18,30,.55); color: #fff; font-size: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.pf-album .add { border: 1px dashed #c5cad6; color: #9aa0b4; background: #fff; }
.pf-album .add i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 22px; }
.pf-copy {
  height: 24px; padding: 0 8px; border-radius: 8px;
  background: #eef1ff; color: #5c6ef2; font-size: 12px; font-weight: 700;
}
.pf-wx.ok { color: #1aa35a; }
.pf-empty { font-size: 12px; color: #8b93a7; }
.pf-warn {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px; background: #fff7e8; color: #b45309; font-size: 13px; line-height: 1.5;
}
.pf-warn .mdi { font-size: 18px; margin-top: 1px; }
.pf-out {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px; margin: 2px 0 8px;
  border-radius: 12px; background: #fff; color: #ff5a3c;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.pf-foot {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); bottom: 0; z-index: 20;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(243,245,250,0), #f3f5fa 28%);
}
.menu-item .menu-val { color:#8b93a7; font-size:13px; max-width:52%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.form-kv { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid #f4f5f8; font-size:14px; }
.form-kv:last-child { border-bottom:none; padding-bottom:0; }
.form-kv span { color:#8b93a7; }
.form-kv b { font-weight:600; color:#222; text-align:right; }

.buy-goods {
  display:flex; gap:10px; align-items:flex-start;
  background:#fff; border-radius:12px; padding:12px; margin-bottom:10px;
  box-shadow:0 4px 14px rgba(31,36,48,.05);
}
.buy-goods img { width:64px; height:64px; border-radius:10px; object-fit:cover; background:#edf0ff; flex-shrink:0; }
.buy-goods-main { flex:1; min-width:0; }
.buy-goods-main h3 { font-size:15px; font-weight:700; line-height:1.35; }
.buy-goods-main p { margin-top:6px; font-size:12px; color:#8b93a7; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.buy-goods-price { color:#ff5a3c; font-weight:800; font-size:16px; white-space:nowrap; }
.buy-goods-price .mdi-currency-cny,
.buy-pay-price .mdi-currency-cny,

.buy-player-pick {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31,36,48,.05);
}
.buy-player-pick-hd {
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, #fff6e8 0%, #fffaf3 100%);
  font-size: 13px;
  font-weight: 700;
  color: #e67e22;
}
.buy-player-pick-bd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
}
.buy-player-pick-bd img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf0ff;
  flex-shrink: 0;
}
.buy-player-pick-bd b {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy-player-pick-tag {
  font-size: 12px;
  color: #8b93a7;
  white-space: nowrap;
  flex-shrink: 0;
}
.detail-price .mdi-currency-cny,
.detail-origin .mdi-currency-cny {
  font-size: .78em; margin-right: 1px; vertical-align: 1px;
}
.detail-price { color:#ff5a3c; font-size:26px; font-weight:800; display:flex; align-items:baseline; gap:8px; }
.detail-origin { color:#9aa0b4; font-size:14px; font-weight:500; }

.page-product {
  padding-bottom: calc(64px + var(--safe-bottom)) !important;
  background: #f3f5fa;
}
.pd-gallery { position: relative; background: #111; }
.pd-slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slides img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; scroll-snap-align: start; background: #edf0ff;
}
.pd-back {
  position: absolute; left: 12px; top: calc(10px + env(safe-area-inset-top, 0px));
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15,18,30,.42); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; z-index: 2;
}
.pd-count {
  position: absolute; right: 12px; bottom: 36px;
  height: 22px; padding: 0 8px; border-radius: 11px;
  background: rgba(15,18,30,.45); color: #fff;
  font-size: 11px; line-height: 22px; z-index: 2;
}
.pd-card {
  position: relative; z-index: 3;
  width: 100%;
  margin: -22px 0 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.pd-flash {
  position: relative; height: 96px; overflow: hidden;
  color: #fff;
  border-radius: 10px 10px 0 0;
}
.pd-flash-bg {
  position: absolute; left: 0; top: 0;
  width: 100%; height: auto;
  pointer-events: none;
}
.pd-flash-num {
  position: relative; z-index: 1;
  padding: 12px 16px 0;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.pd-flash-num .mdi-currency-cny { color: #fff; font-size: .78em; }
.pd-flash-num .detail-origin,
.pd-flash-num .detail-origin .mdi-currency-cny { color: rgba(255,255,255,.78); }
.pd-flash-num .detail-origin { font-size: 15px; font-weight: 500; }
.pd-body {
  position: relative; z-index: 1;
  margin-top: -18px;
  padding: 14px 16px 16px;
  background: #fff;
  border-radius: 10px 10px 0 0;
}
.pd-title { font-size: 17px; font-weight: 800; line-height: 1.45; margin-bottom: 8px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pd-tags em {
  font-style: normal; height: 22px; padding: 0 8px; border-radius: 4px;
  background: #fff1f0; color: #ff5a3c; font-size: 11px; font-weight: 700; line-height: 22px;
}
.pd-tags em:nth-child(2) { background: #eef1ff; color: #5c6ef2; }
.pd-tags em:nth-child(3) { background: #e8f8ef; color: #1aa35a; }
.pd-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px 6px; border-radius: 10px; background: #f6f7fb;
}
.pd-specs div { text-align: center; min-width: 0; }
.pd-specs b {
  display: block; font-size: 13px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-specs span { display: block; margin-top: 4px; font-size: 11px; color: #8b93a7; }
.pd-detail {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.pd-detail .money-label {
  padding-top: 12px;
  border-top: 1px solid #f2f3f7;
}
.pd-detail-txt { font-size: 14px; line-height: 1.75; color: #4b5568; }
.pd-lottery {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f3f7;
}
.pd-lottery-top { margin-bottom: 8px; }
.pd-lottery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 4px;
  background: #eef1ff;
  color: #5c6ef2;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.pd-lottery-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #222;
  line-height: 1.45;
}
.lottery-wheel-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}
.lottery-wheel-ico.md { width: 20px; height: 20px; }
.lottery-wheel-ico.lg { width: 22px; height: 22px; }
.pd-lottery-desc {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #8b93a7;
}
.pd-prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #f6f7fb;
}
.pd-prize-item {
  padding: 10px 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef0f5;
  text-align: center;
}
.pd-prize-thumb {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-prize-thumb .mdi {
  font-size: 22px;
  color: #b6bcc9;
}
.pd-prize-item b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  word-break: break-all;
}
.pd-lottery-foot {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #b0b6c3;
}
@media (max-width: 360px) {
  .pd-prize-grid { gap: 6px; padding: 8px; }
  .pd-prize-item b { font-size: 12px; }
}
.buy-lottery-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f4f5f8;
}
.buy-lottery-tip .lottery-wheel-ico { margin-top: 1px; }
.buy-lottery-tip b { display: block; font-size: 14px; color: #222; margin-bottom: 4px; }
.buy-lottery-tip p { font-size: 12px; color: #8b93a7; line-height: 1.45; }
.od-lottery { margin-bottom:10px; }
.od-lottery-tip { font-size:13px; color:#667; margin:0 0 12px; }
.od-lottery .h5-btn { width:100%; }
.od-lottery-prize { text-align:center; padding:8px 0 4px; }
.od-lottery-prize .mdi { font-size:34px; color:#e67e22; }
.od-lottery-prize b { display:block; font-size:18px; margin:8px 0 4px; color:#222; }
.od-lottery-prize p { font-size:12px; color:#8b93a7; }
.pd-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: #fff; box-shadow: 0 -4px 16px rgba(31,36,48,.06);
}
.pd-bar-ico {
  width: 48px; flex: 0 0 48px; color: #4b5568;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px;
}
.pd-bar-ico svg { width: 26px; height: 26px; display: block; }
.pd-bar-ico .fav-fill { fill: #64EDAC; transition: fill .2s; }
.pd-bar-ico.on .fav-fill { fill: #FF5A7A; }
.pd-bar-buy {
  position: relative;
  overflow: hidden;
  flex: 1; height: 44px; border-radius: 22px;
  background: linear-gradient(90deg, #a6b2f2, #7387f6);
  color: #fff; font-size: 16px; font-weight: 800;
}
.pd-bar-buy:disabled { opacity: .55; }
.pd-bar-buy::after {
  content: "";
  position: absolute; top: 0; left: -45%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: pd-buy-shine 2.4s ease-in-out infinite;
}
@keyframes pd-buy-shine {
  0% { left: -45%; }
  55%, 100% { left: 125%; }
}

/* ========== 商品详情 · 模板二 ========== */
.page-product.pd-tpl2 {
  background: #eceef3;
  padding-bottom: calc(64px + var(--safe-bottom)) !important;
}
.pd2-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.pd2-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd2-back {
  position: absolute;
  left: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pd2-wrap {
  position: relative;
  z-index: 3;
  margin-top: -22px;
  padding: 0 12px 16px;
}
.pd2-card {
  width: 100%;
  margin: 0 auto;
  padding: 14px 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(31, 36, 48, .06);
}
.pd2-card .pd2-desc:last-child,
.pd2-card .pd2-extra:last-child {
  margin-bottom: 0;
}
.pd2-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pd2-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: #1a1d26;
}
.pd2-price {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  color: #ff4d3a;
  line-height: 1.2;
}
.pd2-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}
.pd2-sold { color: #8b93a7; }
.pd2-origin {
  color: #b0b6c5;
  font-size: 13px;
  text-decoration: line-through;
}
.pd2-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #4b5568;
  margin-bottom: 12px;
}
.pd2-attitude {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: #eef6ff;
  color: #2f6fd6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 2px 14px rgba(31, 36, 48, .06);
}
.pd2-extra {
  margin-top: 0;
}
.pd2-extra .pd-lottery {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f6f7fb;
}
.pd2-attitude .mdi {
  font-size: 18px;
  flex-shrink: 0;
}
.pd2-rules-block {
  margin-top: 12px;
}
.pd2-rules-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1d26;
  margin-bottom: 10px;
}
.pd2-rules {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(31, 36, 48, .06);
}
.pd2-rules img {
  display: block;
  width: 100%;
  height: auto;
}
.pd-bar.pd-bar-v2 .pd-bar-buy {
  background: linear-gradient(90deg, #8b7cf6, #6c5ce7);
}
.pd-bar.pd-bar-v2 .pd-bar-buy::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
}
.buy-form { padding:4px 14px 8px; }
.buy-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f4f5f8; }
.buy-row:last-child { border-bottom:none; }
.buy-label { width:64px; flex-shrink:0; font-size:14px; color:#222; }
.buy-label em { color:#ff5a3c; font-style:normal; margin-left:2px; }
.buy-opts { display:flex; flex-wrap:wrap; gap:8px; flex:1; }
.opt-btn {
  height:32px; padding:0 14px; border-radius:8px; background:#f4f6fb; color:#4b5568; font-size:13px;
}
.opt-btn.on { background:#5c6ef2; color:#fff; }
.buy-input { flex:1; height:36px; padding:0 10px; border-radius:8px; background:#f4f6fb; font-size:14px; }
.buy-switch { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #f4f5f8; }
.buy-hint { font-size:12px; color:#8b93a7; margin-top:4px; line-height:1.4; max-width:240px; }
.stepper { display:flex; align-items:center; gap:10px; margin-left:auto; }
.stepper button { width:28px; height:28px; border-radius:8px; background:#f4f6fb; font-size:18px; color:#4b5568; }
.stepper b { min-width:18px; text-align:center; }
.buy-pay { display:flex; align-items:center; gap:12px; }
.buy-pay-price { flex:1; font-size:22px; font-weight:800; color:#ff5a3c; }
.buy-pay .h5-btn { width:148px; flex:0 0 148px; }

.sheet-mask {
  position:fixed; inset:0; background:rgba(15,18,30,.45);
  z-index:220; display:flex; align-items:flex-end; justify-content:center;
}
.sheet-panel {
  width:min(100%,480px); background:#fff; border-radius:16px 16px 0 0;
  max-height:86vh; display:flex; flex-direction:column;
}
.sheet-hd { display:flex; align-items:center; padding:16px 16px 10px; }
.sheet-hd b { flex:1; font-size:16px; }
.sheet-hd .mdi { font-size:22px; color:#9aa0b4; }
.sheet-bd { padding:8px 16px 12px; overflow:auto; flex:1; }
.sheet-ft { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:10px 16px calc(12px + var(--safe-bottom)); }
.sheet-ft .h5-btn { height:44px; }
#h5Prompt .h5-textarea { height:110px; background:#f4f6fb; }
.remark-count { text-align:right; font-size:12px; color:#8b93a7; margin-top:8px; }
.card-pick {
  display:flex; align-items:flex-start; gap:10px; padding:12px 0;
  border-bottom:1px solid #f4f5f8;
}
.card-pick.on b { color:#5c6ef2; }
.card-pick input { margin-top:4px; }
.card-pick p { font-size:12px; color:#8b93a7; margin-top:4px; }
.buy-line {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 0; border-bottom:1px solid #f4f5f8; font-size:14px;
}
.buy-line .card-in { flex:1; text-align:right; color:#222; }
.buy-line .card-in::placeholder { color:#c5cad6; }
.card-sec { padding:14px 0 4px; font-size:13px; color:#8b93a7; }
.card-sec em { font-style:normal; }
.h5-field { display:block; margin-bottom:12px; }
.h5-field:last-child { margin-bottom:0; }
.h5-field > span { display:block; font-size:13px; color:#8b93a7; margin-bottom:6px; }
.menu-item small { display:block; color:#8b93a7; font-size:12px; font-weight:400; margin-top:2px; }

.page-money { padding-bottom: calc(18px + var(--safe-bottom)) !important; }
.page-money .h5-sheet { padding-bottom: 24px; }
.money-hero {
  background: linear-gradient(135deg, #6f84f6 0%, #8aa0f8 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px 16px 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(92,110,242,.18);
}
.page-money:not(.page-dist) .money-hero {
  background: #7a8cf8 url("../../imges/money-hero.jpg") no-repeat right center / cover;
  overflow: hidden;
}
.money-hero > span { font-size: 13px; opacity: .92; }
.money-hero-num { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.money-hero-num b { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.money-hero-num em { font-style: normal; font-size: 13px; opacity: .9; }
.money-hero-meta { margin-top: 10px; font-size: 12px; opacity: .9; line-height: 1.5; }
.money-hero > p { margin-top: 10px; font-size: 12px; opacity: .86; line-height: 1.5; }
.money-types { display: flex; gap: 8px; margin-top: 14px; }
.money-types button {
  flex: 1; height: 30px; border-radius: 15px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 12px;
}
.money-types button.on { background: #fff; color: #5c6ef2; font-weight: 700; }
.money-card { padding: 16px; }
.money-label { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.money-grid button {
  height: 54px;
  border-radius: 12px;
  background: #f4f6fb;
  color: #222;
  font-size: 18px;
  font-weight: 800;
}
.money-grid button span {
  font-size: 11px; font-weight: 600; color: #8b93a7; margin-left: 2px;
}
.money-grid button.on {
  background: #eef1ff;
  color: #5c6ef2;
  box-shadow: inset 0 0 0 1.5px #5c6ef2;
}
.money-grid button.on span { color: #5c6ef2; }
.money-input {
  display: flex; align-items: center;
  height: 48px; padding: 0 14px;
  border-radius: 12px; background: #f4f6fb;
}
.money-input em {
  font-style: normal; font-size: 20px; font-weight: 800; margin-right: 8px; color: #222;
}
.money-input input { flex: 1; min-width: 0; height: 48px; font-size: 20px; font-weight: 700; }
.money-input .all {
  color: #5c6ef2; font-size: 13px; font-weight: 700; white-space: nowrap; padding-left: 8px;
}
.money-way { display: flex; align-items: center; gap: 12px; }
.money-way .mdi-wechat { font-size: 28px; color: #22c16b; }
.money-way b { display: block; font-size: 15px; }
.money-way p { font-size: 12px; color: #8b93a7; margin-top: 3px; }
.money-way .mdi-check-circle { margin-left: auto; color: #5c6ef2; font-size: 22px; }
.money-field-ways { flex-direction: column; align-items: stretch; gap: 10px; }
.money-field-ways > span { width: auto; padding-top: 0; }
.money-ways { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.money-ways .money-way {
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; background: #f4f6fb;
  color: #222;
}
.money-ways .money-way .mdi-alpha-a-circle { font-size: 28px; color: #1677ff; }
.money-ways .money-way .mdi-credit-card-outline { font-size: 26px; color: #5c6ef2; }
.money-ways .money-way .mdi-check-circle { opacity: 0; }
.money-ways .money-way.on { background: #eef1ff; box-shadow: inset 0 0 0 1.5px #5c6ef2; }
.money-ways .money-way.on .mdi-check-circle { opacity: 1; }
.money-fee {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 12px; font-size: 13px; color: #8b93a7;
}
.money-fee b { color: #222; font-weight: 700; }
.money-fee .real { color: #5c6ef2; }
.money-fee-sub { margin-top: 8px; font-size: 12px; color: #8b93a7; }
.money-field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f2f3f7;
}
.money-field:last-child { border-bottom: none; padding-bottom: 0; }
.money-field span { width: 84px; flex-shrink: 0; font-size: 14px; color: #222; }
.money-field input { flex: 1; min-width: 0; height: 36px; font-size: 14px; }
.money-tips { font-size: 12px; color: #8b93a7; line-height: 1.7; padding: 2px 4px 14px; }
.money-note {
  color: #8b93a7; font-size: 13px; line-height: 1.7;
  background: #f7f8fc;
}
.money-submit { margin-top: 2px; }
.money-submit:disabled { opacity: .55; }
.wd-list { margin-top: 18px; }
.wd-list h3 { font-size: 15px; font-weight: 700; margin: 0 4px 10px; }
.wd-list .money-card { padding-top: 4px; padding-bottom: 4px; }
.wd-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid #f2f4f8;
}
.wd-item:last-child { border-bottom: none; }
.wd-item .t { font-size: 16px; font-weight: 800; }
.wd-item .s { font-size: 12px; color: #8b93a7; margin-top: 4px; }
.wd-st { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wd-st.s0 { color: #ff7a3c; }
.wd-st.s1 { color: #5c6ef2; }
.wd-st.s2 { color: #1aa35a; }
.wd-st.s3 { color: #8b93a7; }
.page-money .empty-box, .page-money .loading-box { padding: 28px 10px; }
.money-field-block { align-items: flex-start; }
.money-field-block > span { padding-top: 8px; }
.money-chips { display: flex; gap: 8px; flex: 1; }
.money-chips button {
  flex: 1; height: 34px; border-radius: 10px;
  background: #f4f6fb; color: #4b5568; font-size: 12px; font-weight: 600;
}
.money-chips button.on { background: #eef1ff; color: #5c6ef2; box-shadow: inset 0 0 0 1.5px #5c6ef2; }
.money-qr { flex: 1; }
.money-qr-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 132px; border-radius: 12px; background: #f4f6fb;
  border: 1px dashed #d7dce8; color: #8b93a7;
}
.money-qr-add .mdi { font-size: 28px; color: #5c6ef2; margin-bottom: 6px; }
.money-qr-add b { font-size: 13px; color: #222; font-weight: 700; }
.money-qr-add p { font-size: 11px; margin-top: 4px; }
.money-qr-preview { position: relative; width: 132px; }
.money-qr-preview img {
  width: 132px; height: 132px; object-fit: cover;
  border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(31,36,48,.08);
}
.money-qr-ops { display: flex; gap: 8px; margin-top: 8px; }
.money-qr-ops button {
  flex: 1; height: 28px; border-radius: 8px; background: #eef1ff;
  color: #5c6ef2; font-size: 12px; font-weight: 700;
}
.money-qr-ops #qrClear { background: #f4f6fb; color: #8b93a7; }
.wd-item .wd-qr {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  background: #f4f6fb; flex-shrink: 0;
}
.qr-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,18,30,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.qr-mask img { width: min(76vw, 320px); border-radius: 12px; background: #fff; }

.page-apply { padding-bottom: calc(18px + var(--safe-bottom)) !important; }
.apply-notice {
  height: auto; min-height: 38px; line-height: 1.5;
  padding: 10px 14px; margin-bottom: 10px;
  border-radius: 12px; background: #fff; color: #4a5163;
  font-size: 13px; box-shadow: 0 4px 14px rgba(92,110,242,.08);
}
.apply-status {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.apply-status .mdi { font-size: 22px; color: #5c6ef2; margin-top: 1px; }
.apply-status b { display: block; font-size: 15px; }
.apply-status p { margin-top: 4px; font-size: 12px; color: #8b93a7; line-height: 1.5; }
.apply-status.s1 .mdi { color: #ff7a3c; }
.apply-status.s2 .mdi { color: #1aa35a; }
.apply-status.s3 .mdi { color: #ff5a3c; }
.apply-games { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.apply-intro { height: 88px; background: #f4f6fb; width: 100%; }
.po-card {
  background: #fff; border-radius: 14px; padding: 12px 12px 10px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.po-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
  font-size: 12px; color: #8b93a7;
}
.po-hd { display: flex; gap: 10px; align-items: flex-start; color: inherit; }
.po-hd img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #edf0ff; flex-shrink: 0; }
.po-main { flex: 1; min-width: 0; }
.po-main h3 {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.po-main p { font-size: 12px; color: #8b93a7; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-price { color: #ff5a3c; font-size: 16px; font-weight: 800; white-space: nowrap; line-height: 1.2; }
.po-price::before { content: "¥"; font-size: 11px; font-weight: 700; margin-right: 1px; }
.po-info { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #eef0f5; }
.po-info-tit { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.po-info .form-kv { padding: 7px 0; font-size: 13px; }
.po-ft {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f4f5f8;
}
.po-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #5b6478;
  background: #f4f6fb;
}
.po-btn.primary { background: #5c6ef2; color: #fff; }
.po-tip {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: #5c6ef2;
  background: #eef1ff; border-radius: 8px; padding: 8px 10px;
}
.po-tip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.po-tip.warn { color: #ff7a3c; background: #fff1e8; }
.po-tip.mute { color: #8b93a7; background: #f4f6fb; }
.po-user {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 10px;
  background: #f7f8fc; border-radius: 10px;
}
.po-user img, .po-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; background: #edf0ff; flex-shrink: 0;
}
.po-avatar {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #5c6ef2;
}
.po-user b {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.po-user em { font-style: normal; font-size: 11px; color: #8b93a7; flex-shrink: 0; }
.po-card.mute .po-price { color: #8b93a7; }
.po-card .grab-chips { margin-top: 10px; }
.po-card .grab-info { margin-top: 4px; }
.po-card .form-kv.copy { cursor: pointer; }
.po-card .form-kv.copy b { display: inline-flex; align-items: center; gap: 4px; }
.po-card .form-kv.copy .mdi { font-size: 14px; color: #c5cad6; }
.page-porders { padding-bottom: 24px; }
.page-porders.has-bar { padding-bottom: calc(88px + var(--safe-bottom)); }
.page-porders .h5-tabs { padding: 2px 0 12px; }
.page-porders .h5-tab {
  height: 30px; padding: 0 14px; border-radius: 999px;
  background: #fff; color: #7b8296;
}
.page-porders .h5-tab.active { background: var(--primary); color: #fff; }

.od-head {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 16px;
  margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.od-head .od-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; color: #5c6ef2;
}
.od-head .od-ico::before {
  content: ''; width: 40px; height: 40px;
  background: currentColor;
  -webkit-mask: url('../../imges/od-status.svg') center / contain no-repeat;
  mask: url('../../imges/od-status.svg') center / contain no-repeat;
}
.od-head.pay .od-ico { color: #ff7a3c; }
.od-head.pay b { color: #ff7a3c; }
.od-head.wait .od-ico { color: #5c6ef2; }
.od-head.wait b { color: #5c6ef2; }
.od-head.doing .od-ico { color: #2f7cf6; }
.od-head.doing b { color: #2f7cf6; }
.od-head.confirm .od-ico { color: #ff7a3c; }
.od-head.confirm b { color: #ff7a3c; }
.od-head.ok .od-ico { color: #1aa35a; }
.od-head.ok b { color: #1aa35a; }
.od-head.after .od-ico { color: #f08b1a; }
.od-head.after b { color: #f08b1a; }
.od-head.refund .od-ico { color: #8b93a7; }
.od-head.refund b { color: #5b6578; }
.od-head.mute .od-ico { color: #8b93a7; }
.od-head.mute b { color: #8b93a7; }
.od-head b { display: block; font-size: 18px; font-weight: 800; }
.od-head p { margin-top: 4px; font-size: 12px; color: #8b93a7; line-height: 1.45; }
.od-no {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; color: #222; cursor: pointer;
}
.od-no .mdi { font-size: 15px; color: #8b93a7; }
.od-bar-pay .od-sum {
  display: flex; align-items: baseline; justify-content: flex-end;
  gap: 6px; margin-bottom: 10px; font-size: 13px; color: #8b93a7;
}
.od-bar-pay .od-sum b { color: #ff5a3c; font-size: 20px; font-weight: 800; }
.od-bar-pay .od-sum b::before { content: "¥"; font-size: 12px; margin-right: 1px; }
.apply-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f4f8; }
.apply-row:last-child { border-bottom: none; }
.apply-link {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0; color: inherit;
}
.apply-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #edf0ff; flex-shrink: 0; }
.apply-row > div, .apply-link > div { flex: 1; min-width: 0; }
.apply-row b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.apply-row .skill-badge { margin-top: 0; }
.apply-row p { margin-top: 3px; font-size: 12px; color: #8b93a7; }
.apply-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 12px;
  height: 36px;
  border-radius: 10px;
  background: #f4f6fb;
}
.apply-search .mdi { color: #8b93a7; font-size: 18px; }
.apply-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #222;
}
.po-tip.lottery { color: #5c6ef2; background: #eef1ff; border-radius: 8px; padding: 8px 10px; }
.po-tip.lottery b { color: #24304a; }
.pw-pick[disabled] { opacity: .55; }

.page-notices { padding-bottom: 24px; }
.page-notices .h5-nav .right {
  width: 22px; color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.nt-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px; font-size: 12px; color: #8b93a7;
}
.nt-bar button { font-size: 12px; color: #5c6ef2; font-weight: 600; }
.nt-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px 12px;
  margin-bottom: 10px; color: inherit;
  box-shadow: 0 4px 14px rgba(31,36,48,.05);
}
.nt-card.read { opacity: .7; }
.nt-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #eef1ff; color: #5c6ef2; font-size: 20px;
  position: relative;
}
.nt-card.unread .nt-ico::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: #ff4d4f;
}
.nt-main { flex: 1; min-width: 0; }
.nt-main h3 { font-size: 15px; font-weight: 700; }
.nt-main p { margin-top: 4px; font-size: 13px; color: #5b6478; line-height: 1.45; }
.nt-main span { display: block; margin-top: 6px; font-size: 12px; color: #8b93a7; }
.nt-go { flex-shrink: 0; font-size: 18px; color: #c5cad6; margin-top: 10px; }

/* Login page */
.page-login {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-bottom));
  background: linear-gradient(180deg, #6f84f6 0%, #8f9cf5 38%, #f3f5fa 38%, #f3f5fa 100%);
}
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
}
.login-top {
  display: flex;
  align-items: center;
  height: 52px;
  padding-top: env(safe-area-inset-top, 0px);
}
.login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 24px;
}
.login-brand {
  text-align: center;
  padding: 8px 0 28px;
  color: #fff;
}
.login-logo-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(44,56,120,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 36px;
  color: var(--primary);
}
.login-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .5px;
}
.login-sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
}
.login-panel {
  flex: 1;
  margin-top: 4px;
  padding: 22px 18px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31,36,48,.08);
}
.login-features {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
.login-features span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: #f7f8fc;
  font-size: 11px;
  color: #6b7288;
  text-align: center;
  line-height: 1.3;
}
.login-features span i {
  font-size: 20px;
  color: var(--primary);
}
.login-wx-btn,
.login-dev-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}
.login-wx-btn {
  background: linear-gradient(135deg, #07c160 0%, #2ecc71 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7,193,96,.28);
}
.login-wx-btn:active { opacity: .92; transform: translateY(1px); }
.login-wx-btn[disabled] { opacity: .65; }
.login-wx-btn i { font-size: 22px; }
.login-dev-btn {
  margin-top: 12px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #dbe1ff;
}
.login-dev-btn i { font-size: 18px; }
.login-dev-btn.hidden { display: none; }
.login-tip {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #a0a7b8;
}

