@charset "utf-8";

.crumb{
    margin-bottom: 0 !important;
}
/* 政务地图 */
.zwdt-main{
    margin-bottom: 60px;
}

.zwdt-container {
    display: flex;
    width: 100%;
    height: 690px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.zwdt-info p{
    padding: 10px 0 20px 0;
    font-size: 16px;
    color: #666;
    line-height: 24px;
}

.zwdt-info p::before{
    content: '';
    display: inline-block;
    width: 3px;
    height: 24px;
    background: #236cc2;
    margin-right: 19px;
    vertical-align: top;
}

.zwdt-left {
    width: 400px;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
}

#searchInput {
    flex: 1;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #dcdee2;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    width: 50px;
    height: 36px;
    margin-left: 10px;
    border: none;
    background: #2D8CF0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 16px;
    height: 16px;
    background: url(../images/search_icon.png) no-repeat center;
    background-size: contain;
}

.menu-box-list {
    flex: 1 0 0;
}

.menu-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.menu-title {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #17233d;
    background: #f8f8f9;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.menu-arrow {
    position: relative;
    width: 16px;
    height: 16px;
}

.menu-arrow::before,
.menu-arrow::after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: all 0.3s ease;
}

.menu-arrow::before {
    width: 16px;
    height: 2px;
    top: 7px;
    left: 0;
}

.menu-arrow::after {
    width: 2px;
    height: 16px;
    top: 0;
    left: 7px;
}

.menu-box.collapsed .menu-arrow::after {
    transform: scaleY(1);
}

.menu-box:not(.collapsed) .menu-arrow::after {
    transform: scaleY(0);
}

.menu-box.collapsed .menu-list {
    height: 0;
    flex: 0 0 0;
    padding: 0;
    overflow: hidden;
}

.menu-list {
    overflow-y: auto;
    padding: 10px 0;
    height: 0;
    flex: 1 0 0;
    /* max-height: 500px; */
    transition: all 0.3s ease;
}

/* 自定义滚动条样式 */
.menu-list::-webkit-scrollbar {
    width: 6px;
}

.menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.menu-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item-number {
    width: 26px;
    height: 26px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.menu-item-number.acceptance {
    background: #2D8CF0;
}

.menu-item-number.reading {
    background: #19be6b;
}

/* 自定义标记点样式 */
.custom-marker {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.custom-marker.acceptance {
    background-image: url(../images/marker-acceptance.png);
}

.custom-marker.reading {
    background-image: url(../images/marker-reading.png);
}

.menu-item-content {
    flex: 1;
}

.menu-item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.menu-item-info {
    font-size: 14px;
    color: #666;
}

.zwdt-right {
    flex: 1;
    position: relative;
}

#mapContainer {
    width: 100%;
    height: 100%;
}

/* 侧边栏切换按钮 - 默认隐藏 */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
}

.sidebar-toggle span,
.sidebar-toggle span::before,
.sidebar-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #2D8CF0;
    border-radius: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.sidebar-toggle span::before {
    top: -7px;
}

.sidebar-toggle span::after {
    top: 7px;
}

.sidebar-open .sidebar-toggle{
    left: 310px;
}

.sidebar-open .sidebar-toggle span {
    background: transparent;
}

.sidebar-open .sidebar-toggle span::before {
    transform: rotate(45deg);
    top: 0;
    background: #f44336;
}

.sidebar-open .sidebar-toggle span::after {
    transform: rotate(-45deg);
    top: 0;
    background: #f44336;
}

@media (max-width: 1500px) {
    .zwdt-container {
        height: 700px;
    }
    
    .zwdt-left {
        width: 350px;
    }
}

@media (max-width: 1280px) {
    .zwdt-container {
        height: 600px;
    }
    
    .zwdt-left {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .zwdt-main {
        position: relative;
        overflow-x: hidden;
    }
    
    .zwdt-container {
        position: relative;
        height: 600px;
        max-height: none;
        min-height: 500px;
        box-shadow: none;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .zwdt-left {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: 998;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .sidebar-open .zwdt-left {
        left: 0;
    }
    
    .zwdt-right {
        width: 100%;
        height: 100%;
    }
    
    #mapContainer {
        width: 100%;
        height: 100%;
    }
    
    .menu-box-list {
        overflow-y: auto;
        flex: 1;
    }
    
    .menu-list {
        max-height: none;
    }
    
    .search-box {
        padding: 15px;
        background: #fff;
        z-index: 1;
    }
    
    .menu-title {
        padding: 12px 15px;
        z-index: 1;
    }
    
    .menu-item {
        padding: 10px 15px;
    }
    
    /* 添加遮罩层 */
    .sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
    }
}

@media (max-width: 768px) {
    
    .zwdt-left {
        width: 280px;
        left: -280px;
    }
    
    .search-box {
        padding: 12px;
    }
    
    #searchInput {
        height: 34px;
        padding: 0 10px;
    }
    
    .search-btn {
        width: 40px;
        height: 34px;
    }
    
    .menu-title {
        top: 58px;
    }
}

@media (max-width: 431px) {
    
    body:not(.nores) .zwdt-main .container{
        padding: 0;
        width: 100% !important;
    }

    .zwdt-container {
        height: 450px;
        min-height: 450px;
    }
    
    .zwdt-left {
        width: 250px;
        left: -250px;
    }
    
    .menu-item-title {
        font-size: 14px;
    }
    
    .menu-item-info {
        font-size: 12px;
    }
    
    .menu-item-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .sidebar-toggle {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
    }
    .zwdt-main{
        margin-bottom: 20px;
    }
    .sidebar-open .sidebar-toggle{
        left: 260px;
    }
    
} 