* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 清除p标签默认边距，避免影响banner文字排版 */
p {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* Banner标题核心样式（大屏默认） */
.banner-title {
    position: absolute;
    top: 67%;
    left: 7.2%;
    transform: translate(10%, -50%);
    z-index: 10;
    color: white;
    font-family: "Source Han Serif SC", "Microsoft Yahei", "PingFang SC", sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 4px;
}

/* Banner标题移动端适配（屏幕<1024px） */
@media (max-width: 1023px) {
    .banner-title {
        top: 80%;
        left: 5%;
        transform: translateY(-50%);
        /* 简化移动端transform，仅垂直居中 */
        font-size: 2rem;
        /* 移动端字号缩小 */
        letter-spacing: 2px;
        /* 移动端字间距缩小 */
        line-height: 1.2;
        /* 移动端行高调整，提升可读性 */
    }
}

/* 全局滚动平滑 */
html {
    scroll-behavior: smooth;
}

/* 标题区域样式（大屏保留） */
.page-py-120 {
    padding-top: 99px;
    padding-bottom: 99px;
}

.page-py-120 h2 {
    font-size: 40px;
    color: #8b572a;
    line-height: 1.8;
    text-align: center;
}

/* 全球门店图片样式（大屏保留）- 取消固定高度，让图片自然展示 */
.global {
    width: 100%;
}

.global img {
    width: 100%;
    height: auto;
    /* 关键：图片高度自适应，不裁剪 */
    display: block;
    /* 消除图片底部空白 */
}

/* ========== 大屏筛选布局（完全保留，无修改） ========== */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    /* 大屏横向布局 */
    padding: 50px 20px;
}

.left-panel {
    width: 350px;
    padding: 0 10px;
}

.left-panel h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
}

.search-btn {
    padding: 8px 20px;
    background-color: #8b572a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.locate-btn {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* 单个门店项基础样式 */
.store-list-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.store-list-item:last-child {
    border-bottom: none;
}

.store-list-item h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.store-list-item p {
    font-size: 0.9rem;
    color: #666;
}

.right-panel {
    flex: 1;
    padding: 0 10px;
}

.map-card {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* 新增：确保地图容器定位正常 */
}

#map {
    width: 100%;
    height: 100%;
    min-height: 100%;
    /* 新增：确保高度继承 */
}

/* ========== 移动端适配规则（核心修复） ========== */
/* 平板端适配（1024px及以下） */
@media (max-width: 1024px) {

    /* 强制容器为纵向布局 */
    .container {
        flex-direction: column;
        /* 移动端上下结构 */
        padding: 20px 5%;
        max-width: 100%;
    }

    /* Banner适配 */
    .banner {
        height: auto;
        min-height: 200px;
    }

    /* .banner-title {
        top: 80%;
        left: 5%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        letter-spacing: 2px;
        line-height: 1.2;
    } */

    /* 标题区域适配 */
    .page-py-120 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .page-py-120 h2 {
        font-size: 2rem;
        line-height: 1.5;
        padding: 0 5%;
    }

    /* 全球门店图片适配 */
    .global {
        width: 100%;
        padding: 0 3%;
    }

    .global img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 左侧筛选栏全屏宽 */
    .left-panel {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    /* 移动端门店列表滚动 */
    #store-list {
        max-height: 250px;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: thin;
        scrollbar-color: #8b572a #f5f5f5;
    }

    /* 滚动条美化 */
    #store-list::-webkit-scrollbar {
        width: 4px;
    }

    #store-list::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 2px;
    }

    #store-list::-webkit-scrollbar-thumb {
        background-color: #8b572a;
        border-radius: 2px;
    }

    /* 右侧地图面板全屏宽 */
    .right-panel {
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }

    /* 地图容器关键修复：强制高度生效 */
    .map-card {
        width: 100% !important;
        height: 400px !important;
        /* 强制高度 */
        min-height: 400px !important;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    #map {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        /* 修复Leaflet定位问题 */
        z-index: 1 !important;
    }
}

/* 手机端适配（768px及以下） */
@media (max-width: 768px) {
    .banner-title {
        font-size: 1.8rem;
        left: 7%;
        top: 70%;
    }

    .page-py-120 h2 {
        font-size: 1.5rem;
    }

    .global {
        padding: 0 2%;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 0 0 45%;
        margin-bottom: 10px;
    }

    #store-list {
        max-height: 200px;
    }

    .map-card {
        height: 350px !important;
        min-height: 350px !important;
    }
}