* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2329;
  background: #f5f6f8;
  font-size: 13px;
}
.app { display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏 */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: #fff; border-right: 0.5px solid #e5e6eb;
  padding: 16px 0; display: flex; flex-direction: column;
}
.brand { font-size: 16px; font-weight: 600; color: #3370ff; margin-bottom: 16px; padding: 0 18px; display: flex; align-items: center; gap: 10px; }
.brand-text { line-height: 1.2; }
.logo { display: inline-block; width: 28px; height: 28px; background: url('/static/logo.jpg') center/contain no-repeat; border-radius: 6px; flex-shrink: 0; }
#nav { flex: 1; overflow-y: auto; padding: 0 12px; }

/* 右侧整体布局 */
.layout-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-header {
  height: 56px; background: #fff; border-bottom: 0.5px solid #e5e6eb;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0;
}
.tab-bar { flex: 1; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tab-bar::-webkit-scrollbar { height: 4px; }
.tab-bar::-webkit-scrollbar-thumb { background: #d9dce0; border-radius: 2px; }
.tab-item {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 14px; border-radius: 6px; font-size: 13px; color: #4e5969;
  background: #f2f3f5; border: 0.5px solid #e5e6eb; cursor: pointer; transition: all .15s;
  max-width: 160px;
}
.tab-item:hover { background: #fff0f2; color: #ff2442; border-color: #ffd6e1; }
.tab-item.active { background: #ff2442; color: #fff; border-color: #ff2442; }
.tab-item .tab-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab-item .tab-close { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }
.tab-item .tab-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.tab-item.active .tab-close:hover { background: rgba(255,255,255,0.3); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.filter-bar {
  background: #fff; border-bottom: 0.5px solid #e5e6eb;
  padding: 14px 24px; flex-shrink: 0;
}
.main { flex: 1; padding: 20px 24px; overflow: auto; background: #f5f6f8; }

/* 用户区 */
.user { display: flex; align-items: center; gap: 10px; color: #5f5e5a; font-size: 12px; padding: 14px 18px 0; margin-top: 8px; border-top: 0.5px solid #f0f1f3; }
.user-info { flex: 1; min-width: 0; }
.user-info #userName { font-size: 13px; font-weight: 500; color: #1f2329; }
.user-role { font-size: 11px; color: #8f959e; margin-top: 2px; }
.user-actions { display: flex; gap: 8px; }
.user-actions .link { font-size: 12px; margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #eaf1ff; color: #3370ff; text-align: center; line-height: 32px; font-size: 13px; flex-shrink: 0; }

/* 顶部条旧版兼容 */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.topbar h1 { font-size: 18px; font-weight: 600; margin: 0; }
.btn-primary { background: #3370ff; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.btn-primary:hover { background: #2861e0; }
.btn { background: #fff; color: #5f5e5a; border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }

/* 工具栏 */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.search { flex: 1; border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 8px 12px; font-size: 13px; background: #fff; }
.select { border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #5f5e5a; background: #fff; }

/* 表格 */
.table-wrap { background: #fff; border: 0.5px solid #e5e6eb; border-radius: 10px; overflow: hidden; overflow-x: auto; }
.table { width: 100%; min-width: 1200px; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 11px 14px; background: #f7f8fa; color: #8f959e; font-weight: 500; border-bottom: 0.5px solid #eef0f2; }
.table td { padding: 11px 14px; border-bottom: 0.5px solid #f3f4f6; color: #1f2329; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr.row-done { background: #e8f6ee !important; }
.empty { text-align: center; color: #8f959e; padding: 40px 0; }
.link { background: none; border: none; color: #3370ff; cursor: pointer; font-size: 13px; padding: 0; margin-right: 10px; }
.link.danger { color: #d8504a; }

/* 状态标签 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 11px; font-size: 12px; }
.badge.g { background: #e8f6ee; color: #1d9e75; }
.badge.a { background: #fdf2dc; color: #ba7517; }
.badge.b { background: #eaf1ff; color: #185fa5; }
.badge.p { background: #efeafd; color: #534ab7; }
.badge.r { background: #fcebeb; color: #a32d2d; }

/* 概览卡片 */
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.card { background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 4px 16px rgba(31,35,41,.08); transform: translateY(-1px); }
.card .label { color: #8f959e; font-size: 13px; margin-bottom: 8px; }
.card .num { font-size: 28px; font-weight: 600; color: #1f2329; }
.card .sub { font-size: 12px; color: #8f959e; margin-top: 6px; }

/* 弹窗 */
.overlay { position: fixed; inset: 0; background: rgba(31,35,41,0.35); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { width: 420px; max-width: 92vw; background: #fff; border-radius: 12px; padding: 22px; }
.modal.wide { width: 560px; }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.fld label { display: block; color: #8f959e; margin-bottom: 6px; font-size: 13px; }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 9px 11px; font-size: 13px; background: #fff; color: #1f2329; font-family: inherit;
}
.fld textarea { height: 60px; resize: vertical; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* 花名册弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(31,35,41,0.35); display: flex; align-items: center; justify-content: center; z-index: 60; }
.modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: #1f2329; margin-bottom: 16px; }
.modal-close { cursor: pointer; font-size: 22px; line-height: 1; color: #8f959e; padding: 0 4px; }
.modal-close:hover { color: #1f2329; }
.modal-body { max-height: 64vh; overflow-y: auto; }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rf-grid label { display: flex; flex-direction: column; font-size: 13px; color: #4e5969; gap: 6px; }
.rf-grid label input, .rf-grid label select { height: 34px; border: 0.5px solid #d9dce0; border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; color: #1f2329; width: 100%; box-sizing: border-box; }
.rf-grid label input:focus, .rf-grid label select:focus { outline: none; border-color: #4a90e2; }
.rf-req::before { content: '*'; color: #e34d59; margin-right: 2px; }
.rf-req-wide { grid-column: 1 / -1; }
.roster-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* 组织架构 */
.org-tree { font-size: 14px; color: #1f2329; padding: 4px 0; }
.org-node { margin: 2px 0; }
.org-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.org-row[data-toggle] { cursor: pointer; }
.org-row[data-toggle]:hover { background: #f5f6f8; }
.org-caret { width: 16px; text-align: center; color: #8f959e; font-size: 12px; }
.org-name { font-weight: 500; }
.org-root { font-size: 16px; font-weight: 700; }
.org-dept { font-size: 15px; font-weight: 600; color: #3370ff; }
.org-count { font-size: 12px; color: #8f959e; background: #f2f3f5; border-radius: 10px; padding: 1px 8px; }
.org-children { margin-left: 16px; border-left: 1px dashed #e5e6eb; padding-left: 8px; }
.org-node.collapsed > .org-children { display: none; }
.org-person { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 30px; font-size: 13px; color: #4e5969; }
.op-name { font-weight: 500; color: #1f2329; }
.op-flower { color: #8f959e; }
.op-pos { margin-left: auto; font-size: 12px; color: #3370ff; background: #eaf1ff; border-radius: 10px; padding: 1px 8px; }
.org-empty { padding: 6px 10px 6px 30px; color: #b0b4bb; font-size: 13px; }

/* 登录页 —— 小红书风格：红粉渐变、白色大圆角卡片、标签化装饰 */
.login-screen { position: fixed; inset: 0; display: flex; z-index: 100; overflow-y: auto; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: linear-gradient(90deg, #ff2442 0%, #ff4266 18%, #ff6b8a 34%, #ff8aa8 50%, #ffb3c5 64%, #ffc9d8 78%, #ffd6e1 90%, #ffe4ec 100%); }
.login-left {
  flex: 1.1; min-width: 340px;
  background: transparent;
  color: #fff; padding: 7vh 64px 64px;
  display: flex; flex-direction: column; justify-content: flex-start; position: relative;
}
.login-badge {
  position: absolute; top: 32px; left: 32px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; letter-spacing: 1px;
}
.login-brand { display: flex; align-items: center; gap: 26px; margin-bottom: 84px; }
.login-logo {
  display: inline-block; width: 120px; height: 120px; flex-shrink: 0;
  background: url('/static/logo.jpg') center/contain no-repeat; border-radius: 30px;
  box-shadow: 0 18px 51px rgba(0,0,0,0.22);
}
.login-brand-name { font-size: 78px; font-weight: 700; letter-spacing: 2px; line-height: 1.15; }
.login-hero-right {
  position: absolute; top: 50%; right: 0; width: 50%;
  box-sizing: border-box; padding-left: 12%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 4; pointer-events: none;
}
.login-slogan { font-size: 72px; font-weight: 800; line-height: 1.15; margin-bottom: 51px; max-width: 780px; text-align: center; }
.login-tags { display: grid; grid-template-columns: repeat(2, auto); gap: 16px 20px; justify-content: center; }
.login-tag {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 30px; border-radius: 33px; font-size: 23px; font-weight: 500; text-align: center;
}
/* 登录页互动角色 */
.login-people {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 40px;
  padding: 0 40px 0; pointer-events: auto; z-index: 3;
}
.person { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.person-svg { width: auto; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.p-tall .person-svg { height: 560px; }
.p-fat  .person-svg { height: 520px; }
.p-short .person-svg { height: 400px; }
.person:hover .person-svg { transform: scale(1.05) translateY(-16px); filter: drop-shadow(0 16px 28px rgba(0,0,0,0.25)); }
.person-bubble {
  position: absolute; right: -40px; top: -15px; left: auto;
  transform: translateX(18px) scale(0.85);
  transform-origin: left bottom;
  background: #fff; color: #ff2442; font-size: 32px; font-weight: 700;
  padding: 28px 44px; border-radius: 50px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
.person-bubble::after {
  content: ''; position: absolute; left: 28%; bottom: -12px; top: auto; right: auto; transform: none;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 12px solid #fff; border-bottom: none;
}
.p-tall .person-bubble { top: -140px; right: -100px; }
.p-fat .person-bubble { top: -130px; right: -95px; }
.p-short .person-bubble { top: -120px; right: -90px; }
.person:hover .person-bubble { opacity: 1; transform: translateX(0) scale(1); }
.lk-pupil { transition: transform .06s linear; }
@keyframes personBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.person { animation: personBob 2.8s ease-in-out infinite; }
.p-tall { animation-delay: 0s; }
.p-fat { animation-delay: .7s; }
.p-short { animation-delay: 1.4s; }
.person:hover { animation-play-state: paused; }
/* 登录模式：小人点亮 / 锁定 */
.person.locked { opacity: 0.38; filter: grayscale(0.6); cursor: default; }
.person.locked .person-svg { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12)); }
.person.active { cursor: pointer; }
.person.active .person-bubble { opacity: 1; transform: translateX(0) scale(1); }
@keyframes personBlink {
  0%, 45%, 55%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}
.eye { transform-origin: center; animation: personBlink 4.5s ease-in-out infinite; }
.p-fat .eye { animation-delay: .5s; }
.p-short .eye { animation-delay: 1s; }
.login-right {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  z-index: 5;
  pointer-events: none;
}
.login-right > * { pointer-events: auto; }
.login-card {
  position: relative; z-index: 1;
  width: 462px; max-width: 100%;
  background: #fff; border-radius: 26px;
  padding: 48px 44px;
  box-shadow: 0 22px 66px rgba(255,36,66,0.12), 0 4px 14px rgba(0,0,0,0.04);
}
.login-form { margin: 0; padding: 0; }
.login-card-top { text-align: center; margin-bottom: 35px; }
.login-avatar {
  width: 80px; height: 80px; border-radius: 20px;
  background: url('/static/logo.jpg') center/contain no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin: 0 auto 18px;
}
.login-title { font-size: 26px; font-weight: 700; color: #1f2329; margin-bottom: 7px; }
.login-subtitle { font-size: 14px; color: #8f959e; }
.login-input {
  width: 100%;
  border: 1px solid #e5e6eb; border-radius: 13px;
  padding: 15px 16px; font-size: 15px; margin-bottom: 18px;
  background: #fff; color: #1f2329; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.login-input:focus { outline: none; border-color: #ff2442; box-shadow: 0 0 0 3px rgba(255,36,66,0.08); }
.login-input::placeholder { color: #b7bbc0; }
.login-btn {
  width: 100%; border: none; border-radius: 13px;
  background: linear-gradient(135deg, #ff2442 0%, #ff5a7f 100%);
  color: #fff; font-size: 16px; font-weight: 600;
  padding: 15px; cursor: pointer; margin-top: 4px;
  box-shadow: 0 9px 22px rgba(255,36,66,0.25);
  transition: transform .1s, box-shadow .15s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(255,36,66,0.32); }
.login-tip { text-align: center; color: #b7bbc0; font-size: 13px; margin-top: 22px; }
.btn-wechat {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: none; border-radius: 13px; cursor: pointer;
  background: #07c160; color: #fff; font-size: 16px; font-weight: 600;
  padding: 15px; margin-top: 12px;
  box-shadow: 0 9px 22px rgba(7,193,96,0.25);
  transition: transform .1s, box-shadow .15s;
}
.btn-wechat:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(7,193,96,0.32); }
.wx-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: #fff; color: #07c160;
  border-radius: 50%; font-size: 13px; font-weight: 700;
}
.lerr { color: #ff2442; font-size: 13px; min-height: 16px; margin: -4px 0 10px; font-weight: 500; }

@media (max-width: 820px) {
  .login-screen { flex-direction: column; background: linear-gradient(180deg, #ff2442 0%, #ff4266 16%, #ff6b8a 32%, #ff8aa8 48%, #ffb3c5 62%, #ffc9d8 76%, #ffd6e1 88%, #ffe4ec 100%); }
  .login-left { min-height: 220px; padding: 30px 24px 24px; align-items: center; text-align: center; justify-content: flex-start; }
  .login-hero-right { position: static; transform: none; width: auto; align-items: center; margin: 0 0 20px; }
  .login-badge { left: 50%; transform: translateX(-50%); }
  .login-brand { flex-direction: column; gap: 15px; margin-bottom: 30px; }
  .login-logo { width: 72px; height: 72px; border-radius: 18px; }
  .login-brand-name { font-size: 33px; letter-spacing: 1px; }
  .login-slogan { font-size: 43px; margin-bottom: 24px; text-align: center; }
  .login-tags { grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px 14px; }
  .login-tag { font-size: 13px; padding: 7px 15px; }
  .login-right { padding: 24px 16px; justify-content: center; }
  .login-card { width: 100%; border-radius: 22px; padding: 36px 26px; }
  .login-people { gap: 14px; padding: 0 16px 0; }
  .p-tall .person-svg { height: 340px; }
  .p-fat  .person-svg { height: 318px; }
  .p-short .person-svg { height: 244px; }
  .person-bubble { font-size: 18px; padding: 16px 26px; border-radius: 30px; }
  .p-tall .person-bubble { top: -85px; right: -55px; }
  .p-fat .person-bubble { top: -78px; right: -50px; }
  .p-short .person-bubble { top: -70px; right: -45px; }
}

/* 用户管理 */
.um-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.um-add input, .um-add select { border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; color: #1f2329; font-family: inherit; }
.um-add input { flex: 1; min-width: 110px; }
.um-table { margin-top: 4px; table-layout: auto; }
.um-table td { overflow: visible; }
.um-table td.op-col { white-space: nowrap; overflow: visible; text-overflow: clip; }
.um-table th:last-child, .um-table td.op-col { width: 1%; white-space: nowrap; }

/* ========== 新版后台：侧边栏分组菜单 ========== */
.nav-group { margin-bottom: 2px; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px; border-radius: 8px; cursor: pointer;
  color: #4e5969; font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.nav-group-title:hover { background: #f5f6f8; }
.nav-group-title-left { display: flex; align-items: center; gap: 8px; }
.nav-group-title .icon { font-size: 15px; width: 18px; text-align: center; }
.nav-group-title .arrow {
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  color: #8f959e; font-size: 11px; transition: transform .2s;
}
.nav-group.collapsed .arrow { transform: rotate(-90deg); }
.nav-group.collapsed .nav-items { display: none; }
.nav-items { padding-left: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px 9px 32px; border-radius: 8px;
  color: #5f5e5a; font-size: 13px; cursor: pointer; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #f5f6f8; }
.nav-item.active { background: #fff0f2; color: #ff2442; font-weight: 500; }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #d9d9d9; }
.nav-item.active .dot { background: #ff2442; }

/* 需求详情列：点击直接编辑 */
.desc-editable {
  display: block;
  max-width: 260px;
  min-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  outline: none;
  border: 0.5px solid transparent;
  border-radius: 4px;
  padding: 2px 4px;
  line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.desc-editable:hover {
  border-color: #c9cdd4;
  background: #fff;
}
.desc-editable:focus {
  white-space: pre-wrap;
  word-break: break-all;
  overflow: visible;
  text-overflow: clip;
  background: #fff;
  border-color: #ff2442;
  box-shadow: 0 0 0 2px rgba(255,36,66,0.08);
  max-width: 360px;
  min-height: 32px;
  z-index: 10;
}

/* ========== 新版后台：筛选栏 ========== */
.filter-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { color: #8f959e; font-size: 13px; white-space: nowrap; }
.filter-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-option {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer;
  border: 0.5px solid #e5e6eb; color: #4e5969; background: #fff;
  transition: all .15s; white-space: nowrap;
}
.filter-option:hover { border-color: #ff2442; color: #ff2442; }
.filter-option.active { background: #ff2442; color: #fff; border-color: #ff2442; }
.filter-search { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-search input {
  border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 7px 12px; font-size: 13px; background: #fff; color: #1f2329; min-width: 180px;
}
.filter-search .btn-primary { padding: 7px 16px; }

/* ========== 新版后台：Dashboard 看板 ========== */
.dashboard { display: flex; flex-direction: column; gap: 16px; }
.db-header {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px;
  padding: 24px; display: flex; justify-content: space-between; align-items: center;
}
.db-header-left { display: flex; align-items: center; gap: 16px; }
.db-header-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #ff2442 0%, #ff5a7f 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px;
}
.db-title { font-size: 20px; font-weight: 600; color: #1f2329; }
.db-subtitle { color: #8f959e; font-size: 13px; margin-top: 6px; }
.db-stats { display: flex; gap: 32px; }
.db-stat { text-align: right; }
.db-stat-label { font-size: 12px; color: #8f959e; }
.db-stat-num { font-size: 26px; font-weight: 600; color: #1d9e75; margin-top: 4px; }
.db-stat-num.warn { color: #ff2442; }

.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.db-card {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px;
  cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.db-card:hover { box-shadow: 0 4px 16px rgba(31,35,41,.08); transform: translateY(-1px); }
.db-card-title { font-size: 15px; font-weight: 600; color: #1f2329; margin-bottom: 14px; }
.db-card-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: #4e5969; }
.db-card-row .val { font-weight: 600; color: #1f2329; }
.db-card-row .val.up { color: #1d9e75; }
.db-card-row .val.down { color: #ff2442; }

.db-section { background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px; }
.db-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.db-section-title { font-size: 15px; font-weight: 600; color: #1f2329; }
.db-section-sub { font-size: 12px; color: #8f959e; }
.db-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.chart-placeholder {
  height: 220px; display: flex; align-items: center; justify-content: center;
  color: #8f959e; background: #f7f8fa; border-radius: 8px; font-size: 13px;
}

/* ========== 首页（沿用登录界面元素） ========== */
.home-content { height: 100%; }
.home-wrap { height: 100%; margin: -20px -24px; }
.home-hero {
  position: relative; overflow: hidden;
  height: 100%; min-height: 100%; display: flex; align-items: flex-start;
}
.home-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #ff2442 0%, #ff4266 22%, #ff6b8a 42%, #ff8aa8 62%, #ffb3c5 82%, #ffd6e1 100%);
}
.home-hero-content {
  position: relative; z-index: 2; padding: 48px 48px 42px; color: #fff; width: 100%;
}
.home-badge {
  display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; letter-spacing: 1px; margin-bottom: 22px;
}
.home-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.home-logo {
  display: inline-block; width: 56px; height: 56px; flex-shrink: 0;
  background: url('/static/logo.jpg') center/contain no-repeat; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.home-brand-name { font-size: 56px; font-weight: 800; letter-spacing: 1px; }
.home-slogan { font-size: 38px; font-weight: 700; line-height: 1.2; margin-bottom: 26px; }
.home-tags { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.home-tag {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24);
  padding: 8px 16px; border-radius: 22px; font-size: 14px; font-weight: 500;
}
.home-body { display: flex; flex-direction: column; gap: 16px; }
.home-section-title { font-size: 15px; font-weight: 600; color: #1f2329; }
.home-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.home-sc-card {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.home-sc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,35,41,.08); border-color: #ffd6e1; }
.home-sc-icon { font-size: 28px; margin-bottom: 10px; }
.home-sc-label { font-size: 15px; font-weight: 600; color: #1f2329; margin-bottom: 4px; }
.home-sc-desc { font-size: 12px; color: #8f959e; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.home-stat {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px;
}
.home-stat-num { font-size: 22px; font-weight: 700; color: #1d9e75; margin-bottom: 6px; }
.home-stat-num.warn { color: #ff2442; }
.home-stat-label { font-size: 12px; color: #8f959e; }

/* ========== 公司目标看板 ========== */
.goals-wrap { display: flex; flex-direction: column; gap: 16px; }
.goals-header {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.goals-header-left { display: flex; align-items: center; gap: 14px; }
.goals-header-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff0f2; color: #ff2442; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.goals-title { font-size: 18px; font-weight: 600; color: #1f2329; }
.goals-subtitle { font-size: 13px; color: #8f959e; margin-top: 4px; }
.goals-tabs { display: flex; gap: 8px; }
.goals-tab {
  padding: 7px 16px; border-radius: 18px; font-size: 13px; color: #4e5969; cursor: pointer;
  background: #f7f8fa; border: 0.5px solid #e5e6eb; transition: all .15s;
}
.goals-tab:hover { background: #fff0f2; color: #ff2442; border-color: #ffd6e1; }
.goals-tab.active { background: #ff2442; color: #fff; border-color: #ff2442; }
.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.goal-card {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.goal-card-top { display: flex; align-items: center; justify-content: space-between; }
.goal-card-title { font-size: 15px; font-weight: 600; color: #1f2329; }
.goal-status { font-size: 12px; color: #1d9e75; background: #e6f7f1; padding: 3px 10px; border-radius: 12px; }
.goal-meta { font-size: 12px; color: #8f959e; display: flex; gap: 14px; }
.goal-progress { margin-top: 4px; }
.goal-progress-bar { height: 8px; background: #f2f3f5; border-radius: 4px; overflow: hidden; }
.goal-progress-fill { height: 100%; background: linear-gradient(90deg, #ff2442, #ff6b8a); border-radius: 4px; }
.goal-progress-text { display: flex; justify-content: space-between; font-size: 12px; color: #4e5969; margin-top: 8px; }
.goal-krs { margin-top: 4px; }
.goal-krs-title { font-size: 12px; font-weight: 600; color: #1f2329; margin-bottom: 8px; }
.goal-krs ul { margin: 0; padding-left: 16px; font-size: 13px; color: #4e5969; }
.goal-krs li { margin-bottom: 6px; }
.goals-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.goals-overall { display: flex; justify-content: space-around; padding: 8px 0; }
.goals-overall-item { text-align: center; }
.goals-overall-num { font-size: 28px; font-weight: 700; color: #ff2442; }
.goals-overall-label { font-size: 12px; color: #8f959e; margin-top: 4px; }

/* ========== 新版后台：通用内容页 ========== */
.page-placeholder {
  background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px;
  padding: 60px 24px; text-align: center; color: #8f959e;
}
.page-placeholder .ph-icon { font-size: 48px; margin-bottom: 16px; }
.page-placeholder .ph-title { font-size: 16px; font-weight: 600; color: #1f2329; margin-bottom: 8px; }

/* 用户管理独立页 */
.um-page { display: flex; flex-direction: column; gap: 20px; }
.um-section { background: #fff; border: 0.5px solid #e5e6eb; border-radius: 12px; padding: 18px; }
.um-section-title { font-size: 15px; font-weight: 600; color: #1f2329; margin-bottom: 14px; }
.um-tip { font-size: 12px; font-weight: 400; color: #8a8f99; margin-left: 8px; }
.roster-form { display: flex; flex-direction: column; gap: 14px; }
.rf-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.rf-row label { display: flex; flex-direction: column; font-size: 13px; color: #4e5969; gap: 6px; flex: 1 1 150px; min-width: 140px; }
.rf-row label input, .rf-row label select { height: 34px; border: 0.5px solid #d9dce0; border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; color: #1f2329; }
.rf-row label input:focus, .rf-row label select:focus { outline: none; border-color: #4a90e2; }
.rf-az { font-size: 13px; color: #4a90e2; white-space: nowrap; padding-bottom: 8px; }
.rf-actions { display: flex; gap: 10px; margin-top: 4px; }
.roster-table { table-layout: auto; }
.roster-table th, .roster-table td { white-space: nowrap; }
.roster-table .op-col { white-space: nowrap; overflow: visible; }
.link.danger { color: #e34d59; }
.muted { color: #c0c4cc; }
.um-tip { font-size: 12px; color: #8f959e; font-weight: 400; margin-left: 8px; }
.um-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.um-add input, .um-add select { border: 0.5px solid #e5e6eb; border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; color: #1f2329; font-family: inherit; }
.um-add input { flex: 1; min-width: 110px; }
.um-table { table-layout: auto; }
.um-table td { overflow: visible; }
.um-table td.pw-col { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #d8504a; }
.um-table td.op-col { white-space: nowrap; overflow: visible; text-overflow: clip; }
.um-table th:last-child, .um-table td.op-col { width: 1%; white-space: nowrap; }

.perm-table-wrap { overflow-x: auto; border: 0.5px solid #e5e6eb; border-radius: 10px; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; min-width: 520px; }
.perm-table th { text-align: left; padding: 11px 14px; background: #f7f8fa; color: #8f959e; font-weight: 500; border-bottom: 0.5px solid #eef0f2; white-space: nowrap; position: sticky; top: 0; }
.perm-table td { padding: 10px 14px; border-bottom: 0.5px solid #f3f4f6; color: #1f2329; }
.perm-table td.perm-menu { white-space: nowrap; min-width: 180px; }
.perm-table td.perm-cell { text-align: center; }
.perm-switch { position: relative; display: inline-block; width: 34px; height: 18px; cursor: pointer; }
.perm-switch input { opacity: 0; width: 0; height: 0; }
.perm-switch span { position: absolute; inset: 0; background: #e5e6eb; border-radius: 18px; transition: .2s; }
.perm-switch span::before { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: .2s; }
.perm-switch input:checked + span { background: #3370ff; }
.perm-switch input:checked + span::before { transform: translateX(16px); }
.perm-switch input:disabled + span { background: #f0f1f3; cursor: not-allowed; }
.perm-switch input:disabled + span::before { background: #c9cdd4; }
/* 权限管理分组大开关：只读展示，但仍需清晰显示开/关颜色 */
.perm-group-switch input:disabled + span { background: #c9cdd4; cursor: default; }
.perm-group-switch input:checked:disabled + span { background: #3370ff; }
.perm-group-switch input:disabled + span::before { background: #fff; }

/* 权限分组表格 */
.perm-group { border-bottom: 0.5px solid #f3f4f6; }
.perm-group-head { background: #fafbfc; cursor: pointer; }
.perm-group-head:hover { background: #f5f6f8; }
.perm-group-head .perm-menu {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: #1f2329;
}
.perm-arrow {
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  color: #8f959e; font-size: 12px; transition: transform .2s;
}
.perm-group-icon { font-size: 14px; }
.perm-bulk { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.perm-bulk button { font-size: 12px; color: #4a90e2; padding: 2px 0; }
.perm-group-state { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; background: #e5e6eb; color: #8f959e; }
.perm-group-state.on { background: #e8f4ff; color: #4a90e2; }
.perm-child { display: none; background: #fff; }
.perm-group.expanded .perm-child { display: table-row; }
.perm-child .perm-menu {
  padding-left: 34px; color: #4e5969; font-size: 13px;
}
.perm-child td { color: #4e5969; }

/* 响应式 */
@media (max-width: 1024px) {
  .db-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .db-charts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { width: 64px; padding: 16px 8px; }
  .brand-text, .nav-group-title .txt, .nav-items, .user-info, .user-actions .link { display: none; }
  .nav-group-title { justify-content: center; padding: 12px 0; }
  .nav-group-title .icon { font-size: 18px; }
  .nav-group-title .arrow { display: none; }
  .user { justify-content: center; padding: 14px 0 0; }
  .filter-bar { padding: 12px 16px; }
  .main { padding: 16px; }
  .db-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .db-stats { width: 100%; justify-content: flex-start; }
}

/* ====================== 媒介工作台：客户/博主/需求 ====================== */
.pf-badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.pf-xhs { background: #ffece6; color: #ff5a26; }
.pf-dy { background: #e9f0ff; color: #2b6fff; }
.ok-badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; background: #e8f8ee; color: #1f9d55; font-weight: 600; }
.no-badge { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; background: #fdecec; color: #e34d59; font-weight: 600; }
.rq-reply { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4e5969; }

/* 通用表单弹窗 */
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #4e5969; }
.fm-field span { font-weight: 500; }
.fm-field input, .fm-field select, .fm-field textarea {
  border: 0.5px solid #d9dce0; border-radius: 8px; padding: 0 10px; font-size: 13px;
  background: #fff; color: #1f2329; width: 100%; box-sizing: border-box; min-height: 34px;
}
.fm-field textarea { padding: 8px 10px; min-height: 64px; resize: vertical; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus { outline: none; border-color: #4a90e2; }
.modal-wide { width: 760px; max-width: 94vw; }

/* 需求详情弹窗 */
.rq-detail { font-size: 13px; color: #4e5969; margin-bottom: 8px; }
.rq-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rq-row > span { color: #8f959e; min-width: 56px; }
.rq-row input, .rq-row select, .rq-row textarea {
  border: 0.5px solid #d9dce0; border-radius: 8px; padding: 6px 10px; font-size: 13px;
  background: #fff; color: #1f2329; flex: 1; min-width: 120px; box-sizing: border-box;
}
.rq-row textarea { min-height: 52px; resize: vertical; }
.rq-add { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rq-add > span { color: #8f959e; font-size: 13px; }
.rq-add input, .rq-add select { border: 0.5px solid #d9dce0; border-radius: 8px; padding: 6px 10px; font-size: 13px; background: #fff; color: #1f2329; min-width: 110px; }
.mini { border: 0.5px solid #d9dce0; border-radius: 6px; padding: 4px 6px; font-size: 12px; background: #fff; color: #1f2329; width: 100%; box-sizing: border-box; min-width: 60px; }
.mini:focus { outline: none; border-color: #4a90e2; }

/* 共同提报人多选器 */
.user-picker { position: relative; border: 0.5px solid #d9dce0; border-radius: 8px; background: #fff; min-width: 200px; }
.user-picker:hover { border-color: #4a90e2; }
.picker-selected { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; min-height: 32px; align-items: center; cursor: pointer; border-radius: 8px; transition: background .15s; }
.picker-selected:hover { background: #f7f8fa; }
.picker-placeholder { color: #8f959e; font-size: 12px; }
.picker-tag { display: inline-flex; align-items: center; gap: 4px; background: #e8f3ff; color: #165dff; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.picker-tag b { cursor: pointer; font-weight: 700; color: #165dff; }
.picker-search { width: 100%; border: none; border-top: 0.5px solid #f0f0f0; padding: 6px 10px; font-size: 13px; box-sizing: border-box; outline: none; }
.picker-search:focus { background: #f7f8fa; }
.picker-drop { position: absolute; left: 0; right: 0; top: 100%; max-height: 240px; overflow-y: auto; background: #fff; border: 0.5px solid #d9dce0; border-radius: 8px; box-shadow: 0 8px 24px rgba(31,35,41,.12); margin-top: 4px; z-index: 100; }
.picker-group { padding: 6px 0; }
.picker-gname { padding: 0 10px; font-size: 12px; color: #8f959e; margin-bottom: 4px; }
.picker-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.picker-item:hover { background: #f7f8fa; }
.picker-item.selected { background: #e8f3ff; color: #165dff; }
.picker-role { font-size: 11px; color: #8f959e; }

/* 带后缀的输入框（返点 %） */
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 22px; }
.input-suffix .mini { padding-right: 18px; }
.input-suffix > span { position: absolute; right: 10px; color: #8f959e; font-size: 13px; pointer-events: none; }
.input-suffix .mini + span { right: 6px; font-size: 12px; }

/* 无权限占位页 */
.empty-page { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 360px; color: #8f959e; text-align: center; gap: 8px; }
.empty-page-icon { font-size: 52px; }
.empty-page-title { font-size: 18px; font-weight: 600; color: #1f2329; }
.empty-page-sub { font-size: 13px; }

