/* ===== 陪玩商城 H5 样式（荧光绿深色主题 · 复刻雷古曼电竞） ===== */
:root {
  --primary: #75FA91;       /* 品牌主色 - 荧光绿 */
  --primary-dark: #2BBF5A;
  --grad: linear-gradient(270deg, #D6FF72 0%, #77FCB4 100%);
  --grad-90: linear-gradient(90deg, #D6FF72 0%, #77FCB4 100%);
  --gold: #D6FF72;
  --danger: #FC4032;
  --danger-grad: linear-gradient(135deg, #FF6259 0%, #E5352B 100%);
  --success: #1DB974;
  --warning: #FFAA44;
  --text: #FFFFFF;
  --text2: #F5F5F5;
  --text3: #CCCCCC;
  --text4: #999999;
  --text-on-grad: #000000;
  --bg: #171718;            /* 页面背景 */
  --card: #222223;          /* 卡片背景 */
  --card2: #2A2A2A;         /* 次级表面 */
  --chip-bg: #3F4F43;       /* 未激活tabs底 */
  --radius: 14px;
  --radius-md: 12px;
  --shadow: none;
  --tab-bg: rgba(27, 44, 38, 0.56);
  --tab-border: rgba(117, 250, 145, 0.25);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-user-select: none; user-select: none;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; }

.hidden { display: none !important; }
.flex { display: flex; align-items: center; }

/* ===== 通用 ===== */
.page { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; font-size: 15px; font-weight: 700;
  padding: 12px 26px; color: var(--text-on-grad); background: var(--grad);
  box-shadow: 0 6px 18px rgba(46, 193, 100, 0.35); transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn-block { width: 100%; }
.btn-plain { background: transparent; color: var(--primary); box-shadow: none; border: 1px solid rgba(117, 250, 145, 0.6); }
.btn-gray { background: #333437; color: var(--text2); box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

.price { color: var(--primary); font-weight: 700; }
.price .sym { font-size: .72em; margin-right: 1px; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff;
  background: var(--bg);
}
.navbar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; }
.navbar .right { width: 32px; }

/* ===== 首页头部（brand-search：品牌 + 搜索） ===== */
.home-head {
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, #10251A 0%, transparent 100%);
}
.home-head .top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.home-head .brand { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-head .brand .logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.home-head .brand .logo em { font-style: normal; color: var(--primary); }
.home-head .brand .tagline { font-size: 10px; color: var(--text4); border: 1px solid rgba(117,250,145,.35); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.home-head .top-row .icon-btn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff; flex: none;
}
.home-search {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 999px; padding: 9px 14px; color: #999; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.home-search svg { flex: none; color: #9aa; }
.home-search span { flex: 1; }
.home-search .kw { color: var(--primary-dark); font-weight: 600; }

/* ===== 轮播 ===== */
.banner { margin: 12px 14px 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.banner .track { display: flex; transition: transform .4s ease; }
.banner .slide { flex: 0 0 100%; }
.banner .slide img { width: 100%; aspect-ratio: 8 / 3.4; object-fit: cover; }
.banner .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); transition: .3s; }
.banner .dots i.on { width: 16px; background: var(--primary); }

/* 默认运营位（无轮播时显示，避免布局空洞） */
.default-oper {
  margin: 12px 14px 0; border-radius: var(--radius); padding: 18px 16px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(270deg, #1A5C3A 0%, #2E7D4F 100%); color: #fff; overflow: hidden; position: relative;
}
.default-oper::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(119,252,180,.18); }
.default-oper .do-main { flex: 1; min-width: 0; }
.default-oper .do-tag { display: inline-block; font-size: 10px; background: var(--grad); color: #0B2415; border-radius: 4px; padding: 1px 7px; font-weight: 700; }
.default-oper b { display: block; font-size: 16px; margin-top: 7px; }
.default-oper i { font-style: normal; font-size: 11px; opacity: .8; margin-top: 3px; display: block; }
.default-oper .do-btn { flex: none; background: var(--grad); color: #0B2415; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; z-index: 1; }

/* ===== 公告跑马灯（ticker） ===== */
.notice {
  margin: 10px 14px 0; display: flex; align-items: center; gap: 8px;
  background: var(--grad-90); color: #0B2415; border-radius: 10px; padding: 9px 12px; font-size: 12px; overflow: hidden;
}
.notice .tag { flex: none; background: rgba(0,0,0,.82); color: var(--primary); border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.notice .ticker-box { flex: 1; overflow: hidden; height: 18px; position: relative; }
.notice .ticker-box .track { position: absolute; white-space: nowrap; animation: ticker 12s linear infinite; }
.notice .ticker-box .track span { display: inline-block; padding-right: 60px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== 功能入口（functionalAreas 宫格） ===== */
.entries { margin: 12px 14px 0; background: var(--card); border-radius: var(--radius); padding: 14px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 0; }
.entries a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.entries .ic {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: rgba(117, 250, 145, 0.1); color: var(--primary);
}
.entries .nm { font-size: 12px; color: var(--text2); }

/* ===== 游戏图标 Tabs（game-tabs-primary icon-tabs） ===== */
.game-tabs { margin: 14px 0 0; position: relative; }
.game-tabs .viewport { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 14px 2px; }
.game-tabs .viewport::-webkit-scrollbar { display: none; }
.game-tabs .row { display: inline-flex; gap: 10px; padding-bottom: 4px; }
.game-tab {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 66px; padding: 10px 4px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--chip-bg); color: #fff; transition: .15s;
}
.game-tab.on { background: var(--grad); color: var(--text-on-grad); box-shadow: 0 4px 14px rgba(46,193,100,.35); }
.game-tab .ic { font-size: 22px; line-height: 1; }
.game-tab .nm { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ===== 下划线副 Tabs（game-tabs-secondary underline） ===== */
.subtabs { margin: 16px 14px 0; display: flex; gap: 22px; }
.subtabs a { font-size: 15px; font-weight: 700; color: var(--text4); padding: 2px 0 7px; position: relative; }
.subtabs a.on { color: var(--primary); }
.subtabs a.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 4px; border-radius: 2px; background: var(--grad); }

/* ===== 商品区 ===== */
.sec { margin: 16px 14px 0; display: flex; align-items: center; }
.sec h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sec h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad); }
.sec .more { margin-left: auto; font-size: 12px; color: var(--text4); display: flex; align-items: center; gap: 2px; }

.goods-grid { margin: 12px 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods-card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.goods-card .cover { position: relative; }
.goods-card .cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.goods-card .cover .tag {
  position: absolute; left: 8px; top: 8px; background: var(--danger-grad); color: #fff;
  font-size: 10px; border-radius: 4px; padding: 1px 6px; box-shadow: 0 2px 8px rgba(229,53,43,.4);
}
.goods-card .body { padding: 9px 10px 10px; }
.goods-card .t { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.goods-card .meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.goods-card .price { font-size: 16px; }
.goods-card .sales { font-size: 11px; color: var(--text4); }
.goods-card .tags { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.goods-card .tags i { font-style: normal; font-size: 10px; color: var(--primary); background: rgba(117,250,145,.1); border: 1px solid rgba(117,250,145,.3); border-radius: 4px; padding: 1px 5px; }

/* ===== 帮助横幅（help-banner service-card） ===== */
.help-banner {
  margin: 16px 14px 0; border-radius: var(--radius); padding: 14px;
  background: linear-gradient(270deg, #D6FF72 0%, #77FCB4 100%); color: #0B2415;
  display: flex; align-items: center; gap: 12px;
}
.help-banner .hb-info { flex: 1; }
.help-banner .hb-title { font-size: 15px; font-weight: 800; }
.help-banner .hb-sub { font-size: 12px; opacity: .75; margin-top: 3px; }
.help-banner .hb-btn { background: #0B2415; color: var(--primary); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; flex: none; }

/* ===== 分类页 ===== */
.cate-layout { display: flex; min-height: calc(100vh - 130px); }
.cate-side { width: 92px; flex: none; background: #121213; }
.cate-side a { display: block; padding: 15px 8px; text-align: center; font-size: 13px; color: var(--text4); border-left: 3px solid transparent; }
.cate-side a.on { color: var(--primary); background: var(--bg); font-weight: 700; border-left-color: var(--primary); }
.cate-main { flex: 1; padding: 10px; }

/* ===== 商品详情 ===== */
.detail-swiper { position: relative; background: #000; }
.detail-swiper .track { display: flex; transition: transform .4s ease; }
.detail-swiper .slide { flex: 0 0 100%; }
.detail-swiper .slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-swiper .idx { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.detail-main { background: var(--bg); border-radius: 16px 16px 0 0; margin-top: -14px; position: relative; padding: 16px 14px 20px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; }
.detail-price .price { font-size: 26px; }
.detail-price .op { color: var(--text4); font-size: 13px; text-decoration: line-through; }
.detail-price .stock { margin-left: auto; font-size: 12px; color: var(--text4); }
.detail-title { font-size: 17px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.detail-sub { color: var(--text3); font-size: 13px; margin-top: 6px; }
.detail-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tags i { font-style: normal; font-size: 11px; color: var(--primary); background: rgba(117,250,145,.1); border: 1px solid rgba(117,250,145,.3); border-radius: 4px; padding: 2px 7px; }
.detail-sec { margin: 14px 0 0; }
.detail-sec h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.detail-sec h3::before { content: ""; width: 4px; height: 13px; border-radius: 2px; background: var(--grad); }
.detail-sec .content { margin-top: 10px; font-size: 13px; color: var(--text3); line-height: 1.7; }
.detail-sec .content img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.detail-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60;
  width: 100%; max-width: 640px; background: var(--card); display: flex; align-items: center; gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}
.detail-bar .act { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text3); gap: 2px; }
.detail-bar .buy { flex: 2; display: flex; gap: 10px; padding-left: 8px; }
.detail-bar .buy .btn { flex: 1; padding: 11px 0; font-size: 14px; }
.detail-bar .buy .btn.add { background: transparent; color: var(--primary); border: 1px solid rgba(117,250,145,.6); box-shadow: none; }

/* ===== 购物车 ===== */
.cart-item { margin: 10px 14px 0; background: var(--card); border-radius: var(--radius); padding: 12px; display: flex; gap: 10px; }
.cart-item .ck { width: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.cart-item .ck input { width: 18px; height: 18px; accent-color: var(--primary); }
.cart-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; }
.cart-item .info { flex: 1; display: flex; flex-direction: column; }
.cart-item .t { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.cart-item .stepper { display: flex; align-items: center; border: 1px solid #3A3B3F; border-radius: 999px; overflow: hidden; }
.cart-item .stepper button { width: 26px; height: 26px; border: none; background: #2C2D30; font-size: 16px; color: var(--text2); }
.cart-item .stepper span { width: 34px; text-align: center; font-size: 13px; }
.cart-item .del { font-size: 12px; color: var(--text4); }
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(69px + env(safe-area-inset-bottom)); z-index: 60;
  width: 100%; max-width: 640px; background: var(--card); display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; box-shadow: 0 -2px 12px rgba(0,0,0,.3); border-radius: 14px;
}
.cart-bar .all { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.cart-bar .all input { width: 18px; height: 18px; accent-color: var(--primary); }
.cart-bar .sum { margin-left: auto; font-size: 13px; color: var(--text3); }
.cart-bar .sum .price { font-size: 19px; }
.cart-bar .btn { padding: 10px 26px; }

/* ===== 订单确认 ===== */
.form-card { margin: 12px 14px 0; background: var(--card); border-radius: var(--radius); padding: 4px 14px; }
.form-card .f { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid #2B2C2F; }
.form-card .f:last-child { border-bottom: none; }
.form-card .f label { width: 74px; flex: none; color: var(--text3); font-size: 14px; }
.form-card .f input, .form-card .f textarea { flex: 1; border: none; font-size: 14px; background: transparent; color: var(--text); }
.form-card .f textarea { resize: none; padding: 4px 0; }
.pay-cards { margin: 12px 14px 0; display: flex; gap: 10px; }
.pay-card { flex: 1; background: var(--card); border-radius: var(--radius-md); padding: 12px 0; text-align: center; border: 2px solid transparent; font-size: 13px; color: var(--text3); }
.pay-card .ic { font-size: 20px; display: block; margin-bottom: 4px; }
.pay-card.on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.order-items { margin: 12px 14px 0; background: var(--card); border-radius: var(--radius); padding: 12px 14px; }
.order-items .it { display: flex; gap: 10px; padding: 8px 0; }
.order-items .it img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.order-items .it .info { flex: 1; }
.order-items .it .t { font-size: 13px; }
.order-items .it .p { font-size: 12px; color: var(--text4); margin-top: 4px; }
.order-total { margin: 12px 14px 0; display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text3); }
.order-total .price { font-size: 20px; }
.submit-wrap { margin: 16px 14px 30px; }

/* ===== 订单列表 ===== */
.tabs { position: sticky; top: 0; z-index: 40; display: flex; background: var(--bg); }
.tabs a { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: var(--text4); position: relative; }
.tabs a.on { color: var(--primary); font-weight: 700; }
.tabs a.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: 20px; height: 3px; border-radius: 2px; background: var(--grad); }
.order-card { margin: 10px 14px 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.order-card .head { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid #2B2C2F; }
.order-card .head .no { font-size: 12px; color: var(--text4); }
.order-card .head .st { margin-left: auto; font-size: 12px; font-weight: 600; }
.order-card .it { display: flex; gap: 10px; padding: 10px 14px; }
.order-card .it img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.order-card .it .info { flex: 1; }
.order-card .it .t { font-size: 13px; }
.order-card .it .p { font-size: 12px; color: var(--text4); margin-top: 3px; }
.order-card .foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 14px 12px; border-top: 1px solid #2B2C2F; }
.order-card .foot .am { font-size: 12px; color: var(--text3); margin-right: auto; }
.st0 { color: var(--warning); } .st1 { color: var(--primary); } .st2 { color: var(--success); } .st3 { color: var(--text4); }

/* ===== 我的 ===== */
.me-head {
  padding: calc(22px + env(safe-area-inset-top)) 18px 22px; color: #fff;
  display: flex; align-items: center; gap: 14px;
  background: radial-gradient(120% 160% at 0% 0%, #1A5C3A 0%, #171718 70%);
}
.me-head .avatar { width: 62px; height: 62px; border-radius: 50%; background: rgba(117,250,145,.15); border: 1px solid rgba(117,250,145,.4); display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; }
.me-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-head .name { font-size: 17px; font-weight: 700; }
.me-head .phone { font-size: 12px; opacity: .7; margin-top: 4px; }
.me-head .login { margin-left: auto; font-size: 13px; background: rgba(117,250,145,.12); border: 1px solid rgba(117,250,145,.5); color: var(--primary); padding: 7px 16px; border-radius: 999px; }
.me-orders { margin: 14px 14px 0; background: var(--card); border-radius: var(--radius); }
.me-orders .tt { display: flex; align-items: center; padding: 13px 14px; font-size: 14px; font-weight: 700; }
.me-orders .tt a { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--text4); }
.me-orders .row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px 14px; }
.me-orders .row a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); }
.me-orders .row .ic { font-size: 22px; }
.me-menu { margin: 12px 14px 30px; background: var(--card); border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 4px; }
.me-menu a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 13px 4px; font-size: 11px; color: var(--text2); }
.me-menu a:last-child { border-bottom: none; }
.me-menu a .ic { margin-right: 0; color: var(--primary); background: rgba(117,250,145,.08); border-radius: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.me-menu a .ic svg { width: 20px; height: 20px; }
.me-menu a .ar { display: none; }
.me-menu a.on { color: var(--primary); }

/* ===== 登录 ===== */
.login-wrap { padding: 60px 30px 20px; }
.login-wrap .logo { text-align: center; font-size: 26px; font-weight: 800; color: #fff; }
.login-wrap .logo em { font-style: normal; color: var(--primary); }
.login-wrap .sub { text-align: center; color: var(--text4); font-size: 13px; margin: 8px 0 30px; }
.login-card { background: var(--card); border-radius: 16px; padding: 6px 20px; }
.login-card .f { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #2B2C2F; }
.login-card .f:last-child { border-bottom: none; }
.login-card .f .ic { margin-right: 10px; font-size: 18px; color: var(--primary); }
.login-card .f input { flex: 1; border: none; font-size: 15px; background: transparent; color: var(--text); }
.login-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text4); }
.login-switch a { color: var(--primary); font-weight: 600; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px 0 40px; color: var(--text4); }
.empty .ic { font-size: 44px; display: block; margin-bottom: 10px; opacity: .5; }
.empty .go { margin-top: 14px; }

/* ===== 底部浮动胶囊 TabBar（fixed-tabbar） ===== */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70;
  width: calc(100% - 38px); max-width: 602px; height: 55px;
  background: var(--tab-bg); border-radius: 116px; border: 1px solid var(--tab-border);
  box-shadow: 0 0 12px rgba(46, 193, 100, 0.4);
  backdrop-filter: blur(24px) saturate(151%); -webkit-backdrop-filter: blur(24px) saturate(151%);
  display: flex; align-items: center; justify-content: space-around;
}
.tabbar a { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text2); position: relative; font-family: "PingFang SC", sans-serif; }
.tabbar a .ic { width: 24px; height: 24px; position: relative; }
.tabbar a.on { color: var(--primary); font-weight: 600; }
.tabbar a .badge {
  position: absolute; top: -4px; right: -8px; min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--danger-grad); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 1px solid var(--card); box-shadow: 0 2px 4px rgba(229, 53, 43, .4);
}

/* ===== Toast & 弹层 ===== */
#toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 999;
  background: rgba(17, 17, 17, .85); color: #fff; font-size: 14px; border-radius: 12px;
  padding: 12px 22px; max-width: 78%; text-align: center; display: none;
}
#modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6);
  display: none; align-items: flex-end; justify-content: center;
}
#modal.show { display: flex; }
#modal .sheet {
  width: 100%; max-width: 640px; background: #232325; border: 1px solid #333438; border-radius: 16px 16px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
#modal .sheet h3 { font-size: 16px; margin-bottom: 12px; color: #fff; }
.kf-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #2F3034; font-size: 14px; color: var(--text2); }
.kf-row:last-child { border-bottom: none; }
.kf-row .lb { color: var(--text4); width: 72px; flex: none; }
.kf-row .val { flex: 1; word-break: break-all; }
.kf-row .cpy { font-size: 12px; color: var(--primary); border: 1px solid var(--primary); background: transparent; border-radius: 999px; padding: 3px 10px; flex: none; }
#modal .close { width: 100%; margin-top: 14px; }

/* 加载骨架 */
.skeleton { background: linear-gradient(90deg, #232326 25%, #2C2D31 50%, #232326 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== 手绘图标尺寸（内联 SVG） ===== */
.home-head .brand .logo { display: inline-flex; align-items: center; gap: 7px; }
.home-head .brand .logo svg { width: 24px; height: 24px; color: var(--primary); }
.entries .ic svg { width: 21px; height: 21px; }
.game-tab .ic svg { width: 26px; height: 26px; }
.empty .ic svg { width: 48px; height: 48px; opacity: .55; }
.empty svg + span { display: block; margin-top: 8px; }
.me-orders .row .ic svg { width: 22px; height: 22px; }
.me-menu a .ic svg { width: 18px; height: 18px; }
.me-menu a .ic { color: var(--primary); }
.login-card .f .ic svg { width: 18px; height: 18px; }
.pay-card .ic svg { width: 22px; height: 22px; color: var(--primary); }
.pay-card .ic { margin-bottom: 4px; display: block; }
.cart-item .del { background: transparent; border: none; }
.cart-item .del svg { width: 16px; height: 16px; }
#modal .sheet h3 svg { width: 20px; height: 20px; color: var(--primary); vertical-align: -4px; }