* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    background-image: url(../image/bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    font-family: "Microsoft YaHei", sans-serif;
    overflow: hidden;
    position: relative;
}

.header-bg{
    height: 90px;
    background: url(../image/header_bg.png) no-repeat center center;
    background-size: 100% auto;
    position: relative;
    z-index: 12;
}

/* 顶部标题 */
.header-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    color: #fff;
    z-index: 10;
}

/* 主容器 - 左右对称布局 */
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 70px 80px 10%;
    gap: 40px;
    margin-top: -50px;
}

/* ========== 左侧盒子 box.png 图片 ========== */
.left-card {
    flex: 0 0 35%;
    height: 70vh;
    background-image: url("../image/box.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    position: relative;
    align-self: center;
    padding: 0;
    border: none;
    border-radius: 8px;
}

/* 文字内容容器 */
.text-wrapper {
    position: absolute;
    top: 6%;
    left: 6%;
    width: 90%;
    height: 90%;
    overflow-y: auto;
    padding-right: 10px;
    display: block; 
}

/* 滚动条美化 */
.text-wrapper::-webkit-scrollbar {
    width: 6px;
}
.text-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 195, 255, 0.5);
    border-radius: 3px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    width: 100%;
}

/* 网点内容样式（宽松饱满） */
.card-content {
    font-size: 14px;
    line-height: 2.2;
    color: #d0e8ff;
    width: 100%;
}
.card-content p {
    text-indent: 2em;
    word-wrap: break-word;
    margin-bottom: 16px;
}

/* 默认内容专属样式（紧凑小行高、小间距） */
.card-content.default-style {
    line-height: 1.6 !important;
}
.card-content.default-style p {
    margin-bottom: 6px !important;
}

/* 右侧地图容器 */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* PNG地图图片 */
.map-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
}

/* 定位点容器 */
.location-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: translateX(-8%);
}

.marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: end;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 默认全部激活高亮 */
.marker-icon {
    width: 48px;
    height: 68px;
    background: url('../image/location_active.png') no-repeat center;
    background-size: contain;
    /* 跳动动画 */
    animation: markerBounce 1.5s infinite ease-in-out;
    /* 让动画更流畅 */
    transform-origin: center bottom;
}

/* 定义上下跳动关键帧 */
@keyframes markerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px); /* 向上跳 8px，可自行调整 */
    }
}

.marker-label {
    border: 1px solid #22c7e1;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(7, 108, 153, 0.7);
    padding: 3px 6px;
    margin-bottom: 8px;
    white-space: nowrap;
    margin-left: -10px;
    transition: all 0.3s ease;
}

/* 未选中状态：图标+文字灰色 */
.marker.normal .marker-icon {
    background: url('../image/location.png') no-repeat center;
    background-size: contain;
}
.marker.normal .marker-label {
    background: rgba(100, 100, 100, 0.6);
    border-color: #999;
}

/* 选中状态：高亮 */
.marker.active .marker-icon {
    background: url('../image/location_active.png') no-repeat center;
    background-size: contain;
}
.marker.active .marker-label {
    background: rgba(7, 108, 153, 0.7);
    border-color: #22c7e1;
}

.footer-buttons {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
}

/* 按钮统一尺寸 157px × 44px */
.btn {
    width: 157px;
    height: 44px;
    border: none;
    background-color: transparent;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    font-style: italic;
}

.btn-info, .btn-history {
    background-image: url('../image/b_btn_bg.png');
}

.btn-back {
    background-image: url('../image/y_btn_bg.png');
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        padding: 60px 20px 80px 20px;
    }
    .left-card {
        flex: 0 0 200px;
        width: 100%;
        height: auto;
    }
    .header-title {
        font-size: 1.8rem;
    }
}