/* ============================================================
   沄清屿 · 漫剧收益查询
   编辑级数据工作台
   ============================================================ */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #faf9f6;

  --ink: #171717;
  --ink-2: #5c5852;
  --ink-3: #8e8a83;
  --ink-4: #b5b1a9;

  --line: #e4e1da;
  --line-2: #efede7;

  --accent: #b45309;
  --accent-soft: #fdf6ec;
  --red: #b42318;
  --green: #1f6b4a;

  --r: 14px;
  --r-sm: 8px;

  --serif: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', ui-serif, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------------------------------------------------------- 控件 */

input[type='text'],
input[type='password'],
input[type='date'],
textarea,
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.16s, box-shadow 0.16s;
}

textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  line-height: 1.65;
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #d3cfc6;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}

input::placeholder {
  color: var(--ink-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.btn:hover {
  background: #333;
  border-color: #333;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: 0;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: #d3cfc6;
  color: var(--ink);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.alert {
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.alert-success {
  background: #f2f8f4;
  border-color: #cfe6d8;
  color: var(--green);
}

.alert-warn {
  background: var(--accent-soft);
  border-color: #f0dcc0;
  color: var(--accent);
}

.alert-error {
  background: #fdf2f0;
  border-color: #f2d2cc;
  color: var(--red);
}

.muted {
  color: var(--ink-4);
  font-weight: 400;
}

/* ---------------------------------------------------------- 顶栏 */

.bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
}

.mark-line {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.mark-sub {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 1px;
}

.mark-note {
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.3px;
  text-align: right;
}

/* ---------------------------------------------------------- 工作台 */

.board {
  max-width: 1120px;
  margin: 26px auto 0;
  padding: 0 28px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 2px;
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.3px;
  line-height: 1.7;
}

.notice .dot {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.sheet {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.side {
  border-right: 1px solid var(--line);
  padding: 30px 28px 26px;
  background: #fbfaf7;
}

.content {
  padding: 30px 30px 26px;
  min-width: 0;
}

/* 区块标题 */

.blk-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.blk-h i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-4);
}

.blk-h .rule {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.blk + .blk {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* 查询表单（侧栏竖排） */

.qf {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.f label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.qf .btn {
  height: 42px;
  margin-top: 4px;
  letter-spacing: 2px;
}

.qf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

/* 快捷区间 */

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.qbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.2px;
  transition: all 0.15s;
}

.qbtn:hover {
  border-color: #cfcabf;
  color: var(--ink);
}

.qbtn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tip {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.75;
}

/* ---------------------------------------------------------- 金额 */

.amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 10px;
  /* 客户要求：总收益用粗黑体，不要衬线 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.amount .cur {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.amount-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
}

.amount-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* KPI */

.kpis {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kpis > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
}

.kpis dt {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

.kpis dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- 明细 */

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.detail-tip {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.3px;
}

/* 表头、日期行、展开子行共用同一套列模板，保证纵向严格对齐 */
:root {
  --day-cols: minmax(104px, 1fr) 100px 100px 108px 10px;
}

.cols {
  display: grid;
  grid-template-columns: var(--day-cols);
  align-items: center;
  column-gap: 16px;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-4);
}

.cols .c-date,
.cols .c-vp,
.cols .c-ep,
.cols .c-rev {
  min-width: 0;
}

.cols .c-vp,
.cols .c-ep,
.cols .c-rev {
  text-align: right;
}

.day-row {
  border-bottom: 1px solid var(--line-2);
}

.day-row:last-child {
  border-bottom: none;
}

.day-row summary {
  display: grid;
  grid-template-columns: var(--day-cols);
  align-items: center;
  column-gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  transition: background 0.14s;
}

.day-row summary::-webkit-details-marker {
  display: none;
}

.day-row summary:hover {
  background: var(--surface-2);
}

.day-row summary::after {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s, border-color 0.2s;
}

.day-row summary:hover::after {
  border-color: var(--ink);
}

.day-row[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
  border-color: var(--ink);
}

.day-date {
  min-width: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-vp,
.day-ep {
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.day-ep {
  color: var(--ink-4);
}

.day-rev {
  text-align: right;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.day-items {
  padding: 0 0 14px;
}

/* 剧场分组：左边一条竖线，色块区分不同剧场 */
.theater-group {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
  --th-color: #b45309;
}

.theater-group:last-child {
  margin-bottom: 0;
}

.theater-group::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--th-color);
  opacity: 0.6;
}

/* 四种颜色轮换，竖条和剧场名用同一个色，深一档保证可读 */
.theater-group:nth-child(4n + 1) {
  --th-color: #b45309;
}

.theater-group:nth-child(4n + 2) {
  --th-color: #1d4ed8;
}

.theater-group:nth-child(4n + 3) {
  --th-color: #7c3aed;
}

.theater-group:nth-child(4n + 4) {
  --th-color: #0f766e;
}

.theater-head {
  display: grid;
  grid-template-columns: var(--day-cols);
  column-gap: 16px;
  align-items: center;
  margin: 0 -12px 6px;
  padding: 7px 12px 3px;
  font-size: 12px;
  font-weight: 500;
}

/* 剧场名：字号明显大于剧目名并加粗，颜色按剧场轮换 */
.theater-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--th-color, var(--ink));
}

.theater-vp,
.theater-ep {
  text-align: right;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.theater-rev {
  text-align: right;
  color: var(--th-color, var(--accent));
  font-variant-numeric: tabular-nums;
}

.muted-sm {
  font-size: 12px;
  color: var(--ink-4);
}

.item-row {
  display: grid;
  grid-template-columns: var(--day-cols);
  column-gap: 16px;
  align-items: center;
  /* 左右各外扩 12px 再用内边距补回，保证 grid 内容宽度与父行完全一致 */
  margin: 0 -12px 4px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12.5px;
}

.item-row:last-child {
  margin-bottom: 0;
}

.item-name {
  min-width: 0;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-vp,
.item-ep {
  text-align: right;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.item-rev {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 64px 0 56px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------- 页脚 */

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.4px;
}

/* ---------------------------------------------------------- 后台 */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
  color: var(--ink-4);
  font-size: 11.5px;
  letter-spacing: 0.6px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.menu {
  display: flex;
  gap: 2px;
  flex: 1;
}

.menu a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s;
}

.menu a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu a.on {
  background: var(--ink);
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-right .who {
  font-size: 12px;
  color: var(--ink-3);
}

.topbar-right .who:hover {
  color: var(--ink);
}

.topbar-right form {
  margin: 0;
}

.admin-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 64px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
}

.page-head h1 .muted {
  margin-left: 9px;
  font-size: 12.5px;
  letter-spacing: 0;
}

.page-head .actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
}

.panel + .panel {
  margin-top: 14px;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.panel-desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
}

.panel-desc code {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2);
}

.stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stat {
  flex: 1 1 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}

.stat .k {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-bottom: 5px;
  letter-spacing: 0.6px;
}

.stat .v {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar input {
  max-width: 300px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 1px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface-2);
}

table.data td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  color: var(--ink-2);
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover {
  background: var(--surface-2);
}

table.data td.mono {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

table.data td.money {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}

table.data a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

table.data a:hover {
  border-color: var(--ink);
}

td.act a,
td.act button {
  font-size: 12.5px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-2);
  margin-right: 12px;
}

td.act button.danger {
  color: var(--red);
  border-color: #f0d2cc;
}

td.act form {
  display: inline;
  margin: 0;
}

td.act a:hover,
td.act button:hover {
  color: var(--ink);
  border-color: currentColor;
}

.empty-row {
  padding: 52px 16px;
  text-align: center;
  color: var(--ink-4);
  font-size: 12.5px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-4);
}

.pager .pages {
  display: flex;
  gap: 5px;
}

.pager .pages a,
.pager .pages span {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
}

.pager .pages a:hover {
  border-color: #cfcabf;
  color: var(--ink);
}

.pager .pages .on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 上传 */

.drop {
  border: 1px dashed #cfcabf;
  border-radius: var(--r);
  padding: 34px 20px;
  text-align: center;
  background: var(--surface-2);
  transition: border-color 0.16s, background 0.16s;
}

.drop:hover {
  border-color: var(--ink);
  background: #fdfcf9;
}

.drop .big {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.drop .small {
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 18px;
  line-height: 1.7;
}

.drop input[type='file'] {
  max-width: 340px;
  margin: 0 auto;
  height: auto;
  padding: 8px;
  font-size: 12.5px;
  border: none;
  background: transparent;
  color: var(--ink-3);
}

.drop input[type='file']::file-selector-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 6px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
}

.drop input[type='file']::file-selector-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* 列映射 */

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
}

.map-grid .f label {
  margin-bottom: 6px;
}

.map-grid select {
  height: 40px;
  font-size: 13px;
}

.preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow-x: auto;
}

.preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview th {
  background: var(--surface-2);
  color: var(--ink-4);
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: 0.6px;
}

.preview td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview tr:last-child td {
  border-bottom: none;
}

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}

/* 登录 / 错误 */

.login-body,
.err-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 372px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 36px 32px;
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
}

