/* ===== 电竞护航平台 · 管理后台 ===== */
:root {
  --primary: #4f7cff;
  --primary-2: #6a5bff;
  --grad: linear-gradient(135deg, #4f7cff 0%, #6a5bff 100%);
  --sidebar-grad: linear-gradient(180deg, #161e3a 0%, #1e1e45 55%, #231a52 100%);
  --bg: #f3f5fb;
  --card: #ffffff;
  --text: #2b3350;
  --text-sub: #7a8399;
  --line: #eef1f9;
  --shadow: 0 8px 24px rgba(38, 51, 110, 0.08);
  --shadow-hover: 0 14px 34px rgba(38, 51, 110, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.msg { color: #e5484d; font-size: 13px; margin-top: 8px; }

/* ===== 登录页 ===== */
.login-box {
  width: 380px;
  margin: 12vh auto 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  padding: 44px 40px;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(22, 30, 58, 0.28);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}
.login-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,124,255,0.08), rgba(106,91,255,0.06));
  border-radius: inherit;
  z-index: -1;
}
.login-box h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 21px;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-box input {
  padding: 13px 14px;
  border: 1px solid #e4e8f4;
  border-radius: 11px;
  font-size: 14px;
  background: rgba(255,255,255,.8);
  transition: border-color .2s, box-shadow .2s;
}
.login-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,.15); }
.login-box button {
  padding: 13px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 6px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 18px rgba(79,124,255,.32);
}
.login-box button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(79,124,255,.42); }

