/* ============================================================
   九万整装 · 管理后台样式
   品牌色：深海军蓝 #172A47 / #24405C，古铜金 #C7A46B / #D6BE8C
   ============================================================ */

:root {
  --navy: #172A47;
  --navy2: #24405C;
  --navy3: #1C3450;
  --gold: #C7A46B;
  --gold-l: #D6BE8C;
  --gold-d: #A8874E;
  --bg: #F6F4F0;
  --card: #FFFFFF;
  --text: #1A1D23;
  --sub: #4A505A;
  --line: #D2CEC6;
  --line-l: #E7E3DB;
  --ok: #2E7D5B;
  --warn: #C0553F;
  --blue: #3E6E9C;
  --shadow: 0 8px 24px rgba(23, 42, 71, .08);
  --shadow-s: 0 2px 8px rgba(23, 42, 71, .06);
  --r: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
img { display: block; max-width: 100%; }
ul, li { list-style: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: linear-gradient(180deg, #1B3352 0%, #172A47 55%, #132239 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: width .22s ease, flex-basis .22s ease;
}
.sidebar.collapsed { width: 72px; flex-basis: 72px; }
.sidebar.collapsed .s-brand-text,
.sidebar.collapsed .s-menu-label,
.sidebar.collapsed .s-foot { display: none; }
.sidebar.collapsed .s-nav-item span { display: none; }

.s-brand {
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: 78px;
}
.s-brand .logo {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
}
.s-brand .logo svg { width: 34px; height: 34px; }
.s-brand-text h1 { font-size: 16px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.s-brand-text p { font-size: 10px; color: rgba(214, 190, 140, .8); letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }

.s-nav { padding: 14px 0; flex: 1; overflow-y: auto; }
.s-nav::-webkit-scrollbar { width: 4px; }
.s-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.s-menu-label { padding: 6px 20px 8px; font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 1px; }

.s-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.s-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.s-nav-item.active { background: rgba(199, 164, 107, .14); color: var(--gold-l); font-weight: 600; }
.s-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--gold); border-radius: 0 2px 2px 0;
}
.s-nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.s-nav-item .badge {
  margin-left: auto; background: var(--warn); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 9px; padding: 0 5px;
}

.s-foot { padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.s-foot .line1 { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .5px; }
.s-foot .line2 { font-size: 9px; color: rgba(255,255,255,.22); letter-spacing: 2px; margin-top: 4px; }

.main { flex: 1; margin-left: 232px; transition: margin-left .22s ease; min-width: 0; }
.main.wide { margin-left: 72px; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--line-l);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
.tb-toggle {
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); background: transparent; border: none;
}
.tb-toggle:hover { background: var(--bg); }

.breadcrumb { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.breadcrumb b { color: var(--text); font-weight: 600; }
.breadcrumb .sep { color: var(--line); }

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tb-search {
  width: 280px; height: 34px; border: 1px solid var(--line-l); border-radius: 17px;
  padding: 0 14px 0 34px; background: #FBFAF8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8F98' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 12px center;
  color: var(--text);
}
.tb-search:focus { border-color: var(--gold); background-color: #fff; }

.tb-icon {
  width: 34px; height: 34px; border-radius: 50%; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--sub);
}
.tb-icon:hover { background: var(--bg); }
.tb-icon .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; background: var(--warn); border-radius: 50%; }

.tb-user { display: flex; align-items: center; gap: 9px; cursor: pointer; padding-left: 14px; border-left: 1px solid var(--line-l); }
.tb-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.tb-user .u-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.tb-user .u-role { font-size: 11px; color: var(--sub); line-height: 1.2; }

/* ---------- 内容区 ---------- */
.content { padding: 22px 24px 40px; }
.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; gap: 14px; }
.page-head h2 { font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.page-head p { font-size: 13px; color: var(--sub); }
.page-head .ph-right { margin-left: auto; display: flex; gap: 10px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-s);
  border: 1px solid #EFEBE4;
}
.card-pad { padding: 20px 22px; }
.card-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line-l);
  display: flex; align-items: center; gap: 10px;
}
.card-head h3 { font-size: 15.5px; font-weight: 600; }
.card-head .ch-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px 22px; }

