
/* 页面专属样式，全站风格统一，柔和公益橙红主色 */
.container{
    width: 98%;
    max-width: 1510px;
    box-sizing: border-box;
    margin: 0px auto;
    padding: 20px 0px;
}
/*查询筛选按钮*/
#filterSubmitBtn{
    flex: 1;
    border-radius: 6px;
    padding: 0;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    box-shadow: 0 5px 18px rgba(255, 107, 107, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    width: auto;
    height: 30px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}
#filterSubmitBtn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7043);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
}
#filterResetBtn{
    flex: 1;
    border-radius: 6px;
    padding: 0;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    box-shadow: 0 5px 18px rgba(255, 107, 107, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    width: auto;
    height: 30px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}
#filterResetBtn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7043);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
}

.map-main-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin: 30px 0;
}
.map-filter-side {
    background: #fff8f2;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.map-canvas-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    min-height: 520px;
}
#chinaMap {
    width: 100%;
    height: 480px;
}
.stat-card-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:16px;
    margin:20px 0;
}
.stat-card {
    background:#fff8f2;
    text-align:center;
    padding:16px;
    border-radius:10px;
}
.stat-num {
    font-size:28px;
    color:#ff784f;
    font-weight:bold;
}
.missing-grid {
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:20px;
    margin:24px 0;
}
.missing-card {
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #eee;
}
.missing-card img {
    width:100%;
    height:180px;
    object-fit:cover;
}
.missing-card-info {
    padding:12px;
}
.missing-card-name {
    font-size:18px;
    font-weight:bold;
    color:#333;
}
.missing-card-text {
    font-size:14px;
    color:#666;
    margin:4px 0;
}
.filter-item {
    margin-bottom:16px;
}
.filter-item label {
    display:block;
    font-weight:bold;
    margin-bottom:6px;
    color:#444;
}
.filter-item select {
    width:100%;
    padding:8px 10px;
    border:1px solid #ddd;
    border-radius:6px;
}
.filter-btns {
    display:flex;
    gap:10px;
    margin-top:20px;
}
.empty-tip {
    text-align:center;
    padding:60px 20px;
    color:#888;
    font-size:16px;
}
.page-btn-box {
    display:flex;
    justify-content:center;
    gap:10px;
    margin:30px 0;
}
@media(max-width:992px){
    .page-btn-box {
        gap:10px;
    }
    .page-btn {
        min-width:80px;
        padding:9px 12px;
        font-size:14px;
    }
    .map-main-wrap {
        grid-template-columns:1fr;
    }
    /* 手机端取消sticky，彻底消除和地图canvas冲突 */
    .map-filter-side {
        position: static !important;
    }
    .stat-card-row {
        grid-template-columns: repeat(2,1fr);
    }
    .missing-grid {
        grid-template-columns: repeat(2,1fr);
    }
    #chinaMap {
        height:360px;
    }
}

