:root {






  color-scheme: light;






  --ink: #17211b;






  --muted: #66736b;






  --line: #d8ded8;






  --paper: #f6f4ee;






  --surface: #ffffff;






  --panel: #eef3ee;






  --primary: #28745a;






  --primary-dark: #19523f;






  --accent: #d99b3d;






  --danger: #b42318;






}













* { box-sizing: border-box; }













body {






  margin: 0;






  color: var(--ink);






  background: var(--paper);






  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;






}













button,






input,






select,






textarea { font: inherit; }













button {






  min-height: 40px;






  padding: 0 14px;






  color: #fff;






  background: var(--ink);






  border: 1px solid transparent;






  border-radius: 7px;






  cursor: default;






}













button:hover { filter: brightness(0.97); }






button:focus-visible,






input:focus-visible,






select:focus-visible,






textarea:focus-visible { outline: 3px solid rgba(217, 155, 61, 0.35); outline-offset: 2px; }













.primary { background: var(--primary); }






.ghost { color: var(--ink); background: #fff; border-color: var(--line); }






.danger-text { color: var(--danger); }






.download {






  min-height: 40px;






  padding: 0 14px;






  display: inline-flex;






  align-items: center;






  color: #fff;






  text-decoration: none;






  border-radius: 7px;






}






.hidden { display: none !important; }






.subline { margin: 6px 0 0; color: var(--muted); font-size: 13px; }






.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }













.shell { min-height: 100vh; }













.beian-footer {






  width: 100%;






  padding: 14px 18px 18px;






  display: flex;






  justify-content: center;






  gap: 14px;






  flex-wrap: wrap;






  color: var(--muted);






  font-size: 12px;






}













.beian-footer a {






  color: var(--muted);






  text-decoration: none;






}













.beian-footer a:hover {






  color: var(--primary-dark);






  text-decoration: underline;






}













.login {






  min-height: calc(100vh - 48px);






  display: grid;






  grid-template-columns: minmax(0, 1fr) 340px;






  align-items: center;






  gap: 42px;






  width: min(1040px, calc(100vw - 40px));






  margin: 0 auto;






}













.login h1 {






  margin: 8px 0 0;






  font-size: clamp(36px, 6vw, 72px);






  line-height: 1;






}













.login p {






  max-width: 560px;






  color: var(--muted);






  font-size: 16px;






  line-height: 1.8;






}













.login-card {






  padding: 22px;






  background: var(--surface);






  border: 1px solid var(--line);






  border-radius: 8px;






  text-align: center;






  box-shadow: 0 18px 45px rgba(23, 33, 27, 0.08);






}













.login-card img {






  width: 280px;






  height: 280px;






  object-fit: contain;






  background: var(--panel);






}













#loginStatus { margin-top: 14px; color: var(--muted); }













.app {






  min-height: 100vh;






  display: grid;






  grid-template-columns: 236px minmax(0, 1fr);






}













.sidebar {






  position: sticky;






  top: 0;






  height: 100vh;






  padding: 22px 16px;






  background: #17211b;






  color: #fff;






}













.brand {






  display: grid;






  gap: 6px;






  margin-bottom: 28px;






}













.brand span {






  width: 46px;






  height: 46px;






  display: grid;






  place-items: center;






  color: #17211b;






  background: var(--accent);






  border-radius: 8px;






  font-weight: 900;






}













.brand strong { font-size: 18px; }






.nav { display: grid; gap: 8px; }






.nav-item { justify-content: flex-start; width: 100%; color: #dfe7df; background: transparent; border-color: rgba(255,255,255,0.12); text-align: left; }






.nav-item.active { color: #17211b; background: var(--accent); border-color: var(--accent); }













.workspace {






  min-width: 0;






  padding: 28px;






}













.topbar,






.panel-head,






.job-head,






.order-head,






.user-row,






.toolbar,






.header-actions,






.order-actions,






.dialog-actions {






  display: flex;






  align-items: center;






  gap: 12px;






}













.topbar,






.panel-head,






.job-head,






.order-head,






.user-row { justify-content: space-between; }













h1,






h2 { margin: 0; line-height: 1.18; }






h1 { font-size: 30px; }






h2 { font-size: 19px; }













.stats {






  margin: 22px 0;






  display: grid;






  grid-template-columns: repeat(5, minmax(120px, 1fr));






  gap: 12px;






}













.stat {






  min-height: 92px;






  padding: 16px;






  background: var(--surface);






  border: 1px solid var(--line);






  border-radius: 8px;






}













.stat span { display: block; font-size: 30px; font-weight: 900; }






.stat label { color: var(--muted); font-size: 13px; }













.toolbar {






  align-items: stretch;






  flex-wrap: wrap;






  margin-bottom: 14px;






}













.toolbar input { width: min(360px, 100%); }













input,






select,






textarea {






  min-height: 40px;






  padding: 0 12px;






  color: var(--ink);






  background: #fff;






  border: 1px solid var(--line);






  border-radius: 7px;






}













textarea {






  width: 100%;






  min-height: 160px;






  padding: 12px;






  resize: vertical;






}













.orders,






.jobs,






.users { display: grid; gap: 14px; }













.panel,






.order-card,






.job,






.user-row {






  padding: 18px;






  background: var(--surface);






  border: 1px solid var(--line);






  border-radius: 8px;






  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.05);






}













.order-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40, 116, 90, 0.14); }






.order-title { display: grid; gap: 5px; }






.goods { font-size: 20px; font-weight: 900; }






.progress { color: var(--muted); font-size: 13px; }






.order-actions { flex-wrap: wrap; justify-content: flex-end; }






.order-actions button { min-height: 34px; padding: 0 10px; font-size: 13px; }













.stage-track {






  margin: 14px 0;






  display: grid;






  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));






  gap: 6px;






}













.stage-pill {






  min-height: 34px;






  display: grid;






  place-items: center;






  padding: 0 8px;






  color: var(--muted);






  background: var(--panel);






  border: 1px solid var(--line);






  border-radius: 7px;






  font-size: 12px;






  text-align: center;






}













.stage-pill.done { color: #fff; background: var(--primary); border-color: var(--primary); }






.stage-pill.current { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 800; }













.order-fields {






  display: grid;






  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));






  gap: 8px;






  margin: 12px 0;






}













.field {






  padding: 10px;






  background: #fbfcfa;






  border: 1px solid var(--line);






  border-radius: 7px;






  min-width: 0;






}













.field label { display: block; color: var(--muted); font-size: 12px; }






.field span { display: block; margin-top: 3px; overflow-wrap: anywhere; font-weight: 700; }






.order-desc { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }













.detail-grid {






  margin-top: 14px;






  display: grid;






  grid-template-columns: 1fr 1fr;






  gap: 12px;






}













.detail-panel {






  padding: 12px;






  background: #fbfcfa;






  border: 1px solid var(--line);






  border-radius: 8px;






}













.detail-panel h3 { margin: 0 0 10px; font-size: 15px; }






.action-list,






.inspection-list { display: grid; gap: 8px; }






.action-row,






.inspection-row { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }






.action-row strong,






.inspection-row strong { color: var(--ink); }






a { color: var(--primary-dark); }













.grid {






  display: grid;






  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));






  gap: 12px;






}













.tpl {






  min-height: 116px;






  padding: 13px;






  background: #fbfcfa;






  border: 1px solid var(--line);






  border-radius: 8px;






}













.tpl.done { background: #eef9f2; border-color: #8bc9a5; }






.tpl-title { font-weight: 800; }






.tpl-meta { margin-top: 6px; color: var(--muted); font-size: 13px; }






.records { margin-top: 10px; display: grid; gap: 7px; font-size: 13px; }






.records strong { color: var(--muted); }






.records span { overflow-wrap: anywhere; }






.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }






.thumb { position: relative; width: 66px; height: 66px; overflow: hidden; background: var(--panel); border-radius: 7px; }






.thumb img { width: 100%; height: 100%; object-fit: cover; }






.thumb button { position: absolute; right: 2px; top: 2px; min-height: 20px; width: 20px; padding: 0; font-size: 12px; background: rgba(23, 33, 27, 0.82); }






.thumb .adjust-photo { left: 4px; right: auto; top: auto; bottom: 4px; width: auto; padding: 0 7px; border-radius: 10px; color: #fff; background: rgba(37, 99, 235, 0.9); }













.role {






  min-width: 62px;






  padding: 6px 10px;






  text-align: center;






  border-radius: 7px;






  font-size: 12px;






  font-weight: 900;






}






.role.admin { color: #854d0e; background: #fef3c7; }






.role.user { color: #166534; background: #dcfce7; }






.user-main {






  min-width: 0;






  display: flex;






  align-items: center;






  gap: 12px;






}













.avatar {






  width: 42px;






  height: 42px;






  flex: 0 0 42px;






  border-radius: 50%;






  object-fit: cover;






  background: var(--panel);






}













.avatar-fallback {






  display: grid;






  place-items: center;






  color: #fff;






  background: var(--primary);






  font-weight: 900;






}













.user-actions { display: flex; gap: 8px; align-items: center; }













.archive-list { display: grid; gap: 10px; margin: 12px 0; }






.archive-day {






  overflow: hidden;






  background: #fff;






  border: 1px solid var(--line);






  border-radius: 8px;






}






.archive-day summary {






  display: flex;






  justify-content: space-between;






  padding: 13px 15px;






  cursor: pointer;






  background: #f7f9f6;






}






.archive-day summary span,






.archive-row small { color: var(--muted); }






.archive-rows { display: grid; }






.archive-row {






  display: flex;






  align-items: center;






  justify-content: space-between;






  gap: 14px;






  padding: 12px 15px;






  border-top: 1px solid var(--line);






}






.archive-row:first-child { border-top: 0; }






.archive-row > div:first-child { display: grid; gap: 4px; min-width: 0; }






.archive-row strong,






.archive-row small { overflow-wrap: anywhere; }






.archive-actions { display: flex; gap: 6px; flex: 0 0 auto; }






.panel.compact { padding: 12px 15px; }













dialog {






  width: min(720px, calc(100vw - 32px));






  border: 0;






  border-radius: 8px;






  box-shadow: 0 24px 70px rgba(23, 33, 27, 0.28);






}













.dialog-card { padding: 22px; }






.dialog-card h2 { margin-bottom: 14px; }






.form-grid,






.tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }






.form-grid label,






.full-label,






.tool-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }






.full-label { margin-top: 10px; }






.tool-fields .full-label { grid-column: 1 / -1; }






.dialog-actions { justify-content: flex-end; margin-top: 14px; }













@media (max-width: 900px) {






  .login,






  .app,






  .detail-grid { grid-template-columns: 1fr; }






  .sidebar { position: static; height: auto; }






  .stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); }






}













@media (max-width: 640px) {






  .workspace { padding: 18px; }






  .topbar,






  .panel-head,






  .job-head,






  .order-head,






  .user-row,






  .header-actions,






  .toolbar,






  .order-actions,






  .archive-row,






  .archive-actions,






  .dialog-actions {






    align-items: stretch;






    flex-direction: column;






  }






  .form-grid,






  .tool-fields,






  .stats { grid-template-columns: 1fr; }






  .toolbar input,






  .toolbar button,






  .toolbar select,






  .order-actions button,






  .header-actions button { width: 100%; }






}













/* 2026 visual refresh: preserve the existing app structure and behavior. */






:root {






  --ink: #0f172a;






  --muted: #526077;






  --line: #dce3ec;






  --paper: #f4f7fb;






  --surface: #ffffff;






  --panel: #edf3f9;






  --primary: #075f9e;






  --primary-dark: #064b7a;






  --accent: #e8b44f;






  --danger: #c82921;






  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);






  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);






  --radius-sm: 10px;






  --radius-md: 16px;






}













html { background: var(--paper); }













body {






  min-width: 320px;






  background:






    radial-gradient(circle at 85% 5%, rgba(7, 95, 158, 0.07), transparent 28rem),






    var(--paper);






  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;






  line-height: 1.5;






}













button,






.download,






input,






select { min-height: 44px; }













button,






.download {






  border-radius: var(--radius-sm);






  font-weight: 700;






  touch-action: manipulation;






  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;






}













button:hover,






.download:hover { filter: none; box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12); }






button:active,






.download:active { box-shadow: var(--shadow-sm); }






button:disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }













button:focus-visible,






a:focus-visible,






input:focus-visible,






select:focus-visible,






