回滚2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-12-25 19:49:05 +08:00
parent dcb9d84510
commit f1e4e52514

View File

@@ -214,91 +214,58 @@
移动端导航优化 移动端导航优化
============================================ */ ============================================ */
/* ============================================ /* 移动端响应式优化 */
Huawei Style Mobile Header (Light Theme) @media (max-width: 768px) {
============================================ */
/* Global Mobile Background - White */ /* 调整导航栏高度 */
#index { #index .nav-header {
background: #ffffff !important; height: 56px;
} padding: 0 16px;
}
/* Header Container - White Background, Shadow */ /* 隐藏桌面端导航菜单 */
#index .nav-header { #index .nav-menu {
height: 60px; display: none !important;
padding: 0 16px; }
background: #ffffff !important;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: space-between;
}
/* Hidden Desktop Elements */ /* 隐藏桌面端的文档、控制台链接 */
#index .nav-menu, #index .nav-desktop-link {
#index .nav-desktop-link, display: none !important;
#index .no-login, }
/* Hide desktop login/register buttons */
#index .login-in {
display: none !important;
}
/* Logo Branding - Auto Dark Mode Adjustment if needed, assuming logo is distinct */ /* Logo 缩小 */
#index .nav-icon { #index .nav-icon img {
flex: 0 0 auto; max-height: 32px;
} }
#index .nav-icon img { /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */
height: 28px; #index .no-login .btn.btn-normal#registBtn {
max-height: 28px; padding: 0 24px !important;
/* If logo is white text, invert it for white background */ font-size: 15px !important;
filter: invert(1) brightness(0.2); min-width: auto !important;
} border-radius: 0 !important;
border-left: none !important;
height: 56px !important;
margin-right: -16px !important;
}
/* Mobile User Icon - Black */ /* 移动端注册按钮图标隐藏 */
#index .mobile-user-btn { #index .no-login .btn.btn-normal#registBtn::before {
display: flex !important; display: none;
align-items: center; }
justify-content: center;
width: 32px;
height: 32px;
color: #333333;
margin-right: 12px;
}
#index .mobile-user-btn svg { /* 移动端登录按钮(如果需要显示) */
width: 24px; #index .no-login .nav-text-link#loginBtn {
height: 24px; padding: 0 12px !important;
stroke-width: 1.5; font-size: 14px !important;
} }
/* Hamburger Menu - Black Lines */ /* 确保汉堡菜单按钮显示 - 无背景,只显示白色横线 */
#index .mobile-menu-toggle { #index .mobile-menu-toggle {
display: flex !important; display: flex !important;
background: transparent !important; background: transparent !important;
border: none !important; border: none !important;
width: 32px; }
height: 32px;
padding: 0;
justify-content: center;
align-items: center;
}
#index .mobile-menu-toggle span {
background-color: #333333 !important;
height: 2px;
width: 20px;
margin: 3px 0;
}
/* Nav Right Container (User + Menu) */
#index .nav-right {
display: flex;
align-items: center;
margin-left: auto;
/* Push to right */
width: auto;
}
} }
/* 首页下拉菜单优化 - 确保高层级 */ /* 首页下拉菜单优化 - 确保高层级 */