Files
2025-10-19 23:38:54 +08:00

157 lines
2.6 KiB
Plaintext

/* 员工管理主界面样式 */
.container {
height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40rpx;
}
/* 加载状态样式 */
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.95);
padding: 60rpx;
border-radius: 20rpx;
box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
}
.loading-spinner {
width: 80rpx;
height: 80rpx;
border: 6rpx solid #f3f3f3;
border-top: 6rpx solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 30rpx;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
font-size: 32rpx;
color: #666;
}
/* 主内容样式 */
.main-content {
width: 100%;
max-width: 600rpx;
background: rgba(255, 255, 255, 0.95);
border-radius: 20rpx;
padding: 60rpx;
box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
}
/* 头部信息样式 */
.header {
text-align: center;
margin-bottom: 60rpx;
}
.user-info {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40rpx;
}
.user-avatar {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
margin-right: 30rpx;
border: 4rpx solid #667eea;
}
.user-details {
text-align: left;
}
.user-name {
display: block;
font-size: 36rpx;
font-weight: bold;
color: #333;
margin-bottom: 10rpx;
}
.user-role {
display: block;
font-size: 28rpx;
color: #666;
background: #f0f0f0;
padding: 8rpx 16rpx;
border-radius: 20rpx;
}
.welcome-text {
text-align: center;
}
.welcome {
display: block;
font-size: 32rpx;
color: #333;
margin-bottom: 10rpx;
}
.subtitle {
display: block;
font-size: 26rpx;
color: #666;
}
/* 手动选择按钮样式 */
.manual-buttons {
display: flex;
gap: 30rpx;
margin-bottom: 40rpx;
}
.btn-admin, .btn-employee {
flex: 1;
padding: 25rpx;
border: none;
border-radius: 12rpx;
font-size: 28rpx;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-admin {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
color: white;
}
.btn-employee {
background: linear-gradient(135deg, #4ecdc4, #44a08d);
color: white;
}
.btn-admin:active, .btn-employee:active {
transform: translateY(2rpx);
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.2);
}
/* 跳转信息样式 */
.redirect-info {
text-align: center;
padding: 30rpx;
background: #f8f9fa;
border-radius: 12rpx;
}
.redirect-text {
font-size: 26rpx;
color: #666;
}