/* 模态覆盖层 */
.box-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}

/* 模态窗口 */
.box-modal {
  background: #fff;
  width: min(1000px, 96%);
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* 头部：标题 + 关闭按钮 */
.box-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg,#f5f5f7,#ffffff);
  border-bottom: 1px solid #e6e6e8;
}
.box-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.box-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  padding: 6px;
  line-height: 1;
  border-radius: 4px;
}
.box-close-btn:focus { outline: 2px solid rgba(0,120,212,0.2); }

/* 主体：表格容器，支持滚动 */
.box-modal-body {
  padding: 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Excel 风格表格 */
.box-excel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px; /* 在小屏幕启用横向滚动 */
  font-size: 14px;
}
/* 表头文本居中并加粗，配色增强对比 */
.box-excel-table thead th {
  background: linear-gradient(180deg,#e9f1ff,#dfeafc);
  color: #0b3a82;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
  border: 1px solid #cfdff5;
  padding: 10px;
}
/* 单元格居中，便于对齐展示 */
.box-excel-table th,
.box-excel-table td {
  border: 1px solid #e0e7ef;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}
/* 列表行颜色区分：奇偶行 */
.box-excel-table tbody tr:nth-child(odd) td { background: #ffffff; }
.box-excel-table tbody tr:nth-child(even) td { background: #f7fbff; }

.box-excel-table tbody tr:hover td {
  background: #fff8e6;
}

/* 小屏幕下允许横向滚动 */
.box-table-wrap {
  width: 100%;
  overflow: auto;
}

/* 表格工具尾部（可扩展） */
.box-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* 响应式调整 */
@media (max-width: 520px) {
  .box-modal { width: 98%; max-height: 94vh; }
  .box-modal-title { font-size: 15px; }
  .box-excel-table th, .box-excel-table td { padding: 8px 6px; font-size: 13px; }
}