.login-card .sub {
  margin: 0 0 26px;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 1px;
}

.login-card .field {
  display: flex;
  flex-direction: column;
}

.login-card .field + .field {
  margin-top: 14px;
}

.login-card label {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.login-card .btn {
  width: 100%;
  margin-top: 24px;
  height: 44px;
  letter-spacing: 3px;
}

.err-card {
  text-align: center;
  max-width: 400px;
}

.err-card .code {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  color: #d8d4cb;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.err-card h1 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

.err-card p {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 960px) {
  .sheet {
    grid-template-columns: 1fr;
  }

  .side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .board {
    padding: 0 16px;
  }

  .bar-in {
    padding: 0 16px;
  }

  .admin-main {
    padding: 18px 16px 48px;
  }

  .topbar-in {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .topbar-right {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .bar-in {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mark-note {
    text-align: left;
    font-size: 11px;
  }

  .board {
    margin-top: 14px;
  }

  .side,
  .content {
    padding: 22px 18px;
  }

  .amount {
    font-size: 40px;
  }

  .amount .cur {
    font-size: 20px;
  }

  .cols,
  .day-row summary {
    gap: 6px;
  }

  .cols .c-date,
  .day-date {
    width: 74px;
  }

  .cols .c-vp,
  .cols .c-ep,
  .day-vp,
  .day-ep {
    width: 62px;
  }

  .cols .c-rev,
  .day-rev {
    width: 82px;
  }

  .cols .c-arrow {
    width: 8px;
  }

  .cols {
    font-size: 10px;
    letter-spacing: 0;
  }

  .day-vp,
  .day-ep,
  .day-rev {
    font-size: 11.5px;
  }

  .day-date {
    font-size: 12px;
  }

  /* 剧名单独占一行，数字换到第二行右对齐，避免挤成一两个字 */
  .item-row {
    flex-wrap: wrap;
    gap: 3px 8px;
    padding: 8px 10px;
  }

  .item-name {
    flex: 1 0 100%;
    white-space: normal;
    font-size: 12px;
    line-height: 1.45;
  }

  .item-vp {
    margin-left: auto;
  }

  .item-vp,
  .item-ep {
    width: auto;
    flex: none;
    font-size: 11px;
  }

  .item-rev {
    width: auto;
    flex: none;
    font-size: 11.5px;
  }

  .item-vp::after,
  .item-ep::after {
    content: '';
  }

  .foot {
    padding: 14px 16px 30px;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet {
    animation: fade-in 0.5s ease-out both;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
