
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC";
    
}
::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}
/* 兼容 Firefox */
html {
    scrollbar-width: none;
}
body {
    margin: 0;
    padding: 0;
    background-color: #EFEEF3;
    background: linear-gradient(168deg, #FCF1FB 0%, #FFDED4 50.64%, #F9D2FF 99.39%);
    background-repeat: no-repeat;
    /* 如果希望渐变填充整个视口 */
    background-attachment: fixed;
    background-size: cover; /* 或 contain */
    -ms-overflow-style: none;
}
/* 确保页面可以滚动 */
html, body {
    overflow-y: scroll;
    height: 100%;
}
.container {
    margin-bottom: 50px;
}
.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 10px;
}
.search-container .search-bar {
    background-color: #fff;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 3;
}
.search-container .links {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin-left: 10px;
    margin-top: 5px;
    /* color: #666;
    float: left; */
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    /* padding: 5px; */
    font-size: 14px;
}

.search-container .search-icon {
    margin-right: 10px;
    /* margin-top: 5px; */
    color: #666;
    float: left;
}
.search-container .links .search-link-img {
    flex:1;  
    img{
        /* --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
        --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
        box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
        object-fit: cover;
        border-color: #fffc;
        border-width: 1px;  */
        border-radius: 10px;
        width: 30px;
        height: 30px;
    }
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px;
}

.filter-button {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-style: none;
    background-color: #fff;
    /* border: 1px solid #ddd; */
    color: #333;
    flex: 1 1 20%; /* 每个项占据25%的宽度，即四列 */
    box-sizing: border-box; /* 确保padding和border不会影响宽度 */
}

.filter-button.active {
    background-color: #FFB84D;
    color: white;
}

.filter-container { 
    position: relative;
}

.filter-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 10px 0;
    padding: 5px;
    justify-content: space-between;
    border-radius: 7px;
    background-color: #fff;
}

.dropdown-item {
    /* border: 1px solid #ddd; */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
} 
.dropdown-item .title span{
    color: #999;
    font-size: 12px;
} 
.dropdown-item .title .name{
    margin-right: 1px;
} 
.dropdown-item select{
        border-style: none;
        /* -webkit-appearance: none;  
        -moz-appearance: none;
        appearance: none; */
        /* 然后你可以添加自己的样式 */
        background-color: #fff;
        font-size: 12px;
        color: #ccc;
}


.dropdown-arrow {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.dropdown-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

.service-list {
    display: grid;
    padding: 10px;
    grid-template-columns: 1fr 1fr; /* 创建两列 */
    gap: 10px; /* 列与列之间的间距 */
    /* margin-bottom: 50px; */
}

.service-card {
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-bottom: 5px;
    /* margin-right: 5px; */
    margin-bottom: 10px;
}
.service-card .avatar {
    position: relative;
}
.service-card .avatar img {
    border-radius: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card .top{
    position: absolute;
    top: 0px;
    left: 0px;
    color: #E1A581;
    display: inline-block;
    
}
.service-card .top::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: orange; /* 背景色为橙色 */
    z-index: -1; /* 确保伪元素在图标之下 */
}
.service-card .top span{
    font-size: 40px;
    z-index: 1; /* 确保图标在伪元素之上 */
}

.service-info {
    padding: 10px;
}

.service-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.service-id {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.service-id .num {
    background-color: #FFB84D;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
}

.service-id span.tag {
    color: #fff;
    padding: 2px 8px 3px;
    border-radius: 15px;
    font-size: 12px;
    span{
        background: none;
        /* height: 10px;
        width: 10px; */
        margin-right: 3px;
        color: #fff;
        padding: 0;
        font-size: 12px;
    }
}
.service-id span.recommend {
    background-color: #0FD4B4;
}
.service-id span.wangpai {
    background-color: #FFA736;
}
.service-id span.hongpai {
    background-color: #FF8E59;
}
.service-id span.haoping {
    background-color: #F27CFF;
}
.service-id span.xinren {
    background-color: #0FD4B4;
}

.location {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #9D9D9D;
}

.location i {
    margin-right: 5px;
    color: #f0f0f0;
    span{
        color: #9D9D9D;
    }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.tags .tag {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    /* background-color: #f8d7da; */
    /* color: #721c24; */
}

.price-tag {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #333;
    opacity: 0.5;
    color: white;
    padding: 3px 8px;
    border-radius: 0 0 0 10px;
    font-size: 12px;
    .qianbao{
        color: #FBD97C;
    }
}

.distance {
    position: absolute;
    bottom: 5px;
    left: 0px;
    background-color: #333;
    opacity: 0.5;
    color: white;
    padding: 3px 8px;
    border-radius: 0 5px 0 10px;
    font-size: 12px;
}

.top-tip {
    position: absolute;
    top: 100px;
    left: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 100;
    transform: translateX(-50%);
    width: 300px;
    text-align: center;
}

.top-tip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e74c3c;
}

.action-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    /* background-color: #e74c3c; */
    background: linear-gradient(to right, #FE756E, #FB5679);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    span{
        font-size: 24px;
    }
}
.ml-10{
    margin-left: 10px;
}


.top-tip {
    position: absolute;
    top: 100px;
    left: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    z-index: 100;
    transform: translateX(-50%);
    width: 300px;
    text-align: center;
}

.top-tip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e74c3c;
}

/* 提示弹窗容器 */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* 提示弹窗样式 */
.toast {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 0.6;
}



.footer {
    position: fixed;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-size: 12px;
    padding: 5px;
    bottom: 0px;
    width: 100%;
}
.footer a {
    text-decoration: none;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 32px 2px;
}
.footer a:hover,.footer a.active { 
    color: #FFA500;
}
.footer img {
    width: 20px;
    height: 20px;
    margin-bottom: 5px;
}
.dropdown-container{    
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    margin-top: 5px;
    display: none;
    position: absolute;
    width: 100%;
    z-index: 9999;
    font-size: 12px;
}
.area-container .area-item{ 
    display: flex;
    padding: 10px;
    justify-content: space-between;
}
.tags-container .tags-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 30px;
}

.tags-container .tags-list .tag-item {
    padding: 5px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #F7F8FC;
    color: #333;
  }

.tags-container .tags-list .tag-item.active {
    background-color: #ffaa00;
    color: white;
  }

.tags-container .tags-list .tag-item:hover:not(.active) {
    background-color: #f0f0f0;
  }

.tags-container .tags-buttons{
    display: flex;
    justify-content: space-between;
    padding: 20px 15px 0;
    background-color: #fff;
    border-radius: 15px;
    /* margin-top: 15px; */
}

.tags-container .tags-buttons .tags-button {
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 14px;
    /* font-weight: bold; */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .tags-container .tags-buttons .reset-btn {
    border: 2px solid #ffaa00;
    color: #ffaa00;
    background-color: transparent;
  }

  .tags-container .tags-buttons .confirm-btn {
    background-color: #ffaa00;
    color: white;
    border: 0px;
  }


  .recommend-container .recommend-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 30px;
}

.recommend-container .recommend-list .recommend-item {
    padding: 5px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #F7F8FC;
    color: #333;
  }

.recommend-container .recommend-list .recommend-item.active {
    background-color: #ffaa00;
    color: white;
  }

.recommend-container .recommend-list .recommend-item:hover:not(.active) {
    background-color: #f0f0f0;
  }