/* ============================================================
   全局:去除浏览器点击高亮色 + 移除链接/按钮焦点蓝框
   (v28 修复:国产浏览器/iOS Safari 点击元素时显示蓝色或灰色色块)
   ============================================================ */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
*:focus {
  outline: none;
}
a, button, [role="button"], [data-tab], [data-act], [onclick], input, select, textarea, label {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}
/* 长按选中默认禁用(图片/可点击元素),正文文字保留可选 */
a, button, [role="button"], .w-tabbar__item, .tabbar a, .admin-tabbar a {
  -webkit-user-select: none;
  user-select: none;
}

/* 例外:输入框 / 文本区 / .selectable 类 保留可选 */
input, textarea, [contenteditable="true"], .selectable, .chat-bubble, .msg-bubble, p, span, div.text {
  -webkit-user-select: auto;
  user-select: auto;
}

/* ============================================================
   陪玩平台 H5 — 公共样式（v2）
   修正：删除假顶栏；分类页改为分组卡 + 综合/排行榜 segment；
   首页加飘过购买通知动画；商品卡右上角改为斜对角标签；
   公告弹窗使用 ① ② ③ 圈号；加入页面进入淡入动画
   ============================================================ */

:root {
  --c-bg: #f4ecd8;
  --c-bg-2: #fbe9d0;
  --c-bg-3: #f6dfb3;
  --c-card: #ffffff;
  --c-text: #1a1a1a;
  --c-text-2: #666;
  --c-text-3: #999;
  --c-primary: #111;
  --c-accent: #ffb300;
  --c-accent-2: #ff8a00;
  --c-red: #e63126;
  --c-red-2: #c11a1a;
  --c-blue: #2273e6;
  --c-blue-2: #1a5cba;
  --c-price: #ff3a30;
  --c-border: rgba(0,0,0,0.06);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  /* 毛玻璃颗粒噪点（base64 内嵌 SVG turbulence，所有内核可用） */
  --noise: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjAiIGhlaWdodD0iMjIwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIgc2VlZD0iNSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwICAwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMC40NSAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjciLz48L3N2Zz4=");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 30%, var(--c-bg-3) 100%);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
input { font: inherit; outline: none; border: none; background: transparent; }

/* ===== iOS 适配:输入框 font-size 必须 ≥16px,否则自动缩放页面 ===== */
input, textarea, select {
  font-size: 16px;  /* iOS Safari 字体小于 16px 会自动放大整页 */
  -webkit-text-size-adjust: 100%;
}
/* 修复全局根字号防止 iOS 缩放后还原困难 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 顶部状态栏(齐刘海)安全区 */
body { padding-top: env(safe-area-inset-top, 0px); }

/* ---------- 页面进入动画（只用 opacity，避免 transform 破坏 fixed 元素的视口锚定） ---------- */
.page-enter { animation: pageEnter .35s ease-out both; }
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- 搜索栏 ---------- */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px;
}
.search-bar__input {
  flex: 1;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  color: var(--c-text-3);
}
.search-bar__input svg { width: 14px; height: 14px; flex-shrink: 0; }
.search-bar__input input { flex: 1; color: var(--c-text); font-size: 14px; }
.search-bar__input input::placeholder { color: var(--c-text-3); }
.search-bar__service {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-2);
}
.search-bar__service svg { width: 18px; height: 18px; }

/* ---------- 主 Banner（横图，固定比例铺满） ---------- */
.brand-banner {
  margin: 4px 12px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  /* 改用更扁的比例 16:9,避免占用太多屏幕 */
  aspect-ratio: 16 / 9;
  min-height: 140px;
  max-height: 240px;
  background: #0a0a14;
}
.brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* 旧浏览器（无 object-fit）回退：用 absolute 撑满 */
  position: absolute;
  top: 0; left: 0;
}

/* ---------- 服务规则卡（替代原 banner 文字） ---------- */
.rules-card {
  margin: 10px 12px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 14px 10px;
  box-shadow: var(--shadow-sm);
}
.rules-card__title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.rules-card__title::before {
  content: "";
  width: 3px; height: 12px;
  background: var(--c-accent);
  border-radius: 1px;
}
.rules-card ol {
  padding-left: 20px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--c-text-2);
}
.rules-card__foot {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--c-text-3);
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
}

/* ---------- 滚动公告条 ---------- */
.notice-bar {
  margin: 12px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--c-text-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.notice-bar__icon { flex-shrink: 0; color: var(--c-accent-2); }
.notice-bar__icon svg { width: 16px; height: 16px; }
.notice-bar__track {
  flex: 1; overflow: hidden; white-space: nowrap;
}
.notice-bar__track span {
  display: inline-block;
  padding-left: 100%;
  animation: notice-scroll 22s linear infinite;
}
@keyframes notice-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- 红色推广横幅 ---------- */
.promo-banner {
  margin: 10px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(rgba(40,10,0,0.55), rgba(40,10,0,0.55)),
              url('../assets/banner.png') center/cover no-repeat;
  padding: 18px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.promo-banner__title {
  position: relative;
  font-size: 22px; font-weight: 900;
  text-align: center;
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.promo-banner__title em {
  color: #ffe066;
  font-style: italic;
}

/* ---------- 4 个圆角图标快捷入口 ---------- */
.quick-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 12px 10px;
}
.quick-entry { text-align: center; }
.quick-entry__icon {
  width: 56px; height: 56px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.quick-entry__icon svg {
  width: 26px; height: 26px;
}
.quick-entry__icon--accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
}
.quick-entry__label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-blue);
}

