|
@@ -43,20 +43,9 @@ const isAdmin = computed(() => store.isAdmin);
|
|
box-shadow: var(--shadow-md);
|
|
box-shadow: var(--shadow-md);
|
|
padding: 1rem 0;
|
|
padding: 1rem 0;
|
|
position: relative;
|
|
position: relative;
|
|
- overflow: hidden;
|
|
|
|
|
|
+ overflow: visible;
|
|
}
|
|
}
|
|
|
|
|
|
-.header::before {
|
|
|
|
- content: '';
|
|
|
|
- position: absolute;
|
|
|
|
- top: -50%;
|
|
|
|
- left: -50%;
|
|
|
|
- width: 200%;
|
|
|
|
- height: 200%;
|
|
|
|
- background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
|
|
|
|
- animation: shimmer 15s infinite linear;
|
|
|
|
- pointer-events: none;
|
|
|
|
-}
|
|
|
|
|
|
|
|
@keyframes shimmer {
|
|
@keyframes shimmer {
|
|
0% { transform: rotate(0deg); }
|
|
0% { transform: rotate(0deg); }
|
|
@@ -122,6 +111,17 @@ const isAdmin = computed(() => store.isAdmin);
|
|
gap: 1rem;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.relative {
|
|
|
|
+ position: relative; /* 确保父元素是相对定位 */
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.absolute {
|
|
|
|
+ position: absolute; /* 下拉菜单绝对定位 */
|
|
|
|
+ top: 100%; /* 确保下拉菜单在 header 下面 */
|
|
|
|
+ right: 0; /* 右对齐 */
|
|
|
|
+ z-index: 10; /* 确保下拉菜单在其他元素之上 */
|
|
|
|
+}
|
|
|
|
+
|
|
@media (max-width: 768px) {
|
|
@media (max-width: 768px) {
|
|
.header-nav {
|
|
.header-nav {
|
|
flex-direction: column;
|
|
flex-direction: column;
|