/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #3366ff;
  --blue-grad: linear-gradient(135deg, #4a90e2, #3366ff);
  --blue-soft: #eef4ff;
  --green: #52c41a;
  --green-soft: #e9fbee;
  --orange: #fa8c16;
  --yellow: #fff7e6;
  --red: #ff4d4f;
  --red-soft: #fff0f0;
  --t1: #262626;
  --t2: #595959;
  --t3: #999;
  --line: #ececec;
  --bg: #f5f6f8;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #d9dde3;
  color: var(--t1);
  display: flex;
  justify-content: center;
  font-size: 14px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ===== 手机外框（桌面预览居中） ===== */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
}

/* ===== 状态栏 ===== */
.status-bar {
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.status-notch { width: 90px; height: 22px; background: #000; border-radius: 14px; }
.status-right { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.battery { display: inline-block; width: 22px; height: 11px; border: 1.5px solid #333; border-radius: 3px; position: relative; padding: 1px; }
.battery::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: #333; border-radius: 0 1px 1px 0; }
.battery-level { display: block; width: 80%; height: 100%; background: #333; border-radius: 1px; }
.battery-text { font-size: 11px; }

/* ===== 页面滚动区 ===== */
.page { padding-bottom: 8px; }

/* ===== 顶部导航栏 ===== */
.top-nav { padding: 8px 12px 4px; }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}
.brand-shield { flex-shrink: 0; display: inline-flex; }
.brand-name { flex: 1; font-weight: 700; font-size: 15px; color: #1a1a1a; }
.brand-name em { font-style: normal; color: var(--t2); font-weight: 500; font-size: 13px; }
.nav-actions { display: flex; gap: 4px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:active { background: #f0f0f0; }
.admin-nav-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; background: #f5f5f5; color: var(--t3);
  margin-left: 4px;
}
.admin-nav-btn:active { background: #e0e0e0; }

/* ===== 商户信息横幅 ===== */
.merchant-banner {
  margin: 10px 12px 0;
  border-radius: 14px;
  background: linear-gradient(160deg, #2f54eb, #3366ff 60%, #597ef7);
  padding: 14px 14px 16px;
  color: #fff;
  position: relative;
  box-shadow: 0 6px 18px rgba(51,102,255,.28);
}
.merchant-main { display: flex; gap: 10px; }
.shop-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.merchant-text { flex: 1; min-width: 0; }
.merchant-text h1 { font-size: 16px; font-weight: 700; }
.merchant-sub { font-size: 11.5px; opacity: .92; margin-top: 3px; }
.merchant-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; background: rgba(255,255,255,.16); padding: 2px 7px; border-radius: 6px; }
.query-btn {
  position: absolute; right: 14px; bottom: 14px;
  background: #fff; color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.query-btn:active { transform: scale(.96); }

/* ===== 通用区块 ===== */
.block { margin: 12px 12px 0; background: #fff; border-radius: 12px; padding: 12px; }
.block-title { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.bar { width: 4px; height: 15px; border-radius: 3px; }
.bar-blue { background: var(--blue); }
.bar-orange { background: var(--orange); }

/* ===== 搜索 ===== */
.search-row { margin-bottom: 10px; }
.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--t1);
}
.search-input::placeholder { color: var(--t3); }
.search-input:focus { border-color: var(--blue); background: #fff; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue-grad); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
}
.btn-primary:active { filter: brightness(.95); }
.btn-block { width: 100%; }

/* ===== 分类网格 ===== */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-card {
  position: relative;
  border-radius: 10px;
  padding: 12px 12px 14px;
  background: #f5f5f5;
  transition: all .2s;
  text-align: left;
}
.cat-card .cat-title { font-size: 14px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.cat-card .cat-sub { font-size: 12px; color: var(--t3); margin-top: 4px; }
.cat-card.active {
  background: var(--blue-grad);
  box-shadow: 0 5px 14px rgba(51,102,255,.32);
}
.cat-card.active .cat-title { color: #fff; }
.cat-card.active .cat-sub { color: rgba(255,255,255,.85); }
.cat-card .cat-check {
  position: absolute; right: 8px; bottom: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  display: none; align-items: center; justify-content: center;
}
.cat-card.active .cat-check { display: flex; }
.cat-check svg { display: block; }
.cat-card:active { transform: scale(.97); }

/* ===== 商品列表 ===== */
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-card {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  transition: border-color .2s;
}
.product-card.selected { border-color: var(--blue); }
.product-head { display: flex; align-items: flex-start; gap: 8px; }
.check {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid #ccc; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
}
.product-card.selected .check { background: var(--green); border-color: var(--green); }
.check svg { display: none; }
.product-card.selected .check svg { display: block; }
.product-name { flex: 1; font-size: 13.5px; color: var(--t1); line-height: 1.45; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-left: 26px; flex-wrap: wrap; }
.price { color: var(--blue); font-weight: 700; font-size: 17px; }
.price small { font-size: 12px; font-weight: 600; }
.stock { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.stock.ok { color: var(--green); background: var(--green-soft); }
.stock.low { color: var(--red); background: var(--red-soft); }
.qty-wrap { margin-left: auto; display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty-btn { width: 30px; height: 28px; font-size: 16px; color: var(--t2); background: #fafafa; display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:active { background: #eee; }
.qty-input { width: 40px; height: 28px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; background: #fff; }

/* ===== 购前须知 ===== */
.notice-block { background: #fff; }
.notice-head { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); padding: 5px 10px; border-radius: 6px; margin-bottom: 10px; }
.notice-title { font-size: 14px; font-weight: 700; color: var(--t1); }
.notice-list li {
  position: relative;
  padding: 9px 10px 9px 30px;
  border-radius: 6px;
  background: #fff7e6;
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.notice-list li:last-child { margin-bottom: 0; }
.notice-list .x-icon, .notice-list .warn-icon {
  position: absolute; left: 9px; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-style: normal; font-weight: 700;
}
.x-icon { background: var(--red); color: #fff; }
.warn-icon { background: var(--orange); color: #fff; }

.bottom-spacer { height: 120px; }

/* ===== 固定支付栏 ===== */
.pay-bar {
  position: absolute; left: 0; right: 0; bottom: 52px;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  z-index: 20;
}
.pay-info { display: flex; flex-direction: column; }
.pay-label { font-size: 11px; color: var(--t3); }
.pay-amount { font-size: 19px; font-weight: 700; color: var(--red); }
.pay-btn {
  background: var(--blue-grad); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(51,102,255,.35);
}
.pay-btn:active { transform: scale(.97); }

/* ===== 底部导航 ===== */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 52px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--t3); font-size: 10px; position: relative;
}
.tab.active { color: var(--blue); }
.tab svg { color: inherit; }
.badge {
  position: absolute; top: 4px; right: 50%; margin-right: -22px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 10px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== 右侧悬浮按钮 ===== */
.float-btns {
  position: absolute; right: 10px; bottom: 130px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 19;
}
.fab {
  width: 60px; padding: 10px 4px; border-radius: 10px;
  color: #fff; font-size: 11px; font-weight: 600;
  text-align: center; line-height: 1.3;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
.fab:active { transform: scale(.94); }
.fab-red { background: linear-gradient(180deg,#ff7875,#ff4d4f); }
.fab-purple { background: linear-gradient(180deg,#b37feb,#9254de); }
.fab-blue { background: linear-gradient(180deg,#597ef7,#3366ff); }

/* ===== Toast ===== */
.toast {
  position: absolute; left: 50%; bottom: 130px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.82); color: #fff;
  font-size: 13px; padding: 9px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .25s;
  z-index: 99; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 动画 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin .6s linear; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 通用弹窗 ===== */
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  display: none;
  align-items: flex-end;
  animation: fadeIn .2s;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
  width: 100%;
  max-height: 85%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  animation: slideUp .25s ease;
}
.modal-sm { max-height: 60%; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 700;
}
.modal-close { font-size: 18px; color: var(--t3); width: 32px; height: 32px; }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

/* ===== 确认订单弹窗 ===== */
.order-items { margin-bottom: 12px; }
.order-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.order-item .oi-name { flex: 1; color: var(--t2); line-height: 1.4; }
.order-item .oi-qty { color: var(--t3); white-space: nowrap; }
.order-item .oi-price { color: var(--blue); font-weight: 600; white-space: nowrap; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; color: var(--t2); border-top: 2px solid #f5f5f5; margin-top: 4px; }
.order-total-row em { font-style: normal; color: var(--blue); font-weight: 700; }
.pay-method-title { font-size: 14px; font-weight: 700; margin: 8px 0 10px; }
.pay-methods { display: flex; gap: 10px; margin-bottom: 14px; }
.pay-method {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 12px; color: var(--t2); transition: all .2s;
}
.pay-method.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.pay-method:active { transform: scale(.96); }
.pm-icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.pm-wechat { background: #07c160; }
.pm-alipay { background: #1677ff; }
.pm-name { font-weight: 500; }
.order-contact label { font-size: 13px; color: var(--t2); display: block; margin-bottom: 6px; }

/* ===== 二维码支付页 ===== */
.qr-overlay {
  position: absolute; inset: 0;
  background: #f5f6f8;
  z-index: 110;
  display: none;
  flex-direction: column;
}
.qr-overlay.show { display: flex; animation: fadeIn .2s; }
.qr-page { display: flex; flex-direction: column; height: 100%; }
.qr-header {
  height: 48px; background: #fff;
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700;
}
.qr-back { font-size: 28px; color: var(--t1); line-height: 1; width: 36px; }
.qr-content { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; }
.qr-amount-box { text-align: center; margin-bottom: 24px; }
.qr-amount-label { display: block; font-size: 13px; color: var(--t3); margin-bottom: 4px; }
.qr-amount { font-size: 36px; font-weight: 700; color: var(--t1); }
.qr-code-box {
  width: 320px; height: 320px;
  background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  overflow: hidden; margin-bottom: 16px;
}
.qr-code-box img { width: 300px; height: 300px; object-fit: contain; }
.qr-placeholder { text-align: center; color: var(--t3); padding: 20px; }
.qr-placeholder p { font-size: 13px; margin-top: 8px; }
.qr-placeholder-sub { font-size: 11px !important; color: #ccc; }
.qr-tip { font-size: 14px; color: var(--t2); margin-bottom: 16px; font-weight: 500; }
.qr-order-info { width: 100%; background: #fff; border-radius: 8px; padding: 12px; font-size: 12px; color: var(--t3); margin-bottom: 20px; }
.qr-order-info div { margin: 3px 0; }
.qr-order-info span { color: var(--t2); }
.qr-paid-btn { margin-bottom: 10px; }
.qr-warn { font-size: 12px; color: var(--orange); text-align: center; }

/* ===== 订单查询弹窗 ===== */
.oq-search { display: flex; gap: 8px; margin-bottom: 16px; }
.oq-search .search-input { flex: 1; }
.oq-result { font-size: 13px; }
.oq-empty { text-align: center; color: var(--t3); padding: 30px 0; font-size: 13px; }
.oq-card { background: var(--blue-soft); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.oq-card .oq-id { font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.oq-card .oq-status { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.oq-card .oq-status.pending { background: #fff7e6; color: var(--orange); }
.oq-card .oq-status.paid { background: var(--green-soft); color: var(--green); }
.oq-card .oq-line { color: var(--t2); margin: 3px 0; }

/* ===== 管理员登录弹窗 ===== */
.admin-login-icon { text-align: center; margin-bottom: 16px; }
.admin-hint { text-align: center; font-size: 12px; color: var(--t3); margin-top: 12px; }

/* ===== 管理后台 ===== */
.admin-overlay {
  position: absolute; inset: 0;
  background: #f0f2f5;
  z-index: 120;
  display: none;
  flex-direction: column;
}
.admin-overlay.show { display: flex; animation: fadeIn .2s; }
.admin-panel { display: flex; flex-direction: column; height: 100%; }
.admin-header {
  background: #fff; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 6px;
}
.admin-title { font-size: 15px; font-weight: 700; }
.admin-header > div { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-tab-btn {
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  background: #f5f5f5; color: var(--t2);
}
.admin-tab-btn.active { background: var(--blue); color: #fff; }
.admin-exit { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: #fff0f0; color: var(--red); }
.admin-body { flex: 1; overflow-y: auto; padding: 12px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.btn-sm { font-size: 12px; padding: 6px 12px; border-radius: 6px; }

/* 管理后台 - 分类标签栏 */
.admin-cat-bar { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
.admin-cat-chip { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--t2); white-space: nowrap; }
.admin-cat-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 管理后台 - 商品列表 */
.admin-prod-item { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.admin-prod-item .ap-name { flex: 1; font-size: 13px; line-height: 1.4; color: var(--t1); }
.admin-prod-item .ap-price { color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.admin-prod-item .ap-stock { font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.admin-prod-item .ap-stock.ok { background: var(--green-soft); color: var(--green); }
.admin-prod-item .ap-stock.low { background: var(--red-soft); color: var(--red); }
.admin-prod-item .ap-edit { font-size: 12px; color: var(--blue); padding: 4px 10px; border: 1px solid var(--blue); border-radius: 6px; white-space: nowrap; }

/* 管理后台 - 二维码设置 */
.qr-setting-list { display: flex; flex-direction: column; gap: 12px; }
.qr-setting-card { background: #fff; border-radius: 8px; padding: 14px; }
.qr-setting-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.qr-setting-head .pm-icon { width: 28px; height: 28px; }
.qr-preview { margin-top: 10px; min-height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #fafafa; }
.qr-preview img { max-width: 140px; max-height: 140px; border-radius: 4px; }
.qr-preview .qr-empty-text { font-size: 12px; color: var(--t3); }

/* 管理后台 - 订单管理 */
.admin-order-item { background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px; font-size: 13px; }
.admin-order-item .ao-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.admin-order-item .ao-id { font-weight: 700; color: var(--blue); }
.admin-order-item .ao-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.admin-order-item .ao-status.pending { background: #fff7e6; color: var(--orange); }
.admin-order-item .ao-status.waiting { background: #e6f7ff; color: #1890ff; }
.admin-order-item .ao-status.paid { background: var(--green-soft); color: var(--green); }
.admin-order-item .ao-line { color: var(--t2); margin: 2px 0; }
.admin-order-item .ao-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-order-item .ao-actions .btn-sm { flex: 1; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* 管理后台 - 基本设置 */
.settings-form { background: #fff; border-radius: 8px; padding: 16px; }
.settings-form label { font-size: 13px; color: var(--t2); display: block; margin: 10px 0 5px; }
.settings-form label:first-child { margin-top: 0; }
.settings-form .search-input { width: 100%; }
.radio-row { display: flex; gap: 16px; }
.radio-row label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; }

/* ===== Q群提示横幅 ===== */
.qqun-banner {
  margin: 10px 12px 0;
  background: linear-gradient(135deg, #6a5acd, #7b68ee);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(106,90,205,.3);
}
.qb-icon { font-size: 20px; flex-shrink: 0; }
.qb-text { flex: 1; display: flex; flex-direction: column; }
.qb-title { font-size: 13px; font-weight: 600; }
.qb-title b { font-weight: 700; letter-spacing: .5px; }
.qb-sub { font-size: 11px; opacity: .85; }
.qb-btn {
  background: #fff; color: #6a5acd;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; flex-shrink: 0;
}
.qb-btn:active { transform: scale(.94); }

/* ===== 温馨提示横幅 ===== */
.tip-banner {
  margin: 10px 12px 0;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #ad6800;
}
.tb-icon { flex-shrink: 0; }
.tb-text { flex: 1; line-height: 1.4; }

/* ===== 防封评估横幅 ===== */
.risk-banner {
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22,33,62,.35);
}
.risk-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.risk-icon { font-size: 22px; flex-shrink: 0; }
.risk-title-row { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.risk-title { font-size: 14px; font-weight: 700; }
.risk-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.risk-body { margin-bottom: 10px; }
.risk-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  font-size: 12px; opacity: .92;
}
.ri-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ri-text { flex: 1; }
.risk-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a90e2, #3366ff);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px; border-radius: 10px;
  text-align: center;
}
.risk-btn:active { filter: brightness(.9); }

/* ===== 购卡协议弹窗 ===== */
.modal-center { align-items: center; padding: 20px; }
.agreement-card {
  width: 100%;
  max-height: 80vh;
  background: #fff;
  border-radius: 14px;
  display: flex; flex-direction: column;
  animation: fadeIn .25s;
  overflow: hidden;
}
.agreement-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 700; color: var(--t2);
}
.agreement-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.ag-warm { font-size: 13px; color: #eb2f96; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.ag-list { padding-left: 18px; font-size: 12.5px; color: var(--t2); line-height: 1.6; }
.ag-list li { margin-bottom: 10px; }
.ag-list .ag-purple { font-style: normal; color: #722ed1; font-weight: 500; }
.ag-list .ag-red { font-style: normal; color: #f5222d; font-weight: 600; }
.ag-important { font-size: 13.5px; color: #f5222d; font-weight: 700; margin: 12px 0; line-height: 1.5; }
.ag-links { display: flex; gap: 16px; justify-content: center; margin: 8px 0 4px; }
.ag-link { color: #13c2c2; font-size: 13px; font-weight: 600; cursor: pointer; }
.ag-link:active { opacity: .7; }
.agreement-footer { padding: 12px 16px; border-top: 1px solid var(--line); }

/* ===== 联系商家页面（潮流布局）===== */
.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #f0f4ff, #f5f6f8 30%);
  z-index: 115;
  display: none;
  flex-direction: column;
}
.contact-overlay.show { display: flex; animation: fadeIn .2s; }
.contact-page { display: flex; flex-direction: column; height: 100%; }
.contact-hero {
  height: 48px; background: #fff;
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700;
}
.contact-back { font-size: 28px; color: var(--t1); line-height: 1; width: 36px; }
.contact-body { flex: 1; overflow-y: auto; padding: 20px 16px; }

.contact-avatar-box { text-align: center; margin-bottom: 20px; }
.contact-avatar {
  width: 72px; height: 72px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3366ff, #597ef7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(51,102,255,.35);
}
.contact-name { font-size: 17px; font-weight: 700; color: var(--t1); }
.contact-badge {
  display: inline-block; margin-top: 6px;
  font-size: 11px; color: var(--green);
  background: var(--green-soft); padding: 2px 10px; border-radius: 999px;
}

.contact-qq-card {
  background: #fff; border-radius: 14px; padding: 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.cqq-left { flex-shrink: 0; }
.cqq-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #12b7f5, #0d8ad8);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(18,183,245,.35);
}
.cqq-mid { flex: 1; min-width: 0; }
.cqq-label { font-size: 12px; color: var(--t3); margin-bottom: 2px; }
.cqq-num { font-size: 22px; font-weight: 700; color: var(--t1); letter-spacing: 1px; }
.cqq-copy {
  background: var(--blue-soft); color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; flex-shrink: 0;
}
.cqq-copy:active { transform: scale(.94); }

.contact-tip-box {
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 14px;
  border-left: 4px solid var(--blue);
}
.ctb-title { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.contact-tip-box p { font-size: 12.5px; color: var(--t2); line-height: 1.8; margin: 0; }

.contact-qqun-box {
  background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border: 1px dashed #ffa940;
  border-radius: 12px; padding: 14px; margin-bottom: 16px;
}
.qqun-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qqun-icon { font-size: 24px; }
.qqun-title { font-size: 15px; font-weight: 700; color: #d46b08; }
.qqun-sub { font-size: 11px; color: #ad6800; }
.qqun-num-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.qqun-num { font-size: 18px; font-weight: 700; color: #d46b08; letter-spacing: 1px; }
.qqun-warn { font-size: 11px; color: #d4380d; margin: 0; }

.contact-action-btn { margin-bottom: 10px; }
.contact-foot-tip { text-align: center; font-size: 11px; color: var(--t3); margin: 0; }

/* ===== 商品编辑页面 ===== */
.edit-page {
  position: absolute; inset: 0;
  background: var(--bg);
  z-index: 130;
  display: none;
  flex-direction: column;
}
.edit-page.show { display: flex; animation: fadeIn .2s; }
.edit-header {
  background: #fff; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.edit-back {
  font-size: 14px; color: var(--t2); background: none; border: none;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.edit-back:active { opacity: .7; }
.edit-title { font-size: 16px; font-weight: 700; }
.edit-body { flex: 1; overflow-y: auto; padding: 12px; }
.edit-footer {
  background: #fff; padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}

/* ===== 桌面端预览居中显示 ===== */
@media (min-width: 480px) {
  body { padding: 20px 0; align-items: flex-start; }
  .phone-frame { min-height: 860px; border-radius: 28px; border: 8px solid #111; }
}

/* ===== 卡密管理 ===== */
.cardkey-filters { display: flex; gap: 10px; margin-bottom: 10px; }
.cardkey-filters .search-input { flex: 1; min-width: 0; }
.cardkey-search { display: flex; gap: 8px; margin-bottom: 12px; }
.cardkey-search .search-input { flex: 1; }
.admin-cardkey-list { font-size: 13px; }
.admin-cardkey-item {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
}
.ck-left { flex: 1; min-width: 0; }
.ck-key { font-family: 'Courier New', monospace; font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 4px; letter-spacing: 1px; }
.ck-product { font-size: 12px; color: var(--t2); margin-bottom: 2px; word-break: break-all; }
.ck-meta { font-size: 11px; color: var(--t3); }
.ck-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ck-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.ck-status.unused { background: var(--green-soft); color: var(--green); }
.ck-status.used { background: var(--red-soft); color: var(--red); }
.ck-action { font-size: 11px; color: var(--blue); cursor: pointer; padding: 3px 8px; border-radius: 4px; background: var(--blue-soft); white-space: nowrap; }
.ck-action:active { opacity: .7; }
.ck-action.ck-danger { color: var(--red); background: var(--red-soft); }
.ck-loading { text-align: center; color: var(--t3); padding: 20px; font-size: 13px; }
.ck-empty { text-align: center; color: var(--t3); padding: 30px 0; font-size: 13px; }

/* 加载小圆点 */
.ck-loading-dot {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: middle; margin-right: 4px;
}

/* ===== 站内通知 ===== */
.admin-notify-tab { position: relative; }
.admin-notify-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  font-size: 10px; border-radius: 999px;
  margin-left: 3px; vertical-align: top;
}
.notification-list { font-size: 13px; }
.notification-item {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px;
  border-left: 3px solid var(--blue);
}
.notification-item.unread { background: var(--blue-soft); border-left-color: var(--orange); }
.notification-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; }
.notification-title { font-weight: 600; color: var(--t1); font-size: 13px; }
.notification-time { font-size: 11px; color: var(--t3); white-space: nowrap; }
.notification-content { font-size: 12.5px; color: var(--t2); line-height: 1.5; word-break: break-all; }

/* ===== 卡密结果弹窗（用户付款后）===== */
.cardkey-result-card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  display: flex; flex-direction: column;
  animation: fadeIn .25s;
  overflow: hidden;
  max-height: 85vh;
}
.ck-result-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 700; color: var(--green);
}
.ck-result-body { flex: 1; overflow-y: auto; padding: 20px 16px; text-align: center; }
.ck-success-icon { margin-bottom: 12px; }
.ck-result-tip { font-size: 14px; color: var(--t2); margin-bottom: 16px; }
.ck-key-box {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #eef4ff, #e6f7ff);
  border: 2px dashed var(--blue);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.ck-key-text {
  font-family: 'Courier New', monospace;
  font-size: 26px; font-weight: 700; color: var(--blue);
  letter-spacing: 2px;
}
.ck-copy-btn {
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; flex-shrink: 0;
}
.ck-copy-btn:active { transform: scale(.94); }
.ck-result-info { text-align: left; background: #fafafa; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.ck-result-info div { font-size: 12px; color: var(--t2); margin: 4px 0; word-break: break-all; }
.ck-result-info span:first-child { color: var(--t3); }
.ck-result-warn { font-size: 12px; color: var(--orange); line-height: 1.5; }
.ck-result-footer { padding: 12px 16px; border-top: 1px solid var(--line); }

/* ===== 首页轮播图 ===== */
.banner-carousel {
  margin: 10px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 120px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .4s ease;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
}
.cs-content { flex: 1; }
.cs-tag {
  display: inline-block;
  font-size: 10px;
  background: rgba(255,255,255,.3);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.cs-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cs-desc { font-size: 11px; opacity: .9; }
.cs-icon { font-size: 40px; opacity: .8; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: all .3s;
}
.carousel-dot.active { background: #fff; width: 16px; border-radius: 3px; }

/* ===== 公告滚动条 ===== */
.notice-scroll {
  margin: 10px 12px 0;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  height: 36px;
}
.ns-icon { flex-shrink: 0; }
.ns-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}
.ns-text {
  display: block;
  font-size: 12px;
  color: var(--t2);
  line-height: 20px;
  white-space: nowrap;
  animation: nsScroll 20s linear infinite;
}
.ns-track .ns-text { margin-bottom: 4px; }
@keyframes nsScroll {
  0% { transform: translateY(0); }
  25% { transform: translateY(-20px); }
  50% { transform: translateY(-40px); }
  75% { transform: translateY(-60px); }
  100% { transform: translateY(-80px); }
}

/* ===== 优惠券入口 ===== */
.coupon-entry {
  margin: 10px 12px 0;
  background: linear-gradient(135deg, #fff1f0, #fff7e6);
  border: 1px solid #ffccc7;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ce-left { display: flex; align-items: center; gap: 10px; }
.ce-icon { font-size: 24px; }
.ce-title { font-size: 14px; font-weight: 700; color: #cf1322; }
.ce-sub { font-size: 11px; color: #d4380d; }
.ce-btn {
  background: linear-gradient(135deg, #ff4d4f, #cf1322);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  flex-shrink: 0;
}
.ce-btn:active { transform: scale(.94); }

/* ===== 商品促销标签 & 销量 ===== */
.product-tags { display: flex; gap: 4px; margin-top: 6px; padding-left: 26px; flex-wrap: wrap; }
.ptag {
  font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600;
}
.ptag.hot { background: #fff1f0; color: #cf1322; }
.ptag.new { background: #e6fffb; color: #08979c; }
.ptag.rec { background: #f9f0ff; color: #531dab; }
.ptag.sale { background: #fff7e6; color: #d46b08; }
.product-sales {
  font-size: 11px; color: var(--t3); margin-left: 8px;
}
.product-fav-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #ccc; flex-shrink: 0; margin-top: 1px;
}
.product-fav-btn.active { color: var(--orange); border-color: var(--orange); }

/* ===== 支付倒计时 ===== */
.qr-countdown {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: #d46b08;
}
.qr-countdown.warning { background: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.qr-countdown.expired { background: #f5f5f5; border-color: #d9d9d9; color: var(--t3); }
.qc-icon { font-size: 14px; }
.qr-countdown b { font-size: 14px; }

/* ===== 订单状态补充 ===== */
.oq-status.cancelled, .admin-order-item .ao-status.cancelled { background: #f5f5f5; color: var(--t3); }
.oq-status.completed, .admin-order-item .ao-status.completed { background: var(--blue-soft); color: var(--blue); }
.oq-status.refunding, .admin-order-item .ao-status.refunding { background: var(--red-soft); color: var(--red); }
.oq-status.refunded, .admin-order-item .ao-status.refunded { background: #f5f5f5; color: var(--t3); }

/* ===== 商品详情弹窗 ===== */
.pd-image-box {
  width: 100%; height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef4ff, #f0f5ff);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 48px;
}
.pd-name { font-size: 15px; font-weight: 700; color: var(--t1); line-height: 1.5; margin-bottom: 10px; }
.pd-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-price { font-size: 24px; font-weight: 700; color: var(--blue); }
.pd-stock { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.pd-sales { font-size: 12px; color: var(--t3); margin-left: auto; }
.pd-info-box {
  background: #fafafa; border-radius: 8px; padding: 12px; margin-bottom: 14px;
}
.pd-info-row { display: flex; font-size: 12px; color: var(--t2); margin: 4px 0; }
.pd-info-row span:first-child { color: var(--t3); width: 70px; flex-shrink: 0; }
.pd-desc-box { background: #fffbe6; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #ad6800; line-height: 1.6; }
.pd-fav-active { color: var(--orange) !important; border-color: var(--orange) !important; }

/* ===== 优惠券弹窗 ===== */
.coupon-item {
  background: #fff; border-radius: 10px; margin-bottom: 10px;
  display: flex; overflow: hidden; border: 1px solid var(--line);
}
.coupon-amount-box {
  width: 90px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff4d4f, #cf1322);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 4px;
}
.coupon-amount-box .ca-symbol { font-size: 12px; }
.coupon-amount-box .ca-num { font-size: 28px; font-weight: 700; line-height: 1; }
.coupon-amount-box .ca-type { font-size: 10px; margin-top: 4px; opacity: .9; }
.coupon-info { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.coupon-name { font-size: 14px; font-weight: 600; color: var(--t1); }
.coupon-cond { font-size: 11px; color: var(--t3); }
.coupon-bottom { display: flex; align-items: center; justify-content: space-between; }
.coupon-remain { font-size: 11px; color: var(--orange); }
.coupon-grab-btn {
  background: var(--blue-grad); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.coupon-grab-btn:disabled { background: #d9d9d9; }
.coupon-grab-btn:active:not(:disabled) { transform: scale(.94); }
.coupon-empty { text-align: center; color: var(--t3); padding: 30px 0; font-size: 13px; }

/* 管理后台-优惠券列表 */
.admin-coupon-item {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.aci-left { flex: 1; }
.aci-name { font-size: 14px; font-weight: 600; color: var(--t1); }
.aci-info { font-size: 12px; color: var(--t3); margin-top: 2px; }
.aci-stats { font-size: 11px; color: var(--orange); margin-top: 2px; }
.aci-actions { display: flex; gap: 6px; flex-shrink: 0; }
.aci-btn { font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.aci-edit { background: var(--blue-soft); color: var(--blue); }
.aci-toggle { background: #f5f5f5; color: var(--t2); }

/* ===== 投诉表单 ===== */
.complain-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; display: inline-block; }
.complain-status.pending { background: #fff7e6; color: var(--orange); }
.complain-status.handled { background: var(--green-soft); color: var(--green); }
.complain-status.ignored { background: var(--red-soft); color: var(--red); }
.complain-status.approved { background: var(--green-soft); color: var(--green); }
.complain-status.rejected { background: #f5f5f5; color: var(--t3); }

/* 管理后台-投诉列表 */
.admin-complain-item {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px; font-size: 13px;
  border-left: 3px solid var(--orange);
}
.admin-complain-item.handled { border-left-color: var(--green); }
.ac-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ac-type { font-weight: 700; color: var(--t1); }
.ac-line { color: var(--t2); margin: 3px 0; font-size: 12px; }
.ac-desc { background: #fafafa; border-radius: 6px; padding: 8px; font-size: 12px; color: var(--t2); margin: 6px 0; line-height: 1.5; }
.ac-actions { display: flex; gap: 8px; margin-top: 8px; }
.ac-btn { font-size: 12px; padding: 5px 12px; border-radius: 6px; }
.ac-handle { background: var(--green-soft); color: var(--green); }
.ac-ignore { background: var(--red-soft); color: var(--red); }

/* ===== 分享弹窗 ===== */
.share-icon-box { margin-bottom: 16px; }
.share-link-box { margin-bottom: 20px; }
.share-platforms { display: flex; justify-content: center; gap: 16px; }
.share-platform {
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.share-platform:nth-child(1) { background: #12b7f5; }
.share-platform:nth-child(2) { background: #07c160; }
.share-platform:nth-child(3) { background: #ffce00; color: #333; }
.share-platform:active { transform: scale(.92); }

/* ===== 收藏列表 ===== */
.fav-item {
  background: #fff; border-radius: 8px; padding: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.fav-item .fi-name { flex: 1; font-size: 13px; line-height: 1.4; color: var(--t1); }
.fav-item .fi-price { color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.fav-item .fi-btn { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.fav-item .fi-del { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--red-soft); color: var(--red); white-space: nowrap; }

/* ===== 数据统计面板 ===== */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.dash-card {
  border-radius: 10px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.dash-card.dash-blue { background: linear-gradient(135deg, #4a90e2, #3366ff); }
.dash-card.dash-green { background: linear-gradient(135deg, #52c41a, #389e0d); }
.dash-card.dash-orange { background: linear-gradient(135deg, #fa8c16, #d4380d); }
.dash-card.dash-purple { background: linear-gradient(135deg, #9b59b6, #722ed1); }
.dash-icon { font-size: 28px; }
.dash-info { flex: 1; }
.dash-num { font-size: 20px; font-weight: 700; line-height: 1.2; }
.dash-label { font-size: 11px; opacity: .9; }

.dash-section { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.dash-section-title { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 10px; }
.dash-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.dash-rank-item:last-child { border-bottom: none; }
.dash-rank-num {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.dash-rank-num.r1 { background: #ff4d4f; }
.dash-rank-num.r2 { background: #fa8c16; }
.dash-rank-num.r3 { background: #faad14; }
.dash-rank-num.r4, .dash-rank-num.r5 { background: #bfbfbf; }
.dash-rank-name { flex: 1; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-rank-count { color: var(--blue); font-weight: 600; white-space: nowrap; }
.dash-recent-item {
  padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.dash-recent-item:last-child { border-bottom: none; }
.dash-recent-id { color: var(--blue); font-weight: 600; }
.dash-recent-amount { color: var(--t1); font-weight: 600; }
.dash-recent-status { font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.dash-empty { text-align: center; color: var(--t3); padding: 20px; font-size: 13px; }

/* ===== 限时秒杀模块 ===== */
.seckill-section {
  margin: 10px 12px 0;
  background: linear-gradient(135deg, #fff1f0, #fff);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #ffccc7;
}
.seckill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seckill-title-row { display: flex; align-items: center; gap: 5px; }
.sk-icon { font-size: 18px; }
.sk-title { font-size: 16px; font-weight: 800; color: #ff4d4f; }
.sk-badge { font-size: 9px; background: #ff4d4f; color: #fff; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.seckill-countdown { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--t2); }
.sk-cd-box { background: #262626; color: #fff; padding: 2px 5px; border-radius: 4px; font-weight: 700; font-size: 12px; min-width: 22px; text-align: center; }
.sk-cd-sep { font-weight: 700; color: #262626; }
.seckill-list { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.seckill-list::-webkit-scrollbar { display: none; }
.sk-item { flex-shrink: 0; width: 100px; background: #fff; border-radius: 10px; padding: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sk-item-img { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.sk-item-name { font-size: 11px; color: var(--t1); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.sk-item-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.sk-item-now { color: #ff4d4f; font-weight: 700; font-size: 15px; }
.sk-item-orig { color: var(--t3); font-size: 11px; text-decoration: line-through; }
.sk-item-buy { margin-top: 6px; background: linear-gradient(135deg,#ff7875,#ff4d4f); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px; width: 100%; }

/* ===== 商品排序栏 ===== */
.sort-bar { margin-left: auto; display: flex; gap: 4px; }
.sort-btn { font-size: 11px; color: var(--t3); padding: 3px 8px; border-radius: 6px; font-weight: 500; transition: all .2s; }
.sort-btn.active { color: var(--blue); background: var(--blue-soft); font-weight: 600; }

/* ===== 优惠券选择（订单弹窗内）===== */
.order-coupon-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.order-coupon-row label { font-size: 14px; color: var(--t1); font-weight: 600; }
.oc-select-wrap { display: flex; align-items: center; gap: 4px; color: var(--t3); font-size: 13px; }
.oc-select-wrap.selected { color: var(--red); }
.oc-arrow { font-size: 16px; }
.order-discount-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--red); }

/* ===== 个人中心页面 ===== */
.profile-header { display: flex; align-items: center; gap: 12px; padding: 20px 16px; background: var(--blue-grad); border-radius: 14px; color: #fff; margin-bottom: 12px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-name { font-size: 17px; font-weight: 700; }
.profile-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.profile-login-btn { background: rgba(255,255,255,.25); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; }
.profile-stats { display: flex; background: #fff; border-radius: 12px; padding: 14px 0; margin-bottom: 12px; }
.ps-item { flex: 1; text-align: center; }
.ps-num { font-size: 20px; font-weight: 700; color: var(--blue); }
.ps-label { font-size: 11px; color: var(--t3); margin-top: 2px; }
.profile-menu { background: #fff; border-radius: 12px; overflow: hidden; }
.pm-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; position: relative; }
.pm-item:last-child { border-bottom: none; }
.pm-item:active { background: #f9f9f9; }
.pm-icon { font-size: 20px; width: 28px; text-align: center; }
.pm-text { flex: 1; font-size: 14px; color: var(--t1); }
.pm-arrow { color: var(--t3); font-size: 18px; }
.pm-badge { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); background: var(--red); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ===== 我的订单页面 ===== */
.my-orders-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.mot-btn { flex: 1; padding: 12px 4px; font-size: 13px; color: var(--t2); text-align: center; position: relative; }
.mot-btn.active { color: var(--blue); font-weight: 600; }
.mot-btn.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--blue); border-radius: 2px; }
.my-orders-body { padding: 10px 12px; }
.my-order-card { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.moc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.moc-id { font-size: 12px; color: var(--t3); }
.moc-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.moc-status.pending { color: var(--orange); background: var(--yellow); }
.moc-status.paid { color: var(--green); background: var(--green-soft); }
.moc-status.completed { color: var(--blue); background: var(--blue-soft); }
.moc-status.refunding { color: var(--red); background: var(--red-soft); }
.moc-status.refunded { color: var(--t3); background: #f5f5f5; }
.moc-status.cancelled { color: var(--t3); background: #f5f5f5; }
.moc-items { font-size: 13px; color: var(--t2); line-height: 1.6; }
.moc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5; }
.moc-amount { font-size: 15px; font-weight: 700; color: var(--red); }
.moc-actions { display: flex; gap: 6px; }
.moc-btn { font-size: 12px; padding: 5px 12px; border-radius: 999px; font-weight: 500; }
.moc-btn.primary { background: var(--blue-grad); color: #fff; }
.moc-btn.outline { background: #fff; border: 1px solid var(--line); color: var(--t2); }
.moc-btn.danger { background: #fff; border: 1px solid var(--red); color: var(--red); }
.moc-cardkey { background: var(--blue-soft); border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.moc-cardkey b { color: var(--blue); font-size: 14px; letter-spacing: 1px; }

/* ===== 分类页面 ===== */
.category-page-list { display: flex; flex-direction: column; gap: 10px; }
.cat-page-item { background: #fff; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.cat-page-item:active { background: #f9f9f9; }
.cpi-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cpi-info { flex: 1; }
.cpi-name { font-size: 15px; font-weight: 600; color: var(--t1); }
.cpi-sub { font-size: 12px; color: var(--t3); margin-top: 3px; }
.cpi-arrow { color: var(--t3); font-size: 18px; }

/* ===== 评价弹窗 ===== */
.review-product-name { font-size: 14px; color: var(--t1); font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.review-stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.rs-star { font-size: 32px; color: #ddd; cursor: pointer; transition: color .2s; }
.rs-star.active { color: #fadb14; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rt-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f5f5f5; color: var(--t2); }
.rt-chip.active { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue); }

/* ===== 售后弹窗 ===== */
.refund-order-info { background: #f9f9f9; border-radius: 8px; padding: 10px; margin-bottom: 12px; font-size: 13px; color: var(--t2); }

/* ===== 用户登录弹窗 ===== */
.user-login-icon { text-align: center; margin-bottom: 14px; }

/* ===== 商品评价展示（详情页内）===== */
.pd-reviews { margin-top: 14px; }
.pd-reviews-title { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pd-review-item { background: #f9f9f9; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.pd-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pd-review-user { font-size: 12px; font-weight: 600; color: var(--t1); }
.pd-review-stars { font-size: 12px; color: #fadb14; }
.pd-review-content { font-size: 12px; color: var(--t2); line-height: 1.5; }
.pd-review-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.pd-review-tag { font-size: 10px; background: var(--blue-soft); color: var(--blue); padding: 1px 6px; border-radius: 4px; }
.pd-review-time { font-size: 11px; color: var(--t3); margin-top: 4px; }
.pd-no-review { text-align: center; color: var(--t3); font-size: 13px; padding: 16px 0; }

/* ===== 消息中心列表 ===== */
.message-item { background: #f9f9f9; border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.message-item.unread { background: var(--blue-soft); }
.mi-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mi-title { font-size: 14px; font-weight: 600; color: var(--t1); }
.mi-time { font-size: 11px; color: var(--t3); }
.mi-content { font-size: 13px; color: var(--t2); line-height: 1.5; }
.mi-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; margin-left: 4px; }

/* ===== 浏览历史列表 ===== */
.history-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.history-item:last-child { border-bottom: none; }
.hi-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hi-info { flex: 1; }
.hi-name { font-size: 13px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-price { font-size: 13px; color: var(--blue); font-weight: 600; }
.hi-time { font-size: 11px; color: var(--t3); }

/* ===== 优惠券选择列表 ===== */
.coupon-select-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.coupon-select-item.selected { border-color: var(--blue); background: var(--blue-soft); }
.coupon-select-item.disabled { opacity: .5; }
.csi-amount { width: 60px; text-align: center; color: var(--red); font-weight: 700; font-size: 18px; }
.csi-info { flex: 1; }
.csi-name { font-size: 14px; font-weight: 600; color: var(--t1); }
.csi-cond { font-size: 12px; color: var(--t3); }

/* ===== 秒杀商品购买提示 ===== */
.sk-toast-tip { font-size: 11px; color: var(--orange); margin-top: 4px; text-align: center; }

/* ===== 热门搜索词 ===== */
.hot-search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hs-label { font-size: 12px; color: var(--t3); }
.hs-tag { font-size: 12px; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }

/* ===== 为你推荐 ===== */
.recommend-block { margin-bottom: 0; }
.rec-refresh { margin-left: auto; font-size: 12px; color: var(--blue); font-weight: 500; }
.recommend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; position: relative; }
.rec-item:active { transform: scale(.97); }
.rec-item-img { width: 100%; height: 70px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 8px; }
.rec-item-name { font-size: 12px; color: var(--t1); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.rec-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.rec-item-price { color: var(--red); font-weight: 700; font-size: 15px; }
.rec-item-price small { font-size: 11px; }
.rec-item-sales { font-size: 10px; color: var(--t3); }
.rec-item-tag { position: absolute; top: 6px; right: 6px; font-size: 9px; padding: 1px 6px; border-radius: 4px; color: #fff; font-weight: 600; }
.rec-tag-hot { background: var(--red); }
.rec-tag-new { background: var(--green); }
.rec-tag-rec { background: var(--blue); }
.rec-tag-sale { background: var(--orange); }

/* ===== 订单备注 ===== */
.order-remark-row { margin-top: 12px; }
.order-remark-row label { font-size: 13px; color: var(--t2); display: block; margin-bottom: 6px; }

/* ===== 每日签到 ===== */
.checkin-icon-box { text-align: center; margin-bottom: 12px; }
.checkin-tip { text-align: center; font-size: 13px; color: var(--t2); margin-bottom: 16px; }
.checkin-week { display: flex; gap: 6px; margin-bottom: 16px; }
.cw-day { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; background: #f5f5f5; font-size: 11px; color: var(--t3); }
.cw-day .cw-num { font-size: 16px; font-weight: 700; color: var(--t1); display: block; margin-bottom: 2px; }
.cw-day.checked { background: var(--blue-soft); }
.cw-day.checked .cw-num { color: var(--blue); }
.cw-day.today { background: var(--orange); color: #fff; }
.cw-day.today .cw-num { color: #fff; }
.checkin-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.cs-item { flex: 1; text-align: center; background: #f9f9f9; border-radius: 8px; padding: 10px 0; }
.cs-num { font-size: 20px; font-weight: 700; color: var(--orange); }
.cs-label { font-size: 11px; color: var(--t3); margin-top: 2px; }
.checkin-rules { font-size: 11px; color: var(--t3); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ===== 关于商家 ===== */
.about-hero-box { text-align: center; padding: 24px 16px; background: var(--blue-grad); border-radius: 14px; color: #fff; margin-bottom: 14px; }
.about-shop-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.about-shop-name { font-size: 17px; font-weight: 700; }
.about-shop-sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.about-section { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.about-section-title { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 12px; }
.about-qual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aq-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2); }
.aq-icon { font-size: 14px; }
.about-guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-card { text-align: center; padding: 14px 8px; border-radius: 10px; background: #f9f9f9; }
.agc-icon { font-size: 28px; margin-bottom: 6px; }
.agc-title { font-size: 13px; font-weight: 600; color: var(--t1); }
.agc-desc { font-size: 11px; color: var(--t3); margin-top: 3px; }
.about-contact-box { }
.ac-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.ac-row:last-child { border-bottom: none; }
.acr-label { color: var(--t3); }
.acr-val { color: var(--t1); font-weight: 600; }

/* ===== 帮助中心 ===== */
.help-search-box { margin-bottom: 14px; }
.help-intro { font-size: 13px; color: var(--t2); text-align: center; padding: 12px; background: var(--blue-soft); border-radius: 10px; }
.help-faq-list { }
.hf-item { background: #fff; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.hf-q { display: flex; align-items: center; gap: 8px; padding: 14px; font-size: 14px; font-weight: 600; color: var(--t1); cursor: pointer; }
.hf-q .hf-icon { color: var(--blue); font-size: 16px; flex-shrink: 0; }
.hf-q .hf-arrow { margin-left: auto; color: var(--t3); transition: transform .2s; }
.hf-item.open .hf-arrow { transform: rotate(90deg); }
.hf-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 13px; color: var(--t2); line-height: 1.6; }
.hf-item.open .hf-a { max-height: 200px; }
.hf-a-inner { padding: 0 14px 14px 36px; }

/* ===== 积分明细 ===== */
.points-summary { text-align: center; padding: 20px; background: linear-gradient(135deg, #fff7e6, #fff); border-radius: 12px; margin-bottom: 14px; }
.ps-total { font-size: 36px; font-weight: 800; color: var(--orange); }
.ps-label { font-size: 13px; color: var(--t3); margin-top: 4px; }
.points-rules-box { background: #f9f9f9; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.pr-title { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.pr-item { font-size: 12px; color: var(--t2); line-height: 1.8; }
.points-history-title { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 10px; }
.ph-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.ph-item:last-child { border-bottom: none; }
.ph-desc { font-size: 13px; color: var(--t1); }
.ph-time { font-size: 11px; color: var(--t3); }
.ph-amount { font-size: 14px; font-weight: 700; }
.ph-amount.plus { color: var(--green); }
.ph-amount.minus { color: var(--red); }

/* ===== 再次购买按钮 ===== */
.moc-btn.rebuy { background: var(--green); color: #fff; }
