* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #22272e; background: #fff; }
.hidden { display: none !important; }
a { color: inherit; }

/* 登录 */
.login { min-height: 100%; display: flex; align-items: center; justify-content: center; background: #f6f7f9; padding: 24px; }
.login-box { width: 100%; max-width: 360px; background: #fff; border: 1px solid #e6eaee; border-radius: 14px; padding: 32px 28px; }
.login-box h1 { font-size: 22px; margin: 0 0 4px; }
.login-box p { margin: 0 0 22px; color: #7f8b98; font-size: 14px; }
.login-box label { display: block; font-size: 13px; color: #5b6875; margin-bottom: 14px; }
.login-box input { width: 100%; margin-top: 6px; padding: 11px 12px; font-size: 15px; border: 1px solid #dfe5ea; border-radius: 8px; }
.login-box input:focus { outline: none; border-color: #43607f; box-shadow: 0 0 0 3px rgba(67,96,127,.12); }
.login-box button { width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; border: 0; border-radius: 8px; background: #24313d; color: #fff; cursor: pointer; }
.login-box button:disabled { opacity: .6; cursor: default; }
.err { color: #c0392b; font-size: 13px; min-height: 20px; margin-top: 8px; }

/* 布局 */
.app { display: flex; min-height: 100%; }
aside { width: 210px; background: #171c22; color: #aab4c0; padding: 22px 14px; flex: none; display: flex; flex-direction: column; }
aside .brand { font-size: 15px; font-weight: 600; color: #fff; padding: 0 10px 22px; letter-spacing: .5px; }
aside a { display: block; padding: 8px 10px; border-radius: 8px; color: #aab4c0; text-decoration: none; font-size: 14px; margin-bottom: 2px; }
aside a.on { background: #252d36; color: #fff; }
aside .me { margin-top: auto; padding: 14px 10px 8px; font-size: 12px; color: #7f8b98; border-top: 1px solid #252d36; line-height: 1.5; }
aside .me b { color: #d5dde5; font-size: 13px; display: block; }
aside .logout { font-size: 12px; color: #7f8b98; padding: 6px 10px; }

main { flex: 1; padding: 36px 40px; max-width: 980px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
h1 { font-size: 26px; margin: 0; font-weight: 600; }
.sub { color: #7f8b98; font-size: 13px; margin: 4px 0 0; }

.btn { padding: 9px 16px; border-radius: 8px; border: 1px solid #24313d; background: #24313d; color: #fff; font-size: 14px; cursor: pointer; }
.btn.ghost { background: #fff; color: #44576a; border-color: #dfe5ea; }
.btn.danger { background: #fff; color: #b03a2e; border-color: #e8c4bf; }
.btn:disabled { opacity: .55; cursor: default; }

.search { margin: 26px 0 10px; }
.search input { width: 100%; padding: 14px 16px; font-size: 16px; border: 1px solid #e3e8ee; border-radius: 10px; background: #fff; }
.search input:focus { outline: none; border-color: #43607f; box-shadow: 0 0 0 3px rgba(67,96,127,.12); }
.chips { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { padding: 5px 13px; border-radius: 8px; font-size: 13px; color: #5b6875; cursor: pointer; border: 1px solid transparent; background: none; }
.chip.on { background: #f0f4f8; color: #24313d; border-color: #e3e8ee; font-weight: 600; }

.list { border-top: 1px solid #eef1f5; }
.row { display: flex; align-items: center; gap: 16px; padding: 15px 6px; border-bottom: 1px solid #eef1f5; cursor: pointer; }
.row:hover { background: #fafbfc; }
.ava { width: 36px; height: 36px; border-radius: 50%; background: #eef1f5; color: #5b6875; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.ava.big { width: 56px; height: 56px; font-size: 20px; }
.who { width: 200px; min-width: 0; }
.who b { display: block; font-size: 15px; font-weight: 600; }
.who span { font-size: 12px; color: #8f9aa6; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept { width: 84px; font-size: 13px; color: #5b6875; }
.joined { width: 120px; font-size: 13px; color: #8f9aa6; }
.st { width: 70px; font-size: 13px; }
.on-c { color: #2f8a55; } .tr-c { color: #b4811f; } .off-c { color: #9aa4ae; }
.go { margin-left: auto; color: #c3ccd6; }
.none { padding: 50px 6px; color: #8f9aa6; }

/* 详情 */
.back { display: inline-block; color: #7f8b98; text-decoration: none; font-size: 14px; margin-bottom: 20px; }
.detail-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid #eef1f5; }
.detail-head h1 { font-size: 24px; }
.actions { margin-left: auto; display: flex; gap: 8px; }
.fields { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin: 8px 0 0; }
.fields dt { color: #8f9aa6; font-size: 13px; padding: 13px 0; border-bottom: 1px solid #f5f7f9; }
.fields dd { margin: 0; padding: 13px 0; border-bottom: 1px solid #f5f7f9; font-size: 15px; }

/* 页内编辑 */
.title-block { min-width: 0; }
.fields-edit { margin-top: 4px; }
.fe-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f5f7f9; }
.fe-row > label { color: #8f9aa6; font-size: 13px; }
.fe-row input, .fe-row select { width: 100%; padding: 10px 12px; font-size: 15px; border: 1px solid #dfe5ea; border-radius: 8px; background: #fff; color: #22272e; }
.fe-row input:focus, .fe-row select:focus { outline: none; border-color: #43607f; box-shadow: 0 0 0 3px rgba(67,96,127,.12); }
.fe-err { color: #c0392b; font-size: 13px; min-height: 20px; padding-top: 8px; }

@media (max-width: 820px) {
  aside { display: none; }
  main { padding: 22px 18px; }
  .who { width: auto; flex: 1; }
  .dept, .joined { display: none; }
  .fe-row { grid-template-columns: 1fr; gap: 4px; }
  .detail-head { flex-wrap: wrap; }
  .actions { width: 100%; margin-left: 0; }
}
