/* merchant-admin/style.css 商家后台 设计系统
   配色与小程序端一致：奶油底 + 墨字 + 蜜橘主色，侧边栏用深墨压住整体调性 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #FF6A2B;
  --brand-2: #FF9A3D;
  --brand-soft: #FFF1E8;
  --ink: #1B1A18;
  --ink2: #4A443C;
  --sub: #8C8377;
  --line: #EFE4D6;
  --line-2: #F7EFE6;
  --bg: #FFF9F4;
  --card: #FFFFFF;
  --deep: #241C15;
  --deep-2: #2F241A;
  --ok: #2F7D5A;
  --ok-soft: #EAF5EF;
  --warn: #C77C1B;
  --warn-soft: #FDF3E3;
  --danger: #D8433B;
  --danger-soft: #FDECEA;
  --info: #2F6B95;
  --info-soft: #EAF2F8;
  --r: 12px;
  --sh: 0 1px 2px rgba(36, 28, 21, .04), 0 6px 18px rgba(36, 28, 21, .04);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 13.5px; color: var(--ink); }
table { border-collapse: collapse; width: 100%; }
.hide { display: none !important; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }

.side {
  width: 218px; flex: none;
  background: var(--deep);
  color: rgba(255, 255, 255, .78);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand {
  padding: 22px 20px 18px;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.brand-txt { line-height: 1.25; }
.brand-name { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 10.5px; color: rgba(255, 255, 255, .42); letter-spacing: 1px; }

.nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; color: rgba(255, 255, 255, .32); letter-spacing: 1.4px; padding: 16px 10px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; margin-bottom: 2px;
  color: rgba(255, 255, 255, .74);
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on { background: var(--brand); color: #fff; font-weight: 600; }
.nav-item .ico { width: 16px; height: 16px; flex: none; opacity: .9; }
.nav-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  background: var(--danger); color: #fff;
  min-width: 18px; height: 18px; line-height: 18px;
  border-radius: 9px; padding: 0 5px; text-align: center;
}
.nav-item.on .nav-badge { background: #fff; color: var(--brand); }

.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 9px; }
.side-user:hover { background: rgba(255, 255, 255, .06); }
.ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .13); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.side-user-info { flex: 1; min-width: 0; }
.side-user-name { font-size: 12.5px; color: #fff; line-height: 1.3; }
.side-user-role { font-size: 10.5px; color: rgba(255, 255, 255, .38); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  background: rgba(255, 249, 244, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.bal {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 16px;
}
.bal-item { display: flex; align-items: baseline; gap: 5px; }
.bal-lab { font-size: 10.5px; color: var(--sub); }
.bal-num { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bal-num.brand { color: var(--brand); }
.bal-div { width: 1px; height: 14px; background: var(--line); }

.content { padding: 22px 26px 60px; max-width: 1360px; width: 100%; }

/* ============ 通用组件 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 14.5px; font-weight: 700; }
.card-sub { font-size: 11.5px; color: var(--sub); font-weight: 400; margin-left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
  transition: filter .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(.96); }
/* 禁用态不能只降透明度：btn-ok / btn-ghost 本来就是浅底，降到 .5 几乎看不见，
   商家会以为按钮坏了，而不是"还没选人"。统一成灰块，一眼看出是"不可点" */
