/* ==========================================================================
   辰云电竞陪玩系统 · 设计系统（H5）
   玻璃拟态：半透明磨砂面板 + 环境光背景 + 半透明按钮
   ========================================================================== */

:root {
  /* 品牌色（会被分站主题色覆盖 --zc-theme） */
  --zc-theme: #4F46E5;
  --brand: #4F46E5;
  --brand-2: #7C3AED;
  --brand-soft: rgba(79, 70, 229, .12);
  --brand-softer: rgba(79, 70, 229, .06);

  /* 中性色 */
  --bg: #F6F7FA;
  --card: rgba(255, 255, 255, .86);

  /* —— 玻璃拟态（克制版：面板更实、边缘用发丝线，保证可读性）—— */
  --glass: rgba(255, 255, 255, .82);          /* 面板底 */
  --glass-strong: rgba(255, 255, 255, .93);   /* 需要更实的面板 */
  --glass-weak: rgba(255, 255, 255, .58);     /* 更透的底 */
  --glass-line: rgba(255, 255, 255, .85);     /* 玻璃边的亮线 */
  --glass-edge: rgba(16, 24, 40, .06);        /* 描边：发丝线，不是白边 */
  --glass-blur: saturate(170%) blur(18px);
  --glass-blur-sm: saturate(160%) blur(12px);

  --text: #0F1115;
  --text-1: #363B47;
  --text-2: #6B7280;
  --text-3: #9BA1AE;
  /* 分隔线：玻璃面板上要看得见，所以用低透明度灰蓝而不是白色 */
  --line: rgba(16, 24, 40, .075);
  --line-2: rgba(16, 24, 40, .13);

  /* 功能色 */
  --green: #0EA371;
  --green-soft: rgba(18, 183, 106, .14);
  --orange: #E08407;
  --orange-soft: rgba(247, 144, 9, .14);
  --red: #E23D31;
  --red-soft: rgba(240, 68, 56, .12);
  --blue: #2E90FA;
  --blue-soft: rgba(46, 144, 250, .13);

  /* 尺寸 */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-s: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .045);
  --shadow-l: 0 12px 36px rgba(16, 24, 40, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* 环境光背景：只留一层极淡的品牌色光晕，干净为主 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 46% at 50% -8%, rgba(79, 70, 229, .16), rgba(79, 70, 229, 0) 70%),
    radial-gradient(70% 34% at 108% 8%, rgba(14, 165, 233, .10), rgba(14, 165, 233, 0) 70%),
    linear-gradient(180deg, #F7F8FC 0%, #F4F5F9 100%);
}

body { overscroll-behavior-y: none; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
p { margin: 0; }
input, textarea { outline: none; }

::-webkit-scrollbar { width: 0; height: 0; }

/* --------------------------------------------------------------------------
   页面骨架
   -------------------------------------------------------------------------- */

.zc-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  body { background: #E7EBF6; }
  .zc-app {
    max-width: 460px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 30px 70px rgba(31,38,95,.16);
    min-height: 100vh;
  }
  /* 桌面端把环境光收进手机视口里，两侧留白更干净 */
  body::before { opacity: .92; }
}

.zc-main {
  flex: 1;
  padding: 0 14px;
  padding-bottom: calc(24px + var(--safe-b));
}
.zc-main.has-tabbar { padding-bottom: calc(86px + var(--safe-b)); }
.zc-main.no-pad { padding-left: 0; padding-right: 0; }

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.zc-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  padding-top: var(--safe-t);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.zc-nav.scrolled { border-bottom-color: var(--line); }
.zc-nav__title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zc-nav__title.center { text-align: center; }
.zc-nav__btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: var(--text-1);
  transition: background .15s;
  flex-shrink: 0;
}
.zc-nav__btn:active { background: var(--line); }
.zc-nav--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-bottom: 0;
}
.zc-nav--brand .zc-nav__btn { color: #fff; }
.zc-nav--brand .zc-nav__btn:active { background: rgba(255,255,255,.16); }
.zc-nav--transparent { background: transparent; border-bottom: 0; }

/* --------------------------------------------------------------------------
   底部 Tab
   -------------------------------------------------------------------------- */

.zc-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 70;
  display: flex;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
@media (min-width: 900px) { .zc-tabbar { max-width: 460px; } }
.zc-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 0 5px;
  color: var(--text-3);
  font-size: 10.5px;
  position: relative;
  transition: color .15s;
}
/* 圆形图标底（商城风格） */
.zc-tabbar__ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 24, 40, .05);
  color: var(--text-3);
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
.zc-tabbar__tx { font-size: 10.5px; line-height: 1.2; }
.zc-tabbar__item.active .zc-tabbar__ico {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .16);
}
.zc-tabbar__item.active .zc-tabbar__tx { color: var(--brand); font-weight: 600; }
.zc-tabbar__item:active .zc-tabbar__ico { transform: scale(.93); }

