/* PC端样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --van-search-input-height: 25px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    /*overflow: hidden;*/
}

#app {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color: #f0f0f0;*/
}

/* PC端主容器 */
.pc-container {
    width: 1200px;
    max-width: 100vw;
    height: 736px;
    max-height: 100vh;
    position: relative;
    background-color: #e8f4fd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 背景地图 */
.background-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#backgroundMap {
    width: 100%;
    height: 100%;
}

/* 移动端页面容器 */
.mobile-page-container {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 375px;
    height: calc(100% - 60px);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部搜索栏 - 保持原始rem样式转换为px */
.search-header {
    height: 40px; /* 4rem = 40px */
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.search-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px; /* 1.2rem = 12px */
}

.search-container .van-dropdown-menu {
    flex-shrink: 0;
    margin-right: 8px; /* 0.8rem = 8px */
}

.search-container .van-dropdown-menu__bar {
    background: transparent;
    box-shadow: none;
    border-radius: 20px; /* 2rem = 20px */
    height: 25px; /* 2.5rem = 25px */
    padding: 0 12px; /* 1.2rem = 12px */
}

.search-box {
    flex: 1;
}

.search-box .van-search {
    padding: 0;
}

.search-box .van-search__content {
    background-color: #f5f5f5;
    border-radius: 20px; /* 2rem = 20px */
    height: 25px; /* 2.5rem = 25px */
}

.search-box .van-field__right-icon {
    margin: 1px 0 0 -2.4px; /* 0.1rem 0 0 -0.24rem */
}

.van-dropdown-menu__title:after {
    border-width: 5px; /* 0.5rem = 5px */
}

/* 列表容器(去掉抽屉效果) */
.list-container {
    flex: 1;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.list-content {
    flex: 1;
    overflow-y: auto;
}

/* 列表项样式 - 保持与原始移动端一致 */
.list-item {
    padding: 12px 16px; /* 1.2rem 1.6rem = 12px 16px */
    border-bottom: 1px solid #f5f5f5; /* 0.1rem = 1px */
}

.list-item .van-cell__value {
    flex: 1;
}

.item-icon {
    width: 40px; /* 4rem = 40px */
    height: 40px; /* 4rem = 40px */
    /* background-color: #f0f8ff; */
    /* border-radius: 8px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px; /* 1.2rem = 12px */
    flex-shrink: 0;
}

.item-icon .van-icon {
    font-size: 40px; /* 2rem = 20px */
    color: #1989fa;
}

.item-content {
    flex: 1;
    cursor: pointer;
}

.van-cell__title,
.van-cell__value {
    overflow: hidden;
}

.item-title {
    font-size: 14px; /* 1.4rem = 14px */
    font-weight: 500;
    color: #333;
    margin-bottom: 4px; /* 0.4rem = 4px */
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-address {
    font-size: 12px; /* 1.2rem = 12px */
    color: #999;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-address .van-icon {
    flex-shrink: 0;
    font-size: 12.8px; /* 1.28rem = 12.8px */
}

/* Vant组件样式补充 */
.van-cell__title,
.van-cell__value {
    overflow: hidden;
}

/* 其他重要的Vant样式 */
.van-field__right-icon {
    margin: 1px 0 0 -2.4px; /* 0.1rem 0 0 -0.24rem */
}

/* 图例容器(移动端页面右侧) */
.legend-container {
    position: absolute;
    top: 30px;
    left: 420px;
    display: flex;
    /* flex-direction: column; */
    z-index: 15;
    max-height: 500px;
    overflow-x: hidden;
    gap: 8px;
    max-width: 750px;
}
.legend-container:hover {
    overflow-x: auto;
}
/* 针对 WebKit 内核浏览器（Chrome、Safari 等）自定义滚动条 */
.legend-container::-webkit-scrollbar {
    height: 10px; /* 设置 x 轴滚动条高度 */
}
.legend-item {
    pointer-events: auto;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    color: #999;
    height: 35px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.legend-item.active {
    border: 1px solid #E90E5F;
}
.legend-item.active .legend-text{
    color: #E90E5F;
}
.legend-item:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon img {
    width: 20px;
    height: auto;
}

.legend-text {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

/* 详情弹窗(地图右侧中间) */
.detail-modal {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: 350px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 20;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}

.modal-header .van-icon {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.modal-header .van-icon:hover {
    color: #666;
}

.modal-content {
    padding: 0;
    max-height: 450px;
    overflow-y: auto;
}

/* 详情内容样式调整为px单位 */
.container-info-head {
    display: flex;
    padding: 20px 15px;
}

.container-info-head-main {
    width: 240px;
    flex: 1;
}

.container-info-head-main-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.container-info-head-main-address {
    margin-top: 10px;
    font-size: 14px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.container-info-head-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 60px;
    gap: 6px;
    flex-shrink: 0;
}

.container-info-head-nav img {
    width: 40px;
    height: auto;
    cursor: pointer;
}

.container-info-head-nav span {
    font-size: 12px;
    font-weight: bold;
    color: #EA206A;
}

.container-info-line {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.container-info-line img {
    width: 300px;
    max-width: 100%;
}

.container-info-service {
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.container-info-service:last-child {
    border-bottom: none;
}

.container-info-service .service-title {
    color: #EA206A;
    font-weight: 500;
}

/* 滚动条样式 */
.list-content::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.legend-container::-webkit-scrollbar {
    width: 4px;
}

.list-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.legend-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.list-content::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.legend-container::-webkit-scrollbar-thumb {
    background: #e4e4e7;
    border-radius: 2px;
}

/*.list-content::-webkit-scrollbar-thumb:hover,*/
/*.modal-content::-webkit-scrollbar-thumb:hover,*/
/*.legend-container::-webkit-scrollbar-thumb:hover {*/
/*    background: #a8a8a8;*/
/*}*/

/* 响应式调整 */
/* @media (max-width: 1300px) {
    .pc-container {
        width: 95vw;
        height: 70vh;
    }
    
    .mobile-page-container {
        width: 320px;
        height: 500px;
    }
    
    .detail-modal {
        width: 300px;
        right: 30px;
    }
} */