@font-face {
    font-family: font;
    src: url(hywh_thin2.ttf);
}

/* 左上角菜单按钮样式 */
.menu-toggle-btn {
    position: absolute;
    top: 50px;
    left: -50px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* 旧的侧边栏轮播样式已移除，现在使用Bootstrap轮播组件 */

html,
body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #2c2b30;
    overflow: hidden; /* 防止出现滚动条 */
}

#map {
    background-color: #2c2b30;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 侧边栏关闭按钮美化样式 */
.offcanvas-header .btn-close {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 1;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3);
}

.offcanvas-header .btn-close:before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.offcanvas-header .btn-close:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
    border-color: #fff;
}

.offcanvas-header .btn-close:focus {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 6px 20px rgba(238, 90, 82, 0.4);
    outline: none;
}

.offcanvas-header .btn-close:active {
    transform: scale(0.95) rotate(90deg);
    transition: transform 0.1s ease;
}

/* 小屏幕下地图容器修复 - 防止侧边栏影响地图显示 */
@media (max-width: 768px) {
    #map {
        width: 100vw !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
    }
    
    /* 确保侧边栏不会影响地图布局 */
    .offcanvas-end {
        z-index: 1050 !important;
    }
    
    /* 侧边栏切换按钮确保在地图之上 */
    #sidebarToggleBtn {
        z-index: 1051 !important;
    }
}

/* Bootstrap Modal图片查看器优化样式 */
.image-viewer-modal .modal-content {
    background: rgba(0, 0, 0, 0.95) !important;
    border: none !important;
}

.image-viewer-modal .modal-body {
    min-height: 100vh;
}

.image-viewer-modal .image-container {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-viewer-modal .image-container img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    will-change: transform;
    transition: transform 0.1s ease-out !important;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    transform-origin: center center;
    cursor: grab;
}

/* 保留旧样式作为备用 */
.image-viewer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex !important;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bootstrap Modal按钮容器样式 */
.image-viewer-modal .image-controls-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* 图片查看器控制按钮容器 */
.image-viewer-controls {
    gap: 12px;
}

/* 图片查看器按钮基础样式 */
.image-viewer-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
    outline: none !important;
}

/* 按钮悬停效果 */
.image-viewer-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* 按钮激活效果 */
.image-viewer-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* 关闭按钮特殊样式 */
.image-viewer-btn.close-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
}

.image-viewer-btn.close-btn:hover {
    background: rgba(220, 53, 69, 1) !important;
    transform: scale(1.1) rotate(90deg) !important;
}

/* 旧样式已清理，使用新的 .image-viewer-btn 样式 */

/* 旧的按钮定位样式已删除，使用新的 .image-viewer-btn 样式 */

/* 小屏幕下图片查看器优化 */
@media (max-width: 768px) {
    .image-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-controls-container {
        bottom: 10px;
        gap: 12px;
    }
    
    .image-control-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .close-btn {
        font-size: 20px;
    }
    
    .zoom-in-btn,
    .zoom-out-btn {
        font-size: 18px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .image-control-btn {
        width: 44px;
        height: 44px;
    }
    
    .image-controls-container {
        gap: 18px;
    }
}

.myPopIssue {
    display: none;
}

.tools {
    color: #ff0404d9;
}

.savePop {
    z-index: 4000;
    position: absolute;
    display: block;
    width: 500px;
    height: 500px;
    border-width: 0px;
    border-style: inset;
    border-color: initial;
    border-image: initial;
    transform-origin: 50% 50% 0;
    /*transform: scale(0.75);
    -webkit-transform: scale(0.75);*/
    /*兼容-webkit-引擎浏览器*/
    /*-moz-transform: scale(0.75);*/
    /*兼容-moz-引擎浏览器*/
    left: calc(50% - 475px / 2);
    top: calc(50% - 490px / 2);
}

.savePop.disable {
    display: none;
}

.leaflet-control-layers-expanded {
    padding: 0px;
    margin: 0px;
    width: 260px;
}

.leaflet-control-layers {
    position: absolute;
    top: 0;
    /* right: 0px; */
    right: -1000px;
}

/* 地图筛选器样式 */

.person-div {
    position: absolute;
    display: flex;
    width: 373px;
    height: 50px;
    top: 19px;
    left: 34px;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
}

.login-info {
    cursor: pointer;
}

/* 旧的登录注册链接样式 - 已更新为Bootstrap按钮，暂时注释 */
/*
.reg_log_link {
    width: 153px;
    height: 50px;
    background: url(../imgs/con_img/log_reg.webp) no-repeat;
}
*/

/* 旧的保存按钮样式 - 已更新为Bootstrap按钮，暂时注释 */
/*
.save-btn {
    width: 40px;
    height: 50px;
    background: url(../imgs/con_img/save.webp) no-repeat;
    z-index: 200;
}

.save-btn.disable {
    opacity: 1;
}
*/


.topLine {
    position: absolute;
    width: 88%;
    height: 1px;
    top: 45px;
    left: 21px;
    background-color: rgba(43, 64, 83, 0.2);
    z-index: 200;
}


/* 调整 control-containor 样式 */
.control-containor {
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}


/* 地区选择下拉框样式 - 与accordion宽度保持一致 */
.control-containor .dropdown.mb-3 {
    width: 100%;
    top: -15px;
}

/* Bootstrap Accordion 自定义样式 */
#filterAccordion {
    max-height: 80%; 
    overflow-y: auto; 
    width: 100%;
    top: 140px;
    z-index: 9999;
}

