/* 个人信息页面样式 */ .profile-container { min-height: 100vh; background: #f5f5f5; } /* 顶部导航栏样式 */ .profile-header { display: flex; justify-content: space-between; align-items: center; padding: 40rpx 30rpx; background: white; border-bottom: 1rpx solid #e0e0e0; } .header-left { display: flex; align-items: center; gap: 20rpx; } .back-icon { width: 60rpx; height: 60rpx; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 36rpx; color: #333; } .back-arrow { font-weight: bold; } .profile-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; background: #3498db; display: flex; align-items: center; justify-content: center; font-size: 40rpx; color: white; } .profile-info { display: flex; flex-direction: column; } .profile-name { font-size: 32rpx; font-weight: bold; color: #333; margin-bottom: 5rpx; } .profile-role { font-size: 24rpx; color: #666; background: #f0f0f0; padding: 4rpx 12rpx; border-radius: 12rpx; align-self: flex-start; } .header-right { display: flex; gap: 20rpx; } .refresh-btn { padding: 15rpx 25rpx; border: none; border-radius: 8rpx; font-size: 26rpx; background: #3498db; color: white; cursor: pointer; transition: all 0.3s ease; } .refresh-btn:active { transform: translateY(1rpx); } /* 加载状态样式 */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; } .loading-spinner { width: 60rpx; height: 60rpx; border: 4rpx solid #f3f3f3; border-top: 4rpx solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20rpx; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { font-size: 28rpx; color: #666; } /* 主内容区域样式 */ .profile-content { padding: 30rpx; } /* 卡片通用样式 */ .info-card, .stats-card { background: white; border-radius: 15rpx; padding: 30rpx; margin-bottom: 30rpx; box-shadow: 0 4rpx 15rpx rgba(0, 0, 0, 0.1); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30rpx; } .card-title { font-size: 32rpx; font-weight: bold; color: #333; } .edit-btn, .history-btn { padding: 10rpx 20rpx; border: 1rpx solid #3498db; border-radius: 6rpx; font-size: 24rpx; background: transparent; color: #3498db; cursor: pointer; } .edit-btn:active, .history-btn:active { background: #3498db; color: white; } /* 信息网格样式 */ .info-grid { display: grid; grid-template-columns: 1fr; gap: 20rpx; } .info-item { display: flex; justify-content: space-between; align-items: center; padding: 15rpx 0; border-bottom: 1rpx solid #f0f0f0; } .info-item:last-child { border-bottom: none; } .info-label { font-size: 28rpx; color: #666; } .info-value { font-size: 28rpx; color: #333; font-weight: 500; } /* 统计网格样式 */ .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20rpx; } .stat-item { background: #f8f9fa; padding: 25rpx; border-radius: 10rpx; text-align: center; transition: transform 0.3s ease; } .stat-item:active { transform: translateY(-2rpx); } .stat-icon { font-size: 40rpx; margin-bottom: 10rpx; } .employee-icon { color: #3498db; } .order-icon { color: #e74c3c; } .warehouse-icon { color: #f39c12; } .stat-value { display: block; font-size: 32rpx; font-weight: bold; color: #333; margin-bottom: 5rpx; } .stat-label { font-size: 24rpx; color: #666; } /* 功能按钮区域样式 */ .action-buttons { display: flex; flex-direction: column; gap: 20rpx; margin-top: 40rpx; } .action-btn { padding: 25rpx; border: none; border-radius: 10rpx; font-size: 30rpx; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .contact-btn { background: #27ae60; color: white; } .logout-btn { background: #e74c3c; color: white; } .action-btn:active { transform: translateY(1rpx); opacity: 0.9; } /* 响应式调整 */ @media (max-width: 750rpx) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .profile-header { padding: 30rpx 20rpx; } .profile-content { padding: 20rpx; } }