This commit is contained in:
414
css/common.css
414
css/common.css
@@ -10,103 +10,103 @@
|
|||||||
/* 强制提升 header 和导航菜单的层级 */
|
/* 强制提升 header 和导航菜单的层级 */
|
||||||
header,
|
header,
|
||||||
#header {
|
#header {
|
||||||
z-index: 99999 !important;
|
z-index: 99999 !important;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: background 0.3s ease !important;
|
transition: background 0.3s ease !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
position: sticky !important;
|
position: sticky !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header:hover,
|
#header:hover,
|
||||||
header:hover {
|
header:hover {
|
||||||
background: rgba(15, 23, 42, 0.6) !important;
|
background: rgba(15, 23, 42, 0.6) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 导航栏:使用统一的容器系统 */
|
/* 导航栏:使用统一的容器系统 */
|
||||||
.nav-header {
|
.nav-header {
|
||||||
max-width: 1440px;
|
max-width: 1440px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-header .nav-left {
|
.nav-header .nav-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right {
|
.nav-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right>a {
|
.nav-right>a {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 纯文字链接样式 */
|
/* 纯文字链接样式 */
|
||||||
.nav-right .nav-text-link {
|
.nav-right .nav-text-link {
|
||||||
color: #CBD5E1;
|
color: #CBD5E1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right .nav-text-link:hover {
|
.nav-right .nav-text-link:hover {
|
||||||
color: #38BDF8;
|
color: #38BDF8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 分隔符样式 */
|
/* 分隔符样式 */
|
||||||
.nav-right .nav-divider {
|
.nav-right .nav-divider {
|
||||||
color: rgba(148, 163, 184, 0.3);
|
color: rgba(148, 163, 184, 0.3);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* nav-shadow 样式和 hover 效果 */
|
/* nav-shadow 样式和 hover 效果 */
|
||||||
.nav-shadow {
|
.nav-shadow {
|
||||||
background: rgba(15, 23, 42, 0.8) !important;
|
background: rgba(15, 23, 42, 0.8) !important;
|
||||||
backdrop-filter: blur(20px);
|
backdrop-filter: blur(20px);
|
||||||
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
||||||
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.4);
|
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.4);
|
||||||
transition: background 0.3s ease !important;
|
transition: background 0.3s ease !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-shadow:hover {
|
.nav-shadow:hover {
|
||||||
background: rgba(15, 23, 42, 0.95) !important;
|
background: rgba(15, 23, 42, 0.95) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 导航文字颜色 */
|
/* 导航文字颜色 */
|
||||||
.nav-menu .nav-item {
|
.nav-menu .nav-item {
|
||||||
color: #E5E7EB;
|
color: #E5E7EB;
|
||||||
border-bottom-color: transparent;
|
border-bottom-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu .nav-item:hover {
|
.nav-menu .nav-item:hover {
|
||||||
color: #38BDF8;
|
color: #38BDF8;
|
||||||
border-bottom-color: #38BDF8;
|
border-bottom-color: #38BDF8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right .control {
|
.nav-right .control {
|
||||||
color: #E5E7EB;
|
color: #E5E7EB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right .control:hover {
|
.nav-right .control:hover {
|
||||||
color: #38BDF8;
|
color: #38BDF8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
@@ -115,123 +115,123 @@ header:hover {
|
|||||||
|
|
||||||
/* 登录注册容器 */
|
/* 登录注册容器 */
|
||||||
.no-login {
|
.no-login {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: stretch !important;
|
align-items: stretch !important;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
gap: 0 !important;
|
gap: 0 !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
flex-direction: row !important;
|
flex-direction: row !important;
|
||||||
visibility: visible !important;
|
visibility: visible !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮 - 渐变背景样式,撑满高度 */
|
/* 注册按钮 - 渐变背景样式,撑满高度 */
|
||||||
.no-login .btn.btn-normal#registBtn {
|
.no-login .btn.btn-normal#registBtn {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
gap: 8px !important;
|
gap: 8px !important;
|
||||||
padding: 0 36px !important;
|
padding: 0 36px !important;
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%) !important;
|
background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%) !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
border-left: 1px solid rgba(148, 163, 184, 0.15) !important;
|
border-left: 1px solid rgba(148, 163, 184, 0.15) !important;
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
transition: all 0.3s ease !important;
|
transition: all 0.3s ease !important;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
min-width: 120px !important;
|
min-width: 120px !important;
|
||||||
flex-shrink: 0 !important;
|
flex-shrink: 0 !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮文字 - 确保始终在最上层 */
|
/* 注册按钮文字 - 确保始终在最上层 */
|
||||||
.no-login .btn.btn-normal#registBtn .regist-text {
|
.no-login .btn.btn-normal#registBtn .regist-text {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮图标 */
|
/* 注册按钮图标 */
|
||||||
.no-login .btn.btn-normal#registBtn::before {
|
.no-login .btn.btn-normal#registBtn::before {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
background-image: url('/web/BlackFruit-web/assets/img/header/zhuce.png');
|
background-image: url('/web/BlackFruit-web/assets/img/header/zhuce.png');
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮悬停效果背景层 */
|
/* 注册按钮悬停效果背景层 */
|
||||||
.no-login .btn.btn-normal#registBtn::after {
|
.no-login .btn.btn-normal#registBtn::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: linear-gradient(135deg, #6366F1 0%, #38BDF8 100%);
|
background: linear-gradient(135deg, #6366F1 0%, #38BDF8 100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-login .btn.btn-normal#registBtn:hover {
|
.no-login .btn.btn-normal#registBtn:hover {
|
||||||
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
|
box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-login .btn.btn-normal#registBtn:hover::after {
|
.no-login .btn.btn-normal#registBtn:hover::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册按钮图标 - 默认隐藏 (桌面端) */
|
/* 注册按钮图标 - 默认隐藏 (桌面端) */
|
||||||
.regist-icon {
|
.regist-icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
下拉菜单优化 - 确保高层级
|
下拉菜单优化 - 确保高层级
|
||||||
============================================ */
|
============================================ */
|
||||||
.nav-cont {
|
.nav-cont {
|
||||||
background: rgba(15, 23, 42, 0.95);
|
background: rgba(15, 23, 42, 0.95);
|
||||||
backdrop-filter: blur(20px);
|
backdrop-filter: blur(20px);
|
||||||
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
||||||
z-index: 99998 !important;
|
z-index: 99998 !important;
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item-box {
|
.nav-item-box {
|
||||||
background: rgba(30, 41, 59, 0.8);
|
background: rgba(30, 41, 59, 0.8);
|
||||||
border: 1px solid rgba(148, 163, 184, 0.15);
|
border: 1px solid rgba(148, 163, 184, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item-box:hover {
|
.nav-item-box:hover {
|
||||||
background: rgba(30, 41, 59, 1);
|
background: rgba(30, 41, 59, 1);
|
||||||
border-color: rgba(56, 189, 248, 0.3);
|
border-color: rgba(56, 189, 248, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item-box .title {
|
.nav-item-box .title {
|
||||||
color: #E5E7EB;
|
color: #E5E7EB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item-box .desc {
|
.nav-item-box .desc {
|
||||||
color: rgba(148, 163, 184, 0.8);
|
color: rgba(148, 163, 184, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
@@ -239,83 +239,84 @@ header:hover {
|
|||||||
============================================ */
|
============================================ */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
/* 调整导航栏高度 */
|
/* 调整导航栏高度 */
|
||||||
.nav-header {
|
.nav-header {
|
||||||
height: 56px;
|
height: 56px;
|
||||||
padding: 0 0 0 16px !important;
|
padding: 0 0 0 16px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure Right Container handles children alignment */
|
/* Ensure Right Container handles children alignment */
|
||||||
.nav-right {
|
.nav-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 隐藏桌面端导航菜单 */
|
/* 隐藏桌面端导航菜单 */
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 隐藏桌面端的文档、控制台链接 */
|
/* 隐藏桌面端的文档、控制台链接 */
|
||||||
.nav-desktop-link {
|
.nav-desktop-link {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logo 缩小 - 但比之前稍微大一点 */
|
/* Logo 缩小 - 但比之前稍微大一点 */
|
||||||
.nav-icon img {
|
.nav-icon img {
|
||||||
max-height: 48px;
|
max-height: 48px;
|
||||||
width: auto;
|
width: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */
|
/* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */
|
||||||
.no-login .btn.btn-normal#registBtn {
|
.no-login .btn.btn-normal#registBtn {
|
||||||
padding: 0 25px !important;
|
padding: 0 25px !important;
|
||||||
font-size: 15px !important;
|
font-size: 15px !important;
|
||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
border-left: none !important;
|
border-left: none !important;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
max-height: 56px;
|
max-height: 56px;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
gap: 2px !important;
|
gap: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端注册按钮图标显示 */
|
/* 移动端注册按钮图标显示 */
|
||||||
.no-login .btn.btn-normal#registBtn .regist-icon {
|
.no-login .btn.btn-normal#registBtn .regist-icon {
|
||||||
display: block;
|
display: block;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端注册按钮图标隐藏 - 旧样式移除 */
|
/* 移动端注册按钮图标隐藏 - 旧样式移除 */
|
||||||
.no-login .btn.btn-normal#registBtn::before {
|
.no-login .btn.btn-normal#registBtn::before {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 移动端登录按钮(如果需要显示) */
|
/* 移动端登录按钮(如果需要显示) */
|
||||||
.no-login .nav-text-link#loginBtn {
|
.no-login .nav-text-link#loginBtn {
|
||||||
padding: 0 12px !important;
|
padding: 0 12px !important;
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 确保汉堡菜单按钮显示 - 无背景,只显示白色横线 */
|
/* 确保汉堡菜单按钮显示 - 无背景,只显示白色横线 */
|
||||||
.mobile-menu-toggle {
|
.mobile-menu-toggle {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================
|
/* ============================================
|
||||||
移动端侧边栏
|
移动端侧边栏
|
||||||
============================================ */
|
============================================ */
|
||||||
@@ -420,24 +421,31 @@ header:hover {
|
|||||||
/* ============================================
|
/* ============================================
|
||||||
Mobile Menu Toggle Button
|
Mobile Menu Toggle Button
|
||||||
============================================ */
|
============================================ */
|
||||||
|
/* 桌面端隐藏汉堡菜单 */
|
||||||
.mobile-menu-toggle {
|
.mobile-menu-toggle {
|
||||||
display: flex !important;
|
display: none;
|
||||||
gap: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
margin-right: 0;
|
|
||||||
order: 3;
|
|
||||||
padding: 0;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-menu-toggle .mobile-menu-icon {
|
/* 移动端显示并设置样式 */
|
||||||
width: 100%;
|
@media (max-width: 768px) {
|
||||||
height: 100%;
|
.mobile-menu-toggle {
|
||||||
display: block;
|
display: flex !important;
|
||||||
}
|
gap: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 0;
|
||||||
|
order: 3;
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-toggle .mobile-menu-icon {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user