.zc-tabbar__item .dot {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 8px;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  margin-bottom: 12px;
  overflow: hidden;
}
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--pad { padding: 16px; }
.card--lg { border-radius: var(--r-lg); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.card-head h3 { font-size: 15.5px; letter-spacing: -.2px; }
.card-head .more { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 2px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.section-title h3 { font-size: 16px; letter-spacing: -.2px; }
.section-title .more { font-size: 12.5px; color: var(--text-3); }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: var(--line);
  color: var(--text-1);
  transition: transform .12s, opacity .15s, background .15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .28);
}
.btn--ghost { background: var(--brand-soft); color: var(--brand); }
.btn--line { background: transparent; border: 1px solid var(--line-2); color: var(--text-1); }
.btn--danger { background: var(--red-soft); color: var(--red); }
.btn--white { background: #fff; color: var(--text); box-shadow: var(--shadow-s); }
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn--xs { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn--lg { height: 50px; font-size: 16px; border-radius: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--loading { pointer-events: none; opacity: .7; }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* 底部固定操作栏 */
.action-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .action-bar { max-width: 460px; } }
.action-bar .price-box { flex: 1; min-width: 0; }
.action-bar .btn { min-width: 130px; }

/* --------------------------------------------------------------------------
   标签 / 徽章
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  background: var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--orange { background: var(--orange-soft); color: var(--orange); }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.tag--line { background: transparent; border: 1px solid var(--line-2); }
.tag--lg { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 8px; }

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

.dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
}
.dot-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.dot-badge.online { color: var(--green); }
.dot-badge.online::before { background: var(--green); box-shadow: 0 0 0 3px rgba(18,183,106,.15); }

/* --------------------------------------------------------------------------
   头像
   -------------------------------------------------------------------------- */

.avatar {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #E4E7FF);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.avatar--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 22px; }
.avatar--xl { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
.avatar--round { border-radius: 50%; }

.avatar .online-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

/* --------------------------------------------------------------------------
   列表
   -------------------------------------------------------------------------- */

.list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  transition: background .15s;
}
.list-item:active { background: #FAFBFD; }
.list-item + .list-item::before {
  content: '';
  position: absolute;
  left: 16px; right: 0; top: 0;
  height: 1px;
  background: var(--line);
}
.list-item__body { flex: 1; min-width: 0; }
.list-item__title {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item__desc {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item__extra { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.list-item__arrow { color: var(--line-2); font-size: 16px; }

/* --------------------------------------------------------------------------
   网格
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 10px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */

.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.field__label .req { color: var(--red); margin-left: 2px; }
.field__hint { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

.input, .textarea, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s;
  font-size: 15px;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input[disabled] { background: #F7F8FB; color: var(--text-3); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239BA1B4' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.10); }
.input-group .input { border: 0; border-radius: 0; box-shadow: none !important; height: 44px; }
.input-group .prefix, .input-group .suffix {
  padding: 0 12px;
  color: var(--text-3);
  font-size: 14px;
  flex-shrink: 0;
}

.switch {
  position: relative;
  width: 46px; height: 27px;
  border-radius: 14px;
  background: var(--line-2);
  transition: background .2s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
  transition: transform .2s;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(19px); }

/* 选项组 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 500;
}

/* 单/复选 */
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   价格
   -------------------------------------------------------------------------- */

.price { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.price .sym { font-size: .72em; margin-right: 1px; }
.price .num { font-size: 1.12em; }
.price--lg .num { font-size: 1.5em; }
.price--xl .num { font-size: 1.9em; }
.price--muted { color: var(--text-2); }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: 12px; font-weight: 400; }

/* --------------------------------------------------------------------------
   状态 / 空态 / 骨架
   -------------------------------------------------------------------------- */

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty__icon { font-size: 44px; margin-bottom: 12px; opacity: .8; }
.empty__text { font-size: 13.5px; }
.empty .btn { margin-top: 16px; }

.loading { padding: 40px; text-align: center; color: var(--text-3); font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, #F0F1F6 25%, #F7F8FB 37%, #F0F1F6 63%);
  background-size: 400% 100%;
  animation: skeleton 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner--dark { border-color: rgba(79,70,229,.25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Toast / 弹层
   -------------------------------------------------------------------------- */

.zc-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  z-index: 9999;
  max-width: 74vw;
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(20, 22, 31, .9);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.zc-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.zc-toast--top { top: 84px; transform: translate(-50%, 0) scale(.94); }
.zc-toast--top.show { transform: translate(-50%, 0) scale(1); }

.mask {
  position: fixed;
  inset: 0;
  background: rgba(20,22,31,.42);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
  backdrop-filter: blur(2px);
}
.mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  z-index: 201;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transition: transform .28s cubic-bezier(.32,.72,.3,1);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-b);
}
@media (min-width: 900px) { .sheet { max-width: 460px; } }
.sheet.show { transform: translate(-50%, 0); }
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
  flex-shrink: 0;
}
.sheet__head h3 { font-size: 16.5px; }
.sheet__close { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.sheet__body { padding: 4px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet__foot { padding: 12px 18px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); flex-shrink: 0; }

.dialog {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.94);
  width: 82vw;
  max-width: 340px;
  z-index: 202;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.dialog h3 { font-size: 16.5px; text-align: center; margin-bottom: 8px; }
.dialog p { font-size: 13.5px; color: var(--text-2); text-align: center; line-height: 1.6; }
.dialog__foot { display: flex; gap: 10px; margin-top: 20px; }
.dialog__foot .btn { flex: 1; }

/* --------------------------------------------------------------------------
   通用小件
   -------------------------------------------------------------------------- */

.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.p-14 { padding: 14px; } .p-16 { padding: 16px; }
.tc { text-align: center; } .tr { text-align: right; }
.muted { color: var(--text-3); }
.muted-2 { color: var(--text-2); }
.strong { font-weight: 600; }
.fz-11 { font-size: 11px; } .fz-12 { font-size: 12px; } .fz-13 { font-size: 13px; } .fz-14 { font-size: 14px; }
.fz-15 { font-size: 15px; } .fz-16 { font-size: 16px; } .fz-17 { font-size: 17px; } .fz-18 { font-size: 18px; } .fz-20 { font-size: 20px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   业务组件
   -------------------------------------------------------------------------- */

/* 搜索框 */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.22);
  color: #fff;
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}
.search-bar input::placeholder { color: rgba(255,255,255,.7); }
.search-bar--light { background: #fff; border: 1px solid var(--line); color: var(--text); }
.search-bar--light input { color: var(--text); }
.search-bar--light input::placeholder { color: var(--text-3); }

/* 首页头部 */
.home-head {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
  padding: 0 14px 54px;
  padding-top: calc(10px + var(--safe-t));
  border-radius: 0 0 26px 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-head::after {
  content: '';
  position: absolute;
  right: -50px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.home-head::before {
  content: '';
  position: absolute;
  right: 40px; top: 60px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.home-head__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: relative; z-index: 1; }
.home-head__logo {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  overflow: hidden;
}
.home-head__logo img { width: 100%; height: 100%; object-fit: cover; }
.home-head__name { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.home-head__slogan { font-size: 11.5px; opacity: .8; margin-top: 1px; }
.home-head .search-bar { position: relative; z-index: 1; }

.home-body { margin-top: -42px; position: relative; z-index: 2; }

/* 公告 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-s);
  font-size: 12.5px;
  color: var(--text-1);
  overflow: hidden;
}
.notice-bar .ico { color: var(--orange); font-size: 14px; flex-shrink: 0; }
.notice-bar .txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 轮播 */
.swiper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 14px;
  margin: 0 -14px;
  scrollbar-width: none;
}
.swiper::-webkit-scrollbar { display: none; }
.swiper__item {
  flex: 0 0 86%;
  scroll-snap-align: center;
  height: 116px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(79,70,229,.20);
}
.swiper__item h4 { font-size: 19px; letter-spacing: -.4px; margin-bottom: 4px; position: relative; z-index: 1; }
.swiper__item p { font-size: 12.5px; opacity: .88; position: relative; z-index: 1; }
.swiper__item::after {
  content: '';
  position: absolute;
  right: -30px; bottom: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.swiper__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--line-2); transition: all .2s; }
.dots i.on { width: 14px; background: var(--brand); }

/* 游戏分类 */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px;
  margin: 0 -14px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 62px;
  padding: 10px 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-s);
  transition: all .15s;
}
.cat-item.active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.25); }
.cat-item__icon { font-size: 21px; line-height: 1; }
.cat-item__name { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cat-item:active { transform: scale(.95); }

/* 服务卡 */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.svc-card {
  background: #fff;
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow-s);
  transition: transform .15s;
}
.svc-card:active { transform: scale(.98); }
.svc-card__icon { font-size: 24px; margin-bottom: 8px; }
.svc-card__name { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.svc-card__desc { font-size: 11.5px; color: var(--text-3); height: 32px; overflow: hidden; line-height: 1.45; }
.svc-card__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }

/* 陪玩师卡 */
.player-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow-s);
  margin-bottom: 10px;
  transition: transform .15s;
}
.player-card:active { transform: scale(.99); }
.player-card__main { flex: 1; min-width: 0; }
.player-card__name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.player-card__meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.player-card__tags { margin-top: 7px; }
.player-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.player-card__right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10.5px;
  background: linear-gradient(135deg, #FFF4E0, #FFE7BF);
  color: #B77400;
  font-weight: 500;
}
.rank-badge--blue { background: linear-gradient(135deg, #E8F1FF, #D6E6FF); color: #2563EB; }

/* 订单卡 */
.order-card {
  background: #fff;
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-s);
}
.order-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-card__no { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.order-card__status { font-size: 13px; font-weight: 600; }
.order-card__status.s-pending_pay { color: var(--orange); }
.order-card__status.s-paid { color: var(--blue); }
.order-card__status.s-accepted { color: var(--brand); }
.order-card__status.s-serving { color: var(--brand); }
.order-card__status.s-finished { color: var(--green); }
.order-card__status.s-settled { color: var(--green); }
.order-card__status.s-cancelled { color: var(--text-3); }
.order-card__status.s-refunded { color: var(--text-3); }
.order-card__status.s-disputed { color: var(--red); }

.order-card__body { display: flex; gap: 12px; }
.order-card__info { flex: 1; min-width: 0; }
.order-card__title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.order-card__sub { font-size: 12.5px; color: var(--text-3); }
.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 步骤条 */
.steps { display: flex; padding: 6px 0; }
.steps__item { flex: 1; text-align: center; position: relative; }
.steps__item::before {
  content: '';
  position: absolute;
  top: 8px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line-2);
}
.steps__item:first-child::before { display: none; }
.steps__item.done::before, .steps__item.active::before { background: var(--brand); }
.steps__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--line-2);
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: #fff;
}
.steps__item.done .steps__dot, .steps__item.active .steps__dot { background: var(--brand); }
.steps__label { font-size: 11px; color: var(--text-3); }
.steps__item.done .steps__label, .steps__item.active .steps__label { color: var(--text-1); font-weight: 500; }

/* 时间轴 */
.timeline { padding-left: 4px; }
.timeline__item { position: relative; padding: 0 0 16px 20px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: 3px; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}
.timeline__item:first-child::before { background: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.timeline__item::after {
  content: '';
  position: absolute;
  left: 6px; top: 16px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::after { display: none; }
.timeline__text { font-size: 13.5px; }
.timeline__time { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 统计块 */
.stat-row { display: flex; }
.stat-cell { flex: 1; text-align: center; padding: 4px 0; }
.stat-cell__num { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.stat-cell__label { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 筛选栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  position: sticky;
  top: 52px;
  z-index: 50;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .chip { flex-shrink: 0; height: 32px; font-size: 13px; }

/* 底部安全占位 */
.safe-bottom { height: 20px; }

/* 表单行 */
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #fff;
  position: relative;
}
.form-row + .form-row::before {
  content: '';
  position: absolute; left: 16px; right: 0; top: 0;
  height: 1px; background: var(--line);
}
.form-row__label { width: 82px; font-size: 14px; color: var(--text-1); flex-shrink: 0; }
.form-row__label .req { color: var(--red); }
.form-row input, .form-row textarea, .form-row select {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  min-width: 0;
  padding: 0;
}
.form-row textarea { resize: none; min-height: 24px; line-height: 1.6; padding: 3px 0; }
.form-row .arrow { color: var(--line-2); font-size: 16px; flex-shrink: 0; }

/* 上传 */
.upload-box {
  width: 84px; height: 84px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: rgba(16, 24, 40, .03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 11.5px;
  position: relative;
  overflow: hidden;
}
.upload-box .plus { font-size: 22px; line-height: 1; color: var(--line-2); }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; }

/* 客服浮标 */
.cs-float {
  position: fixed;
  right: 14px;
  bottom: calc(78px + var(--safe-b));
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  z-index: 64;
}
@media (min-width: 900px) { .cs-float { right: calc(50% - 216px); } }

/* 数据表（H5 内的简易表） */
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.kv .k { color: var(--text-2); }
.kv .v { color: var(--text); font-weight: 500; text-align: right; }

/* 富文本 */
.rich { font-size: 14px; line-height: 1.8; color: var(--text-1); white-space: pre-wrap; word-break: break-word; }

/* 等宽数字/编号 */
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }

/* 提示条 */
.tip-box {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 12px;
  background: var(--brand-soft);
  color: #3730A3;
}
.tip-box--warn { background: var(--orange-soft); color: #92400E; }
.tip-box--info { background: var(--blue-soft); color: #1E40AF; }
.tip-box--danger { background: var(--red-soft); color: #991B1B; }
.tip-box--ok { background: var(--green-soft); color: #065F46; }
.tip-box b { font-weight: 600; }
.tip-box + .tip-box { margin-top: -4px; }

/* 不可用遮罩页 */
.blocked { padding: 60px 24px; text-align: center; }

/* ==========================================================================
   玻璃拟态主题层
   —— 所有「面板 / 按钮 / 输入框 / 弹层」统一改成半透明磨砂
   —— 放在文件最后，靠层叠顺序覆盖上面的基础样式；想换回实心风格，
      把这一整段删掉即可，上面的规则本身是完整的
   ========================================================================== */

/* ---------------- 1. 固定在屏幕上的三条玻璃条 ---------------- */

.zc-nav {
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}
.zc-nav.scrolled {
  background: rgba(255, 255, 255, .84);
  border-bottom-color: var(--glass-edge);
}
.zc-nav--brand {
  background: var(--brand);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.zc-tabbar {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-edge);
  box-shadow: none;
}

.action-bar {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-edge);
  box-shadow: none;
}

.cs-float {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .1);
}

/* ---------------- 2. 面板 / 卡片 ---------------- */

.card,
.list,
.notice-bar,
.player-card,
.order-card,
.svc-card,
.cat-item,
.ranking-item,
.review-item {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .045);
}

.card { border-radius: var(--r); }
.card--flat { background: var(--glass-weak); box-shadow: none; }

.player-card,
.order-card,
.svc-card { border-radius: 16px; }

.cat-item { background: var(--glass-weak); box-shadow: none; }
.cat-item.active {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .14);
}
.cat-item.active .cat-item__name { font-weight: 600; }

.list-item:active { background: rgba(16, 24, 40, .028); }
.list-item + .list-item::before { background: var(--line); }

.divider { background: var(--line); }

/* 表单行（个人中心 / 入驻页用的那种） */
.form-row { background: var(--glass); }
.form-row + .form-row::before { background: var(--line); }

/* ---------------- 3. 按钮：半透明磨砂 ---------------- */

.btn {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--glass-edge);
  color: var(--text-1);
  border-radius: 12px;
  font-weight: 500;
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: background .16s, box-shadow .16s, transform .12s;
}
.btn:hover { background: rgba(255, 255, 255, .95); }
.btn:active { transform: scale(.975); }

.btn--primary {
  background: var(--brand);
  border: 1px solid transparent;
  color: #fff;
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px rgba(16, 24, 40, .10);
}
.btn--primary:hover { filter: brightness(1.06); }

.btn--ghost {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(16, 24, 40, .08);
  color: var(--brand);
  box-shadow: none;
}

.btn--line {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  box-shadow: none;
}
.btn--line:hover { background: rgba(255, 255, 255, .7); }

.btn--danger {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(240, 68, 56, .28);
  color: var(--red);
  box-shadow: none;
}

.btn--white {
  background: #fff;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

/* ---------------- 4. 表单控件 ---------------- */

.input, .textarea, .select {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.input:focus, .textarea:focus, .select:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}
.input[disabled] { background: rgba(16, 24, 40, .035); }

.input-group {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.input-group .input { background: transparent; border: 0; box-shadow: none !important; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }

.chip {
  background: rgba(16, 24, 40, .045);
  border: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  font-weight: 500;
  color: var(--text-2);
}
.chip.active {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .1);
}

.search-bar--light {
  background: rgba(16, 24, 40, .045);
  border: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.search-bar { background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3); }

.switch { background: rgba(16, 24, 40, .14); }
.switch.on { background: var(--brand); }
.switch::after { box-shadow: 0 1px 3px rgba(16, 24, 40, .2); }

.upload-box {
  background: rgba(16, 24, 40, .03);
  border: 1px dashed var(--line-2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------------- 5. 标签 / 徽章 ---------------- */

.tag {
  background: rgba(16, 24, 40, .045);
  border: 1px solid transparent;
  color: var(--text-2);
  font-weight: 500;
}
.tag--brand { background: rgba(79, 70, 229, .1); border-color: transparent; color: var(--brand); }
.tag--green { background: rgba(18, 183, 106, .12); border-color: transparent; color: #06794A; }
.tag--orange { background: rgba(247, 144, 9, .14); border-color: transparent; color: #9A5B00; }
.tag--red { background: rgba(240, 68, 56, .1); border-color: transparent; color: #B4271D; }
.tag--blue { background: rgba(46, 144, 250, .12); border-color: transparent; color: #1A6FC4; }
.tag--line { background: transparent; border: 1px solid var(--line-2); color: var(--text-3); }

.avatar {
  background: rgba(79, 70, 229, .1);
  border: 1px solid var(--glass-edge);
  box-shadow: none;
}
.avatar .online-dot { border-color: #fff; }

/* ---------------- 6. 弹层 ---------------- */

.mask {
  background: rgba(16, 24, 40, .32);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  backdrop-filter: blur(4px) saturate(120%);
}

.sheet {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-bottom: 0;
  box-shadow: 0 -12px 40px rgba(16, 24, 40, .16);
}
.sheet__foot { background: transparent; border-top: 1px solid var(--line); }
.sheet__close { background: rgba(16, 24, 40, .05); border: 0; }

.dialog {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 24px 60px rgba(16, 24, 40, .2);
}

.zc-toast {
  background: rgba(15, 17, 21, .9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 0;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .26);
}

/* ---------------- 7. 首页头部 & 轮播 ---------------- */

.home-head {
  background: linear-gradient(150deg, rgba(79, 70, 229, .94) 0%, rgba(124, 58, 237, .90) 100%);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 14px 40px rgba(79, 70, 229, .22);
}

.swiper__item {
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 14px 34px rgba(79, 70, 229, .26), inset 0 1px 0 rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.swiper__item::after { background: rgba(255, 255, 255, .16); }

/* ---------------- 8. 状态色块 & 提示条 ---------------- */

.tip-box {
  background: rgba(79, 70, 229, .12);
  border: 1px solid rgba(79, 70, 229, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #3730A3;
}
.tip-box--warn { background: rgba(247, 144, 9, .14); border-color: rgba(247, 144, 9, .2); color: #8A5200; }
.tip-box--info { background: rgba(46, 144, 250, .13); border-color: rgba(46, 144, 250, .18); color: #17589E; }
.tip-box--danger { background: rgba(240, 68, 56, .12); border-color: rgba(240, 68, 56, .18); color: #9B1F16; }
.tip-box--ok { background: rgba(18, 183, 106, .13); border-color: rgba(18, 183, 106, .18); color: #06603C; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.5) 25%, rgba(255,255,255,.75) 37%, rgba(255,255,255,.5) 63%); background-size: 400% 100%; }

/* ---------------- 9. 不支持毛玻璃时的兜底 ---------------- */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .list, .notice-bar, .player-card, .order-card, .svc-card, .cat-item,
  .form-row, .zc-nav, .zc-tabbar, .action-bar, .sheet, .dialog,
  .hm-stats, .hm-good, .hm-search {
    background: rgba(255, 255, 255, .95);
  }
  .btn { background: rgba(255, 255, 255, .95); }
  .btn--primary { background: var(--brand); }
  .input, .textarea, .select, .input-group { background: #fff; }
  body::before { opacity: .6; }
}

/* ==========================================================================
   首页组件（2025 重做）
   —— 去掉大色块、彩色方格和 emoji，改成排版驱动 + 线性图标
   ========================================================================== */

/* 图标占位容器：<i> 里包 SVG，统一消掉基线间隙 */
.hm-iconbtn i,
.hm-sec__head a i,
.me-grid .ico i { display: flex; align-items: center; justify-content: center; line-height: 0; }
.hm-sec__head a i { margin-top: 1px; }

/* ---------------- 顶栏 ---------------- */

.hm-nav { display: flex; align-items: center; gap: 8px; }
.hm-brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.hm-logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; overflow: hidden; flex-shrink: 0;
}
.hm-logo img { width: 100%; height: 100%; object-fit: cover; }
.hm-brand__name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.2; }
.hm-brand__slogan {
  font-size: 11px; color: var(--text-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-iconbtn {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-1); position: relative; flex-shrink: 0;
  transition: background .15s;
}
.hm-iconbtn:active { background: rgba(16, 24, 40, .06); }
.hm-iconbtn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid #fff;
}

/* ---------------- Hero：大 Banner 海报（商城风） ---------------- */

.hm-hero {
  position: relative;
  margin-top: 4px;
  height: 192px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16, 24, 40, .04);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px rgba(16, 24, 40, .1);
}
.hm-hero__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hm-hero__track::-webkit-scrollbar { display: none; }
.hm-hero__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  padding: 24px 18px 0;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
}
.hm-hero__slide > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hm-hero__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,24,40,.06) 0%, rgba(16,24,40,.46) 100%);
  pointer-events: none;
}
.hm-hero__tx { position: relative; z-index: 1; }
.hm-hero__eyebrow { font-size: 11px; letter-spacing: 1.2px; opacity: .82; }
.hm-hero__title { font-size: 24px; font-weight: 700; letter-spacing: -.7px; line-height: 1.26; margin-top: 6px; }
.hm-hero__sub { font-size: 12.5px; opacity: .88; margin-top: 7px; }

.hm-hero__dots {
  position: absolute; right: 14px; top: 16px; z-index: 3;
  display: flex; gap: 4px;
}
.hm-hero__dots i {
  width: 5px; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  transition: width .2s, background .2s;
}
.hm-hero__dots i.on { width: 14px; background: #fff; }

/* 搜索框叠在 Banner 上 */
.hm-search {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 3;
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
  color: var(--text-3);
}
.hm-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--text);
  font-family: inherit;
}
.hm-search input::placeholder { color: var(--text-3); }

/* 数据条 */
.hm-stats {
  display: flex; align-items: stretch;
  margin-top: 10px;
  padding: 11px 4px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.hm-stat { flex: 1; text-align: center; position: relative; }
.hm-stat + .hm-stat::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 1px; background: var(--line);
}
.hm-stat__n {
  font-size: 16.5px; font-weight: 600; letter-spacing: -.4px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.hm-stat__n small { font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 1px; }
.hm-stat__l { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

/* ---------------- 分类：方形缩略图（商城风） ---------------- */

.hm-cats {
  display: flex; gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 2px 14px 4px;
}
.hm-cats::-webkit-scrollbar { display: none; }

.hm-cat { width: 68px; flex-shrink: 0; }
.hm-cat__box {
  width: 68px; height: 68px;
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 29px;
  background: rgba(16, 24, 40, .04);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.hm-cat__box img { width: 100%; height: 100%; object-fit: cover; }
.hm-cat__name {
  font-size: 11px; color: var(--text-2);
  margin-top: 6px; line-height: 1.35; text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hm-cat:active .hm-cat__box { transform: scale(.96); }

/* ---------------- 区块标题（带图标前缀） ---------------- */

.hm-sec { margin-top: 22px; }
.hm-sec__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin: 0 2px 11px;
}
.hm-sec__head h2 {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 600; letter-spacing: -.35px;
}
.hm-sec__head h2 i { display: flex; color: var(--brand); }
.hm-sec__head a { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.hm-sec__head a:active { color: var(--brand); }

/* ---------------- 商品网格（3 列，商城风） ---------------- */

.hm-goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.hm-good {
  display: flex; flex-direction: column;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .045);
  transition: transform .14s;
}
.hm-good:active { transform: scale(.985); }

.hm-good__box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  background: rgba(16, 24, 40, .035);
  overflow: hidden;
}
.hm-good__box img { width: 100%; height: 100%; object-fit: cover; }
.hm-good__tag {
  position: absolute; left: 6px; top: 6px;
  height: 18px; padding: 0 6px;
  border-radius: 6px;
  background: rgba(16, 24, 40, .55);
  color: #fff;
  font-size: 10px; line-height: 18px; font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hm-good__body { padding: 9px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.hm-good__name {
  font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--text);
  min-height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hm-good__foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
}
.hm-good__price {
  color: var(--red);
  font-size: 14px; font-weight: 600; letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden;
}
.hm-good__price small { font-size: 10px; font-weight: 500; opacity: .78; margin-left: 1px; }
.hm-good__price--muted { color: var(--text-3); font-size: 12px; font-weight: 500; }
.hm-good__plus {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s;
}
.hm-good__plus:active { background: var(--red); color: #fff; }

/* ---------------- 陪玩师卡片（重做） ---------------- */

.player-card {
  display: flex;
  gap: 13px;
  padding: 13px 14px;
  align-items: flex-start;
}
.player-card .avatar--lg { width: 54px; height: 54px; border-radius: 16px; font-size: 19px; }
.player-card__main { padding-top: 1px; }
.player-card__name {
  font-size: 15px; font-weight: 600; letter-spacing: -.25px;
  display: flex; align-items: center; gap: 6px;
}
.player-card__meta {
  font-size: 12px; color: var(--text-3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-card__meta b { color: var(--text-2); font-weight: 500; }
.player-card__tags { margin-top: 8px; }
.player-card__foot {
  margin-top: 10px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.player-card__foot .price { font-size: 16px; }
.player-card__foot .price .num { font-weight: 600; }

/* ---------------- 公告列表（首页底部） ---------------- */

.hm-notice { padding: 2px 0; }
.hm-notice__item { display: flex; gap: 10px; padding: 13px 14px; position: relative; }
.hm-notice__item + .hm-notice__item::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 0;
  height: 1px; background: var(--line);
}
.hm-notice__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0; margin-top: 7px;
}
.hm-notice__t { font-size: 13.5px; font-weight: 500; letter-spacing: -.15px; }
.hm-notice__c {
  font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hm-notice__d { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* ==========================================================================
   分类页：左侧分类栏 + 右侧商品网格
   ========================================================================== */

.ct-wrap {
  display: flex;
  height: calc(100vh - 52px);
  overflow: hidden;
}
@supports (height: 100dvh) {
  .ct-wrap { height: calc(100dvh - 52px); }
}

/* 左侧分类栏 */
.ct-aside {
  width: 94px;
  flex-shrink: 0;
  overflow-y: auto;
  background: rgba(16, 24, 40, .035);
  padding: 6px 0 calc(92px + var(--safe-b));
  scrollbar-width: none;
}
.ct-aside::-webkit-scrollbar { display: none; }

.ct-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 54px;
  padding: 9px 6px;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
  transition: background .15s, color .15s;
}
.ct-cat__n { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ct-cat.active {
  background: rgba(255, 255, 255, .92);
  color: var(--brand);
  font-weight: 600;
}
.ct-cat.active .ct-cat__n { color: var(--brand); opacity: .7; }
.ct-cat.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.ct-cat:active { background: rgba(255, 255, 255, .6); }

/* 右侧内容 */
.ct-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 12px 12px calc(92px + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}
.ct-head {
  display: flex; align-items: center; gap: 6px;
  margin: 2px 2px 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -.3px;
}
.ct-head span { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.ct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ct-grid .hm-good__box { font-size: 40px; }
.ct-grid .hm-good__name { font-size: 13px; min-height: 36px; }
.ct-grid .hm-good__price { font-size: 15px; }
.ct-grid .hm-good__plus { width: 24px; height: 24px; }

/* 分类页的吸附小标题（「全部」视图里按游戏分组时用） */
.ct-group { margin-bottom: 18px; }
.ct-group__h {
  display: flex; align-items: center; gap: 6px;
  margin: 0 2px 9px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-1);
}
.ct-group__h span { font-size: 11px; font-weight: 400; color: var(--text-3); }
