
ion-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.searchbar-container {
  display: flex; /* 使用 Flexbox 布局 */
  align-items: center; /* 垂直居中 */
  gap: 2px; /* 搜索框和按钮之间的间距 */
}

.searchbar-container ion-searchbar {
  flex: 1; /* 搜索框占满剩余空间 */
}

.searchbar-container ion-button {
  flex-shrink: 0; /* 按钮宽度保持固定 */
  padding: 0 16px; /* 增加按钮的左右内边距 */
  font-size: 16px; /* 调整按钮字体大小 */
}
// 轮播图区域
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 16px;
  border: none;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #717171;
} 
//



// .inquery{
//   width:100%;
//   height:100px;
//   // --background-color: #fd0000;
//   padding: 5px 0px;
//   box-sizing: border-box;
//   margin: 0px 0px;
//   ion-button{
//       width: 100%;
//       height: 100%;
//       display: inline-block;
//   }
// }

// .inquery-ai{
//   height: 100%;
//   width: 48%;
//   display: inline-block;
//   margin: 0;
//   padding: 0;
// }

// .inquery-ai img{
//   width:50%;
//   height: 100%;
//   margin: 0;
//   padding: 0;
//   border-radius: 10px;
//   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
// }

// .inquery-human{
//   height: 100%;
//   width: 48%;
//   display: inline-block;
//   margin-left: 2%;
//   padding: 0;
// }

// .inquery-human img{
//   width:50%;
//   height: 100%;
//   margin: 0;
//   padding: 0;
//   border-radius: 10px;
//   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
// }

.mid-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 15px;
  margin-right: 15px;

}

.under_slide {
  display: flex;
  align-items: center;
  text-align: right;
  font-size: smaller;
}




ion-item {
  margin-bottom: 12px; /* 增加医生卡片之间的间距 */
  padding: 12px; /* 调整卡片内边距 */
  border-radius: 8px; /* 圆角设计 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加卡片阴影 */
  background-color: #ffffff; /* 卡片背景色 */
}

ion-thumbnail {
  width: 60px; /* 缩略图宽度 */
  height: 60px; /* 缩略图高度 */
  border-radius: 50%; /* 圆形头像 */
}

.doctor-info {
  margin-left: 12px; /* 缩略图与文字的间距 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.doctor-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #666; /* 字体颜色 */
}

// 功能区
.function-area {
    margin: 16px 0;
    padding: 0 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 960px; /* 最大宽度 */
  }
  
  .function-row {
    display: flex; // 使用 Flexbox 布局
    justify-content: space-between; // 按空间均匀分布
    align-items: center; // 垂直居中
    overflow-x: auto; // 允许水平滚动
    scroll-snap-type: x mandatory; // 启用滚动捕捉
    -webkit-overflow-scrolling: touch; // 平滑滚动
    padding: 16px 0;
  
    .function-item {
      flex: 1 0 20%; // 每个项目占 20% 宽度
      min-width: 0; // 确保项目可以缩小
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      scroll-snap-align: start; // 滚动时对齐
  
      .icon {
        font-size: 24px;
        margin-bottom: 8px;
      }
  
      .label {
        font-size: 14px;
        color: #333;
      }
    }
  }


  // 
  .clinic-container {
    padding: 16px;
    background: #fff;
  }
  
  .clinic-header {
    margin-bottom: 12px;
    
    h2 {
      font-size: 16px;
      font-weight: 500;
      margin: 0 0 4px 0;
    }
    
    p {
      font-size: 12px;
      color: #999;
      margin: 0;
    }
  }
  
  .ads-container {
    display: flex;
    gap: 12px;
  }
  
  .ad-card {
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    
    .ad-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .text-content {
      h3 {
        font-size: 14px;
        font-weight: 500;
        margin: 0 0 4px 0;
      }
      
      .price {
        color: #FF6B6B;
        font-size: 12px;
        margin: 0 0 4px 0;
      }
      
      .description {
        color: #666;
        font-size: 12px;
        margin: 0 0 8px 0;
      }
      
      ion-button {
        --padding-start: 8px;
        --padding-end: 8px;
        --padding-top: 4px;
        --padding-bottom: 4px;
        height: 24px;
        font-size: 12px;
        
        &::part(native) {
          border-radius: 12px;
        }
      }
    }
    
    .image-container {
      width: 60px;
      height: 60px;
      overflow: hidden;
      border-radius: 30px;
      
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }


  //
  .service-container {
    padding: 16px;
    background: #fff;
  }
  
  .service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
  
    .title-section {
      h2 {
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 4px 0;
      }
  
      p {
        font-size: 12px;
        color: #999;
        margin: 0;
      }
    }
  
    ion-button {
      --color: #999;
      font-size: 12px;
    }
  }
  
  .service-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .large-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  
    .service-card {
      border-radius: 12px;
      padding: 16px;
      height: 120px;
  
      .card-content {
        display: flex;
        height: 100%;
        
        .text-content {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
  
          h3 {
            font-size: 14px;
            font-weight: 500;
            margin: 0 0 4px 0;
          }
  
          p {
            font-size: 12px;
            color: #666;
            margin: 0 0 8px 0;
          }
  
          ion-button {
            --padding-start: 8px;
            --padding-end: 8px;
            height: 24px;
            font-size: 12px;
          }
        }
  
        .image-container {
          position: relative;
          width: 60px;
          
          img {
            width: 100%;
            height: auto;
          }
  
          ion-badge {
            position: absolute;
            top: 0;
            right: 0;
            font-size: 10px;
          }
        }
      }
    }
  }
  
  .small-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  
    .service-card {
      background: #f5f5f5;
      border-radius: 12px;
      padding: 12px;
      height: 100px;
  
      .card-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
  
        .text-content {
          h3 {
            font-size: 14px;
            font-weight: 500;
            margin: 0 0 4px 0;
          }
  
          p {
            font-size: 12px;
            color: #666;
            margin: 0;
          }
        }
  
        .image-container {
          text-align: right;
          
          img {
            width: 40px;
            height: 40px;
            object-fit: cover;
          }
        }
      }
    }
  }