/* 鸢谱 · PC 管理端样式 */
/* 管理端登录门禁 */
.login-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(43,38,34,.93), rgba(80,45,35,.72)),
              url('../../common/img/workshop.jpg') center / cover no-repeat; padding: 20px; }
.login-gate[hidden] { display: none; }
.login-card { width: 100%; max-width: 380px; background: var(--paper-2); border-radius: 18px; padding: 26px 28px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.login-brand strong { display: block; font-size: 22px; letter-spacing: 5px; }
.login-brand small { font-size: 9px; letter-spacing: 1.6px; color: var(--ink-3); }
.login-card h2 { margin: 0 0 4px; font-size: 22px; }
.login-lead { margin: 0 0 18px; font-size: 12px; color: var(--ink-3); }
.login-err { min-height: 18px; margin: 0 0 8px; font-size: 12px; color: var(--red); }
.login-demo { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--ink-3); }
.login-demo b { color: var(--ink); }
.login-demo .btn { margin-left: auto; }
.login-back { display: inline-block; margin-top: 16px; font-size: 11px; color: var(--ink-3); }

body { background: #f4efe3; overflow: auto; }
.layout { display: flex; min-height: 100vh; }

.sidebar { width: 224px; flex: none; background: #2b2622; color: #e8ddc9; display: flex; flex-direction: column;
  padding: 20px 14px 16px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 20px; }
.side-seal { width: 40px; height: 40px; background: #9e2b25; color: #fff; border-radius: 9px; display: grid;
  place-items: center; font-size: 25px; box-shadow: 0 4px 14px rgba(158,43,37,.4); }
.side-brand strong { display: block; font-size: 22px; letter-spacing: 5px; color: #fff; }
.side-brand small { font-size: 8px; letter-spacing: 1.5px; color: #a9967b; }
.side-group { font-size: 10px; color: #8d806c; letter-spacing: 2px; padding: 14px 8px 7px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px;
  color: #cfc3ae; font-size: 13px; text-align: left; transition: .18s; }
.side-nav button i { width: 20px; height: 20px; display: grid; place-items: center; font-style: normal;
  font-family: var(--serif); font-size: 14px; color: #a9967b; background: rgba(255,255,255,.06); border-radius: 6px; }
.side-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav button.on { background: linear-gradient(100deg, #9e2b25, #b8412f); color: #fff; box-shadow: 0 4px 14px rgba(158,43,37,.3); }
.side-nav button.on i { background: rgba(255,255,255,.2); color: #fff; }
.nav-dot { margin-left: auto; background: #c9a063; color: #2b2622; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; display: none; place-items: center; padding: 0 4px; }
.nav-dot.show { display: grid; }
.side-foot { margin-top: auto; padding: 0 8px; }
.side-line { height: 1px; background: rgba(255,255,255,.12); margin-bottom: 12px; }
.side-foot p { margin: 2px 0; font-size: 10px; color: #8d806c; }
.side-link { display: inline-block; margin-top: 10px; font-size: 11px; color: #d8b784; border-bottom: 1px solid #8a6a3b; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-top { height: 76px; flex: none; background: #fffdf7; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.main-top h1 { margin: 0; font-family: var(--serif); font-size: 22px; letter-spacing: 2px; }
.main-top p { margin: 3px 0 0; font-size: 11px; color: var(--ink-3); }
.top-right { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f7d5e; box-shadow: 0 0 0 3px rgba(63,125,94,.15); }
.divider-v { width: 1px; height: 22px; background: var(--line); }
.admin-chip { display: flex; align-items: center; gap: 7px; font-size: 12px; background: var(--paper-3);
  padding: 5px 11px 5px 5px; border-radius: 999px; }
.admin-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 13px; }
.content { padding: 22px 26px 40px; flex: 1; }
.loading { text-align: center; color: var(--ink-3); padding-top: 80px; font-size: 13px; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-family: var(--serif); font-size: 18px; }
.page-head p { margin: 3px 0 0; font-size: 11px; color: var(--ink-3); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; padding: 16px 17px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -18px; top: -18px; width: 66px; height: 66px;
  border-radius: 50%; background: rgba(201,160,99,.12); }
.stat-card .st-label { font-size: 11px; color: var(--ink-3); }
.stat-card .st-value { font-family: var(--serif); font-size: 30px; margin: 5px 0 2px; }
.stat-card .st-note { font-size: 10px; color: var(--jade); }
.stat-card.red .st-value { color: var(--red); }
.stat-card.gold .st-value { color: #a5782f; }

.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; padding: 17px 18px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.panel h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; }
.panel .panel-sub { font-size: 10.5px; color: var(--ink-3); margin: 0 0 14px; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } }

.chart-wrap { width: 100%; height: 176px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 11px; }
.bar-row .bl { width: 92px; color: var(--ink-2); text-align: right; flex: none; }
.bar-track { flex: 1; height: 12px; background: var(--paper-3); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #9e2b25, #c9a063); }
.bar-row .bv { width: 30px; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { background: var(--paper-3); color: var(--ink-2); font-size: 11px; font-weight: 600; text-align: left;
  padding: 10px 11px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #faf5ea; }
.table .ell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .ops { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

.sub-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sub-tabs .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1200px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.review-art { height: 132px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fffdf6, #eee3cf); }
.review-art svg { width: 100%; height: 100%; }
.review-body { padding: 12px 13px 14px; }
.review-body h4 { margin: 0 0 4px; font-size: 14px; font-family: var(--serif); }
.review-body p { margin: 0; font-size: 11px; color: var(--ink-2); line-height: 1.6; }

.timeline { border-left: 2px solid var(--line-2); margin-left: 8px; padding-left: 20px; }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before { content: ''; position: absolute; left: -27px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--red); border: 3px solid #fffdf7; }
.tl-item h4 { margin: 0 0 5px; font-size: 14px; }
.tl-item p { margin: 3px 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.tl-item .tl-tag { font-size: 10px; color: var(--gold); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.mini-note { background: #f7f2e7; border: 1px dashed var(--line-2); border-radius: 9px; padding: 10px 12px;
  font-size: 11px; color: var(--ink-2); line-height: 1.7; }
.status-flow { display: flex; gap: 5px; flex-wrap: wrap; }
.status-flow button { font-size: 10.5px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); }
.status-flow button.on { background: var(--jade); color: #fff; border-color: var(--jade); }
.status-flow button:hover { border-color: var(--gold); }
