/* ==========================================================================
   醒狮陪玩 · 浅色社交风（参考东东电竞）
   白卡 / 浅色柔和底 / 大真人图 / 游戏方块 / 彩色标签 / 醒狮红点缀
   ========================================================================== */

:root {
  --bg: #F5F5F8;
  --bg-soft: #F0F1F5;
  --card: #FFFFFF;
  --ink: #17181C;
  --ink-2: #5B6070;
  --ink-3: #9299A6;
  --ink-4: #C3C7D1;
  --line: #EFEFF3;
  --red: #E1251B;
  --red-soft: #FFF0EE;
  --black: #17181C;
  --purple: #6D3BE8;
  --purple-soft: #F2ECFF;
  --blue: #2B62D9;
  --blue-soft: #EAF1FF;
  --green: #0B8A57;
  --green-soft: #E7F8EF;
  --gold: #B4790B;
  --gold-soft: #FFF6E2;
  --pink: #D6357A;
  --pink-soft: #FFF0F6;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-card: 0 6px 22px rgba(23, 24, 28, .05);
  --shadow-float: 0 12px 34px rgba(23, 24, 28, .14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
}

.view { min-height: 60vh; background: var(--bg); }
.page { padding-bottom: calc(84px + var(--safe-bottom)); }

/* ---------------- 顶栏 ---------------- */
.appbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.appbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(23, 24, 28, .04); }
.appbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 16px 10px; }

.home-head-row { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 4px 12px rgba(225, 37, 27, .18); }
.brand-text { min-width: 0; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: .3px; line-height: 1.15; color: var(--ink); }
.brand-slogan { font-size: 10px; color: var(--ink-3); letter-spacing: .6px; margin-top: 2px; }
.brand-tag {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px;
  border-radius: 6px; background: var(--red-soft); color: var(--red);
  font-size: 9.5px; font-weight: 700; vertical-align: 1px;
}
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--bg-soft); color: var(--ink-2); position: relative;
}
.head-btn:active { background: #E8E9EF; }

.searchbar {
  margin-top: 10px; height: 40px; border-radius: 999px; background: var(--bg-soft);
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--ink-3);
  font-size: 13px; border: 1px solid transparent;
}
.searchbar input { border: 0; outline: none; background: transparent; flex: 1; font-size: 13px; color: var(--ink); }
.searchbar input::placeholder { color: var(--ink-3); }

/* 内页顶栏 */
.page-head { background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.page-head-inner { height: 50px; display: flex; align-items: center; gap: 6px; padding: 0 8px; max-width: 1180px; margin: 0 auto; position: relative; }
.page-title { font-size: 16px; font-weight: 700; flex: 1; text-align: center; padding-right: 34px; }
.page-head .icon-btn { color: var(--ink); }
.page-head-actions { position: absolute; right: 12px; display: flex; gap: 4px; align-items: center; }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom);
  display: flex;
}
.tab-item {
  flex: 1; height: 58px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--ink-3); font-size: 10.5px;
  position: relative; transition: color .15s;
}
.tab-item svg { width: 23px; height: 23px; }
.tab-item.active { color: var(--red); font-weight: 700; }
.tab-item.active svg { filter: drop-shadow(0 2px 6px rgba(225, 37, 27, .25)); }

