/* pages/profile/profile.wxss */
.profile-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 0 0 40rpx 0;
}

/* 用户信息头部 */
.profile-header {
  background: #4CAF50;
  padding: 60rpx 40rpx 40rpx 40rpx;
  display: flex;
  align-items: center;
  position: relative;
}

.user-avatar {
  margin-right: 30rpx;
}

.avatar-img {
  width: 120rpx;
  height: 120rpx;
  border-radius: 60rpx;
  background: rgba(255, 255, 255, 0.2);
  border: 4rpx solid rgba(255, 255, 255, 0.3);
}

.user-info {
  flex: 1;
}

.username {
  font-size: 36rpx;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8rpx;
}

.user-role {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

.edit-btn {
  position: absolute;
  top: 60rpx;
  right: 40rpx;
  padding: 20rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.edit-icon {
  font-size: 32rpx;
  color: #fff;
}

/* 功能菜单 */
.menu-section {
  background: #fff;
  margin: 20rpx 0;
  border-radius: 16rpx;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 32rpx 40rpx;
  border-bottom: 1rpx solid #f0f0f0;
  position: relative;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: #f8f8f8;
}

.menu-icon {
  font-size: 36rpx;
  margin-right: 24rpx;
  width: 40rpx;
  text-align: center;
}

.menu-text {
  flex: 1;
  font-size: 32rpx;
  color: #333;
}

.menu-arrow {
  font-size: 28rpx;
  color: #999;
}

/* 退出登录 */
.logout-section {
  margin: 20rpx 0;
  padding: 0 0 40rpx 0;
}

.logout-btn {
  width: 100%;
  height: 88rpx;
  background: #fff;
  border: 2rpx solid #ff4d4f;
  border-radius: 16rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  color: #ff4d4f;
  font-weight: 500;
  margin: 0 0 0 0;
}

.logout-btn:active {
  background: #fff2f0;
}

.logout-icon {
  font-size: 32rpx;
  margin-right: 16rpx;
}

.logout-text {
  font-size: 32rpx;
}

/* 版本信息 */
.version-info {
  text-align: center;
  padding: 40rpx 0;
}

.version-text {
  font-size: 24rpx;
  color: #999;
}



.avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36rpx;
  height: 36rpx;
  background-color: #fff;
  border-radius: 18rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rpx;
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.user-account {
  font-size: 28rpx;
  opacity: 0.9;
  margin-bottom: 6rpx;
}

.user-department {
  font-size: 26rpx;
  opacity: 0.8;
  margin-bottom: 4rpx;
}

.user-position {
  font-size: 26rpx;
  opacity: 0.8;
  margin-bottom: 4rpx;
}

.last-login {
  font-size: 24rpx;
  opacity: 0.7;
}

/* 统计数据 */
.stats-section {
  background-color: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rpx;
}

.stat-item {
  text-align: center;
  padding: 20rpx;
  background-color: #f8f9fa;
  border-radius: 12rpx;
}

.stat-number {
  font-size: 48rpx;
  font-weight: bold;
  color: #2c5aa0;
  margin-bottom: 8rpx;
}

.stat-label {
  font-size: 26rpx;
  color: #666;
}

/* 快捷操作 */
.quick-actions-section {
  background-color: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20rpx;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  border-radius: 12rpx;
  transition: all 0.3s ease;
}

.quick-action-item:active {
  transform: scale(0.95);
}

.quick-action-icon {
  font-size: 40rpx;
  margin-bottom: 8rpx;
}

.quick-action-title {
  font-size: 24rpx;
  color: #333;
  text-align: center;
}

/* 功能菜单 */
.menu-section {
  margin: 25rpx 30rpx;
  background: #ffffff;
  border-radius: 20rpx;
  padding: 35rpx 30rpx;
  box-shadow: 0 8rpx 25rpx rgba(0, 0, 0, 0.08);
  border: 1rpx solid rgba(76, 175, 80, 0.1);
}

.menu-list {
  margin-top: 20rpx;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 28rpx 0;
  border-bottom: 1rpx solid rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background-color: rgba(76, 175, 80, 0.05);
  border-radius: 12rpx;
  margin: 0 -15rpx;
  padding: 28rpx 15rpx;
}

.menu-icon {
  width: 52rpx;
  height: 52rpx;
  margin-right: 28rpx;
  font-size: 40rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-radius: 26rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
}

.menu-content {
  flex: 1;
}

.menu-title {
  font-size: 32rpx;
  color: #2c3e50;
  margin-bottom: 6rpx;
  font-weight: 600;
}

.menu-desc {
  font-size: 26rpx;
  color: #5a6c7d;
  font-weight: 400;
}

.menu-arrow {
  font-size: 28rpx;
  color: #4CAF50;
  font-weight: 600;
}

/* 退出登录 */
.logout-section {
  margin: 25rpx 30rpx;
  padding-bottom: 40rpx;
}

.logout-btn {
  width: 100%;
  background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
  color: white;
  border: none;
  border-radius: 20rpx;
  padding: 35rpx;
  font-size: 34rpx;
  font-weight: 700;
  box-shadow: 0 8rpx 20rpx rgba(244, 67, 54, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.logout-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4rpx 12rpx rgba(244, 67, 54, 0.4);
}

.logout-btn:active::before {
  left: 100%;
}

.menu-desc {
  font-size: 24rpx;
  color: #999;
}

.menu-arrow {
  font-size: 28rpx;
  color: #ccc;
}

/* 退出登录 */
.logout-section {
  padding: 40rpx 20rpx;
}

.logout-btn {
  width: 100%;
  height: 88rpx;
  background-color: #ff4757;
  color: white;
  border: none;
  border-radius: 44rpx;
  font-size: 32rpx;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logout-btn:active {
  background-color: #ff3742;
  transform: scale(0.98);
}
