* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5f8; color: #23272f; font-size: 14px;
}
a { text-decoration: none; color: inherit; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.side {
  width: 200px; flex-shrink: 0; background: #1e2b3f; color: #aeb9c9;
  display: flex; flex-direction: column; padding: 18px 0;
}
.brand { color: #fff; font-size: 17px; font-weight: 700; padding: 6px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand span { display: block; font-size: 12px; font-weight: 400; color: #7c8aa0; margin-top: 4px; }
.side nav { display: flex; flex-direction: column; padding-top: 10px; flex: 1; }
.side nav a { padding: 11px 20px; font-size: 14px; border-left: 3px solid transparent; }
.side nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.side nav a.on { color: #fff; background: #3b7cff; border-left-color: #9cc0ff; }
.side-foot { padding: 14px 20px 0; font-size: 12px; color: #7c8aa0; }

.main { flex: 1; padding: 22px 26px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.topbar h1 { font-size: 20px; }

/* 组件 */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(20,40,80,.06); }
.cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { flex: 1; min-width: 120px; padding: 18px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 700; color: #3b7cff; }
.stat .label { margin-top: 6px; color: #8a93a0; font-size: 13px; }
.block { padding: 16px 18px; margin-bottom: 18px; }
.block-title { font-weight: 600; margin-bottom: 12px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #8a93a0; font-weight: 500; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid #eef0f4; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #f4f5f8; vertical-align: middle; }
tr:hover td { background: #fafbfd; }
.muted { color: #9aa3b0; }
.salary { color: #ff6633; font-weight: 600; white-space: nowrap; }
.dot {
  display: inline-flex; width: 22px; height: 22px; border-radius: 6px; color: #fff;
  font-size: 12px; align-items: center; justify-content: center; vertical-align: middle; margin-right: 6px;
}

.badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.b-blue { background: #ebf1ff; color: #3b7cff; }
.b-green { background: #e9f8f2; color: #1f9f72; }
.b-orange { background: #fff1e8; color: #ff7a2c; }
.b-gray { background: #f1f2f5; color: #8a93a0; }

.btn {
  display: inline-block; background: #3b7cff; color: #fff; border: none; border-radius: 6px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #2f6ae8; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: #e64340; }
.btn-danger:hover { background: #d03633; }
.btn-reco { background: #1f9f72; }
.btn-reco:hover { background: #178a62; }
.btn-block { width: 100%; }
.btn-plain { background: #fff; color: #4a5260; border: 1px solid #d8dee8; }
.btn-plain:hover { background: #f4f6fa; }

.inp {
  padding: 8px 12px; border: 1px solid #d8dee8; border-radius: 6px; font-size: 13px;
  outline: none; background: #fff; color: #23272f; font-family: inherit;
}
.inp:focus { border-color: #3b7cff; }
.inp-sm { padding: 4px 8px; font-size: 12px; }
select.inp { padding-right: 6px; }

.searchbar { display: flex; gap: 10px; margin-bottom: 14px; }
.searchbar .inp { width: 260px; }
.inline { display: flex; gap: 6px; align-items: center; }
.ops { display: flex; gap: 6px; align-items: center; }
.ops form { display: inline; }

.pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 14px 0 2px; }

.flashes { margin-bottom: 14px; }
.flash { background: #e9f8f2; color: #1f9f72; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; }

/* 表单 */
.form-card { max-width: 860px; }
.form-card label { display: block; margin-bottom: 14px; color: #4a5260; font-size: 13px; }
.form-card .inp { width: 100%; margin-top: 6px; }
.form-card .chk { display: flex; align-items: center; gap: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 20px; }
textarea.inp { resize: vertical; font-family: inherit; }
.form-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* 登录页 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #3b7cff, #6fa3ff); }
.login-card { background: #fff; border-radius: 14px; padding: 38px 36px 26px; width: 340px; box-shadow: 0 12px 40px rgba(0,40,120,.25); }
.login-logo { text-align: center; font-size: 22px; font-weight: 700; color: #3b7cff; }
.login-sub { text-align: center; color: #9aa3b0; font-size: 13px; margin: 6px 0 20px; }
.login-card .inp { width: 100%; margin-bottom: 14px; }
.login-tip { text-align: center; color: #b6bcc8; font-size: 12px; margin-top: 14px; }
.login-card .flash { background: #fff1f0; color: #e64340; }

/* 微信文章导入 */
.article-box { margin-top: 2px; }
.article-box summary { cursor: pointer; color: #3b7cff; font-size: 13px; }
.article-box pre {
  margin-top: 10px; padding: 12px 14px; background: #f7f9fc; border-radius: 8px;
  font-size: 12px; line-height: 1.7; color: #4a5260;
  white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow-y: auto;
}

/* 首页推荐开关（职位/企业） */
.feed-toggle { display: flex; align-items: center; gap: 8px; margin-right: 12px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #b9c2cf; border-radius: 24px;
  transition: background .2s; cursor: pointer;
}
.switch .slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.switch input:checked + .slider { background: #3b7cff; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 轮播图管理 */
.thumb {
  width: 120px; height: 54px; object-fit: cover;
  border-radius: 6px; border: 1px solid #e8ebf1; display: block; background: #f7f9fc;
}
.upload-tools { display: flex; align-items: center; gap: 10px; margin: -6px 0 12px; }
.jump-label { font-weight: 600; margin-bottom: 8px; color: #23272f; }
.radio-row { display: flex; gap: 22px; margin-bottom: 14px; }
.radio-row .radio { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #4a5260; font-size: 13px; margin-bottom: 0; }
.jump-block { margin-bottom: 14px; padding: 12px 14px; background: #f7f9fc; border-radius: 8px; }
.jump-block label { margin-bottom: 10px; }
.jump-block label:last-child { margin-bottom: 0; }

/* 控制台（与小程序视觉对齐） */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.row2 .block { margin-bottom: 0; }
.stat .num.c-blue { color: #3b7cff; }
.stat .num.c-teal { color: #19c2b8; }
.stat .num.c-orange { color: #ff6633; }
.stat .num.c-amber { color: #f7a400; }
.stat .num.c-purple { color: #7c5cff; }
.small { font-size: 12px; font-weight: 400; }
.strong { font-weight: 700; }
.type-badge {
  display: inline-block; padding: 3px 12px; border-radius: 12px;
  font-size: 12px; white-space: nowrap;
}
@media (max-width: 900px) {
  .row2 { grid-template-columns: 1fr; }
}
