From acd6bbae394c997523b5051d019e584db1845c4c Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 17 六月 2026 14:29:04 +0800
Subject: [PATCH] 样式修改

---
 src/layout/components/NotificationCenter/index.vue |  165 ++++++++++++++++++++++++++++++------------------------
 1 files changed, 92 insertions(+), 73 deletions(-)

diff --git a/src/layout/components/NotificationCenter/index.vue b/src/layout/components/NotificationCenter/index.vue
index 66f489a..8b9d74f 100644
--- a/src/layout/components/NotificationCenter/index.vue
+++ b/src/layout/components/NotificationCenter/index.vue
@@ -255,7 +255,8 @@
     flex-direction: column;
     width: 500px;
     padding: 16px;
-    background: rgba(255, 255, 255, 0.92);
+    background: transparent;
+    color: rgba(15, 23, 42, 0.92);
   }
 
   .popover-header {
@@ -265,12 +266,12 @@
     width: 100%;
     margin-bottom: 16px;
     padding-bottom: 12px;
-    border-bottom: 1px solid var(--surface-border);
+    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
 
     .popover-title {
       font-size: 18px;
       font-weight: 500;
-      color: var(--text-primary);
+      color: rgba(15, 23, 42, 0.92);
     }
   }
 
@@ -285,6 +286,18 @@
       flex-direction: column;
       min-height: 0;
 
+      .el-tabs__nav-wrap::after {
+        background-color: rgba(15, 23, 42, 0.08);
+      }
+
+      .el-tabs__item {
+        color: rgba(15, 23, 42, 0.7);
+
+        &.is-active {
+          color: var(--accent-primary);
+        }
+      }
+
       .el-tabs__header {
         margin-bottom: 0;
         flex-shrink: 0;
@@ -297,90 +310,96 @@
         min-height: 0;
         padding-top: 16px;
       }
+    }
+  }
 
-      .el-tab-pane {
-        height: 100%;
+  .notification-list {
+    display: flex;
+    flex-direction: column;
+    gap: 12px;
+  }
+
+  .notification-item {
+    display: flex;
+    gap: 12px;
+    padding: 12px;
+    border-radius: var(--radius-md);
+    background: rgba(15, 23, 42, 0.03);
+    border: 1px solid rgba(15, 23, 42, 0.06);
+    transition: all 0.2s ease;
+
+    &:hover {
+      background: rgba(15, 23, 42, 0.05);
+      border-color: rgba(15, 23, 42, 0.1);
+    }
+
+    &.read {
+      opacity: 0.6;
+    }
+
+    .notification-icon {
+      flex-shrink: 0;
+    }
+
+    .notification-content-wrapper {
+      flex: 1;
+      min-width: 0;
+
+      .notification-title {
+        font-size: 14px;
+        font-weight: 500;
+        color: rgba(15, 23, 42, 0.92);
+        margin-bottom: 4px;
+      }
+
+      .notification-detail {
+        font-size: 13px;
+        color: rgba(15, 23, 42, 0.7);
+        line-height: 1.4;
+        margin-bottom: 8px;
+      }
+
+      .notification-time {
+        font-size: 11px;
+        color: rgba(15, 23, 42, 0.55);
       }
     }
   }
 
   .empty-state {
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    min-height: 300px;
     padding: 40px 0;
-  }
-
-  .notification-list {
-    .notification-item {
-      display: flex;
-      padding: 12px 0;
-      border-bottom: 1px solid rgba(148, 163, 184, 0.18);
-      transition: background-color 0.3s;
-
-      &:hover {
-        background-color: #f8fbff;
-      }
-
-      &.read {
-        opacity: 0.7;
-      }
-
-      .notification-icon {
-        flex-shrink: 0;
-        width: 40px;
-        height: 40px;
-        display: flex;
-        align-items: center;
-        justify-content: center;
-        background-color: rgba(59, 130, 246, 0.12);
-        border-radius: 50%;
-        margin-right: 12px;
-      }
-
-      .notification-content-wrapper {
-        flex: 1;
-        min-width: 0;
-
-        .notification-title {
-          font-size: 14px;
-          font-weight: 500;
-          color: var(--text-primary);
-          margin-bottom: 8px;
-        }
-
-        .notification-detail {
-          font-size: 13px;
-          color: var(--text-secondary);
-          line-height: 1.5;
-          margin-bottom: 8px;
-          word-break: break-all;
-        }
-
-        .notification-time {
-          font-size: 12px;
-          color: var(--text-tertiary);
-        }
-      }
-
-      .notification-action {
-        flex-shrink: 0;
-        margin-left: 12px;
-        display: flex;
-        align-items: center;
-      }
+    :deep(.el-empty__description p) {
+      color: rgba(15, 23, 42, 0.68);
     }
   }
 
   .pagination-wrapper {
     margin-top: 16px;
     padding-top: 16px;
-    border-top: 1px solid var(--surface-border);
+    border-top: 1px solid rgba(15, 23, 42, 0.08);
     display: flex;
-    justify-content: center;
-    padding-left: 0;
-    padding-right: 0;
+    justify-content: flex-end;
+
+    :deep(.el-pagination) {
+      --el-pagination-bg-color: transparent;
+      --el-pagination-button-bg-color: transparent;
+      --el-pagination-hover-color: var(--accent-primary);
+
+      button,
+      .el-pager li {
+        color: rgba(15, 23, 42, 0.7);
+        background: transparent;
+
+        &:disabled {
+          color: rgba(15, 23, 42, 0.3);
+        }
+      }
+
+      .el-pager li.is-active {
+        color: var(--accent-primary);
+        font-weight: bold;
+      }
+    }
   }
 </style>
 

--
Gitblit v1.9.3