/* 左侧侧边栏 */
.sidebar {
    box-sizing: border-box;
    width: 25%; /* 桌面宽度 */
    max-width: 488px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    position: relative;
}
/* 左侧侧边栏 */
.flopyz{
    padding: 15px;
}
/* 搜索栏 */
#search-bar {
    padding: 20px;
    background-color: #fff;
    background: #e8e2d5;
}
 
#search-input {
    width: 100%;
    padding: 8px;
    font-size: 1.8rem;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}
 
.search-input:focus {
    outline: none;
}
 
/* 分类按钮样式 */
 
.category-menu {
    margin-bottom: 10px;
}
 
.category-btn {
    padding: 8px 12px;
    margin-right: 2px;
    border-radius: 4px;
    cursor: pointer;
}
.category-btn .icon {
    margin-bottom: 15px; /* 图标与文字间距 */
  }
.category-btn:hover {
   color: #bd1a2d;
}
 
.location-list {
    margin-top: 10px;
}
 
.location-item {
    padding: 10px 0;
    display: flex;
    gap: 20px;
    padding-left: 10px;
}
.location-item img{
    margin-top: 5px;
}
.location-item p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 30px;
}
.location-item p strong{
    font-weight: normal;
    color: #bd1a2d;
    font-size: 1.8rem;
}
/* 列表样式 */
.result-list {
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
}
 
.result-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
 
.result-item .title {
    font-weight: bold;
    font-size: 14px;
}
 
.result-item .address,
.result-item .phone {
    font-size: 12px;
    color: #666;
}
.yqlja{
    margin-top: 0px;
}
/* 热线样式 */
.hotline {
    position: absolute;
    bottom: 10px;
    right: 20px;
}
 
.hotline-number {
    color: #f03c3c;
    font-weight: bold;
}
 
/* 地图容器样式 */
#map {
    flex: 1;
    width: calc(100% - 350px);
    height: 100%;
}
 
/*自适应*/
#app-container {
    display: flex;
    height: 80vh;
    overflow: hidden;
}
 
 
 
 
/* 筛选图标 */
#filter-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}
 
.filter-icon {
    width: 75px;
    text-align: center;
    cursor: pointer;
    font-size: 1.8rem;
}
 
.filter-icon i {
    font-size: 24px;
    color: #888;
}
 
.filter-icon.active{
    color: #bd1a2d;
}
 
/* 地点列表 */
#location-list {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    margin-bottom: 40px;
}
 
.location-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
   
}
.location-item.active{
    background:#f5f5f5;
}
.location-item:hover {
    background-color: #f5f5f5;
}
 
/* 地图容器 */
.map-container {
    flex: 1;
    min-width: 0;
}
.type_name{
    line-height: 50px;
    color: #ffffff;
    font-size: 2rem;
    background: url('/lsswszf/resource/img/type_name.png');
    background-size: 100%;
    padding-left: 11%;
}
 .more{
 float: right;
 width: 15%;
 
}
.more a{
    font-size: 18px;
    display: block;
    display: none;
    text-align: center;
}
 .more>a.on{
    display: block;
}
.type_box{
    margin-bottom: 10px;
}
/* 响应式样式 */
@media (max-width: 1024px) {
    #sidebar {
        width: 30%;
    }
}
 
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: 50%; /* 手机端：侧边栏占据顶部一半 */
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        transform: translateY(0); /* 默认展开 */
        max-width: 100%;
    }
    #location-list{
        margin-bottom: 10px;
    }
    #app-container {
        position: relative;
        flex-direction: column;
    }
    #map{
        width: 100%;
    }
    .hotline{
        display: none;
    }
}
 
/* 隐藏/显示侧边栏（适用于更复杂的交互） */
#sidebar.hidden {
    transform: translateY(-100%);
}
 
 
/*样式更新*/