/* pages/notification/detail/detail.wxss */
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 120rpx;
}

.status-bar {
  background-color: #2c5aa0;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #f3f3f3;
  border-top: 4rpx solid #2c5aa0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20rpx;
  font-size: 28rpx;
  color: #666;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 详情内容 */
.detail-content {
  padding: 20rpx;
}

/* 通知头部 */
.notification-header {
  background-color: white;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}

.notification-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20rpx;
}

.notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-time {
  font-size: 26rpx;
  color: #666;
}

.notification-type {
  padding: 6rpx 12rpx;
  border-radius: 12rpx;
  font-size: 22rpx;
  font-weight: bold;
}

.type-system {
  background-color: #e6f7ff;
  color: #1890ff;
}

.type-alert {
  background-color: #fff2f0;
  color: #ff4d4f;
}

.type-task {
  background-color: #fff7e6;
  color: #fa8c16;
}

/* 通知内容 */
.notification-content {
  background-color: white;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}

.content-section {
  margin-bottom: 40rpx;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
  padding-bottom: 10rpx;
  border-bottom: 2rpx solid #f0f0f0;
}

.content-text {
  font-size: 28rpx;
  color: #333;
  line-height: 1.6;
}

/* 详情项 */
.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 28rpx;
  color: #666;
  flex-shrink: 0;
  width: 160rpx;
}

.detail-value {
  font-size: 28rpx;
  color: #333;
  flex: 1;
  text-align: right;
}

/* 告警级别 */
.level-high {
  color: #ff4d4f;
  font-weight: bold;
}

.level-medium {
  color: #fa8c16;
  font-weight: bold;
}

.level-low {
  color: #52c41a;
  font-weight: bold;
}

/* 任务状态 */
.status-pending {
  color: #fa8c16;
  font-weight: bold;
}

.status-processing {
  color: #1890ff;
  font-weight: bold;
}

.status-completed {
  color: #52c41a;
  font-weight: bold;
}

/* 优先级 */
.priority-high {
  color: #ff4d4f;
  font-weight: bold;
}

.priority-medium {
  color: #fa8c16;
  font-weight: bold;
}

.priority-low {
  color: #52c41a;
  font-weight: bold;
}

/* 附件列表 */
.attachments-list {
  margin-top: 20rpx;
}

.attachment-item {
  display: flex;
  align-items: center;
  padding: 20rpx;
  background-color: #f8f9fa;
  border-radius: 12rpx;
  margin-bottom: 12rpx;
  transition: background-color 0.3s ease;
}

.attachment-item:active {
  background-color: #e9ecef;
}

.attachment-icon {
  font-size: 32rpx;
  margin-right: 16rpx;
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 4rpx;
}

.attachment-size {
  font-size: 24rpx;
  color: #999;
}

.attachment-action {
  font-size: 26rpx;
  color: #2c5aa0;
}

/* 处理记录 */
.process-records {
  margin-top: 20rpx;
}

.record-item {
  display: flex;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.record-item:last-child {
  border-bottom: none;
}

.record-time {
  font-size: 24rpx;
  color: #999;
  width: 120rpx;
  flex-shrink: 0;
}

.record-content {
  flex: 1;
  margin-left: 20rpx;
}

.record-action {
  font-size: 28rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.record-operator {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 4rpx;
}

.record-remark {
  font-size: 26rpx;
  color: #333;
  line-height: 1.4;
}

/* 底部操作栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 20rpx;
  border-top: 1rpx solid #f0f0f0;
  display: flex;
  gap: 20rpx;
  box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.1);
}

.action-btn {
  flex: 1;
  height: 80rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  font-weight: bold;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.action-btn:active {
  transform: scale(0.95);
}

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

.task-btn {
  background-color: #fa8c16;
  color: white;
}

.share-btn {
  background-color: #2c5aa0;
  color: white;
}