/* ---------- 横向分类 tab ---------- */
.cat-tabs {
  display: flex;
  gap: 8px;
  padding: 2px 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.cat-tab.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.cat-tabs__more {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 6px;
  color: var(--c-text-2);
}
.cat-tabs__more svg { width: 16px; height: 16px; }

/* ---------- 商品双列流 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 16px;
  position: relative;
}
.product-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
  animation: cardSlideUp .7s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:active { transform: scale(0.98); }
.product-card__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 168px;
  background:
    linear-gradient(135deg, rgba(180,20,15,0.75) 0%, rgba(100,0,0,0.85) 100%),
    url('../assets/banner.png') center/cover no-repeat;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  color: #fff;
  overflow: hidden;
}
.product-card__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.product-card__cover > * { position: relative; z-index: 1; }
.product-card__cover::before {
  content: "";
  position: absolute;
  top: 6px; right: 6px; bottom: 6px; left: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  pointer-events: none;
}
.product-card__brand {
  position: relative;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  z-index: 1;
}
.product-card__brand span { color: #ffe066; }
/* 斜对角标签：放右上角，斜 45° */
.product-card__corner {
  position: absolute;
  top: 14px; right: -28px;
  width: 110px;
  background: linear-gradient(90deg, #ffd54f, #ffb300);
  color: #c11a1a;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  padding: 3px 0;
  transform: rotate(40deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}
.product-card__title-block {
  position: relative;
  text-align: center;
  font-style: italic;
  font-weight: 900;
  z-index: 1;
  margin-top: auto;
  text-shadow: 1px 1px 0 #7a0a0a, -1px -1px 0 #7a0a0a, 1px -1px 0 #7a0a0a, -1px 1px 0 #7a0a0a;
}
.product-card__title-block .t1 { font-size: 16px; color: #fff; }
.product-card__title-block .t2 { font-size: 16px; color: #ffe066; margin-top: 2px; }
.product-card__icons {
  position: relative;
  display: flex; gap: 4px;
  justify-content: center;
  z-index: 1;
  margin: 4px 0 6px;
}
.product-card__icons .ico {
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.product-card__body { padding: 8px 10px 10px; }
.product-card__name {
  font-size: 13px; font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name::before {
  content: "";
  display: inline-block;
  width: 3px; height: 12px;
  background: var(--c-primary);
  vertical-align: -1px;
  margin-right: 5px;
  border-radius: 1px;
}
.product-card__desc {
  font-size: 11px;
  color: var(--c-text-2);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}
.product-card__meta {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.product-card__price {
  color: var(--c-price);
  font-weight: 800;
  font-size: 15px;
}
.product-card__price small { font-size: 10px; font-weight: 700; }
.product-card__price-old {
  font-size: 10px;
  color: var(--c-text-3);
  text-decoration: line-through;
  margin-left: 3px;
  font-weight: 400;
}
.product-card__sales {
  font-size: 10px;
  color: var(--c-text-3);
}

/* ---------- 飘过的"购买通知"气泡 ---------- */
.float-toast {
  position: fixed;
  top: 55%;
  left: 10px;
  background: linear-gradient(135deg, #ffb300, #ff8a00);
  color: #fff;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-110%);
  white-space: nowrap;
}
.float-toast.is-show {
  animation: toastIn 4s ease-in-out forwards;
}
@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(-110%); }
  10%  { opacity: 1; transform: translateX(0); }
  85%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(20%); }
}
.float-toast__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #f3f3f3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: 1.5px solid rgba(255,255,255,0.7);
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.float-toast__close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: rgba(255,255,255,0.9);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.float-toast__close:hover { background: rgba(255,255,255,0.35); }
.float-toast__close:active { transform: scale(0.9); }

/* ---------- 底部 tabbar（仿原版毛玻璃胶囊）----------
   原版真机制（看视频帧确认）：
   - 单一 backdrop-filter: blur(...)，无 saturate/brightness/contrast 叠加
   - 极低白色 tint（透到能"染色"下层）
   - 无颗粒叠层、无 mix-blend-mode、无 isolation
   - 这就是丝滑的关键：单一 GPU 原生 filter，无额外合成层 */
.tabbar {
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: var(--r-pill);
  padding: 8px 6px 9px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 40;
}
/* 兼容兜底：无 backdrop-filter 的旧内核（QQ X5 等） */
@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
  .tabbar {
    background: rgba(255, 255, 255, 0.85);
  }
}
.tabbar__item {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(60, 50, 40, 0.5);
  font-size: 11px;
  text-decoration: none;
}
.tabbar__ico {
  width: 27px; height: 27px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background .2s ease;
}
.tabbar__ico svg {
  width: 18px; height: 18px;
  display: block;
}
.tabbar__label {
  line-height: 1;
}
/* 选中态：图标黄色圆 + 黑色图标 + 橙色加粗标签 */
.tabbar__item.is-active { color: var(--c-accent-2); font-weight: 700; }
.tabbar__item.is-active .tabbar__ico {
  background: var(--c-accent);
}
.tabbar__item.is-active .tabbar__ico svg { color: #1a1a1a; }

/* ---------- 弹窗 modal ---------- */
.modal-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 0 30px;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  animation: popIn .3s cubic-bezier(.2,.8,.4,1);
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__header {
  padding: 20px 18px 8px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 18px; right: 16px;
  color: var(--c-text-3);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__body {
  padding: 6px 22px 18px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--c-text);
  text-align: center;
}
.modal__body strong { color: var(--c-red); font-weight: 700; }
.modal__body em { color: var(--c-accent-2); font-style: normal; font-weight: 700; }
.modal__footer {
  border-top: 1px solid var(--c-border);
  display: flex;
}
.modal__btn {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 15px;
  color: var(--c-text);
}
.modal__btn--primary { color: #2683e6; font-weight: 600; }
.modal__btn + .modal__btn { border-left: 1px solid var(--c-border); }

/* iOS 风格 alert */
.modal--ios { max-width: 280px; border-radius: 14px; background: rgba(245,245,247,0.96); backdrop-filter: blur(20px); }
.modal--ios .modal__header { font-weight: 600; font-size: 16px; padding: 18px 18px 4px; }
.modal--ios .modal__body { padding: 4px 18px 14px; font-size: 13px; color: var(--c-text); line-height: 1.5; }

/* ============================================================
   底部上拉 sheet（毛玻璃磨砂 + 颗粒噪点）
   用于：商品下单 / 支付方式选择
   ============================================================ */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .22s;
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp .32s cubic-bezier(.2,.8,.3,1);
  overflow: hidden;
  isolation: isolate;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
}
/* 颗粒磨砂叠层 */
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-size: 180px 180px;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: -1;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
/* 兼容兜底：旧内核无 backdrop-filter 时退化为乳白实色 */
@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
  .sheet { background: rgba(253, 250, 244, 0.97); }
}
.sheet__grabber {
  width: 38px; height: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 2px;
  margin: 0 auto 6px;
}
.sheet__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-2);
  z-index: 2;
}
.sheet__close svg { width: 16px; height: 16px; }
.sheet__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

/* ---- 商品下单弹窗内容 ---- */
.order-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 4px 14px;
}
.order-head__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,193,7,0.18), rgba(255,138,0,0.22));
  border: 0.5px solid rgba(255,138,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.order-head__info { flex: 1; min-width: 0; }
.order-head__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.order-head__desc {
  font-size: 11.5px;
  color: var(--c-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.order-head__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 6px;
}
.order-head__price .now {
  color: var(--c-price);
  font-size: 18px; font-weight: 800;
}
.order-head__price .now small { font-size: 12px; }
.order-head__price .old {
  color: var(--c-text-3);
  font-size: 11px;
  text-decoration: line-through;
}

.order-row {
  display: flex; align-items: center;
  padding: 12px 0;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  font-size: 13px;
}
.order-row__label {
  width: 76px;
  color: var(--c-text-2);
  font-weight: 500;
  flex-shrink: 0;
}
.order-row__body { flex: 1; }

.order-input {
  width: 100%;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--c-text);
}
.order-input::placeholder { color: var(--c-text-3); }

/* segment：Q区/V区、自动派单/指定打手 */
.order-seg {
  display: inline-flex;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 2px;
}
.order-seg__opt {
  padding: 5px 14px;
  font-size: 12px;
  color: var(--c-text-2);
  border-radius: 999px;
  font-weight: 500;
  transition: all .15s;
}
.order-seg__opt.is-on {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* 数量 step */
.order-step {
  display: inline-flex; align-items: center;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  padding: 2px;
}
.order-step__btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.order-step__btn:disabled { color: var(--c-text-3); opacity: .5; }
.order-step__num {
  width: 38px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* 底部支付栏 */
.order-foot {
  padding-top: 14px;
  margin-top: 6px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 12px;
  position: relative;
  z-index: 1;
}
.order-foot__total {
  flex: 1;
  display: flex; flex-direction: column;
}
.order-foot__total small {
  font-size: 11px;
  color: var(--c-text-2);
}
.order-foot__total b {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-price);
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.order-foot__total b small {
  font-size: 13px;
  color: var(--c-price);
  font-weight: 700;
  margin-right: 1px;
}
.order-foot__btn {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255,138,0,0.35);
}
.order-foot__btn:active { transform: scale(0.98); }

/* ---- 支付方式弹窗 ---- */
.pay-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 0 14px;
  position: relative;
  z-index: 1;
}
.pay-title small {
  display: block;
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 400;
  margin-top: 4px;
}
.pay-title small b { color: var(--c-price); font-weight: 700; }
.pay-list {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.pay-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  transition: all .15s;
}
.pay-opt:active { transform: scale(0.99); background: rgba(255,255,255,0.85); }
.pay-opt__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-opt__icon--wx { background: #07c160; }
.pay-opt__icon--zfb { background: #1677ff; }
.pay-opt__icon svg { width: 22px; height: 22px; color: #fff; }
.pay-opt__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.pay-opt__name small {
  display: block;
  font-size: 11px;
  color: var(--c-text-3);
  font-weight: 400;
  margin-top: 2px;
}
.pay-opt__radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.2);
  position: relative;
}
.pay-opt.is-on .pay-opt__radio {
  border-color: var(--c-accent-2);
  background: var(--c-accent-2);
}
.pay-opt.is-on .pay-opt__radio::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}
.pay-confirm {
  width: 100%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255,138,0,0.35);
  position: relative;
  z-index: 1;
}