/* Accordion 滚动条样式 - 更细更美观 */
#filterAccordion::-webkit-scrollbar {
    width: 3px;
    background: transparent;
}


/* 轮播图片样式调整 - 确保图片填满整个轮播区域 */
.carousel-inner .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 轮播项目高度调整 */
.carousel-inner .carousel-item {
    height: 100% !important;
}

#filterAccordion::-webkit-scrollbar-thumb {
    background: rgba(171, 143, 119, 0.4);
    border-radius: 2px;
}

#filterAccordion::-webkit-scrollbar-thumb:hover {
    background: rgba(171, 143, 119, 0.6);
}

#filterAccordion::-webkit-scrollbar-track {
    background: transparent;
}


#filterAccordion .accordion-item {
    margin-bottom: 6px;
    border: 0.5px solid #d2c6bb;
    border-radius: 3px;
    padding: 1px;
}

#filterAccordion .accordion-button {
    padding: 8px 12px;
    height: 40px;
    background: linear-gradient(270deg,
            #ffffff -95.11%,
            rgba(255, 255, 255, 0) 401.72%),
        #f0e9e2;
    color: #000;
    font-size: 16px;
    border: none;
    border-radius: 3px;
}

#filterAccordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(270deg,
            rgba(171, 143, 119, 0.5) -46.99%,
            rgba(143, 110, 76, 0.5) 198.5%),
        #ab8f77;
    box-shadow: none;
}

#filterAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

#filterAccordion .accordion-body {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);
}

.panel-container {
    display: flex;
    flex-direction: column;
}



.options-list {
    /* 移除 display: none，让 Bootstrap Accordion 自然控制显示隐藏 */
    overflow-y: scroll;
    overflow-x: hidden;
}

/* 选项列表滚动条样式 - 更细更美观 */
.options-list::-webkit-scrollbar {
    width: 2px;
    background: transparent;
}

.options-list::-webkit-scrollbar-thumb {
    background: rgba(171, 143, 119, 0.3);
    border-radius: 1px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: rgba(171, 143, 119, 0.5);
}

.options-list::-webkit-scrollbar-track {
    background: transparent;
}

.options-list .map-opts {
    position: relative;
    display: inline-block;
    width: 45%;
    height: 30px;
    background: linear-gradient(270deg,
            #ffffff -95.11%,
            rgba(255, 255, 255, 0) 100%),
        #f0e9e2;
    margin: 0 5px 8px 8px;
    border-radius: 2px;
    line-height: 25px;
    text-indent: 22px;
    font-size: 13px;
    border: 1px solid #d2c6bb;
    box-sizing: border-box;
    cursor: pointer;
    color: #78583d;
}

.options-list .map-opts.on {
    background: linear-gradient(270deg,
            rgba(171, 143, 119, 0.5) -46.99%,
            rgba(143, 110, 76, 0.5) 198.5%),
        #ab8f77;
    color: #f2f0ee;
}

/* 旧的图片边框样式 - 可能不再使用，暂时注释 */

.img-border {
    position: absolute;
    top: -5px;
    left: -30px;
    width: 40px;
    height: 40px;
}


.map-opts-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 2px;
    left: 18px;
}

/* 数量统计样式 - 右对齐显示 */
.count-text {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 20px;
    text-align: center;
    text-indent: 0;
}


.bottom-rules {
    z-index: 99999;
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: auto;
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.7);
}

.disclaimer {
    position: relative;
    left: 0;
    bottom: 0;
    color: #0078a8;
    font-size: 11px;
}

.disclaimer:hover {
    text-decoration: underline;
}


/* 旧的选择器列表容器样式 - 可能已更新，暂时注释 */

.selector-list-containor {
    position: absolute;
    display: flex;
    top: 97px;
    width: 333px;
    height: 36px;
    overflow-y: hidden;
    overflow-x: scroll;
    z-index: 200;
}



.selector-list-containor .opt-selector {
    flex-shrink: 0;
    position: relative;
    padding-right: 10px;
    line-height: 28px;
    height: 28px;
    background: #a4866c;
    border-radius: 3px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-family: font;
    text-indent: 10px;
    margin: 0 5px 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

/* 选择器中的图片样式 */
.selector-list-containor .opt-selector .selector-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 5px;
}

