abcca337e7
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
192 lines
3.0 KiB
CSS
192 lines
3.0 KiB
CSS
/* Phase 1 Header 样式 + 手机端适配 */
|
|
.xx-top-nav {
|
|
height: 68px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
background: rgba(255, 255, 255, 0.86);
|
|
backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid rgba(226, 232, 240, 0.92);
|
|
}
|
|
|
|
.xx-top-nav-inner {
|
|
max-width: 1440px;
|
|
margin: 0 auto;
|
|
height: 100%;
|
|
padding: 0 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.xx-brand {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
font-weight: 900;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: #0f172a;
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.xx-logo {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(135deg, #818cf8, #4f46e5);
|
|
display: grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
box-shadow: 0 12px 26px rgba(79, 70, 229, 0.24);
|
|
font-size: 20px;
|
|
}
|
|
|
|
/* 桌面端导航链接 */
|
|
.xx-nav-links {
|
|
display: flex;
|
|
gap: 16px;
|
|
color: #64748b;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.xx-nav-links button {
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: #64748b;
|
|
padding: 6px 4px;
|
|
font-size: 14px;
|
|
font-weight: 750;
|
|
transition: color 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.xx-nav-links button:hover {
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.xx-nav-links button.active {
|
|
color: #4f46e5;
|
|
}
|
|
|
|
/* 右侧区域 */
|
|
.xx-right-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.xx-user-menu {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
color: #0f172a;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.xx-avatar {
|
|
width: 34px;
|
|
height: 34px;
|
|
background: #eef2ff;
|
|
color: #4338ca;
|
|
}
|
|
|
|
/* 汉堡菜单按钮(默认隐藏) */
|
|
.xx-hamburger {
|
|
display: none;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
color: #64748b;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* 手机端导航抽屉内容 */
|
|
.xx-mobile-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.xx-mobile-nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
color: #334155;
|
|
border-radius: 8px;
|
|
transition: background 0.2s;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.xx-mobile-nav-item:hover {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.xx-mobile-nav-item.active {
|
|
background: #eef2ff;
|
|
color: #4f46e5;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.xx-mobile-nav-icon {
|
|
font-size: 18px;
|
|
width: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ===== 手机端响应式 ===== */
|
|
@media (max-width: 768px) {
|
|
.xx-top-nav {
|
|
height: 56px;
|
|
}
|
|
|
|
.xx-top-nav-inner {
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.xx-brand-text {
|
|
display: none;
|
|
}
|
|
|
|
/* 隐藏桌面端导航 */
|
|
.xx-nav-links {
|
|
display: none;
|
|
}
|
|
|
|
/* 显示汉堡菜单 */
|
|
.xx-hamburger {
|
|
display: block;
|
|
}
|
|
|
|
/* 隐藏用户名 */
|
|
.xx-username {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 小屏幕平板:导航文字缩小 */
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.xx-nav-links {
|
|
gap: 8px;
|
|
}
|
|
|
|
.xx-nav-links button {
|
|
font-size: 13px;
|
|
}
|
|
}
|