* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* 硬件加速优化，解决360卡顿 */
    transform: translateZ(0);
}
/* 地图容器 全屏核心样式 */
#container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /*z-index: 1;*/
    transform: translateZ(0);
    will-change: transform;
/*    z-index: 9999 !important;
    pointer-events: auto !important;*/
}

/* 点位加载遮罩样式 */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0f4c81;
}

    /* 加载失败文字样式（接口报错时用） */
    .map-loading.error {
        color: #c0392b;
        line-height: 1.8;
        padding: 0 20px;
        text-align: center;
    }

/* 公众号悬浮框 */
.public-account {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1001;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

    .close-btn:hover {
        background-color: #e5e6eb;
        color: #666;
    }

.public-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.qrcode-box {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    margin: 0 auto 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.public-desc {
    font-size: 12px;
    color: #666;
}

.restore-public {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    color: #1677ff;
    display: none;
}

/* 顶部标签+筛选栏 */
.top-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.tab-container {
    position: relative;
    display: flex;
}

.tab-btn {
    width: 110px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 19px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    position: relative;
    z-index: 2;
    user-select: none;
}

.tab-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 38px;
    border-radius: 19px;
    background: #1677ff;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}

.tab-btn.active {
    color: #fff;
}

/* 复选框区域 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    border-left: 1px solid #eee;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

    .custom-checkbox.checked {
        background: #1677ff;
        border-color: #1677ff;
        color: #fff;
    }

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    height: 38px;
    background: #f0f2f5;
    border-radius: 19px;
    padding: 0 15px;
    width: 300px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.search-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* 底部按钮栏 */
.bottom-menu {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 16px;
    z-index: 999;
}

.menu-btn {
    padding: 12px 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .menu-btn .icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #1677ff;
        font-size: 16px;
    }

    .menu-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background-color: #f0f7ff;
        color: #1677ff;
    }

    .menu-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

.notify-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.3);
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
    transform: translateZ(0);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .modal-close:hover {
        background: #f0f2f5;
        color: #666;
    }

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #1677ff;
}

.modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    padding: 0 5px;
}


/* 外层容器 */
.info-window-wrapper {
    width: 270px;
    padding: 0;
    font-family: 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* 卡片主体 */
.info-window-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== 标签区域 ===== */
.info-window-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* 区域标签 */
.info-window-tag-district {
    background: #f0f5fa;
    color: #3a6a9a;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
}

/* 设备类型标签 */
.info-window-tag-type {
    background: #f5ecec;
    color: #b06060;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
}

/* ===== 地址文本 ===== */
.info-window-address {
    font-size: 14px;
    color: #2a3a4a;
    margin: 0 0 14px 0;
    line-height: 1.6;
    word-break: break-word;
    padding: 4px 0;
}

/* ===== 底部操作栏 ===== */
.info-window-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* 底部操作栏 - 左侧文字 */
.info-window-action-label {
    font-size: 12px;
    color: #8a9aaa;
}

/* ===== 查看详细按钮 ===== */
.info-window-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #d47373;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

    /* 按钮按下状态（移动端） */
    .info-window-btn:active {
        transform: scale(0.95);
        background: #c06060;
    }

/* 按钮悬停效果（仅桌面端） */
@media (hover: hover) {
    .info-window-btn:hover {
        background: #c06060;
    }
}

/* ============================================ */
/* ===== 小屏幕手机适配 ===== */
/* ============================================ */

@media screen and (max-width: 375px) {
    .info-window-wrapper {
        width: 240px;
    }

    .info-window-card {
        padding: 12px 14px 10px 14px;
    }

    .info-window-tag-district,
    .info-window-tag-type {
        font-size: 11px;
        padding: 2px 10px;
    }

    .info-window-address {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .info-window-btn {
        font-size: 11px;
        padding: 5px 14px;
    }

    .info-window-action-label {
        font-size: 11px;
    }
}