.user-card {
    background: linear-gradient(135deg, #4a90e2 0%, #63b8ff 100%);
    border-radius: 16px;
    color: white;
    
    .user-avatar {
      width: 48px;
      height: 48px;
      margin-bottom: 8px;
    }
  }
  
  .data-card {
    position: relative;
    border-radius: 12px;
    
    .metric-item {
      padding: 12px;
      
      &.abnormal {
        background: #fff3f3;
        border-radius: 8px;
      }
    }
    
    .metric-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .metric-value {
      font-size: 24px;
      font-weight: bold;
      
      .unit {
        font-size: 14px;
        color: var(--ion-color-medium);
      }
    }
    
    .reference {
      font-size: 12px;
    }
  }
  
  .task-card {
    ion-item {
      --padding-start: 0;
      --inner-padding-end: 0;
    }
    
    ion-progress-bar {
      flex: 1;
      margin-left: 16px;
    }
    
    .recommended {
      background: #f5f9ff;
      border-radius: 8px;
    }
  }
  
  .chart-container {
    height: 200px;
    padding: 16px;
  }

  .doctor-card {
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 16px;
  max-width: 400px;
}

.card-content {
  display: flex;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.doctor-avatar {
  margin-right: 16px;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-info {
  flex: 1;
}

.doctor-name {
  margin: 0 0 4px 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.doctor-title {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.doctor-specialty {
  margin-bottom: 8px;
}

.doctor-desc {
  margin: 8px 0 0 0;
  font-size: 0.85rem;
  color: #34495e;
  line-height: 1.4;
}

.consult-btn {
  --border-radius: 0 0 15px 15px;
  font-weight: bold;
  --padding-top: 12px;
  --padding-bottom: 12px;
}
// 健康数据卡片样式
.health-data-card {
  margin-top: 16px;
  
  .data-section {
    margin: 8px 0;
    box-shadow: none;
    
    ion-card-header {
      padding-bottom: 0;
      
      ion-card-title {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        
        ion-icon {
          margin-right: 8px;
        }
      }
    }
  }
  
  .loading-spinner {
    display: flex;
    justify-content: center;
    padding: 16px;
  }
  
  ion-badge {
    font-weight: normal;
  }
}
.metric-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--ion-color-light);
  margin-bottom: 8px;
  
  &.abnormal {
    background: rgba(var(--ion-color-warning-rgb), 0.1);
  }

  .metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }

  .metric-value {
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0;
    
    .unit {
      font-size: 14px;
      font-weight: normal;
      margin-left: 4px;
    }
  }

  .reference, .time {
    display: block;
    font-size: 12px;
    margin-top: 4px;
  }

  .time {
    color: var(--ion-color-medium-shade);
  }
}
.today-data-card {
  margin-bottom: 16px;
  
  ion-item {
    --padding-start: 0;
    --inner-padding-end: 0;
  }
  
  .no-data {
    padding: 16px;
    text-align: center;
    color: var(--ion-color-medium);
  }
}

// 添加数据模态框样式
.add-data-modal {
  ion-segment {
    margin-bottom: 16px;
  }
  
  ion-button[type="submit"] {
    margin-top: 24px;
  }
}