/* src/app/tab5/tab5.page.scss */
.map-container {
    height: 200px;
    background: #e8eaf6;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
    .map-overlay {
      position: relative;
      height: 100%;
    }
  
    .map-grid {
      position: absolute;
      width: 300%;
      height: 300%;
      left: -100%;
      top: -100%;
      background: 
        repeating-linear-gradient(
          90deg,
          transparent 0,
          transparent 49px,
          rgba(0,0,0,0.1) 50px
        ),
        repeating-linear-gradient(
          180deg,
          transparent 0,
          transparent 49px,
          rgba(0,0,0,0.1) 50px
        );
    }
  
    .road {
      position: absolute;
      background: #9fa8da;
      &.horizontal {
        width: 80%;
        height: 6px;
        top: 45%;
        left: 10%;
      }
      &.vertical {
        width: 6px;
        height: 70%;
        left: 50%;
        top: 15%;
      }
    }
  
    .current-location {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      ion-icon {
        font-size: 32px;
        color: #f44336;
      }
    }
  
    .gym-marker {
      position: absolute;
      left: 30%;
      top: 35%;
      ion-icon {
        font-size: 24px;
        color: #673ab7;
      }
    }
  
    .running-path {
      position: absolute;
      width: 40%;
      height: 20%;
      border: 2px dashed #4caf50;
      border-radius: 20px;
      left: 30%;
      top: 60%;
    }
  
    .map-controls {
      position: absolute;
      bottom: 8px;
      right: 8px;
      display: flex;
      gap: 4px;
    }
  }
  
  /* 脉冲动画 */
  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
  }
  .pulse {
    animation: pulse 1.5s infinite;
  }

// 新增顶部工具栏渐变效果
ion-toolbar {
  --background: linear-gradient(135deg, var(--ion-color-primary) 0%, #FF914D 100%);
  --color: white;
  
  ion-title {
    font-weight: 600;
    letter-spacing: 1px;
  }
}

// 优化地图容器视觉效果
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin: 16px 0;
  
  .current-location {
    ion-icon {
      font-size: 32px;
      color: var(--ion-color-primary);
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
  }
}

// 增强数据仪表盘设计
.dashboard {
  .metric-card {
    background: rgba(var(--ion-color-light-rgb), 0.9);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease;
    
    &:active {
      transform: scale(0.98);
    }
    
    .value {
      font-size: 1.8em;
      font-family: 'Segoe UI', system-ui;
      color: var(--ion-color-dark);
      
      small {
        font-size: 0.6em;
        color: var(--ion-color-medium);
      }
    }
    
    &.heart {
      .value {
        color: var(--ion-color-danger);
        text-shadow: 0 2px 4px rgba(255,0,0,0.1);
      }
    }
  }
}

// 训练计划列表美化
ion-list {
  ion-item {
    --padding-start: 8px;
    --border-radius: 12px;
    margin-bottom: 8px;
    
    .progress-ring {
      width: 56px;
      height: 56px;
      border: 3px solid var(--ion-color-light);
      box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
    }
    
    ion-label {
      h3 {
        font-weight: 500;
        letter-spacing: 0.5px;
      }
      
      p {
        color: var(--ion-color-medium);
        font-size: 0.9em;
      }
    }
  }
}

// 控制按钮动效
.control-buttons {
  ion-button {
    transition: all 0.3s ease;
    
    &:active {
      transform: scale(0.95);
    }
  }
}