/* 美探 · 运营后台
   配色沿用小程序的暖色令牌：纸色底、暖棕文字、橙色只用在主要操作和需要注意的地方。 */
:root {
  --paper: #faf6f1;
  --paper-sunken: #f3ece4;
  --card: #ffffff;
  --line: #efe6dc;
  --line-strong: #dfd2c5;
  --ink: #2a1c12;
  --ink-2: #4f3f33;
  --ink-3: #6b5a4d;
  --ink-4: #8f7d6f;
  --brand: #f25e0a;
  --brand-ink: #c2510c;
  --brand-deep: #9b410a;
  --brand-soft: #fff0e5;
  --success: #167d47; --success-soft: #e7f5e8;
  --danger: #d4332a; --danger-soft: #fff0ec;
  --warning: #9a5b00; --warning-soft: #fff3d6;
  --info: #3466d6; --info-soft: #edf1fb;
  --radius: 10px;
  --shadow: 0 1px 2px #4a2e1a0d, 0 4px 18px #4a2e1a0a;

  /* Element Plus 主题 */
  --el-color-primary: #c2510c;
  --el-color-primary-light-3: #d48555;
  --el-color-primary-light-5: #e0a885;
  --el-color-primary-light-7: #eccbb6;
  --el-color-primary-light-8: #f3dcce;
  --el-color-primary-light-9: #f9eee7;
  --el-color-primary-dark-2: #9b410a;
  --el-color-success: #167d47; --el-color-success-light-3: #5ca47e; --el-color-success-light-5: #8bbea3; --el-color-success-light-7: #b9d8c8; --el-color-success-light-8: #d0e5da; --el-color-success-light-9: #e8f2ed; --el-color-success-dark-2: #126439;
  --el-color-danger: #d4332a; --el-color-danger-light-3: #e1706a; --el-color-danger-light-5: #ea9995; --el-color-danger-light-7: #f2c2bf; --el-color-danger-light-8: #f6d6d4; --el-color-danger-light-9: #fbebea; --el-color-danger-dark-2: #aa2922;
  --el-color-warning: #c27c0e; --el-color-warning-light-3: #d4a256; --el-color-warning-light-5: #e0bd86; --el-color-warning-light-7: #edd8b7; --el-color-warning-light-8: #f3e5cf; --el-color-warning-light-9: #f9f2e7; --el-color-warning-dark-2: #9b630b;
  --el-color-info: #8a7768; --el-color-info-light-3: #ad9f95; --el-color-info-light-5: #c4bbb3; --el-color-info-light-7: #dcd6d1; --el-color-info-light-8: #e7e4e1; --el-color-info-light-9: #f3f1f0; --el-color-info-dark-2: #6e5f53;
  --el-text-color-primary: var(--ink);
  --el-text-color-regular: var(--ink-2);
  --el-text-color-secondary: var(--ink-3);
  --el-text-color-placeholder: #ab9c8f;
  --el-border-color: var(--line-strong);
  --el-border-color-light: var(--line);
  --el-border-color-lighter: var(--line);
  --el-border-color-extra-light: #f6efe8;
  --el-fill-color-light: #faf5f0;
  --el-fill-color-lighter: #fcf9f6;
  --el-fill-color: #f3ece4;
  --el-bg-color-page: var(--paper);
  --el-border-radius-base: 8px;
  --el-font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --el-menu-active-color: var(--brand-ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--el-font-family); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
.num, .el-table .cell .num { font-variant-numeric: tabular-nums; }
.boot { display: flex; align-items: center; justify-content: center; min-height: 100vh; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 外框 ---------- */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--paper-sunken); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand__sub { font-size: 12px; color: var(--ink-4); margin-top: 1px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav__group { font-size: 12px; color: var(--ink-4); padding: 14px 12px 6px; }
.nav__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; cursor: pointer; position: relative; }
.nav__item:hover { background: #ebe1d6; color: var(--ink); }
.nav__item.is-active { background: var(--card); color: var(--brand-ink); font-weight: 600; box-shadow: var(--shadow); }
.nav__item .el-icon { font-size: 17px; }
.nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.side__foot { padding: 12px 20px 18px; font-size: 12px; color: var(--ink-4); border-top: 1px solid var(--line); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar__menu { display: none; }
.topbar__title { font-size: 16px; font-weight: 600; }
.topbar__spacer { flex: 1; }
.topbar__user { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.topbar__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.modebar { display: flex; gap: 8px; flex-wrap: wrap; }
.modechip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.modechip--warn { background: var(--warning-soft); color: var(--warning); }
.modechip--danger { background: var(--danger-soft); color: var(--danger); }
.content { padding: 22px 24px 48px; max-width: 1480px; width: 100%; }

/* ---------- 页面头 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head__text { flex: 1; min-width: 240px; }
.page-head h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--ink-3); max-width: 70ch; line-height: 1.6; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.panel__title { font-size: 15px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.panel__title small { font-weight: 400; color: var(--ink-4); font-size: 12px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .el-input { width: 220px; }
.toolbar .el-select { width: 150px; }
.toolbar .el-date-editor.el-range-editor { width: 280px; flex: none; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
.muted { color: var(--ink-4); }
.small { font-size: 12px; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money--plus { color: var(--success); }
.money--minus { color: var(--ink-2); }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { color: var(--brand-ink); cursor: pointer; }
.help-text { font-size: 12px; color: var(--ink-4); line-height: 1.6; margin-top: 4px; }
.el-form-item__content .help-text { width: 100%; }
.tip { background: var(--brand-soft); color: #7a3505; border-radius: 8px; padding: 10px 14px; line-height: 1.7; margin-bottom: 14px; }

/* ---------- 工作台 ---------- */
.todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.todo__cell { padding: 18px 20px; border-right: 1px solid var(--line); cursor: pointer; position: relative; }
.todo__cell:last-child { border-right: 0; }
.todo__cell:hover { background: #fffaf6; }
.todo__num { font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.todo__cell.is-hot .todo__num { color: var(--brand-ink); }
.todo__label { margin-top: 6px; color: var(--ink-3); }
.todo__go { position: absolute; right: 18px; top: 20px; font-size: 12px; color: var(--brand-ink); opacity: 0; }
.todo__cell:hover .todo__go { opacity: 1; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.stat__num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-4); font-size: 12px; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bars__bar { width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: #f6c7a7; min-height: 2px; position: relative; }
.bars__bar.is-today { background: var(--brand); }
.bars__lab { font-size: 10px; color: var(--ink-4); white-space: nowrap; }
.warn-list { display: flex; flex-direction: column; gap: 8px; }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; line-height: 1.6; cursor: pointer; }
.warn--error { background: var(--danger-soft); color: #8c1f19; }
.warn--warning { background: var(--warning-soft); color: #6e4100; }
.warn--info { background: var(--paper); color: var(--ink-2); }
.warn .el-icon { margin-top: 4px; flex: none; }
.connect { line-height: 1.8; }
.connect code { background: var(--paper-sunken); padding: 2px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; }

/* ---------- 审核台 ---------- */
.desk { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.queue { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 72px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
.queue__head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.queue__list { overflow-y: auto; }
.qitem { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.qitem:hover { background: #fffaf6; }
.qitem.is-active { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.qitem__body { flex: 1; min-width: 0; }
.qitem__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem__meta { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.plat { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.plat--1 { background: #fff4c2; color: #6b5200; }
.plat--2 { background: #2b2b33; color: #fff; }
.plat--3 { background: #ffe3e6; color: #b3132b; }
.plat--4 { background: #ffe9d6; color: #9b410a; }
.plat--5 { background: #e1edfd; color: #1a5fb4; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sheet__head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet__title { font-size: 18px; font-weight: 700; }
.sheet__sub { color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.sheet__body { padding: 18px 20px; }
.sheet__actions { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 14px 20px; display: flex; gap: 10px; align-items: center; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shots .el-image { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--paper-sunken); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin-bottom: 16px; }
.fact__k { font-size: 12px; color: var(--ink-4); }
.fact__v { margin-top: 2px; word-break: break-all; }
.kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; font-size: 12px; text-align: center; color: var(--ink-3); background: var(--paper); }
.section-label { font-weight: 600; margin: 18px 0 10px; }
.sheet__body > .section-label:first-child { margin-top: 0; }
.fact__v b, .fact__v .money { white-space: nowrap; }
.empty-desk { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.empty-desk b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ---------- 列表里的小元件 ---------- */
.ucell { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ucell__av { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-sunken); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--ink-4); font-size: 12px; }
.ucell__av img { width: 100%; height: 100%; object-fit: cover; }
.ucell__name { font-weight: 500; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs .el-image { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-sunken); }
.items-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.upload-one { width: 120px; height: 120px; border: 1px dashed var(--line-strong); border-radius: 8px; display: grid; place-items: center; cursor: pointer; overflow: hidden; background: var(--paper); color: var(--ink-4); position: relative; }
.upload-one img { width: 100%; height: 100%; object-fit: cover; }
.upload-one__del { position: absolute; right: 4px; top: 4px; background: #2a1c12b3; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.upload-wide { width: 300px; height: 120px; }
.upload-list { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.plat-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px 36px; gap: 8px; align-items: center; }
.quota-rows { display: flex; flex-direction: column; gap: 8px; }
.quota-row { display: flex; gap: 8px; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__day { border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 12px; background: var(--card); }
.cal__day.is-special { border-color: var(--brand-ink); }
.cal__date { font-weight: 600; margin-bottom: 4px; }
.cal__bar { height: 6px; background: var(--paper-sunken); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.cal__bar i { display: block; height: 100%; background: var(--brand); }
.logline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.lvl { display: inline-block; min-width: 46px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 700; padding: 0 4px; }
.lvl--error { background: var(--danger-soft); color: var(--danger); }
.lvl--warn { background: var(--warning-soft); color: var(--warning); }
.lvl--info { background: var(--info-soft); color: var(--info); }
.lvl--debug { background: var(--paper-sunken); color: var(--ink-3); }
.help h2 { font-size: 17px; margin: 26px 0 10px; }
.help h2:first-child { margin-top: 0; }
.help ol, .help ul { padding-left: 22px; line-height: 1.9; margin: 0; max-width: 78ch; }
.help p { line-height: 1.8; max-width: 78ch; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 18px; line-height: 1.6; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.timeline li:first-child::before { background: var(--brand); }
.setting-group .el-form-item { margin-bottom: 18px; }
.secret-state { font-size: 12px; margin-left: 8px; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
.login__art { background: var(--brand); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login__art::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: #ffffff1f; }
.login__art::before { content: ''; position: absolute; right: 120px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: #ffffff14; }
.login__word { font-size: 64px; font-weight: 800; letter-spacing: 4px; line-height: 1; }
.login__lead { font-size: 18px; line-height: 1.8; max-width: 26em; opacity: .95; margin-top: 18px; }
.login__steps { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.login__steps span { background: #ffffff26; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.login__form { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--paper); }
.login__form h2 { font-size: 24px; margin: 0 0 6px; }
.login__form p { color: var(--ink-3); margin: 0 0 26px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .desk { grid-template-columns: 1fr; }
  .queue { position: static; max-height: 360px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 30px #0003; }
  .nav-mask { position: fixed; inset: 0; background: #0005; z-index: 50; }
  .topbar { padding: 0 14px; }
  .topbar__menu { display: inline-flex; }
  .content { padding: 16px 14px 40px; }
  .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo__cell:nth-child(2) { border-right: 0; }
  .todo__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login__art { padding: 32px 24px; min-height: 220px; }
  .login__word { font-size: 44px; }
  .login__form { padding: 28px 22px; }
  .plat-row { grid-template-columns: 1fr 1fr; }
  .toolbar .el-input, .toolbar .el-select { width: 100%; }
  .modebar { display: none; }
}