.selector-list-containor::-webkit-scrollbar {
    opacity: 0.5;
    height: 5px;
    background: none;
}

.selector-list-containor::-webkit-scrollbar-thumb {
    opacity: 0.5;
    background: #ab8f7741;
    border-radius: 1px;
}

/* 关闭按钮样式 - 使用纯CSS绘制X图标 */
.opt-selector-close {
    position: absolute;
    top: 4px;
    left: 23px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

/* 使用伪元素绘制X图标 */
.opt-selector-close::before,
.opt-selector-close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}

.opt-selector-close::before {
    transform: rotate(45deg);
}

.opt-selector-close::after {
    transform: rotate(-45deg);
}

/* 悬停效果 */
.opt-selector-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* 已替换为Bootstrap Card - 保留用于兼容性 */
/* .myPopTitle {
    display: inline-block;
    position: relative;
    flex-direction: column;
    padding: 0px;
    left: 17px;
    margin-top: 14px;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3));
} */

.myPopName {
    font-family: font;
    font-style: normal;
    font-weight: bold;
    font-size: 25px; /* 调整为适合Bootstrap Card的字体大小 */
    line-height: 100%;
    color: #4b5368;
}

/* 已替换为Bootstrap Card分隔线 */
/* .myPopLine {
    display: inline-block;
    position: relative;
    width: 312px;
    height: 0px;
    left: 17px;
    margin-top: 15px;
    border: 1px solid #e1d5bf;
}

/* 适配Bootstrap Card结构的评论样式 */
.leaflet-popup-content-wrapper .card-body .card-text.myPopComment {
    display: flex;
    position: relative;
    margin: 0;
    padding: 0;
    font-style: normal;
    font-weight: bold;
    font-size: 22px; /* 调整字体大小适配Card */
    line-height: 115%;
    align-items: center;
    color: #4b5368;
    cursor: pointer;
}

.myPopComment span {
    display: inline-block;
    margin-right: 10px;
}

/* 适配Bootstrap Card的Select图标 */
.leaflet-popup-content-wrapper .card-body .Select {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: 50% 50% 0;
    transition: transform 0.5s;
}

.myPopComment.disable img {
    transform: rotate(-180deg);
    opacity: 0.2;
}

/* 适配Bootstrap Card的图片容器 */
.leaflet-popup-content-wrapper .card-body .figure.myPopPicture {
    position: relative;
    overflow: hidden;
    width: 100%; /* 使用Card的全宽 */
    height: 50px; /* 保持原有高度设置 */
    margin: 0;
    margin-bottom: 0; /* 覆盖Bootstrap figure默认margin */
}

.image-link {
    color: #4a90e2;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px;
    margin: 5px 0;
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
    width: 100%; /* 占满容器宽度 */
    box-sizing: border-box; /* 确保padding不会超出容器 */
}

.image-link:hover {
    background: rgba(74, 144, 226, 0.2);
}

.image-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
}

.myPopPicture.disable {
    height: 0;
}

.myPopPicture.hasVideo {
    height: 326px !important;
}

.myPopPicture .img,
.myPopPicture .noImgVideoTip {
    display: inline-block;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
    border: 3px solid rgba(255, 255, 255, 1);
    border-radius: 9px;
}

.myPopPicture .noImgVideoTip {
    display: none;
}

.myPopPicture.disable.hasVideo .img {
    display: none;
}

.myPopPicture.disable.hasVideo .noImgVideoTip {
    display: inline-block;
}

/* 自绘视频按钮基础样式 */
.myPopPicture .videoTip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* B站视频按钮样式 */
.myPopPicture .videoTip[data-video-url*="bilibili.com"],
.myPopPicture .videoTip[data-video-url*="b23.tv"] {
    background: linear-gradient(145deg, #ff8a8a, #fca5a5);
    border-color: #ff7a7a;
}

.myPopPicture .videoTip[data-video-url*="bilibili.com"]:hover,
.myPopPicture .videoTip[data-video-url*="b23.tv"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 100, 100, 0.3);
}

