*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;width:100%;}
body{
  margin:0;
  background:#f5f6f8;
  font-family:-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  -webkit-tap-highlight-color:transparent;
  overflow-x:hidden;
  color:#1f2329;
}
img{display:block;max-width:100%;}
button,input{font:inherit;border:none;outline:none;background:transparent;}
button{cursor:pointer;}
.hidden{display:none!important;}

.toast-box{
  position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);
  background:rgba(0,0,0,.78);color:#fff;padding:10px 18px;border-radius:8px;
  font-size:14px;z-index:10001;display:none;max-width:80%;text-align:center;pointer-events:none;
}

/* —— 下单须知弹窗（商城白底风格） —— */
.notice-overlay{
  position:fixed;inset:0;z-index:10050;
  display:flex;align-items:center;justify-content:center;
  padding:24px 18px;background:rgba(15,23,42,.45);
  animation:notice-fade-in .2s ease;
}
.notice-overlay.closing{opacity:0;transition:opacity .18s ease;}
.notice-panel{
  position:relative;width:100%;max-width:380px;max-height:78vh;
  background:#fff;border:0;border-radius:16px;
  box-shadow:0 12px 40px rgba(31,35,41,.18);
  display:flex;flex-direction:column;overflow:hidden;
  animation:notice-pop-in .22s ease;
}
.notice-panel--body-only .notice-body{padding-top:20px;max-height:52vh;}
.notice-panel--body-only .notice-header,
.notice-header{display:none!important;}
.notice-title{display:none!important;}
.notice-title-en{display:none!important;}
.notice-body{
  flex:1;min-height:120px;max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:16px 18px;font-size:14px;line-height:1.75;color:#4b5563;
  word-break:break-word;background:#fff;
}
.notice-body p{margin:0 0 8px;}
.notice-body img{max-width:100%;height:auto;border-radius:8px;margin:6px 0;}
.notice-body a{color:var(--color-primary,#4a8aff);}
.notice-body ul,.notice-body ol{padding-left:1.2em;margin:0 0 8px;}
.notice-body::-webkit-scrollbar{width:4px}
.notice-body::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:2px}
.notice-footer{
  padding:12px 18px 18px;flex-shrink:0;background:#fff;border-top:1px solid #eef0f3;
}
.notice-ok{
  width:100%;height:44px;border-radius:12px;font-size:15px;font-weight:700;
  color:#fff;background:var(--color-primary,#4a8aff);
  box-shadow:0 4px 14px rgba(74,138,255,.28);
}
.notice-ok:active{transform:scale(.98);filter:brightness(.96);}
@keyframes notice-fade-in{from{opacity:0}to{opacity:1}}
@keyframes notice-pop-in{from{transform:scale(.94) translateY(8px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}

.lucide{width:22px;height:22px;display:block;}
.lucide svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.contact-fab .lucide{width:16px;height:16px;}
.drawer-back .lucide,.detail-close .lucide,.fs-close .lucide,.shop-search .lucide,.game-picker-close .lucide{width:18px;height:18px;}

/* —— 页面骨架（商城风） —— */
.page{
  width:100%;max-width:100%;min-height:100vh;margin:0;
  padding-bottom:calc(72px + env(safe-area-inset-bottom));
  background:#f5f6f8;
  font-family:var(--font-family,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif);
  color:#1f2329;position:relative;
}
.page.is-ready .content{opacity:1;}
.content{opacity:0;transition:opacity .18s ease;position:relative;z-index:1;width:100%;max-width:960px;margin:0 auto;}
.content-bottom{height:12px}

.loading{
  position:fixed;inset:0;z-index:50;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:#f5f6f8;transition:opacity .2s ease,visibility .2s ease;
}
.loading.is-hide{opacity:0;visibility:hidden;pointer-events:none;}
.spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top-color:var(--color-primary,#4a8aff);border-radius:50%;animation:spin-shop .8s linear infinite}
@keyframes spin-shop{to{transform:rotate(360deg)}}
.loading-text{margin-top:12px;color:#8a8f98;font-size:13px}

.bg-image{display:none!important;}

/* —— 顶栏已移除 —— */
.shop-header{display:none!important;}

/* 白色主面板 */
.shop-sheet{
  position:relative;z-index:3;
  margin:0;
  background:#f5f6f8;
  border-radius:0;
  padding:12px 12px 8px;
}
.shop-sheet--top{padding-top:12px;}
.shop-sheet .welcome-inline{margin-top:0;}
.shop-sheet .banner-wrap{margin-top:12px;}
.shop-sheet .cat-panel{margin-top:12px;}
.shop-sheet .promo-row{margin-top:12px;}
.shop-sheet .filter-row{margin-top:14px;}

/* —— 游戏分类横滑：左侧可滑，右侧固定「展开」 —— */
.cat-panel{
  background:#fff;border-radius:16px;padding:12px 4px 8px 8px;
  box-shadow:0 2px 12px rgba(31,35,41,.04);
}
.cat-scroll-wrap{display:flex;align-items:stretch;gap:0;}
.cat-scroll{
  flex:1;min-width:0;
  display:flex;align-items:stretch;gap:6px;
  overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  padding:2px 4px 8px;
  scrollbar-width:thin;
  scrollbar-color:#cfd4dc transparent;
}
.cat-scroll::-webkit-scrollbar{height:3px;display:block;}
.cat-scroll::-webkit-scrollbar-track{background:transparent;}
.cat-scroll::-webkit-scrollbar-thumb{background:#cfd4dc;border-radius:3px;}
.cat-item{
  flex:0 0 64px;width:64px;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:2px 0;
}
.cat-icon-wrap{
  width:52px;height:52px;border-radius:14px;overflow:hidden;
  background:#f3f5f9;display:flex;align-items:center;justify-content:center;
  border:2px solid transparent;box-sizing:border-box;
  transition:filter .18s,box-shadow .18s,border-color .18s,transform .18s;
}
.cat-icon{width:100%;height:100%;object-fit:cover;filter:grayscale(1);opacity:.72;transition:filter .18s,opacity .18s;}
.cat-name{
  font-size:11px;color:#9ca3af;text-align:center;width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;
  transition:color .18s;
}
.cat-item.active .cat-icon-wrap{
  border-color:#f5c518;border-width:3px;
  box-shadow:0 6px 16px rgba(120,140,255,.45),0 2px 8px rgba(245,197,24,.35);
  transform:translateY(-1px);
}
.cat-item.active .cat-icon{filter:grayscale(0);opacity:1;}
.cat-item.active .cat-name{color:#1f2329;font-weight:700;}

/* 右侧展开：无卡片感，仅轻分隔 */
.cat-expand{
  flex:0 0 36px;width:36px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  color:#8a8f98;align-self:stretch;
  border:0;border-left:1px solid #eee;margin:0;padding:4px 0 8px;
  background:transparent;box-shadow:none;border-radius:0;
}
.cat-expand-text{
  writing-mode:vertical-rl;text-orientation:mixed;
  letter-spacing:.15em;font-size:12px;line-height:1;font-weight:500;
}
.cat-expand-ico{
  width:16px;height:12px;display:flex;flex-direction:column;justify-content:space-between;
  background:transparent;
}
.cat-expand-ico span{display:block;width:100%;height:1.5px;background:#9ca3af;border-radius:1px;margin:0;}

/* 选择游戏底部弹层（非卡片网格内嵌） */
.game-picker-overlay{
  position:fixed;inset:0;z-index:10040;
  background:rgba(0,0,0,.45);
  display:flex;align-items:flex-end;justify-content:center;
}
.game-picker-overlay.closing{opacity:0;transition:opacity .18s ease;}
.game-picker-sheet{
  width:100%;max-width:960px;max-height:72vh;
  background:#fff;border-radius:16px 16px 0 0;
  display:flex;flex-direction:column;overflow:hidden;
  animation:game-picker-up .22s ease;
}
@keyframes game-picker-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
.game-picker-header{
  display:flex;align-items:center;justify-content:center;
  position:relative;padding:16px;border-bottom:1px solid #f0f0f0;flex-shrink:0;
}
.game-picker-title{font-size:16px;font-weight:700;color:#1f2329;}
.game-picker-close{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  width:32px;height:32px;border-radius:50%;background:#f3f4f6;
  display:flex;align-items:center;justify-content:center;color:#6b7280;
}
.game-picker-body{
  padding:16px 12px 28px;overflow-y:auto;-webkit-overflow-scrolling:touch;
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px 8px;
}
.game-picker-item{
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px;
  background:transparent;border:0;box-shadow:none;
}
.game-picker-item .cat-icon-wrap{width:56px;height:56px;border-radius:14px;}
.game-picker-item .cat-icon{filter:none;opacity:1;}
.game-picker-item .cat-name{color:#4b5563;font-size:12px;}
.game-picker-item.active .cat-icon-wrap{
  border-color:#f5c518;border-width:3px;
  box-shadow:0 4px 12px rgba(245,197,24,.35);
}
.game-picker-item.active .cat-name{color:#1f2329;font-weight:700;}
@media (min-width:640px){
  .game-picker-body{grid-template-columns:repeat(6,1fr);}
  .cat-item{flex-basis:72px;width:72px;}
}

/* —— 双促销卡（异形 + 插画） —— */
.promo-row{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;
  align-items:stretch;
}
.promo-card{
  position:relative;overflow:hidden;min-height:96px;
  padding:16px 78px 14px 14px;text-align:left;color:#fff;
  display:block;border:0;box-shadow:0 8px 18px rgba(160,60,140,.16);
}
.promo-card-copy{
  position:relative;z-index:2;display:flex;flex-direction:column;
  align-items:flex-start;justify-content:center;min-height:68px;
}
/* 左右异形圆角：中间相向内凹（与配色解耦） */
.promo-card--side-left{
  border-radius:22px 42px 22px 42px;
}
.promo-card--side-right{
  border-radius:42px 22px 42px 22px;
}
.promo-card--pink{
  background:linear-gradient(115deg,#ff6bb8 0%,#ff3d8a 45%,#ff5aa8 100%);
}
.promo-card--purple{
  background:linear-gradient(115deg,#b46bff 0%,#7c3aed 48%,#9456ff 100%);
}
.promo-card--blue{
  background:linear-gradient(115deg,#5b9bff 0%,#3b6fff 48%,#6ba8ff 100%);
}
.promo-card--orange{
  background:linear-gradient(115deg,#ffb04a 0%,#ff7a18 48%,#ff9a3d 100%);
}
.promo-card--teal{
  background:linear-gradient(115deg,#3fd0c9 0%,#0d9488 48%,#2dd4bf 100%);
}
.promo-card--green{
  background:linear-gradient(115deg,#6fdc8c 0%,#22c55e 48%,#4ade80 100%);
}
.promo-card--red{
  background:linear-gradient(115deg,#ff7a7a 0%,#ef4444 48%,#f87171 100%);
}
.promo-card--gold{
  background:linear-gradient(115deg,#ffd56a 0%,#f59e0b 48%,#fbbf24 100%);
}
.promo-card--indigo{
  background:linear-gradient(115deg,#8b9cff 0%,#4f46e5 48%,#818cf8 100%);
}
.promo-card--coral{
  background:linear-gradient(115deg,#ff9a7b 0%,#f97316 48%,#fb923c 100%);
}
.promo-card--cyan{
  background:linear-gradient(115deg,#67e8f9 0%,#06b6d4 48%,#22d3ee 100%);
}
.promo-card--rose{
  background:linear-gradient(115deg,#fda4af 0%,#e11d48 48%,#fb7185 100%);
}
.promo-card--violet{
  background:linear-gradient(115deg,#c4b5fd 0%,#7c3aed 48%,#a78bfa 100%);
}
.promo-card--lime{
  background:linear-gradient(115deg,#bef264 0%,#65a30d 48%,#a3e635 100%);
}
.promo-card--sky{
  background:linear-gradient(115deg,#7dd3fc 0%,#0284c7 48%,#38bdf8 100%);
}
.promo-card--magenta{
  background:linear-gradient(115deg,#f0abfc 0%,#c026d3 48%,#e879f9 100%);
}
.promo-card-title{
  font-size:18px;font-weight:800;line-height:1.2;letter-spacing:.02em;
  text-shadow:0 1px 3px rgba(0,0,0,.12);
}
.promo-card-sub{
  margin-top:6px;font-size:12px;opacity:.95;font-weight:500;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.promo-card-art{
  position:absolute;right:-2px;bottom:-2px;width:88px;height:88px;
  object-fit:contain;pointer-events:none;z-index:1;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.15));
}

/* —— 轮播 —— */
.banner-wrap{margin-top:12px;}
.banner-ratio{
  aspect-ratio:16/9;border-radius:14px;overflow:hidden;position:relative;
  background:#e8ecf3;box-shadow:0 2px 12px rgba(31,35,41,.06);
}
.banner-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .45s ease;}
.banner-slide.active{opacity:1;pointer-events:auto;position:relative;}
.banner-slide:not(.active){transition:none;}
.banner-img{width:100%;height:100%;object-fit:cover;display:block;}
.banner-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px;z-index:2;}
.banner-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);}
.banner-dot.active{background:#fff;transform:scale(1.2);}

/* —— 筛选胶囊 —— */
.filter-row{
  display:flex;align-items:center;gap:8px;margin-top:14px;margin-bottom:4px;
}
.filter-scroll{
  flex:1;display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 0;
}
.filter-scroll::-webkit-scrollbar{display:none}
.filter-pill{
  flex:0 0 auto;padding:7px 14px;border-radius:999px;font-size:13px;
  color:#6b7280;background:#fff;border:1px solid #e5e7eb;white-space:nowrap;
}
.filter-pill.active{
  color:#fff;background:var(--color-primary,#4a8aff);border-color:var(--color-primary,#4a8aff);
  font-weight:600;box-shadow:0 4px 12px rgba(74,138,255,.28);
}
.filter-more{
  flex-shrink:0;width:34px;height:34px;border-radius:10px;background:#fff;border:1px solid #e5e7eb;
  display:flex;align-items:center;justify-content:center;color:#6b7280;
}
.filter-more span{display:block;width:12px;height:2px;background:currentColor;margin:1.5px 0;border-radius:1px;}

/* —— 区块 / 欢迎 —— */
.section{padding:12px 0 4px;}
.section-title{
  font-size:16px;font-weight:700;margin-bottom:12px;color:#1f2329;
  padding-left:0;border-left:none;display:flex;align-items:center;gap:8px;
}
.section-title::before{
  content:"";width:3px;height:14px;border-radius:2px;
  background:var(--color-primary,#4a8aff);flex-shrink:0;
}
.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.section-title-row .section-title{margin-bottom:0;}
.price-hint{font-size:12px;color:#8a8f98;flex-shrink:0;}
.empty{padding:28px 0;text-align:center;color:#8a8f98;font-size:13px;}

.welcome-inline{
  display:flex;align-items:center;gap:12px;margin:0 0 10px;
  background:transparent;border-radius:0;padding:4px 2px 2px;
  box-shadow:none;border:0;
}
.welcome-logo{
  width:48px;height:48px;border-radius:14px;object-fit:cover;flex-shrink:0;
  background:transparent;box-shadow:none;
}
.welcome-info{flex:1;min-width:0;}
.welcome-name{
  font-size:22px;font-weight:800;color:#1f2329;line-height:1.25;
  letter-spacing:.02em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.welcome-text{display:none!important;}

/* 旧分类网格（价格表备用） */
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.category-card{
  aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:#fff;border:1px solid #eef0f3;border-radius:14px;padding:10px 6px;
  box-shadow:0 2px 10px rgba(31,35,41,.04);
}
.category-name{font-size:13px;font-weight:600;text-align:center;color:#1f2329;}
.category-desc{font-size:11px;color:#8a8f98;text-align:center;}
.category-icon-img{width:36px;height:36px;border-radius:10px;object-fit:cover;}
@media (min-width:640px){.category-grid{grid-template-columns:repeat(4,1fr);gap:12px;}}
@media (min-width:900px){.category-grid{grid-template-columns:repeat(6,1fr);gap:14px;}}

/* —— 陪玩 / 商品双列卡片 —— */
.companion-grid,.product-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%;
}
@media (min-width:720px){
  .companion-grid,.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
}
@media (min-width:960px){
  .companion-grid,.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}

.companion-card,.product-card{
  background:#fff;border:none;border-radius:12px;padding:0;min-width:0;width:100%;
  box-shadow:0 2px 12px rgba(31,35,41,.06);overflow:hidden;
  display:flex;flex-direction:column;
}
.product-cover{
  position:relative;width:100%;aspect-ratio:1;
  background:
    linear-gradient(rgba(74,138,255,.06) 1px,transparent 1px) 0 0/16px 16px,
    linear-gradient(90deg,rgba(74,138,255,.06) 1px,transparent 1px) 0 0/16px 16px,
    #eef4ff;
  overflow:hidden;
}
.product-cover img,.product-cover .c-avatar,.product-cover .c-avatar-fallback{
  width:100%;height:100%;object-fit:cover;border-radius:0;
}
.product-cover .c-avatar-fallback{
  display:flex;align-items:center;justify-content:center;
  font-size:36px;font-weight:700;color:var(--color-primary,#4a8aff);background:#e8f0ff;
}
.product-cover-bar{
  position:absolute;left:0;right:0;bottom:0;
  padding:8px 10px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.72));
  color:#fff;font-size:12px;font-weight:700;
  display:flex;gap:6px;flex-wrap:wrap;
}
.product-cover-bar em{font-style:normal;color:#ffe566;}
.product-body{padding:10px 10px 12px;display:flex;flex-direction:column;gap:4px;flex:1;}
.product-title,.c-name-text{
  font-size:14px;font-weight:700;color:#1f2329;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.product-desc,.c-intro{
  font-size:12px;color:#8a8f98;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  white-space:normal;margin-top:0;
}
.product-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:8px;}
.product-tag{
  display:inline-block;padding:2px 6px;border-radius:4px;
  background:#2f4b8f;color:#fff;font-size:10px;font-weight:600;flex-shrink:0;
}
.product-level{font-size:13px;font-weight:700;color:#ff5a44;}
.c-head,.c-fields,.c-info,.c-name{display:contents;}
.c-field{display:none;}

/* —— 须知 / 富文本 —— */
.richtext{
  background:#fff;border:1px solid #eef0f3;border-radius:14px;padding:16px;
  font-size:14px;line-height:1.7;white-space:pre-wrap;color:#1f2329;
  box-shadow:0 2px 12px rgba(31,35,41,.04);
}
.richtext img{max-width:100%;height:auto;}

/* 底部菜单「富文本页」：标题 + 白底贴底，长图全宽无边距 */
.richtext-page{
  flex:1;
  min-height:0;
  height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px));
  background:#fff;
  display:flex;flex-direction:column;
  box-sizing:border-box;
  overflow:hidden;
  margin-bottom:0;
  padding-bottom:0;
}
.richtext-page .catalog-topbar{
  flex-shrink:0;border-bottom:1px solid #f0f0f0;
}
.richtext--flush{
  flex:1;min-height:0;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;
  white-space:normal;font-size:14px;line-height:1.7;color:#1f2329;
}
.richtext--flush img{
  display:block;width:100%;max-width:100%;height:auto;margin:0;
}
.richtext--flush p{margin:0;}
.richtext--flush p + p{margin-top:0;}
.richtext--flush > *:first-child{margin-top:0;}
.richtext--flush > *:last-child{margin-bottom:0;}

/* —— 我的 / 登录 —— */
.auth-center{
  min-height:calc(100vh - 160px);display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:0 16px;width:100%;box-sizing:border-box;
}
.auth-box{
  width:100%;background:#fff;border:1px solid #eef0f3;border-radius:16px;padding:22px 16px;
  box-shadow:0 4px 20px rgba(31,35,41,.06);
}
.auth-form{display:flex;flex-direction:column;gap:12px;}
.auth-input{
  background:#f5f6f8;border:1px solid #e5e7eb;border-radius:12px;
  padding:0 14px;font-size:15px;height:46px;min-height:46px;line-height:46px;color:#1f2329;
}
.auth-btn{
  background:linear-gradient(135deg,var(--color-primary,#4a8aff),var(--color-primary-dark,#6b7cff));
  color:#fff;text-align:center;padding:12px 0;border-radius:12px;font-size:15px;font-weight:700;
}
.auth-tip{text-align:center;color:#8a8f98;font-size:12px;}
.wechat-btn{background:#07c160;color:#fff;text-align:center;padding:12px 0;border-radius:12px;font-size:15px;font-weight:700;}
.profile-banner{
  background:linear-gradient(135deg,var(--color-primary,#4a8aff),var(--color-primary-dark,#6b7cff));
  border-radius:16px;padding:20px 18px;margin-bottom:12px;color:#fff;
}
.banner-row{display:flex;align-items:center;justify-content:space-between;}
.profile-avatar{
  width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.22);
  border:2px solid rgba(255,255,255,.65);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:700;flex-shrink:0;
}
.profile-info{flex:1;min-width:0;margin-left:12px;}
.name-row{display:flex;align-items:center;gap:8px;}
.profile-name{font-size:20px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.profile-phone{font-size:13px;color:rgba(255,255,255,.85);margin-top:4px;}
.logout-btn{font-size:13px;color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:10px;padding:5px 12px;flex-shrink:0;margin-left:12px;}
.balance-card{background:#fff;border:1px solid #eef0f3;border-radius:14px;padding:18px 16px;margin-bottom:12px;box-shadow:0 2px 12px rgba(31,35,41,.04);}
.balance-row{display:flex;align-items:center;}
.balance-main{flex:1;padding-right:16px;border-right:1px solid #eef0f3;}
.b-main-label{display:block;font-size:12px;color:#8a8f98;}
.b-main-num{display:block;margin-top:4px;font-size:34px;font-weight:700;color:var(--color-primary,#4a8aff);line-height:1.1;}
.balance-sub{flex:1;display:flex;}
.balance-item{flex:1;text-align:center;}
.b-num{display:block;font-size:15px;font-weight:700;color:#1f2329;}
.b-label{display:block;margin-top:4px;font-size:12px;color:#8a8f98;}
.order-section{margin-top:4px;}
.order-header{font-size:15px;font-weight:700;margin-bottom:10px;}
.order-list{display:flex;flex-direction:column;gap:10px;}
.order-item{
  display:flex;justify-content:space-between;align-items:center;
  background:#fff;border:1px solid #eef0f3;border-radius:14px;padding:14px 16px;
  box-shadow:0 2px 10px rgba(31,35,41,.04);
}
.order-game{font-size:15px;font-weight:600;}
.order-meta{display:flex;gap:10px;margin-top:4px;}
.order-no,.order-time{font-size:12px;color:#8a8f98;}
.order-amount{font-size:15px;font-weight:700;text-align:right;color:#ff5a44;}
.order-status{font-size:12px;color:#8a8f98;text-align:right;margin-top:2px;display:flex;align-items:center;justify-content:flex-end;gap:4px;}
.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0;}
.order-status--pending_dispatch,.order-status--pending_accept,.order-status--in_progress{color:#1677ff;}
.order-status--pending_review{color:#fa8c16;}
.order-status--completed{color:#52c41a;}
.order-status--cancelled{color:#a0a0a0;}
.promo-footer{width:100%;text-align:center;color:#8a8f98;font-size:12px;padding:14px 0 4px;}

/* —— 底栏 —— */
.site-beian{
  position:fixed;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom,0px));
  z-index:99;text-align:center;padding:6px 12px;
  font-size:11px;line-height:1.4;color:#9ca3af;
  background:rgba(245,246,248,.92);backdrop-filter:blur(6px);
  border-top:1px solid #eef0f3;
}
.site-beian a{color:#9ca3af;text-decoration:none;}
.site-beian a:hover{color:var(--color-primary,#4a8aff);}
.page.has-beian .catalog-page,
.page.has-beian .richtext-page{
  height:calc(100dvh - 56px - 28px - env(safe-area-inset-bottom,0px));
}
.tabbar{
  position:fixed;left:0;right:0;bottom:0;height:56px;width:100%;
  display:flex;background:#fff;border-top:1px solid #eef0f3;
  padding-bottom:env(safe-area-inset-bottom);z-index:100;
  box-shadow:0 -4px 16px rgba(31,35,41,.04);
}
.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;}
.tab-icon-img{width:22px;height:22px;color:#9ca3af;}
.tab-name{font-size:11px;color:#9ca3af;white-space:nowrap;}
.tab-item.active .tab-name{color:var(--color-primary,#4a8aff);font-weight:700;}
.tab-item.active .tab-icon-img{color:var(--color-primary,#4a8aff);}

/* —— 价格抽屉 —— */
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;transition:opacity .28s ease;}
.drawer-overlay.closing{opacity:0;}
.drawer-panel{
  position:absolute;left:0;right:0;bottom:0;height:90vh;max-width:960px;margin:0 auto;
  background:#fff;border-radius:18px 18px 0 0;
  display:flex;flex-direction:column;overflow:hidden;
  animation:slide-up-shop .28s ease;touch-action:none;
}
@keyframes slide-up-shop{from{transform:translateY(100%)}to{transform:translateY(0)}}
.drawer-handle{width:40px;height:5px;border-radius:3px;background:#e5e7eb;margin:8px auto 0;flex-shrink:0;}
.drawer-header{display:flex;align-items:center;gap:12px;padding:8px 16px 14px;border-bottom:1px solid #eef0f3;flex-shrink:0;}
.drawer-back{width:38px;height:38px;border-radius:50%;background:#f3f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#4b5563;}
.drawer-title{font-size:18px;font-weight:700;color:#1f2329;}
.drawer-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px;touch-action:pan-y;}
.drawer-img{width:100%;border-radius:12px;border:1px solid #eef0f3;display:block;}
.drawer-tabs{flex-shrink:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-top:1px solid #eef0f3;padding:12px 12px 20px;}
.drawer-tab{
  padding:10px 6px;border-radius:10px;font-size:12px;font-weight:600;text-align:center;
  border:1px solid #e5e7eb;background:#f5f6f8;color:#6b7280;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.drawer-tab.active{
  background:var(--color-primary,#4a8aff);border-color:transparent;color:#fff;font-weight:700;
}

/* 全屏图 */
.fs-overlay{position:fixed;inset:0;background:rgba(0,0,0,.96);z-index:9999;overflow-y:auto;-webkit-overflow-scrolling:touch;}
.fs-img-wrap{min-height:100%;display:flex;align-items:center;}
.fs-img{width:100%;display:block;}
.fs-close{position:fixed;top:14px;right:14px;z-index:10000;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:#fff;}

/* 侧边客服：商城布局下隐藏，改用首页促销卡 */
.contact-fab{display:none!important;}

/* —— 全部分类页：整页贴底，侧栏灰底撑满 —— */
.page:has(.catalog-page),
.page:has(.richtext-page),
.page.page--flush{
  padding-bottom:0;
  min-height:100vh;
  min-height:100dvh;
  display:flex;flex-direction:column;
}
.page:has(.catalog-page) .content,
.page:has(.richtext-page) .content,
.page.page--flush .content{
  flex:1;display:flex;flex-direction:column;min-height:0;
  max-width:100%;
}
.catalog-page{
  flex:1;
  min-height:0;
  height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px));
  background:#fff;
  display:flex;flex-direction:column;
  box-sizing:border-box;
  overflow:hidden;
  padding-bottom:0;
  margin-bottom:0;
}
.catalog-topbar{
  display:flex;align-items:center;justify-content:center;
  position:relative;padding:14px 16px 10px;background:#fff;flex-shrink:0;
  border-bottom:1px solid #f0f0f0;
}
.catalog-top-title{font-size:17px;font-weight:700;color:#1f2329;}
.catalog-account-btn{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  font-size:13px;color:var(--color-primary,#4a8aff);font-weight:600;
  padding:6px 10px;border-radius:8px;background:rgba(74,138,255,.08);
}
.catalog-gcat{
  margin:0;border-radius:0;box-shadow:none;flex-shrink:0;
  background:linear-gradient(180deg,#f3eefc 0%,#f5f6f8 100%);
  padding:10px 4px 10px 8px;
}
.catalog-body{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:stretch;
  background:#fff;
  border:0;outline:0;box-shadow:none;
  overflow:hidden;
}
.catalog-side{
  width:92px;flex-shrink:0;
  align-self:stretch;
  min-height:100%;
  background:#f5f6f8;
  display:flex;flex-direction:column;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  border:0;border-right:0;box-shadow:none;
}
.catalog-side-item{
  padding:14px 8px;font-size:13px;color:#4b5563;text-align:center;
  border:0;border-left:3px solid transparent;line-height:1.3;background:transparent;
  flex-shrink:0;
}
.catalog-side-item.active{
  background:#fff;color:var(--color-primary,#4a8aff);font-weight:700;
  border-left-color:var(--color-primary,#4a8aff);
}
.catalog-main{
  flex:1;min-width:0;min-height:0;
  padding:10px 12px 16px;background:#fff;
  border:0;box-shadow:none;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.catalog-main-title{
  font-size:15px;font-weight:700;color:#1f2329;
  padding:2px 0 12px;border-bottom:1px solid #f0f0f0;margin-bottom:12px;
}
.catalog-list{display:flex;flex-direction:column;gap:10px;}
.catalog-product{
  display:flex;gap:10px;align-items:center;text-align:left;
  background:#fff;border:0;border-radius:0;padding:0;width:100%;
  box-shadow:none;
}
.catalog-product-cover{
  width:56px;height:56px;flex-shrink:0;border-radius:8px;overflow:hidden;
  background:#eef4ff;
}
.catalog-product-cover img{width:100%;height:100%;object-fit:cover;}
.catalog-product-cover .c-avatar-fallback{width:100%;height:100%;font-size:22px;}
.catalog-product-info{flex:1;min-width:0;padding:2px 0;display:flex;flex-direction:column;}
.catalog-product-title{
  font-size:14px;font-weight:700;color:#1f2329;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.catalog-product-desc{margin-top:4px;font-size:12px;color:#8a8f98;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.catalog-product-meta{margin-top:6px;}
.catalog-back{
  display:inline-block;margin:0 0 12px;padding:8px 12px;
  font-size:13px;color:var(--color-primary,#4a8aff);font-weight:600;
  background:rgba(74,138,255,.08);border-radius:8px;
}

@media (min-width:960px){
  .content{padding-left:12px;padding-right:12px;}
  .catalog-side{width:110px;}
  .catalog-product-cover{width:64px;height:64px;}
}
