/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background-color: #f5f5f5;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部样式 */
.header {
  background-color: #545c64 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.header .el-menu {
  border-bottom: none;
}

/* 导航容器样式 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-menu {
  flex: 1;
}

.user-info {
  display: flex;
  align-items: center;
  color: #fff;
}

.user-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  color: #fff;
}

.user-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.login-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.login-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 用户管理页面样式 */
.user-management {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.page-header h1 {
  margin: 0;
  color: #333;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header h1 i {
  color: #1890ff;
}

.add-user-btn {
  background: #1890ff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.add-user-btn:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 消息提示 */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert.success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}

.alert.error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
}

/* 用户容器 */
.users-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* 用户卡片 */
.user-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-card.inactive {
  opacity: 0.6;
  background: #f5f5f5;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
}

.user-details h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 16px;
}

.user-email {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}

.user-meta {
  display: flex;
  gap: 10px;
}

.role-badge,
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-badge.admin {
  background: #fff7e6;
  color: #fa8c16;
}

.role-badge.user {
  background: #f6ffed;
  color: #52c41a;
}

.status-badge.active {
  background: #f6ffed;
  color: #52c41a;
}

.status-badge.inactive {
  background: #fff2f0;
  color: #ff4d4f;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.edit-btn {
  background: #f0f0f0;
  color: #666;
}

.edit-btn:hover {
  background: #1890ff;
  color: white;
}

.delete-btn {
  background: #fff2f0;
  color: #ff4d4f;
}

