291 lines
6.3 KiB
CSS
291 lines
6.3 KiB
CSS
/* 核心成员详情页专属样式 */
|
||
.member-detail-banner {
|
||
height: 200px;
|
||
position: relative;
|
||
overflow: hidden;
|
||
margin-bottom: 40px;
|
||
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(images/member-banner.jpg) center/cover no-repeat;
|
||
transition: background 0.3s ease;
|
||
}
|
||
body.night-mode .member-detail-banner {
|
||
background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url(images/member-banner-night.jpg) center/cover no-repeat;
|
||
}
|
||
.member-detail-banner-text {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
text-align: center;
|
||
color: #fff;
|
||
z-index: 10;
|
||
}
|
||
.member-detail-banner-text h1 {
|
||
font-size: 28px;
|
||
margin-bottom: 8px;
|
||
letter-spacing: 1px;
|
||
}
|
||
.member-detail-banner-text p {
|
||
font-size: 16px;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
/* 详情内容容器 - 关键修改:改为弹性布局实现3/4 + 1/4分栏 */
|
||
.member-detail-container {
|
||
display: flex; /* 新增:弹性布局 */
|
||
gap: 24px; /* 新增:内容区和侧边栏间距 */
|
||
background: #fff;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 12px rgba(22,93,255,0.08);
|
||
padding: 24px;
|
||
margin-bottom: 60px;
|
||
}
|
||
body.night-mode .member-detail-container {
|
||
background-color: #2C3036;
|
||
box-shadow: 0 2px 12px rgba(0,0,0,0.3);
|
||
}
|
||
|
||
/* 新增:核心成员详情主内容区(占3/4宽度) */
|
||
.member-main-content {
|
||
flex: 3; /* 3/4宽度 */
|
||
}
|
||
|
||
/* 新增:其他成员侧边栏(占1/4宽度) */
|
||
.member-sidebar {
|
||
flex: 1; /* 1/4宽度 */
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
/* 成员基础信息(头像+姓名+身份) */
|
||
.member-basic {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 24px;
|
||
margin-bottom: 24px;
|
||
padding-bottom: 24px;
|
||
border-bottom: 1px solid #F2F3F5;
|
||
}
|
||
body.night-mode .member-basic {
|
||
border-bottom-color: #373B41;
|
||
}
|
||
.member-detail-avatar {
|
||
width: 150px;
|
||
height: 150px;
|
||
border-radius: 4px;
|
||
overflow: hidden;
|
||
background-color: #F2F3F5;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: #86909C;
|
||
font-size: 16px;
|
||
}
|
||
body.night-mode .member-detail-avatar {
|
||
background-color: #373B41;
|
||
color: #C0C4CC;
|
||
}
|
||
.member-detail-avatar img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
.member-detail-info h3 {
|
||
font-size: 20px;
|
||
color: #000;
|
||
margin-bottom: 8px;
|
||
font-weight: 600;
|
||
}
|
||
body.night-mode .member-detail-info h3 {
|
||
color: #fff;
|
||
}
|
||
.member-detail-info p {
|
||
font-size: 14px;
|
||
color: #4E5969;
|
||
}
|
||
body.night-mode .member-detail-info p {
|
||
color: #E5E6EB;
|
||
}
|
||
|
||
/* 详情内容板块 */
|
||
.member-section {
|
||
margin-bottom: 20px;
|
||
}
|
||
.member-section h4 {
|
||
font-size: 16px;
|
||
color: #165DFF;
|
||
margin-bottom: 12px;
|
||
padding-left: 8px;
|
||
border-left: 3px solid #165DFF;
|
||
}
|
||
.member-section p,
|
||
.member-section li {
|
||
font-size: 14px;
|
||
color: #4E5969;
|
||
line-height: 1.8;
|
||
margin-bottom: 8px;
|
||
}
|
||
body.night-mode .member-section p,
|
||
body.night-mode .member-section li {
|
||
color: #E5E6EB;
|
||
}
|
||
.member-section ul {
|
||
padding-left: 20px;
|
||
list-style: disc;
|
||
}
|
||
.member-section a {
|
||
color: #165DFF;
|
||
text-decoration: underline;
|
||
}
|
||
.member-section a:hover {
|
||
color: #0E42D2;
|
||
}
|
||
|
||
.back-link {
|
||
display: inline-block;
|
||
color: #165DFF;
|
||
font-size: 14px;
|
||
text-align: right;
|
||
text-decoration: none;
|
||
margin: 0 0 24px 0;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.back-link:hover {
|
||
text-decoration: underline;
|
||
color: #0E48D9;
|
||
}
|
||
|
||
/* 夜间模式适配 */
|
||
body.night-mode .back-link {
|
||
color: #4080FF;
|
||
}
|
||
body.night-mode .back-link:hover {
|
||
color: #82AEFF;
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* 其他成员样式调整 - 适配侧边栏布局 */
|
||
.other-members {
|
||
margin: 0; /* 移除原有margin,适配侧边栏 */
|
||
padding: 20px;
|
||
background-color: #f9fafb;
|
||
border-radius: 8px;
|
||
border: 1px solid #f2f3f5;
|
||
height: fit-content; /* 自适应内容高度 */
|
||
}
|
||
body.night-mode .other-members {
|
||
background-color: #2C3036;
|
||
border-color: #373B41;
|
||
}
|
||
|
||
/* 其他成员标题 */
|
||
.other-members-title {
|
||
font-size: 16px;
|
||
color: #165DFF;
|
||
margin-bottom: 12px;
|
||
padding-left: 8px;
|
||
border-left: 3px solid #165DFF;
|
||
font-weight: 600;
|
||
}
|
||
body.night-mode .other-members-title {
|
||
color: #4080FF;
|
||
border-left-color: #4080FF;
|
||
}
|
||
|
||
/* 其他成员列表 */
|
||
.other-members-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10px;
|
||
}
|
||
|
||
/* 推荐成员项样式 */
|
||
.recommend-item {
|
||
display: inline-block;
|
||
padding: 8px 16px;
|
||
background-color: #fff;
|
||
color: #165DFF;
|
||
text-decoration: none;
|
||
font-size: 14px;
|
||
border-radius: 6px;
|
||
border: 1px solid #e5e6eb;
|
||
transition: all 0.2s ease;
|
||
width: 100%; /* 新增:侧边栏内成员项占满宽度 */
|
||
text-align: center; /* 新增:文字居中 */
|
||
box-sizing: border-box; /* 新增:盒模型适配 */
|
||
}
|
||
body.night-mode .recommend-item {
|
||
background-color: #373B41;
|
||
color: #4080FF;
|
||
border-color: #4E5969;
|
||
}
|
||
|
||
.recommend-item:hover {
|
||
background-color: #165DFF;
|
||
color: #fff;
|
||
border-color: #165DFF;
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 2px 8px rgba(22, 93, 255, 0.15);
|
||
}
|
||
body.night-mode .recommend-item:hover {
|
||
background-color: #4080FF;
|
||
color: #fff;
|
||
border-color: #4080FF;
|
||
}
|
||
|
||
/* 无推荐成员提示(容错) */
|
||
.other-members-empty {
|
||
font-size: 14px;
|
||
color: #4E5969;
|
||
padding: 8px 0;
|
||
text-align: center;
|
||
}
|
||
body.night-mode .other-members-empty {
|
||
color: #E5E6EB;
|
||
}
|
||
|
||
/* 移动端适配 */
|
||
@media (max-width: 768px) {
|
||
.member-detail-banner {
|
||
height: 150px;
|
||
}
|
||
.member-detail-banner-text h1 {
|
||
font-size: 22px;
|
||
}
|
||
/* 移动端恢复单列布局 */
|
||
.member-detail-container {
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
.member-basic {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 16px;
|
||
}
|
||
.member-detail-avatar {
|
||
width: 120px;
|
||
height: 120px;
|
||
}
|
||
|
||
.back-link {
|
||
font-size: 12px;
|
||
margin-bottom: 16px;
|
||
padding-left: 14px;
|
||
}
|
||
|
||
.other-members {
|
||
padding: 16px;
|
||
margin: 20px 0 15px;
|
||
}
|
||
.other-members-list {
|
||
gap: 8px;
|
||
}
|
||
.recommend-item {
|
||
padding: 6px 12px;
|
||
font-size: 12px;
|
||
border-radius: 4px;
|
||
width: auto; /* 移动端恢复自适应宽度 */
|
||
}
|
||
} |