textarea:focus-visible,






summary:focus-visible {






  outline: 3px solid rgba(7, 95, 158, 0.3);






  outline-offset: 3px;






}













.primary,






.download.primary { background: var(--primary); }






.primary:hover,






.download.primary:hover { background: var(--primary-dark); }






.ghost { background: rgba(255, 255, 255, 0.92); }













.eyebrow {






  color: var(--primary);






  font-size: 12px;






  font-weight: 800;






  letter-spacing: 0.12em;






}













.login {






  position: relative;






  min-height: calc(100vh - 52px);






  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px);






  gap: clamp(48px, 8vw, 112px);






  width: min(1180px, calc(100vw - 64px));






  padding: 64px 0;






}













.login::before {






  content: "BSM";






  position: absolute;






  top: 32px;






  left: 0;






  width: 56px;






  height: 56px;






  display: grid;






  place-items: center;






  color: #fff;






  background: var(--ink);






  border-radius: 15px;






  font-size: 14px;






  font-weight: 900;






  letter-spacing: 0.06em;






  box-shadow: var(--shadow-md);






}













.login-copy { max-width: 670px; }






.login h1 {






  max-width: 8em;






  margin: 14px 0 0;






  font-size: clamp(46px, 7vw, 82px);






  letter-spacing: -0.045em;






}













.login p {






  max-width: 600px;






  margin: 24px 0 0;






  color: #46536a;






  font-size: clamp(16px, 1.5vw, 19px);






  line-height: 1.85;






}













.login-meta {






  display: flex;






  flex-wrap: wrap;






  gap: 10px;






  margin-top: 28px;






}













.login-meta span {






  padding: 7px 12px;






  color: #334155;






  background: rgba(255, 255, 255, 0.72);






  border: 1px solid var(--line);






  border-radius: 999px;






  font-size: 13px;






  font-weight: 700;






}













.login-card {






  position: relative;






  padding: 28px;






  border: 1px solid rgba(148, 163, 184, 0.35);






  border-radius: 22px;






  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);






}













.login-card::before {






  content: "安全登录";






  display: block;






  margin-bottom: 18px;






  color: var(--ink);






  font-size: 17px;






  font-weight: 800;






  text-align: left;






}













.login-card img {






  width: 100%;






  height: auto;






  aspect-ratio: 1;






  border-radius: 14px;






}













#loginStatus { min-height: 24px; margin-top: 16px; }

.guest-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.guest-divider::before,
.guest-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.guest-login {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.guest-login:hover { color: #fff; background: var(--ink); }
.guest-login:disabled { cursor: wait; opacity: .65; }
.login-card .guest-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }






.beian-footer { padding-bottom: 20px; }













.app { grid-template-columns: 252px minmax(0, 1fr); }













.sidebar {






  padding: 24px 18px;






  background: linear-gradient(180deg, #0f172a 0%, #172238 100%);






  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.08);






}













.brand { gap: 10px; margin-bottom: 34px; }






.brand span {






  width: 54px;






  height: 54px;






  color: var(--ink);






  border-radius: 15px;






  letter-spacing: 0.04em;






}






.brand strong { font-size: 17px; }






.nav { gap: 6px; }






.nav-item {






  display: flex;






  align-items: center;






  min-height: 44px;






  padding: 0 14px;






  border-color: transparent;






  border-radius: 10px;






  font: inherit;






  font-weight: 650;






  line-height: 1.2;






  text-decoration: none;






}






.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: none; }






.nav-item.active { color: var(--ink); background: var(--accent); }













.workspace { padding: clamp(22px, 3vw, 42px); }






.topbar { min-height: 64px; }






h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -0.025em; }






h2 { font-size: 20px; }






.subline { color: var(--muted); font-size: 14px; }













.stats { margin: 28px 0; gap: 14px; }






.stat {






  min-height: 108px;






  padding: 18px;






  border-radius: var(--radius-md);






  box-shadow: var(--shadow-sm);






}






.stat span { color: var(--ink); font-size: 34px; letter-spacing: -0.04em; }






.stat label { margin-top: 4px; font-size: 13px; }













.panel,






.order-card,






.job,






.user-row {






  border-color: rgba(203, 213, 225, 0.8);






  border-radius: var(--radius-md);






  box-shadow: var(--shadow-sm);






  transition: border-color 180ms ease, box-shadow 180ms ease;






}






.order-card:hover,






.job:hover { border-color: #b8c6d8; box-shadow: var(--shadow-md); }













input,






select,






textarea {






  border-color: #cbd5e1;






  border-radius: var(--radius-sm);






}






input:hover,






select:hover,






textarea:hover { border-color: #94a3b8; }













.stage-pill,






.field,






.detail-panel,






.tpl,






.archive-day { border-radius: var(--radius-sm); }






.field,






.detail-panel,






.tpl { background: #f8fafc; }






.archive-day { box-shadow: var(--shadow-sm); }













dialog {






  border-radius: 20px;






  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);






}






dialog::backdrop { background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(3px); }













@media (max-width: 900px) {






  .login { grid-template-columns: 1fr; width: min(680px, calc(100vw - 40px)); padding: 120px 0 44px; }






  .login-card { width: min(400px, 100%); }






  .app { grid-template-columns: minmax(0, 1fr); }






  .sidebar { position: static; height: auto; padding: 16px; }






  .brand { display: flex; align-items: center; margin-bottom: 16px; }






  .brand span { width: 44px; height: 44px; }






  .nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }






  .nav-item { flex: 0 0 auto; width: auto; white-space: nowrap; }






}













@media (max-width: 640px) {






  .login { width: min(100% - 32px, 520px); gap: 36px; padding-top: 106px; }






  .login::before { top: 26px; }






  .login h1 { font-size: clamp(40px, 13vw, 56px); }






  .login p { margin-top: 18px; }






  .login-meta { margin-top: 22px; }






  .login-card { padding: 20px; border-radius: 18px; }






  .workspace { padding: 20px 16px 32px; }






  .topbar,






  .panel-head,






  .job-head,






  .order-head,






  .user-row,






  .header-actions,






  .toolbar,






  .order-actions,






  .archive-row,






  .archive-actions,






  .dialog-actions { gap: 10px; }






  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }






  .stat { min-height: 94px; }






  .dialog-card { padding: 18px; }






}













@media (prefers-reduced-motion: reduce) {






  *, *::before, *::after {






    scroll-behavior: auto !important;






    transition-duration: 0.01ms !important;






    animation-duration: 0.01ms !important;






    animation-iteration-count: 1 !important;






  }






}




















/* =========================================================






   工具资源中心 (Resource Center) 现代化卡片与下载模块






   ========================================================= */






.resource-container {






  display: flex;






  flex-direction: column;






  gap: 20px;






  margin-top: 14px;






}













.resource-section-title {






  display: flex;






  align-items: center;






  gap: 10px;






}













.section-badge {






  display: inline-flex;






  align-items: center;






  padding: 3px 10px;






  background: rgba(40, 116, 90, 0.12);






  color: var(--primary);






  border-radius: 20px;






  font-size: 12px;






  font-weight: 700;






}













.resource-section-title h3 {






  margin: 0;






  font-size: 17px;






  font-weight: 800;






  color: var(--ink);






}













.resource-grid {






  display: grid;






  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));






  gap: 20px;






}













.resource-card {






  background: #ffffff;






  border: 1px solid var(--line);






  border-radius: 12px;






  padding: 24px;






  display: flex;






  flex-direction: column;






  gap: 16px;






  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);






  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);






  position: relative;






  overflow: hidden;






}













.resource-card:hover {






  transform: translateY(-2px);






  box-shadow: 0 8px 24px rgba(40, 116, 90, 0.08);






  border-color: rgba(40, 116, 90, 0.3);






}













.resource-card-header {






  display: flex;






  gap: 16px;






  align-items: flex-start;






}













.resource-icon-wrap {






  width: 54px;






  height: 54px;






  background: linear-gradient(135deg, rgba(40, 116, 90, 0.1) 0%, rgba(40, 116, 90, 0.2) 100%);






  border: 1px solid rgba(40, 116, 90, 0.2);






  border-radius: 12px;






  display: flex;






  align-items: center;






  justify-content: center;






  color: var(--primary);






  flex-shrink: 0;






}













.resource-header-text {






  display: flex;






  flex-direction: column;






  gap: 4px;






}













.resource-pills {






  display: flex;






  gap: 6px;






  margin-bottom: 2px;






}













.pill {






  font-size: 11px;






  font-weight: 700;






  padding: 2px 8px;






  border-radius: 12px;






}













.pill-green {






  background: #e8f5e9;






  color: #2e7d32;






}













.pill-orange {






  background: #fff3e0;






  color: #e65100;






}













.resource-name {






  margin: 0;






  font-size: 18px;






  font-weight: 800;






  color: var(--ink);






}













.resource-version {






  font-size: 12px;






  color: var(--muted);






}













.resource-desc {






  margin: 0;






  font-size: 14px;






  line-height: 1.6;






  color: #334139;






}













.resource-feature-list {






  display: flex;






  flex-direction: column;






  gap: 8px;






  padding: 12px 16px;






  background: var(--panel);






  border-radius: 8px;






  font-size: 13px;






  color: var(--ink);






}













.feature-item {






  display: flex;






  align-items: center;






  gap: 8px;






}













.feature-dot {






  width: 6px;






  height: 6px;






  border-radius: 50%;






  background: var(--primary);






}













.resource-card-footer {






  display: flex;






  flex-direction: column;






  gap: 8px;






  margin-top: 4px;






}













.resource-download-btn {






  display: inline-flex;






  align-items: center;






  justify-content: center;






  gap: 10px;






  background: var(--primary);






  color: #ffffff;






  padding: 12px 20px;






  border-radius: 8px;






  font-size: 14px;






  font-weight: 700;






  text-decoration: none;






  transition: all 0.2s ease;






  box-shadow: 0 4px 12px rgba(40, 116, 90, 0.2);






}













.resource-download-btn:hover {






  background: var(--primary-dark);






  box-shadow: 0 6px 16px rgba(40, 116, 90, 0.3);






  transform: translateY(-1px);






}













.resource-tip {






  font-size: 12px;






  color: var(--muted);






  text-align: center;






}




















/* =========================================================






   5大深度优化：UI 组件与交互样式增强






   ========================================================= */













/* --- 多选圆点 Checkbox --- */






.row-select-wrap {






  display: flex;






  align-items: center;






  margin-right: 12px;






}













.data-select-check {






  width: 18px;






  height: 18px;






  min-height: 18px;






  accent-color: var(--primary);






  cursor: pointer;






  border-radius: 4px;






}













.shared-badge {






  display: inline-flex;






  align-items: center;






  padding: 1px 6px;






  background: #e0f2fe;






  color: #0369a1;






  border-radius: 4px;






  font-size: 11px;






  font-weight: 700;






}













/* --- 管理员视角切换下拉栏 --- */






.view-as-wrap {






  display: inline-flex;






  align-items: center;






  background: #ffffff;






  border: 1px solid var(--primary);






  border-radius: 8px;






  padding: 2px 8px;






  gap: 6px;






  box-shadow: 0 2px 6px rgba(40, 116, 90, 0.1);






}













.view-as-badge {






  font-size: 11px;






  font-weight: 800;






  color: #ffffff;






  background: var(--primary);






  padding: 2px 6px;






  border-radius: 4px;






  text-transform: uppercase;






}













#viewAsSelect {






  border: none;






  background: transparent;






  font-size: 13px;






  font-weight: 600;






  color: var(--ink);






  cursor: pointer;






  outline: none;






  min-height: 32px;






}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(3px);
}

.loading-overlay.hidden { display: none; }

.loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: loading-spin .7s linear infinite;
}

@keyframes loading-spin { to { transform: rotate(360deg); } }

.flow-notice {
  position: sticky;
  top: 8px;
  z-index: 30;
  margin: 8px 18px 0;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  background: #eff6ff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .08);
}

.flow-notice.error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }

.date-group-content {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}













/* --- 工具资源卡片管理员操作条 --- */






.admin-card-actions {






  position: absolute;






  top: 14px;






  right: 14px;






  display: flex;






  gap: 6px;






}













.admin-card-actions button {






  min-height: 28px;






  padding: 0 8px;






  font-size: 12px;






}













/* --- 个人偏好设置面板 --- */






.setting-form-grid {






  display: flex;






  flex-direction: column;






  gap: 18px;






  max-width: 680px;






  margin-top: 16px;






}













