/* Header 样式 */ | |
.header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 10px 20px; | |
background-color: #6c3e28; /* 深棕色背景 */ | |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
} | |
/* Logo 和网站名称 */ | |
.logo-and-name { | |
display: flex; | |
align-items: center; | |
} | |
.logo { | |
height: 40px; | |
margin-right: 10px; | |
} | |
.site-name { | |
font-size: 32px; | |
font-weight: bold; | |
color: #fbf2e3; /* 柔和淡米色字体 */ | |
} | |
/* 用户头像和消息中心 */ | |
.user-and-message { | |
display: flex; | |
align-items: center; | |
} | |
.user-avatar { | |
height: 50px; | |
width: 50px; | |
border-radius: 50%; | |
margin-right: 10px; | |
} | |
.message-center { | |
font-size: 24px; | |
color: #fbf2e3; | |
cursor: pointer; | |
transition: color 0.3s ease; | |
} | |
.message-center:hover { | |
color: #eecfc1; /* 清透粉 hover */ | |
} | |
/* 导航栏样式 */ | |
.nav { | |
display: flex; | |
justify-content: center; | |
background-color: #fffaf7; /* 粉米底 */ | |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); | |
border-bottom: 2px solid #e2cfc3; | |
} | |
/* 每个导航项 */ | |
.nav-item { | |
padding: 14px 12px; | |
text-decoration: none; | |
color: #6b4f3b; /* 主文字棕色 */ | |
font-size: 18px; | |
font-weight: 500; | |
text-align: center; | |
border-radius: 8px; | |
transition: background-color 0.3s, color 0.3s, transform 0.3s ease; | |
position: relative; | |
} | |
.nav-item:hover { | |
background-color: #f3ded7; /* 柔粉 hover 背景 */ | |
color: #4b3325; | |
transform: scale(1.05); | |
} | |
/* 选中状态 */ | |
.nav-item.active { | |
background-color: #eecfc1; | |
color: #3c271b; | |
font-weight: bold; | |
border-radius: 16px; | |
padding: 4px 12px; | |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); | |
transform: scale(1.1); | |
line-height: 40px; | |
} | |
/* 新手指南按钮 */ | |
.guide-button { | |
display: flex; | |
align-items: center; | |
background-color: #eecfc1; /* 清透粉底色 */ | |
color: #4e342e; /* 深棕文字 */ | |
border: none; | |
border-radius: 20px; | |
padding: 6px 12px; | |
font-size: 16px; | |
font-weight: 500; | |
cursor: pointer; | |
transition: background-color 0.3s ease, transform 0.2s ease; | |
} | |
.guide-button:hover { | |
background-color: #f3ded7; /* 更柔和 hover */ | |
transform: scale(1.05); | |
} | |
.guide-button span { | |
user-select: none; | |
} |