
.nutrition-header {
    ion-card {
      margin-bottom: 16px;
      border-radius: 12px;
    }
  
    .phase-card {
      ion-badge {
        --background: #{var(--ion-color-primary)};
        margin-left: 8px;
      }
    }
  
    .training-metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      padding: 12px 0;
  
      .metric {
        text-align: center;
        background: rgba(255,255,255,0.9);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        
        .value {
          font-size: 28px;
          font-weight: 700;
          color: #2D3142;
          font-family: 'Segoe UI', system-ui;
          text-shadow: 0 2px 4px rgba(0,0,0,0.1);
          
          // 添加单位样式
          &::after {
            content: 'kcal';
            font-size: 14px;
            color: #4A5568;
            display: block;
            margin-top: 4px;
          }
        }
  
        &.highlight .value::after {
          content: '组数'; // 训练项目单位
        }
  
        .label {
          font-size: 14px;
          color: #718096;
          margin-top: 8px;
          letter-spacing: 0.5px;
        }
      }
  
      .progress-ring {
        width: 80px;
        height: 80px;
        font-size: 18px;
        border: 3px solid #EDF2F7;
      }
    }
  
    .macro-grid {
      display: grid;
      gap: 12px;
  
      .macro-item {
        padding: 16px;
        border-radius: 8px;
        
        &.protein { background: rgba(255, 107, 53, 0.1); }
        &.carbs { background: rgba(76, 175, 80, 0.1); }
        &.fat { background: rgba(255, 193, 7, 0.1); }
  
        .target {
          font-size: 20px;
          font-weight: bold;
        }
  
        .progress-bar {
          height: 6px;
          background: #eee;
          border-radius: 3px;
          margin: 8px 0;
          
          &::before {
            content: '';
            display: block;
            height: 100%;
            background: currentColor;
            width: var(--progress);
            border-radius: 3px;
          }
        }
      }
    }
  
    .supplement-tip {
      margin-top: 12px;
      display: block;
      font-size: 0.9em;
      color: var(--ion-color-primary);
    }
  }
  
  .restaurant-section {
    h2 {
      font-size: 1.2rem;
      margin: 24px 0 16px;
    }
  
    .restaurant-card {
      background: white;
      border-radius: 12px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
      .cover {
        position: relative;
        img {
          width: 100%;
          height: 160px;
          object-fit: cover;
          border-radius: 12px 12px 0 0;
        }
  
        .match-badge {
          position: absolute;
          top: 8px;
          right: 8px;
        }
      }
  
      .restaurant-info {
        padding: 12px;
  
        .header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 8px;
        }
  
        .tags {
          margin-bottom: 12px;
          ion-chip {
            margin: 2px;
          }
        }
  
        .dish-info {
          display: flex;
          gap: 12px;
  
          .dish-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            
            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
            }
          }
  
          .dish-detail {
            flex: 1;
  
            .price {
              margin-top: 8px;
              display: flex;
              align-items: center;
              gap: 8px;
  
              .original {
                text-decoration: line-through;
                font-size: 0.9em;
              }
            }
          }
        }
      }
    }
  }

  // 响应式调整
  @media (max-width: 480px) {
    .training-metrics {
      grid-template-columns: 1fr;
      gap: 12px;
  
      .value {
        font-size: 24px;
      }
    }  // 修复此处缺少的闭合括号
  }