/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主体 */
body {
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg/bggg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

/* 地图组：包裹层，用于标题绝对定位的参考 */
.map-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1440px;
    height: 900px;
}

/* 标题栏：绝对定位，水平居中，悬浮在地图顶部上方 */
.titlsss {
    position: absolute;
    width: 400px;
    height: 100px;
    left: 340px;
    transform: translateX(-50%);
    top: 30px;   /* 标题底部与地图顶边重叠约57px，自然过渡 */
    z-index: 15;
    background-image: url('../img/bg/titless.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

/* 核心固定区域：1440x900，充满 map-stack，不设 z-index 避免形成独立层叠上下文 */
.main-container {
    width: 1440px;
    height: 900px;
    background-image: url('../img/bg/map.png');
    background-size: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 6px solid rgb(114, 172, 163);
}

/* 可点击的点位样式 */
.click-point {
    width: 40px;
    height: 56px;
    background-image: url('../img/pin.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 0;
    position: absolute;
    cursor: pointer;
    /* 以尖端（bottom-center）为定位原点 */
    transform: translate(-50%, -100%);
    transform-origin: center bottom;
    transition: transform 0.25s ease, filter 0.25s ease;
    z-index: 10;
}

.click-point:hover {
    transform: translate(-50%, -100%) scale(1.25);
    filter: drop-shadow(0 4px 8px rgba(200, 20, 20, 0.55));
}

.click-point:active {
    transform: translate(-50%, -100%) scale(0.9);
    filter: drop-shadow(0 2px 4px rgba(200, 20, 20, 0.4));
}

/* 标点标题标签 */
.pin-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    white-space: nowrap;
    text-align: left;
    background: rgba(15, 8, 3, 0.82);
    color: #f5e8c8;
    font-size: 13px;
    font-family: '宋体', serif;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 15;
    line-height: 2;
    border: 1px solid rgba(180, 130, 60, 0.4);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* 多菜单标签：稍宽一些 */
.pin-label.has-menu {
    padding: 0;
    min-width: 120px;
}

.pin-label.has-menu .pin-label-title {
    font-size: 12px;
    color: rgba(180, 140, 70, 0.9);
    padding: 5px 12px 4px;
    border-bottom: 1px solid rgba(180, 130, 60, 0.35);
    letter-spacing: 0.12em;
    text-align: center;
}

.pin-label.has-menu .pin-label-items {
    padding: 4px 12px 7px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pin-label.has-menu .pin-label-item {
    font-size: 13px;
    color: #f0e0bb;
    line-height: 1.85;
    padding-left: 10px;
    position: relative;
}

.pin-label.has-menu .pin-label-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgba(220, 120, 60, 0.8);
    font-size: 11px;
    top: 2px;
}

.click-point:hover .pin-label,
.click-point.active .pin-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.click-point:hover,
.click-point.active {
    filter: drop-shadow(0 4px 10px rgba(200, 20, 20, 0.7));
    transform: translate(-50%, -100%) scale(1.15);
    z-index: 19;
}

/* 遮罩层 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mask.show {
    display: flex;
    opacity: 1;
}

/* 弹窗层 */
.popup {
    width: 1280px;
    height: 700px;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}

.mask.show .popup {
    transform: scale(1);
    opacity: 1;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ce5858;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    z-index: 120;
}

.close-btn:hover {
    background-color: #f56d6d;
}

/* 菜单列表：2列布局 */
.menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 90%;
    padding: 20px 0;
}

/* 菜单项 */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.menu-item:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 菜单图片容器 */
.menu-img {
    width: 380px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 菜单文字 */
.menu-text {
    font-size: 16px;
    color: #333;
    text-align: center;
    font-weight: 500;
    padding: 0 10px;
}

/* 右侧滑出层 */
.slide-panel {
    position: absolute;
    top: 0;
    right: -720px;
    width: 720px;
    height: 100%;
    background-image: url('../img/bg/xbg.png');
    background-repeat: no-repeat;
    background-size: 100% 98%;
    z-index: 20;
    transition: right 0.5s ease;
    padding: 50px;
    padding-top: 70px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
}

/* 滑出层图片容器 */
.blue-area {
    height: 350px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

/* 标题栏 */
.titlebar {
    font-weight: bolder;
    font-size: 20px;
    color: #212121;
    margin-bottom: 20px;
}

/* 文字滚动区域 */
.scroll-text {
    flex: 1;
    overflow: hidden;
    position: relative;
    color: #636363;
    font-size: 14px;
    font-family: "微软雅黑";
}

.scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: pre-wrap;
    line-height: 1.8;
    padding-bottom: 40px;
    will-change: transform;
    /* 动画由 JS RAF 驱动，这里不设置 animation */
}
