.profile-section {
  display: flex;
  align-items: center;
  padding: 20px;
  margin: 15px;
  border-radius: 12px;
  background: var(--ion-color-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  
  &.logged-out {
    background: var(--ion-color-light-tint);
    border: 1px dashed var(--ion-color-medium);
  }
  
  &.logged-in {
    background: var(--ion-color-primary-contrast);
    border: 1px solid var(--ion-color-primary-tint);
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    position: relative;
    
    img {
      border: 3px solid var(--ion-color-light-shade);
    }
    
    .status-dot {
      position: absolute;
      bottom: 5px;
      right: 5px;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--ion-color-medium);
      border: 2px solid var(--ion-color-light);
      
      &.online {
        background: var(--ion-color-success);
      }
    }
  }

  .profile-info {
    flex: 1;
    
    .nickname {
      margin: 0 0 5px 0;
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--ion-color-dark);
    }
    
    .tag-container {
      display: flex;
      align-items: center;
      gap: 8px;
      
      .disease-tag {
        font-weight: 500;
      }
      
      .guest-tag {
        opacity: 0.8;
      }
      
      .edit-icon {
        color: var(--ion-color-primary);
        font-size: 1.1rem;
      }
    }
  }
  
  ion-button {
    --border-radius: 20px;
    --padding-start: 16px;
    --padding-end: 16px;
    height: 40px;
    font-weight: 500;
    
    ion-icon {
      font-size: 1.1rem;
    }
  }
}

/* 为未登录状态下的功能列表添加半透明效果 */
ion-list:not(:first-of-type) {
  opacity: 0.9;
  transition: opacity 0.3s ease;
  
  ion-item {
    --background: var(--ion-color-light);
  }
}