优化个人中心样式
Change-Id: Ifee966f72ccff3cf74ceea3501d9bf477511f73d
diff --git a/src/pages/UserCenter/UserNav/UserNav.css b/src/pages/UserCenter/UserNav/UserNav.css
index e69de29..783fcdc 100644
--- a/src/pages/UserCenter/UserNav/UserNav.css
+++ b/src/pages/UserCenter/UserNav/UserNav.css
@@ -0,0 +1,43 @@
+/* 竖直导航栏的容器 */
+.user-nav-container {
+ width: 250px;
+ background-color: #f4f4f4;
+ padding-top: 20px;
+ border-right: 1px solid #ccc;
+ height: 100%; /* 让容器填充整个父容器高度 */
+ display: flex;
+ flex-direction: column;
+ align-items: stretch; /* 确保所有导航项都拉伸 */
+ }
+
+ /* 导航栏样式 */
+ .user-nav {
+ display: flex;
+ flex-direction: column;
+ padding: 0;
+ margin: 0;
+ flex-grow: 1; /* 使导航栏占据剩余空间 */
+ }
+
+ /* 每一项导航链接 */
+ .user-nav-item {
+ padding: 15px 20px;
+ text-align: left;
+ text-decoration: none;
+ color: #333;
+ font-size: 16px;
+ border-bottom: 1px solid #e0e0e0;
+ transition: background-color 0.3s ease;
+ }
+
+ /* 鼠标悬浮时的背景颜色 */
+ .user-nav-item:hover {
+ background-color: #ddd;
+ }
+
+ /* 激活项的样式 */
+ .user-nav-item.active {
+ background-color: #3b8cff;
+ color: white;
+ }
+
\ No newline at end of file