.form-group {






  display: flex;






  flex-direction: column;






  gap: 6px;






}













.form-group label {






  font-size: 13px;






  font-weight: 700;






  color: var(--ink);






}













.form-group-row {






  display: grid;






  grid-template-columns: 1fr 1fr;






  gap: 16px;






}













.preview-box {






  background: var(--panel);






  border: 1px dashed var(--primary);






  border-radius: 8px;






  padding: 14px 18px;






  display: flex;






  flex-direction: column;






  gap: 6px;






}













.preview-label {






  font-size: 12px;






  font-weight: 700;






  color: var(--muted);






}













.preview-result {






  font-family: Consolas, Monaco, monospace;






  font-size: 14px;






  font-weight: 700;






  color: var(--primary-dark);






  word-break: break-all;






}













.info-box {






  padding: 10px 14px;






  background: var(--panel);






  border-radius: 6px;






  color: var(--primary-dark);






  font-weight: 600;






}













.form-grid-single {






  display: flex;






  flex-direction: column;






  gap: 14px;






}













.loading-state {






  padding: 30px;






  text-align: center;






  color: var(--muted);






  font-size: 14px;






}




















/* =========================================================






   实时行情看板与局域网专网提示样式






   ========================================================= */













/* --- 顶部行情看板 --- */






.market-ticker {






  display: inline-flex;






  align-items: center;






  gap: 12px;






  background: #ffffff;






  border: 1px solid var(--line);






  border-radius: 8px;






  padding: 4px 14px;






  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);






  margin-right: 8px;






}













.ticker-item {






  display: inline-flex;






  align-items: baseline;






  gap: 5px;






  font-size: 12px;






}













.ticker-label {






  color: var(--muted);






  font-weight: 700;






  font-size: 11px;






}













.ticker-item strong {






  font-family: Consolas, Monaco, monospace;






  font-size: 13px;






  color: var(--ink);






  font-weight: 800;






}













.ticker-unit {






  font-size: 10px;






  color: var(--muted);






}













.ticker-tag {






  font-size: 10px;






  font-weight: 800;






  padding: 1px 4px;






  border-radius: 4px;






}













.tag-up {






  background: #fef2f2;






  color: #dc2626;






}













.tag-down {






  background: #f0fdf4;






  color: #16a34a;






}













.ticker-divider {






  width: 1px;






  height: 16px;






  background: var(--line);






}













/* --- 局域网提示弹窗 --- */






.lan-notice-card {






  max-width: 460px;






  padding: 24px;






}













.lan-header {






  display: flex;






  gap: 14px;






  align-items: center;






  margin-bottom: 16px;






}













.lan-icon-badge {






  width: 48px;






  height: 48px;






  background: rgba(217, 155, 61, 0.15);






  color: #b45309;






  border-radius: 12px;






  display: flex;






  align-items: center;






  justify-content: center;






  flex-shrink: 0;






}













.lan-header h2 {






  margin: 0;






  font-size: 18px;






  font-weight: 800;






  color: var(--ink);






}













.wifi-box {






  background: #fffbeb;






  border: 1px solid #fde68a;






  border-radius: 8px;






  padding: 14px 16px;






  margin: 12px 0;






  display: flex;






  flex-direction: column;






  gap: 8px;






}













.wifi-title {






  font-size: 13px;






  font-weight: 800;






  color: #92400e;






}













.wifi-row {






  display: flex;






  justify-content: space-between;






  align-items: center;






  font-size: 13px;






  color: #78350f;






}













.wifi-val {






  font-family: Consolas, Monaco, monospace;






  font-size: 14px;






  color: #92400e;






  background: #ffffff;






  padding: 2px 8px;






  border-radius: 4px;






  border: 1px solid #fef3c7;






}













.lan-tips {






  font-size: 12px;






  color: var(--muted);






  line-height: 1.5;






  margin: 8px 0 16px;






}


































/* =========================================================






   全局后台上传托盘 (Background Upload Tray) 现代化卡片与进度条






   ========================================================= */






.upload-tray {






  position: fixed;






  bottom: 24px;






  right: 24px;






  width: 360px;






  background: #ffffff;






  border: 1px solid var(--primary);






  border-radius: 12px;






  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);






  padding: 16px 18px;






  z-index: 9999;






  display: flex;






  flex-direction: column;






  gap: 12px;






  animation: traySlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);






  transition: all 0.3s ease;






}













@keyframes traySlideIn {






  from { transform: translateY(30px); opacity: 0; }






  to { transform: translateY(0); opacity: 1; }






}













.tray-header {






  display: flex;






  align-items: center;






  justify-content: space-between;






}













.tray-title-wrap {






  display: flex;






  align-items: center;






  gap: 10px;






}













.tray-title-wrap strong {






  font-size: 14px;






  color: var(--ink);






}













.tray-close {






  background: transparent;






  border: none;






  color: var(--muted);






  font-size: 20px;






  line-height: 1;






  min-height: auto;






  padding: 2px 6px;






  cursor: pointer;






}













.tray-close:hover {






  color: var(--danger);






  background: rgba(0,0,0,0.05);






}













.tray-spinner {






  width: 16px;






  height: 16px;






  border: 2px solid rgba(40, 116, 90, 0.2);






  border-top-color: var(--primary);






  border-radius: 50%;






  animation: spin 0.8s linear infinite;






}













@keyframes spin {






  to { transform: rotate(360deg); }






}













.tray-body {






  display: flex;






  flex-direction: column;






  gap: 8px;






}













.tray-file-info {






  display: flex;






  justify-content: space-between;






  align-items: center;






}













.tray-name {






  font-size: 13px;






  font-weight: 700;






  color: var(--ink);






  max-width: 260px;






  overflow: hidden;






  text-overflow: ellipsis;






  white-space: nowrap;






}













.tray-percent {






  font-family: Consolas, Monaco, monospace;






  font-size: 14px;






  font-weight: 800;






  color: var(--primary);






}













.tray-progress-bar {






  width: 100%;






  height: 8px;






  background: var(--panel);






  border-radius: 4px;






  overflow: hidden;






}













.tray-progress-fill {






  height: 100%;






  background: linear-gradient(90deg, var(--primary) 0%, #34d399 100%);






  border-radius: 4px;






  transition: width 0.15s ease-out;






}













.tray-meta {






  display: flex;






  justify-content: space-between;






  align-items: center;






  font-size: 11px;






  color: var(--muted);






}













.tray-meta span {






  font-family: Consolas, Monaco, monospace;






}













.tray-success {






  border-color: #10b981;






  background: #f0fdf4;






}













.tray-error {






  border-color: #ef4444;






  background: #fef2f2;






}


































/* =========================================================






   全员用户管理与视角快速切换样式






   ========================================================= */






.user-row {






  display: flex;






  justify-content: space-between;






  align-items: center;






  padding: 16px 20px;






  background: #ffffff;






  border: 1px solid var(--line);






  border-radius: 10px;






  margin-bottom: 12px;






  transition: all 0.2s ease;






}













.user-row:hover {






  border-color: var(--primary);






  box-shadow: 0 4px 12px rgba(40, 116, 90, 0.06);






}













.user-row-active {






  background: #f0fdf4 !important;






  border-color: #86efac !important;






  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12) !important;






}













.user-main-info {






  display: flex;






  align-items: center;






  gap: 14px;






}













.user-actions {






  display: flex;






  align-items: center;






  gap: 10px;






}













.viewing-badge {






  font-size: 13px;






  font-weight: 800;






  color: #15803d;






  background: #dcfce7;






  padding: 6px 12px;






  border-radius: 6px;






  border: 1px solid #bbf7d0;






}













.status-bound {






  color: #15803d;






  font-weight: 700;






}













.status-unbound {






  color: #d97706;






  font-weight: 700;






}













.switch-to-user-btn {






  font-weight: 700;






  cursor: pointer;






}




















/* =========================================================






   全页面下载按钮高对比度与清晰样式修复






   ========================================================= */






.mode-export,






a.mode-export,






button.mode-export {






  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;






  color: #ffffff !important;






  font-weight: 700 !important;






  font-size: 13px !important;






  padding: 8px 16px !important;






  border-radius: 8px !important;






  border: 1px solid #1d4ed8 !important;






  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;






  text-decoration: none !important;






  display: inline-flex !important;






  align-items: center !important;






  justify-content: center !important;






  min-height: 38px !important;






  cursor: pointer !important;






  white-space: nowrap !important;






}













.mode-export:hover,






a.mode-export:hover,






button.mode-export:hover {






  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;






  color: #ffffff !important;






  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;






}













/* 列表行内的下载按钮 */






.archive-row-actions a.download,






.archive-row-actions .download,






.archive-item-actions .download,






.ghost.download {






  background: #eff6ff !important;






  color: #1d4ed8 !important;






  border: 1px solid #bfdbfe !important;






  font-weight: 700 !important;






  border-radius: 6px !important;






  padding: 4px 12px !important;






  text-decoration: none !important;






  display: inline-flex !important;






  align-items: center !important;






}













.archive-row-actions a.download:hover,






.archive-row-actions .download:hover,






.archive-item-actions .download:hover,






.ghost.download:hover {






  background: #2563eb !important;






  color: #ffffff !important;






  border-color: #1d4ed8 !important;






}


















/* ============================================================





   2026年值日排班与考勤系统组件样式





   ============================================================ */











/* 1. 顶部右上角值日人员胶囊徽章 */





.duty-badge {





  display: inline-flex;





  align-items: center;





  gap: 6px;





  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);





  border: 1px solid #bae0ff;





  border-radius: 20px;





  padding: 6px 14px;





  font-size: 13px;





  color: #0050b3;





  cursor: pointer;





  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.08);





  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);





  user-select: none;





}











.duty-badge:hover {





  background: linear-gradient(135deg, #e6f4ff 0%, #d4edff 100%);





  border-color: #69b1ff;





  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.18);





  transform: translateY(-1px);





}











.duty-badge .duty-icon {





  font-size: 14px;





}











.duty-badge .duty-label {





  color: #597ef7;





  font-size: 12px;





  font-weight: 500;





}











.duty-badge .duty-name {





  color: #0958d9;





  font-weight: 700;





  font-size: 13px;





}











.duty-badge.is-absent {





  background: linear-gradient(135deg, #fff2f0 0%, #ffece8 100%);





  border-color: #ffccc7;





  color: #cf1322;





}











.duty-badge.is-absent .duty-name {





  color: #cf1322;





  text-decoration: line-through;





}











/* 2. 提前一天专属提醒横幅 */





.duty-alert-banner {





  display: flex;





  align-items: center;





  justify-content: space-between;





  background: linear-gradient(90deg, #fffbe6 0%, #fff1b8 100%);





  border: 1.5px solid #ffe58f;





  border-radius: 10px;





  padding: 10px 18px;





  margin: 12px 0 16px 0;





  box-shadow: 0 4px 14px rgba(250, 173, 20, 0.12);





  animation: dutySlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);





}











@keyframes dutySlideDown {





  from { opacity: 0; transform: translateY(-12px); }





  to { opacity: 1; transform: translateY(0); }





}











.duty-alert-content {





  display: flex;





  align-items: center;





  gap: 10px;





  color: #d46b08;





  font-size: 14px;





  font-weight: 600;





}











.duty-alert-content .duty-alert-icon {





  font-size: 18px;





  animation: dutyPulse 1.5s infinite;





}











@keyframes dutyPulse {





  0%, 100% { transform: scale(1); }





  50% { transform: scale(1.15); }





}











.duty-alert-close {





  background: transparent;





  border: none;





  color: #ad4e00;





  font-size: 16px;





  cursor: pointer;





  padding: 4px 8px;





  border-radius: 4px;





  transition: background 0.2s;





}











.duty-alert-close:hover {





  background: rgba(212, 107, 8, 0.15);





}











/* 3. 值日排班日历弹窗 */





.duty-modal-card {





  max-width: 720px;





  width: 95%;





  border-radius: 16px;





  background: #ffffff;





  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);





  overflow: hidden;





}











.duty-header-left {





  display: flex;





  align-items: center;





  gap: 8px;





}











.duty-header-left h3 {





  margin: 0;





  font-size: 17px;





  font-weight: 700;





  color: #1f1f1f;





}











.duty-month-selector {





  display: flex;





  align-items: center;





  gap: 12px;





}