.btn:disabled {
  opacity: 1; cursor: not-allowed; filter: none;
  background: #F6F1EA; border-color: #E8DCCC; color: #B0A699;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink2); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 40px; padding: 0 22px; font-size: 14px; border-radius: 9px; }
.btn-text { color: var(--brand); font-weight: 600; font-size: 12.5px; padding: 2px 4px; }
.btn-text:hover { text-decoration: underline; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 600; line-height: 17px;
  background: var(--line-2); color: var(--ink2);
}
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-mute { background: #F4F1EC; color: var(--sub); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.dot-xhs { background: #FF2E4D; }
.dot-dy { background: #1B1A18; }
.dot-sph { background: #17A673; }
.dot-dp { background: #FF7A00; }
.dot-other { background: #8C8377; }

.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 表单 */
.field { margin-bottom: 16px; }
.lab { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: 7px; }
.lab .req { color: var(--brand); margin-left: 2px; }
.lab .hint { font-weight: 400; color: var(--sub); margin-left: 6px; font-size: 11.5px; }

.ipt, .sel, .txa {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.txa { height: auto; padding: 9px 11px; line-height: 1.6; resize: vertical; min-height: 78px; }
.ipt:focus, .sel:focus, .txa:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 43, .1); }
.ipt::placeholder, .txa::placeholder { color: #B9AFA4; }
.sel { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238C8377' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; }

.row { display: flex; gap: 14px; }
.row > .field { flex: 1; min-width: 0; }

/* 分段控制器 */
.seg { display: inline-flex; background: #F5EEE6; border-radius: 8px; padding: 3px; gap: 2px; }
.seg-item {
  padding: 5px 13px; border-radius: 6px;
  font-size: 12.5px; color: var(--ink2); font-weight: 500;
  transition: background .15s, color .15s;
}
.seg-item:hover { color: var(--ink); }
.seg-item.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(36,28,21,.06); }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--sub);
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; background: #FDFAF6;
}
.tbl td {
  padding: 13px 14px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #FFFCF9; }
.tbl .cell-title { font-weight: 600; color: var(--ink); }
.tbl .cell-sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .ops { white-space: nowrap; display: flex; gap: 4px; }
/* 达人库备注最多两行：备注写长了会把整行撑高，一屏看不到几个人，反而更难找人 */
.tbl .user-remark {
  font-size: 12px; color: var(--ink2); line-height: 1.55; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 空态 */
.empty {
  padding: 52px 20px; text-align: center; color: var(--sub); font-size: 13px;
}
.empty-mark {
  width: 44px; height: 44px; margin: 0 auto 12px;
  border-radius: 12px; background: var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #C9BEB1;
}
.empty-d { font-size: 11.5px; color: #B9AFA4; margin-top: 4px; }

/* 弹层 */
.mask {
  position: fixed; inset: 0; background: rgba(28, 20, 14, .42);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(28, 20, 14, .28);
  animation: pop .2s cubic-bezier(.2, .9, .3, 1);
}
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0 } to { transform: none; opacity: 1 } }
.modal.wide { max-width: 720px; }
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 15px; font-weight: 700; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  padding: 13px 20px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: flex-end; gap: 9px;
}
.x {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); font-size: 17px; line-height: 1;
}
.x:hover { background: var(--line-2); color: var(--ink); }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; top: 26px; transform: translateX(-50%);
  background: var(--deep); color: #fff;
  padding: 10px 20px; border-radius: 9px;
  font-size: 13px; z-index: 200;
  box-shadow: 0 10px 30px rgba(28, 20, 14, .3);
  animation: drop .2s ease;
  max-width: 80vw;
}
@keyframes drop { from { transform: translate(-50%, -10px); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* 加载 */
.loading { padding: 50px; text-align: center; color: var(--sub); font-size: 13px; }
.spin {
  width: 20px; height: 20px; margin: 0 auto 10px;
  border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg) } }

/* ============ 登录页 ============ */
.login-wrap { min-height: 100vh; display: flex; align-items: stretch; background: var(--bg); }

.login-card {
  width: 420px; flex: none; padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.login-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.login-sub { font-size: 9.5px; color: var(--sub); letter-spacing: 1.6px; }
.login-title { font-size: 25px; font-weight: 800; letter-spacing: .5px; }
.login-desc { font-size: 12.5px; color: var(--sub); margin: 7px 0 28px; }
.login-btn { width: 100%; margin-top: 6px; }
.login-err {
  background: var(--danger-soft); color: var(--danger);
  font-size: 12px; padding: 8px 11px; border-radius: 7px; margin-bottom: 10px;
}
.login-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; font-size: 11.5px; color: var(--sub);
}

.login-side {
  flex: 1; background: var(--deep); position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 0 60px;
}
.login-side::before {
  content: ''; position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,43,.22), transparent 68%);
}
.ls-inner { position: relative; max-width: 440px; }
.ls-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 2px;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.16);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 22px;
}
.ls-h {
  font-size: 27px; line-height: 1.45; color: #fff; font-weight: 700;
  letter-spacing: .5px; margin-bottom: 30px;
}
.ls-list { list-style: none; }
.ls-list li {
  font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.62);
  padding-left: 14px; position: relative; margin-bottom: 11px;
}
.ls-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.ls-list b { color: #fff; font-weight: 600; margin-right: 6px; }

/* ============ 工作台 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--sh); position: relative; overflow: hidden;
}
.stat-lab { font-size: 11.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.stat-num { font-size: 27px; font-weight: 800; line-height: 1.15; margin-top: 7px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat-num small { font-size: 12px; font-weight: 500; color: var(--sub); margin-left: 4px; letter-spacing: 0; }
.stat-foot { font-size: 11px; color: var(--sub); margin-top: 5px; }
.stat.alert { border-color: #F3C9C4; background: #FFFBFB; }
.stat.alert .stat-num { color: var(--danger); }

.todo-list { display: flex; flex-direction: column; gap: 9px; }
.todo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border-radius: 9px; font-size: 12.5px; line-height: 1.55;
  background: var(--line-2);
}
.todo.i-danger { background: var(--danger-soft); color: #A83A32; }
.todo.i-warn { background: var(--warn-soft); color: #8E5A12; }
.todo.i-info { background: var(--info-soft); color: #2A5A7C; }
.todo.i-ok { background: var(--ok-soft); color: #276B4D; }
.todo-mk { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 7px; flex: none; opacity: .65; }

.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }

/* ============ 任务列表 ============ */
.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap;
}
.search { position: relative; width: 250px; }
.search input { width: 100%; height: 34px; padding: 0 11px 0 32px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,43,.1); }
.search svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--sub); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; color: var(--sub); }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.pager-info { font-size: 12px; color: var(--sub); }
.pager-btns { display: flex; gap: 6px; }

