html, body { height: 100%; overflow: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
}

/* ========== 固定侧栏：仅内容区滚动 ========== */
.layui-layout-admin .layui-header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  width: auto;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: none;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.layui-layout-admin .layui-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 240px;
  background: #1d2a4f;
  overflow: hidden;
  z-index: 1002;
}
.layui-layout-admin .layui-side-scroll {
  width: 240px;
  height: calc(100% - 64px - 48px);
  overflow-x: hidden;
  overflow-y: auto;
}
.layui-layout-admin .layui-body {
  position: fixed;
  left: 240px;
  right: 0;
  top: 56px;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f5f7fa;
  padding: 20px 24px 24px;
  z-index: 1;
}
.layui-layout-admin .layui-footer { display: none; }

body.side-fold .layui-layout-admin .layui-side,
body.side-fold .layui-layout-admin .layui-side-scroll { width: 64px; }
body.side-fold .layui-layout-admin .layui-header,
body.side-fold .layui-layout-admin .layui-body { left: 64px; }
body.side-fold .side-brand span,
body.side-fold .layui-nav-tree cite { display: none !important; }

.side-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.side-brand .brand-cap { flex-shrink: 0; }
.side-fold {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ham-btn {
  width: 22px; height: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ham-btn span {
  display: block; height: 2px; background: rgba(255,255,255,0.75); border-radius: 1px;
}

.layui-layout-admin .layui-side .layui-nav-tree {
  width: 240px;
  background: transparent;
  padding: 10px 0;
}
.layui-nav-tree .layui-nav-item { padding: 4px 0; }
.layui-nav-tree .layui-nav-item > a {
  height: 44px;
  line-height: 44px;
  margin-right: 16px;
  padding: 0 0 0 22px !important;
  border-radius: 0 22px 22px 0;
  color: rgba(255,255,255,0.78) !important;
}
.layui-nav-tree .layui-nav-item > a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
}
.layui-nav-tree .layui-this {
  background: transparent !important;
}
.layui-nav-tree .layui-this > a,
.layui-nav-tree .layui-this > a:hover {
  background-color: #1890ff !important;
  color: #fff !important;
  border-radius: 0 22px 22px 0;
}
.layui-nav-tree .layui-nav-bar { display: none; }
.layui-nav-tree .layui-icon { margin-right: 10px; font-size: 16px; }

.header-crumb { color: #8c8c8c; font-size: 14px; }
.header-crumb i { margin: 0 8px; font-style: normal; color: #bfbfbf; }
.header-crumb strong { color: #1f2329; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-bell { position: relative; color: #595959; font-size: 18px; }
.header-bell .layui-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #f5222d;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}
.header-avatar {
  display: inline-block;
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ede9fe;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta b { font-size: 14px; color: #1f2329; font-weight: 600; }
.user-meta small { font-size: 12px; color: #8c8c8c; }
.header-user .layui-icon-down { font-size: 12px; color: #8c8c8c; }
.user-drop {
  display: none; position: absolute; right: 0; top: 44px;
  background: #fff; border-radius: 6px; min-width: 120px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12); padding: 6px 0; z-index: 20;
}
.header-user.open .user-drop { display: block; }
.user-drop a { display: block; padding: 8px 16px; color: #1f2329; }
.user-drop a:hover { background: #f5f5f5; }

.content { min-height: 100%; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.page-title { font-size: 20px; font-weight: 700; color: #1f2937; margin: 0; }

/* 数据统计卡片：六等分 */
.stat-cards {
  display: flex;
  width: 100%;
  gap: 1.2%;
  margin-bottom: 16px;
}
.stat-card {
  width: 15.466%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.stat-card .row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.stat-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-ico.blue { background: #dbeafe; color: #2563eb; }
.stat-ico.green { background: #dcfce7; color: #16a34a; }
.stat-ico.purple { background: #ede9fe; color: #7c3aed; }
.stat-ico.orange { background: #ffedd5; color: #ea580c; }
.stat-ico.sky { background: #e0f2fe; color: #0284c7; }
.stat-ico.cyan { background: #cffafe; color: #0891b2; }
.stat-card .k { color: #6b7280; font-size: 13px; }
.stat-card .n { font-size: 26px; font-weight: 700; color: #111827; line-height: 1.2; margin: 4px 0 0; }
.stat-card .trend { margin-top: 10px; font-size: 12px; color: #9ca3af; }
.stat-card .trend.up { color: #16a34a; }
.stat-card .trend.down { color: #ef4444; }

.chart-grid { display: flex; width: 100%; gap: 1.6%; }
.chart-left { width: 62%; }
.chart-right { width: 36.4%; }
.chart-panel {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  height: 360px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.chart-head h3 { font-size: 15px; margin: 0; color: #1f2937; }
.chart-head a { color: #1890ff; font-size: 13px; }
.chart-box { width: 100%; height: 300px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-bar select {
  height: 36px; min-width: 160px; padding: 0 28px 0 12px;
  border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: #8c8c8c;
}
.filter-search { position: relative; }
.filter-search input {
  height: 36px; width: 260px; padding: 0 12px 0 36px;
  border: 1px solid #d9d9d9; border-radius: 6px; background: #fff;
}
.filter-search .si { position: absolute; left: 12px; top: 9px; color: #bfbfbf; font-size: 16px; }
.filter-card {
  padding: 20px 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.apply-card {
  padding: 8px 8px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.status-tabs {
  display: flex; gap: 32px;
  border-bottom: 1px solid #f0f0f0;
  padding: 4px 16px 0;
  margin-bottom: 0;
}
.status-tab {
  padding: 14px 0 12px;
  color: #595959;
  font-size: 14px;
}
.status-tab.c-pending { color: #faad14; }
.status-tab.c-interview { color: #1890ff; }
.status-tab.c-passed { color: #52c41a; }
.status-tab.c-rejected { color: #f5222d; }
.status-tab.on {
  color: #1890ff;
  font-weight: 600;
  border-bottom: 2px solid #1890ff;
  margin-bottom: -1px;
}
.apply-card .layui-table { margin: 0; }
.apply-card .layui-table th {
  color: #262626;
  font-weight: 600;
  background: #fafafa;
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
}
.apply-card .layui-table td {
  height: 52px;
  padding: 12px 16px;
  color: #262626;
}
.apply-card .layui-table td, .apply-card .layui-table th {
  border: none; border-bottom: 1px solid #f0f0f0;
}
.panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.co-cell { display: flex; align-items: flex-start; gap: 12px; }
.co-meta { line-height: 1.6; }
.co-name { font-weight: 600; color: #1f2329; }
.co-sub { color: #8c8c8c; font-size: 12px; }
.logo-sq {
  width: 40px; height: 40px; border-radius: 8px; color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 4px; font-size: 12px;
}
.pill-green { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.pill-orange { background: #fff7e6; color: #faad14; border: 1px solid #ffe58f; }
.pill-red { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }
.pill-blue { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.pill-gray { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }
.link { color: #1890ff; margin-right: 12px; background: none; border: none; padding: 0; cursor: pointer; }
.link.danger { color: #f5222d; }
.job-num { color: #1890ff; font-weight: 600; }
.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px; color: #8c8c8c; font-size: 13px;
}
.pager .pages a, .pager .pages span {
  display: inline-block; min-width: 32px; height: 32px; line-height: 30px;
  text-align: center; margin-left: 8px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff;
}
.pager .pages .active { background: #1890ff; color: #fff; border-color: #1890ff; }
.pager-size {
  height: 32px; margin-left: 8px; padding: 0 8px;
  border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: #595959;
}
.more-wrap { position: relative; display: inline-block; }
.more-drop {
  display: none; position: absolute; right: 0; top: 22px;
  background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12);
  border-radius: 6px; min-width: 108px; z-index: 8; padding: 4px 0;
}
.more-wrap.open .more-drop { display: block; }
.more-drop a, .more-drop button {
  display: block; width: 100%; text-align: left; padding: 8px 16px;
  border: none; background: none; color: #1f2329;
}
.more-drop button.danger { color: #ff4d4f; }
.form-card { background: #fff; border-radius: 8px; padding: 24px; max-width: 760px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; color: #595959; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; height: 38px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 4px 11px;
}
.form-row textarea { height: auto; min-height: 90px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.kv span:first-child { color: #8c8c8c; }
.sec { margin-top: 16px; font-weight: 600; }
.empty { text-align: center; color: #8c8c8c; padding: 48px 0; }
.cards { display: flex; gap: 16px; margin-bottom: 16px; }
.card-stat {
  flex: 1; background: #fff; border-radius: 8px; padding: 18px 20px;
  display: flex; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.card-stat .k { color: #8c8c8c; font-size: 13px; }
.card-stat .n { font-size: 28px; font-weight: 600; margin: 6px 0 4px; }
.card-stat .t.up { color: #16a34a; font-size: 12px; }
.ico-round { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.ico-orange { background: #fff7e6; color: #d46b08; }
.ico-green { background: #f6ffed; color: #16a34a; }
.ico-blue { background: #e6f4ff; color: #1890ff; }
.tabs { display: flex; }
.tab { padding: 7px 16px; color: #8c8c8c; border: 1px solid #d9d9d9; background: #fff; }
.tab:first-child { border-radius: 6px 0 0 6px; }
.tab:last-child { border-radius: 0 6px 6px 0; }
.tab.on { color: #1890ff; border-color: #1890ff; }
.drawer {
  width: 380px; background: #fff; border-left: 1px solid #f0f0f0;
  padding: 16px 20px 24px; overflow: auto; display: none; flex-shrink: 0;
  position: fixed; right: 0; top: 56px; bottom: 0; z-index: 20;
}
.drawer.show { display: block; }
.drawer-close { float: right; border: none; background: none; font-size: 18px; color: #8c8c8c; }
.drawer-head { text-align: center; padding: 8px 0 16px; }
.drawer-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: #e6f4ff; color: #1890ff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 8px;
}
.match-box { border-radius: 6px; padding: 12px 14px; margin: 12px 0; font-size: 13px; }
.match-box.ok { background: #f6ffed; color: #389e0d; }
.match-box.fail { background: #fff2f0; color: #cf1322; }
.dash-links { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dash-link { flex: 1; min-width: 180px; background: #fff; border-radius: 8px; padding: 18px 20px; }
.dash-link h3 { font-size: 15px; margin-bottom: 6px; }
.dash-link p { color: #8c8c8c; font-size: 13px; }

/* 登录 */
.login-page { min-height: 100vh; display: flex; overflow: auto; }
.login-aside {
  width: 42%;
  background: linear-gradient(160deg, #001529 0%, #003a8c 55%, #1890ff 140%);
  color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 64px;
}
.login-aside h1 { font-size: 32px; margin: 16px 0 12px; }
.login-aside p { color: rgba(255,255,255,0.72); line-height: 1.7; }
.login-main { flex: 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.login-card { width: 380px; }
.login-card h2 { font-size: 22px; margin-bottom: 8px; }
.login-card .sub { color: #8c8c8c; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: #595959; }
.field input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #d9d9d9; border-radius: 6px;
}
.btn-login {
  width: 100%; height: 40px; border: none; border-radius: 6px;
  background: #1890ff; color: #fff; font-weight: 600;
}
.login-tip { margin-top: 16px; color: #8c8c8c; font-size: 12px; }

.layui-btn-normal { background-color: #1890ff; height: 36px; line-height: 36px; padding: 0 18px; }
.layui-btn-primary { background: #fff; border-color: #d9d9d9; color: #595959; height: 36px; line-height: 36px; padding: 0 18px; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 15px; border-radius: 6px;
  border: 1px solid #d9d9d9; background: #fff; cursor: pointer;
}
.btn-filter { color: #4b5563; }

@media (max-width: 1200px) {
  .stat-cards { flex-wrap: wrap; }
  .stat-card { width: 32.5%; margin-bottom: 12px; }
  .chart-grid { flex-wrap: wrap; }
  .chart-left, .chart-right { width: 100%; margin-bottom: 12px; }
}
