/* 玻璃拟态卡片样式 - Apple/Ant-Design风格 */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* 一纸八用请假条打印样式 */
.leave-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 74mm);
  gap: 0;
  width: 210mm;
  height: 297mm;
  page-break-after: always;
}

.leave-ticket-item {
  width: 105mm;
  height: 74mm;
  border: 1px dashed #ccc;
  padding: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: white;
}

.leave-ticket-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100'%3E%3Ctext x='50%25' y='50%25' font-family='SimSun' font-size='14' fill='%23f0f0f0' text-anchor='middle' dy='.3em' transform='rotate(-30 100 50)'%3E已核销%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.leave-ticket-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leave-ticket-header {
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.leave-ticket-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.leave-ticket-body {
  flex: 1;
  font-size: 10px;
  line-height: 1.6;
}

.leave-ticket-row {
  display: flex;
  margin-bottom: 3px;
}

.leave-ticket-label {
  color: #666;
  min-width: 50px;
  flex-shrink: 0;
}

.leave-ticket-value {
  color: #333;
  font-weight: 500;
  flex: 1;
}

.leave-ticket-reason {
  margin-top: 4px;
  padding: 4px;
  background: #f9f9f9;
  border: 1px solid #eee;
  font-size: 9px;
  max-height: 40px;
  overflow: hidden;
}

.leave-ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}

.leave-ticket-signature {
  flex: 1;
  text-align: center;
}

.leave-ticket-signature img {
  max-width: 80px;
  max-height: 30px;
  display: block;
  margin: 0 auto;
}

.leave-ticket-date {
  font-size: 9px;
  color: #999;
  text-align: right;
}

/* 斜杠表头样式 - 屏幕显示 */
th.corner-header {
  position: relative !important;
  padding: 0 !important;
  width: 50px !important;
  height: 28px !important;
  overflow: hidden !important;
  background: linear-gradient(to bottom left, transparent 48%, #000 48%, #000 52%, transparent 52%) !important;
}

th.corner-header .corner-top {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 9px;
  z-index: 1;
}

th.corner-header .corner-bottom {
  position: absolute;
  bottom: 3px;
  left: 6px;
  font-size: 9px;
  z-index: 1;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }

  /* 隐藏所有不必要的元素 */
  #loginBox,
  .no-print,
  #toast,
  .modal-overlay,
  #leavePanel,
  #mainBox>div:not(:last-child) {
    display: none !important;
  }

  /* 确保主容器和打印区域可见 */
  #mainBox,
  #printArea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    background: white !important;
    overflow: visible !important;
  }

  #mainBox {
    padding: 0 !important;
    margin: 0 !important;
  }

  #printArea {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* 表格样式 */
  #printArea table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    transform: scale(0.9) !important;
    transform-origin: top center !important;
  }

  #printArea th,
  #printArea td {
    border: 1px solid #000 !important;
    font-size: 9px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    padding: 3px 0 !important;
    line-height: 1 !important;
  }

  /* 斜杠表头样式 */
  #printArea th.corner-header {
    position: relative !important;
    padding: 0 !important;
    width: 50px !important;
    height: 28px !important;
    overflow: hidden !important;
  }

  #printArea th.corner-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: #000;
    transform: rotate(-35deg);
    z-index: 0;
  }

  #printArea th.corner-header .corner-top {
    position: absolute;
    top: 3px;
    right: 6px;
    font-size: 9px;
    z-index: 1;
  }

  #printArea th.corner-header .corner-bottom {
    position: absolute;
    bottom: 3px;
    left: 6px;
    font-size: 9px;
    z-index: 1;
  }

  #printArea th:first-child,
  #printArea td:first-child {
    width: 50px !important;
  }

  #printArea th:last-child,
  #printArea td:last-child {
    width: 45px !important;
  }

  #printArea th:nth-last-child(2),
  #printArea td:nth-last-child(2) {
    width: 40px !important;
  }

  /* 签名行样式 */
  #printArea .signature-row {
    margin-top: 2px !important;
    padding: 2px 0 !important;
  }
  
  #printArea .signature-row>td {
    border: none !important;
    padding: 0 !important;
  }

  #printArea .signature-row table,
  #printArea .signature-row div {
    border: none !important;
  }

  .signature-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px !important;
    padding: 2px 5px !important;
  }

  /* 请假条网格样式 */
  .leave-ticket-grid {
    page-break-inside: avoid;
  }

  .leave-ticket-item {
    page-break-inside: avoid;
    border: 1px dashed #999 !important;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 9px;
}

th,
td {
  border: 1px solid #000;
  padding: 2px;
  text-align: center;
}

.check-green {
  color: #2ecc71;
  font-weight: bold;
}

.weekend {
  background-color: #f0f0f0;
}

/* 移动端触控优化 */
@media (max-width: 768px) {
  .silicone-btn {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 44px;
    /* iOS推荐最小触控区域 */
  }

  .mgmt-btn-card {
    padding: 24px 18px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
    /* 防止iOS自动缩放 */
  }

  textarea {
    min-height: auto;
  }
}

/* ============================================
   移动端全面优化 - 响应式设计
   ============================================ */

