/* ================= 深海电竞风 · 浅色（白）主题 ================= */
:root {
  --bg: #f4f7fb;
  --bg-2: #eef3fa;
  --card: #ffffff;
  --card-2: #f8fafd;
  --line: rgba(14, 165, 198, .18);
  --line-soft: #e8eef7;
  --cyan: #0fa8c4;
  --cyan-2: #0891ab;
  --cyan-dim: rgba(15, 168, 196, .08);
  --text: #16233a;
  --muted: #5f7189;
  --muted-2: #93a3b8;
  --red: #ff5a52;
  --gold: #c98200;
  --green: #12a150;
  --radius: 16px;
  --shadow: 0 8px 26px rgba(15, 35, 70, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 132px;
  background:
    radial-gradient(900px 420px at 85% -12%, rgba(15, 168, 196, .10), transparent 62%),
    radial-gradient(700px 380px at -10% 26%, rgba(99, 132, 255, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: var(--cyan); text-decoration: none; }
input, textarea, select { font: inherit; color: var(--text); }
::placeholder { color: #a8b6c8; }
::-webkit-scrollbar { width: 0; height: 0; }

/* 首屏骨架屏 */
.skwrap { padding: 8px 12px 0; }
.sk {
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 37%, #eef2f8 63%);
  background-size: 400% 100%;
  animation: skShine 1.2s ease-in-out infinite;
  border-radius: 12px;
}
@keyframes skShine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-hero { height: 152px; border-radius: 16px; margin-bottom: 14px; }
.sk-line { height: 14px; margin-bottom: 12px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.sk-col { height: 64px; border-radius: 14px; }
.sk-block { height: 96px; border-radius: 16px; margin-bottom: 14px; }
.sk-card { height: 148px; border-radius: 12px; }
.sk-row:last-child { grid-template-columns: repeat(3, 1fr); }

/* 我的页脚：搭建同款小程序 */
.mp-foot { text-align: center; margin: 18px 12px 10px; }
.mp-build {
  font-size: 12.5px; color: #0a8fae; background: none; padding: 6px 10px;
  text-decoration: underline; text-underline-offset: 3px;
}
.mp-ver { font-size: 10.5px; color: #b6c3d2; margin-top: 4px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 40%, rgba(255, 255, 255, .82) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 238, 247, .9);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; border: 1px solid var(--line-soft); background: #fff; padding: 2px; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; color: #10203a; }
.brand-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #22c9e4, #0a90b0);
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(14, 165, 198, .25);
}
.pill svg { width: 13px; height: 13px; }

/* ---------------- 通用 ---------------- */
main { padding: 0 0 6px; }
.section { padding: 0 12px; margin-top: 14px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: .3px;
  margin: 0 0 10px;
  color: #10203a;
}
.section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, #2fd0e8, #0a90b0);
}
.section-title small { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--muted-2); }
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(15, 35, 70, .04);
}
.muted { color: var(--muted-2); font-size: 12px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted-2); font-size: 13px; line-height: 2; }
.empty b { color: var(--muted); font-weight: 600; }
.hr { height: 1px; background: var(--line-soft); margin: 12px 0; }

/* 按钮 */
.btn-cyan, .btn-ghost, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; font-weight: 700; font-size: 14px; padding: 11px 16px;
  transition: transform .12s ease, filter .2s ease;
}
.btn-cyan {
  color: #fff;
  background: linear-gradient(135deg, #2fcbe6 0%, #0fa8c4 55%, #0a8fae 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 198, .28);
}
.btn-cyan svg { width: 16px; height: 16px; }
.btn-ghost {
  color: #0a8fae; background: #f2fbfd;
  border: 1px solid rgba(15, 168, 196, .45);
}
.btn-line { color: var(--muted); border: 1px solid var(--line-soft); background: #f7f9fc; }
.btn-cyan:active, .btn-ghost:active, .btn-line:active { transform: scale(.97); }
.btn-cyan[disabled] { filter: grayscale(.5) brightness(.95); box-shadow: none; opacity: .65; }
.mini-btn {
  font-size: 11.5px; color: #0a8fae; border: 1px solid rgba(15, 168, 196, .35);
  padding: 4px 10px; border-radius: 999px; background: #f2fbfd;
}

/* ---------------- 首页 Banner ---------------- */
.hero { margin: 8px 12px 0; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 6px 20px rgba(15, 35, 70, .08); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-item {
  flex: 0 0 100%; scroll-snap-align: start; height: 152px; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px;
  background: linear-gradient(135deg, #eaf6ff 0%, #f4f9ff 60%, #eef4ff 100%);
}
.hero-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-item h2 {
  position: relative; margin: 0; font-size: 19px; line-height: 1.35; font-weight: 900;
  color: #0c2b46;
}
.hero-item.text { height: auto; min-height: 152px; padding: 16px 18px; }
.hero-item.text h2 { font-size: 17px; }
.hero-item.text ol { font-size: 11.5px; line-height: 1.8; }
.hero-item ol { position: relative; margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.9; color: #4a6280; }
.hero-foot { position: relative; font-size: 12px; color: var(--gold); font-weight: 600; }
.hero-dots { display: flex; gap: 5px; justify-content: center; padding: 7px 0 2px; background: #fff; }
.hero-dots i { width: 5px; height: 5px; border-radius: 9px; background: #d3ddec; transition: all .25s; }
.hero-dots i.on { width: 16px; background: var(--cyan); }

/* 公告条 */
.notice {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 0; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 10px;
  font-size: 11.5px; color: #5f7189;
  box-shadow: 0 2px 8px rgba(15, 35, 70, .03);
}
.notice svg { width: 15px; height: 15px; color: var(--cyan); flex: 0 0 auto; }
.notice span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 快捷入口 */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 12px 12px 0;
}
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.quick-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; font-weight: 900; color: #fff;
  background: linear-gradient(160deg, #8fb3e8, #6d8fc4);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 6px 14px rgba(37, 74, 130, .16);
  position: relative; overflow: hidden;
}
.quick-ico::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, .35), transparent 70%);
}
.quick-ico img { width: 100%; height: 100%; object-fit: cover; }
.quick-ico.q1 { background: linear-gradient(160deg, #ff9d5c, #ee5b2c); }
.quick-ico.q2 { background: linear-gradient(160deg, #ffc15c, #e78b00); }
.quick-ico.q3 { background: linear-gradient(160deg, #35cfe8, #0a90b0); }
.quick-ico.q4 { background: linear-gradient(160deg, #9b83f5, #6b4fd8); }
.quick span { font-size: 11.5px; color: #4a6280; }

/* 秒杀 */
.seckill {
  margin: 14px 12px 0; padding: 12px;
  border-radius: 16px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 93, 85, .07), transparent 60%),
    #fff;
  box-shadow: 0 4px 16px rgba(15, 35, 70, .05);
}
.sk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sk-head b { font-size: 15px; letter-spacing: .5px; color: #10203a; }
.sk-head em {
  font-style: normal; font-size: 10.5px; color: var(--red);
  border: 1px solid rgba(255, 93, 85, .35); border-radius: 6px; padding: 1px 5px;
  background: rgba(255, 93, 85, .06);
}
.sk-head span { margin-left: auto; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sk-body { display: flex; gap: 10px; align-items: center; }
.sk-img { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: #f1f5fa; border: 1px solid var(--line-soft); }
.sk-img img { width: 100%; height: 100%; object-fit: cover; }
.sk-main { flex: 1; min-width: 0; }
.sk-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #16233a; }
.sk-bar { height: 5px; border-radius: 9px; background: #eaf0f8; margin: 8px 0 4px; overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #3ed6a4, #0fa8c4); }
.sk-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted-2); }
.sk-price { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.sk-price b { color: #0a8fae; font-size: 17px; }
.sk-price del { color: #a8b6c8; font-size: 11px; }
.sk-price em { font-style: normal; font-size: 10px; color: #c98200; border: 1px solid rgba(201, 130, 0, .3); border-radius: 4px; padding: 0 4px; background: rgba(201, 130, 0, .06); }
.sk-btn { flex: 0 0 auto; padding: 8px 14px; font-size: 12.5px; }

/* 分类 tab */
.cat-tabs {
  position: sticky; top: 52px; z-index: 30;
  display: flex; align-items: center; gap: 4px;
  margin: 16px 0 0; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(244, 247, 251, .98) 70%, rgba(244, 247, 251, .86));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}
.cat-tabs button {
  flex: 0 0 auto; font-size: 14px; color: #5f7189; padding: 6px 10px; border-radius: 8px; font-weight: 600;
  position: relative;
}
.cat-tabs button.on { color: #0a8fae; font-weight: 800; }
.cat-tabs button.on::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--cyan);
}
.cat-tabs .menu-btn {
  position: sticky; right: 0; margin-left: auto; color: #5f7189; display: grid; place-items: center;
  padding: 4px 2px 4px 16px; background: linear-gradient(90deg, rgba(244, 247, 251, 0), var(--bg) 38%);
}

/* 商品分组 */
.pgroup { margin-top: 14px; }
.pgroup-head {
  display: inline-flex; align-items: center; padding: 4px 12px 4px 10px; margin: 0 0 9px;
  background: linear-gradient(90deg, #2fd0e8, rgba(47, 208, 232, .12));
  color: #06333f; font-size: 12.5px; font-weight: 800; border-radius: 0 8px 8px 0;
}

/* 商品卡（三列） */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 6px; }
@media (min-width: 480px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pcard {
  position: relative; border-radius: 10px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 3px 10px rgba(15, 35, 70, .05);
  transition: transform .12s ease, border-color .2s;
}
.pcard:active { transform: scale(.98); }
.pcard-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eef3fa; }
.pcard-art img { width: 100%; height: 100%; object-fit: cover; }
.pcard-art .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 34px; font-weight: 900; color: #0b7f96;
  background: linear-gradient(150deg, #eaf6ff 0%, #dcecf9 55%, #e8f0fb 100%);
}
.pcard-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(6, 22, 40, .55) 100%);
}
.pcard-art.noimg::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, rgba(240, 248, 255, .92) 100%);
}
.pcard-art.noimg .pcard-tag { text-shadow: none; }
.pcard-art.noimg .pcard-tag .shop { color: #0b5f73; }
.pcard-art.noimg .pcard-tag .sub { color: #8a6a1f; }
.pcard-tag {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; text-align: center;
  font-size: 11px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55); padding: 0 4px; line-height: 1.25;
}
.pcard-tag .shop { display: block; color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .5px; }
.pcard-tag .sub {
  display: block; color: #ffe6b8; font-size: 8.5px; font-weight: 600; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-body { padding: 7px 7px 9px; position: relative; }
.pcard-title {
  font-size: 11.5px; color: #24354d; line-height: 1.35; height: 31px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pcard-foot { display: flex; align-items: center; gap: 3px; margin-top: 6px; padding-right: 2px; }
.pcard-price { color: #0a8fae; font-size: 13.5px; font-weight: 900; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.pcard-price i { font-style: normal; font-size: 9px; margin-right: 1px; }
.pcard-sold { flex: 1; min-width: 0; font-size: 9px; color: #93a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-add {
  position: absolute; right: 6px; bottom: 6px; z-index: 3; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2fcbe6, #0a90b0);
  box-shadow: 0 3px 8px rgba(14, 165, 198, .35), 0 0 0 2px rgba(255, 255, 255, .85);
}
.pcard-add svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* 抢购滚动条 */
.buybar {
  position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 536px;
  bottom: 74px; z-index: 35;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line-soft); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 35, 70, .08);
  font-size: 11px; color: #5f7189; overflow: hidden;
}
.buybar .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #35cfe8, #0a90b0); display: grid; place-items: center; font-size: 10px; color: #fff; font-weight: 900; flex: 0 0 auto; }
.buybar .txt { flex: 1; white-space: nowrap; overflow: hidden; }
.buybar .txt b { color: #0a8fae; font-weight: 700; }
.buybar .go {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #2fcbe6, #0a90b0);
}

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 10px; z-index: 50;
  width: calc(100% - 20px); max-width: 540px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px 4px; border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e6edf7;
  box-shadow: 0 10px 30px rgba(15, 35, 70, .12);
  backdrop-filter: blur(16px);
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #8b9bb0; font-size: 10.5px; padding: 3px 0; position: relative;
}
.tabbar .tab .ti { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: all .2s; }
.tabbar .tab.active { color: #0a8fae; font-weight: 700; }
.tabbar .tab.active .ti {
  color: #0a8fae; background: #e9f8fc;
  box-shadow: 0 0 0 1.5px rgba(15, 168, 196, .55), 0 0 0 5px rgba(15, 168, 196, .07);
}
.tabbar .tab.active::after {
  content: ""; position: absolute; top: -7px; width: 34px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 168, 196, .10), transparent 70%); pointer-events: none;
}
.tab-badge {
  position: absolute; top: 0; right: 50%; margin-right: -24px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}

/* ---------------- 选人（陪玩列表） ---------------- */
.searchbar {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 0; padding: 9px 12px;
  border-radius: 14px; border: 1px solid #e2eaf5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 35, 70, .04);
}
.searchbar svg { width: 16px; height: 16px; color: var(--cyan); flex: 0 0 auto; }
.searchbar input { flex: 1; border: 0; background: none; outline: none; font-size: 13.5px; }
.filter-row { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; }
.chip {
  flex: 0 0 auto; font-size: 12px; color: #5f7189; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: #fff;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip.on { color: #0a8fae; border-color: rgba(15, 168, 196, .45); background: #f0fbfd; font-weight: 600; }
.chip svg { width: 9px; height: 9px; opacity: .7; }

.scard {
  margin: 10px 12px 0; padding: 10px 12px 12px; border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 4px 16px rgba(15, 35, 70, .06);
  position: relative; overflow: hidden;
}
.scard::before {
  content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -70px;
  background: radial-gradient(circle, rgba(15, 168, 196, .08), transparent 70%);
}
.scard-top { display: flex; gap: 12px; position: relative; }
.scard-av {
  flex: 0 0 auto; width: 86px; height: 86px; border-radius: 16px; overflow: hidden;
  border: 2px solid #fff; transform: rotate(-1.5deg);
  box-shadow: 0 0 0 1px #e2eaf5, 0 8px 18px rgba(15, 35, 70, .12);
  background: #f1f5fa;
}
.scard-av img { width: 100%; height: 100%; object-fit: cover; }
.scard-av .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #0a8fae; background: linear-gradient(150deg, #e7f7fb, #dbeeff); }
.scard-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.scard-name { font-size: 16.5px; font-weight: 800; letter-spacing: .5px; color: #10203a; }
.scard-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #5f7189; }
.scard-meta .star { color: #0a8fae; display: inline-flex; align-items: center; gap: 2px; }
.scard-meta .star svg { width: 11px; height: 11px; }
.scard-meta .online { color: var(--green); }
.scard-meta .offline { color: #a8b6c8; }
.scard-tag {
  align-self: flex-start; font-size: 10.5px; color: #0a8fae;
  border: 1px solid rgba(15, 168, 196, .3); border-radius: 6px; padding: 1px 7px;
  background: #f2fbfd;
}
.scard-desc { font-size: 11.5px; color: #5f7189; line-height: 1.5; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-btns { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 11px; }
.scard-btns button { padding: 8px 0; font-size: 12.5px; }

/* ---------------- 消息 ---------------- */
.msg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; margin: 8px 12px 0;
  border-radius: 14px; background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 10px rgba(15, 35, 70, .04);
}
.msg-av {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; color: #0a8fae;
  background: linear-gradient(150deg, #eaf6ff, #dcecf9); border: 1px solid #e2eaf5;
}
.msg-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-main { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; gap: 6px; }
.msg-name { font-size: 13.5px; font-weight: 700; color: #16233a; }
.msg-time { margin-left: auto; font-size: 10px; color: #a8b6c8; }
.msg-sub { font-size: 10.5px; color: #93a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-last { font-size: 12px; color: #5f7189; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-badge {
  flex: 0 0 auto; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 17px; text-align: center; font-weight: 700;
}
.role-tag {
  font-style: normal; font-size: 9px; color: #0a8fae; border: 1px solid rgba(15, 168, 196, .3);
  border-radius: 4px; padding: 0 3px; line-height: 14px; font-weight: 600; background: #f2fbfd;
}
.role-tag.user { color: #c98200; border-color: rgba(201, 130, 0, .3); background: #fff8eb; }
.role-tag.self { color: #93a3b8; border-color: #e2eaf5; background: #f8fafd; }

/* ---------------- 我的 ---------------- */
.mine-hero { margin: 8px 12px 0; border-radius: 16px; overflow: hidden; position: relative; height: 118px;
  background: linear-gradient(120deg, #eaf6ff, #e6efff 60%, #f2f7ff); border: 1px solid var(--line-soft);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(15, 35, 70, .05); }
.mine-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mine-hero .txt { position: relative; text-align: center; }
.mine-hero .txt b { display: block; font-size: 17px; font-weight: 900; color: #0c2b46; }
.mine-hero .txt span { font-size: 11px; color: #4a6280; }

.profile-card {
  margin: 10px 12px 0; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line-soft); background: #fff;
  box-shadow: 0 4px 16px rgba(15, 35, 70, .05);
  display: flex; gap: 12px; align-items: center;
}
.pf-av {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #0a8fae;
  border: 1.5px solid rgba(15, 168, 196, .3); background: #f0fbfd;
  position: relative; cursor: pointer;
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-av .av-cam {
  position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2fcbe6, #0a90b0);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(14, 165, 198, .3);
}
.pf-av .av-cam svg { width: 10px; height: 10px; }
.avatar-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-main { flex: 1; min-width: 0; }
.pf-name-row { display: flex; align-items: center; gap: 7px; }
.pf-name { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; color: #10203a; }
.pf-level { font-size: 9.5px; color: #5f7189; border: 1px solid #e2eaf5; border-radius: 5px; padding: 0 5px; white-space: nowrap; background: #f8fafd; }
.pf-sub { font-size: 11.5px; color: #5f7189; margin-top: 5px; }
.pf-uid { font-size: 10.5px; color: #a8b6c8; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pf-edit { flex: 0 0 auto; font-size: 11.5px; color: #5f7189; padding: 5px 10px; border-radius: 8px; background: #f5f8fc; border: 1px solid var(--line-soft); }

.mine-block {
  margin: 10px 12px 0; padding: 13px; border-radius: 16px;
  border: 1px solid var(--line-soft); background: #fff;
  box-shadow: 0 2px 10px rgba(15, 35, 70, .04);
}
.mine-block-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; margin-bottom: 12px; color: #10203a; }
.mine-block-title::before { content: ""; width: 3px; height: 13px; border-radius: 3px; background: linear-gradient(180deg, #2fd0e8, #0a90b0); }
.orders-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.orders-row button { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #5f7189; font-size: 11.5px; position: relative; padding: 2px 0; }
.orders-row svg { width: 22px; height: 22px; color: #0fa8c4; }
.orders-row .dot {
  position: absolute; top: -2px; right: 16%; min-width: 15px; height: 15px; line-height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
}
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 12px 0; }
.two-cards button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; color: #16233a;
  border: 1px solid var(--line-soft); background: #fff;
  box-shadow: 0 2px 10px rgba(15, 35, 70, .04);
}
.two-cards .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.two-cards .ico.heart { color: #ff5f7e; background: #fff0f3; }
.two-cards .ico.kf { color: #0fa8c4; background: #eefafd; }
.grid-serv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; }
.grid-serv button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: #5f7189; }
.grid-serv .g-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #0fa8c4; background: #f0fbfd; border: 1px solid rgba(15, 168, 196, .14); }
.grid-serv .g-ico svg { width: 20px; height: 20px; }
.logout-btn {
  display: flex; width: calc(100% - 24px); margin: 16px 12px 0; padding: 12px;
  border-radius: 14px; border: 1px solid rgba(255, 93, 85, .28); color: #e14b44;
  background: #fff5f4; font-weight: 700; font-size: 13.5px;
  align-items: center; justify-content: center; gap: 7px;
}

/* ---------------- 聊天 ---------------- */
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.chat-head b { font-size: 14px; }
.chat-order { font-size: 10.5px; color: #5f7189; padding: 7px 14px; background: #eef3fa; text-align: center; }
.chat-body { padding: 12px; min-height: 50vh; height: calc(100vh - 250px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0a8fae; background: #eaf6ff; border: 1px solid #e2eaf5; }
.bubble-av img { width: 100%; height: 100%; object-fit: cover; }
.bubble {
  max-width: 72%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55;
  background: #fff; border: 1px solid var(--line-soft); border-bottom-left-radius: 4px;
  word-break: break-word; color: #16233a;
  box-shadow: 0 2px 8px rgba(15, 35, 70, .04);
}
.bubble-row.mine .bubble {
  color: #fff; border: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 12px;
  background: linear-gradient(135deg, #35cfe8, #0a90b0);
}
.chat-input {
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft); background: #fff;
}
.chat-input input {
  flex: 1; border: 1px solid var(--line-soft); background: #f7f9fc;
  border-radius: 999px; padding: 10px 14px; outline: none; font-size: 13px;
}

/* 订单行 */
.order-item {
  display: flex; gap: 10px; padding: 12px; margin: 8px 12px 0; align-items: center;
  border-radius: 14px; border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 35, 70, .04);
}
.order-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: #eef3fa; border: 1px solid var(--line-soft); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-title { font-size: 13px; font-weight: 700; color: #16233a; }
.order-meta { font-size: 10.5px; color: #5f7189; margin-top: 3px; }
.status { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status.待支付 { color: #b57900; border-color: rgba(201, 130, 0, .3); background: #fff8eb; }
.status.待服务 { color: #0a8fae; border-color: rgba(15, 168, 196, .3); background: #f0fbfd; }
.status.服务中 { color: #0f8a45; border-color: rgba(18, 161, 80, .3); background: #f0fbf3; }
.status.已完成 { color: #5f7189; border-color: #e2eaf5; background: #f8fafd; }
.status.已取消, .status.退款单 { color: #e14b44; border-color: rgba(255, 93, 85, .28); background: #fff5f4; }

/* ---------------- 弹层 ---------------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(15, 30, 55, .35); backdrop-filter: blur(3px); z-index: 90; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-width: 560px; margin: 0 auto;
  max-height: 88vh; display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf7; border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 40px rgba(15, 35, 70, .16);
  animation: sheetUp .24s ease;
}
@keyframes sheetUp { from { transform: translateY(26px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--line-soft);
}
.sheet-head b { font-size: 15px; color: #10203a; }
.sheet-head .x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #5f7189; background: #f2f5fa; }
.sheet-head .x svg { width: 14px; height: 14px; }
.sheet-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.sheet-foot { display: flex; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.sheet-foot > * { flex: 1; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11.5px; color: #5f7189; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  border: 1px solid #e2eaf5; background: #f8fafd;
  outline: none; font-size: 14px; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: rgba(15, 168, 196, .55); background: #fff; box-shadow: 0 0 0 3px rgba(15, 168, 196, .08); }
.field textarea { resize: none; }

/* 支付 */
.pay-amount { text-align: center; font-size: 30px; font-weight: 900; color: #0a8fae; margin: 6px 0 4px; }
.pay-divider { display: flex; align-items: center; gap: 10px; color: #a8b6c8; font-size: 11px; margin: 16px 0 10px; }
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.pay-chs { display: flex; flex-direction: column; gap: 8px; }
.pay-ch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #16233a;
  border: 1px solid var(--line-soft); background: #fbfcfe;
}
.pay-ch i { font-style: normal; font-size: 10.5px; color: #0a8fae; border: 1px solid rgba(15, 168, 196, .3); border-radius: 5px; padding: 1px 5px; background: #f2fbfd; }

/* 登录 */
.auth { padding: 22px 18px; }
.auth h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: 1px; color: #10203a; }
.auth p { margin: 0 0 20px; font-size: 12px; color: #93a3b8; }
.auth .field input { padding: 13px 14px; }
.auth-tabs { display: flex; gap: 18px; margin-bottom: 18px; font-size: 15px; color: #93a3b8; }
.auth-tabs b.on { color: #10203a; position: relative; }
.auth-tabs b.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--cyan); }
.cap-row { display: flex; gap: 8px; }
.cap-row input { flex: 1; }
.cap-row img { width: 108px; height: 42px; border-radius: 10px; border: 1px solid var(--line-soft); object-fit: cover; }

/* 二级页（聊天/详情/登录）隐藏底部导航，内容自己撑满 */
body.subpage { padding-bottom: 0; }
body.subpage .tabbar { display: none; }
body.subpage .chat-body { padding-bottom: 12px; }
body.subpage .chat-input {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 20;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
}

/* toast */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 200;
  background: rgba(16, 32, 58, .92); color: #fff; font-size: 13px;
  padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 35, 70, .25); max-width: 78vw; text-align: center;
}

/* 文档 */
.doc { font-size: 12.5px; line-height: 2; color: #4a6280; white-space: pre-wrap; }

/* 详情 */
.detail-card { margin: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: #fff; box-shadow: 0 2px 10px rgba(15, 35, 70, .04); }
.drow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed #eef2f8; }
.drow:last-child { border-bottom: 0; }
.drow span:first-child { color: #5f7189; flex: 0 0 auto; }
.drow span:last-child { color: #24354d; text-align: right; word-break: break-all; }
.drow.hl span:last-child { color: #0a8fae; font-weight: 800; font-size: 16px; }

.page-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.page-head b { font-size: 14px; color: #10203a; }
.page-head .back { color: #5f7189; display: grid; place-items: center; }
.page-head .back svg { width: 18px; height: 18px; }

.guest-card { margin: 48px 18px; text-align: center; padding: 30px 18px; border-radius: 18px; border: 1px solid var(--line-soft); background: #fff; box-shadow: 0 4px 16px rgba(15, 35, 70, .05); }
.guest-card h3 { margin: 14px 0 6px; font-size: 16px; color: #10203a; }
.guest-card p { margin: 0 0 18px; font-size: 12px; color: #93a3b8; line-height: 1.8; }
.guest-card .g-ico { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #0a8fae; background: #f0fbfd; border: 1px solid rgba(15, 168, 196, .2); }