/* ============ 审核卡片（报名/作品共用的行内展开） ============ */
.audit-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
/* 报名审核要批量处理，左边多一列勾选框；作品审核不用，别串着改 */
.audit-row.with-pick { grid-template-columns: 22px 1fr auto; }
.audit-pick { display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.audit-row:last-child { border-bottom: none; }
.audit-main { min-width: 0; }
.audit-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; font-size: 12px; color: var(--ink2); }
.audit-meta span b { font-weight: 500; color: var(--sub); margin-right: 4px; }
.audit-intro {
  margin-top: 8px; font-size: 12px; color: var(--ink2); line-height: 1.6;
  background: #FDFAF6; border-left: 2px solid var(--line); padding: 7px 10px; border-radius: 0 6px 6px 0;
}
.audit-shots { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.shot {
  width: 56px; height: 96px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #F3E8DA, #E6D8C8);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; color: #A79C90; cursor: pointer;
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.shot:hover { border-color: var(--brand); transform: translateY(-1px); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audit-ops { display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-content: center; min-width: 92px; }
.audit-ops .btn { width: 100%; }

.link-in {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; font-size: 12px; color: var(--brand);
  word-break: break-all;
}
.mono { font-family: ui-monospace, Consolas, "SF Mono", monospace; font-size: 11.5px; }

/* ============ 发单表单 ============ */
.form-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
.form-sec { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.form-sec:last-child { border-bottom: none; }
.form-sec-t { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: 1.2px; margin-bottom: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink2);
  transition: all .14s;
}
.chip:hover { border-color: #E0D2C2; }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.req-list { display: flex; flex-direction: column; gap: 8px; }
.req-item { display: flex; gap: 8px; align-items: flex-start; }
.req-n {
  width: 22px; height: 22px; flex: none; margin-top: 8px;
  border-radius: 6px; background: var(--line-2); color: var(--sub);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.req-item .ipt { flex: 1; }
.req-del { width: 30px; height: 38px; flex: none; color: var(--sub); font-size: 16px; border-radius: 7px; }
.req-del:hover { background: var(--danger-soft); color: var(--danger); }

/* 要点区块的角标与说明：发单页只让商家看清「要求」和「注意」两块 */
.sec-badge {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0; vertical-align: 2px;
  background: #FFF1E8; color: #B4501F; border: 1px solid #FFD9C2;
}
.sec-badge-o { background: #F2F5F2; color: #5C6B5C; border-color: #DCE4DC; }
.sec-tip { font-size: 12px; color: var(--sub); line-height: 1.7; margin: -6px 0 12px; }

/* 更多设置：默认收起，避免一屏全是字段把「要求」挤到看不见 */
.more-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 20px;
  cursor: pointer; user-select: none; border-radius: 10px;
}
.more-head:hover { background: var(--bg-2, #FDFAF5); }
.more-t { font-size: 13px; font-weight: 700; color: var(--ink2); flex: none; }
.more-s { font-size: 11.5px; color: var(--sub); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-ico { font-size: 12px; color: var(--brand); font-weight: 600; flex: none; }

.side-card { position: sticky; top: 74px; }
.sum-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; color: var(--ink2); }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 11px; }
.sum-total .sum-row { font-size: 14px; font-weight: 700; color: var(--ink); }
.sum-total .sum-row b { color: var(--brand); font-size: 19px; }
.sum-note { font-size: 11px; color: var(--sub); line-height: 1.6; margin-top: 9px; }
.warn-box {
  background: var(--warn-soft); color: #8E5A12; font-size: 11.5px;
  padding: 9px 11px; border-radius: 8px; line-height: 1.6; margin-top: 10px;
}

/* 详情抽屉内容 */
.dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; font-size: 12.5px; }
.dl dt { color: var(--sub); }
.dl dd { color: var(--ink); word-break: break-word; }
.ref-copy {
  background: #FDFAF6; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap;
  color: var(--ink2); max-height: 220px; overflow-y: auto;
}

/* ============ 移动端：侧栏抽屉 ============ */
/* 运营的现实是「在店里、在外面用手机审报名」，所以窄屏不是能看就行，
   要能真的点。抽屉比「挤成一条竖线」唯一可行的方案。 */
.burger {
  display: none;
  width: 38px; height: 38px; flex: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  border-radius: 9px; border: 1px solid var(--line); background: #fff;
  margin-right: 10px;
}
.burger span { display: block; width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px; }
.burger:active { background: #F7EFE6; }

.nav-mask {
  display: none; position: fixed; inset: 0; z-index: 54;
  background: rgba(28, 20, 14, .42);
  backdrop-filter: blur(1px);
}

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .form-wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .login-side { display: none; }
  .login-card { width: 100%; }
}

@media (max-width: 900px) {
  .burger { display: flex; }

  .side {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100%;
    z-index: 55; width: 246px;
    transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.3, .8, .3, 1);
    box-shadow: 18px 0 48px rgba(28, 20, 14, .22);
    overflow-y: auto;
  }
  .app.nav-open .side { transform: none; }
  .app.nav-open .nav-mask { display: block; }

  /* 顶栏收紧：手机上「刷新」没意义（下拉即刷新），让位给余额和发布 */
  .topbar { height: 52px; padding: 0 12px; }
  .topbar-title { font-size: 14.5px; }
  .topbar-right { gap: 7px; }
  .topbar-right .btn-ghost { display: none; }
  .bal { padding: 4px 11px; gap: 9px; }
  .bal-num { font-size: 13px; }
  .bal-lab { font-size: 10.5px; }

  .content { padding: 14px 12px 48px; }
  .card { border-radius: 11px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat-num { font-size: 22px; }

  /* 表格：窄屏保留表头，允许横向滑动，而不是把字压成一条。
     td 也要 nowrap，否则「2026-11-16 09:05」会被挤成竖排的三行。 */
  .tbl { min-width: 700px; }
  .tbl th, .tbl td { padding: 9px 11px; white-space: nowrap; }
  .tbl td .cell-sub, .tbl td .remark-txt { white-space: normal; }

  .bar { padding: 11px 13px; gap: 8px; }
  .bar .search { width: 100%; }
  /* .bar-right 是 flex 且宽度 auto，里面 search 的 100% 会退化成内容宽 → 得先给它满宽 */
  .bar-right { width: 100%; flex-wrap: wrap; }
  .bar-right .search { flex: 1 1 auto; width: auto; min-width: 130px; }
  /* 只在筛选下拉（.bar 直接子级）拉满整行；搜索框旁的排序下拉保持原宽，
     两个各占一行会白浪费一屏 */
  .bar > select.sel, .bar > .sel { width: 100% !important; }
  .bar-right select.sel { width: 132px !important; }

  /* 审核卡片：操作按钮换到下方，不再和内容抢横向空间。
     注意 .with-pick（带勾选框）的选择器更具体，必须一起覆盖，
     否则单列规则被它压过，卡片保持三列把整页撑宽 —— 手机上就是右侧被裁。 */
  .audit-row { grid-template-columns: 1fr; padding: 13px 14px; gap: 10px; }
  .audit-row.with-pick { grid-template-columns: 22px 1fr; }
  .audit-ops { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; min-width: 0; }
  .audit-ops .btn { width: auto; min-width: 84px; padding: 0 16px; }
  /* 只让「任务编号+标题」独占一行；不能用 .audit-name > span，
     那会把「待审核」标签也拉成整行色条 */
  .audit-name > span:last-child { flex-basis: 100%; }
  .audit-meta { gap: 6px 14px; }

  .modal { max-width: 100%; max-height: 92vh; border-radius: 13px; }
  .modal-body { padding: 14px 15px; }
  .modal-foot { padding: 11px 15px; flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; justify-content: center; }

  .login-card { padding: 22px 18px; }
}

/* 真正的小屏手机（iPhone 390 / Android 360-412）才降到单列，
   500 左右的窄屏/小平板留给两列，否则一屏只装得下两张卡 */
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-right .btn-primary { padding: 0 11px; font-size: 12.5px; }
  /* 窄屏下余额只留可用，冻结在工作台卡片里能看到 */
  .bal-div, .bal .bal-item:last-child { display: none; }
  .seg-item { padding: 5px 10px; font-size: 12px; }
}

/* 触屏：去掉 hover 抖动，保证触摸目标够大 */
@media (hover: none) {
  .btn:hover { filter: none; }
  .nav-item { padding-top: 11px; padding-bottom: 11px; }
}


/* ========== 发单：图文/视频素材 ========== */
.mat-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.mat-n { font-size: 12.5px; color: var(--sub); margin-left: auto; }
.mat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.mat-item { display: flex; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mat-thumb { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; flex: none; background: #f3efe9; }
.mat-ph { width: 42px; height: 42px; border-radius: 7px; flex: none; background: #2b2b2b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mat-meta { min-width: 0; flex: 1; }
.mat-name { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-size { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.mat-x { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: #9a938a; cursor: pointer; line-height: 1; font-size: 14px; }
.mat-x:hover { color: #d9534f; border-color: #d9534f; }
.mat-empty { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; color: var(--sub); background: #fdfbf8; }

@media (max-width: 460px) {
  .mat-list { grid-template-columns: 1fr; }
  .mat-n { margin-left: 0; width: 100%; }
}
