style: 顶部导航下拉菜单改为 akile.io 深色毛玻璃风格
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- Header 改为深色半透明背景 rgba(10,12,22,0.92) + backdrop-filter - 导航文字改白色,hover 下划线改蓝色 - nav-mega-menu.css 完整重写:纯行 hover 风格,去掉卡片 border - 下拉面板背景 rgba(14,16,26,0.98),柔和阴影 - 登录下拉菜单同步改为深色风格 - 三级菜单动画改为 fadeIn+slideUp 组合 - 清除 css/common.css 中的旧样式覆盖冲突
This commit is contained in:
@@ -61,20 +61,17 @@
|
||||
#header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #fff;
|
||||
background: transparent;
|
||||
z-index: 888;
|
||||
}
|
||||
|
||||
.nav-shadow {
|
||||
top: 0;
|
||||
box-shadow: 0px 0px 8px rgba(52, 52, 52, 0.08);
|
||||
/* 默认 header 背景保持浅色,首页会在 css/index.css 中做单独科技风覆盖 */
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(255, 255, 255, 0.98) 0%,
|
||||
rgba(245, 247, 255, 0.98) 40%,
|
||||
rgba(227, 237, 255, 0.98) 100%
|
||||
);
|
||||
/* 深色毛玻璃 Header,与下拉菜单统一风格 */
|
||||
background: rgba(10, 12, 22, 0.92);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.nav-header {
|
||||
@@ -102,18 +99,20 @@
|
||||
}
|
||||
|
||||
.nav-menu .nav-item {
|
||||
color: #333;
|
||||
color: rgba(220, 228, 240, 0.9);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 72px;
|
||||
padding: 0 20px;
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-menu .nav-item:hover {
|
||||
border-bottom: 2px solid #38BDF8;
|
||||
color: #fff;
|
||||
border-bottom: 2px solid rgba(59, 130, 246, 0.8);
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +126,7 @@
|
||||
|
||||
.nav-right .control {
|
||||
margin: 0 20px;
|
||||
color: #333;
|
||||
color: rgba(220, 228, 240, 0.9);
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
@@ -137,16 +136,15 @@
|
||||
}
|
||||
|
||||
|
||||
/* 菜单栏 */
|
||||
/* 菜单栏 - 背景由 nav-mega-menu.css 统一管理 */
|
||||
.nav-cont {
|
||||
position: absolute;
|
||||
top: 72px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background: #F7F8FA;
|
||||
transition: all .5s;
|
||||
background: transparent;
|
||||
transition: height 0.3s ease-out;
|
||||
height: 0px;
|
||||
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.16);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@@ -228,7 +226,7 @@
|
||||
top: 50%;
|
||||
height: 32px;
|
||||
transform: translateY(-50%);
|
||||
border-left: 1px solid #E6EAED;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.nav-header .login-in:hover .login-menu {
|
||||
@@ -238,8 +236,8 @@
|
||||
.nav-header .login-in .head-img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: #eee;
|
||||
border: 1px solid #E6EAED;
|
||||
background: #3B82F6;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 50%;
|
||||
color: #FFFFFF;
|
||||
font-size: 16px;
|
||||
@@ -251,50 +249,61 @@
|
||||
.nav-header .login-in .name {
|
||||
display: inline-block;
|
||||
max-width: 140px;
|
||||
color: rgba(220, 228, 240, 0.9);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 用户登录下拉菜单 - 深色风格 */
|
||||
.nav-header .login-in .login-menu {
|
||||
display: none;
|
||||
padding: 8px;
|
||||
padding: 6px;
|
||||
position: absolute;
|
||||
top: 72px;
|
||||
left: 0;
|
||||
width: 157px;
|
||||
height: 188px;
|
||||
background: #FEFFFF;
|
||||
border: 1px solid #DCDCDC;
|
||||
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
|
||||
opacity: 1;
|
||||
border-radius: 3px;
|
||||
width: 168px;
|
||||
background: rgba(14, 16, 26, 0.98);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: 10px;
|
||||
animation: navDropFadeIn 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes navDropFadeIn {
|
||||
from { opacity: 0; transform: translateY(-6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.nav-header .login-in .login-menu .login-menu-item {
|
||||
cursor: pointer;
|
||||
height: 40px;
|
||||
padding: 10px 12px;
|
||||
padding: 10px 14px;
|
||||
color: rgba(203, 213, 225, 0.85);
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
transition: background 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
|
||||
.nav-header .login-in .login-menu .login-menu-item:hover {
|
||||
background: rgba(56, 189, 248, 0.08);
|
||||
color: rgba(56, 189, 248, 1);
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.nav-header .login-in .login-menu .login-menu-item .real-name {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
border: 1px solid #38BDF8;
|
||||
color: rgba(56, 189, 248, 1);
|
||||
font-size: 12px;
|
||||
width: 44px;
|
||||
border: 1px solid rgba(59, 130, 246, 0.6);
|
||||
color: #60A5FA;
|
||||
font-size: 11px;
|
||||
padding: 0 6px;
|
||||
height: 18px;
|
||||
border-radius: 3px;
|
||||
line-height: 18px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nav-header .login-in .login-menu .login-menu-item .no-real-name {
|
||||
border: 1px solid #E34D59;
|
||||
color: rgba(227, 77, 89, 1);
|
||||
border: 1px solid rgba(239, 68, 68, 0.6);
|
||||
color: #F87171;
|
||||
}
|
||||
|
||||
/* 底部导航栏 */
|
||||
|
||||
Reference in New Issue
Block a user