/* ---------- 指标卡 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi {
  background: #fff; border-radius: var(--r); border: 1px solid #EFEBE4;
  box-shadow: var(--shadow-s); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -18px; bottom: -18px;
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,164,107,.10), transparent 70%);
}
.kpi-ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.kpi-ico.blue { background: rgba(36, 64, 92, .10); color: var(--navy2); }
.kpi-ico.gold { background: rgba(199, 164, 107, .16); color: var(--gold-d); }
.kpi-ico.green { background: rgba(46, 125, 91, .12); color: var(--ok); }
.kpi-ico.red { background: rgba(192, 85, 63, .12); color: var(--warn); }
.kpi-ico svg { width: 22px; height: 22px; }
.kpi-main { flex: 1; min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--sub); }
.kpi-val { font-size: 26px; font-weight: 600; letter-spacing: .5px; line-height: 1.15; margin-top: 2px; font-family: "Montserrat", "PingFang SC", sans-serif; }
.kpi-val .unit { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 3px; }
.kpi-delta {
  font-size: 11.5px; padding: 1px 7px; border-radius: 9px; white-space: nowrap;
}
.kpi-delta.up { color: var(--ok); background: rgba(46, 125, 91, .10); }
.kpi-delta.down { color: var(--warn); background: rgba(192, 85, 63, .10); }

/* ---------- 按钮 ---------- */
.btn {
  height: 34px; padding: 0 16px; border-radius: 5px; border: 1px solid transparent;
  cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: all .16s; background: #fff;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-plain { background: transparent; color: var(--sub); border-color: transparent; }
.btn-plain:hover { color: var(--navy); background: rgba(23,42,71,.05); }
.btn-danger { background: #fff; border-color: rgba(192,85,63,.4); color: var(--warn); }
.btn-danger:hover { background: rgba(192,85,63,.06); }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 24px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 3px; font-size: 12px; line-height: 1; white-space: nowrap;
}
.tag-gold { background: rgba(199,164,107,.14); color: var(--gold-d); }
.tag-navy { background: rgba(36,64,92,.10); color: var(--navy2); }
.tag-blue { background: rgba(62,110,156,.12); color: var(--blue); }
.tag-green { background: rgba(46,125,91,.12); color: var(--ok); }
.tag-red { background: rgba(192,85,63,.12); color: var(--warn); }
.tag-gray { background: #EFEDE8; color: #7A8088; }
.tag-teal { background: rgba(46,125,125,.12); color: #2A7D7D; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  background: #fff; border-radius: var(--r); border: 1px solid #EFEBE4;
  box-shadow: var(--shadow-s); padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 16px;
}
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld label { font-size: 12px; color: var(--sub); }
.fld input, .fld select {
  height: 34px; min-width: 140px; border: 1px solid var(--line); border-radius: 4px;
  padding: 0 10px; background: #fff; color: var(--text);
}
.fld input:focus, .fld select:focus { border-color: var(--gold); }
.fld.wide input { min-width: 210px; }
.filter-bar .fb-right { margin-left: auto; display: flex; gap: 8px; }

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border-radius: var(--r); border: 1px solid #EFEBE4; box-shadow: var(--shadow-s); overflow: hidden; }
table.tb { width: 100%; border-collapse: collapse; }
table.tb thead th {
  background: #FAF8F4; font-size: 12.5px; font-weight: 600; color: var(--sub);
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-l);
  white-space: nowrap;
}
table.tb tbody td {
  padding: 13px 16px; border-bottom: 1px solid #F4F1EB; font-size: 13.5px; vertical-align: middle;
}
table.tb tbody tr:hover { background: #FCFAF7; }
table.tb tbody tr:last-child td { border-bottom: none; }
table.tb .num { font-family: "Montserrat", sans-serif; font-weight: 600; }
table.tb .muted { color: var(--sub); font-size: 12.5px; }
table.tb .ops { display: flex; gap: 4px; flex-wrap: wrap; }
.tb-link { color: var(--navy2); cursor: pointer; font-size: 12.5px; padding: 2px 6px; border-radius: 3px; }
.tb-link:hover { background: rgba(36,64,92,.07); color: var(--gold-d); }
.tb-link.danger { color: var(--warn); }
.tb-link.danger:hover { background: rgba(192,85,63,.08); }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-top: 1px solid var(--line-l); background: #fff; font-size: 13px; color: var(--sub);
  flex-wrap: wrap;
}
.pager .pg-info { margin-right: auto; }
.pager .pg-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 4px; cursor: pointer; color: var(--text); font-size: 13px;
}
.pager .pg-btn:hover { border-color: var(--gold); color: var(--gold-d); }
.pager .pg-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager select { height: 30px; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; background: #fff; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item label { font-size: 12.5px; color: var(--sub); }
.form-item label i { color: var(--warn); font-style: normal; margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea {
  height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; background: #fff;
}
.form-item textarea { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--gold); }
.form-item .hint { font-size: 11.5px; color: #9AA0A8; }
.form-item.full { grid-column: 1 / -1; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 26, 40, .48);
  display: none; align-items: center; justify-content: center; z-index: 900; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 10px; width: 560px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(16,26,40,.28);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--line-l); display: flex; align-items: center; }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--sub); font-size: 18px; line-height: 1; padding: 4px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-l); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 22px;
  font-size: 13.5px; z-index: 1000; opacity: 0; pointer-events: none;
  transition: all .24s ease; box-shadow: 0 10px 30px rgba(23,42,71,.28); max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #23624A; }
