:root {
  --main: #3b6ef6; --main-d: #2b5be0; --bg: #f3f6fb; --card: #fff; --text: #1f2329;
  --muted: #8a909b; --red: #ef4444; --green: #22c55e; --orange: #f59e0b;
  --line: #edeff3; --radius: 16px;
  --shadow-card: 0 1px 2px rgba(18,28,45,.04), 0 8px 20px -8px rgba(18,28,45,.10);
  --shadow-main: 0 6px 16px -6px rgba(59,110,246,.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8faff, var(--bg) 320px); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-tap-highlight-color: transparent; }
a { color: var(--main); text-decoration: none; }
img { display: block; }
.muted { color: var(--muted); font-size: 13px; } .small { font-size: 13px; }
.center { text-align: center; } .right { text-align: right; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.flex { display: flex; align-items: center; } .flex1 { flex: 1; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }
.container { max-width: 640px; margin: 0 auto; padding: 12px 12px 92px; }
.topbar { background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(29,42,68,.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 14px; position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; }
.topbar .title { font-weight: 700; font-size: 16px; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.tb-user { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }

.avatar-s { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-m { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-l { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-text { display: inline-flex; align-items: center; justify-content: center; background: var(--main);
  color: #fff; font-weight: 700; }
.avatar-s.avatar-text { font-size: 13px; } .avatar-l.avatar-text { font-size: 26px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  border: 1px solid rgba(29,42,68,.05);
  box-shadow: var(--shadow-card); }
.card h3 { font-size: 15px; margin-bottom: 10px; }
.ono { font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.ono.big { font-size: 24px; }
.amount { color: #e5484d; font-weight: 800; font-size: 21px; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.order-card .title { font-weight: 600; font-size: 16px; }
.hall-hint { padding: 2px 4px; }
.tag { display: inline-block; background: #eef3ff; color: var(--main); border-radius: 999px; font-size: 12px;
  padding: 2px 10px; margin-right: 6px; font-weight: 500; }
.tag.gray { background: #f1f2f5; color: #6b7280; }
.tag.green { background: #e8f8ee; color: #16a34a; }
.tag.red { background: #fdecec; color: #dc2626; }
.tag.orange { background: #fdf3e3; color: #d97706; }

.btn { display: inline-block; border: 0; border-radius: 12px; background: linear-gradient(135deg,#4b7bfb,#315ef3); color: #fff;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.4; text-align: center;
  box-shadow: var(--shadow-main); transition: transform .12s ease, box-shadow .18s ease, filter .18s ease; }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 2px 8px -4px rgba(59,110,246,.5); }
.btn.sec { background: #eef1f7; color: #3a4356; box-shadow: none; }
.btn.sec:active { background: #e5e9f1; }
.btn.red { background: linear-gradient(135deg,#f4615f,#e03a3f); box-shadow: 0 6px 16px -6px rgba(224,58,63,.5); }
.btn.green { background: linear-gradient(135deg,#34c96a,#1ea854); box-shadow: 0 6px 16px -6px rgba(30,168,84,.5); }
.btn.orange { background: linear-gradient(135deg,#fbaa3d,#ef8f12); box-shadow: 0 6px 16px -6px rgba(239,143,18,.5); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; }
input, textarea, select { width: 100%; border: 1.5px solid #e4e8f0; border-radius: 12px; padding: 10px 12px;
  font-size: 15px; background: #fbfcfe; outline: none; font-family: inherit; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px rgba(59,110,246,.13); }
textarea { resize: vertical; min-height: 84px; }
label.field { display: block; margin-bottom: 12px; }
label.field .lb { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 500; }
.flash { background: #e8f8ee; color: #15803d; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.flash.warn { background: #fdf3e3; color: #b45309; }
.flash.err { background: #fdecec; color: #b91c1c; }
.empty { text-align: center; color: var(--muted); padding: 46px 0; font-size: 14px; }

.bottom-nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; height: 58px; padding: 0 8px;
  background: rgba(255,255,255,.97); border: 1px solid rgba(29,42,68,.07); border-radius: 20px;
  box-shadow: 0 8px 28px rgba(21,32,54,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bottom-nav a { flex: 1; height: 46px; margin: 0 4px; border-radius: 14px; text-align: center; font-size: 11px; color: #9aa0ab;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; }
.bottom-nav a.on { color: var(--main); font-weight: 600; background: #eef4ff; }
.bottom-nav .nico { width: 22px; height: 22px; stroke-width: 1.9; }
.bottom-nav .dot { position: absolute; top: 7px; right: 50%; margin-right: -16px; width: 8px; height: 8px;
  background: var(--red); border-radius: 50%; }
.spinner { width: 42px; height: 42px; margin: 4px auto 0; border: 4px solid #e8ecf4; border-top-color: var(--main);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-mask { position: fixed; inset: 0; background: rgba(15,20,30,.5); z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 22px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 360px; padding: 24px 20px; text-align: center; }
.modal h3 { margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); background: rgba(20,24,32,.82);
  color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 14px; z-index: 99; max-width: 86vw;
  white-space: pre-line; text-align: center; animation: toastIn .18s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; } }
.dropzone { border: 2px dashed #d3d9e4; border-radius: 14px; padding: 26px 12px; text-align: center;
  color: var(--muted); font-size: 13.5px; cursor: pointer; background: #fafbfe; }
.dropzone:active, .dropzone:hover { border-color: var(--main); background: #f4f7ff; }
.dz-icon { width: 34px; height: 34px; margin: 0 auto 8px; stroke-width: 1.6; color: #9aa4b8; }
.preview-grid, .img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: flex-start; }
.preview-grid a, .img-grid a { display: block; line-height: 0; flex: none; }
.preview-grid .pv img, .thumb { max-width: 150px; max-height: 150px; width: auto; height: auto; min-width: 0; min-height: 0; border-radius: 10px; border: 1px solid var(--line); background: #eef1f7; object-fit: contain; }

/* 收款码单图预览（大图居中） */
.qr-preview { display: none; text-align: center; padding: 6px 0 2px; margin-top: 10px; }
.qr-preview img { width: 52%; max-width: 210px; min-width: 130px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 3px 12px rgba(30,50,90,.08); }
.qr-preview .ok { margin-top: 8px; font-size: 12.5px; color: #1a9d57; }

/* 玩法（接单前可见，点击查看说明） */
.gp { color: #e02020; font-weight: 600; cursor: pointer; }
.gp:active { opacity: .65; }

/* 排行榜领奖台（前三名） */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 20px 4px 4px; }
.podium-col { flex: 1; max-width: 112px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.podium-avatar { position: relative; margin-bottom: 7px; }
.avatar-podium { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
img.avatar-podium { object-fit: cover; }
.podium-medal { position: absolute; top: -9px; right: -7px; font-size: 21px; }
.podium-name { font-size: 13.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-amt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.podium-block { width: 100%; border-radius: 10px 10px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 7px; color: #fff; font-size: 19px; font-weight: 800; margin-top: 9px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 26px; text-align: center; color: var(--muted); font-weight: 700; }
.rank-name { font-weight: 500; }
.rank-stats { color: var(--muted); font-size: 13px; white-space: nowrap; }

.menu { padding: 6px 0; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--text); font-size: 15px;
  border-bottom: 1px solid #f4f5f8; }
.menu-item:last-child { border-bottom: 0; }
.mi-icon { width: 21px; height: 21px; stroke-width: 1.8; color: #6b7280; flex: none; }
.chev { width: 18px; height: 18px; stroke-width: 1.8; color: #c2c7d1; flex: none; }
.profile-head .pf-name { font-size: 19px; font-weight: 700; }
.pf-stats { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pf-stats b { color: var(--text); font-size: 15px; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 6px 14px; border-radius: 18px; background: #fff; color: #5a6170; font-size: 13px; border: 1px solid rgba(29,42,68,.07);
  box-shadow: 0 1px 2px rgba(18,28,45,.03); transition: all .15s ease; }
.tabs a.on { background: linear-gradient(135deg,#4b7bfb,#315ef3); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -4px rgba(59,110,246,.5); }
.quick-links { font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.quick-links a { margin: 0 8px 0 2px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: middle; }
th { background: #fafbfd; font-size: 13px; color: #555; white-space: nowrap; }
.members .m { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.members .m:last-child { border-bottom: 0; }
/* ===== 管理后台 ===== */
.adm-top { background: #1d2433; color: #fff; padding: 0 18px; display: flex; align-items: center; height: 54px; gap: 16px; }
.adm-top .brand { font-weight: 700; font-size: 15px; margin-right: 8px; }
.adm-top a { color: #b9c0cd; font-size: 14px; padding: 16px 2px; border-bottom: 2px solid transparent; }
.adm-top a.on { color: #fff; border-color: #5b8dff; }
.adm-top .badge { background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.adm-top .spacer { flex: 1; }
.adm-body { max-width: 1180px; margin: 0 auto; padding: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stat .n { font-size: 24px; font-weight: 700; }
.stat .lb { color: var(--muted); font-size: 13px; }
.panel { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.panel h3 { font-size: 15px; margin-bottom: 12px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input { width: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input, .filters select { width: auto; min-width: 110px; }

.field-err { color: var(--red); font-size: 12px; margin: -6px 0 10px 2px; }

.oc-title { font-weight: 600; font-size: 16px; word-break: break-all; }
.oc-content { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }

.login-badge { width: 56px; height: 56px; border-radius: 18px; background: #eef3ff; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.login-ico { width: 26px; height: 26px; stroke-width: 1.7; color: var(--main); }

.zs-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.zs-row input { margin: 0; }
.zs-result { font-size: 12px; width: 130px; color: #999; }
.zs-result.ok { color: #1a9d57; }
.zs-result.bad { color: #d9534f; }

.slider-mask { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(10, 20, 40, .38); display: none; align-items: center; justify-content: center; z-index: 200; }
.slider-mask.show { display: flex; }
.slider-box { background: #fff; border-radius: 14px; padding: 18px 20px 14px; width: 300px; }
.slider-box h4 { margin: 0 0 4px; font-size: 15px; }
.slider-box .sub { font-size: 12px; color: #8a909b; margin: 0 0 12px; }
.slider-track { position: relative; height: 44px; border-radius: 22px; background: #eef1f7; overflow: hidden; user-select: none; touch-action: none; }
.slider-zone { position: absolute; top: 2px; bottom: 2px; width: 40px; border-radius: 20px; background: repeating-linear-gradient(45deg, #cdd8f6, #cdd8f6 6px, #bccbf2 6px, #bccbf2 12px); }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #dbe7ff; }
.slider-handle { position: absolute; top: 2px; left: 0; width: 40px; height: 40px; border-radius: 50%; background: #3b6ef6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; cursor: grab; }
.slider-tip { font-size: 12px; color: #d9534f; margin: 8px 0 0; text-align: center; min-height: 16px; }

.slider-track { height: 46px; }
.slider-zone { width: 42px; height: 42px; }
.slider-handle { width: 42px; height: 42px; }
.slider-tip.ok { color: #1a9d57; }

.invite-list { max-height: 50vh; overflow-y: auto; margin-top: 6px; }
.invite-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.invite-item:hover, .invite-item:active { background: #f2f5fb; }
.mt4 { margin-top: 4px; }

/* 点击复制 */
.copyable { cursor: pointer; border-bottom: 1px dashed rgba(110, 120, 140, .55); }
.copyable:active { opacity: .5; }

/* 添加协作成员搜索框 */
.invite-search { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #dfe4ee; border-radius: 10px; font-size: 14px; box-sizing: border-box; outline: none; }
.invite-search:focus { border-color: var(--main, #3b6ef6); }

/* 浮层提示（顶部提醒改弹窗） */
.flash-pop { position: fixed; left: 50%; transform: translateX(-50%); bottom: 15%; max-width: 86%; background: #1d2433; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 9999; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; animation: fpin .25s ease; cursor: pointer; }
.flash-pop.err { background: #c0392b; }
.flash-pop.warn { background: #b9770e; }
.flash-pop.out { opacity: 0; transition: opacity .35s; }
@keyframes fpin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 布局防溢出 & 长订单号紧凑 */
.flex1 { min-width: 0; }
.amount { flex-shrink: 0; }
.ono { word-break: break-all; overflow-wrap: anywhere; }
.tag { max-width: 100%; overflow-wrap: anywhere; }
.ono.ono-lg { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }

/* 统一风格弹窗（替代系统 confirm / prompt） */
.cfm-box .modal-msg { margin: 10px 0 0; color: #3a4150; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cfm-box textarea { width: 100%; min-height: 78px; margin-top: 12px; padding: 10px 12px; border: 1px solid #dfe4ee; border-radius: 10px; font-size: 14px; box-sizing: border-box; outline: none; resize: vertical; font-family: inherit; }
.cfm-actions { display: flex; gap: 12px; margin-top: 16px; }
.cfm-actions .btn { flex: 1; }


/* 备注：灰色全文展示（不截断不点开），过长自动缩小字号 */
.oc-note { color: var(--muted); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.oc-note-s { font-size: 11px; }
.oc-note-xs { font-size: 10px; line-height: 1.5; }


/* 图片查看器：凭证 / 收款码原图全屏查看（完整不裁剪，点击任意处关闭） */
.img-viewer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; z-index: 9999; background: rgba(8,12,20,.94); display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 16px; }
.img-viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; border-radius: 6px; margin: auto; }
@supports (object-fit: contain) {
  .img-viewer img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
}
.img-viewer-tip { position: fixed; left: 0; right: 0; bottom: 22px; text-align: center; color: #cfd6e4; font-size: 13px; }
.img-viewer-dl { position: fixed; bottom: 56px; left: 50%; transform: translateX(-50%); color: #a9c6ff; font-size: 13px; padding: 7px 18px; border: 1px solid rgba(169,198,255,.45); border-radius: 999px; text-decoration: none; background: rgba(255,255,255,.06); }
.img-viewer img { -webkit-user-select: none; user-select: none; }
.img-viewer img[src]:only-child { image-rendering: auto; }
.qr-thumb img, .img-grid img { object-fit: contain; }

/* ===== 2026-09-22 UI 质感增强（v15） ===== */
::selection { background: rgba(59,110,246,.16); }
.topbar .title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; background: linear-gradient(135deg, #4b7bfb, #7c5cff); }
.order-card { transition: box-shadow .18s ease, transform .12s ease; }
.order-card:active { transform: scale(.996); box-shadow: 0 1px 2px rgba(18,28,45,.05); }
.bottom-nav a.on { background: linear-gradient(180deg, #eef4ff, #e3ecff); }
.stat, .panel { border: 1px solid rgba(29,42,68,.05); border-radius: 14px; box-shadow: var(--shadow-card); }
th { background: #f7f9fd; }
tr:hover td { background: #fafbfe; }
.menu-item:active { background: #f5f8fd; }
.profile-head { background: linear-gradient(135deg, #edf3ff 0%, #fbfdff 58%, #fff 100%); border: 1px solid rgba(59,110,246,.10); }
.profile-head .avatar-l { box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(59,110,246,.45); }
.login-badge { background: linear-gradient(135deg, #e9f0ff, #dce8ff); border-radius: 20px; box-shadow: 0 8px 20px -10px rgba(59,110,246,.5); }
.flash { border-radius: 12px; }
.toast { box-shadow: 0 10px 30px rgba(10,16,30,.25); }
.flash-pop { border-radius: 14px; box-shadow: 0 12px 32px rgba(10,16,30,.28); }
.adm-top { background: linear-gradient(135deg, #232c40, #1a2233); border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-top a.on { text-shadow: 0 0 14px rgba(91,141,255,.55); }
.slider-handle { box-shadow: 0 3px 10px rgba(59,110,246,.45); }
.dropzone { transition: border-color .15s, background .15s; }
.pv-cap { font-size: 11px; color: #8a909b; text-align: center; margin-top: 3px; font-weight: 600; }
