/* ============================================================
   三角洲行动 · 电竞护航交易平台 —— 全局样式（深色军事风）
   ============================================================ */
:root {
  --bg: #0b0e13;
  --bg2: #11151d;
  --card: #161b26;
  --card2: #1c2331;
  --line: #262e3e;
  --txt: #eef2f7;
  --txt2: #8d97a9;
  --acc: #ffc02e;
  --acc2: #ff9d1c;
  --red: #ff5f57;
  --green: #3ddc84;
  --blue: #4d9fff;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; background: var(--bg); }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ 页面容器 & 底部导航 ============ */
.view { padding: 0 0 84px; min-height: 100vh; }
.view.no-tab { padding-bottom: 20px; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(17, 21, 29, .96);
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 100;
  backdrop-filter: blur(10px);
}
.tab {
  flex: 1; text-align: center; color: var(--txt2); font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative; padding: 2px 0;
}
.tab-ico { font-size: 21px; line-height: 1.2; filter: grayscale(.4); opacity: .75; }
.tab.active { color: var(--acc); }
.tab.active .tab-ico { filter: none; opacity: 1; transform: translateY(-1px); }
.tab-badge {
  position: absolute; top: -2px; right: calc(50% - 22px);
  background: var(--red); color: #fff; font-style: normal;
  font-size: 10px; line-height: 1.3; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
}

/* ============ 通用组件 ============ */
.section { margin: 12px; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 4px 10px;
}
.section-title h2 { font-size: 16px; font-weight: 800; }
.section-title h2::before { content: ""; display: inline-block; width: 4px; height: 14px; background: linear-gradient(180deg, var(--acc), var(--acc2)); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.section-title .more { font-size: 12px; color: var(--txt2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.primary-btn {
  width: 100%; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #1a1505; font-weight: 800; font-size: 15px;
}
.primary-btn:disabled { opacity: .5; }
.ghost-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: var(--card2); color: var(--txt); font-weight: 700; border: 1px solid var(--line);
}
.wxpay-btn {
  width: 100%; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, #3ddc84, #19b36a); color: #08260f; font-weight: 800; font-size: 15px;
}
.wxpay-btn:disabled { opacity: .5; }

/* ============ 首页头部 ============ */
.home-head {
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, #1a2233 0%, var(--bg) 100%);
}
.home-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.home-logo .logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.home-logo b { font-size: 17px; letter-spacing: 1px; }
.home-logo small { color: var(--txt2); font-size: 11px; display: block; }

/* 风险横幅 */
.risk-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 95, 87, .1); border: 1px solid rgba(255, 95, 87, .3);
  border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #ffb4af;
}
.risk-banner .dot { font-size: 14px; }
.risk-banner b { color: var(--red); }

/* 分类标签栏（首页横滑） */
.cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--txt2); white-space: nowrap;
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #1a1505; font-weight: 700; border-color: transparent;
}