/* ============================================================
   分类页（综合/排行榜 segment + 分组卡片）
   ============================================================ */
.cat-page { padding-top: 2px; }
.cat-page__head {
  padding: 12px 14px 4px;
  font-size: 17px;
  font-weight: 700;
}
.segmented {
  margin: 0 12px 10px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.segmented__item {
  text-align: center;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--c-text-2);
  border-radius: var(--r-pill);
  transition: all .25s;
}
.segmented__item.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.cat-group {
  margin: 10px 12px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 12px 16px;
  box-shadow: var(--shadow-sm);
}
.cat-group__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.cat-group__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 4px;
}
.cat-item { text-align: center; cursor: pointer; -webkit-user-select: none; user-select: none; }
.cat-item__cover {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, #1a1f3a 0%, #0a0e25 100%);
  display: block;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.4), 0 2px 5px rgba(0,0,0,0.15);
}
.cat-item__cover::before {
  content: "";
  position: absolute;
  top: 7px; right: 7px; bottom: 7px; left: 7px;
  background: url('../assets/logo.png') center/contain no-repeat;
  pointer-events: none;
}
.cat-item__cover::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.cat-item__cover-emoji {
  display: none;
}
.cat-item__cover-text {
  position: absolute;
  bottom: 6%; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 7.5px;
  font-weight: 700;
  border: 1px solid rgba(255,215,100,0.5);
  letter-spacing: 0.2px;
  color: #ffd54f;
  white-space: nowrap;
  z-index: 2;
}
.cat-item__name {
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}
.cat-item__name {
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

/* ---------- 排行榜单列卡片 ---------- */
.rank-list {
  padding: 2px 12px 0;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.rank-item:active {
  transform: scale(0.985);
}
.rank-item__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--avatar-bg, linear-gradient(135deg, #1a1a2e, #0a0a14));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.3);
  /* 所有头像统一延迟后一起 fade-in，模拟图片懒加载（不 stagger） */
  opacity: 0;
  animation: avatarFadeIn .45s ease-out forwards;
  animation-delay: 0.35s;
}
@keyframes avatarFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rank-item__avatar::before {
  content: "";
  position: absolute;
  top: 8%; right: 8%; bottom: 8%; left: 8%;
  background: url('../assets/logo.png') center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  pointer-events: none;
  z-index: 1;
}
.rank-item__avatar::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}
.rank-item__avatar-rank {
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.3px;
  z-index: 2;
}
.rank-item__body {
  flex: 1; min-width: 0;
}
.rank-item__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-item__bar {
  height: 6px;
  background: #ececec;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.rank-item__bar > div {
  height: 100%;
  background: linear-gradient(90deg, #ffb300, #ff8a00);
  border-radius: 999px;
  transition: width .6s ease-out;
}
.rank-item__actions {
  display: flex; flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.rank-item__btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.rank-item__btn--primary {
  background: var(--c-primary);
  color: #fff;
}
.rank-item__btn--secondary {
  background: #f3f3f3;
  color: var(--c-text-2);
}
.fab-top {
  position: fixed;
  right: 10px;
  bottom: 78px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 30;
}
.fab-top svg { width: 14px; height: 14px; }

/* ---------- 灰色 toast 加载样式 ---------- */
.loading-toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 22px 28px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 60;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  min-width: 100px;
}
.loading-toast__spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   消息页
   ============================================================ */
.msg-tabs {
  margin: 14px 14px 0;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.msg-tab {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--c-text-2);
  border-radius: var(--r-pill);
  transition: all .25s;
}
.msg-tab.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}
.msg-list {
  margin: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 4px 16px;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}
.msg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
.msg-item:last-child { border-bottom: none; }
.msg-item__avatar {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.msg-item__avatar--dark {
  background:
    url('../assets/logo.png') center/70% no-repeat,
    linear-gradient(135deg, #1a1a1a, #3a3a3a);
  text-indent: -9999px; /* 隐藏占位字符 */
}
.msg-item__avatar--orange { background: linear-gradient(135deg, #ffb300, #ff8a00); }
.msg-item__body { flex: 1; min-width: 0; }
.msg-item__title { font-size: 15px; font-weight: 700; }
.msg-item__desc { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }
.msg-item__action { font-size: 13px; color: var(--c-text-2); flex-shrink: 0; }

.empty-state {
  padding: 64px 0;
  text-align: center;
  color: var(--c-text-3);
}
.empty-state svg { width: 64px; height: 64px; opacity: .6; }
.empty-state__text { font-size: 13px; margin-top: 10px; }
.empty-state__loading {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-text-3);
}
.empty-state__loading::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ============================================================
   我的 页
   ============================================================ */
.profile-hero {
  padding: 24px 18px 16px;
  position: relative;
}
.profile-hero__settings {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
}
.profile-hero__settings svg { width: 18px; height: 18px; }
.profile-hero__user { display: flex; align-items: center; gap: 14px; }
.profile-hero__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #475569);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15,23,42,0.18);
}
.profile-hero__avatar svg { width: 38px; height: 38px; opacity: .85; }
.profile-hero__info { flex: 1; }
.profile-hero__name {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700;
}
.profile-hero__level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 9px 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}
.profile-hero__level:active { transform: scale(0.95); }
/* 5 个等级对应的徽章配色(深色徽章 + 金属色描边) */
.profile-hero__level--lv1 { background: linear-gradient(135deg, #6b6b6b, #4a4a4a); color: #fff; }
.profile-hero__level--lv2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.profile-hero__level--lv3 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.profile-hero__level--lv4 { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; }
.profile-hero__level--lv5 {
  background: linear-gradient(135deg, #f59e0b, #b91c1c, #f59e0b);
  background-size: 200% 100%;
  color: #fff;
  animation: lvKingShimmer 3s linear infinite;
}
@keyframes lvKingShimmer {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
.profile-hero__uid { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }
.profile-hero__switch {
  position: absolute;
  right: 18px; top: 78px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.profile-hero__switch svg { width: 14px; height: 14px; }

.profile-card {
  margin: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 8px 14px 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.profile-card__tag {
  position: absolute;
  top: -8px; left: 10px;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px 4px 4px 0;
}
.profile-card__head {
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: 0;
  min-height: 14px;
}
.profile-card__head a { font-size: 12px; color: var(--c-text-3); }
.profile-card__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.profile-grid-item {
  text-align: center;
  padding: 2px 4px 4px;
  text-decoration: none;
}
.profile-grid-item__icon {
  width: 30px; height: 30px;
  margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
}
.profile-grid-item__icon svg { width: 26px; height: 26px; }
.profile-grid-item__label { font-size: 12px; color: var(--c-text); }

.profile-stats {
  margin: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-stat {
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-stat--dark { background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); }
.profile-stat--yellow { background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%); }
.profile-stat__label { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 4px; }
.profile-stat__value { font-size: 22px; font-weight: 800; margin-top: 6px; }
.profile-stat__cta { font-size: 14px; font-weight: 700; margin-top: 4px; }

.profile-functions {
  margin: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 16px 18px;
  box-shadow: var(--shadow-sm);
}
.profile-functions__title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.profile-functions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 6px;
}
.profile-version {
  text-align: center;
  font-size: 11px;
  color: var(--c-text-3);
  margin: 18px 0 8px;
}
.profile-logout {
  display: block;
  margin: 20px 14px 4px;
  padding: 12px;
  width: calc(100% - 28px);
  background: #fff;
  color: var(--c-red);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.profile-logout:active { background: #ffeaea; }

/* ============================================================
   订单列表页
   ============================================================ */
.sub-topbar {
  display: flex; align-items: center;
  padding: 10px 14px;
}
.sub-topbar__back {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 14px;
  color: var(--c-text);
  gap: 6px;
}
.sub-topbar__back svg { width: 16px; height: 16px; }
.sub-topbar__back .sep { color: var(--c-border); }
.sub-topbar__title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 500;
  margin-right: 60px;
}

.order-filter {
  display: flex; gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.order-filter::-webkit-scrollbar { display: none; }
.order-filter__tab {
  flex-shrink: 0;
  padding: 7px 16px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--r-pill);
  color: var(--c-text-2);
  font-size: 13px;
}
.order-filter__tab.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
}

.order-search {
  margin: 0 14px 14px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.order-search svg { width: 16px; height: 16px; color: var(--c-text-3); }
.order-search input { flex: 1; }
.order-search button { font-size: 13px; color: var(--c-text); }

.list-end {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-3);
  padding: 14px 0;
}

/* ============================================================
   商品详情页
   ============================================================ */
.detail-hero {
  margin: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(160,15,10,0.72) 0%, rgba(80,0,0,0.85) 100%),
    url('../assets/banner.png') center/cover no-repeat;
  /* 现代浏览器：完美正方形 */
  aspect-ratio: 1/1;
  /* 旧浏览器（QQ X5 等）回退：固定最小高度 */
  min-height: 320px;
  position: relative;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 30px;
  text-align: center;
}
.detail-hero h2 { font-size: 32px; font-weight: 900; font-style: italic; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.detail-hero p { font-size: 16px; margin-top: 12px; opacity: .95; }

.detail-card {
  margin: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.detail-card__price {
  color: var(--c-price);
  font-size: 28px;
  font-weight: 800;
}
.detail-card__price small { font-size: 14px; }
.detail-card__old { color: var(--c-text-3); text-decoration: line-through; margin-left: 8px; font-size: 14px; }
.detail-card__sales { color: var(--c-text-3); font-size: 12px; float: right; margin-top: 14px; }
.detail-card__name { font-size: 16px; font-weight: 700; margin-top: 8px; }
.detail-card__desc { font-size: 13px; color: var(--c-text-2); margin-top: 8px; line-height: 1.7; }

.detail-section {
  margin: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.detail-section__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.detail-section__title::before {
  content: "";
  width: 3px; height: 14px;
  background: var(--c-accent);
  border-radius: 1px;
}
.detail-section__body {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.8;
}

.detail-buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  padding: 12px 14px 18px;
  display: flex; gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 50;
}
.detail-buy-bar__left {
  display: flex; gap: 14px;
}
.detail-buy-bar__icon {
  text-align: center;
  color: var(--c-text-2);
  font-size: 10px;
}
.detail-buy-bar__icon svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.detail-buy-bar__btn {
  flex: 1;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 12px 0;
  font-weight: 700;
  font-size: 15px;
}

/* ============================================================
   登录页
   ============================================================ */
.login-wrap { padding: 40px 28px; }
.login-wrap h1 { font-size: 26px; margin: 0 0 8px; }
.login-wrap p { color: var(--c-text-2); font-size: 13px; margin: 0 0 28px; }
.login-field {
  background: rgba(255,255,255,0.9);
  border-radius: var(--r-pill);
  padding: 14px 20px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.login-field input { flex: 1; font-size: 14px; }
.login-btn {
  width: 100%;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  margin-top: 14px;
}
.login-tip { text-align: center; font-size: 12px; color: var(--c-text-3); margin-top: 18px; }

.hidden { display: none !important; }
.text-c { text-align: center; }

/* ============================================================
   CS2 风格抽奖弹窗
   ============================================================ */
.lb-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: lbFade 0.25s ease-out;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-box {
  width: calc(100vw - 24px);
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d1424 0%, #050810 60%, #0a0f1e 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 18px 14px 22px;
  color: #fff;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: lbPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lbPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lb-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.lb-head__title {
  font-size: 18px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lb-head__close {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff; border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
.lb-head__close:active { background: rgba(255, 255, 255, 0.15); }

.lb-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* === 滚动条舞台 === */
.lb-stage {
  position: relative;
  height: 170px;
  background:
    radial-gradient(ellipse at center, rgba(251, 191, 36, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0a0e1a 0%, #1a1f3a 50%, #0a0e1a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 14px;
}
/* 左右雾化 */
.lb-stage::before, .lb-stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 5;
  pointer-events: none;
}
.lb-stage::before {
  left: 0;
  background: linear-gradient(90deg, #050810 0%, transparent 100%);
}
.lb-stage::after {
  right: 0;
  background: linear-gradient(270deg, #050810 0%, transparent 100%);
}

/* === CS2 金色指针 === */
.lb-pointer-line {
  position: absolute;
  left: 50%; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(251, 191, 36, 0.0) 0%,
    #fbbf24 8%,
    #fff 50%,
    #fbbf24 92%,
    rgba(251, 191, 36, 0.0) 100%);
  transform: translateX(-50%);
  z-index: 8;
  box-shadow: 0 0 18px #fbbf24, 0 0 36px rgba(251, 191, 36, 0.4);
  pointer-events: none;
}
.lb-pointer-top, .lb-pointer-bottom {
  position: absolute;
  left: 50%;
  width: 0; height: 0;
  transform: translateX(-50%);
  z-index: 9;
  pointer-events: none;
}
.lb-pointer-top {
  top: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #fbbf24;
  filter: drop-shadow(0 0 4px #fbbf24);
}
.lb-pointer-bottom {
  bottom: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #fbbf24;
  filter: drop-shadow(0 0 4px #fbbf24);
}

/* === 滚动轨道 === */
.lb-track {
  display: flex;
  gap: 4px;
  padding: 16px 0;
  height: 100%;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* === CS2 风格卡片 === */
.lb-card {
  flex-shrink: 0;
  width: 112px; height: 134px;
  background: linear-gradient(180deg, #2a3354 0%, #0f172a 100%);
  border-radius: 3px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 8px 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease-out;
}
.lb-card__img {
  width: 70px; height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.lb-card__emoji {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  margin-bottom: 8px;
}
.lb-card__name {
  font-size: 10.5px; color: #e2e8f0;
  text-align: center; max-width: 100%; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
/* CS2 关键:稀有度色条在底部 */
.lb-card__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}
.lb-card--common .lb-card__bar { background: #b0b6bc; }
.lb-card--rare .lb-card__bar { background: linear-gradient(90deg, #4b69ff, #8aa1ff, #4b69ff); }
.lb-card--epic .lb-card__bar { background: linear-gradient(90deg, #8847ff, #c8a2ff, #8847ff); }
.lb-card--legendary .lb-card__bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde047, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  animation: lbShimmer 2.2s linear infinite;
}
@keyframes lbShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* 稀有度发光 */
.lb-card--common { box-shadow: inset 0 -30px 50px -10px rgba(176, 182, 188, 0.15); }
.lb-card--rare { box-shadow: inset 0 -30px 50px -10px rgba(75, 105, 255, 0.35); }
.lb-card--epic { box-shadow: inset 0 -30px 50px -10px rgba(136, 71, 255, 0.45); }
.lb-card--legendary { box-shadow: inset 0 -30px 50px -10px rgba(245, 158, 11, 0.55); }

/* 中奖卡片高亮 */
.lb-card.is-winner {
  transform: scale(1.08);
  z-index: 10;
  animation: lbWinPulse 1.4s ease-in-out infinite;
}
@keyframes lbWinPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.7), inset 0 -30px 50px -10px rgba(245, 158, 11, 0.55); }
  50% { box-shadow: 0 0 50px rgba(251, 191, 36, 1), inset 0 -30px 50px -10px rgba(245, 158, 11, 0.8); }
}

/* === 状态文字 === */
.lb-status {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin: 6px 0 14px;
  transition: color 0.3s;
  height: 18px;
}
.lb-status.is-rolling {
  color: #fbbf24;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* === 开始按钮 === */
.lb-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% 100%;
  color: #1a1a1a;
  border: none;
  padding: 14px 0;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  animation: lbBtnGlow 2.4s ease-in-out infinite;
}
@keyframes lbBtnGlow {
  0%, 100% { background-position: 0% 0; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45); }
  50% { background-position: 100% 0; box-shadow: 0 6px 28px rgba(245, 158, 11, 0.7), 0 0 36px rgba(245, 158, 11, 0.3); }
}
.lb-btn:active { transform: scale(0.97); }
.lb-btn:disabled { opacity: 0.5; animation: none; cursor: not-allowed; }

/* === 全屏闪光(中奖瞬间) === */
.lb-flash {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.lb-flash.on { opacity: 0.85; transition: opacity 0.05s; }

/* === 中奖结果弹窗 === */
.lb-result-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(14px);
  animation: lbFade 0.4s;
}
.lb-result {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 28px 24px;
  width: calc(100vw - 40px);
  max-width: 320px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: lbPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lb-result--legendary { border-color: rgba(245, 158, 11, 0.7); box-shadow: 0 0 60px rgba(245, 158, 11, 0.4); }
.lb-result--epic { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 60px rgba(168, 85, 247, 0.3); }
.lb-result--rare { border-color: rgba(75, 105, 255, 0.5); box-shadow: 0 0 50px rgba(75, 105, 255, 0.3); }
.lb-result::before {
  content: '';
  position: absolute;
  top: -100%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(251, 191, 36, 0.18) 5%, transparent 12%);
  animation: lbRotate 5s linear infinite;
  pointer-events: none;
}
.lb-result > * { position: relative; }
@keyframes lbRotate { to { transform: rotate(360deg); } }

.lb-result__title {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.lb-result__sub { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
.lb-result__img {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #2c3e6b, #0f172a);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
  color: #fff;
}
.lb-result__img img { width: 100px; height: 100px; object-fit: contain; }
.lb-result__img span { font-size: 70px; }
.lb-result__name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.lb-result__rarity {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.lb-result__rarity--common { background: #475569; color: #cbd5e1; }
.lb-result__rarity--rare { background: #1e40af; color: #93c5fd; }
.lb-result__rarity--epic { background: #6b21a8; color: #d8b4fe; }
.lb-result__rarity--legendary {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24); color: #fff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}
.lb-result__msg {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lb-result__btns { display: flex; gap: 10px; }
.lb-result__btn {
  flex: 1;
  padding: 11px;
  border-radius: 99px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lb-result__btn--primary {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a1a;
}
.lb-result__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===================== CS2 风格抽奖弹窗 ===================== */
.lb-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: lbFadeIn .25s ease-out;
  padding: 20px 12px;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-box {
  width: 100%;
  max-width: 560px;
  background:
    radial-gradient(ellipse at top, #1a2547 0%, #0a0e1a 60%),
    #0a0e1a;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 60px rgba(251,191,36,0.1);
  overflow: hidden;
  animation: lbPopIn .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
  position: relative;
}
@keyframes lbPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 4px;
}
.lb-head__title {
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lb-head__close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.lb-head__close:hover { background: rgba(255,255,255,0.18); }
.lb-sub {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 0 18px 14px;
}

/* 滚动条舞台 */
.lb-stage {
  position: relative;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(30,41,59,0.5), rgba(0,0,0,0.4)),
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
  border-top: 2px solid rgba(251, 191, 36, 0.15);
  border-bottom: 2px solid rgba(251, 191, 36, 0.15);
  overflow: hidden;
  margin: 0 0 14px;
}
/* 边缘虚化 */
.lb-stage::before, .lb-stage::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}
.lb-stage::before {
  left: 0;
  background: linear-gradient(90deg, #0a0e1a 5%, transparent 100%);
}
.lb-stage::after {
  right: 0;
  background: linear-gradient(270deg, #0a0e1a 5%, transparent 100%);
}

/* 顶/底金色三角指针 + 中线 */
.lb-pointer-top, .lb-pointer-bottom {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  z-index: 15;
  pointer-events: none;
}
.lb-pointer-top {
  top: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid #fbbf24;
  filter: drop-shadow(0 0 8px #fbbf24);
}
.lb-pointer-bottom {
  bottom: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid #fbbf24;
  filter: drop-shadow(0 0 8px #fbbf24);
}
.lb-pointer-line {
  position: absolute;
  left: 50%; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg,
    transparent 0%, #fbbf24 8%, rgba(251,191,36,0.7) 50%, #fbbf24 92%, transparent 100%);
  transform: translateX(-50%);
  z-index: 14;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
  pointer-events: none;
}

/* 滚动轨道 */
.lb-track {
  display: flex;
  gap: 4px;
  height: 100%;
  padding: 16px 0;
  align-items: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* 物品卡 - 真实 CS2 风格 */
.lb-card {
  flex-shrink: 0;
  width: 112px;
  height: 134px;
  background: linear-gradient(180deg, #2c3654 0%, #1a2240 70%, #0f1530 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s;
}
/* 中间渐变光 - CS2 特征 */
.lb-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--rarity-glow, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.lb-card > * { position: relative; z-index: 1; }
.lb-card__img {
  width: 78px; height: 78px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.lb-card__emoji {
  width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
  margin-bottom: 6px;
}
.lb-card__name {
  font-size: 11px;
  color: #cbd5e1;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding: 0 2px;
  flex-grow: 1;
}
/* 底部稀有度色条 - CS2 的标志性特征(不是顶部!) */
.lb-card__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}
/* 4 种稀有度 */
.lb-card--common { --rarity-glow: rgba(148, 163, 184, 0.12); }
.lb-card--common .lb-card__bar { background: #b0b8c4; }
.lb-card--rare { --rarity-glow: rgba(59, 130, 246, 0.25); }
.lb-card--rare .lb-card__bar { background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6); }
.lb-card--epic { --rarity-glow: rgba(168, 85, 247, 0.32); }
.lb-card--epic .lb-card__bar { background: linear-gradient(90deg, #a855f7, #c084fc, #a855f7); }
.lb-card--legendary { --rarity-glow: rgba(245, 158, 11, 0.4); }
.lb-card--legendary .lb-card__bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  animation: lbShimmer 2s linear infinite;
}
@keyframes lbShimmer {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* 中奖项放大 + 脉动金光 */
.lb-card.is-winner {
  transform: scale(1.08);
  z-index: 20;
  box-shadow:
    0 0 0 2px #fbbf24,
    0 0 30px rgba(251, 191, 36, 0.6),
    0 0 60px rgba(251, 191, 36, 0.4);
  animation: lbWinnerPulse 1.2s ease-in-out infinite;
}
@keyframes lbWinnerPulse {
  0%, 100% { box-shadow: 0 0 0 2px #fbbf24, 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 0 2px #fbbf24, 0 0 50px rgba(251, 191, 36, 0.9), 0 0 90px rgba(251, 191, 36, 0.5); }
}

.lb-status {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 18px;
  min-height: 22px;
  transition: color 0.3s;
}
.lb-status.is-rolling {
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 1px;
}

.lb-btn {
  display: block;
  margin: 6px auto 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% 100%;
  color: #0a0e1a;
  border: none;
  padding: 14px 56px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(245,158,11,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: lbBtnPulse 2.4s ease-in-out infinite;
}
@keyframes lbBtnPulse {
  0%, 100% { background-position: 0 0; box-shadow: 0 6px 22px rgba(245,158,11,0.5); }
  50% { background-position: 100% 0; box-shadow: 0 6px 22px rgba(245,158,11,0.7), 0 0 36px rgba(245,158,11,0.4); }
}
.lb-btn:active { transform: scale(0.96); }
.lb-btn:disabled { opacity: 0.5; animation: none; cursor: not-allowed; }

/* 全屏闪光 */
.lb-flash {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
}
.lb-flash.on { animation: lbFlash 0.5s ease-out; }
@keyframes lbFlash {
  0% { opacity: 0; }
  20% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* 中奖结果弹窗 */
.lb-result-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: lbFadeIn .35s;
}
.lb-result {
  background: linear-gradient(180deg, #1a2547, #0a0e1a);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 330px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: lbPopIn .45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lb-result::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(251,191,36,0.2) 5%, transparent 12%);
  animation: lbRotate 5s linear infinite;
  pointer-events: none;
}
.lb-result > * { position: relative; }
.lb-result--legendary { border: 1px solid #fbbf24; box-shadow: 0 0 60px rgba(251,191,36,0.3); }
.lb-result--epic { border: 1px solid #a855f7; box-shadow: 0 0 50px rgba(168,85,247,0.3); }
.lb-result--rare { border: 1px solid #3b82f6; box-shadow: 0 0 40px rgba(59,130,246,0.3); }
.lb-result--common { border: 1px solid #475569; }
@keyframes lbRotate { to { transform: rotate(360deg); } }

.lb-result__title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.lb-result__sub { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
.lb-result__img {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #2c3654, #0f1530);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lb-result__img img { width: 104px; height: 104px; object-fit: contain; }
.lb-result__img span { font-size: 70px; }
.lb-result__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.lb-result__rarity {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.lb-result__rarity--common { background: #475569; color: #cbd5e1; }
.lb-result__rarity--rare { background: #1e40af; color: #93c5fd; }
.lb-result__rarity--epic { background: #6b21a8; color: #d8b4fe; }
.lb-result__rarity--legendary {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  color: #fff;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}
.lb-result__msg {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lb-result__btns { display: flex; gap: 10px; }
.lb-result__btn {
  flex: 1;
  padding: 12px;
  border-radius: 99px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lb-result__btn--primary {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0a0e1a;
}
.lb-result__btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===================== 新手引导 ===================== */
.tour-mask {
  position: fixed; inset: 0;
  z-index: 9999;
  animation: tourFadeIn 0.3s;
}
@keyframes tourFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tour-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* ===================== 新手引导(HTML div 版本,跨浏览器平滑) ===================== */
.tour-mask {
  position: fixed; inset: 0;
  z-index: 9999;
  animation: tourFadeIn 0.3s;
  pointer-events: auto;
}
@keyframes tourFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 高亮挖洞框:用 box-shadow 模拟整屏遮罩 + 镂空(所有浏览器原生支持平滑过渡) */
.tour-hole {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  /* 平滑移动和尺寸变化 */
  transition:
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s;
  /* 初始隐藏(收缩到屏幕中心) */
  top: 50%; left: 50%;
  width: 0; height: 0;
}
/* 当没有 selector 时,整屏全黑遮罩(让 box-shadow 把整屏盖住) */
.tour-hole--no-target {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
}

/* 高亮框外圈光晕环 */
.tour-ring {
  position: absolute;
  border: 2.5px solid #fbbf24;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
  /* 跟着 hole 一起移动 */
  transition:
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s;
  animation: tourPulse 1.6s ease-in-out infinite;
  opacity: 0;
}
.tour-ring--show { opacity: 1; }
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.6); }
  50% { box-shadow: 0 0 28px rgba(251, 191, 36, 0.9); }
}

.tour-tip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  /* 位置平滑过渡 */
  transition:
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  left: 16px;
  right: 16px;
}
.tour-tip--first {
  animation: tourPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes tourPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.tour-tip__step {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.tour-tip__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}
.tour-tip__desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}
.tour-tip__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-tip__skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  cursor: pointer;
  padding: 6px 0;
  white-space: nowrap;
}
.tour-tip__prev {
  background: #f1f5f9;
  border: none;
  color: #475569;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.tour-tip__next {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.tour-tip__next:active { transform: scale(0.96); }
