/* 自动通知弹窗样式 */
.auto-notification-dialog {
  border-radius: 12px;
  overflow: hidden;
}

.auto-notification-dialog .el-dialog__header {
  display: none;
}

.auto-notification-dialog .el-dialog__body {
  padding: 0;
  height: 600px;
}

.auto-notification-container {
  display: flex;
  height: 600px;
  background: #fff;
}

/* 左侧通知列表 */
.notification-sidebar {
  width: 300px;
  background: #f8f9fa;
  border-right: 1px solid #e6e7eb;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e6e7eb;
  background: #fff;
}

.sidebar-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: bold;
  color: #1e2736;
}

.unread-count {
  font-size: 14px;
  color: #8692b0;
  background: #e8f4fd;
  padding: 4px 8px;
  border-radius: 12px;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.notification-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
}

.notification-item:hover {
  background: #e8f4fd;
}

.notification-item.active {
  background: #1e41c9;
  color: white;
}

.notification-item.active .notification-meta {
  color: rgba(255, 255, 255, 0.8);
}

.notification-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8692b0;
  margin-bottom: 5px;
}

.notification-type {
  background: #e8f4fd;
  color: #1e41c9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.notification-item.active .notification-type {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-time {
  font-size: 11px;
}

.notification-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 16px;
}

.notification-status .el-icon-circle-check {
  color: #4caf50;
}

.notification-status .el-icon-warning-outline {
  color: #ff9800;
}

.notification-item.active .notification-status .el-icon-warning-outline {
  color: rgba(255, 255, 255, 0.8);
}

/* 右侧内容区域 */
.notification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.content-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.content-header h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: bold;
  color: #1e2736;
  line-height: 1.4;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.content-type {
  background: #e8f4fd;
  color: #1e41c9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.content-time {
  font-size: 14px;
  color: #8692b0;
}

.content-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 10px;
}

.content-body p {
  margin-bottom: 12px;
}

.content-body h1, .content-body h2, .content-body h3 {
  margin: 20px 0 10px 0;
  color: #1e2736;
}

.content-body ul, .content-body ol {
  margin: 10px 0;
  padding-left: 20px;
}

.content-body li {
  margin-bottom: 5px;
}

/* 确认区域 */
.confirmation-area {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: auto;
}

.read-confirmation {
  margin-bottom: 20px;
}

.read-confirmation .el-checkbox {
  font-size: 14px;
}

.read-confirmation .el-checkbox__label {
  color: #1e2736;
  font-weight: 500;
}

.read-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #ff9800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-buttons {
  text-align: right;
}

.action-buttons .el-button {
  min-width: 140px;
  height: 44px;
  font-size: 16px;
  font-weight: 500;
}

.action-buttons .el-button:disabled {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #bfbfbf;
}

/* 无内容状态 */
.no-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8692b0;
}

.no-content .el-icon-document {
  font-size: 48px;
  margin-bottom: 15px;
  color: #d9d9d9;
}

.no-content p {
  font-size: 14px;
  margin: 0;
}

/* 滚动条样式 */
.notification-list::-webkit-scrollbar,
.content-body::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track,
.content-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb,
.content-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover,
.content-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .auto-notification-dialog {
    width: 95% !important;
    margin: 0 auto;
  }
  
  .auto-notification-container {
    flex-direction: column;
    height: 70vh;
  }
  
  .notification-sidebar {
    width: 100%;
    height: 200px;
  }
  
  .notification-content {
    height: calc(70vh - 200px);
  }
  
  .content-wrapper {
    padding: 15px;
  }
  
  .content-header h2 {
    font-size: 18px;
  }
  
  .action-buttons .el-button {
    width: 100%;
  }
}

/* 加载状态 */
.el-button.is-loading {
  pointer-events: none;
}

/* 动画效果 */
.auto-notification-dialog {
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}