.section-bg{padding-top:63px}
.footer{margin-top:10px}
.loading{padding:0}

.zuoyou{
    display:flex;
    flex-direction:column;
    height:calc(100vh - 156px);
    overflow:hidden;
}

/* 侧边栏 配色重构：沉稳深蓝系 */
.sidebar{
    width:300px;
    max-height:100vh;
    position:relative;
    top:0;
    left:0;
    overflow-y:auto;
    box-shadow:2px 0 10px rgba(0,0,0,.12);
    z-index:9;
    transform:translateY(-100%);
    transition:transform .3s ease;
}
.sidebar.show{transform:translateY(0)}
.sidebar-header{
    padding:15px 20px;
    background-color:#34547a;
    text-align:center;
}
.sidebar-header h2{
    font-size:18px;
    color:#fff;
    margin:0;
}
.sidebar-menu{padding:10px}

.historical-period {
    margin-bottom: 10px;
    border-radius: 6px;
    /* background-color: #52739b; */
    overflow: hidden;
    transition: all .3s ease;
}
.historical-period:hover{box-shadow:0 2px 8px rgba(0,0,0,.18)}
.period-title {
    padding: 8px 16px;
    background-color: #ddd;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.period-title2 {
    padding: 10px 16px;
    background-color: #4c6c94;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.period-title2 a{
    color:#e8edf2;
    text-decoration:none;
}
.period-title2 a:hover{color:#fff}

.period-title::after{
    content:"+";
    transition:transform .3s ease;
    font-size:20px;
}
.period-title.active::after{transform:rotate(45deg)}
/*.period-title.active{background-color:#2b4261}*/
.period-title.active:hover{

    background-color: #c3c3c3;

}
.map-list{
    list-style:none;
    margin:0;
    padding:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
}
.map-list.show {
    max-height: 60vh;
    border-bottom: 1px solid #c7c7c7;
    border-left: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}
.map-item {
    padding: 0;
    /* border-bottom: 1px solid #4a607a; */
}
.map-item:last-child{border-bottom:none}
.map-link {
    /* color: #e8edf2; */
    display: block;
    padding: 8px 15px;
    text-decoration: none;
}
.map-link:hover{
    background-color:#eee;
    color:#000;
    padding-left:20px;
}
.map-link.active {
    /* background-color: #3e5775; */
    font-weight: 700;
    color: #444;
}

/* 主图区 */
.main-content{
    margin-left:0;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}
/* 全屏样式：整个主内容区铺满，按钮组随之进入全屏 */
.main-content:fullscreen,
.main-content:-webkit-full-screen{
    width:100%;
    height:100%;
    background:#f2f4f7;
}
.image-viewer{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    position:relative;
}
/* 十字定位线 浅灰，不再刺眼红色 */
.image-viewer::before,.image-viewer::after{
    content:'';
    position:absolute;
    background-color:rgba(120,130,145,0.45);
    z-index:10;
    pointer-events:none;
}
.image-viewer::before{
    width:1px;
    height:20px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}
.image-viewer::after{
    width:20px;
    height:1px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}
.map-image{
    position:absolute;
    top:50%;
    left:50%;
    max-height:85%;
    max-width:85%;
    transform:translate(-50%,-50%) scale(1);
    transition:transform .3s ease;
    cursor:grab;
}
.map-image.loading{opacity:.5;cursor:wait}
.map-image:active{cursor:grabbing}

/* 左上角信息浮层 */
.viewer-info{
    position:absolute;
    top:12px;
    left:12px;
    z-index:8;
    max-width:300px;
    background:rgba(15,25,40,.62);
    color:#fff;
    padding:10px 14px;
    border-radius:6px;
    pointer-events:none;
}
.viewer-info-title{
    font-size:14px;
    font-weight:700;
    line-height:1.4;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.viewer-info-meta,.viewer-content{
    font-size:12px;
    margin-top:4px;
    opacity:.88;
    white-space:nowrap;
}

/* 底部操作按钮组 贴main底部居中 */
.ls-button{
    position:absolute;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    z-index:9;
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    width:100%;
}
.btn-common{
    background-color:#34547a;
    color:#f7f7f7;
    border:none;
    border-radius:4px;
    font-size:14px;
    padding:6px 12px;
    display:inline-block;
    line-height:1.5;
    cursor:pointer;
    text-align:center;
    text-decoration:none;
    transition:background .22s ease;
}
.btn-common:hover{background-color:#4c6c94;color: #ffffff;}
.btn-piliang{background-color:#34547a}
.btn-danzhang{background-color:#06cd65}
.btn-danzhang.huang{
    background-color: #ef832c;
    border: 2px solid #efba2c;
}
.btn-danzhang.huang:hover {

    border: 2px solid #c17b32;
}
.prev-next.disabled{
    background-color:#8894a3;
    cursor:not-allowed;
    opacity:.8;
    pointer-events:none;
}

/* 全局提示tooltip */
.tooltip{
    position:absolute;
    top:16px;
    left:50%;
    transform:translateX(-50%);
    background-color:rgba(15,25,40,.68);
    color:#fff;
    padding:8px 15px;
    border-radius:4px;
    z-index:99;
    opacity:0;
    transition:opacity .3s;
    text-align:center;
    pointer-events:none;
}
.tooltip.show{opacity:1}

/* 下载 */

        .ditu_jiage{padding:10px 0;font-size:16px;}
        .ditu_down{margin-top:15px;}
        .tip-container{display:inline-block;margin-left:6px;position:relative;}
        .tip-content{display:none;position:absolute;left:20px;top:0;background:#333;color:#fff;padding:6px 10px;border-radius:4px;z-index:999;white-space:nowrap;font-size:12px;}
        .trigger-element:hover + .tip-content{display:block;}
        dialog::backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);}
		.download-btn {width: 200px;}





.btn-full{background-color:#5a7a9e}
.btn-full:hover{background-color:#43617f}


.image-viewer:fullscreen,
.image-viewer:-webkit-full-screen{
    width:100%;
    height:100%;
    background:#f2f4f7;
}

/* PC大屏 */
@media (min-width:768px){
    .main-content{width:calc(100% - 300px)}
    .zuoyou{flex-direction:row}
}



/* 移动端 */
@media (max-width:767px){
    .main-content{width:100%}
    .btn-common{font-size:13px;padding:6px 10px}
    .historical-period{margin-bottom:6px}
    .footer,.links{display:none}
    .period-title{padding:6px 20px}
    .sidebar{width:100%;max-height:300px}
    .map-link{font-size:14px}
    .zuoyou{
        flex-direction:column;
        height:100vh;
    }
    .viewer-info{
        max-width:100%;

        left:0;
        padding:8px 12px;
    }
    .viewer-info-title{font-size:13px}
    .tooltip{display:none;}
	.rollbar{display:none;}
}