.duty-month-title {





  font-size: 15px;





  font-weight: 700;





  color: #1677ff;





  min-width: 110px;





  text-align: center;





}











.duty-calendar-grid-header {





  display: grid;





  grid-template-columns: repeat(7, 1fr);





  text-align: center;





  font-weight: 600;





  font-size: 13px;





  color: #595959;





  padding: 10px 0;





  background: #fafafa;





  border-bottom: 1px solid #f0f0f0;





}











.duty-calendar-grid-header .weekend {





  color: #ff7875;





}











.duty-calendar-grid {





  display: grid;





  grid-template-columns: repeat(7, 1fr);





  gap: 6px;





  padding: 14px;





  background: #ffffff;





  min-height: 320px;





}











.duty-day-cell {





  border: 1px solid #f0f0f0;





  border-radius: 8px;





  padding: 8px 6px;





  min-height: 64px;





  display: flex;





  flex-direction: column;





  justify-content: space-between;





  background: #ffffff;





  transition: all 0.2s;





  position: relative;





}











.duty-day-cell.is-other-month {





  opacity: 0.3;





  background: #fafafa;





}











.duty-day-cell.is-today {





  border: 1.5px solid #1677ff;





  background: #f0f7ff;





}











.duty-day-cell.is-rest {





  background: #fafafa;





  border-color: #f5f5f5;





}











.duty-day-cell.is-absent {





  background: #fff1f0;





  border-color: #ffccc7;





}











.duty-day-num {





  font-size: 12px;





  font-weight: 600;





  color: #8c8c8c;





}











.duty-day-cell.is-today .duty-day-num {





  color: #1677ff;





  font-weight: 800;





}











.duty-person-tag {





  font-size: 12px;





  font-weight: 600;





  color: #0958d9;





  background: #e6f4ff;





  border-radius: 4px;





  padding: 2px 4px;





  text-align: center;





  overflow: hidden;





  text-overflow: ellipsis;





  white-space: nowrap;





}











.duty-day-cell.is-absent .duty-person-tag {





  background: #ffccc7;





  color: #cf1322;





  text-decoration: line-through;





}











.duty-absent-badge {





  font-size: 10px;





  color: #cf1322;





  background: #fff2f0;





  border: 1px solid #ffccc7;





  border-radius: 3px;





  padding: 1px 3px;





  text-align: center;





  margin-top: 2px;





}











.duty-day-cell.can-admin:hover {





  cursor: pointer;





  border-color: #69b1ff;





  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);





}











.duty-legend {





  display: flex;





  align-items: center;





  flex-wrap: wrap;





  gap: 16px;





  padding: 12px 16px;





  background: #fafafa;





  border-top: 1px solid #f0f0f0;





  font-size: 12px;





  color: #595959;





}











.duty-legend .legend-item {





  display: inline-flex;





  align-items: center;





  gap: 6px;





}











.duty-legend .dot {





  width: 10px;





  height: 10px;





  border-radius: 3px;





}











