// 自定义搜索栏样式
.custom-searchbar {
    padding: 0 10px !important;
    transform: scale(0.9);
  }
  
  .section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ion-color-primary);
    padding-left: 0;
  }
  
  // 资讯卡片样式
  .news-card {
    position: relative;
    width: 95%;
    margin: 10px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
    .news-tag {
      position: absolute;
      top: 10px;
      left: 10px;
      padding: 4px 12px;
      border-radius: 15px;
      color: white;
      font-size: 12px;
      z-index: 2;
    }
  
    .news-image {
      height: 150px;
      object-fit: cover;
    }
  
    .news-title {
      font-size: 1.1rem;
      font-weight: bold;
      margin-top: 8px;
    }
  
    .news-summary {
      color: #666;
      font-size: 0.9rem;
      line-height: 1.4;
    }
  
    .news-footer {
      margin-top: 10px;
      font-size: 0.8rem;
      color: #999;
      display: flex;
      justify-content: space-between;
    }
  }
  
  // 工具卡片样式
  .tools-grid {
    padding: 0;
  
    .tool-card {
      height: 120px;
      margin: 5px;
      text-align: center;
      
      .tool-icon {
        font-size: 2.5rem;
        margin-top: 10px;
      }
  
      .tool-title {
        font-size: 1rem;
        margin: 5px 0;
      }
  
      .tool-description {
        font-size: 0.8rem;
        color: #666;
        margin: 0;
      }
    }
  }
  
  // 互助社区样式
  .topic-card {
    .topic-tag {
      background: var(--ion-color-primary);
      color: white;
      padding: 4px 12px;
      border-radius: 0 0 10px 10px;
      position: absolute;
      top: 0;
      left: 20px;
      font-size: 12px;
    }
  
    .user-avatar {
      width: 40px;
      height: 40px;
    }
  
    .topic-title {
      font-size: 1.1rem;
    }
  
    .topic-preview {
      color: #666;
      font-size: 0.9rem;
      line-height: 1.4;
      margin: 10px 0;
    }
  
    .topic-stats {
      ion-badge {
        margin-right: 10px;
        padding: 8px;
        font-weight: normal;
        
        ion-icon {
          vertical-align: middle;
          margin-right: 4px;
        }
      }
    }
  }
  
  .action-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
  }