/* 抖音视频按钮样式 */
.myPopPicture .videoTip[data-video-url*="douyin.com"] {
    background: linear-gradient(145deg, #232323, #3c3c3c);
    border-color: #4a4a4a;
}

.myPopPicture .videoTip[data-video-url*="douyin.com"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}



/* 视频容器样式调整 */
.myPopPicture {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

/* 移除原有的hasVideo相关样式，使用新的统一样式 */

.myPopPicture .videoBtn {
    display: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 55px;
    height: 55px;
    background-image: url('../imgs/media_img/btnPlay.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    text-decoration: none !important;
    z-index: 100;
}

.myPopPicture.hasVideo .videoBtn {
    display: inline-block;
}

/* 自绘 tipcard 样式 - 连接提示框和标点的指向箭头 */
.tipcard {
    position: absolute;
    width: 0;
    height: 0;
    left: 51%;
    bottom: -24px;
    pointer-events: none;
    margin-left: -24px;
    /* 创建向下的三角形箭头 */
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 24px solid #ffffff;
    /* 添加阴影效果 */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    z-index: 1000;
}

/* 为 tipcard 添加内部阴影效果 */
.tipcard::before {
    content: '';
    position: absolute;
    top: -22px;
    left: -22px;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid #ffffff;
    z-index: -1;
}

/* Bootstrap Card样式替换leaflet-popup-content-wrapper */
.leaflet-popup-content-wrapper {
    position: absolute;
    left: 50%;
    bottom: 10px; /* 调整与标记点的距离 */
    transform: translateX(-50%) scale(0.6);
    transform-origin: bottom center;
    width: 360px; /* 增加宽度以适应内容 */
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

/* 使用Bootstrap Card样式 */
.leaflet-popup-content-wrapper .card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
}

/* 移除悬停放大效果 */

.leaflet-popup-content {
    display: inline-block;
    width: 100% !important;
    margin: 0;
    clear: both;
}

/* Bootstrap Card内容样式调整 */
.leaflet-popup-content-wrapper .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.leaflet-popup-content-wrapper .card-body {
    padding: 1rem;
}

.leaflet-popup-content-wrapper .card-title {
    color: #2b4153;
    font-weight: 600;
}

.leaflet-popup-content-wrapper .btn-close {
    font-size: 0.875rem;
}

/* 移除旧的tip样式，因为新的设计不需要它 */
.leaflet-popup-tip {
    display: none;
}

/* 移除旧的tip-container样式 */
.leaflet-popup-tip-container {
    display: none;
}

.myPopIssue {
    position: absolute !important;
    right: 50px !important;
    top: 15px !important;
    font-size: 20px;
    font-weight: bold;
    width: 80px;
    height: 30px;
    cursor: pointer;
}

.myPopIssueIcon {
    display: inline-block;
    position: absolute;
    background-size: contain;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* 统一关闭按钮样式 - 适用于弹窗和轮播图 */
.btn-close.myPopClose,
.carousel-close-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3) !important;
}

/* 弹窗关闭按钮使用相对定位并调整尺寸 */
.btn-close.myPopClose {
    position: relative !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 轮播图关闭按钮保持绝对定位 */
.carousel-close-btn {
    position: absolute !important;
}

.btn-close.myPopClose:before,
.carousel-close-btn:before {
    content: '×' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-weight: bold !important;
    color: #fff !important;
    line-height: 1 !important;
}

/* 弹窗关闭按钮的×符号 */
.btn-close.myPopClose:before {
    font-size: 18px !important;
}

/* 轮播图关闭按钮的×符号 */
.carousel-close-btn:before {
    font-size: 16px !important;
}

.btn-close.myPopClose:hover,
.carousel-close-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4) !important;
    border-color: #fff !important;
}

.btn-close.myPopClose:focus,
.carousel-close-btn:focus {
    background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 6px 20px rgba(238, 90, 82, 0.4) !important;
    outline: none !important;
}

.btn-close.myPopClose:active,
.carousel-close-btn:active {
    transform: scale(0.95) rotate(90deg) !important;
    transition: transform 0.1s ease !important;
}

/* 双按钮样式 - 基础样式 */
.leaflet-popup-content-wrapper .card-body .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 过渡动画效果 */
.leaflet-popup-content-wrapper .card-body .btn.btn-transitioning {
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 未完成按钮样式 */
.leaflet-popup-content-wrapper .card-body .btn[data-state="todo"] {
    border-color: #6c757d;
    color: #6c757d;
    background-color: transparent;
}

.leaflet-popup-content-wrapper .card-body .btn[data-state="todo"].active {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.leaflet-popup-content-wrapper .card-body .btn[data-state="todo"]:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* 已完成按钮样式 */
.leaflet-popup-content-wrapper .card-body .btn[data-state="done"] {
    border-color: #198754;
    color: #198754;
    background-color: transparent;
}

.leaflet-popup-content-wrapper .card-body .btn[data-state="done"].active {
    background-color: #198754;
    border-color: #198754;
    color: white;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.leaflet-popup-content-wrapper .card-body .btn[data-state="done"]:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

/* 按钮容器样式 */
.leaflet-popup-content-wrapper .card-body .d-flex.gap-2 {
    gap: 8px !important;
}

.leaflet-shadow-pane .iconKW {
    transform: rotate(45deg);
}

.zanzhu {
    font-family: font;
    margin-top: 3px;
    font-size: 22px;
    color: #2b4153;
}

@media screen and (max-width: 750px) {
    .leaflet-popup-content-wrapper {
        transform-origin: 50% 100% 0;
        width: 300px; /* 移动端减小宽度 */
    }
    
    .leaflet-popup-content-wrapper .card {
        font-size: 14px; /* 移动端字体稍小 */
    }
}

.leaflet-popup-content-wrapper .card-body .d-flex.time-wrapper {
    font-size: 18px;
    padding: 0 17px;
    font-weight: bold;
    margin-top: 10px;
    gap: 0.5rem; /* Bootstrap spacing */
}

.avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper img {
    border-radius: 50%;
}




/* 页脚部分 */
.footer {
    margin-top: 0; /* 移除之前的 auto，因为轮播图会把它推下去 */
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa; /* 页脚背景色，可选 */
    border-top: 1px solid #e7e7e7; /* 页脚上边框，可选 */
    display: table-cell;
    max-width: 350px;
    width: 100%;
    float: left;
    user-select: none;
    padding: 1px 5px;
    font-size: 11px;
    white-space: normal;
    transition: all 0.3s;
    background-color: #f0f0f0;
    color: #333;
    position: fixed;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    /* 半透明白色背景，可根据需要调整透明度 */
    z-index: 1001;
    /* 确保页脚显示在其他元素之上 */
}

.footer a {
    text-align: center;
    font-weight: 500;
    overflow-wrap: break-word;
}

.footer a:not(:last-child) {
    margin-right: 8px;
}

@media only screen and (max-width: 740px) {
    /* 页脚部分 */
.footer {
    margin-top: 0; /* 移除之前的 auto，因为轮播图会把它推下去 */
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa; /* 页脚背景色，可选 */
    border-top: 1px solid #e7e7e7; /* 页脚上边框，可选 */
        width: 100vw;
        text-align: center;
    }

    .footer a:not(:last-child) {
        margin-right: 1.5vw;
    }
}

/* 在移动端（安卓和iOS）隐藏footer */
@media only screen and (max-width: 768px) {
    .footer {
        display: none !important;
    }
}

/* 针对触摸设备的额外隐藏规则 */
@media only screen and (hover: none) and (pointer: coarse) {
    .footer {
        display: none !important;
    }
}

.reward-link {
    text-decoration: none;
    color: #007bff;
    /* 按钮文字颜色，可自定义 */
    border: 1px solid #007bff;
    /* 按钮边框样式，可自定义 */
    padding: 5px 10px;
    /* 按钮内边距，可自定义 */
    border-radius: 5px;
    /* 按钮圆角，可自定义 */
}

/* 模态框主体（收款码容器）样式，实现半透明毛玻璃效果 */
.qr-code-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 让模态框居中显示 */
    background-color: rgba(255, 255, 255, 0.8);
    /* 白色半透明背景，可调整透明度值 */
    backdrop-filter: blur(5px);
    /* 毛玻璃模糊效果，可调整模糊程度数值 */
    -webkit-backdrop-filter: blur(5px);
    /* 兼容webkit内核浏览器 */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* 添加阴影效果 */
    z-index: 1000;
    /* 确保在遮罩层之上且在页面最上层 */
    text-align: center;
    display: none;
    /* 初始隐藏 */
}



.draw-path-btn.active {
    background-color: #45a049; /* 保留激活状态的特定样式 */
}

/* Bootstrap绘制路线按钮激活状态 */
#drawPathBtn.active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

#drawPathBtn.active:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* 加载遮罩层样式 */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* 确保在最上层 */
    color: white;
    font-size: 20px;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* 收款码图片样式，可根据实际收款码图片尺寸等调整大小等 */
.qr-code-img {
    max-width: 279px;
    max-height: 381px;
    margin: 10px;
}

/* h2标签样式，设置为红色大字 */
.qr-code-modal h2 {
    color: red;
    /* 文字颜色为红色 */
    font-size: 24px;
    /* 字体大小，可根据需求调整 */
    margin-bottom: 10px;
    /* 下边距，控制与下方元素间距，可调整 */
}

/* 图片框样式 */
.logo-box {
    position: absolute;
    top: 180px;
    /* 适当增大了top值，让其往下移动一点，可继续按需微调 */
    left: -125px;
    width: 135px;
    /* 图片框宽度，根据logo实际宽度及布局需求调整 */
    height: 80px;
    /* 图片框高度，根据logo实际高度及布局需求调整 */
    z-index: 201;
    /* 确保层级合适，比fold-btn层级高些，便于显示在合适位置 */
}

/* 图片本身样式，保持比例并适应图片框容器 */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.reward-btn {
    background-color: #2f97e2;
    /* 按钮背景颜色，可换为其他颜色值 */
    border: none;
    border-radius: 5px;
    color: white;
    /* 文字颜色 */
    padding: 10px;
    /* 内边距，控制按钮大小 */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    /* 外边距，控制按钮间距等 */
    cursor: pointer;
}

/* 模态框遮罩层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明黑色遮罩，可调整透明度值 */
    z-index: 999;
    /* 确保在页面上层显示 */
    display: none;
    /* 初始隐藏 */
}



/* 筛选器下测已选项框体（占位元素，勿动） */

/* 顶部导航样式 */
.nav-style {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-right: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    background-color: transparent; /* 确保按钮背景透明 */
    border: none; /* 移除按钮边框 */
    cursor: pointer; /* 确保鼠标指针为手型 */
    font-size: 14px; /* 调整字体大小 */
}

.nav-link:hover {
    background-color: #555;
}

.nav-style .dropdown .dropbtn {
    background-color: transparent;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.nav-style .dropdown .dropbtn:hover {
    background-color: #555;
}

.nav-style .dropdown-content {
    background-color: #333; /* 下拉菜单背景色与导航栏一致 */
}

.nav-style .dropdown-content button,
.nav-style .dropdown-content a button {
    color: white; /* 下拉菜单项文字颜色 */
    background-color: transparent; /* 下拉菜单项背景透明 */
    border: none; /* 移除边框 */
    width: 100%; /* 使按钮宽度充满下拉菜单 */
    text-align: left; /* 文字左对齐 */
}

.nav-style .dropdown-content button:hover,
.nav-style .dropdown-content a button:hover {
    background-color: #555; /* 悬停时背景变色 */
}


.draw-path-btn.active {
    background-color: #45a049; /* 保留激活状态的特定样式 */
}

/* 加载遮罩层样式 */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* 确保在最上层 */
    color: white;
    font-size: 20px;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}



.login-form,
.register-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border: 1px solid #ddd;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    /* 增加表单宽度 */
    backdrop-filter: blur(10px);
    /* 毛玻璃模糊效果，可调整模糊程度数值 */
    -webkit-backdrop-filter: blur(10px);
    /* 兼容webkit内核浏览器 */
    background-color: rgba(255, 255, 255, 0.8);
    /* 半透明背景色，可调整透明度 */
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

.login-form input:focus,
.register-form input:focus {
    border-color: #007BFF;
    outline: none;
}

.login-form button,
.register-form button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover,
.register-form button:hover {
    background-color: #0056b3;
    /* 按钮悬停时的背景色 */
}

.logged-in-info {
    margin-right: 10px;
    color: #333;
    font-weight: bold;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.logout-btn,
.login-btn,
.register-btn,
.clear-data-btn {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #f0e9e2;
    color: #78583d;
    padding: 8px 16px;
    border: 1px solid #d2c6bb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
    padding: 5px;
}

.dropdown-content button,
.dropdown-content a {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #78583d;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-content button:hover,
.dropdown-content a:hover {
    background-color: #f0e9e2;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #e5dfd8;
}

.control-buttons {
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 侧边栏菜单样式 */
.sidebar-menu {
    display: flex; /* 使用 flex 布局 */
    flex-direction: column; /* 垂直排列子元素 */
    position: fixed;
    top: 0;
    right: -350px;
    /* 初始隐藏在左侧 */
    width: 350px;
    height: 100%;
    background-color: #f8f8f8;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

.sidebar-menu.open {
    right: 0;
    /* 显示侧边栏 */
}

#sidebarToggleBtn {
    margin-right: 10px;
    transition: background-color 0.3s ease;
    color: white;
    background-color: #ed7408;
    padding: 10px;
    z-index: 1100;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 美化地区选择下拉框 */
#area-select {
    /* 基础样式 */
    width: 100%;
    font-size: 16px;
    border: 1px solid #c5b79d;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    /* 鼠标指针样式 */
    cursor: pointer;
    /* 去除默认的外观，让样式更统一 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 当鼠标悬停在下拉框上时的样式 */
#area-select:hover {
    border-color: #999;
}

/* 当下拉框被聚焦时的样式 */
#area-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 下拉框选项的样式 */
#area-select option {
    padding: 8px 12px;
}

/* .switch_FB 样式已删除，因为对应的DOM元素已不存在 */

.main-navbar {
    height: 50px;
    /* Bootstrap导航栏高度 */
}

/* 导航栏内容集中样式 */
.main-navbar .container-fluid {
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中对齐 */
    padding: 0 20px; /* 减少左右内边距 */
}

/* 导航项间距调整 */
.main-navbar .navbar-nav .nav-item {
    margin: 0 5px; /* 减少导航项之间的间距 */
}

/* 品牌标题样式调整 */
.main-navbar .navbar-brand {
    margin-right: 30px; /* 减少品牌与导航项的间距 */
}

/* 右侧导航项间距 */
.main-navbar .navbar-nav:last-child .nav-item {
    margin-left: 8px; /* 右侧导航项间距 */
    margin-right: 0;
}

/* 小屏幕下导航栏样式优化 */
@media (max-width: 768px) {
    .main-navbar .container-fluid {
        padding: 0 10px; /* 小屏幕下减少内边距 */
    }
    
    .main-navbar .navbar-brand {
        margin-right: 15px; /* 小屏幕下减少品牌间距 */
        font-size: 1rem; /* 调整品牌字体大小 */
    }
    
    .main-navbar .navbar-nav .nav-item {
        margin: 0 2px; /* 小屏幕下减少导航项间距 */
    }
    
    .main-navbar .btn {
        padding: 0.25rem 0.5rem; /* 小屏幕下减少按钮内边距 */
        font-size: 0.875rem; /* 调整按钮字体大小 */
    }
    
    .main-navbar .dropdown-menu {
        font-size: 0.875rem; /* 调整下拉菜单字体大小 */
        min-width: 160px;
        margin-top: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .main-navbar .dropdown-item {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .main-navbar .dropdown-item:hover,
    .main-navbar .dropdown-item:focus {
        transform: translateX(3px);
    }
}

/* 导航栏按钮垂直对齐修复 */
.main-navbar .btn.nav-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1.5;
}

/* 确保所有导航项垂直居中对齐 */
.main-navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.main-navbar .navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* 重新设计的下拉菜单样式 */
.main-navbar .dropdown-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 下拉菜单项字体颜色 */
.dropdown-item {
    color: #000000 !important;
}

.main-navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 下拉菜单项统一按钮样式 */
.main-navbar .dropdown-item {
    color: #ffffff !important;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* 折叠面板按钮对齐优化 */
.navbar-collapse-panel .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.navbar-collapse-panel .btn i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* 下拉菜单项图标样式 */
.main-navbar .dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.main-navbar .dropdown-item:hover i,
.main-navbar .dropdown-item:focus i {
    opacity: 1;
    transform: scale(1.1);
}

/* 下拉菜单项悬停效果 */
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px);
    box-shadow: inset 3px 0 0 #ffffff;
}

/* 下拉菜单项激活状态 */
.main-navbar .dropdown-item:active {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(3px);
}

/* 下拉菜单分割线样式 */
.main-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}

/* 下拉菜单箭头指示器 */
.main-navbar .dropdown-toggle::after {
    border-top-color: #ffffff;
    transition: transform 0.3s ease;
}

.main-navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* 下拉菜单渐变边框效果 */
.main-navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.8;
}

/* 响应式下拉菜单优化 */
@media (max-width: 576px) {
    .main-navbar .dropdown-menu {
        position: absolute !important;
        transform: none !important;
        left: auto !important;
        right: 0 !important;
        top: 100% !important;
        margin-top: 2px !important;
        min-width: 200px;
    }
}

/* 箭头图标样式 */
.arrow-icon {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* 折叠面板样式 */
.panel {
    width: 100%;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.arrow-icon {
    float: right;
}

.panel.show {
    display: block;
}

.close-btn {
    /* 基本样式 */
    position: absolute;
    right: 5px;
    display: inline-block;
    width: 30px !important;
    height: 30px !important;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    cursor: pointer;

    /* 颜色和背景 */
    color: #fff;
    background-color: #ff5252;
    border-radius: 50%;

    /* 过渡效果 */
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #ff1744;
}



/* 广告轮播悬浮窗样式 */
/* 旧的轮播样式已移除，现在使用Bootstrap轮播组件 */

/* 已完成标记点的边框样式 */
.leaflet-marker-icon.completed {
    border: 2px solid #14e1e9 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

/* 数据库数量显示样式 */
.count-text {
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
    opacity: 0.8;
}

/* 当选项被选中时，数量文字颜色变化 */
.map-opts.on .count-text {
    color: #14e1e9;
    font-weight: bold;
    opacity: 1;
}

/* 新的打赏界面样式 - 采用home目录样式 */
.reward-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 0;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* 打赏按钮样式 */
.reward-section {
    margin: 0;
    padding: 1.5em;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-align: center;
}

.reward-button {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.reward-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    background: linear-gradient(135deg, #ff3742 0%, #ff5533 100%);
}

.reward-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

.reward-icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

.reward-text {
    font-size: 16px;
}

.reward-title {
    color: white;
    font-size: 18px;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: bold;
}

.reward-desc {
    color: white;
    font-size: 14px;
    margin: 0 0 20px 0;
    opacity: 0.9;
    text-align: center;
}

/* 金额选择按钮 */
.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 60px;
}

.amount-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.amount-btn.custom-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 自定义金额输入 */
.custom-amount-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.custom-amount-input input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    width: 150px;
    text-align: center;
    font-size: 14px;
}

.custom-amount-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.custom-amount-input input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.input-unit {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

/* 确认打赏按钮状态 */
.reward-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.reward-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .reward-modal {
        width: 95%;
        max-width: none;
    }
    
    .reward-section {
        padding: 1.2em;
    }
    
    .reward-title {
        font-size: 16px;
    }
    
    .reward-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .reward-desc {
        font-size: 12px;
    }
    
    .amount-options {
        gap: 8px;
    }
    
    .amount-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .custom-amount-input input {
        width: 120px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 路径操作按钮响应式样式 */
#path-action-buttons {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    background-color: rgba(51, 51, 51, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    white-space: nowrap;
}

#path-action-buttons button {
    margin: 0 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#finishDrawingBtn {
    background-color: #d9534f;
}

#finishDrawingBtn:hover {
    background-color: #c9302c;
}

#clearPathBtn {
    background-color: #f0ad4e;
}

#clearPathBtn:hover {
    background-color: #ec971f;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    #path-action-buttons {
        top: 50px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        text-align: center;
    }
    
    #path-action-buttons button {
        margin: 2px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    #path-action-buttons {
        top: 45px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 8px;
    }
    
    #path-action-buttons button {
        margin: 1px;
        padding: 6px 8px;
        font-size: 11px;
    }
}
    
    .input-unit {
        font-size: 12px;
    }