/* 平板和手机端（小于1024px） */
@media (max-width: 1024px) {
  /* 统计卡片优化 */
  .grid.grid-cols-1.md\:grid-cols-3 > div {
    padding: 16px;
  }

  /* 图表高度调整 */
  #pieChart,
  #lineChart {
    height: 280px !important;
  }
}

/* 手机端（小于768px） */
@media (max-width: 768px) {
  /* ========== 全局布局优化 ========== */
  body {
    overflow-x: hidden;
  }

  #mainBox .max-w-7xl {
    padding: 8px;
  }

  /* ========== 顶部导航栏优化 ========== */
  #mainBox .bg-white.shadow-sm.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  #mainBox .bg-white.shadow-sm.sticky .max-w-7xl {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  #mainBox .bg-white.shadow-sm.sticky .text-lg {
    font-size: 16px;
    flex: 1;
  }

  #mainBox .bg-white.shadow-sm.sticky .flex.items-center.gap-3 {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    gap: 6px;
  }

  #mainBox .bg-white.shadow-sm.sticky .flex.items-center.gap-3 span {
    font-size: 11px;
    padding: 4px 8px;
  }

  #mainBox .bg-white.shadow-sm.sticky .silicone-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* ========== 统计卡片优化 ========== */
  .grid.grid-cols-1.md\:grid-cols-3 {
    gap: 8px;
  }

  .grid.grid-cols-1.md\:grid-cols-3 > div {
    padding: 12px;
    border-left-width: 3px !important;
  }

  .grid.grid-cols-1.md\:grid-cols-3 > div .text-sm {
    font-size: 12px;
  }

  .grid.grid-cols-1.md\:grid-cols-3 > div .text-2xl {
    font-size: 20px;
  }

  /* ========== 管理按钮网格优化 - 关键优化 ========== */
  #mgmtBtnGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0;
  }

  .mgmt-btn-card {
    padding: 16px 8px !important;
    border-radius: 12px !important;
  }

  .mgmt-btn-card .icon {
    font-size: 24px !important;
    margin-bottom: 6px !important;
  }

  .mgmt-btn-card .label {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  /* ========== 图表区域优化 ========== */
  .grid.grid-cols-1.md\:grid-cols-2 {
    gap: 8px;
  }

  .grid.grid-cols-1.md\:grid-cols-2 > div {
    padding: 16px !important;
  }

  .grid.grid-cols-1.md\:grid-cols-2 > div h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* ========== 实时就餐状态区域优化 ========== */
  .flex.flex-wrap.gap-2.mb-4 {
    gap: 6px !important;
  }

  .flex.flex-wrap.gap-2.mb-4 input,
  .flex.flex-wrap.gap-2.mb-4 button,
  .flex.flex-wrap.gap-2.mb-4 select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .flex.flex-wrap.gap-2.mb-4 button {
    white-space: nowrap;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  /* ========== 月度统计与打印区域优化 ========== */
  .flex.flex-wrap.gap-2.mb-4 {
    flex-wrap: wrap;
  }

  .flex.flex-wrap.gap-2.mb-4 > * {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .flex.flex-wrap.gap-2.mb-4 button {
    font-size: 12px !important;
    padding: 10px 8px !important;
  }

  /* ========== 表格优化 ========== */
  #todayStatus {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #todayStatus table {
    min-width: 600px;
  }

  /* ========== 浮动请假面板优化 ========== */
  #leavePanel {
    right: 10px !important;
    bottom: 10px !important;
  }

  #leavePanelIcon {
    width: 48px !important;
    height: 48px !important;
  }

  #leavePanelContent {
    width: calc(100vw - 20px) !important;
    max-width: 350px !important;
    right: 0 !important;
  }

  /* ========== 模态框优化 ========== */
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    margin: 10px !important;
  }

  .modal-header {
    padding: 16px 20px !important;
  }

  .modal-header h3 {
    font-size: 16px !important;
  }

  .modal-body {
    padding: 16px 20px !important;
    max-height: calc(90vh - 70px) !important;
  }

  /* ========== 模态框内表单优化 ========== */
  .modal-body .flex.flex-wrap.gap-3 {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .modal-body .flex.flex-wrap.gap-3 > * {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
  }

  .modal-body .flex.flex-wrap.gap-3 button {
    flex: 1 1 auto !important;
  }

  .modal-body input,
  .modal-body select,
  .modal-body textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  /* 请假审批工具栏优化 */
  .modal-body .mb-4.p-3.bg-blue-50 {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .modal-body .mb-4.p-3.bg-blue-50 .flex.items-center.gap-3 {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .modal-body .mb-4.p-3.bg-blue-50 .flex.gap-2 {
    flex-wrap: wrap;
    gap: 6px !important;
  }

  .modal-body .mb-4.p-3.bg-blue-50 .flex.gap-2 button {
    flex: 1 1 calc(50% - 6px) !important;
    font-size: 11px !important;
    padding: 8px 6px !important;
    white-space: nowrap;
  }

  /* 安全审计标签页优化 */
  .flex.gap-2.mb-4.border-b {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px !important;
  }

  .flex.gap-2.mb-4.border-b button {
    flex-shrink: 0;
    font-size: 13px !important;
    padding: 10px 16px !important;
  }

  /* 请假详情弹窗优化 */
  #leaveDetailModal .modal-content {
    max-width: 95% !important;
  }

  /* 批量操作按钮优化 */
  .grid.grid-cols-2.gap-3 {
    gap: 8px !important;
  }

  .grid.grid-cols-2.gap-3 .mgmt-btn-card {
    padding: 12px 8px !important;
  }

  .grid.grid-cols-2.gap-3 .mgmt-btn-card .icon {
    font-size: 20px !important;
  }

  .grid.grid-cols-2.gap-3 .mgmt-btn-card .label {
    font-size: 11px !important;
  }

  /* 学生列表优化 */
  #stuList {
    max-height: 300px !important;
  }

  /* 教师列表优化 */
  #teacherList {
    max-height: 300px !important;
  }

  /* 节假日列表优化 */
  #holList {
    gap: 8px !important;
  }
}

