376 lines
6.3 KiB
CSS
376 lines
6.3 KiB
CSS
/* 用户个人中心页面样式 */
|
|
.profile-container {
|
|
padding: 20px;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* 页面标题 */
|
|
.page-header {
|
|
margin-bottom: 25px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 1.8rem;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 个人中心内容布局 */
|
|
.profile-content {
|
|
display: flex;
|
|
gap: 30px;
|
|
}
|
|
|
|
/* 左侧边栏 */
|
|
.profile-sidebar {
|
|
flex: 0 0 300px;
|
|
background-color: #f8f9fa;
|
|
border-radius: 8px;
|
|
padding: 25px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* 右侧主要内容 */
|
|
.profile-main {
|
|
flex: 1;
|
|
min-width: 0; /* 防止内容溢出 */
|
|
}
|
|
|
|
/* 用户头像容器 */
|
|
.user-avatar-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
padding-bottom: 25px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
/* 大头像样式 */
|
|
.user-avatar.large {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 50%;
|
|
background-color: #4c84ff;
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
margin-bottom: 15px;
|
|
box-shadow: 0 4px 8px rgba(76, 132, 255, 0.2);
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 1.5rem;
|
|
margin: 10px 0 5px;
|
|
color: #333;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 0.9rem;
|
|
color: #6c757d;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 用户统计信息 */
|
|
.user-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 25px;
|
|
padding-bottom: 25px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
color: #4c84ff;
|
|
line-height: 1;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.85rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
/* 账户信息样式 */
|
|
.account-info {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.account-info .info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 15px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.account-info .info-label {
|
|
color: #6c757d;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.account-info .info-value {
|
|
color: #333;
|
|
text-align: right;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* 选项卡导航样式 */
|
|
.nav-tabs {
|
|
border-bottom: 1px solid #dee2e6;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.nav-tabs .nav-link {
|
|
border: none;
|
|
color: #6c757d;
|
|
padding: 12px 15px;
|
|
margin-right: 5px;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-tabs .nav-link:hover {
|
|
color: #4c84ff;
|
|
border-bottom-color: #4c84ff;
|
|
}
|
|
|
|
.nav-tabs .nav-link.active {
|
|
font-weight: 500;
|
|
color: #4c84ff;
|
|
border-bottom: 2px solid #4c84ff;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.nav-tabs .nav-link i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* 表单区域 */
|
|
.form-section {
|
|
padding: 20px;
|
|
background-color: #f9f9fb;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-section h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
font-size: 1.2rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-weight: 500;
|
|
margin-bottom: 8px;
|
|
color: #333;
|
|
display: block;
|
|
}
|
|
|
|
.form-control {
|
|
height: auto;
|
|
padding: 10px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 0.95rem;
|
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #4c84ff;
|
|
box-shadow: 0 0 0 0.2rem rgba(76, 132, 255, 0.25);
|
|
}
|
|
|
|
.form-text {
|
|
font-size: 0.85rem;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* 表单操作区域 */
|
|
.form-actions {
|
|
margin-top: 25px;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #4c84ff;
|
|
border-color: #4c84ff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #3a70e9;
|
|
border-color: #3a70e9;
|
|
}
|
|
|
|
/* 活动记录选项卡 */
|
|
.activity-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.activity-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.activity-filter label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.activity-filter select {
|
|
width: auto;
|
|
}
|
|
|
|
/* 活动时间线 */
|
|
.activity-timeline {
|
|
padding: 20px;
|
|
background-color: #f9f9fb;
|
|
border-radius: 8px;
|
|
min-height: 300px;
|
|
position: relative;
|
|
}
|
|
|
|
.timeline-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 250px;
|
|
}
|
|
|
|
.timeline-loading p {
|
|
margin-top: 15px;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.timeline-item {
|
|
position: relative;
|
|
padding-left: 30px;
|
|
padding-bottom: 25px;
|
|
border-left: 2px solid #dee2e6;
|
|
}
|
|
|
|
.timeline-item:last-child {
|
|
border-left: none;
|
|
}
|
|
|
|
.timeline-icon {
|
|
position: absolute;
|
|
left: -10px;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background-color: #4c84ff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.timeline-content {
|
|
background-color: white;
|
|
border-radius: 6px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
|
padding: 15px;
|
|
}
|
|
|
|
.timeline-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.timeline-title {
|
|
font-weight: 500;
|
|
color: #333;
|
|
margin: 0;
|
|
}
|
|
|
|
.timeline-time {
|
|
font-size: 0.85rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.timeline-details {
|
|
color: #555;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.timeline-type-login .timeline-icon {
|
|
background-color: #4caf50;
|
|
}
|
|
|
|
.timeline-type-borrow .timeline-icon {
|
|
background-color: #2196f3;
|
|
}
|
|
|
|
.timeline-type-return .timeline-icon {
|
|
background-color: #ff9800;
|
|
}
|
|
|
|
/* 通知样式 */
|
|
.alert {
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.alert-success {
|
|
color: #155724;
|
|
background-color: #d4edda;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.alert-error, .alert-danger {
|
|
color: #721c24;
|
|
background-color: #f8d7da;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 992px) {
|
|
.profile-content {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.profile-sidebar {
|
|
flex: none;
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.user-stats {
|
|
justify-content: space-around;
|
|
}
|
|
}
|