/* ---------------- 通用卡片 / 列表 ---------------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.card-pad { padding: 16px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.section { margin: 20px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 18px; font-weight: 800; letter-spacing: .2px; color: var(--ink); }
.section-title::before { display: none; }
.section-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.more-link { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }

/* 标签胶囊 */
.tag { border-radius: 999px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; line-height: 17px; }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.tag-pink { background: var(--pink-soft); color: var(--pink); }
.tag-gray { background: #F2F3F6; color: var(--ink-2); }
.tag-ink { background: #17181C; color: #fff; }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.tag svg { width: 11px; height: 11px; }

/* 主按钮（克制红） */
.btn { height: 42px; font-size: 14.5px; border-radius: 999px; font-weight: 700; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 37, 27, .2); }
.btn-primary:hover { background: #CF1F16; }
.btn-dark { background: var(--black); color: #fff; box-shadow: 0 8px 20px rgba(23, 24, 28, .16); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-plain { background: var(--bg-soft); color: var(--ink-2); }
.btn-ghost { background: rgba(255, 255, 255, .9); color: var(--ink); border: 1px solid rgba(23, 24, 28, .08); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 11.5px; }
.btn-lg { height: 50px; font-size: 16px; }

/* 价格 */
.price { color: var(--red); font-weight: 800; }
.price .cur { font-size: .66em; margin-right: 1px; }
.price .unit { font-size: .52em; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

/* 头像 */
.avatar { border-radius: 50%; }
.avatar-fallback { background: linear-gradient(135deg, #FFD8CE, #FFB9AA); color: #8C2B1F; }

/* ---------------- 首页 ---------------- */
.home-wrap { max-width: 1180px; margin: 0 auto; padding: 12px 16px 0; }
.home-main { display: block; }

.hero-banner { border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(23, 24, 28, .08); }
.banner-swipe {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none;
}
.banner-swipe::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: none; width: calc(100% - 24px); scroll-snap-align: center; border-radius: 20px;
  overflow: hidden; position: relative; aspect-ratio: 1200 / 460; background: #F3F3F6;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-copy {
  position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column;
  justify-content: center; gap: 4px; color: var(--ink);
}
.banner-title { font-size: 19px; font-weight: 800; letter-spacing: .2px; max-width: 62%; line-height: 1.3; }
.banner-sub { font-size: 12px; color: var(--ink-2); max-width: 60%; }
.banner-cta {
  margin-top: 8px; align-self: flex-start; font-size: 11.5px; font-weight: 700;
  background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 999px;
}
.banner-cta.red { background: var(--red); }
.banner-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.banner-dots i { width: 5px; height: 5px; border-radius: 3px; background: #D6D8DF; transition: all .25s; }
.banner-dots i.on { width: 16px; background: var(--red); }

.notice-pill {
  margin-top: 12px; display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.notice-pill .n-tag {
  flex: none; background: var(--gold-soft); color: var(--gold); font-size: 10px;
  font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.notice-pill .n-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 游戏方块 */
.game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px;
}
.game-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px;
  border-radius: 16px; transition: transform .15s;
}
.game-tile:active { transform: scale(.96); }
.game-tile .gt-icon {
  width: 56px; height: 56px; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(23, 24, 28, .1);
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.game-tile .gt-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-tile .gt-label { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.game-tile.active .gt-label { color: var(--red); font-weight: 700; }
.game-tile .gt-all {
  background: #fff; color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* 推荐 / 最新 tabs */
.feed-tabs {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-bottom: 2px;
}
.feed-tab {
  font-size: 16px; font-weight: 700; color: var(--ink-3); position: relative; padding-bottom: 7px;
}
.feed-tab.active { color: var(--ink); font-size: 18px; }
.feed-tab.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 18px; height: 3px; border-radius: 3px; background: var(--red);
}
.feed-tabs .feed-extra { margin-left: auto; display: flex; gap: 6px; }
.mini-chip {
  height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px;
}
.mini-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 陪玩横向卡 */
.escort-list { display: flex; flex-direction: column; gap: 10px; }
.ecard {
  display: flex; gap: 12px; background: #fff; border-radius: 20px; padding: 10px;
  box-shadow: var(--shadow-card); transition: transform .16s ease;
}
.ecard:active { transform: scale(.985); }
.ecard-photo-wrap { position: relative; flex: none; width: 104px; height: 128px; border-radius: 16px; overflow: hidden; background: #EDEEF2; }
.ecard-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ecard-status {
  position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(6px);
}
.ecard-status.on { background: rgba(11, 138, 87, .9); }
.ecard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 2px 2px 0; }
.ecard-name-row { display: flex; align-items: center; gap: 6px; }
.ecard-name { font-size: 17px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard-verify { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-size: 10px; font-weight: 700; background: var(--green-soft); padding: 1px 6px; border-radius: 999px; flex: none; }
.ecard-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--ink-3); font-size: 11px; }
.ecard-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.ecard-sign {
  margin-top: 7px; font-size: 12px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ecard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; }
.ecard-foot .meta-r { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); }
.ecard-foot .meta-r b { color: var(--ink-2); font-weight: 700; }

/* 榜单（横向） */
.rank-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rank-scroll::-webkit-scrollbar { display: none; }
.rank-mini {
  flex: none; width: 150px; background: #fff; border-radius: 18px; padding: 10px;
  box-shadow: var(--shadow-card); position: relative;
}
.rank-mini img { width: 100%; height: 118px; object-fit: cover; border-radius: 13px; }
.rank-mini .rm-no {
  position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
  background: rgba(23, 24, 28, .55); color: #fff; backdrop-filter: blur(4px);
}
.rank-mini .rm-no.top1 { background: linear-gradient(135deg, #FFE3A3, #F2B544); color: #6B4300; }
.rank-mini .rm-name { font-size: 13.5px; font-weight: 800; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-mini .rm-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

/* 动态卡片（小红书风） */
.post-card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card); }
.post-head { display: flex; align-items: center; gap: 9px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #EEE; flex: none; }
.post-author { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.post-time { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.post-follow { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--red); padding: 4px 10px; border-radius: 999px; background: var(--red-soft); }
.post-follow.following { color: var(--ink-3); background: var(--bg-soft); font-weight: 600; }
.post-content { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.post-images { display: grid; gap: 5px; margin-top: 10px; grid-template-columns: repeat(2, 1fr); }
.post-images img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.post-images.one { grid-template-columns: 1fr; }
.post-images.one img { aspect-ratio: 4 / 3; border-radius: 14px; }
.post-actions { display: flex; gap: 18px; margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }
.post-actions button { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.post-actions button.liked { color: var(--red); }
.post-actions .bdot { margin-left: auto; }
.post-tag { display: inline-block; color: var(--blue); font-size: 12px; margin-right: 4px; }

/* 下载卡片 */
.dl-card {
  margin-top: 20px; display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card);
}
.dl-card img { width: 46px; height: 46px; border-radius: 14px; }
.dl-card .dl-t { font-size: 14px; font-weight: 800; }
.dl-card .dl-s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.dl-card .btn { margin-left: auto; }

/* ---------------- 大厅 ---------------- */
.lobby-top {
  background: #fff; padding: 8px 16px 12px; border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow-card); position: relative; z-index: 2;
}
.lobby-filter { padding: 10px 16px 8px; position: sticky; top: 0; z-index: 80; }
.lobby-filter .bar { background: #fff; border-radius: 16px; padding: 8px 10px; box-shadow: var(--shadow-card); }
.chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 12px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.soft.active { background: var(--red-soft); border-color: transparent; color: var(--red); }
.result-count { font-size: 12px; color: var(--ink-3); padding: 12px 16px 8px; }

/* ---------------- 陪玩详情 ---------------- */
.detail-hero {
  position: relative; width: 100%; aspect-ratio: 4 / 4.6; max-height: 62vh; overflow: hidden; background: #E9EAEF;
}
.detail-hero .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.detail-hero .slides::-webkit-scrollbar { display: none; }
.detail-hero .slides img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.hero-mask {
  position: absolute; inset: auto 0 0 0; height: 52%;
  background: linear-gradient(transparent, rgba(10, 10, 14, .55)); pointer-events: none;
}
.hero-nav {
  position: absolute; left: 14px; right: 14px; top: 14px; display: flex; gap: 8px; z-index: 5;
}
.hero-nav .nav-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); backdrop-filter: blur(6px);
}
.hero-nav .nav-btn.right { margin-left: auto; }
.hero-info { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; z-index: 4; }
.hero-name { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: .3px; }
.hero-name .tag { background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.hero-line { font-size: 12px; opacity: .92; margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.hero-tags { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.hero-tags .tag { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(8px); }
.hero-dots { position: absolute; right: 16px; top: 16px; background: rgba(0, 0, 0, .32); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; z-index: 5; }

.detail-sheet { margin: -22px 0 0; border-radius: 24px 24px 0 0; background: var(--bg); position: relative; z-index: 6; padding: 14px 14px 0; }
.pcard { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.pcard-title { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pcard-more { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.price-row { display: flex; align-items: center; gap: 12px; }
.price-row .p-now { font-size: 28px; }
.price-row .p-actions { margin-left: auto; display: flex; gap: 8px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-sign { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

.slot-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.slot-cell { text-align: center; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.slot-cell .slot-dot {
  height: 28px; border-radius: 9px; background: var(--bg-soft); margin-top: 5px;
  display: flex; align-items: center; justify-content: center; font-size: 9.5px; color: var(--ink-3);
}
.slot-cell .slot-dot.on { background: var(--green-soft); color: var(--green); }

.review-item { padding: 12px 0; }
.review-item + .review-item { border-top: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 9px; }
.review-name { font-size: 13px; font-weight: 700; }
.review-time { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.review-text { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin-top: 7px; }
.review-tags { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }

.detail-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-bottom));
}
.detail-bottom-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.db-icon {
  width: 46px; height: 46px; border-radius: 16px; background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-size: 9.5px; color: var(--ink-2); flex: none;
}
.db-icon.following { color: var(--red); background: var(--red-soft); }
.db-price { flex: 1; min-width: 0; }
.detail-bottom .btn { flex: none; min-width: 120px; }

/* ---------------- 订单 ---------------- */
.order-tabs {
  display: flex; gap: 4px; overflow-x: auto; background: #fff; padding: 0 10px;
  border-bottom: 1px solid var(--line); position: sticky; top: 50px; z-index: 80; scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tab {
  flex: none; padding: 13px 12px 12px; font-size: 13.5px; color: var(--ink-2);
  position: relative; display: inline-flex; align-items: center; gap: 4px;
}
.order-tab.active { color: var(--ink); font-weight: 800; }
.order-tab.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--red);
}
.order-card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card); }
.order-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.order-body { display: flex; gap: 11px; margin-top: 10px; align-items: center; }
.order-thumb { width: 60px; height: 74px; border-radius: 14px; object-fit: cover; background: #EEE; flex: none; }
.order-title { font-size: 14.5px; font-weight: 800; }
.order-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; align-items: center; }
.order-actions .order-total { margin-right: auto; font-size: 12px; color: var(--ink-3); }

/* ---------------- 表单 / 下单 ---------------- */
.form-page { max-width: 680px; margin: 0 auto; padding: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.option {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 8px;
  text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .15s;
}
.option small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.option.active { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.option.active small { color: var(--red); }
.field-label { font-size: 12.5px; color: var(--ink-2); font-weight: 700; margin-bottom: 8px; display: block; }
.input, .textarea { background: var(--bg-soft); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; }
.input:focus, .textarea:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 37, 27, .08); }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }

/* 支付弹层 */
.pay-amount { text-align: center; padding: 4px 0 16px; }
.pay-amount .num { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.pay-method.active { border-color: var(--red); background: var(--red-soft); }
.pay-method .pm-icon { color: var(--red); }

/* ---------------- 社区 ---------------- */
.feed-head {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px 8px; background: #fff;
  position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--line);
}
.post-fab {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 32px;
  padding: 0 13px; border-radius: 999px; background: var(--black); color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.feed-empty { padding: 60px 20px; text-align: center; color: var(--ink-3); }

/* ---------------- 我的 ---------------- */
.me-hero {
  background: radial-gradient(600px 240px at 85% -10%, #FFE3DB 0%, transparent 60%),
              radial-gradient(520px 220px at 10% 0%, #E8ECFF 0%, transparent 55%),
              #fff;
  padding: 20px 18px 46px; position: relative;
}
.me-user { display: flex; align-items: center; gap: 13px; }
.me-avatar { width: 70px; height: 70px; border-radius: 24px; object-fit: cover; box-shadow: 0 8px 22px rgba(23, 24, 28, .12); }
.me-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.me-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.me-stats { display: flex; gap: 22px; margin-top: 16px; }
.me-stat b { font-size: 18px; font-weight: 800; }
.me-stat span { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.me-body { margin: -30px 14px 0; position: relative; z-index: 2; }
.wallet-card { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow-card); }
.wallet-amount { font-size: 30px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.wallet-amount .cur { font-size: 14px; margin-right: 2px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.quick-item { background: #fff; border-radius: 18px; padding: 14px 4px 12px; text-align: center; box-shadow: var(--shadow-card); position: relative; }
.quick-item .qicon { color: var(--red); display: flex; justify-content: center; margin-bottom: 6px; }
.quick-item .qlabel { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.menu-list { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); margin-top: 12px; }
.menu-item { display: flex; align-items: center; gap: 11px; padding: 15px 16px; font-size: 14px; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item .mi-icon { color: var(--ink-2); }
.menu-item .mi-arrow { margin-left: auto; color: var(--ink-4); }

/* ---------------- 陪玩工作台 ---------------- */
.ws-hero {
  background: radial-gradient(500px 200px at 90% 0%, #FFE3DB 0%, transparent 60%), #fff;
  padding: 16px 16px 44px;
}
.ws-row { display: flex; align-items: center; gap: 12px; }
.ws-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -28px 14px 0; position: relative; z-index: 2; }
.ws-stat { background: #fff; border-radius: 18px; padding: 13px 6px; text-align: center; box-shadow: var(--shadow-card); }
.ws-stat b { display: block; font-size: 17px; font-weight: 800; }
.ws-stat span { font-size: 10.5px; color: var(--ink-3); }

/* ---------------- 聊天（样式页） ---------------- */
.chat-page { min-height: calc(100vh - 50px); background: #F7F7FA; display: flex; flex-direction: column; }
.chat-profile { background: #fff; margin: 12px 14px 0; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card); }
.chat-profile-top { display: flex; align-items: center; gap: 12px; }
.chat-stream { flex: 1; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-start; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: 74%; padding: 10px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.6;
  background: #fff; box-shadow: 0 2px 8px rgba(23, 24, 28, .04); border-top-left-radius: 6px;
}
.bubble.me { background: linear-gradient(135deg, #F6ECFF, #EFE3FF); color: #2F1A5E; border-top-left-radius: 18px; border-top-right-radius: 6px; }
.bubble-time { text-align: center; font-size: 10.5px; color: var(--ink-3); margin: 4px 0; }
.chat-input-bar {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + var(--safe-bottom));
  display: flex; gap: 8px; align-items: center;
}
.chat-input-bar .input { background: var(--bg-soft); border-radius: 999px; }
.chat-tip { font-size: 10.5px; color: var(--ink-3); text-align: center; padding: 6px 0 0; }

/* ---------------- 登录 ---------------- */
.auth-page { min-height: 100vh; background: radial-gradient(700px 400px at 80% 0%, #FFE0D6 0%, transparent 60%),
  radial-gradient(600px 380px at 0% 20%, #E7EBFF 0%, transparent 55%), #F7F7FA; padding: 46px 22px; display: flex; flex-direction: column; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand img { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px; box-shadow: 0 12px 30px rgba(225, 37, 27, .22); }
.auth-brand h1 { font-size: 24px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.auth-brand p { font-size: 12px; color: var(--ink-3); margin-top: 5px; letter-spacing: 1.5px; }
.auth-card { background: #fff; border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow-float); }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 18px; }
.auth-tab { font-size: 17px; font-weight: 800; color: var(--ink-4); }
.auth-tab.active { color: var(--ink); position: relative; }
.auth-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--red); }

/* ---------------- 下载页 ---------------- */
.download-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.dl-hero { text-align: center; padding: 10px 0 20px; }
.dl-hero img { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; box-shadow: 0 14px 34px rgba(23, 24, 28, .16); }
.dl-title { font-size: 24px; font-weight: 800; }
.dl-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.dl-item { background: #fff; border-radius: 18px; padding: 15px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 12px; }
.dl-item .di-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.dl-item b { display: block; font-size: 14.5px; }
.dl-item span { font-size: 11px; color: var(--ink-3); }
.dl-note { margin-top: 16px; background: #fff; border-radius: 18px; padding: 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; box-shadow: var(--shadow-card); }

/* 优惠券 */
.coupon-card { display: flex; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.coupon-left { width: 108px; flex: none; background: linear-gradient(135deg, #FFF1EC, #FFE2DA); color: var(--red); padding: 14px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.coupon-left .cv { font-size: 27px; font-weight: 800; line-height: 1.1; }
.coupon-left .ct { font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.coupon-right { flex: 1; padding: 13px 14px; }
.coupon-right .title { font-size: 14px; font-weight: 800; }
.coupon-right .desc { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.coupon-right .act { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.coupon-card.used { opacity: .55; filter: grayscale(1); }

/* ---------------- 桌面端 ---------------- */
@media (min-width: 900px) {
  .tabbar { display: none; }
  .page { padding-bottom: 40px; }
  .appbar-inner { padding: 12px 24px 12px; }
  .home-wrap { padding: 18px 24px 40px; }
  .home-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
  .escort-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .banner-slide { width: 100%; }
  .detail-hero { max-width: 1180px; margin: 16px auto 0; border-radius: 24px; aspect-ratio: 16/7.5; max-height: 460px; }
  .detail-hero .slides img { border-radius: 24px; }
  .detail-sheet { max-width: 1180px; margin: -36px auto 0; padding: 18px 24px 20px; border-radius: 26px 26px 0 0; }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
  .detail-bottom-inner { max-width: 1180px; }
  .form-page { padding: 18px 24px 60px; }
  .me-hero { padding: 24px 24px 52px; }
  .me-body { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 24px; }
  .quick-grid { grid-template-columns: repeat(6, 1fr); }
  .auth-page { align-items: center; justify-content: center; }
  .auth-card { width: 420px; }
  .game-grid { grid-template-columns: repeat(4, 120px); justify-content: start; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .feed-head { top: 0; }
}

@media (max-width: 380px) {
  .ecard-photo-wrap { width: 92px; height: 116px; }
  .ecard-name { font-size: 16px; }
  .game-tile .gt-icon { width: 52px; height: 52px; }
}

/* 桌面顶部导航 */
.desktop-nav { display: none; }
@media (min-width: 900px) {
  .desktop-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
  .desktop-nav a {
    padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
    font-weight: 600; transition: background .15s, color .15s;
  }
  .desktop-nav a:hover { background: var(--bg-soft); color: var(--ink); }
  .desktop-nav a.active { background: var(--ink); color: #fff; }
  .head-actions .head-btn { display: none; }
}

/* --- v2 细节修正 --- */
.hero-dots { top: 60px; }
.db-price { white-space: nowrap; }
.db-price .price { line-height: 1.1; }
.wallet-amount .cur { vertical-align: 6px; font-size: 16px; margin-right: 3px; }
.ecard-photo-wrap { width: 108px; height: 132px; }
@media (min-width: 900px) { .ecard-photo-wrap { width: 120px; height: 146px; } }
.game-tile .gt-icon.gt-all { font-size: 22px; }

/* 详情底部栏价格不换行；桌面搜索框限宽 */
.detail-bottom .unit { display: none; }
.detail-bottom .price { font-size: 19px; }
@media (min-width: 900px) {
  .searchbar { max-width: 560px; }
  .banner-title { font-size: 26px; max-width: 46%; }
  .banner-sub { font-size: 14px; }
  .banner-copy { padding: 28px 32px; }
  .banner-cta { margin-top: 14px; padding: 8px 18px; font-size: 13px; }
}