/* 小屏手机（小于480px） */
@media (max-width: 480px) {
  /* 管理按钮网格 - 2列布局 */
  #mgmtBtnGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mgmt-btn-card {
    padding: 12px 6px !important;
  }

  .mgmt-btn-card .icon {
    font-size: 20px !important;
  }

  .mgmt-btn-card .label {
    font-size: 10px !important;
  }

  /* 月度统计按钮 - 全宽显示 */
  .flex.flex-wrap.gap-2.mb-4 > * {
    flex: 1 1 100% !important;
  }

  .flex.flex-wrap.gap-2.mb-4 button {
    font-size: 14px !important;
    padding: 12px !important;
  }

  /* 模态框内表单 - 单列布局 */
  .modal-body .flex.flex-wrap.gap-3 > * {
    flex: 1 1 100% !important;
  }

  /* 请假审批工具栏按钮 - 全宽 */
  .modal-body .mb-4.p-3.bg-blue-50 .flex.gap-2 button {
    flex: 1 1 100% !important;
    font-size: 13px !important;
  }

  /* 图表高度进一步减小 */
  #pieChart,
  #lineChart {
    height: 240px !important;
  }

  /* 浮动请假面板内容 */
  #leavePanelContent {
    width: calc(100vw - 20px) !important;
  }
}

/* 超小屏（小于360px） */
@media (max-width: 360px) {
  .mgmt-btn-card .label {
    font-size: 9px !important;
  }

  .modal-header h3 {
    font-size: 14px !important;
  }

  .modal-body {
    padding: 12px 16px !important;
  }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .modal-content {
    max-height: 95vh !important;
  }

  .modal-body {
    max-height: calc(95vh - 70px) !important;
  }

  #pieChart,
  #lineChart {
    height: 200px !important;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 硅胶拟态按钮风格 - Apple/Ant-Design优化 */
.silicone-btn {
  position: relative;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.silicone-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.silicone-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(255, 255, 255, 0.3);
}

.silicone-btn-blue {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-green {
  background: linear-gradient(135deg, #34D399, #059669);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-orange {
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-purple {
  background: linear-gradient(135deg, #A78BFA, #7C3AED);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-gray {
  background: linear-gradient(135deg, #9CA3AF, #6B7280);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-red {
  background: linear-gradient(135deg, #F87171, #DC2626);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.silicone-btn-orange {
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 管理按钮卡片 - Apple/Ant-Design优化 */
.mgmt-btn-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mgmt-btn-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mgmt-btn-card:active {
  transform: translateY(-1px);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mgmt-btn-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.mgmt-btn-card .label {
  font-size: 13px;
  font-weight: 600;
  color: #4E5969;
}

/* 弹窗样式 - Apple/Ant-Design优化 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #F5F7FA;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

/* 弹窗内的硅胶输入框 */
.modal-body input,
.modal-body select {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  background: #ffffff;
  box-shadow:
    inset 2px 2px 4px #e0e0e0,
    inset -2px -2px 4px #ffffff;
  outline: none;
  transition: all 0.2s;
}

.modal-body input:focus,
.modal-body select:focus {
  box-shadow:
    inset 2px 2px 4px #e0e0e0,
    inset -2px -2px 4px #ffffff,
    0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 安全审计面板样式 */
.audit-panel {
  animation: fadeIn 0.3s;
}

.warning-item {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
  border-left: 4px solid #F53F3F;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.warning-item:hover {
  box-shadow: 0 2px 8px rgba(245, 63, 63, 0.2);
}

.warning-critical {
  background: linear-gradient(135deg, #fff0f0 0%, #ffcccc 100%);
  border-left-color: #DC2626;
}

.fingerprint-card {
  background: white;
  border: 1px solid #E5E6EB;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s;
}

.fingerprint-card:hover {
  border-color: #165DFF;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.1);
}

.fingerprint-hash {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #86909C;
  word-break: break-all;
}

.device-info {
  font-size: 12px;
  color: #4E5969;
  margin-top: 4px;
}

.student-tag {
  display: inline-block;
  background: #E8F3FF;
  color: #165DFF;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin: 2px;
}

/* 【新增】通知弹窗动画 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