/* 登录页背景水印 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 400px at 10% -10%, rgba(79,124,255,.14), transparent 60%),
    radial-gradient(700px 500px at 110% 30%, rgba(106,91,255,.14), transparent 60%),
    radial-gradient(500px 400px at 50% 110%, rgba(66,193,255,.10), transparent 60%),
    var(--bg);
}

/* ===== 布局 ===== */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 218px;
  background: var(--sidebar-grad);
  color: #fff;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(22, 30, 58, .15);
  z-index: 10;
}
.sidebar h3 {
  text-align: left;
  font-size: 16px;
  margin: 0 0 26px;
  padding: 0 26px;
  letter-spacing: 1px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar h3::before {
  content: "⚡";
  font-size: 18px;
}
.nav {
  position: relative;
  padding: 13px 26px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
  margin: 2px 12px;
  border-radius: 10px;
  font-weight: 500;
}
.nav:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(79,124,255,.35), rgba(106,91,255,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav.active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  border-radius: 4px;
  background: var(--grad);
}
.nav.logout { margin-top: auto; margin-bottom: 20px; color: #ff8a8a; }
.nav.logout:hover { background: rgba(255,90,90,.16); color: #fff; }

.main {
  margin-left: 218px;
  padding: 30px 34px;
  min-height: 100vh;
}

h2 { margin-top: 0; font-size: 22px; font-weight: 700; letter-spacing: .5px; }

/* ===== 卡片 ===== */
.cards { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 190px;
  flex: 1;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--grad);
}
.card:nth-child(2)::before { background: linear-gradient(180deg,#36cfc9,#13c2c2); }
.card:nth-child(3)::before { background: linear-gradient(180deg,#7b61ff,#6a5bff); }
.card:nth-child(4)::before { background: linear-gradient(180deg,#ff9c40,#fa8c16); }
.card .num {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.card .label { color: var(--text-sub); font-size: 13px; margin-top: 6px; }

/* ===== 图表行 ===== */
.chart-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  width: 46%;
  min-width: 340px;
  flex: 1;
  box-shadow: var(--shadow);
}
.chart-box h4 { margin: 0 0 16px; font-size: 15px; color: var(--text); }

/* ===== 工具条 / 表单控件 ===== */
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select,
.form-row input, .form-row select,
.form-row textarea,
.modal-box input, .modal-box select {
  padding: 10px 12px;
  border: 1px solid #e2e6f2;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.toolbar input:focus, .toolbar select:focus,
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,124,255,.13);
}

button {
  padding: 10px 18px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, opacity .15s;
  box-shadow: 0 4px 12px rgba(79,124,255,.24);
}
button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(79,124,255,.34); }
button:active { transform: translateY(0); }
button.primary { background: var(--grad); }
button.danger { background: linear-gradient(135deg,#ff7a7a,#f5484d); box-shadow: 0 4px 12px rgba(245,72,77,.24); }
button.mini { padding: 6px 13px; font-size: 12px; margin-right: 6px; box-shadow: none; background: #eef2ff; color: var(--primary); }
button.mini:hover { background: #e3e9ff; box-shadow: none; transform: none; }
button.mini.danger { background: #ffefef; color: #e5484d; }
button.mini.danger:hover { background: #ffe2e2; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
button.export { background: linear-gradient(135deg,#22b573,#13a85a); box-shadow: 0 4px 12px rgba(19,168,90,.24); }
button.export:hover { box-shadow: 0 8px 18px rgba(19,168,90,.34); }

/* ===== 表格 ===== */
table {
  width: 100%;
  background: var(--card);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 6px;
}
th, td {
  padding: 13px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
th {
  background: linear-gradient(180deg, #f7f9ff, #eef2fb);
  color: #4a546f;
  font-weight: 600;
  letter-spacing: .3px;
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: #f6f9ff; }
tbody tr:nth-child(even) { background: #fafcfe; }
tbody tr:nth-child(even):hover { background: #f3f7ff; }
td { color: var(--text); }

/* ===== 标签 ===== */
.tag {
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  line-height: 1.7;
}
.tag.s0 { background:#fff5e0; color:#d48806; }
.tag.s1 { background:#e8f0ff; color:#2f6bff; }
.tag.s2 { background:#f1e9ff; color:#7b3ff2; }
.tag.s3 { background:#e6f9ef; color:#13a85a; }
.tag.s4 { background:#eef1f7; color:#9099ad; }
.tag.s-pending { background:#fff5e0; color:#d48806; }
.tag.s-processing { background:#e8f0ff; color:#2f6bff; }
.tag.s-done { background:#e6f9ef; color:#13a85a; }
.tag.s-canceled { background:#eef1f7; color:#9099ad; }
.tag.s-refunding { background:#ffecec; color:#e5484d; }
.tag.v0 { background:#fff5e0; color:#d48806; }
.tag.v1 { background:#e6f9ef; color:#13a85a; }
.tag.v2 { background:#ffecec; color:#e5484d; }

/* ===== 订单详情弹窗 ===== */
.od-box { max-width: 620px; }
.od-body { padding: 8px 26px 26px; }
.od-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #e8ecf4; font-size: 14px; }
.od-row > span { flex: 0 0 84px; color: var(--text-sub); }
.od-row > b { flex: 1; font-weight: 500; color: var(--text); word-break: break-all; }
.od-cf div, .od-tl div { padding: 2px 0; }
.od-tl { max-height: 180px; overflow-y: auto; }

/* ===== 分页 ===== */
.pager { margin-top: 18px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-sub); }
.pager button { padding: 7px 15px; }

/* ===== 面板 / 表单 ===== */
.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.panel h4 { margin-top: 0; font-size: 15px; color: var(--text); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.form-row label { display: flex; flex-direction: column; font-size: 13px; color: var(--text-sub); gap: 6px; font-weight: 500; }
.form-row input, .form-row select { min-width: 150px; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 44, .5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 44px 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 30px;
  width: 860px;
  max-width: 96vw;
  box-shadow: 0 24px 60px rgba(10, 15, 40, .35);
  border: 1px solid rgba(255,255,255,.6);
  animation: popIn .25s ease;
}
@keyframes popIn {
  from { transform: translateY(16px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-box h4 { margin-top: 0; font-size: 17px; }

/* ===== 商品新增/编辑弹窗 ===== */
#product-form.modal-box { width: 780px; padding: 0; overflow: hidden; border-radius: 18px; }
#product-form .pf-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #4f7cff 0%, #6a5bff 100%);
  padding: 18px 26px; margin: 0;
}
#product-form .pf-head h4 { margin: 0; font-size: 17px; color: #fff; font-weight: 600; letter-spacing: .5px; }
#product-form .pf-close { background: rgba(255,255,255,.16); border: none; font-size: 20px; line-height: 1; color: #fff; cursor: pointer; padding: 4px 10px; border-radius: 8px; transition: background .15s; }
#product-form .pf-close:hover { background: rgba(255,255,255,.3); }
#product-form .pf-body { padding: 20px 26px 8px; max-height: 66vh; overflow-y: auto; }
.pf-sec { margin: 0 0 18px; background: #f8f9fe; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; }
.pf-sec-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 12px; padding-left: 0; border-left: none;
}
.pf-sec-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--grad); }
.pf-sec .form-row { margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.pf-sec .form-row + .form-row { margin-top: 0; }
.pf-sec .form-row > label { min-width: 0; margin: 0; }
.pf-sec .form-row > label.full { grid-column: 1 / -1; }
.pf-sec .form-row label {
  display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-sub); gap: 6px; font-weight: 600;
}
.pf-sec .form-row input, .pf-sec .form-row select, .pf-sec .form-row textarea {
  width: 100%; min-width: 0; padding: 9px 12px;
  border: 1px solid #e3e8f5; border-radius: 9px;
  background: #fff; color: var(--text); font-size: 14px; font-weight: 400;
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pf-sec .form-row input:focus, .pf-sec .form-row select:focus, .pf-sec .form-row textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 124, 255, .13); background: #fff;
}
.pf-sec .form-row textarea { resize: vertical; line-height: 1.55; }
.pf-sec .form-row select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a8399' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.pf-ptype-wrap { display: flex; gap: 8px; align-items: flex-end; }
.pf-ptype-wrap select { flex: 1; }
.pf-ptype-wrap .mini { white-space: nowrap; margin: 0; height: 38px; display: inline-flex; align-items: center; }
#pf-fields { margin-top: 4px; display: grid; grid-template-columns: 1fr; gap: 10px; }
#pf-fields .pf-field-row {
  background: #fff; border: 1px dashed #d5dcf0; border-radius: 10px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: flex-end; transition: border-color .15s, box-shadow .15s;
}
#pf-fields .pf-field-row:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(79,124,255,.1); }
#pf-fields .pf-field-row label { flex: 1; }
#pf-fields .pf-field-row label.pf-req { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 4px; font-weight: 600; }
#pf-fields .pf-field-row .pf-field-name, #pf-fields .pf-field-row .pf-field-label { min-width: 0; }
#pf-fields .pf-field-row input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #e3e8f5; border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
#pf-fields .pf-field-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,.13); }
#pf-fields .pf-field-row button.mini { height: 34px; margin: 0; }
#product-form .pf-foot {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding: 14px 26px 18px; border-top: 1px solid var(--line); background: #fbfcff;
}
#product-form .pf-foot button { min-width: 92px; height: 38px; border-radius: 9px; }
#product-form .pf-foot button.primary { box-shadow: 0 6px 16px rgba(79,124,255,.35); }
#product-form .pf-foot button.primary:hover { box-shadow: 0 8px 20px rgba(79,124,255,.45); }
#pf-cover-preview { max-height: 72px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--line); }
#pf-cover-file { padding: 6px; background: #fff; }

/* ===== 新增套餐类型弹窗 ===== */
.ptype-modal { width: 420px; padding: 0; overflow: hidden; border-radius: 16px; }
.ptype-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #4f7cff 0%, #6a5bff 100%);
  padding: 16px 22px;
}
.ptype-head h4 { margin: 0; font-size: 16px; color: #fff; font-weight: 600; }
.ptype-head .pf-close { background: rgba(255,255,255,.16); color: #fff; }
.ptype-head .pf-close:hover { background: rgba(255,255,255,.3); }
.ptype-modal .modal-form { padding: 20px 22px 0; display: flex; flex-direction: column; gap: 10px; }
.ptype-modal .modal-form label { font-size: 13px; color: var(--text-sub); font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.ptype-modal .modal-form input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ptype-modal .modal-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 150, 255, .15); }
.ptype-err { color: #ff4d4f; font-size: 12px; padding: 2px 2px 0; }
.ptype-modal .modal-footer { margin-top: 18px; }

/* ===== 商品详情弹窗 ===== */
.pd-modal { width: 720px; padding: 22px 26px; }
.pd-body { display: flex; gap: 22px; margin-top: 6px; }
.pd-left { width: 250px; flex-shrink: 0; }
.pd-cover { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: none; margin-bottom: 12px; background: rgba(120, 130, 170, .08); }
.pd-meta { margin-bottom: 10px; }
.pd-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pd-sub { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.pd-price-row { background: linear-gradient(135deg, rgba(64, 150, 255, .12), rgba(126, 87, 244, .10)); border-radius: 10px; padding: 10px 14px; }
.pd-price { font-size: 22px; font-weight: 800; color: #ff6b35; }
.pd-price-sub { display: block; font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.pd-right { flex: 1; min-width: 0; }
.pd-sec-title { font-size: 13px; font-weight: 700; color: var(--primary); margin: 12px 0 8px; padding-left: 9px; border-left: 3px solid var(--primary); }
.pd-sec-title:first-child { margin-top: 0; }
.pd-desc { font-size: 13px; line-height: 1.8; color: var(--text); background: rgba(120, 130, 170, .06); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow: auto; }
.pd-field { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.pd-field-label { font-weight: 600; color: var(--text); }
.pd-field-ph { color: var(--text-sub); flex: 1; }
.pd-field-req { color: #ff4d4f; font-size: 11px; border: 1px solid rgba(255, 77, 79, .4); border-radius: 4px; padding: 1px 6px; }
.pd-empty { font-size: 13px; color: var(--text-sub); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 32, 56, .92);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .sidebar { width: 70px; }
  .sidebar h3 { padding: 0 6px; justify-content: center; }
  .sidebar h3::before { content: "⚡"; }
  .nav { padding: 13px 8px; text-align: center; font-size: 12px; margin: 2px 4px; }
  .main { margin-left: 70px; padding: 20px 16px; }
  .chart-box { width: 100%; min-width: 0; }
}

/* 弹窗样式 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: #fff;
  border-radius: 8px;
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  box-sizing: border-box;
}
.modal-box h3 {
  margin: 0 0 18px 0;
  font-size: 17px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
.modal-form { display: flex; flex-direction: column; gap: 6px; }
.modal-form label {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}
.modal-form input, .modal-form select {
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.modal-form input:focus, .modal-form select:focus {
  outline: none;
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(64,150,255,0.15);
}
.modal-footer {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-footer button {
  padding: 7px 18px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.modal-footer button.primary {
  background: #4096ff;
  border-color: #4096ff;
  color: #fff;
}
.modal-footer button:hover { opacity: 0.85; }

/* 游戏图标上传 */
.icon-uploader {
  width: 100%;
  height: 110px;
  border: 1px dashed #b0b8c1;
  border-radius: 6px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
  overflow: hidden;
}
.icon-uploader:hover { border-color: #4096ff; background: #f0f7ff; }
.icon-placeholder {
  color: #8c99a6;
  font-size: 14px;
}
.icon-preview {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 4px;
}
.icon-tip {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* 优惠活动 */
.promo-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid #e8ecf1; }
.promo-tab {
  padding: 9px 24px; font-size: 14px; background: transparent; border: none;
  color: var(--text-sub); cursor: pointer; border-bottom: 2px solid transparent;
  box-shadow: none;
}
.promo-tab:hover { color: var(--primary); }
.promo-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ===== 在线客服（独立功能菜单） ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; }
.chat-stat {
  display: flex; gap: 10px; align-items: center;
}
.chat-stat .chat-stat-pill {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--card); box-shadow: var(--shadow); color: var(--text-sub);
  display: inline-flex; align-items: center; gap: 6px;
}
.chat-stat .chat-stat-pill b { color: var(--primary); font-size: 13px; }
.chat-stat .chat-stat-pill.warn { color: #e5484d; }
.chat-stat .chat-stat-pill.warn b { color: #e5484d; }
.chat-layout {
  display: flex;
  gap: 18px;
  height: calc(100vh - 210px);
  min-height: 480px;
  margin-top: 18px;
}
.chat-sessions {
  width: 320px;
  min-width: 320px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sessions-head {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9ff, #eef2fb);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-session-count {
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 7px;
}
.chat-search {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.chat-search input {
  width: 100%; padding: 9px 12px;
  border: 1px solid #e2e6f2; border-radius: var(--radius-sm);
  font-size: 13px; background: #f7f9ff; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.chat-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,.12); background: #fff; }
#chat-session-list { flex: 1; overflow-y: auto; }
.chat-session {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.chat-session:hover { background: #f6f9ff; }
.chat-session.active { background: #eef3ff; box-shadow: inset 3px 0 0 var(--primary); }
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(79,124,255,.28);
}
.chat-avatar.alt1 { background: linear-gradient(135deg,#36cfc9,#13c2c2); }
.chat-avatar.alt2 { background: linear-gradient(135deg,#ff9c40,#fa8c16); }
.chat-avatar.alt3 { background: linear-gradient(135deg,#7b61ff,#b37feb); }
.chat-avatar.alt4 { background: linear-gradient(135deg,#ff7a7a,#f5484d); }
.chat-avatar-lg { width: 46px; height: 46px; font-size: 18px; }
.chat-session-main { flex: 1; min-width: 0; }
.chat-session-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-session-name { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-session-time { font-size: 11px; color: #b0b8c4; flex-shrink: 0; }
.chat-session-last {
  font-size: 12px; color: var(--text-sub); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-session-last .me { color: var(--primary); }
.chat-session-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.chat-badge {
  background: #f5484d; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(245,72,77,.4);
}
.chat-window {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9ff, #eef2fb);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-user { display: flex; align-items: center; gap: 12px; }
.chat-header-name { font-weight: 700; font-size: 15px; color: var(--text); }
.chat-header-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.chat-refresh {
  padding: 7px 14px; border: 1px solid #dfe4f2; border-radius: var(--radius-sm);
  background: #fff; color: var(--text-sub); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.chat-refresh:hover { color: var(--primary); border-color: var(--primary); }
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(520px 320px at 10% 0%, rgba(79,124,255,.045), transparent 60%),
    linear-gradient(180deg, #fbfcfe, #f8faff);
}
.chat-empty, .chat-loading { color: #b0b8c4; text-align: center; margin-top: 60px; font-size: 13px; }
.chat-msg { display: flex; max-width: 76%; }
.chat-msg .chat-avatar { width: 34px; height: 34px; font-size: 13px; margin-top: 2px; }
.chat-msg.user { align-self: flex-start; flex-direction: row; }
.chat-msg.service { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-body { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.chat-msg.user .chat-msg-body { align-items: flex-start; margin-left: 10px; }
.chat-msg.service .chat-msg-body { align-items: flex-end; margin-right: 10px; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  max-width: 100%;
}
.chat-msg.user .chat-bubble {
  background: #fff; border: 1px solid var(--line); color: var(--text);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(38,51,110,.04);
}
.chat-msg.service .chat-bubble {
  background: var(--grad); color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(79,124,255,.25);
}
.chat-msg-meta { font-size: 11px; color: #b0b8c4; }
.chat-msg.service .chat-msg-meta { text-align: right; }
.chat-date-divider {
  align-self: center; font-size: 11px; color: #b0b8c4;
  background: #eef1f9; padding: 3px 12px; border-radius: 999px;
}
.chat-input-row {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input-row textarea {
  flex: 1; resize: none;
  padding: 11px 14px;
  border: 1px solid #e2e6f2;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #f7f9ff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.chat-input-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,.13); background: #fff; }
.chat-input-row .primary {
  padding: 12px 22px; align-self: stretch;
  background: var(--grad); color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: 2px;
  box-shadow: 0 6px 14px rgba(79,124,255,.3);
  transition: transform .15s, box-shadow .2s;
}
.chat-input-row .primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(79,124,255,.4); }

/* ===== 优惠券发放/持券查询 · 用户搜索选择 ===== */
.user-picker { position: relative; display: inline-block; }
.user-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  width: 260px;
  max-height: 264px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 26px rgba(31, 45, 76, .14);
  padding: 4px;
}
.user-drop .user-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
}
.user-drop .user-item:hover { background: #eef2ff; }
.user-drop .user-item b { font-weight: 600; color: var(--text); }
.user-drop .user-item span { color: var(--text-sub); font-size: 12px; }
button.mini.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(79, 124, 255, .3);
}
button.mini.primary:hover { background: linear-gradient(135deg, #6a8dff, #8274ff); }

/* ===== 发放优惠券 · 用户多选面板 ===== */
.ms-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fafbff;
  border-top: 1px solid var(--line);
}
.ms-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .12s;
}
.ms-item:hover { background: #f1f4ff; border-color: #e0e7fb; }
.ms-item.on {
  background: linear-gradient(135deg, rgba(79,124,255,.10), rgba(106,91,255,.08));
  border-color: rgba(79,124,255,.45);
  box-shadow: 0 2px 8px rgba(79,124,255,.10);
}
.ms-item > span { font-weight: 600; color: var(--text); }
.ms-item em { font-style: normal; color: var(--text-sub); font-size: 12px; margin-left: auto; }
.ms-check {
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid #c9d1e3; border-radius: 50%;
  background: #fff; position: relative;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.ms-item.on .ms-check {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(79,124,255,.35);
}
.ms-item.on .ms-check::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.picker-item.on .ms-check {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(34,197,94,.40);
}
.picker-item.on .ms-check::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.picker-select-all {
  flex: none;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: rgba(79,124,255,.10);
  border: 1px solid rgba(79,124,255,.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.picker-select-all:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ms-empty { color: var(--text-sub); font-size: 13px; text-align: center; padding: 18px 0; }

/* ===== 发放优惠券弹窗（卡片式入口） ===== */
.grant-batch-box {
  width: 720px; max-width: 96vw;
  max-height: 92vh;
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; border-radius: 18px;
}
.grant-batch-box .pf-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #4f7cff 0%, #6a5bff 100%);
  padding: 18px 26px;
}
.grant-batch-box .pf-head h4 { margin: 0; font-size: 17px; color: #fff; font-weight: 600; letter-spacing: .5px; }
.grant-batch-box .pf-close {
  background: rgba(255,255,255,.16); border: none; font-size: 20px; line-height: 1;
  color: #fff; cursor: pointer; padding: 4px 10px; border-radius: 8px;
  box-shadow: none; transition: background .15s;
}
.grant-batch-box .pf-close:hover { background: rgba(255,255,255,.3); transform: none; box-shadow: none; }
.gb-body { padding: 24px 26px 12px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.gb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  align-items: stretch;
}
.pick-card {
  display: flex; align-items: stretch; gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid #e3e8f5;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color .18s, box-shadow .18s, transform .12s, background .18s;
}
.pick-card:hover {
  border-color: rgba(79,124,255,.55);
  box-shadow: 0 14px 32px rgba(79,124,255,.18);
  transform: translateY(-1px);
}
.pick-card:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,.18); }
.pick-card-icon {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,124,255,.14), rgba(106,91,255,.10));
  color: var(--primary);
  font-size: 18px; font-weight: 700;
  border: 1px solid rgba(79,124,255,.22);
}
.pick-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pick-card-title { font-size: 13px; font-weight: 700; color: var(--text-sub); letter-spacing: .5px; }
.pick-card-summary {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  min-height: 24px; font-size: 13px; color: var(--text);
}
.ms-placeholder { color: #9aa5bd; font-weight: 400; }
.ms-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 10px;
  background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(106,91,255,.10));
  color: var(--primary);
  border: 1px solid rgba(79,124,255,.22);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  line-height: 1.4;
}
.ms-chip > span, .ms-chip { overflow: hidden; text-overflow: ellipsis; }
.ms-chip i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(79,124,255,.18); color: var(--primary);
  font-style: normal; font-size: 12px; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
}
.ms-chip i:hover { background: var(--primary); color: #fff; }
.ms-chip i::before { content: "\00d7"; font-weight: 700; }
.ms-chip-more {
  background: rgba(120, 130, 170, .10);
  color: var(--text-sub);
  border-color: rgba(120, 130, 170, .25);
}
.gb-foot {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding: 14px 26px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.gb-foot button {
  min-width: 96px; height: 38px; border-radius: 9px; font-size: 14px;
}
.gb-foot button.primary { box-shadow: 0 6px 16px rgba(79,124,255,.35); }
.gb-foot button.primary:hover { box-shadow: 0 8px 20px rgba(79,124,255,.45); }
.gb-foot button.primary:disabled {
  background: #c5cce0; color: #fff; cursor: not-allowed;
  box-shadow: none; transform: none; opacity: .9;
}
.gb-foot .gb-cancel {
  background: #eef1f8; color: #5a6478; box-shadow: none;
  border: 1px solid #e3e8f5;
}
.gb-foot .gb-cancel:hover { background: #e3e9f6; box-shadow: none; transform: none; }
.gb-foot button .spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 6px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; vertical-align: -2px;
  animation: gb-spin .8s linear infinite;
}
@keyframes gb-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .grant-batch-box { width: 96vw; }
  .gb-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== 二级选择弹窗（用户 / 优惠券） ===== */
.picker-mask { z-index: 1100; }
.picker-box {
  width: 620px; max-width: 96vw;
  height: 80vh; max-height: 80vh;
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; border-radius: 18px;
  animation: popIn .25s ease;
}
.picker-box .pf-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #4f7cff 0%, #6a5bff 100%);
  padding: 16px 24px;
}
.picker-box .pf-head h4 { margin: 0; font-size: 16px; color: #fff; font-weight: 600; }
.picker-box .pf-close {
  background: rgba(255,255,255,.16); border: none; font-size: 20px; line-height: 1;
  color: #fff; cursor: pointer; padding: 4px 10px; border-radius: 8px;
  transition: background .15s;
}
.picker-box .pf-close:hover { background: rgba(255,255,255,.3); }
.picker-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.picker-toolbar input {
  flex: 1; min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e3e8f5; border-radius: 9px;
  background: #fff; color: var(--text); font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.picker-toolbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,124,255,.13);
}
.picker-count {
  font-size: 13px; color: var(--text-sub);
  padding: 4px 12px;
  background: rgba(79,124,255,.10);
  border: 1px solid rgba(79,124,255,.20);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.picker-list {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  padding: 10px 14px;
  background: #fafbff;
  display: flex; flex-direction: column; gap: 6px;
}
.picker-empty {
  text-align: center; padding: 24px 12px;
  color: var(--text-sub); font-size: 13px;
}
.picker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e3e8f5;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.picker-item:hover {
  background: #f1f4ff;
  border-color: #cdd6f1;
  box-shadow: 0 4px 12px rgba(79,124,255,.10);
}
.picker-item.on {
  background: linear-gradient(135deg, rgba(79,124,255,.10), rgba(106,91,255,.08));
  border-color: rgba(79,124,255,.55);
  box-shadow: 0 4px 14px rgba(79,124,255,.18);
}
.picker-item .ms-check { width: 18px; height: 18px; flex: none; }
.picker-avatar-wrap {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(106,91,255,.12));
  border: 1px solid rgba(79,124,255,.25);
  overflow: hidden;
}
.picker-avatar { width: 100%; height: 100%; object-fit: cover; }
.picker-avatar-fallback {
  font-size: 14px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.picker-item-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.picker-item-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.picker-item-sub {
  font-size: 12px; color: var(--text-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.picker-item-tag {
  font-size: 11px; font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(79,124,255,.12); color: var(--primary);
  border: 1px solid rgba(79,124,255,.22);
}
.picker-item-status {
  font-size: 11px; color: var(--text-sub);
  padding: 1px 7px;
  background: rgba(120,130,170,.10);
  border-radius: 6px;
}

/* ===== 用户管理 ===== */
.u-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.uc-box { max-width: 880px; max-height: 92vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.uc-box .pf-head { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.uc-box .pf-close { width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.22); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s; }
.uc-box .pf-close:hover { background: rgba(255,255,255,.38); }
.uc-body { padding: 22px 24px 16px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.uc-table-wrap { border: 1px solid var(--border, #e7eaf2); border-radius: 10px; overflow: hidden; background: #fff; }
.uc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; color: #2b3245; }
.uc-table thead th { position: sticky; top: 0; z-index: 1; background: #f5f7fb; color: #5b6680; font-weight: 600; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border, #e7eaf2); white-space: nowrap; }
.uc-table tbody td { padding: 11px 14px; border-bottom: 1px solid #eef1f7; vertical-align: middle; white-space: nowrap; }
.uc-table tbody tr:nth-child(even) td { background: #fafbfe; }
.uc-table tbody tr:hover td { background: #f0f5ff; }
.uc-table tbody tr:last-child td { border-bottom: none; }
.uc-table td.col-status { width: 88px; }
.uc-table td.col-amount, .uc-table td.col-threshold { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.uc-table td.col-order { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.uc-table .tag { display: inline-block; min-width: 56px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 18px; text-align: center; }
.uc-empty { padding: 48px 16px; text-align: center; color: #8b93a8; font-size: 13px; }
.uc-foot { padding: 14px 24px; }
.uc-foot .gb-cancel { margin: 0; }
/* VIP 等级 / 充值记录（promo 页新增子 tab） */
.vip-modal-box { max-height: 92vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.vip-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border, #e8ecf1);
}
.vip-modal-head h4 { margin: 0; font-size: 17px; }
.vip-modal-head .pf-close {
  background: var(--border, #e8ecf1); border: none; font-size: 20px; line-height: 1;
  color: var(--text-sub); cursor: pointer; padding: 4px 10px; border-radius: 8px;
}
.vip-modal-head .pf-close:hover { background: #e3e9ff; color: var(--primary); }
.vip-modal-body { padding: 22px 24px 8px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.vip-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 24px; border-top: 1px solid var(--border, #e8ecf1);
}