/* 为align-items-center类添加左边距 */
.align-items-center {
    margin-left: 5px;
}

/* 完成状态切换组件样式 - 仿照muban的视觉效果 */
.completion-toggle-container {
    margin: 15px auto;
}

.completion-toggle-container .btn-group {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border: 2px solid #e0e0e0;
}

.completion-btn {
    position: relative;
    font-family: font, sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 8px;
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
}

/* 未完成按钮样式 */
.todo-btn {
    color: #FF9800;
    border-color: #FF9800 !important;
}

.todo-btn:hover {
    background: linear-gradient(145deg, #FFF3E0, #FFE0B2);
    color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* 已完成按钮样式 */
.done-btn {
    color: #4CAF50;
    border-color: #4CAF50 !important;
}

.done-btn:hover {
    background: linear-gradient(145deg, #E8F5E8, #C8E6C9);
    color: #388E3C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 选中状态样式 */
.btn-check:checked + .todo-btn {
    background: linear-gradient(145deg, #FFA726, #FF9800) !important;
    color: white !important;
    border-color: #F57C00 !important;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-check:checked + .done-btn {
    background: linear-gradient(145deg, #66BB6A, #4CAF50) !important;
    color: white !important;
    border-color: #388E3C !important;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 图标动画效果 */
.completion-btn i {
    transition: all 0.3s ease;
}

.btn-check:checked + .completion-btn i {
    transform: scale(1.1);
}

/* 焦点状态 */
.btn-check:focus + .completion-btn {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .completion-btn {
        font-size: 15px;
        padding: 8px;
        letter-spacing: 1px;
    }
}

/* 移动端底部栏样式 */
#mobileBottomSheet {
    --bs-offcanvas-height: 40vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#mobileBottomSheet .offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    position: relative;
}



#mobileBottomSheet .offcanvas-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

#mobileBottomSheet .btn-close {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 1;
    position: relative;
}

/* 弹出框底部箭头样式 */
.popup-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #dee2e6;
    margin: 0 auto;
}

/* 深色主题下的箭头颜色 */
@media (prefers-color-scheme: dark) {
    .popup-arrow {
        border-top-color: #495057;
    }
}

#mobileBottomSheet .btn-close:before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

#mobileBottomSheet .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#mobileBottomSheet .offcanvas-body {
    padding: 20px;
    background-color: #f8f9fa;
    max-height: calc(60vh - 80px);
    overflow-y: auto;
}

/* 底部栏内的卡片样式优化 */
#mobileBottomSheet .card {
    border: none;
    box-shadow: none;
    background: transparent;
}

#mobileBottomSheet .card-header {
    background: transparent;
    border: none;
    padding: 0 0 15px 0;
}

#mobileBottomSheet .card-header .btn-close {
    display: none; /* 隐藏卡片内的关闭按钮，使用顶部的关闭按钮 */
}

#mobileBottomSheet .card-body {
    padding: 0;
}

/* 小屏幕下隐藏Leaflet弹出框 */
@media (max-width: 768px) {
    .leaflet-popup {
        display: none !important;
    }
    
    .leaflet-popup-pane {
        display: none !important;
    }
}

/* 大屏幕下隐藏底部栏 */
@media (min-width: 769px) {
    #mobileBottomSheet {
        display: none !important;
    }
}

/* 自绘 tipcard 样式 - 连接提示框和标点的指向箭头 */
.tipcard {
    position: absolute;
    width: 0;
    height: 0;
    left: 51%;
    bottom: -24px;
    pointer-events: none;
    margin-left: -24px;
    /* 创建向下的三角形箭头 */
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 24px solid #ffffff;
    /* 添加阴影效果 */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    z-index: 1000;
}

/* 为 tipcard 添加内部阴影效果 */
.tipcard::before {
    content: '';
    position: absolute;
    top: -22px;
    left: -22px;
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid #ffffff;
    z-index: -1;
}
