/* ===== PC端-消息通知中心 样式 ===== */

.notification-center {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-page, #F7F8FA);
}

/* ===== 顶部Tab统计条 ===== */
.notif-tab-bar {
  display: flex;
  align-items: center;
  height: 50px;
  background: var(--bg-card, #FFFFFF);
  border-bottom: 1px solid var(--border, #EBEDF0);
  padding: 0 16px;
  gap: 4px;
  flex-shrink: 0;
  overflow-x: auto;
}

.notif-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 50px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-regular, #646566);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.notif-tab-item:hover {
  color: var(--primary, #1989FA);
  background: var(--bg-page, #F7F8FA);
}

.notif-tab-active {
  color: var(--primary, #1989FA) !important;
  border-bottom-color: var(--primary, #1989FA) !important;
  font-weight: 600;
}

.notif-tab-label {
  font-size: 14px;
}

.notif-tab-badge .el-badge__content {
  font-size: 11px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
}

/* ===== 工具栏 ===== */
.notif-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  background: var(--bg-card, #FFFFFF);
  border-bottom: 1px solid var(--border, #EBEDF0);
  flex-shrink: 0;
}

.notif-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 主从联动区域 ===== */
.notif-split-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

/* ===== 左侧通知列表 (40%) ===== */
.notif-list-panel {
  width: 40%;
  min-width: 320px;
  border-right: 1px solid var(--border, #EBEDF0);
  background: var(--bg-card, #FFFFFF);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.notif-loading {
  padding: 16px;
}

.notif-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ===== 通知卡片 ===== */
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  height: 72px;
  box-sizing: border-box;
  border-radius: 8px;
  border-left: 3px solid var(--border, #EBEDF0);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.notif-card:hover {
  background: var(--border-light, #F2F3F5);
}

.notif-card-selected {
  background: rgba(25, 137, 250, 0.06) !important;
  border-left-color: var(--primary, #1989FA) !important;
}

.notif-card-priority-urgent {
  border-left-color: var(--danger, #EE0A24);
}

.notif-card-priority-important {
  border-left-color: var(--warning, #FF976A);
}

.notif-card-unread {
  background: rgba(25, 137, 250, 0.02);
}

.notif-card-checkbox {
  flex-shrink: 0;
  padding-top: 2px;
}

.notif-card-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}

.notif-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.notif-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-card-title {
  font-size: 14px;
  color: var(--text-regular, #646566);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.notif-title-unread {
  color: var(--text-primary, #323233);
  font-weight: 600;
}

.notif-priority-tag {
  flex-shrink: 0;
  transform: scale(0.85);
}

.notif-unread-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary, #1989FA);
  margin-left: auto;
}

.notif-card-content {
  font-size: 12px;
  color: var(--text-secondary, #969799);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.notif-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-card-time {
  font-size: 12px;
  color: var(--text-secondary, #969799);
}

/* ===== 分页 ===== */
.notif-pagination {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

/* ===== 右侧详情面板 (60%) ===== */
.notif-detail-panel {
  width: 60%;
  flex: 1;
  background: var(--bg-card, #FFFFFF);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.notif-detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px;
}

.notif-detail-header {
  margin-bottom: 8px;
}

.notif-detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.notif-detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #323233);
  margin: 0;
  line-height: 1.4;
}

.notif-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary, #969799);
}

.notif-detail-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-detail-body {
  flex: 1;
  margin-bottom: 16px;
}

.notif-detail-text {
  font-size: 14px;
  color: var(--text-primary, #323233);
  line-height: 1.8;
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-all;
}

.notif-detail-biz {
  margin-top: 16px;
}

.notif-detail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #EBEDF0);
  margin-top: auto;
}

/* ===== 顶部铃铛下拉通知预览 ===== */
.notif-bell-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  cursor: pointer;
  position: relative;
}

.notif-bell-icon {
  font-size: 20px;
  color: var(--text-regular, #646566);
  transition: transform 0.3s ease;
}

.notif-bell-icon-shake {
  animation: bell-shake 0.5s ease;
}

@keyframes bell-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -8px;
}

.notif-dropdown-panel {
  width: 360px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #EBEDF0);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #323233);
}

.notif-dropdown-list {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
}

.notif-dropdown-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light, #F2F3F5);
  transition: background 0.15s ease;
}

.notif-dropdown-item:hover {
  background: var(--border-light, #F2F3F5);
}

.notif-dropdown-item-unread {
  background: rgba(25, 137, 250, 0.03);
}

.notif-dropdown-item-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
}

.notif-dropdown-item-body {
  flex: 1;
  min-width: 0;
}

.notif-dropdown-item-title {
  font-size: 13px;
  color: var(--text-primary, #323233);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-dropdown-item-time {
  font-size: 12px;
  color: var(--text-secondary, #969799);
  margin-top: 2px;
}

.notif-dropdown-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-secondary, #969799);
  font-size: 13px;
}

.notif-dropdown-footer {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border, #EBEDF0);
}
