ion-header {
  ion-toolbar {
    --background: linear-gradient(135deg, var(--ion-color-primary) 0%, #2e7d32 100%);
    
    .logo {
      width: 40px;
      height: 40px;
      margin-right: 10px;
      border: 2px solid white;
    }
    
    .location {
      font-size: 12px;
      opacity: 0.8;
      
      ion-icon {
        font-size: 14px;
        vertical-align: middle;
        margin-right: 4px;
      }
    }
  }
}

.voice-search-container {
  text-align: center;
  margin: 20px 0;
  
  .voice-button {
    --padding-start: 0;
    --padding-end: 0;
    --border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    
    .voice-button-inner {
      position: relative;
      width: 100%;
      height: 100%;
      
      .mic-icon {
        font-size: 36px;
        position: relative;
        z-index: 2;
        color: var(--ion-color-primary);
      }
      
      .ripple {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(var(--ion-color-primary-rgb), 0.1);
        border-radius: 50%;
        transform: scale(0);
        opacity: 1;
        z-index: 1;
      }
    }
    
    &.activated {
      .ripple {
        animation: ripple 1.5s infinite;
      }
    }
  }
  
  .voice-hint {
    margin-top: 10px;
    color: var(--ion-color-medium);
    font-size: 14px;
  }
}

.feature-grid {
  margin: 20px 0;
  
  .feature-button {
    --padding-start: 0;
    --padding-end: 0;
    height: 100%;
    
    .feature-icon {
      position: relative;
      width: 60px;
      height: 60px;
      margin: 0 auto 8px;
      background: rgba(var(--ion-color-primary-rgb), 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      
      ion-icon {
        font-size: 28px;
        color: var(--ion-color-primary);
      }
    }
    
    ion-label {
      font-size: 12px;
      white-space: normal;
    }
  }
}

/* 新增农业知识卡片样式 */
.knowledge-cards {
  margin: 15px 0;
  
  ion-col {
    padding: 5px;
  }
  
  ion-card {
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    
    &:active {
      transform: scale(0.98);
    }
    
    img {
      height: 100px;
      object-fit: cover;
      width: 100%;
    }
    
    ion-card-header {
      padding: 10px 16px 0;
      
      ion-card-title {
        font-size: 16px;
        font-weight: bold;
        color: var(--ion-color-dark);
      }
    }
    
    ion-card-content {
      padding: 10px 16px 16px;
      font-size: 14px;
      color: var(--ion-color-medium);
      line-height: 1.4;
    }
  }
}

.info-stream {
  background: transparent;
  
  .weather-alert {
    --background: rgba(var(--ion-color-danger-rgb), 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    
    ion-icon {
      font-size: 24px;
    }
  }
  
  .agri-news {
    --padding-start: 0;
    --inner-padding-end: 0;
    margin-bottom: 12px;
    
    ion-thumbnail {
      width: 80px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .news-meta {
      font-size: 12px;
      color: var(--ion-color-medium);
      
      ion-icon {
        font-size: 12px;
        vertical-align: middle;
        margin: 0 4px 0 8px;
      }
    }
  }
}

ion-footer {
  ion-tab-bar {
    border-radius: 20px 20px 0 0;
    padding-top: 8px;
    --background: white;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    
    ion-tab-button {
      --color: var(--ion-color-medium);
      --color-selected: var(--ion-color-primary);
      
      ion-icon {
        font-size: 24px;
      }
    }
  }
}

/* 动画效果 */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 害虫图标动画 */
.pest-animation {
  animation: bounce 1s infinite alternate;
}

/* 水滴动画 */
.water-animation {
  position: relative;
  &::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(var(--ion-color-primary-rgb), 0.5);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: drip 2s infinite;
  }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@keyframes drip {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(20px) scale(0.5); opacity: 0; }
}