.delete-btn:hover {
  background: #ff4d4f;
  color: white;
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* 弹框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 5% auto;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.modal-content.small {
  width: 400px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel,
.btn-submit,
.btn-danger {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.btn-cancel:hover {
  background: #e6e6e6;
  border-color: #b3b3b3;
}

.btn-submit {
  background: #1890ff;
  color: white;
}

.btn-submit:hover {
  background: #40a9ff;
}

.btn-danger {
  background: #ff4d4f;
  color: white;
}

.btn-danger:hover {
  background: #ff7875;
}

.warning {
  color: #fa8c16;
  font-size: 13px;
  margin-top: 10px;
}

/* 设备详情对话框筛选样式 */
.equipment-detail-dialog .el-card {
  border-radius: 6px;
}

.equipment-detail-dialog .el-card__header {
  background: #fafbfc;
  border-bottom: 1px solid #e8f4fd;
  padding: 12px 16px;
}

.equipment-detail-dialog .el-card__body {
  padding: 12px 16px;
}

/* 筛选标签样式 */
.equipment-detail-dialog .el-tag {
  background: #e8f4fd;
  border-color: #1890ff;
  color: #1890ff;
  margin-right: 6px;
  margin-bottom: 4px;
}

.equipment-detail-dialog .el-tag .el-tag__close {
  color: #1890ff;
}

.equipment-detail-dialog .el-tag .el-tag__close:hover {
  background-color: #1890ff;
  color: white;
}

/* 设备详情对话框布局 */
.equipment-detail-dialog-box {
  display: flex;
  flex-direction: column;
}

/* Swiper部分样式 */
.swiper-section {
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  color: #1890ff;
  font-weight: 600;
}

.equipment-detail-dialog .swiper-container {
  min-height: 300px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

.equipment-detail-dialog .swiper-content {
  padding: 16px;
  background: white;
  border-radius: 6px;
  height: 100%;
  box-sizing: border-box;
}

/* Swiper导航按钮样式 */
.equipment-detail-dialog .swiper-button-next,
.equipment-detail-dialog .swiper-button-prev {
  color: #1890ff;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.equipment-detail-dialog .swiper-button-next:hover,
.equipment-detail-dialog .swiper-button-prev:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.equipment-detail-dialog .swiper-button-next::after,
.equipment-detail-dialog .swiper-button-prev::after {
  font-size: 14px;
  font-weight: bold;
}

/* 筛选下拉框样式优化 */
.custom-filter-dropdown {
  max-height: 300px !important;
  overflow-y: auto !important;
}

.custom-filter-dropdown .el-select-dropdown__item {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-filter-dropdown .el-select-dropdown__item:hover {
  background-color: #f5f7fa;
}

.custom-filter-dropdown .el-select-dropdown__item.selected {
  background-color: #e6f7ff;
  color: #1890ff;
  font-weight: 500;
}

.custom-filter-dropdown .el-select-dropdown__item.is-created {
  background-color: #f0f9ff;
  border: 1px dashed #1890ff;
  color: #1890ff;
  font-style: italic;
}

.custom-filter-dropdown .el-select-dropdown__item.is-created:before {
  content: "创建: ";
  font-weight: 500;
}

/* 搜索行样式 */
.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-row label {
  font-size: 12px;
  color: #666;
  text-align: right;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-management {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .users-container {
    grid-template-columns: 1fr;
  }

  .user-card {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .user-actions {
    align-self: flex-end;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  padding: 20px;
  background-color: #f5f5f5;
}

/* 页脚样式 */
.footer {
  background-color: #fff;
  border-top: 1px solid #e6e6e6;
  text-align: center;
  color: #666;
  padding: 20px;
}

/* 卡片标题 */
.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

/* 欢迎卡片 */
.welcome-card {
  margin-bottom: 20px;
}

.welcome-card .el-card__body p {
  font-size: 16px;
  color: #606266;
  line-height: 1.6;
  margin: 0;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

/* 上传页面样式 */
.upload-page {
  max-width: 800px;
  margin: 0 auto;
}

.upload-demo {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.upload-result {
  margin-top: 20px;
}

.error-details {
  margin-top: 15px;
  padding: 15px;
  background-color: #fef0f0;
  border: 1px solid #fbc4c4;
  border-radius: 4px;
}

.error-details h4 {
  margin: 0 0 10px 0;
  color: #f56c6c;
}

.error-details ul {
  margin: 0;
  padding-left: 20px;
}

.error-details li {
  color: #f56c6c;
  margin-bottom: 5px;
}

.upload-instructions {
  margin-top: 30px;
  padding: 20px;
  background-color: #f4f4f5;
  border-radius: 4px;
}

.upload-instructions h3 {
  margin-top: 0;
  color: #303133;
}

.upload-instructions ol {
  color: #606266;
  line-height: 1.6;
}

.upload-instructions li {
  margin-bottom: 8px;
}

/* 设备详情页面样式 */
.equipment-detail h3 {
  color: #303133;
  border-bottom: 2px solid #409eff;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 表格样式优化 */
.el-table {
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-table th {
  background-color: #fafafa;
  color: #303133;
  font-weight: 600;
}

.el-table .el-table__row:hover > td {
  background-color: #f5f7fa;
}

/* 标签样式 */
.el-tag {
  border-radius: 4px;
}

/* 链接样式 */
.el-link {
  font-weight: 500;
}

.el-link:hover {
  text-decoration: underline;
}

/* 对话框样式 */
.el-dialog {
  border-radius: 8px;
}

.el-dialog__header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e6e6e6;
}

.el-dialog__title {
  font-weight: 600;
  color: #303133;
}

/* 描述列表样式 */
.el-descriptions {
  margin-top: 20px;
}

.el-descriptions__label {
  font-weight: 600;
  color: #303133;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 10px;
  }

  .el-col {
    margin-bottom: 20px;
  }

  .el-table {
    font-size: 12px;
  }

  .el-dialog {
    width: 95% !important;
    margin: 0 auto;
  }
}

/* 加载状态 */
.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.9);
}

/* 按钮样式优化 */
.el-button {
  border-radius: 4px;
  font-weight: 500;
}

.el-button--primary {
  background-color: #409eff;
  border-color: #409eff;
}

.el-button--primary:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
}

/* 卡片样式优化 */
.el-card {
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border: none;
}

.el-card__header {
  background-color: #fafafa;
  border-bottom: 1px solid #e6e6e6;
}

/* 消息提示样式 */
.el-message {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 记录详情表单样式 */
.record-detail-form {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.detail-row {
  display: flex;
  margin-bottom: 2px;
  gap: 2px;
}

.detail-item {
  padding: 8px 12px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  min-height: 32px;
}

.detail-item.full-width {
  flex: 1;
}

.detail-item:not(.full-width) {
  flex: 0 0 auto;
  min-width: 200px;
}

.detail-label {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap;
}

.detail-value {
  flex: 1;
  word-wrap: break-word;
}

.detail-multiline {
  white-space: pre-wrap;
  line-height: 1.6;
}

/* 不同颜色背景 */
.detail-yellow {
  background-color: #fff2cc;
  border-color: #d6b656;
}

.detail-green {
  background-color: #d5e8d4;
  border-color: #82b366;
}

.detail-blue {
  background-color: #dae8fc;
  border-color: #6c8ebf;
}

.detail-gray {
  background-color: #f8f8f8;
  border-color: #999;
}

.detail-purple {
  background-color: #e1d5e7;
  border-color: #9673a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .detail-row {
    flex-direction: column;
  }

  .detail-item:not(.full-width) {
    min-width: auto;
  }
}

/* Element UI Descriptions 标签颜色样式 */
.desc-label-green {
  background-color: #d5e8d4 !important;
  color: #2e7d32 !important;
  font-weight: bold !important;
}

.desc-label-yellow {
  background-color: #fff2cc !important;
  color: #856404 !important;
  font-weight: bold !important;
}

.desc-label-blue {
  background-color: #dae8fc !important;
  color: #1976d2 !important;
  font-weight: bold !important;
}

.desc-label-gray {
  background-color: #f8f8f8 !important;
  color: #666 !important;
  font-weight: bold !important;
}

.desc-label-purple {
  background-color: #e1d5e7 !important;
  color: #7b1fa2 !important;
  font-weight: bold !important;
}

/* 调整Descriptions组件间距 */
.equipment-detail-dialog .el-descriptions {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.equipment-detail-dialog .el-descriptions:first-child {
  margin-top: 0 !important;
}

.equipment-detail-dialog .el-descriptions__title {
  margin-bottom: 8px !important;
}

.equipment-detail-dialog .el-descriptions__body .el-descriptions__table {
  margin-bottom: 0 !important;
}

/* Swiper组件样式 */
.swiper-section {
  margin-top: 20px;
}

.swiper-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

.swiper-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 8px 12px;
  background-color: #f0f9ff;
  border-left: 4px solid #409eff;
  flex: 1;
}

.swiper-container {
  width: 100%;
  position: relative;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background-color: #f8f9fa;
  overflow: hidden;
}

.swiper-content {
  padding: 15px;
  background-color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
}

/* Swiper导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
  color: #409eff !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  margin-top: -20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
  opacity: 1 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #409eff !important;
  color: #fff !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: bold !important;
}

/* Swiper分页器样式 */
.swiper-pagination {
  position: relative !important;
  margin-top: 15px !important;
}

.swiper-pagination-bullet {
  background-color: #409eff !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
}

/* Swiper loading样式 */
.swiper-section .el-loading-mask {
  border-radius: 4px;
}

.swiper-section .el-loading-spinner {
  margin-top: -21px;
}

.swiper-section .el-loading-text {
  color: #fff;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .swiper-section .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .swiper-section .section-title {
    margin-bottom: 10px;
    width: 100%;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px !important;
    height: 35px !important;
    margin-top: -17.5px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
  }
}

/* 选择器组件样式 */
.selector-section {
  margin-top: 20px;
}

.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.selector-header .section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 8px 12px;
  background-color: #f0f9ff;
  border-left: 4px solid #409eff;
  flex: 1;
  margin-right: 20px;
}

.content-section {
  padding: 15px;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .selector-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .selector-header .section-title {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }

  .selector-header .el-select {
    width: 100% !important;
  }
}

/* 级联选择器面板样式 */
.equipment-detail-dialog .el-cascader-panel {
  max-height: 300px !important;
  overflow-y: auto !important;
}

.equipment-detail-dialog .el-cascader-menu {
  max-height: 280px !important;
  overflow-y: auto !important;
}

.equipment-detail-dialog .el-cascader-node {
  max-width: 200px !important;
}

.equipment-detail-dialog .el-cascader-node__label {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 180px !important;
}

.equipment-detail-dialog .el-cascader__dropdown {
  max-height: 320px !important;
}

/* 设备信息项样式 */
.info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
}

.info-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 设备详情对话框样式 */
.equipment-detail-dialog .el-dialog__body {
  padding: 20px;
}

.equipment-detail-content {
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.basic-info-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding: 10px 15px;
  background-color: #f0f9ff;
  border-left: 4px solid #409eff;
}

.info-grid {
  background-color: #fff;
  border: 1px solid #e6e6e6;
}

.info-row {
  display: flex;
  border-bottom: 1px solid #e6e6e6;
}

.info-row:last-child {
  border-bottom: none;
}

.info-cell {
  flex: 1;
  padding: 15px;
  border-right: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
}

.info-cell:last-child {
  border-right: none;
}

.info-cell .info-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.info-cell .info-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.number-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.number-tag.green {
  background-color: #d4edda;
  color: #155724;
}

.number-tag.orange {
  background-color: #fff3cd;
  color: #856404;
}

/* 标签页样式 */
.tabs-section {
  margin-top: 20px;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid #e6e6e6;
}

.tab-header {
  padding: 12px 24px;
  cursor: pointer;
  background-color: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-bottom: none;
  margin-right: 2px;
  font-weight: 500;
  color: #666;
}

.tab-header.active {
  background-color: #409eff;
  color: white;
  border-color: #409eff;
}

.tab-content {
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-top: none;
}

.tab-pane {
  padding: 0;
}

/* 数据表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background-color: #f8f9fa;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
}

.data-table th:last-child {
  border-right: none;
}

.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  vertical-align: top;
}

.data-table td:last-child {
  border-right: none;
}

.data-table tr:hover {
  background-color: #f8f9fa;
}

/* 表格内容样式 */
.fault-desc,
.warning-desc,
.cause-desc,
.solution-desc {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tag,
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.category-tag.blue {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-tag.green {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.fault-code {
  background-color: #ffebee;
  color: #c62828;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.detail-link {
  color: #409eff;
  text-decoration: none;
  font-size: 13px;
}

.detail-link:hover {
  text-decoration: underline;
}

/* 自定义筛选下拉框样式 */
.custom-filter-dropdown {
  max-width: 300px !important;
  overflow-y: auto !important;
}

.custom-filter-dropdown .el-select-dropdown__item {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-filter-dropdown .el-select-dropdown__item:hover {
  background-color: #f5f7fa;
}

.custom-filter-dropdown .el-select-dropdown__item.selected {
  background-color: #e6f7ff;
  color: #1890ff;
  font-weight: 500;
}

/* 下拉框滚动条样式 */
.custom-filter-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-filter-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-filter-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.custom-filter-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 创建新选项的样式 */
.custom-filter-dropdown .el-select-dropdown__item.is-created {
  background-color: #f0f9ff;
  border: 1px dashed #1890ff;
  color: #1890ff;
  font-style: italic;
}

.custom-filter-dropdown .el-select-dropdown__item.is-created:before {
  content: "创建: ";
  font-weight: 500;
}

.tag_box {
  margin-right: 4px;
  margin-bottom: 4px;
}
.tag_box .el-tag__close {
  top: -6px;
}
.el-descriptions-item__label {
  width: 72px;
}
.equipment-detail-dialog-box-centen {
  display: flex;
  gap: 20px;
}
/* 手机端上下布局 */
@media (max-width: 768px) {
  .equipment-detail-dialog-box-centen {
    display: flex;
    flex-direction: column;
  }
  .equipment-detail-dialog-box-centen .item {
    width: calc(100% - 2px) !important;
  }
}

.equipment-detail-dialog-box-centen .item1 {
  width: 300px;
}
.equipment-detail-dialog-box-centen .item2 {
  width: calc(100% - 322px);
}
.equipment-detail-dialog-box {
  display: flex;
  flex-direction: column;
}
.equipment-detail-dialog-box .search-box {
  width: 300px;
  flex-shrink: 0;
  margin-right: 20px;
}
/* 手机端上下布局 */
@media (max-width: 768px) {
  .equipment-detail-dialog-box {
    flex-direction: column;
  }
  .equipment-detail-dialog-box .search-box {
    width: 100% !important;
    margin: 0 !important;
  }
}

.filter-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 记录列表样式 */
.fault-records-list,
.process-records-list {
  max-height: 500px;
  overflow-y: auto;
}

.fault-record-item,
.process-record-item {
  margin-bottom: 16px;
}

.fault-record-item:last-child,
.process-record-item:last-child {
  margin-bottom: 0;
}