/* 商品卡片网格（2列） */
.goods-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 12px;
}
.goods-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s;
}
.goods-card:active { transform: scale(.97); }
.goods-cover {
  height: 96px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.goods-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 60%);
}
.goods-tags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; z-index: 2; }
.goods-tag {
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  background: var(--red); color: #fff;
}
.goods-tag.hot { background: var(--red); }
.goods-tag.seckill { background: #8b5cf6; }
.goods-info { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.goods-title { font-size: 14px; font-weight: 800; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-desc { font-size: 11px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-sales { font-size: 10px; color: var(--txt2); }
.goods-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.goods-price { color: var(--green); font-weight: 900; font-size: 17px; }
.goods-price small { font-size: 11px; }
.goods-origin { color: var(--txt2); font-size: 11px; text-decoration: line-through; }

/* ============ 分类页 ============ */
.cat-page { display: flex; height: calc(100vh - 60px - env(safe-area-inset-bottom)); padding-top: 12px; }
.cat-side {
  width: 92px; flex-shrink: 0; overflow-y: auto;
  background: var(--bg2); border-right: 1px solid var(--line);
}
.cat-side-item {
  padding: 15px 6px; text-align: center; font-size: 12px; color: var(--txt2);
  position: relative; line-height: 1.4;
}
.cat-side-item .ci-ico { font-size: 20px; display: block; margin-bottom: 4px; }
.cat-side-item.active { background: var(--bg); color: var(--acc); font-weight: 700; }
.cat-side-item.active::before {
  content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px;
  background: var(--acc); border-radius: 0 2px 2px 0;
}
.cat-main { flex: 1; overflow-y: auto; padding: 0 10px 20px; }
.cat-main-head { padding: 2px 4px 10px; position: sticky; top: 0; background: var(--bg); z-index: 5; padding-top: 2px; }
.cat-main-head h3 { font-size: 15px; padding: 6px 0; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 14px; margin: 0 12px 8px;
}
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 13px; }
.search-box span { font-size: 14px; }
.cat-goods-list { display: flex; flex-direction: column; gap: 10px; }
.cat-goods-item {
  display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px;
}
.cat-goods-item:active { transform: scale(.98); }
.cgi-cover {
  width: 82px; height: 82px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.cgi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cgi-title { font-size: 14px; font-weight: 800; color: var(--red); }
.cgi-desc { font-size: 11px; color: var(--txt2); margin: 3px 0; }
.cgi-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cgi-price { color: var(--green); font-weight: 900; font-size: 16px; }
.cgi-price small { font-size: 10px; }
.cgi-origin { color: var(--txt2); font-size: 10px; text-decoration: line-through; margin-left: 5px; }
.cgi-buy {
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505;
  font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 14px;
}
.empty-tip { text-align: center; color: var(--txt2); padding: 60px 20px; font-size: 13px; }

/* ============ 电竞导师页 ============ */
.booster-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.booster-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.booster-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2a3550, #1a2233);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  border: 2px solid var(--acc);
}
.booster-info { flex: 1; min-width: 0; }
.booster-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.lv-badge { font-size: 10px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505; padding: 1px 6px; border-radius: 8px; font-weight: 800; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--txt2); display: inline-block; }
.online-dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.booster-stats { font-size: 11px; color: var(--txt2); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.booster-stats b { color: var(--txt); }
.booster-orders { font-size: 11px; color: var(--acc); margin-top: 3px; }

/* ============ 消息页 ============ */
.msg-list { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.msg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px solid var(--line);
}
.msg-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.msg-body { flex: 1; min-width: 0; }
.msg-name { font-size: 14px; font-weight: 700; }
.msg-last { font-size: 12px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg-meta { text-align: right; flex-shrink: 0; }
.msg-time { font-size: 10px; color: var(--txt2); display: block; margin-bottom: 4px; }
.msg-unread { background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-style: normal; }

/* ============ 聊天页 ============ */
.chat-page { display: flex; flex-direction: column; height: 100vh; }
.chat-head {
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.chat-back { font-size: 20px; padding: 4px 8px; color: var(--txt); }
.chat-head-name { font-weight: 800; font-size: 15px; }
.chat-head-sub { font-size: 11px; color: var(--txt2); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 76%; display: flex; flex-direction: column; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 10px 13px; border-radius: 14px; font-size: 14px;
  background: var(--card2); border: 1px solid var(--line);
  white-space: pre-wrap; word-break: break-all;
}
.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505; border-color: transparent;
}
.chat-msg.sys { align-self: center; max-width: 90%; }
.chat-msg.sys .chat-bubble { background: rgba(255,192,46,.08); border-color: rgba(255,192,46,.2); color: var(--acc); font-size: 12px; text-align: center; }
.chat-input-bar {
  display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg2); border-top: 1px solid var(--line);
}
.chat-input-bar input {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 16px; color: var(--txt); font-size: 14px; outline: none;
}
.chat-send {
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505;
  font-weight: 800; padding: 0 20px; border-radius: 20px; font-size: 14px;
}

/* ============ 我的页面 ============ */
.me-head {
  padding: calc(20px + env(safe-area-inset-top)) 18px 22px;
  background: linear-gradient(160deg, #232c42 0%, #141a28 60%, var(--bg) 100%);
}
.me-user { display: flex; align-items: center; gap: 14px; }
.me-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #34405f, #1d263b);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  border: 2px solid var(--acc);
}
.me-nick { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.me-uid { font-size: 11px; color: var(--txt2); margin-top: 3px; }
.me-edit { margin-left: auto; color: var(--txt2); font-size: 12px; border: 1px solid var(--line); padding: 5px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.me-stats { display: flex; margin-top: 16px; text-align: center; }
.me-stat { flex: 1; }
.me-stat b { display: block; font-size: 17px; font-weight: 800; }
.me-stat span { font-size: 11px; color: var(--txt2); }

/* 订单状态条 */
.order-status-bar {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin: -14px 12px 0; position: relative;
  padding: 14px 4px; z-index: 5;
}
.os-item { flex: 1; text-align: center; font-size: 11px; color: var(--txt2); position: relative; }
.os-ico { font-size: 22px; display: block; margin-bottom: 3px; }
.os-item.active { color: var(--acc); }
.os-badge {
  position: absolute; top: -4px; right: calc(50% - 20px);
  background: var(--red); color: #fff; font-size: 9px; min-width: 15px; height: 15px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* 功能网格 */
.me-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 4px; margin: 12px;
}
.me-grid-item { text-align: center; font-size: 11px; color: var(--txt2); padding: 6px 0; }
.me-grid-item .mg-ico { font-size: 24px; display: block; margin-bottom: 5px; }

/* 开关行 */
.me-rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px; overflow: hidden; }
.me-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.me-row:last-child { border-bottom: none; }
.me-row .mr-ico { font-size: 18px; }
.me-row .mr-arrow { margin-left: auto; color: var(--txt2); }
.switch { position: relative; width: 44px; height: 25px; margin-left: auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: var(--card2); border-radius: 13px;
  border: 1px solid var(--line); transition: .2s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 19px; height: 19px; left: 2px; top: 2px;
  background: #8d97a9; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: rgba(61, 220, 132, .3); border-color: var(--green); }
.switch input:checked + .slider::before { transform: translateX(19px); background: var(--green); }

/* 打手入驻横幅 */
.booster-banner {
  margin: 12px; border-radius: var(--radius); padding: 16px;
  background: linear-gradient(135deg, #3a2d12, #221a0c);
  border: 1px solid rgba(255,192,46,.3);
  display: flex; align-items: center; gap: 12px;
}
.booster-banner .bb-ico { font-size: 34px; }
.booster-banner b { font-size: 15px; color: var(--acc); }
.booster-banner p { font-size: 11px; color: var(--txt2); margin-top: 3px; }
.booster-banner button {
  margin-left: auto; flex-shrink: 0;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505;
  font-weight: 800; padding: 8px 14px; border-radius: 16px; font-size: 12px;
}

/* ============ 子页面（商品详情/下单/表单/订单列表/入驻） ============ */
.sub-head {
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.sub-head .chat-back { font-size: 20px; padding: 4px 8px; }
.sub-head h2 { font-size: 16px; font-weight: 800; }

/* 商品详情 */
.pd-cover { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 84px; position: relative; }
.pd-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 60%); }
.pd-body { padding: 16px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; }
.pd-price { color: var(--green); font-size: 30px; font-weight: 900; }
.pd-price small { font-size: 15px; }
.pd-origin { color: var(--txt2); text-decoration: line-through; font-size: 14px; }
.pd-sales { margin-left: auto; color: var(--txt2); font-size: 12px; }
.pd-title { font-size: 20px; font-weight: 900; margin: 10px 0 6px; }
.pd-desc { color: var(--txt2); font-size: 13px; line-height: 1.7; }
.pd-notice {
  margin-top: 14px; background: rgba(255,95,87,.08); border: 1px solid rgba(255,95,87,.25);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #ffb4af; line-height: 1.8;
}
.form-group { margin: 12px; }
.form-label { display: block; font-size: 13px; color: var(--txt2); margin: 14px 14px 6px; }
.form-label b { color: var(--red); }
.form-input, .form-textarea {
  width: calc(100% - 24px); margin: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--txt); font-size: 14px; outline: none;
}
.form-textarea { resize: none; height: 70px; }
.form-input:focus, .form-textarea:focus { border-color: var(--acc); }

.pay-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(17,21,29,.97); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 50; backdrop-filter: blur(10px);
}
.pay-bar-price { flex-shrink: 0; }
.pay-bar-price small { font-size: 11px; color: var(--txt2); display: block; }
.pay-bar-price b { color: var(--green); font-size: 20px; font-weight: 900; }
.pay-bar button { flex: 1; padding: 13px; border-radius: 12px; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505; font-weight: 800; font-size: 15px; }

/* 订单卡片 */
.order-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.order-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-oid { font-size: 12px; color: var(--txt2); }
.order-status { font-size: 12px; font-weight: 800; }
.order-status.s-PENDING { color: var(--txt2); }
.order-status.s-PAID { color: var(--acc); }
.order-status.s-SERVING { color: var(--blue); }
.order-status.s-DONE { color: var(--green); }
.order-status.s-AFTER { color: var(--red); }
.order-goods { display: flex; gap: 10px; align-items: center; }
.order-goods-ico {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.order-goods-name { font-weight: 700; font-size: 14px; }
.order-goods-uid { font-size: 11px; color: var(--txt2); margin-top: 2px; }
.order-amount { margin-left: auto; text-align: right; }
.order-amount b { color: var(--green); font-size: 17px; font-weight: 900; }
.order-card-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.order-btn { padding: 7px 14px; border-radius: 16px; font-size: 12px; font-weight: 700; background: var(--card2); color: var(--txt); border: 1px solid var(--line); }
.order-btn.primary { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #1a1505; border: none; }
.order-btn.green { background: rgba(61,220,132,.15); color: var(--green); border-color: rgba(61,220,132,.3); }
.order-btn.red { background: rgba(255,95,87,.12); color: var(--red); border-color: rgba(255,95,87,.3); }
.order-booster { font-size: 11px; color: var(--txt2); margin-top: 8px; }

/* 接单大厅 */
.hall-tip { margin: 12px; padding: 10px 14px; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.hall-tip.on { background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.25); color: var(--green); }
.hall-tip.off { background: rgba(255,192,46,.08); border: 1px solid rgba(255,192,46,.25); color: var(--acc); }

/* ============ 弹窗 ============ */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 200; backdrop-filter: blur(2px);
}
.modal.show { display: flex; }
.modal.center-items { align-items: center; }
.sheet {
  width: 100%; max-width: 480px; background: var(--card);
  border-radius: 20px 20px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto;
  animation: sheetUp .25s ease;
}
.modal.center-items .sheet { border-radius: 20px; margin: 0 20px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet.center { text-align: center; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head b { font-size: 16px; }
.sheet-close { font-size: 26px; color: var(--txt2); line-height: 1; padding: 0 4px; }

.qr-merchant { text-align: center; font-size: 14px; color: var(--txt2); margin-top: 14px; }
.qr-amount { text-align: center; font-size: 40px; font-weight: 900; margin: 2px 0 12px; }
.qr-img-box {
  width: 210px; height: 210px; margin: 0 auto;
  background: #fff; border-radius: 12px; padding: 10px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.qr-img-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-img-tip {
  position: absolute; inset: 0; background: #f2f3f5; color: #333;
  border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; text-align: center; line-height: 1.8;
}
.qr-img-tip small { font-weight: 400; color: #888; font-size: 11px; }
.qr-order { text-align: center; font-size: 14px; margin-top: 12px; }
.qr-order span { color: var(--acc); font-weight: 700; letter-spacing: 1px; }
.qr-notice {
  margin: 12px 0; padding: 10px;
  background: rgba(255,192,46,.08); border: 1px solid rgba(255,192,46,.25);
  border-radius: 10px; font-size: 12px; color: var(--txt2); text-align: center; line-height: 1.8;
}
.qr-notice b { color: var(--acc); }

.succ-icon { width: 64px; height: 64px; margin: 6px auto 10px; display: block; }
.succ-tip { color: var(--txt2); font-size: 13px; }
.sheet h3 { font-size: 18px; margin-bottom: 6px; }

.spinner {
  width: 34px; height: 34px; border: 3px solid rgba(255,192,46,.25);
  border-top-color: var(--acc); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-mask {
  position: fixed; inset: 0; background: rgba(11,14,19,.7);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.loading-mask.show { display: flex; }

.toast {
  position: fixed; top: 18%; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity .25s; max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; }

/* 昵称编辑弹窗 */
.nick-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.avatar-pick { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.avatar-pick.active { border-color: var(--acc); background: rgba(255,192,46,.12); }
