/* ==========================================================================
   后台全屏布局
   承接原型 admin.css 里的组件样式（.pc-sidebar / .pc-main / .pc-table / .pc-panel ...），
   这里只负责把它从「演示机框」拉成真实的整屏后台版面。
   ========================================================================== */

html, body { height: 100%; }

body {
  background: #f5f7fa;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

/* ---------------- 骨架 ---------------- */

.ea-shell {
  display: flex;
  min-height: 100vh;
}

.ea-shell .pc-sidebar {
  width: 218px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 12px 16px;
}

.ea-shell .pc-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ea-shell .pc-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 56px;
}

.pc-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 侧栏导航用 <a>，套用原型的 .pc-nav-item */
a.pc-nav-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
a.pc-nav-item:hover { color: #fff; }

.pc-nav-group {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  padding: 14px 12px 6px;
  letter-spacing: 0.06em;
}

.pc-user a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

/* ---------------- 通用零件 ---------------- */

.ea-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ea-empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.ea-hint {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.ea-hint code {
  background: #eef1f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.ea-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
}

.ea-pager a,
.ea-pager span.cur {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
}
.ea-pager span.cur {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.ea-pager a:hover { border-color: #cbd5e0; }

/* 分页器：左右分布（左「上一页」中「第 N 页」右「下一页」） */
.ea-pager.between {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 表格里的行只在可点击时才给手型 */
.pc-table tbody tr { cursor: default; }
.pc-table tbody tr.clickable { cursor: pointer; }
.pc-table tbody tr.clickable:hover { background: #fafbfc; }

/* 操作列（td.ops / td.cell-ops 两套类名统一，见文末「设计升级层 v2」） */
.pc-table td.ops,
.pc-table td.cell-ops { white-space: nowrap; }

/* 标签补充（承接 common.css 的 .tag） */
.tag.gray { background: #eef1f6; color: var(--ink-mute); }
.tag.info { background: var(--teal-soft); color: var(--teal); }
.tag.orange { background: var(--accent-soft); color: var(--accent); }
.tag.blue { background: #e8eff6; color: var(--blue); }

/* ---------------- 表单 ---------------- */

.ea-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ea-field-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 5px;
  line-height: 1.5;
}

.pc-form-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .pc-form-grid.three { grid-template-columns: 1fr; }
}

/* ---------------- 弹层 ---------------- */

.ea-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.ea-modal-mask.show { display: flex; }

.ea-modal {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.ea-modal h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  padding-bottom: 13px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.ea-modal .ea-form-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------- 提示条 ---------------- */

.ea-alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.ea-alert.ok { background: #d1fae5; color: var(--ok); }
.ea-alert.err { background: #fee2e2; color: var(--danger); }
.ea-alert.warn { background: #fef3c7; color: var(--warn); }
.ea-alert.info { background: var(--teal-soft); color: var(--teal); }

/* ---------------- 登录页 ---------------- */

.ea-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, #dce8e4 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, #f0e6dc 0%, transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, #f0f3f7 45%, #e4e9ef 100%);
}

.ea-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px 28px;
  box-shadow: 0 18px 50px rgba(26, 35, 50, 0.12);
}

.ea-login-card .brand { color: var(--accent); }
.ea-login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.ea-login-card .sub { font-size: 13px; color: var(--ink-mute); margin-bottom: 22px; }

.ea-login-card .form-group input { padding: 12px 14px; }

.ea-login-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* ---------------- 七牛云测试页 ---------------- */

.ea-test-steps {
  margin-top: 14px;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.ea-test-steps div {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  line-height: 1.6;
}

.ea-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  font-size: 13px;
}
.ea-kv .k { color: var(--ink-mute); }
.ea-kv .v { color: var(--ink); word-break: break-all; }

/* 预览页 */
.ea-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.ea-preview-grid .item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.ea-preview-grid .item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #eef1f6;
}
.ea-preview-grid .item .cap {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-all;
}
.ea-preview-frame {
  width: 100%;
  height: 74vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* ================= 统一上传控件（缩略图 + ×，全后台共用） ================= */
.thumb-list { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; vertical-align: top; }
.mini-thumb-wrap { position: relative; width: 76px; }
.mini-thumb {
  width: 76px; height: 76px; border-radius: 8px; object-fit: cover;
  border: 1px solid #dbe5e0; display: block; background: #f2f7f5;
}
.mini-thumb.file {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #8aa39a;
}
.mini-x {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e11d48; color: #fff; font-size: 13px;
  line-height: 18px; text-align: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.mini-x:hover { background: #be123c; }
.tname {
  width: 76px; font-size: 10px; color: #7a8b85; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.thumb-add {
  display: inline-block; width: 76px; height: 76px; border-radius: 8px;
  border: 2px dashed #b9cdc5; background: #f2f7f5;
  display: inline-flex; align-items: center; justify-content: center;
  color: #8aa39a; font-size: 13px; cursor: pointer; text-align: center; line-height: 1.5;
}
.thumb-add { vertical-align: top; margin-top: 8px; }
.thumb-add:hover { border-color: #1a6b5a; color: #1a6b5a; }
.file-note { font-size: 12px; color: #7a8b85; margin-top: 4px; word-break: break-all; }

/* ==========================================================================
   统一控件（全后台一致）
   —— 旧代码里散落大量内联 style（不同页面按钮/输入框/标签各写一套），
      这里一次性收成类名，视图里不再写内联样式。
   ========================================================================== */

/* ---------------- 表单控件基线：不放在 .form-group 里也长一样 ---------------- */
.pc-scroll input[type="text"],
.pc-scroll input[type="number"],
.pc-scroll input[type="date"],
.pc-scroll input[type="month"],
.pc-scroll input[type="password"],
.pc-scroll input[type="search"],
.pc-scroll select,
.pc-scroll textarea,
.ea-modal input[type="text"],
.ea-modal input[type="number"],
.ea-modal input[type="date"],
.ea-modal input[type="month"],
.ea-modal input[type="password"],
.ea-modal select,
.ea-modal textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  max-width: 100%;
}
.pc-scroll input:focus,
.pc-scroll select:focus,
.pc-scroll textarea:focus,
.ea-modal input:focus,
.ea-modal select:focus,
.ea-modal textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.12);
}

/* 搜索框内部的 input 不要边框（覆盖上面的基线） */
.pc-scroll .search-bar input,
.ea-modal .search-bar input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 14px;
}

/* ---------------- 面板标题行 ---------------- */
.pc-panel.flush { padding: 0; }
.pc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pc-panel.flush > .pc-panel-head { padding: 13px 16px; margin-bottom: 0; }
.pc-panel-head h4 { margin: 0; }
.pc-panel-head .note { margin-left: 8px; }

/* 标题旁的小灰注（面板标题 / 表单 label 通用） */
.note {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: 7px;
}

/* 文字色助手（统计卡内的小字说明等） */
.t-teal { color: var(--teal); }
.t-blue { color: var(--blue); }
.t-orange { color: var(--accent); }
.t-mute { color: var(--ink-mute); }

.ea-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ea-head-tools > label { font-size: 13px; color: var(--ink-mute); }
.ea-head-tools > select { min-width: 180px; }

/* ---------------- 页顶条（页内 tab + 全局工具，两个 tab 共用） ---------------- */
.ea-pagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
}

/* 页内 tab（分段控件）：底色要够实，否则在截图/低分屏上等于没样式 */
.ea-seg {
  display: inline-flex;
  gap: 3px;
  background: #e7edf1;
  padding: 3px;
  border: 1px solid #dbe3e9;
  border-radius: 11px;
}
.ea-seg a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.ea-seg a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.65); }
.ea-seg a.on {
  background: var(--surface);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.16);
}

/* 行内「标签 + 控件」 */
.ea-field { display: inline-flex; align-items: center; gap: 8px; }
.ea-field > label { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.ea-field > select { min-width: 170px; }

/* ---------------- 统计卡：只用数值颜色区分，不加左侧色条 ---------------- */
.pc-stat.tone-teal .n { color: var(--teal); }
.pc-stat.tone-blue .n { color: var(--blue); }
.pc-stat.tone-orange .n { color: var(--accent); }

/* ---------------- 筛选操作行 / 日期区间 / 同排字段 ---------------- */
.ea-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ea-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ea-date-range { display: flex; align-items: center; gap: 8px; }
.ea-date-range input { flex: 1; min-width: 0; }
.ea-date-range .tilde { color: var(--ink-mute); }
.ea-inline-fields { display: flex; align-items: center; gap: 8px; }
.ea-inline-fields > input,
.ea-inline-fields > select { flex: 1; min-width: 0; }
.ea-inline-fields > .w12 { flex: 1.2; }

/* 隐藏（替代内联 display:none） */
.ea-hidden { display: none; }

/* ---------------- 表格单元格辅助 ---------------- */
.pc-table td.cell-right { text-align: right; font-weight: 700; }
.pc-table td.cell-nowrap { white-space: nowrap; }
.pc-table td .ea-empty {
  padding: 24px 10px;
  border: none;
  background: transparent;
}
.pc-table a.inline-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  margin-right: 6px;
}
.pc-table a.inline-link:last-child { margin-right: 0; }
.pc-table a.inline-link:hover { text-decoration: underline; }

/* ==========================================================================
   月历（div 网格，不套 pc-table）
   —— 套 pc-table 会带上灰表头 / hover / 指针样式，且 td.empty 太淡像破了洞。
   ========================================================================== */
.ea-cal {
  background: var(--surface);
}
.ea-cal-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.ea-cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f7f9fa;
  border-bottom: 1px solid var(--line);
}
.ea-cal-head span {
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
}
.ea-cal-head span.we { color: #b45309; }

.ea-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.ea-cal-cell {
  position: relative;
  min-height: 82px;
  padding: 7px 8px 9px;
  border-right: 1px solid #f0f3f5;
  border-bottom: 1px solid #f0f3f5;
  display: flex;
  flex-direction: column;
}
.ea-cal-cell:nth-child(7n) { border-right: none; }
.ea-cal-grid > .ea-cal-cell:nth-last-child(-n + 7) { border-bottom: none; }
.ea-cal-cell.mute { background: #f8fafb; }
.ea-cal-cell.mute .d { color: #c7cfd6; font-size: 12px; }
.ea-cal-cell.we:not(.mute) { background: #fef8f1; }

/* 日号：圆形标记，便于 today / 选中态叠加 */
.ea-cal-cell .d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex: 0 0 auto;
}
.ea-cal-cell.today .d {
  color: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.ea-cal-cell.sel { background: var(--teal-soft); }
.ea-cal-cell.sel .d {
  background: var(--teal);
  color: #fff;
  box-shadow: none;
}

/* 当天金额小卡（有账才算） */
.ea-cal-amt {
  display: block;
  margin-top: auto;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--teal-soft);
  text-decoration: none;
  transition: background 0.15s;
}
.ea-cal-amt:hover { background: #d6ebe5; }
/* 选中格里的小卡改白底，否则和格子底色撞在一起分不出 */
.ea-cal-cell.sel .ea-cal-amt { background: #fff; }
.ea-cal-cell.sel .ea-cal-amt:hover { background: #f4faf8; }
.ea-cal-amt b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.25;
}
.ea-cal-amt em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-mute);
  line-height: 1.3;
}

/* 日历月份导航 */
.ea-cal-nav { display: flex; align-items: center; gap: 12px; }
.ea-cal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.ea-cal-title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 6px;
  letter-spacing: 0;
}
.ea-icon-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-soft);
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ea-icon-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.ea-month-input { width: 138px !important; text-align: center; font-weight: 600 !important; }

/* 日历下方的月合计条（跟日历同宽同框，比 4 张独立卡更清爽） */
.ea-monthbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}
.ea-monthbar > div {
  padding: 12px 18px;
  border-right: 1px solid #eef2f1;
}
.ea-monthbar > div:last-child { border-right: none; }
.ea-monthbar span {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.ea-monthbar b {
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
@media (max-width: 760px) {
  .ea-monthbar { grid-template-columns: repeat(2, 1fr); }
  .ea-monthbar > div:nth-child(2n) { border-right: none; }
}

/* ---------------- 近几个月走势（条形图，替代文字堆） ---------------- */
.ea-bars { display: flex; flex-direction: column; gap: 11px; }
.ea-bar-row {
  display: grid;
  grid-template-columns: 76px 1fr 96px;
  align-items: center;
  gap: 14px;
}
.ea-bar-row .m { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.ea-bar-row .track {
  display: flex;
  height: 10px;
  border-radius: 6px;
  background: #eef2f4;
  overflow: hidden;
}
.ea-bar-row .track i { display: block; height: 100%; }
.ea-bar-row .track i.p { background: var(--blue); }
.ea-bar-row .track i.w { background: var(--accent); }
.ea-bar-row .v {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ea-bar-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}
.ea-bar-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.ea-bar-legend i.p { background: var(--blue); }
.ea-bar-legend i.w { background: var(--accent); }

/* ---------------- 统计卡：加色点 + ¥ 缩小，四张节奏一致 ---------------- */
.pc-stat .l {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.pc-stat .l::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e0;
  flex: 0 0 auto;
}
.pc-stat.tone-teal .l::before { background: var(--teal); }
.pc-stat.tone-blue .l::before { background: var(--blue); }
.pc-stat.tone-orange .l::before { background: var(--accent); }
.pc-stat .n { letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.pc-stat .n small {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-right: 1px;
}
.pc-stat .n .unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-left: 4px;
}

/* ---------------- 弹层宽度修饰 ---------------- */
.ea-modal.wide { max-width: 660px; }
.ea-modal.narrow { max-width: 460px; }
.ea-modal .pc-form-grid { margin-top: 14px; }
.ea-modal .ea-field-note { margin-bottom: 2px; }

/* ==========================================================================
   设计升级层 v2 —— 统一视觉语言
   问题：页面是「白框套白框」（页顶条 / 查询卡 / 统计卡 / 明细卡 全是同款
        1px 灰边 + 白底 + 12px 圆角），白与白之间只靠一根线区分，显得又平又挤；
        按钮大小不一、数值不等宽、表头没存在感。
   做法：本段在文件末尾，覆盖 admin.css / common.css 的基础定义 ——
        给卡片加轻阴影形成层次、给数字换等宽字体、给控件统一尺寸，
        只增强观感不改结构，其他后台页面同样受益。
   ========================================================================== */

:root {
  --e1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 7px -1px rgba(16, 24, 40, 0.09);
  --e2: 0 2px 4px -1px rgba(16, 24, 40, 0.05), 0 6px 16px -4px rgba(16, 24, 40, 0.10);
  --e3: 0 12px 32px -10px rgba(16, 24, 40, 0.16), 0 4px 10px -4px rgba(16, 24, 40, 0.08);
  --ring: 0 0 0 3px rgba(26, 107, 90, 0.13);
  --line-soft: #edf1f4;
  --line-head: #e5ebf0;
  --num: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* 内容区留白略放大，卡片之间才「透得过气」 */
.ea-shell .pc-scroll { padding: 24px 30px 64px; }
.ea-shell .pc-main { background: #eef1f6; }

/* ---------------- 页面标题区（每个页面的第一屏锚点） ---------------- */
.ea-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.ea-title h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--ink);
}
.ea-title p {
  margin-top: 7px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.ea-title .ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------- 面板：从「白框」变成「浮层」 ---------------- */
.pc-panel {
  border-color: var(--line-soft);
  border-radius: 14px;
  padding: 20px 22px 22px;
  margin-bottom: 18px;
  box-shadow: var(--e1);
}
.pc-panel h4 { font-size: 14.5px; letter-spacing: -0.1px; }

/* 面板标题行下加一根分隔线，标题与内容不再糊在一起 */
.pc-panel-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.pc-panel.flush > .pc-panel-head { padding: 15px 18px; margin-bottom: 0; }

/* ---------------- 按钮：统一高度 + 明确分级 + 反馈 ---------------- */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.pc-btn:active { transform: translateY(1px); }
.pc-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(196, 92, 38, 0.28);
}
.pc-btn-primary:hover { background: #ae4f1d; }
.pc-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pc-btn-ghost:hover { border-color: #c2cdd8; color: var(--ink); background: #fbfcfd; }

/* ---------------- 页顶条 / 分段 tab ---------------- */
.ea-pagebar {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-color: var(--line-soft);
  box-shadow: var(--e1);
}
.ea-seg { background: #eef2f5; border-color: #e2e9ee; }
.ea-seg a.on { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }

/* ---------------- 筛选条：一体成型，查询靠右 ---------------- */
.ea-filter { padding: 16px 20px 18px; }
.ea-filter-grid {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.ea-filter-item { display: flex; flex-direction: column; gap: 7px; min-width: 176px; }
.ea-filter-item > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.ea-filter-item.grow { flex: 0 1 auto; }
.ea-filter-item .ea-date-range input { flex: none; width: 152px; min-width: 0; }
.ea-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ea-filter-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}
.ea-filter-note b { color: var(--ink-soft); font-weight: 600; }

/* 输入类控件与按钮等高、圆角一致 */
.pc-scroll input[type="text"],
.pc-scroll input[type="number"],
.pc-scroll input[type="date"],
.pc-scroll input[type="month"],
.pc-scroll input[type="search"],
.pc-scroll select { height: 38px; padding: 0 12px; border-radius: 10px; }
.pc-scroll textarea { border-radius: 10px; }
.ea-modal input[type="text"],
.ea-modal input[type="number"],
.ea-modal input[type="date"],
.ea-modal input[type="month"],
.ea-modal select { height: 38px; padding: 0 12px; border-radius: 10px; }

/* ---------------- 统计卡：主次分明、数值等宽 ---------------- */
.pc-stats { gap: 16px; margin-bottom: 18px; }
.pc-stat {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 17px 20px 15px;
  box-shadow: var(--e1);
  transition: box-shadow 0.18s, transform 0.18s;
}
.pc-stat:hover { box-shadow: var(--e2); transform: translateY(-1px); }
.pc-stat .l {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 11px;
  gap: 8px;
}
.pc-stat .l::before { width: 7px; height: 7px; border-radius: 3px; }
.pc-stat .n {
  font-family: var(--num);
  font-size: 30px;
  letter-spacing: -0.7px;
}
.pc-stat .n small { font-size: 16px; }
.pc-stat .sub {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
}
/* 合计卡做主色淡底，一眼看出哪张是主角 */
.pc-stat.tone-teal {
  background: linear-gradient(158deg, #f3fbf8 0%, #ffffff 60%);
  border-color: #dcefe9;
}

/* ---------------- 表格：表头成组、数值等宽、行有呼吸 ---------------- */
.pc-table-wrap { border-color: var(--line-soft); }
.pc-table th {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6b7a;
  background: #f7f9fb;
  border-bottom: 1px solid var(--line-head);
}
.pc-table td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); }
.pc-table tbody tr:last-child td { border-bottom: none; }
.pc-table tbody tr:hover { background: #f9fbfc; }
.pc-table td.cell-right {
  font-family: var(--num);
  font-size: 14.5px;
  letter-spacing: -0.3px;
}
.pc-table .name-cell { color: var(--ink); }
.pc-table a.inline-link { font-size: 12.5px; }

/* 操作列：改链接式（原来是两个并排按钮框，占宽又笨）
   td.ops 与 td.cell-ops 两套类名一起覆盖，保证各页操作列长得一样 */
.pc-table td.ops,
.pc-table td.cell-ops { white-space: nowrap; }
.pc-table td.ops a,
.pc-table td.ops button,
.pc-table td.cell-ops a,
.pc-table td.cell-ops button {
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  padding: 0 9px;
  text-decoration: none;
}
.pc-table td.ops > *:first-child,
.pc-table td.cell-ops > *:first-child { padding-left: 0; }
.pc-table td.ops > * + *,
.pc-table td.cell-ops > * + * { border-left: 1px solid var(--line); }
.pc-table td.ops button.danger,
.pc-table td.cell-ops button.danger { color: var(--danger); }
.pc-table td.ops a:hover,
.pc-table td.ops button:hover,
.pc-table td.cell-ops a:hover,
.pc-table td.cell-ops button:hover { text-decoration: underline; }

/* ---------------- 徽章 / 票据 chip ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.blue { background: #eaf1f9; color: var(--blue); }
.tag.orange { background: var(--accent-soft); color: var(--accent); }

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 23px;
  padding: 0 6px;
  margin-right: 4px;
  border-radius: 6px;
  background: #f2f5f8;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.file-chip:hover { background: #e7eef3; color: var(--teal); }

/* 分页说明行对齐卡片内边距 */
.ea-pager.between { margin-top: 16px; }
.ea-pager.between .ea-field-note { font-size: 12.5px; }