/* ========== 全站统一卡片悬浮、阴影、圆角、粉色底色规范（匹配公益祝福墙/捐赠页风格） ========== */
/* 顶部标题介绍卡片 */
.page-header-card {
    background: #fff8f2;
    border: 1px solid #f9ccd7;
    border-radius: 14px;
    padding: 30px 20px;
    margin-bottom: 40px;
    margin-top: 27px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    text-align: center;
}
.page-header-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.page-header-card h1{
    text-align: center;
    font-size: 28px;
    color: #c0392b;
    margin: 0 0 10px 0;
    font-weight: bold;
}
/* 搜索框容器 */
.search-wrap {
    max-width: 520px;
    margin: 20px auto;
    display: flex;
    gap: 8px;
}
#mapSearchInput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
}
#mapSearchInput:focus {
    outline: none;
    border-color: #ff784f;
    /* 表单控件不参与版块阴影统一，保持原样 */
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 5px 15px rgba(255, 122, 147, 0.75);
}
#mapSearchBtn {
    background:#ff784f;
    color:#fff;
    border:none;
    padding:0 20px;
    border-radius:8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#mapSearchBtn:hover {
    background: #ff5c33;
    transform: translateY(-2px);
    /* 按钮不参与版块阴影统一，保持原样 */
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 5px 15px rgba(255, 122, 147, 0.75);
}
/* 统计卡片统一hover浮动 */
.stat-card {
    background:#fff8f2;
    text-align:center;
    padding:16px;
    border-radius:10px;
    border: 1px solid #f9ccd7;
    box-shadow: 0 4px 16px rgba(255, 120, 79, 0.22);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
/* 左侧筛选面板统一卡片样式 */
.map-filter-side {
    background: #fff8f2;
    border: 1px solid #f9ccd7;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    min-height: 527px;
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}
.map-filter-side:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
/* 地图画布白色卡片 */
.map-canvas-box {
    background: #fff;
    border: 1px solid #ffe0e0;
    border-radius: 12px;
    padding: 20px;
    min-height: 520px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}
.map-canvas-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
/* 寻人单张卡片统一hover浮动 */
.missing-card {
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #ffe0e0;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}
.missing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
/* 底部公益声明板块卡片 */
.bottom-notice-card {
    margin:30px 0;
    padding:30px;
    background:#fff8f2;
    border-radius:12px;
    border: 1px solid #f9ccd7;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    text-align: center;
}
.bottom-notice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.bottom-notice-card h3{
    text-align: center;
    font-size: 28px;
    color: #c0392b;
    margin: 0 0 10px 0;
    font-weight: bold;
}
/* 结果标题区域 */
.result-header {
    margin:30px 0 10px;
}
#resultTitle {
    font-size:20px;
    color:#333;
}
#resultTotalTip {
    color:#777;
}
/* 底部链接样式 */
.notice-link-group {
    margin-top:20px;
    display:flex;
    gap:16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.notice-link-group a {
    align-self: center;
    display: inline-block;
    padding: 12px 32px;
    background: #e74c3c;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
}
.notice-link-group a:hover {
  background: #c0392b;
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
  transform: translateY(-2px);
}
/* 地图底部小字说明 */
.map-desc-tip {
    text-align:center;
    margin-top:12px;
    color:#777;
    font-size:14px;
}
/* 空提示内部按钮 */
.empty-tip a {
    display:inline-block;
    margin-top:12px;
    background:#ff784f;
    color:#fff;
    padding:8px 20px;
    border-radius:6px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.empty-tip a:hover {
    background: #ff5c33;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 120, 79, 0.3);
}

/* ========== 修复移动端地图滚动重叠BUG ========== */
.map-main-wrap {
    /* 创建独立堆叠上下文，锁定内部所有元素图层边界 */
    position: relative;
    z-index: 1;
}
.map-canvas-box {
    position: relative;
    /* 强制地图卡片图层高于普通文档流，防止向上穿透 */
    z-index: 2;
}
#chinaMap {
    position: relative;
    z-index: 2;
    /* 触发浏览器单独图层渲染，解决canvas滚动穿透 */
    will-change: transform;
}

/*分页按钮统一样式，匹配全站橙红公益风格*/
.page-btn-box {
    display:flex;
    justify-content:center;
    gap:14px;
    margin:30px 0;
}
.page-btn {
    min-width:96px;
    padding:10px 16px;
    border:none;
    border-radius:8px;
    font-size:15px;
    cursor:pointer;
    color:#fff;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
    transition: all 0.25s ease;
}
.page-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7043);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.5);
}
/*禁用状态样式*/
.page-btn.page-btn-disabled {
    cursor: default;
    transform: none;
    box-shadow: none;
    background:#e2e2e2;
    color: #666;
}
.page-btn.page-btn-disabled:hover {
    transform:none;
    box-shadow:none;
    background:#e2e2e2;
}

/* ================= 响应式补充：平板 / 手机 =================
   新增日期：2026-10-21
   说明：原文件只有 992px 断点，这里补齐平板与手机细节（地图高度、找人格栅、分页按钮），PC 端不变
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .map-main-wrap {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .stat-card-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .missing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .missing-card img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 12px 0;
    }
    .page-header-card {
        padding: 20px 14px;
        margin: 0 0 24px 0;
    }
    .page-header-card h1 {
        font-size: 22px;
        line-height: 1.4;
    }
    .search-wrap {
        max-width: 100%;
        margin: 14px 0;
    }
    #mapSearchBtn {
        padding: 0 14px;
        white-space: nowrap;
    }
    .map-main-wrap {
        gap: 16px;
        margin: 18px 0;
    }
    .map-filter-side {
        min-height: 0;
        padding: 14px;
    }
    .map-canvas-box {
        padding: 10px;
        min-height: 0;
    }
    #chinaMap {
        height: 300px;
    }
    .stat-card-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 14px 0;
    }
    .stat-card {
        padding: 12px 8px;
    }
    .stat-num {
        font-size: 22px;
    }
    /* 找人格栅手机端单列，图片高度收窄 */
    .missing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 18px 0;
    }
    .missing-card img {
        height: 200px;
    }
    .missing-card-name {
        font-size: 16px;
    }
    .missing-card-text {
        font-size: 13px;
    }
    .bottom-notice-card {
        padding: 18px 14px;
        margin: 20px 0;
    }
    .bottom-notice-card h3 {
        font-size: 20px;
    }
    .notice-link-group {
        gap: 10px;
    }
    .notice-link-group a {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 18px;
        font-size: 14px;
        text-align: center;
    }
    .page-btn-box {
        gap: 8px;
        margin: 20px 0;
    }
    .page-btn {
        min-width: 72px;
        padding: 9px 12px;
        font-size: 14px;
    }
    .filter-btns {
        margin-top: 12px;
    }
    .map-desc-tip {
        font-size: 12.5px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    #chinaMap {
        height: 260px;
    }
    .page-header-card h1 {
        font-size: 19px;
    }
    .stat-num {
        font-size: 20px;
    }
    .missing-card img {
        height: 180px;
    }
}
