/* 客户案例库 · 独立版样式（无框架，手写） · 2026 重新设计（含目录侧边栏） */
:root {
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e9edf3;
  --line-2: #d6dde8;
  --bg: #f5f7fb;
  --card: #ffffff;
  --red: #e11d48;
  --green: #10b981;
  --orange: #f59e0b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 22px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: #4338ca; }
button { font: inherit; cursor: pointer; transition: all .15s; border: none; outline: none; }

/* ---------------- 顶部导航（全宽渐变横幅） ---------------- */
.top {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.top .logo {
  width: 38px; height: 38px; border-radius: 10px; overflow: hidden;
  background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.top .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.top h1 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .4px; }
.top .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.top .sp { flex: 1; }
.top .link {
  font-size: 13px; font-weight: 600; color: var(--brand); padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #f8fafc; white-space: nowrap;
}
.top .link:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------------- 通用容器（全宽铺满） ---------------- */
.wrap { width: 100%; max-width: none; padding: 24px 32px 64px; }

.bar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.bar input, .bar select {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 400;
}
.bar select { flex: 0 0 auto; min-width: 132px; cursor: pointer; }
.bar input { flex: 1 1 200px; min-width: 160px; max-width: 360px; }
.bar input:focus, .bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.bar input::placeholder { color: var(--faint); }
.bar .cnt {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.btn {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.pri {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .30);
}
.btn.pri:hover { background: linear-gradient(135deg, #1d4ed8, #0369a1); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.empty {
  padding: 72px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  font-weight: 400;
}
.empty::before { content: "📭"; display: block; font-size: 34px; margin-bottom: 10px; opacity: .7; }

/* ---------------- 卡片（员工端） ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid var(--line);
  padding: 22px 12px;
}
.card-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
}
.card-icon .ext {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 9px;
  padding: 4px 9px;
  letter-spacing: .5px;
}

.card-body {
  flex: 1;
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.card-summary {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f3f4f8;
}
.card-footer .tag {
  padding: 3px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}
.card-footer .tag.c {
  background: var(--brand-soft);
  color: var(--brand);
}
.card .new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(225, 29, 72, .4);
}

.kb {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  color: #fff;
}

/* ---------------- 表格（管理端） ---------------- */
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  padding: 14px 10px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbff; }
td.t { text-align: left; white-space: normal; }
td .nm { font-weight: 700; color: var(--ink); font-size: 14px; }
/* 人员与积分表：整体居中 */
.emp-table th, .emp-table td, .emp-table td.t { text-align: center; }
.emp-table td .ops { justify-content: center; }
td .sm { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.ops { display: flex; gap: 8px; justify-content: center; }
.mini {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--brand);
}
.mini:hover { background: var(--brand-soft); }
.mini.del { color: var(--red); }
.mini.del:hover { background: #fff1f2; }
.mini[disabled] { color: #cbd5e1; cursor: default; background: none; opacity: 0.6; }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow: auto;
}
.dlg {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  padding: 26px 28px 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.dlg h3 {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 750;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.fld label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fld input, .fld textarea, .fld select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 400;
}
.fld textarea { resize: vertical; min-height: 64px; line-height: 1.65; }
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.dlgft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.fzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: #fbfcfe;
  transition: border .15s, background .15s;
}
.fzone:hover, .fzone.over {
  border-color: var(--brand);
  background: #f5f3ff;
}
.fzone .zt { font-size: 14px; color: var(--ink); font-weight: 600; }
.fzone .zh { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; font-weight: 400; }
.fitem { display: flex; align-items: center; gap: 12px; text-align: left; }
.fitem .fi { flex: 1; min-width: 0; }
.fitem .fn {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fitem .fs { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.prog {
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 10px;
}
.prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 0;
  transition: width .15s;
}

/* ---------------- 查看器 ---------------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: #0b1020; display: flex; flex-direction: column; }
.vhd { display: flex; align-items: center; gap: 12px; padding: 11px 18px; background: #111827; color: #e5e7eb; flex: 0 0 auto; }
.vhd .vt { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.vhd .vm { font-size: 12px; color: #9aa4b2; white-space: nowrap; }
.vhd .sp { flex: 1; }
.vhd .vb { font-size: 12.5px; padding: 6px 13px; border-radius: 8px; border: 1px solid #374151; background: transparent; color: #e5e7eb; white-space: nowrap; }
.vhd .vb:hover { background: #1f2937; }
.vbd { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.vbd.dark { padding: 0; background: #000; }
.vbd img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.vbd video { max-width: 100%; max-height: 100%; background: #000; outline: none; }
.vbd iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 12px; }
.vbd.dark iframe { border-radius: 0; }
.aud { background: #fff; border-radius: 18px; padding: 30px 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); min-width: 320px; }
.aud .ai { width: 58px; height: 58px; border-radius: 50%; background: #ecfdf3; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.aud .an { font-size: 13.5px; color: var(--text); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { color: #e5e7eb; text-align: center; font-size: 13.5px; line-height: 2; }
.tip .t2 { color: var(--faint); font-size: 12.5px; }
.tip a { color: #fff; background: var(--brand); padding: 8px 20px; border-radius: 9px; display: inline-block; margin-top: 10px; font-size: 13px; }

/* ---------------- 登录 ---------------- */
.login { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #eff6ff, #ecfeff); }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px 26px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.login h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); font-weight: 700; }
.login p { margin: 0 0 18px; font-size: 12.5px; color: var(--faint); font-weight: 400; }

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  top: 78px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.toast.ok {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}
.toast.err {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

@media (max-width: 760px) {
  .wrap { padding: 16px 14px 48px; }
  .top { padding: 12px 16px; }
  .top h1 { font-size: 16px; }
  .top .sub { display: none; }
  .bar input { max-width: none; }
  .row2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------------- 左右布局（目录侧边栏） ---------------- */
.layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 220px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 0;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-header h3::before {
  content: "";
  width: 4px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.cat-item {
  padding: 10px 16px;
  margin: 2px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.cat-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.cat-item.active {
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(124,58,237,.14));
  color: var(--brand);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--brand);
}

.cat-item .cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-item .cat-ops {
  display: none;
  gap: 4px;
}
.cat-item:hover .cat-ops { display: flex; }
.cat-ops button {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  font-weight: 500;
}
.cat-ops button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.add-cat-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #ffffff;
  color: var(--brand);
}
.add-cat-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    flex: 0 0 auto;
    position: static;
    max-height: 280px;
    width: 100%;
  }
}

/* 设置页面 */
.settings-layout {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.settings-sidebar {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 0;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.settings-menu-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all .12s;
}
.settings-menu-item:hover {
  background: #f9fafb;
  color: var(--brand);
}
.settings-menu-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  border-left: 3px solid var(--brand);
}

.settings-content { flex: 1; min-width: 0; }
.settings-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.settings-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.settings-header h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; }
.settings-desc { color: var(--muted); font-size: 14px; margin: 8px 0 0 0; }
.settings-form { max-width: 600px; }
.settings-form .fld { margin-bottom: 20px; }
.settings-form .fld label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group input { width: 120px; }
.input-group span { color: var(--muted); font-size: 14px; }

/* ---------------- 顶部导航按钮（案例库 / 积分商城 切换） ---------------- */
.nav-btn { cursor: pointer; }
.nav-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 积分商城（员工端） ---------------- */
.mall-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.mall-user { display: flex; align-items: center; gap: 10px; }
.mall-user .mu-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.mall-user .mu-pts {
  font-weight: 800; color: var(--brand); font-size: 14px;
  background: var(--brand-soft); padding: 4px 12px; border-radius: 20px;
}

.rcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rcard:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-lg); }
.ricon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #e0f2fe);
}
.rbody { flex: 1; min-width: 0; }
.rtitle { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.rdesc { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.rfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.rcost { font-weight: 800; color: var(--brand); font-size: 15px; }
.rstock { font-size: 12px; color: var(--faint); }
.rstock.off { color: var(--orange); }
.rlimit { font-size: 12px; color: var(--brand); font-weight: 600; }
.rbtn { width: 100%; margin-top: 4px; }
.rbtn:disabled { opacity: .5; cursor: not-allowed; background: #e2e8f0; color: var(--muted); box-shadow: none; }

/* 兑换/通知状态标签 */
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-ok { background: #dcfce7; color: #15803d; }
.st-no { background: #fee2e2; color: #b91c1c; }

/* ---------------- 通知中心 ---------------- */
.noti-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 10px; padding: 0 5px; margin-left: 6px; vertical-align: middle;
}
.noti-list { display: flex; flex-direction: column; gap: 12px; }
.noti-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.noti-item.unread { border-left: 3px solid var(--brand); }
.noti-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.noti-content { font-size: 13px; color: var(--text); line-height: 1.6; }
.noti-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; color: var(--faint);
}

/* ---------------- 员工端登录闸门 ---------------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(1100px 600px at 85% -15%, #e0f2fe 0%, transparent 55%),
    radial-gradient(900px 520px at -10% 115%, #dbeafe 0%, transparent 55%),
    #eef2f7;
}
.gate-wrap {
  display: flex; width: 880px; max-width: 100%; background: #fff;
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(15, 23, 42, .20);
}
/* 左侧品牌区 */
.gate-hero {
  position: relative; flex: 0 0 43%; padding: 48px 40px; color: #fff;
  background: linear-gradient(155deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
  display: flex; flex-direction: column;
}
.gate-hero::before, .gate-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.gate-hero::before { width: 230px; height: 230px; right: -70px; top: -60px; }
.gate-hero::after { width: 170px; height: 170px; left: -50px; bottom: -55px; background: rgba(255, 255, 255, .08); }
.hero-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-logo {
  width: 54px; height: 54px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.hero-logo img { width: 44px; height: 44px; border-radius: 10px; }
.hero-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.hero-desc { margin: 20px 0 0; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .92); font-weight: 500; position: relative; }
.hero-list { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.hero-list li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255, 255, 255, .95); }
.hero-list .ic {
  flex: 0 0 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
/* 右侧表单区 */
.gate-box {
  flex: 1; padding: 52px 48px; text-align: left;
  display: flex; flex-direction: column; justify-content: center;
}
.gate-box .logo { display: none; }
.gate-box h2 { margin: 0 0 6px; font-size: 24px; color: var(--ink); font-weight: 800; }
.gate-sub { margin: 0 0 26px; font-size: 13.5px; color: var(--muted); }
.top .sub.slogan { color: var(--brand); font-weight: 600; letter-spacing: .3px; }
.gate-box .fld { text-align: left; margin-bottom: 16px; }
.gate-box .fld label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.gate-box .fld input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 14px;
  border: 1px solid var(--line-2); border-radius: 10px; outline: none;
  background: #fbfdff; transition: border-color .15s, box-shadow .15s, background .15s;
}
.gate-box .fld input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.14); background: #fff; }
.gate-box .btn.pri { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; border-radius: 10px; margin-top: 4px; }
.gate-err { margin-top: 12px; min-height: 16px; color: #d92d20; font-size: 13px; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.gate-box .wecom-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #07c160; border: 1px solid #07c160; font-weight: 600;
  padding: 11px; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background .15s;
}
.gate-box .wecom-btn:hover { background: #f0fff7; }
@media (max-width: 760px) {
  .gate-wrap { flex-direction: column; border-radius: 18px; }
  .gate-hero { display: none; }
  .gate-box { padding: 38px 28px; }
  .gate-box .logo { display: block; margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .gate-box { padding: 30px 20px; }
  .gate-box h2 { font-size: 21px; }
}

/* ---------------- 顶部员工标签 ---------------- */
.emp-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 4px; padding: 5px 6px 5px 12px;
  background: #eef4ff; border-radius: 999px; font-size: 13px; color: var(--ink);
}
.emp-tag .et-name { font-weight: 600; }
.emp-tag .et-out {
  border: none; background: var(--brand); color: #fff; cursor: pointer;
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.emp-tag .et-out:hover { opacity: .9; }

/* ---------------- 资料中心类型 tab ---------------- */
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.type-tabs .tt {
  cursor: pointer; padding: 7px 16px; font-size: 14px; border-radius: 999px;
  background: #f1f5fb; color: var(--muted); border: 1px solid transparent; user-select: none;
}
.type-tabs .tt:hover { color: var(--brand); }
.type-tabs .tt.active { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------------- 公告 ---------------- */
.announce {
  margin: 16px 0 14px; background: linear-gradient(135deg, #eef4ff, #f6fbff);
  border: 1px solid #d6e4ff; border-radius: 12px; padding: 14px 16px;
}
.announce .an-head { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.announce .an-item { padding: 8px 0; border-top: 1px dashed #d6e4ff; }
.announce .an-item:first-of-type { border-top: none; }
.announce .an-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.announce .an-content { font-size: 13px; color: var(--text); line-height: 1.6; margin-top: 3px; white-space: pre-wrap; }
.announce .an-time { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* ---------------- 我的 ---------------- */
.mine-head { margin: 16px 0 20px; }
.mine-head .mh-card {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 18px 28px; background: linear-gradient(135deg, var(--brand), #0ea5e9);
  border-radius: 14px; color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,.25);
}
.mine-head .mh-name { font-size: 15px; opacity: .92; }
.mine-head .mh-pts { font-size: 30px; font-weight: 800; line-height: 1.1; }

/* ---------------- 资料中心 · 时间筛选 ---------------- */
.bar #fTime { min-width: 108px; }
.bar .dt-range { display: none; align-items: center; gap: 6px; }
.bar .dt-range.show { display: inline-flex; }
.bar .f-date { flex: 0 0 auto; width: 150px; min-width: 0; padding: 0 10px; }
.bar .dt-sep { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

/* ---------------- 员工端通知下拉 ---------------- */
.noti-panel {
  position: fixed;
  top: 70px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.noti-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  position: sticky;
  top: 0;
  background: #fff;
}
.noti-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}
.noti-panel .noti-item { border-radius: 10px; margin: 10px 12px; }

.mine-head .mh-pts span { font-size: 14px; font-weight: 500; opacity: .9; }

/* ---------------- 管理员勾选 / 登录切换 ---------------- */
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; margin: 4px 0 8px; user-select: none; }
.chk input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }
.login-switch { margin-top: 14px; text-align: center; }
.login-switch a { color: var(--brand); font-size: 12.5px; cursor: pointer; }

/* ---------------- 员工端资料中心 · 表格 ---------------- */
.lib-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  table-layout: fixed;
}
.lib-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.lib-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  vertical-align: middle;
}
/* 列宽按比例分配，避免长短列不均 */
.lib-table th:nth-child(1) { width: 26%; text-align: left; }
.lib-table th:nth-child(2) { width: 8%; }
.lib-table th:nth-child(3) { width: 11%; }
.lib-table th:nth-child(4) { width: 8%; }
.lib-table th:nth-child(5) { width: 8%; }
.lib-table th:nth-child(6) { width: 7%; }
.lib-table th:nth-child(7) { width: 14%; }
.lib-table th:nth-child(8) { width: 10%; }
.lib-table th:nth-child(9) { width: 8%; }
.lib-table td:nth-child(1) { text-align: left; }
.lib-table tbody tr:last-child td { border-bottom: none; }
.lib-table tbody tr:hover { background: #f8fafc; }
.lib-table .lc-name { text-align: left; }
.lib-table .lc-title {
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
  display: inline;
}
.lib-table .lc-name { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.lib-table .lc-title:hover { text-decoration: underline; }
.lib-table .lc-mat { white-space: normal; word-break: break-word; }
.lib-table .mt-size { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.lib-table .mt-plain { color: var(--faint); }
.lib-table .lc-time { color: var(--muted); white-space: nowrap; }
.lib-table .new-mini {
  display: inline-block;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.lib-table .lc-view {
  background: transparent;
  border: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 2px;
  cursor: pointer;
}
.lib-table .lc-view:hover { text-decoration: underline; }
.lib-table .lc-view:disabled { color: var(--faint); cursor: not-allowed; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }
