/* 头部样式 */
.recipe-header {
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: white;
  margin-bottom: 16px;
  
  ion-toolbar {
    --background: white;
    --border-width: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    .header-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--ion-color-dark);
    }
  }
  
  .recipe-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--ion-color-dark);
    margin: 0;
    flex: 1;
  }
  
  .recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    
    .meta-item {
      display: flex;
      align-items: center;
      font-size: 0.9rem;
      color: var(--ion-color-medium);
      --padding-start: 0;
      --inner-padding-end: 0;
      --min-height: 32px;
      flex: 1 0 calc(33.333% - 8px);
      
      ion-icon {
        margin-right: 4px;
        font-size: 1rem;
      }
      
      ion-label {
        font-size: 0.85rem;
      }
    }
  }
  
  .recipe-rating {
    display: flex;
    align-items: center;
    
    ion-icon {
      font-size: 1.2rem;
      margin-right: 2px;
    }
    
    .rating-text {
      font-size: 0.9rem;
      color: var(--ion-color-medium);
      margin-left: 4px;
    }
  }
}

/* 内容区域 */
.recipe-content {
  --background: #f8f9fa;
  padding-bottom: 80px;
}

/* 菜品图片 */
.recipe-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  
  .recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .image-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 80px;
    
    ion-chip {
      --background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(5px);
    }
  }
}

/* 菜品信息部分 */
.recipe-info-section {
  padding: 16px;
  background: white;
  margin-bottom: 16px;
}

.recipe-description {
  font-size: 0.95rem;
  color: var(--ion-color-medium);
  line-height: 1.6;
  margin: 0;
}

/* 卡片部分 */
.section-card {
  margin: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  ion-card-header,
  .section-header {
    padding-bottom: 0;
  }
  
  ion-card-title,
  .section-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--ion-color-dark);
    
    ion-icon,
    .section-icon {
      margin-right: 8px;
      color: var(--ion-color-primary);
    }
  }
}

/* 食材列表 */
.ingredient-list {
  .ingredient-item {
    --padding-start: 0;
    --inner-padding-end: 0;
    --min-height: 48px;
    border-bottom: 1px dashed var(--ion-color-light-shade);
    
    &:last-child {
      border-bottom: none;
    }
    
    .bullet-icon {
      color: var(--ion-color-primary);
      font-size: 0.6rem;
    }
    
    .ingredient-name {
      font-size: 0.95rem;
    }
    
    .ingredient-amount {
      font-weight: 500;
    }
  }
}

/* 步骤列表 */
.step-list {
  .step-item {
    --padding-start: 0;
    --inner-padding-end: 0;
    --min-height: auto;
    align-items: flex-start;
    padding: 12px 0;
    
    .step-number {
      width: 28px;
      height: 28px;
      background: var(--ion-color-primary);
      color: white;
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
    }
    
    .step-text,
    ion-label p {
      font-size: 0.95rem;
      color: var(--ion-color-medium);
      line-height: 1.6;
      white-space: normal;
      margin: 0;
    }
  }
}

/* 底部按钮 */
.action-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, white 50%, transparent 100%);
  
  .cook-button {
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --padding-top: 16px;
    --padding-bottom: 16px;
    font-weight: 600;
  }
}

/* 响应式调整 */
@media (min-width: 768px) {
  .recipe-image-container {
    height: 350px;
  }
  
  .recipe-info-section {
    padding: 24px;
  }
  
  .section-card {
    margin: 24px auto;
    max-width: 800px;
  }
  
  .action-buttons {
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
  }
}