.dot-today { background: #1677ff; }





.dot-normal { background: #bae0ff; }





.dot-absent { background: #ff4d4f; }





.dot-rest { background: #d9d9d9; }











.duty-admin-hint {





  margin-left: auto;





  color: #fa8c16;





  font-weight: 500;





}















/* ============================================================




   2026年值日排班与考勤系统组件样式 (修复单行与居中遮罩)




   ============================================================ */









/* 1. 顶部右上角值日人员胶囊徽章 (强制单行不折行) */




.duty-badge {




  display: inline-flex !important;




  align-items: center !important;




  gap: 6px !important;




  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%) !important;




  border: 1px solid #bae0ff !important;




  border-radius: 20px !important;




  padding: 6px 14px !important;




  font-size: 13px !important;




  color: #0050b3 !important;




  cursor: pointer !important;




  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.08) !important;




  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;




  user-select: none !important;




  white-space: nowrap !important;




  flex-shrink: 0 !important;




  line-height: 1 !important;




}









.duty-badge:hover {




  background: linear-gradient(135deg, #e6f4ff 0%, #d4edff 100%) !important;




  border-color: #69b1ff !important;




  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.18) !important;




  transform: translateY(-1px) !important;




}









.duty-badge .duty-icon {




  font-size: 14px !important;




  line-height: 1 !important;




  white-space: nowrap !important;




}









.duty-badge .duty-label {




  color: #597ef7 !important;




  font-size: 12px !important;




  font-weight: 500 !important;




  white-space: nowrap !important;




  line-height: 1 !important;




}









.duty-badge .duty-name {




  color: #0958d9 !important;




  font-weight: 700 !important;




  font-size: 13px !important;




  white-space: nowrap !important;




  line-height: 1 !important;




}









.duty-badge.is-absent {




  background: linear-gradient(135deg, #fff2f0 0%, #ffece8 100%) !important;




  border-color: #ffccc7 !important;




  color: #cf1322 !important;




}









.duty-badge.is-absent .duty-name {




  color: #cf1322 !important;




  text-decoration: line-through !important;




}









/* 2. 提前一天专属提醒横幅 */




.duty-alert-banner {




  display: flex;




  align-items: center;




  justify-content: space-between;




  background: linear-gradient(90deg, #fffbe6 0%, #fff1b8 100%);




  border: 1.5px solid #ffe58f;




  border-radius: 10px;




  padding: 10px 18px;




  margin: 12px 0 16px 0;




  box-shadow: 0 4px 14px rgba(250, 173, 20, 0.12);




  animation: dutySlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);




  white-space: nowrap;




}









@keyframes dutySlideDown {




  from { opacity: 0; transform: translateY(-12px); }




  to { opacity: 1; transform: translateY(0); }




}









.duty-alert-content {




  display: flex;




  align-items: center;




  gap: 10px;




  color: #d46b08;




  font-size: 14px;




  font-weight: 600;




  white-space: nowrap;




}









.duty-alert-content .duty-alert-icon {




  font-size: 18px;




  animation: dutyPulse 1.5s infinite;




}









@keyframes dutyPulse {




  0%, 100% { transform: scale(1); }




  50% { transform: scale(1.15); }




}









.duty-alert-close {




  background: transparent;




  border: none;




  color: #ad4e00;




  font-size: 16px;




  cursor: pointer;




  padding: 4px 8px;




  border-radius: 4px;




  transition: background 0.2s;




}









.duty-alert-close:hover {




  background: rgba(212, 107, 8, 0.15);




}









/* 3. 值日排班日历弹窗 (标准全屏居中 Backdrop) */




.duty-modal-backdrop {




  position: fixed !important;




  top: 0 !important;




  left: 0 !important;




  right: 0 !important;




  bottom: 0 !important;




  width: 100vw !important;




  height: 100vh !important;




  background: rgba(15, 23, 42, 0.6) !important;




  backdrop-filter: blur(6px) !important;




  -webkit-backdrop-filter: blur(6px) !important;




  display: flex !important;




  align-items: center !important;




  justify-content: center !important;




  z-index: 999999 !important;




  padding: 20px !important;




  box-sizing: border-box !important;




}









.duty-modal-backdrop.hidden {




  display: none !important;




}









.duty-modal-card {




  max-width: 680px !important;




  width: 100% !important;




  max-height: 90vh !important;




  border-radius: 16px !important;




  background: #ffffff !important;




  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;




  overflow: hidden !important;




  display: flex !important;




  flex-direction: column !important;




  animation: dutyModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;




}









@keyframes dutyModalZoom {




  from { opacity: 0; transform: scale(0.95) translateY(10px); }




  to { opacity: 1; transform: scale(1) translateY(0); }




}









.duty-modal-header {




  display: flex !important;




  align-items: center !important;




  justify-content: space-between !important;




  padding: 16px 20px !important;




  background: #ffffff !important;




  border-bottom: 1px solid #f0f0f0 !important;




}









.duty-header-left {




  display: flex !important;




  align-items: center !important;




  gap: 8px !important;




}









.duty-header-left h3 {




  margin: 0 !important;




  font-size: 16px !important;




  font-weight: 700 !important;




  color: #1f1f1f !important;




}









.duty-month-selector {




  display: flex !important;




  align-items: center !important;




  gap: 12px !important;




}









.duty-month-btn {




  background: #f0f5ff !important;




  color: #1677ff !important;




  border: 1px solid #adc6ff !important;




  border-radius: 6px !important;




  padding: 5px 12px !important;




  font-size: 13px !important;




  font-weight: 600 !important;




  cursor: pointer !important;




  transition: all 0.2s !important;




}









.duty-month-btn:hover {




  background: #1677ff !important;




  color: #ffffff !important;




  border-color: #1677ff !important;




}









.duty-month-title {




  font-size: 15px !important;




  font-weight: 700 !important;




  color: #1677ff !important;




  min-width: 100px !important;




  text-align: center !important;




}









.duty-close-btn {




  background: #f5f5f5 !important;




  border: none !important;




  border-radius: 50% !important;




  width: 32px !important;




  height: 32px !important;




  font-size: 16px !important;




  color: #595959 !important;




  display: inline-flex !important;




  align-items: center !important;




  justify-content: center !important;




  cursor: pointer !important;




  transition: background 0.2s !important;




}









.duty-close-btn:hover {




  background: #ff4d4f !important;




  color: #ffffff !important;




}









.duty-calendar-grid-header {




  display: grid !important;




  grid-template-columns: repeat(7, 1fr) !important;




  text-align: center !important;




  font-weight: 600 !important;




  font-size: 13px !important;




  color: #595959 !important;




  padding: 10px 0 !important;




  background: #fafafa !important;




  border-bottom: 1px solid #f0f0f0 !important;




}









.duty-calendar-grid-header .weekend {




  color: #ff7875 !important;




}









.duty-calendar-grid {




  display: grid !important;




  grid-template-columns: repeat(7, 1fr) !important;




  gap: 6px !important;




  padding: 14px !important;




  background: #ffffff !important;




  min-height: 300px !important;




  box-sizing: border-box !important;




}









.duty-day-cell {




  border: 1px solid #f0f0f0 !important;




  border-radius: 8px !important;




  padding: 6px 4px !important;




  min-height: 60px !important;




  display: flex !important;




  flex-direction: column !important;




  justify-content: space-between !important;




  background: #ffffff !important;




  transition: all 0.2s !important;




  position: relative !important;




  box-sizing: border-box !important;




}









.duty-day-cell.is-other-month {




  opacity: 0.25 !important;




  background: #fafafa !important;




}









.duty-day-cell.is-today {




  border: 2px solid #1677ff !important;




  background: #f0f7ff !important;




}









.duty-day-cell.is-rest {




  background: #fcfcfc !important;




  border-color: #f5f5f5 !important;




}









.duty-day-cell.is-absent {




  background: #fff1f0 !important;




  border-color: #ffccc7 !important;




}









.duty-day-num {




  font-size: 12px !important;




  font-weight: 700 !important;




  color: #8c8c8c !important;




  line-height: 1 !important;




}









.duty-day-cell.is-today .duty-day-num {




  color: #1677ff !important;




  font-weight: 800 !important;




}









.duty-person-tag {




  font-size: 12px !important;




  font-weight: 700 !important;




  color: #0958d9 !important;




  background: #e6f4ff !important;




  border-radius: 4px !important;




  padding: 3px 2px !important;




  text-align: center !important;




  overflow: hidden !important;




  text-overflow: ellipsis !important;




  white-space: nowrap !important;




  line-height: 1.1 !important;




}









.duty-day-cell.is-absent .duty-person-tag {




  background: #ffccc7 !important;




  color: #cf1322 !important;




  text-decoration: line-through !important;




}









.duty-absent-badge {




  font-size: 10px !important;




  color: #cf1322 !important;




  background: #fff2f0 !important;




  border: 1px solid #ffccc7 !important;




  border-radius: 3px !important;




  padding: 1px 2px !important;




  text-align: center !important;




  margin-top: 2px !important;




}









.duty-day-cell.can-admin:hover {




  cursor: pointer !important;




  border-color: #69b1ff !important;




  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2) !important;




  transform: translateY(-1px) !important;




}









.duty-legend {




  display: flex !important;




  align-items: center !important;




  flex-wrap: wrap !important;




  gap: 14px !important;




  padding: 10px 16px !important;




  background: #fafafa !important;




  border-top: 1px solid #f0f0f0 !important;




  font-size: 12px !important;




  color: #595959 !important;




}









.duty-legend .legend-item {




  display: inline-flex !important;




  align-items: center !important;




  gap: 5px !important;




  white-space: nowrap !important;




}









.duty-legend .dot {




  width: 10px !important;




  height: 10px !important;




  border-radius: 3px !important;




}









.dot-today { background: #1677ff !important; }




.dot-normal { background: #bae0ff !important; }




.dot-absent { background: #ff4d4f !important; }




.dot-rest { background: #d9d9d9 !important; }









.duty-admin-hint {




  margin-left: auto !important;




  color: #fa8c16 !important;




  font-weight: 500 !important;




}












/* ============================================================



   2026年值日排班与考勤系统组件样式 (修复单行与居中遮罩)



   ============================================================ */







/* 1. 顶部右上角值日人员胶囊徽章 (强制单行不折行) */



.duty-badge {



  display: inline-flex !important;



  align-items: center !important;



  gap: 6px !important;



  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%) !important;



  border: 1px solid #bae0ff !important;



  border-radius: 20px !important;



  padding: 6px 14px !important;



  font-size: 13px !important;



  color: #0050b3 !important;



  cursor: pointer !important;



  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.08) !important;



  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;



  user-select: none !important;



  white-space: nowrap !important;



  flex-shrink: 0 !important;



  line-height: 1 !important;



}







.duty-badge:hover {



  background: linear-gradient(135deg, #e6f4ff 0%, #d4edff 100%) !important;



  border-color: #69b1ff !important;



  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.18) !important;



  transform: translateY(-1px) !important;



}







.duty-badge .duty-icon {



  font-size: 14px !important;



  line-height: 1 !important;



  white-space: nowrap !important;



}







.duty-badge .duty-label {



  color: #597ef7 !important;



  font-size: 12px !important;



  font-weight: 500 !important;



  white-space: nowrap !important;



  line-height: 1 !important;



}







.duty-badge .duty-name {



  color: #0958d9 !important;



  font-weight: 700 !important;



  font-size: 13px !important;



  white-space: nowrap !important;



  line-height: 1 !important;



}







.duty-badge.is-absent {



  background: linear-gradient(135deg, #fff2f0 0%, #ffece8 100%) !important;



  border-color: #ffccc7 !important;



  color: #cf1322 !important;



}







.duty-badge.is-absent .duty-name {



  color: #cf1322 !important;



  text-decoration: line-through !important;



}







/* 2. 提前一天专属提醒横幅 */



.duty-alert-banner {



  display: flex;



  align-items: center;



  justify-content: space-between;



  background: linear-gradient(90deg, #fffbe6 0%, #fff1b8 100%);



  border: 1.5px solid #ffe58f;



  border-radius: 10px;



  padding: 10px 18px;



  margin: 12px 0 16px 0;



  box-shadow: 0 4px 14px rgba(250, 173, 20, 0.12);



  animation: dutySlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);



  white-space: nowrap;



}







@keyframes dutySlideDown {



  from { opacity: 0; transform: translateY(-12px); }



  to { opacity: 1; transform: translateY(0); }



}







.duty-alert-content {



  display: flex;



  align-items: center;



  gap: 10px;



  color: #d46b08;



  font-size: 14px;



  font-weight: 600;



  white-space: nowrap;



}







.duty-alert-content .duty-alert-icon {



  font-size: 18px;



  animation: dutyPulse 1.5s infinite;



}







@keyframes dutyPulse {



  0%, 100% { transform: scale(1); }



  50% { transform: scale(1.15); }



}







.duty-alert-close {



  background: transparent;



  border: none;



  color: #ad4e00;



  font-size: 16px;



  cursor: pointer;



  padding: 4px 8px;



  border-radius: 4px;



  transition: background 0.2s;



}







.duty-alert-close:hover {



  background: rgba(212, 107, 8, 0.15);



}







/* 3. 值日排班日历弹窗 (标准全屏居中 Backdrop) */



.duty-modal-backdrop {



  position: fixed !important;



  top: 0 !important;



  left: 0 !important;



  right: 0 !important;



  bottom: 0 !important;



  width: 100vw !important;



  height: 100vh !important;



  background: rgba(15, 23, 42, 0.6) !important;



  backdrop-filter: blur(6px) !important;



  -webkit-backdrop-filter: blur(6px) !important;



  display: flex !important;



  align-items: center !important;



  justify-content: center !important;



  z-index: 999999 !important;



  padding: 20px !important;



  box-sizing: border-box !important;



}







.duty-modal-backdrop.hidden {



  display: none !important;



}







.duty-modal-card {



  max-width: 680px !important;



  width: 100% !important;



  max-height: 90vh !important;



  border-radius: 16px !important;



  background: #ffffff !important;



  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;



  overflow: hidden !important;



  display: flex !important;



  flex-direction: column !important;



  animation: dutyModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;



}







@keyframes dutyModalZoom {



  from { opacity: 0; transform: scale(0.95) translateY(10px); }



  to { opacity: 1; transform: scale(1) translateY(0); }



}







.duty-modal-header {



  display: flex !important;



  align-items: center !important;



  justify-content: space-between !important;



  padding: 16px 20px !important;



  background: #ffffff !important;



  border-bottom: 1px solid #f0f0f0 !important;



}







.duty-header-left {



  display: flex !important;



  align-items: center !important;



  gap: 8px !important;



}







.duty-header-left h3 {



  margin: 0 !important;



  font-size: 16px !important;



  font-weight: 700 !important;



  color: #1f1f1f !important;



}







.duty-month-selector {



  display: flex !important;



  align-items: center !important;



  gap: 12px !important;



}







.duty-month-btn {



  background: #f0f5ff !important;



  color: #1677ff !important;



  border: 1px solid #adc6ff !important;



  border-radius: 6px !important;



  padding: 5px 12px !important;



  font-size: 13px !important;



  font-weight: 600 !important;



  cursor: pointer !important;



  transition: all 0.2s !important;



}







.duty-month-btn:hover {



  background: #1677ff !important;



  color: #ffffff !important;



  border-color: #1677ff !important;



}







.duty-month-title {



  font-size: 15px !important;



  font-weight: 700 !important;



  color: #1677ff !important;



  min-width: 100px !important;



  text-align: center !important;



}







.duty-close-btn {



  background: #f5f5f5 !important;



  border: none !important;



  border-radius: 50% !important;



  width: 32px !important;



  height: 32px !important;



  font-size: 16px !important;



  color: #595959 !important;



  display: inline-flex !important;



  align-items: center !important;



  justify-content: center !important;



  cursor: pointer !important;



  transition: background 0.2s !important;



}







.duty-close-btn:hover {



  background: #ff4d4f !important;



  color: #ffffff !important;



}







.duty-calendar-grid-header {



  display: grid !important;



  grid-template-columns: repeat(7, 1fr) !important;



  text-align: center !important;



  font-weight: 600 !important;



  font-size: 13px !important;



  color: #595959 !important;



  padding: 10px 0 !important;



  background: #fafafa !important;



  border-bottom: 1px solid #f0f0f0 !important;



}







.duty-calendar-grid-header .weekend {



  color: #ff7875 !important;



}







.duty-calendar-grid {



  display: grid !important;



  grid-template-columns: repeat(7, 1fr) !important;



  gap: 6px !important;



  padding: 14px !important;



  background: #ffffff !important;



  min-height: 300px !important;



  box-sizing: border-box !important;



}







.duty-day-cell {



  border: 1px solid #f0f0f0 !important;



  border-radius: 8px !important;



  padding: 6px 4px !important;



  min-height: 60px !important;



  display: flex !important;



  flex-direction: column !important;



  justify-content: space-between !important;



  background: #ffffff !important;



  transition: all 0.2s !important;



  position: relative !important;



  box-sizing: border-box !important;



}







.duty-day-cell.is-other-month {



  opacity: 0.25 !important;



  background: #fafafa !important;



}







.duty-day-cell.is-today {



  border: 2px solid #1677ff !important;



  background: #f0f7ff !important;



}







.duty-day-cell.is-rest {



  background: #fcfcfc !important;



  border-color: #f5f5f5 !important;



}







.duty-day-cell.is-absent {



  background: #fff1f0 !important;



  border-color: #ffccc7 !important;



}







.duty-day-num {



  font-size: 12px !important;



  font-weight: 700 !important;



  color: #8c8c8c !important;



  line-height: 1 !important;



}







.duty-day-cell.is-today .duty-day-num {



  color: #1677ff !important;



  font-weight: 800 !important;



}







.duty-person-tag {



  font-size: 12px !important;



  font-weight: 700 !important;



  color: #0958d9 !important;



  background: #e6f4ff !important;



  border-radius: 4px !important;



  padding: 3px 2px !important;



  text-align: center !important;



  overflow: hidden !important;



  text-overflow: ellipsis !important;



  white-space: nowrap !important;



  line-height: 1.1 !important;



}







.duty-day-cell.is-absent .duty-person-tag {



  background: #ffccc7 !important;



  color: #cf1322 !important;



  text-decoration: line-through !important;



}







.duty-absent-badge {



  font-size: 10px !important;



  color: #cf1322 !important;



  background: #fff2f0 !important;



  border: 1px solid #ffccc7 !important;



  border-radius: 3px !important;



  padding: 1px 2px !important;



  text-align: center !important;



  margin-top: 2px !important;



}







.duty-day-cell.can-admin:hover {



  cursor: pointer !important;



  border-color: #69b1ff !important;



  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2) !important;



  transform: translateY(-1px) !important;



}







.duty-legend {



  display: flex !important;



  align-items: center !important;



  flex-wrap: wrap !important;



  gap: 14px !important;



  padding: 10px 16px !important;



  background: #fafafa !important;



  border-top: 1px solid #f0f0f0 !important;



  font-size: 12px !important;



  color: #595959 !important;



}







.duty-legend .legend-item {



  display: inline-flex !important;



  align-items: center !important;



  gap: 5px !important;



  white-space: nowrap !important;



}







.duty-legend .dot {



  width: 10px !important;



  height: 10px !important;



  border-radius: 3px !important;



}







.dot-today { background: #1677ff !important; }



.dot-normal { background: #bae0ff !important; }



.dot-absent { background: #ff4d4f !important; }



.dot-rest { background: #d9d9d9 !important; }







.duty-admin-hint {



  margin-left: auto !important;



  color: #fa8c16 !important;



  font-weight: 500 !important;



}








/* ============================================================


   行情看板与值日排班系统样式加固 (强制单行与居中弹窗)


   ============================================================ */





/* 1. 行情看板 (USD与原材料行情强制单行) */


.market-ticker {


  display: inline-flex !important;


  align-items: center !important;


  gap: 10px !important;


  background: #ffffff !important;


  border: 1px solid #e2e8f0 !important;


  border-radius: 8px !important;


  padding: 4px 12px !important;


  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;


  margin-right: 8px !important;


  white-space: nowrap !important;


  flex-shrink: 0 !important;


  height: 32px !important;


  box-sizing: border-box !important;


}





.market-ticker .ticker-item {


  display: inline-flex !important;


  align-items: baseline !important;


  gap: 4px !important;


  font-size: 12px !important;


  white-space: nowrap !important;


  flex-shrink: 0 !important;


}





.market-ticker .ticker-label {


  color: #64748b !important;


  font-weight: 700 !important;


  font-size: 11px !important;


  white-space: nowrap !important;


}





.market-ticker strong {


  font-family: Consolas, Monaco, monospace !important;


  font-size: 13px !important;


  color: #0f172a !important;


  font-weight: 800 !important;


  white-space: nowrap !important;


}





.market-ticker .ticker-unit {


  color: #64748b !important;


  font-size: 11px !important;


  white-space: nowrap !important;


}





.market-ticker .ticker-tag {


  font-size: 11px !important;


  font-weight: 700 !important;


  padding: 1px 4px !important;


  border-radius: 4px !important;


  white-space: nowrap !important;


}





.market-ticker .tag-up {


  color: #cf1322 !important;


  background: #fff1f0 !important;


}





.market-ticker .tag-down {


  color: #389e0d !important;


  background: #f6ffed !important;


}





.market-ticker .ticker-divider {


  width: 1px !important;


  height: 14px !important;


  background: #cbd5e1 !important;


  margin: 0 4px !important;


  flex-shrink: 0 !important;


}





/* 2. 顶部右上角值日人员胶囊徽章 (强制单行) */


.duty-badge {


  display: inline-flex !important;


  align-items: center !important;


  gap: 6px !important;


  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%) !important;


  border: 1px solid #bae0ff !important;


  border-radius: 20px !important;


  padding: 6px 14px !important;


  font-size: 13px !important;


  color: #0050b3 !important;


  cursor: pointer !important;


  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.08) !important;


  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;


  user-select: none !important;


  white-space: nowrap !important;


  flex-shrink: 0 !important;


  line-height: 1 !important;


  height: 32px !important;


  box-sizing: border-box !important;


}





.duty-badge:hover {


  background: linear-gradient(135deg, #e6f4ff 0%, #d4edff 100%) !important;


  border-color: #69b1ff !important;


  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.18) !important;


  transform: translateY(-1px) !important;


}





.duty-badge .duty-icon {


  font-size: 14px !important;


  line-height: 1 !important;


  white-space: nowrap !important;


}





.duty-badge .duty-label {


  color: #597ef7 !important;


  font-size: 12px !important;


  font-weight: 500 !important;


  white-space: nowrap !important;


  line-height: 1 !important;


}





.duty-badge .duty-name {


  color: #0958d9 !important;


  font-weight: 700 !important;


  font-size: 13px !important;


  white-space: nowrap !important;


  line-height: 1 !important;


}





/* 3. 弹窗居中全屏遮罩 */


.duty-modal-backdrop {


  position: fixed !important;


  top: 0 !important;


  left: 0 !important;


  right: 0 !important;


  bottom: 0 !important;


  width: 100vw !important;


  height: 100vh !important;


  background: rgba(15, 23, 42, 0.6) !important;


  backdrop-filter: blur(6px) !important;


  -webkit-backdrop-filter: blur(6px) !important;


  display: flex !important;


  align-items: center !important;


  justify-content: center !important;


  z-index: 999999 !important;


  padding: 20px !important;


  box-sizing: border-box !important;


}





.duty-modal-backdrop.hidden {


  display: none !important;


}





.duty-modal-card {


  max-width: 680px !important;


  width: 100% !important;


  border-radius: 16px !important;


  background: #ffffff !important;


  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;


  overflow: hidden !important;


  display: flex !important;


  flex-direction: column !important;


  animation: dutyModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;


}





@keyframes dutyModalZoom {


  from { opacity: 0; transform: scale(0.95) translateY(10px); }


  to { opacity: 1; transform: scale(1) translateY(0); }


}





.duty-modal-header {


  display: flex !important;


  align-items: center !important;


  justify-content: space-between !important;


  padding: 16px 20px !important;


  background: #ffffff !important;


  border-bottom: 1px solid #f0f0f0 !important;


}





.duty-header-left {


  display: flex !important;


  align-items: center !important;


  gap: 8px !important;


}





.duty-header-left h3 {


  margin: 0 !important;


  font-size: 16px !important;


  font-weight: 700 !important;


  color: #1f1f1f !important;


}





.duty-month-selector {


  display: flex !important;


  align-items: center !important;


  gap: 12px !important;


}





.duty-month-btn {


  background: #f0f5ff !important;


  color: #1677ff !important;


  border: 1px solid #adc6ff !important;


  border-radius: 6px !important;


  padding: 5px 12px !important;


  font-size: 13px !important;


  font-weight: 600 !important;


  cursor: pointer !important;


  transition: all 0.2s !important;


}





.duty-month-btn:hover {


  background: #1677ff !important;


  color: #ffffff !important;


  border-color: #1677ff !important;


}





.duty-month-title {


  font-size: 15px !important;


  font-weight: 700 !important;


  color: #1677ff !important;


  min-width: 100px !important;


  text-align: center !important;


}





.duty-close-btn {


  background: #f5f5f5 !important;


  border: none !important;


  border-radius: 50% !important;


  width: 32px !important;


  height: 32px !important;


  font-size: 16px !important;


  color: #595959 !important;


  display: inline-flex !important;


  align-items: center !important;


  justify-content: center !important;


  cursor: pointer !important;


  transition: background 0.2s !important;


}





.duty-close-btn:hover {


  background: #ff4d4f !important;


  color: #ffffff !important;


}





.duty-calendar-grid-header {


  display: grid !important;


  grid-template-columns: repeat(7, 1fr) !important;


  text-align: center !important;


  font-weight: 600 !important;


  font-size: 13px !important;


  color: #595959 !important;


  padding: 10px 0 !important;


  background: #fafafa !important;


  border-bottom: 1px solid #f0f0f0 !important;


}





.duty-calendar-grid-header .weekend {


  color: #ff7875 !important;


}





.duty-calendar-grid {


  display: grid !important;


  grid-template-columns: repeat(7, 1fr) !important;


  gap: 6px !important;


  padding: 14px !important;


  background: #ffffff !important;


  min-height: 280px !important;


  box-sizing: border-box !important;


}





.duty-day-cell {


  border: 1px solid #f0f0f0 !important;


  border-radius: 8px !important;


  padding: 6px 4px !important;


  min-height: 56px !important;


  display: flex !important;


  flex-direction: column !important;


  justify-content: space-between !important;


  background: #ffffff !important;


  transition: all 0.2s !important;


  position: relative !important;


  box-sizing: border-box !important;


}





.duty-day-cell.is-other-month {


  opacity: 0.25 !important;


  background: #fafafa !important;


}





.duty-day-cell.is-today {


  border: 2px solid #1677ff !important;


  background: #f0f7ff !important;


}





.duty-day-cell.is-rest {


  background: #fcfcfc !important;


  border-color: #f5f5f5 !important;


}





.duty-day-cell.is-absent {


  background: #fff1f0 !important;


  border-color: #ffccc7 !important;


}





.duty-day-num {


  font-size: 12px !important;


  font-weight: 700 !important;


  color: #8c8c8c !important;


  line-height: 1 !important;


}





.duty-day-cell.is-today .duty-day-num {


  color: #1677ff !important;


  font-weight: 800 !important;


}





.duty-person-tag {


  font-size: 12px !important;


  font-weight: 700 !important;


  color: #0958d9 !important;


  background: #e6f4ff !important;


  border-radius: 4px !important;


  padding: 2px 2px !important;


  text-align: center !important;


  overflow: hidden !important;


  text-overflow: ellipsis !important;


  white-space: nowrap !important;


  line-height: 1.1 !important;


}





.duty-day-cell.is-absent .duty-person-tag {


  background: #ffccc7 !important;


  color: #cf1322 !important;


  text-decoration: line-through !important;


}





.duty-absent-badge {


  font-size: 10px !important;


  color: #cf1322 !important;


  background: #fff2f0 !important;


  border: 1px solid #ffccc7 !important;


  border-radius: 3px !important;


  padding: 1px 2px !important;


  text-align: center !important;


  margin-top: 2px !important;


}





.duty-day-cell.can-admin:hover {


  cursor: pointer !important;


  border-color: #69b1ff !important;


  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2) !important;


  transform: translateY(-1px) !important;


}





.duty-legend {


  display: flex !important;


  align-items: center !important;


  flex-wrap: wrap !important;


  gap: 14px !important;


  padding: 10px 16px !important;


  background: #fafafa !important;


  border-top: 1px solid #f0f0f0 !important;


  font-size: 12px !important;


  color: #595959 !important;


}





.duty-legend .legend-item {


  display: inline-flex !important;


  align-items: center !important;


  gap: 5px !important;


  white-space: nowrap !important;


}





.duty-legend .dot {


  width: 10px !important;


  height: 10px !important;


  border-radius: 3px !important;


}





.dot-today { background: #1677ff !important; }


.dot-normal { background: #bae0ff !important; }


.dot-absent { background: #ff4d4f !important; }


.dot-rest { background: #d9d9d9 !important; }





.duty-admin-hint {


  margin-left: auto !important;


  color: #fa8c16 !important;


  font-weight: 500 !important;


}



/* ============================================================

   顶部导航栏（TopBar）与右侧按钮组极致对齐与美化

   ============================================================ */



/* 1. 顶部栏整体对齐 */

.topbar {

  display: flex !important;

  align-items: center !important;

  justify-content: space-between !important;

  min-height: 72px !important;

  margin-bottom: 20px !important;

}



.topbar > div:first-child {

  display: flex !important;

  flex-direction: column !important;

  justify-content: center !important;

}



.topbar h1,

.topbar #pageTitle {

  margin: 0 !important;

  font-size: 28px !important;

  font-weight: 800 !important;

  line-height: 1.15 !important;

  color: #111827 !important;

}



.topbar .eyebrow {

  font-size: 12px !important;

  font-weight: 600 !important;

  color: #6b7280 !important;

  margin-bottom: 2px !important;

}



.topbar .subline {

  margin: 4px 0 0 0 !important;

  font-size: 13px !important;

  color: #6b7280 !important;

}



/* 2. 右侧操作区：行情看板、值日徽章、刷新按钮、退出按钮严格单行居中等高对齐 */

.header-actions {

  display: inline-flex !important;

  align-items: center !important;

  gap: 8px !important;

  flex-shrink: 0 !important;

  white-space: nowrap !important;

}



/* 统一所有右侧控件的高度与居中规范 (height: 34px) */

.market-ticker,

.duty-badge,

.header-actions .btn,

.header-actions button {

  height: 34px !important;

  min-height: 34px !important;

  max-height: 34px !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  box-sizing: border-box !important;

  vertical-align: middle !important;

  margin: 0 !important;

  flex-shrink: 0 !important;

  white-space: nowrap !important;

}



/* 行情看板细节 */

.market-ticker {

  background: #ffffff !important;

  border: 1px solid #e2e8f0 !important;

  border-radius: 8px !important;

  padding: 0 12px !important;

  gap: 8px !important;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;

}



.market-ticker .ticker-item {

  display: inline-flex !important;

  align-items: center !important;

  gap: 4px !important;

  font-size: 12px !important;

  line-height: 1 !important;

}



.market-ticker .ticker-label {

  color: #64748b !important;

  font-weight: 600 !important;

  font-size: 11px !important;

  line-height: 1 !important;

}



.market-ticker strong {

  font-family: Consolas, Monaco, monospace !important;

  font-size: 12.5px !important;

  color: #0f172a !important;

  font-weight: 700 !important;

  line-height: 1 !important;

}



.market-ticker .ticker-unit {

  color: #64748b !important;

  font-size: 11px !important;

  line-height: 1 !important;

}



.market-ticker .ticker-tag {

  font-size: 10.5px !important;

  font-weight: 700 !important;

  padding: 1px 4px !important;

  border-radius: 4px !important;

  line-height: 1 !important;

}



.market-ticker .tag-up { color: #cf1322 !important; background: #fff1f0 !important; }

.market-ticker .tag-down { color: #389e0d !important; background: #f6ffed !important; }

.market-ticker .ticker-divider { width: 1px !important; height: 14px !important; background: #cbd5e1 !important; margin: 0 2px !important; }



/* 值日胶囊徽章细节 */

.duty-badge {

  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%) !important;

  border: 1px solid #bae0ff !important;

  border-radius: 8px !important;

  padding: 0 12px !important;

  font-size: 12.5px !important;

  color: #0050b3 !important;

  cursor: pointer !important;

  gap: 5px !important;

  box-shadow: 0 1px 3px rgba(24, 144, 255, 0.08) !important;

  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;

}



.duty-badge:hover {

  background: linear-gradient(135deg, #e6f4ff 0%, #d4edff 100%) !important;

  border-color: #69b1ff !important;

  box-shadow: 0 3px 8px rgba(24, 144, 255, 0.15) !important;

}



.duty-badge .duty-icon { font-size: 14px !important; line-height: 1 !important; }

.duty-badge .duty-label { color: #597ef7 !important; font-size: 11.5px !important; font-weight: 600 !important; line-height: 1 !important; }

.duty-badge .duty-name { color: #0958d9 !important; font-weight: 700 !important; font-size: 12.5px !important; line-height: 1 !important; }



/* 刷新与退出按钮细节 */

.header-actions .btn,

.header-actions button {

  padding: 0 14px !important;

  border-radius: 8px !important;

  font-size: 13px !important;

  font-weight: 600 !important;

  line-height: 1 !important;

  cursor: pointer !important;

  border: 1px solid #e2e8f0 !important;

  background: #ffffff !important;

  color: #334155 !important;

  transition: all 0.2s !important;

}



.header-actions #refreshBtn:hover {

  border-color: #1677ff !important;

  color: #1677ff !important;

  background: #f0f7ff !important;

}



.header-actions #logoutBtn {

  color: #cf1322 !important;

  border-color: #ffd8d6 !important;

  background: #fffafa !important;

}



.header-actions #logoutBtn:hover {

  border-color: #ff4d4f !important;

  background: #ff4d4f !important;

  color: #ffffff !important;

}



/* 3. 弹窗居中全屏遮罩 (Fixed Fullscreen Overlay) */

.duty-modal-backdrop {

  position: fixed !important;

  top: 0 !important;

  left: 0 !important;

  right: 0 !important;

  bottom: 0 !important;

  width: 100vw !important;

  height: 100vh !important;

  background: rgba(15, 23, 42, 0.55) !important;

  backdrop-filter: blur(6px) !important;

  -webkit-backdrop-filter: blur(6px) !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  z-index: 999999 !important;

  padding: 16px !important;

  box-sizing: border-box !important;

}



.duty-modal-backdrop.hidden {

  display: none !important;

}



.duty-modal-card {

  max-width: 680px !important;

  width: 100% !important;

  border-radius: 16px !important;

  background: #ffffff !important;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;

  overflow: hidden !important;

  display: flex !important;

  flex-direction: column !important;

  animation: dutyModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;

}



@keyframes dutyModalZoom {

  from { opacity: 0; transform: scale(0.95) translateY(10px); }

  to { opacity: 1; transform: scale(1) translateY(0); }

}



.duty-modal-header {

  display: flex !important;

  align-items: center !important;

  justify-content: space-between !important;

  padding: 16px 20px !important;

  background: #ffffff !important;

  border-bottom: 1px solid #f0f0f0 !important;

}



.duty-header-left {

  display: flex !important;

  align-items: center !important;

  gap: 8px !important;

}



.duty-header-left h3 {

  margin: 0 !important;

  font-size: 16px !important;

  font-weight: 700 !important;

  color: #1f1f1f !important;

}



.duty-month-selector {

  display: flex !important;

  align-items: center !important;

  gap: 10px !important;

}



.duty-month-btn {

  background: #f0f5ff !important;

  color: #1677ff !important;

  border: 1px solid #adc6ff !important;

  border-radius: 6px !important;

  padding: 5px 12px !important;

  font-size: 13px !important;

  font-weight: 600 !important;

  cursor: pointer !important;

  transition: all 0.2s !important;

}



.duty-month-btn:hover {

  background: #1677ff !important;

  color: #ffffff !important;

  border-color: #1677ff !important;

}



.duty-month-title {

  font-size: 15px !important;

  font-weight: 700 !important;

  color: #1677ff !important;

  min-width: 90px !important;

  text-align: center !important;

}



.duty-close-btn {

  background: #f5f5f5 !important;

  border: none !important;

  border-radius: 50% !important;

  width: 32px !important;

  height: 32px !important;

  font-size: 16px !important;

  color: #595959 !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  cursor: pointer !important;

  transition: background 0.2s !important;

}



.duty-close-btn:hover {

  background: #ff4d4f !important;

  color: #ffffff !important;

}



.duty-calendar-grid-header {

  display: grid !important;

  grid-template-columns: repeat(7, 1fr) !important;

  text-align: center !important;

  font-weight: 600 !important;

  font-size: 13px !important;

  color: #595959 !important;

  padding: 10px 0 !important;

  background: #fafafa !important;

  border-bottom: 1px solid #f0f0f0 !important;

}



.duty-calendar-grid-header .weekend { color: #ff7875 !important; }



.duty-calendar-grid {

  display: grid !important;

  grid-template-columns: repeat(7, 1fr) !important;

  gap: 6px !important;

  padding: 14px !important;

  background: #ffffff !important;

  min-height: 260px !important;

  box-sizing: border-box !important;

}



.duty-day-cell {

  border: 1px solid #f0f0f0 !important;

  border-radius: 8px !important;

  padding: 6px 4px !important;

  min-height: 52px !important;

  display: flex !important;

  flex-direction: column !important;

  justify-content: space-between !important;

  background: #ffffff !important;

  transition: all 0.2s !important;

  position: relative !important;

  box-sizing: border-box !important;

}



.duty-day-cell.is-other-month { opacity: 0.25 !important; background: #fafafa !important; }

.duty-day-cell.is-today { border: 2px solid #1677ff !important; background: #f0f7ff !important; }

.duty-day-cell.is-rest { background: #fcfcfc !important; border-color: #f5f5f5 !important; }

.duty-day-cell.is-absent { background: #fff1f0 !important; border-color: #ffccc7 !important; }



.duty-day-num {

  font-size: 12px !important;

  font-weight: 700 !important;

  color: #8c8c8c !important;

  line-height: 1 !important;

}



.duty-day-cell.is-today .duty-day-num { color: #1677ff !important; font-weight: 800 !important; }



.duty-person-tag {

  font-size: 12px !important;

  font-weight: 700 !important;

  color: #0958d9 !important;

  background: #e6f4ff !important;

  border-radius: 4px !important;

  padding: 2px 2px !important;

  text-align: center !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  white-space: nowrap !important;

  line-height: 1.1 !important;

}



.duty-day-cell.is-absent .duty-person-tag {

  background: #ffccc7 !important;

  color: #cf1322 !important;

  text-decoration: line-through !important;

}



.duty-absent-badge {

  font-size: 10px !important;

  color: #cf1322 !important;

  background: #fff2f0 !important;

  border: 1px solid #ffccc7 !important;

  border-radius: 3px !important;

  padding: 1px 2px !important;

  text-align: center !important;

  margin-top: 2px !important;

}



.duty-day-cell.can-admin:hover {

  cursor: pointer !important;

  border-color: #69b1ff !important;

  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2) !important;

  transform: translateY(-1px) !important;

}



.duty-legend {

  display: flex !important;

  align-items: center !important;

  flex-wrap: wrap !important;

  gap: 14px !important;

  padding: 10px 16px !important;

  background: #fafafa !important;

  border-top: 1px solid #f0f0f0 !important;

  font-size: 12px !important;

  color: #595959 !important;

}



.duty-legend .legend-item { display: inline-flex !important; align-items: center !important; gap: 5px !important; white-space: nowrap !important; }

.duty-legend .dot { width: 10px !important; height: 10px !important; border-radius: 3px !important; }

.dot-today { background: #1677ff !important; }

.dot-normal { background: #bae0ff !important; }

.dot-absent { background: #ff4d4f !important; }

.dot-rest { background: #d9d9d9 !important; }

.duty-admin-hint { margin-left: auto !important; color: #fa8c16 !important; font-weight: 500 !important; }



/* ============================================================
   工具资源发布中心与极速检索样式库
   ============================================================ */

.resource-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 24px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.resource-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.resource-search-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.resource-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.resource-search-box input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

.resource-clear-btn {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.resource-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.resource-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.res-cat-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.res-cat-btn:hover {
  border-color: #93c5fd;
  color: #1677ff;
  background: #eff6ff;
}

.res-cat-btn.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.25);
}

/* 资源模块分组与网格 */
.resource-module-section {
  margin-bottom: 32px;
}

.resource-module-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.resource-module-title .module-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px rgba(22, 119, 255, 0.08);
}

.resource-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.resource-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon-box.is-url {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
}

.resource-meta {
  flex: 1;
  min-width: 0;
}

.resource-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.resource-action-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.resource-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.resource-action-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.resource-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.resource-pills .pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.2;
}

.pill-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pill-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pill-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

.resource-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.resource-version {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.resource-card-body {
  flex: 1;
  margin-bottom: 18px;
}

.resource-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.resource-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.feature-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.feature-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.resource-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.resource-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.resource-download-btn:hover {
  background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.35);
  transform: translateY(-1px);
}

.resource-download-btn.url-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.resource-download-btn.url-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.resource-tip {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}



/* ============================================================
   右下角悬浮 AI 智能问答客服宠物挂件
   ============================================================ */
.ai-pet-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  user-select: none;
}

/* 浮动呼吸宠物球 */
.ai-pet-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: aiPetFloat 3.6s ease-in-out infinite;
}

.ai-pet-trigger:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.55), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ai-pet-trigger:active {
  transform: scale(0.95);
}

.ai-pet-avatar {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s;
}

.ai-pet-trigger:hover .ai-pet-avatar {
  transform: scale(1.15);
}

.ai-pet-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* 宠物唤醒气泡提示 */
.ai-pet-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-pet-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.9);
}

.ai-pet-widget:hover .ai-pet-tooltip {
  opacity: 1;
  right: 68px;
}

/* 问答对话主面板 */
.ai-pet-modal {
  position: fixed;
  right: 28px;
  bottom: 96px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  border: 1px solid rgba(226, 232, 240, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-pet-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 窗口头部 */
.ai-modal-header {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
}

.ai-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-title-avatar {
  font-size: 22px;
  background: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-title-text h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ai-title-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.ai-modal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 消息流区域 */
.ai-modal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: text;
}

.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  font-size: 13px;
  line-height: 1.55;
  animation: aiMsgIn 0.25s ease-out;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg.ai {
  align-self: flex-start;
}

.ai-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-msg.user .ai-msg-bubble {
  background: #059669;
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.ai-msg.ai .ai-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 3px;
}

.ai-msg.system-tip .ai-msg-bubble {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  text-align: center;
  border-radius: 8px;
  padding: 6px 10px;
}

.ai-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}

.ai-loading-dots span {
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  animation: aiDotBounce 1.4s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* 快捷问答推荐胶囊 */
.ai-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ai-tag-chip {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-tag-chip:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

/* 底部输入框 */
.ai-modal-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-input-wrap {
  flex: 1;
  position: relative;
}

.ai-chat-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
  box-sizing: border-box;
}

.ai-chat-input:focus {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: #047857;
  transform: scale(1.05);
}

.ai-send-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

@keyframes aiPetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes aiDotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================
   AI 专区导航按钮与精致内测提示弹窗样式
   ========================================== */
.nav-item.ai-zone-nav {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4f46e5;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.nav-item.ai-zone-nav:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(168, 85, 247, 0.16) 100%);
  border-color: #6366f1;
  color: #4338ca;
  transform: translateX(2px);
}

.ai-spark-icon {
  font-size: 14px;
}

.ai-beta-tag {
  font-size: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-left: auto;
}

/* Keep every navigation item reachable on short, non-maximized windows. */
@media (min-width: 761px) {
  .sidebar {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
  }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 99px; }
  .sidebar .nav { min-height: 0; }
}

@media (min-width: 761px) and (max-height: 780px) {
  .sidebar { padding-top: 14px; padding-bottom: 14px; }
  .sidebar .brand { margin-bottom: 12px; }
  .sidebar .nav { gap: 3px; }
  .sidebar .nav-item { min-height: 40px; }
}

.panel-head > a.primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
}

/* Prevent the page title from collapsing to one Chinese character per line. */
.topbar > div:first-child { flex: 0 0 auto; min-width: 148px; }
.topbar .header-actions { min-width: 0; }
@media (min-width: 761px) and (max-width: 1280px) {
  .topbar { align-items: stretch !important; flex-direction: column; gap: 12px; }
  .topbar .header-actions { width: 100%; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
}

.sample-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.imported-sample-images {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

#sampleTypeFilter,
#sampleFileFilter {
  width: auto;
  min-width: 150px;
}

.sample-folder-list {
  display: grid;
  gap: 14px;
}

.sample-file-group {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #eef4fb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.sample-file-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 82px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sample-file-summary:hover { background: #e3edf9; }

.sample-folder-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #dbeafe;
  font-size: 22px;
}

.sample-file-copy {
  min-width: 240px;
  flex: 1;
}

.sample-file-title,
.sample-file-meta {
  display: block;
}

.sample-file-title {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-file-meta {
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
}

.sample-file-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #2563eb;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sample-file-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sample-file-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.sample-folder-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #1d4ed8;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sample-folder-select-wrap input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.sample-folder-status.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.sample-folder-download {
  background: #0f766e;
}

.sample-file-items {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.sample-file-items > .job {
  margin: 0;
  border-color: #dbe3ee;
  box-shadow: none;
}

@media (max-width: 640px) {
  .sample-file-summary { align-items: flex-start; padding: 14px; }
  .sample-folder-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .sample-file-copy { min-width: calc(100% - 100px); }
  .sample-file-title { white-space: normal; overflow-wrap: anywhere; }
  .sample-file-meta { line-height: 1.5; }
  .sample-file-actions { order: 3; width: 100%; }
  .sample-file-actions button { flex: 1 1 auto; }
}

/* 通用精致提示弹窗 */
.bsm-custom-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.bsm-custom-modal-mask.show {
  opacity: 1;
  visibility: visible;
}

.bsm-custom-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 24px;
  border: 1px solid #e2e8f0;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.bsm-custom-modal-mask.show .bsm-custom-modal-card {
  transform: scale(1);
}

.bsm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.bsm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.bsm-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
}

.bsm-modal-close:hover {
  color: #0f172a;
}

.bsm-modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

.bsm-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.bsm-modal-footer .primary-btn {
  padding: 8px 24px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}


/* 行情看板多品种平铺优化 */
.market-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-label {
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
}

.ticker-item strong {
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
}

.ticker-unit {
  color: #94a3b8;
  font-size: 10px;
}

.ticker-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

.ticker-tag.tag-up {
  color: #15803d;
  background: #dcfce7;
}

.ticker-tag.tag-down {
  color: #b91c1c;
  background: #fee2e2;
}

.ticker-tag.tag-flat {
  color: #64748b;
  background: #f1f5f9;
}

.ticker-divider {
  width: 1px;
  height: 16px;
  background: #e2e8f0;
}


/* ============================================================
   值日排班月历弹窗核心遮罩与卡片样式 (v27 强化)
   ============================================================ */
.duty-modal-mask {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.duty-modal-mask.hidden {
  display: none !important;
}

.duty-modal-card {
  max-width: 780px !important;
  width: 95% !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: dutyModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes dutyModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.duty-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.duty-modal-body {
  padding: 20px 24px !important;
  overflow-y: auto !important;
}

.duty-week-header {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-align: center !important;
  font-size: 13px !important;
}

.duty-calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
}

.duty-day-cell {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 6px !important;
  min-height: 68px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.duty-day-cell:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12) !important;
}

.duty-day-cell.is-today {
  border: 2px solid #3b82f6 !important;
  background: #eff6ff !important;
}

.duty-day-cell.is-rest {
  background: #f8fafc !important;
  opacity: 0.7 !important;
}

.duty-day-cell.is-other-month {
  opacity: 0.3 !important;
  border-style: dashed !important;
}

.duty-day-num {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #334155 !important;
}

.duty-person-tag {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  text-align: center !important;
  margin-top: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.duty-day-cell.is-absent .duty-person-tag {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  text-decoration: line-through !important;
}

.duty-absent-badge {
  font-size: 10px !important;
  color: #dc2626 !important;
  text-align: center !important;
  font-weight: 700 !important;
}

.duty-day-cell.can-admin {
  cursor: pointer !important;
}

.duty-modal-footer {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 24px !important;
  border-top: 1px solid #f0f0f0 !important;
  background: #fafafa !important;
  font-size: 12px !important;
  color: #64748b !important;
  flex-wrap: wrap !important;
}

.duty-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.duty-legend-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
}

.duty-legend-dot.dot-today { background: #3b82f6 !important; }
.duty-legend-dot.dot-work { background: #93c5fd !important; }
.duty-legend-dot.dot-absent { background: #f87171 !important; }

.duty-admin-hint {
  margin-left: auto !important;
  color: #8b5cf6 !important;
  font-weight: 600 !important;
}

/* ============================================================
   AI 客服宠物挂件与对话窗口核心样式 (v27 强化)
   ============================================================ */
.ai-pet-widget {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 99990 !important;
}

.ai-pet-widget.hidden {
  display: none !important;
}

.ai-pet-trigger {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ai-pet-trigger:hover {
  transform: scale(1.1) rotate(6deg) !important;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6) !important;
}

.ai-pet-avatar {
  font-size: 30px !important;
}

.ai-pet-badge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  border: 2px solid #ffffff !important;
}

.ai-pet-modal {
  position: fixed !important;
  right: 28px !important;
  bottom: 96px !important;
  width: 380px !important;
  max-width: calc(100vw - 40px) !important;
  height: 540px !important;
  max-height: calc(100vh - 120px) !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 99995 !important;
  animation: aiModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-pet-modal.hidden {
  display: none !important;
}

@keyframes aiModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ai-pet-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 18px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
}

.ai-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ai-header-icon {
  font-size: 24px !important;
}

.ai-header-info h4 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.ai-model-tag {
  font-size: 11px !important;
  opacity: 0.85 !important;
}

.ai-header-actions {
  display: flex !important;
  gap: 6px !important;
}

.ai-btn-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.ai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

.ai-chat-body {
  flex: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: #f8fafc !important;
}

.ai-msg {
  display: flex !important;
  gap: 8px !important;
  max-width: 90% !important;
}

.ai-msg.ai-msg-bot {
  align-self: flex-start !important;
}

.ai-msg.ai-msg-user {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
}

.ai-msg-avatar {
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.ai-msg-bubble {
  background: #ffffff !important;
  color: #1e293b !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  border-top-left-radius: 2px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.ai-msg-user .ai-msg-bubble {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  border-top-right-radius: 2px !important;
}

.ai-pet-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

.ai-pet-footer textarea {
  flex: 1 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  resize: none !important;
  outline: none !important;
}

.ai-pet-footer textarea:focus {
  border-color: #6366f1 !important;
}

.ai-send-btn {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.ai-send-btn:hover {
  background: #4338ca !important;
}


/* ============================================================
   AI 宠物客服弹窗完全体规则 (v28 默认展开与高层级可见)
   ============================================================ */
.ai-pet-widget {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 99990 !important;
  display: block !important;
}

.ai-pet-widget.hidden {
  display: none !important;
}

.ai-pet-trigger {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ai-pet-trigger:hover {
  transform: scale(1.12) rotate(6deg) !important;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6) !important;
}

.ai-pet-avatar {
  font-size: 30px !important;
  user-select: none !important;
}

.ai-pet-badge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  border: 2px solid #ffffff !important;
}

.ai-pet-modal {
  position: fixed !important;
  right: 28px !important;
  bottom: 98px !important;
  width: 380px !important;
  max-width: calc(100vw - 40px) !important;
  height: 540px !important;
  max-height: calc(100vh - 120px) !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 99995 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-pet-modal.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) scale(0.95) !important;
  pointer-events: none !important;
}


/* ============================================================
   日历表头与星期网格样式 (v29 完美对齐)
   ============================================================ */
.duty-week-header {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-align: center !important;
  font-size: 13px !important;
  background: #f1f5f9 !important;
  padding: 8px 0 !important;
  border-radius: 8px !important;
}

.duty-calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
}

.duty-day-cell {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 6px !important;
  min-height: 72px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.duty-day-cell.is-today {
  border: 2.5px solid #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.duty-day-cell.is-today .duty-day-num {
  color: #1d4ed8 !important;
  font-weight: 900 !important;
}

/* AI 客服对话浮窗直显 */
#aiPetModal.active, .ai-pet-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

#aiPetModal.hidden, .ai-pet-modal.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Final pre-launch interaction refinements */
.duty-calendar-loading {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 600;
}

.ai-pet-footer textarea {
  min-height: 52px !important;
  max-height: 120px;
  line-height: 1.5;
  resize: vertical !important;
}


/* ============================================================
   AI 客服对话框紧凑型输入栏 (v35 缩小高度，精致对齐)
   ============================================================ */
.ai-pet-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  box-sizing: border-box !important;
}

.ai-pet-footer textarea, #aiChatInput {
  flex: 1 !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  resize: none !important;
  outline: none !important;
  background: #f8fafc !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.ai-pet-footer textarea:focus, #aiChatInput:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.ai-send-btn, #aiSendBtn {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.ai-send-btn:hover, #aiSendBtn:hover {
  background: #4338ca !important;
  transform: translateY(-1px) !important;
}


/* ============================================================
   BSM 专属 AI 智能客服小猫浮窗引擎 (v36 终极美化版)
   ============================================================ */
.ai-pet-widget, #aiPetWidget {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 99990 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  user-select: none !important;
}

/* 浮动小猫入口球 */
.ai-pet-trigger, #aiPetTrigger {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s !important;
}

.ai-pet-trigger:hover, #aiPetTrigger:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.55) !important;
}

.ai-pet-trigger:active, #aiPetTrigger:active {
  transform: scale(0.95) !important;
}

.ai-pet-avatar {
  font-size: 26px !important;
  line-height: 1 !important;
}

.ai-pet-badge {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  width: 12px !important;
  height: 12px !important;
  background: #10b981 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8) !important;
}

/* AI 对话浮动主窗口 */
.ai-pet-modal, #aiPetModal {
  position: fixed !important;
  right: 28px !important;
  bottom: 92px !important;
  width: 380px !important;
  max-width: calc(100vw - 36px) !important;
  height: 520px !important;
  max-height: calc(100vh - 120px) !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 99995 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-pet-modal.active, #aiPetModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.ai-pet-modal.hidden, #aiPetModal.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 顶部标题栏 */
.ai-pet-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%) !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ai-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ai-header-icon {
  font-size: 22px !important;
  line-height: 1 !important;
}

.ai-header-info h4 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

.ai-model-tag {
  font-size: 11px !important;
  color: #a5b4fc !important;
  display: block !important;
  margin-top: 1px !important;
}

.ai-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ai-btn-icon, button.ai-btn-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: background 0.2s !important;
}

.ai-btn-icon:hover, button.ai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* 消息正文聊天滚动区 */
.ai-chat-body, #aiChatBody {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.ai-msg {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  max-width: 100% !important;
}

.ai-msg-avatar {
  font-size: 18px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.ai-msg-bubble {
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  word-break: break-word !important;
}

.ai-msg-bot .ai-msg-bubble {
  background: #ffffff !important;
  color: #1e293b !important;
  border-top-left-radius: 2px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.ai-msg-user {
  justify-content: flex-end !important;
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-top-right-radius: 2px !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25) !important;
}

/* 底部精简紧凑输入栏 */
.ai-pet-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.ai-pet-footer textarea, #aiChatInput {
  flex: 1 !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  resize: none !important;
  outline: none !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.ai-pet-footer textarea:focus, #aiChatInput:focus {
  border-color: #6366f1 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.ai-send-btn, #aiSendBtn, button.ai-send-btn {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.ai-send-btn:hover, #aiSendBtn:hover, button.ai-send-btn:hover {
  background: #4338ca !important;
  transform: translateY(-1px) !important;
}

.ai-typing-dots .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  margin: 0 2px;
  animation: aiDotBounce 1.4s infinite ease-in-out both;
}
.ai-typing-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiDotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
.desktop-release-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;margin-top:18px}.desktop-release-drop{min-height:150px;display:grid;place-items:center;align-content:center;gap:10px;padding:24px;border:1.5px dashed #cfd5e3;border-radius:18px;background:linear-gradient(145deg,#fafbff,#f4f6fb);color:#263148;font-weight:800;cursor:pointer}.desktop-release-drop:hover{border-color:#6366f1;background:#f2f3ff}.desktop-release-drop input{max-width:100%}.desktop-release-drop span{color:#7b8496;font-size:13px;font-weight:600}.desktop-release-action{padding:20px;border-radius:18px;background:#111827;color:white}.desktop-release-action strong{display:block;font-size:18px}.desktop-release-action .subline{min-height:40px;color:#aeb7c8}.desktop-release-action .primary{width:100%}.desktop-release-files{display:grid;gap:8px;margin-top:16px}.desktop-release-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid #e6e9f0;border-radius:12px;background:#fff}.desktop-release-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-release-file small{flex:none;color:#7b8496}.status-pill{padding:7px 11px;border-radius:99px;background:#fff2d8;color:#9a6300;font-size:12px;font-weight:800}.status-pill.ok{background:#e8f8f0;color:#11744f}@media(max-width:760px){.desktop-release-grid{grid-template-columns:1fr}}

/* Final responsive overrides must remain last because this legacy stylesheet contains late theme blocks. */
@media (min-width: 761px) {
  .sidebar { height: 100dvh !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; scrollbar-width: thin; }
  .topbar > div:first-child { flex: 0 0 auto !important; min-width: 148px !important; }
}
@media (min-width: 761px) and (max-width: 1280px) {
  .topbar { align-items: stretch !important; flex-direction: column !important; gap: 12px !important; }
  .topbar .header-actions { width: 100% !important; min-width: 0 !important; justify-content: flex-start !important; overflow-x: auto !important; padding-bottom: 4px; scrollbar-width: thin; }
}