.toast.err { background: #A0432F; }

/* ---------- 空态/加载 ---------- */
.empty { padding: 56px 0; text-align: center; color: #9AA0A8; font-size: 13.5px; }
.empty svg { width: 54px; height: 54px; opacity: .35; margin: 0 auto 12px; }
.loading { padding: 48px 0; text-align: center; color: var(--sub); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; border: 2px solid rgba(199,164,107,.3); border-top-color: var(--gold);
  border-radius: 50%; margin: 0 auto 10px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 图表 ---------- */
.chart-card { background: #fff; border-radius: var(--r); border: 1px solid #EFEBE4; box-shadow: var(--shadow-s); }
.chart-head { padding: 16px 22px 0; display: flex; align-items: center; gap: 10px; }
.chart-head h3 { font-size: 15.5px; font-weight: 600; }
.chart-head .ch-right { margin-left: auto; }
.chart-body { padding: 12px 18px 18px; }

/* ---------- 通用小组件 ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #EFEDE8; flex: 0 0 40px; }
.avatar.lg { width: 64px; height: 64px; flex-basis: 64px; }
.avatar.xl { width: 96px; height: 96px; flex-basis: 96px; }
.avatar-ring { border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold-l); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line-l); margin: 16px 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.two-col { display: flex; gap: 16px; align-items: flex-start; }
.two-col > .left { flex: 0 0 62%; min-width: 0; }
.two-col > .right { flex: 1; min-width: 0; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16263C 0%, #1C3450 45%, #24405C 100%);
  position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(199,164,107,.16), transparent 46%),
    radial-gradient(circle at 18% 88%, rgba(214,190,140,.10), transparent 42%);
}
.login-box {
  position: relative; width: 400px; background: #fff; border-radius: 12px;
  padding: 38px 38px 32px; box-shadow: 0 30px 80px rgba(8,16,28,.4);
}
.login-box .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.login-box .brand .lg { width: 42px; height: 42px; }
.login-box .brand h1 { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.login-box .brand p { font-size: 10px; color: var(--gold-d); letter-spacing: 2px; }
.login-box h2 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.login-box .sub { font-size: 12.5px; color: var(--sub); margin-bottom: 22px; }
.login-box .form-item { margin-bottom: 14px; }
.login-box .form-item input { height: 42px; }
.login-box .btn { width: 100%; height: 44px; justify-content: center; font-size: 15px; letter-spacing: 2px; margin-top: 6px; }
.login-tip { margin-top: 16px; font-size: 12px; color: #9AA0A8; text-align: center; line-height: 1.9; }
.login-err { color: var(--warn); font-size: 12.5px; margin-top: 8px; min-height: 18px; }

/* ---------- 详情页局部 ---------- */
.detail-head {
  background: linear-gradient(120deg, #1B3352, #24405C 60%, #2B4A68);
  border-radius: var(--r); color: #fff; padding: 22px 26px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden;
}
.detail-head::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border: 1px solid rgba(199,164,107,.22); border-radius: 50%;
}
.detail-head .dh-main { flex: 1; }
.detail-head .dh-title { font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.detail-head .dh-sub { font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 5px; }
.detail-head .dh-meta { display: flex; gap: 22px; }
.detail-head .dh-meta .m { text-align: right; }
.detail-head .dh-meta .m b { font-size: 22px; font-family: "Montserrat", sans-serif; color: var(--gold-l); display: block; line-height: 1.2; }
.detail-head .dh-meta .m span { font-size: 11.5px; color: rgba(255,255,255,.55); }

.info-list .item {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid #F4F1EB;
}
.info-list .item:last-child { border-bottom: none; }
.info-list .k { width: 92px; flex: 0 0 92px; color: var(--sub); font-size: 13px; }
.info-list .v { font-size: 13.5px; }

.timeline { padding: 4px 0 0; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; margin-top: 4px;
  background: var(--gold); position: relative; z-index: 2;
}
.tl-dot.done { background: var(--ok); }
.tl-dot.pending { background: #fff; border: 1.5px dashed var(--line); }
.tl-line { position: absolute; left: 5.5px; top: 16px; bottom: -4px; width: 1px; background: var(--line-l); }
.tl-item:last-child .tl-line { display: none; }
.tl-body { flex: 1; }
.tl-name { font-size: 14px; font-weight: 600; }
.tl-name .t { font-weight: 400; color: #9AA0A8; font-size: 12px; margin-left: 8px; }
.tl-desc { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.tl-photos { display: flex; gap: 6px; margin-top: 8px; }
.tl-photos img { width: 78px; height: 58px; object-fit: cover; border-radius: 4px; cursor: pointer; }

/* ---------- 人员审核专用 ---------- */
.audit-skill { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px dashed var(--line); border-radius: 5px; margin-bottom: 8px; background: #FCFBF8;
}
.doc-row .d-ico { width: 30px; height: 30px; border-radius: 5px; background: rgba(23,42,71,.06); display: flex; align-items: center; justify-content: center; color: var(--navy2); }
.doc-row .d-name { font-size: 13px; font-weight: 500; }
.doc-row .d-sub { font-size: 11.5px; color: #9AA0A8; }
.doc-row .d-ok { margin-left: auto; color: var(--ok); font-size: 12px; display: flex; align-items: center; gap: 3px; white-space: nowrap; flex-shrink: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.stat-mini {
  border-radius: var(--r); padding: 16px 18px; background: linear-gradient(140deg, #223A56, #1A2E48);
  color: #fff; position: relative; overflow: hidden;
}
.stat-mini .sm-label { font-size: 12px; color: rgba(255,255,255,.6); }
.stat-mini .sm-val { font-size: 24px; font-family: "Montserrat", sans-serif; color: var(--gold-l); line-height: 1.3; }
.stat-mini .sm-delta { font-size: 11px; color: rgba(214,190,140,.85); }

/* ---------- 案例墙 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card {
  background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid #EFEBE4;
  box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s; position: relative;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-card .cc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #EFEDE8; }
.case-card .cc-body { padding: 13px 15px 14px; }
.case-card .cc-title { font-size: 14.5px; font-weight: 600; }
.case-card .cc-meta { font-size: 12px; color: var(--sub); margin-top: 3px; }
.case-card .cc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F4F1EB; font-size: 12px; color: #9AA0A8; }
.case-card .cc-ops { flex-basis: 100%; margin-left: 0; display: flex; justify-content: flex-end; gap: 16px; white-space: nowrap; flex-shrink: 0; }
.case-card .cc-badge { position: absolute; top: 10px; right: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .sidebar { width: 72px; flex-basis: 72px; }
  .sidebar .s-brand-text, .sidebar .s-nav-item span, .sidebar .s-foot { display: none; }
  .main { margin-left: 72px; }
  .form-grid, .two-col { display: block; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tb-search { display: none; }
}

/* ---------- 头像上传（录入设计师等） ---------- */
.ava-up { display: flex; align-items: center; gap: 18px; }
.ava-box {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden; background: #F1EDE6; border: 2px solid var(--line);
  flex: none; cursor: pointer; transition: border-color .15s;
}
.ava-box:hover { border-color: var(--gold); }
.ava-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-box .ava-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24px; line-height: 24px;
  background: rgba(23, 42, 71, .66); color: #fff; font-size: 11px; text-align: center;
}
.ava-tip { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #9AA0A8; line-height: 1.7; }
.ava-tip b { color: var(--navy, #172A47); font-size: 12px; font-weight: 600; }