.wrapper_product{
    background: #ffffff;
    min-width: 100%;
    min-height: calc(100vh - 76px);
}

.col-2 {
    border-right: 1px solid rgba(232, 234, 239, 1);
    padding-right: 0;
}

/* 修改侧边栏样式，添加最大高度和滚动 */
#sidebar {
    padding: 0;
    position: absolute;
    left: 10px;
    top: 80px;
    z-index: 999;
    /* 关键修改：限制最大高度为屏幕高度减去顶部和底部预留空间 */
    max-height: calc(100vh - 80px); /* 160px是顶部80px + 底部80px的预留空间 */
    overflow-y: auto; /* 当内容超过最大高度时显示垂直滚动条 */
    width: 200px; /* 固定宽度，确保内容不会溢出 */
}

/* 优化滚动条样式（可选） */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.nav-item-li .active {
    background: rgba(119, 216, 241, 0.8);
}

.nh-map {
    position: relative;
    width: 90px;
    height: 120px;
    bottom: 180px;
    left: 700px;
    right: 100px;
    background: url(/static/media/nanhai.jpg) no-repeat 50%;
    background-size: 100% 100%;
}

.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: #77D8F1;
    background-color: #77D8F1;
}


.custom-control-label {
    font-size: 1.3vw;
    line-height: 1.7vw;
}


.anchorBL img {
    display: none;
}

.BMap_cpyCtrl.anchorBL span {
    display: none !important;
}

.expand_btn {
    width: 50px;
    position: absolute;
    top: 49%;
    left: 0%;
    z-index: 1000;
}

.collapse_btn{
    width: 100px;
    position: absolute;
    top: 15%;
    left: 0%;
    z-index: 1000;
}

.collapsed {
    display: none;
}

.form_collapsed {
    margin: 0 auto;
    margin-top: 2%;
    margin-bottom: 2%;
}

.form_expand {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2%;
    margin-bottom: 2%;
}

.img_collapsed {
    width: 80%;
    margin-top: 3%;
}

.img_expand {
    width: 70%;
    margin-top: 3%;
}

.img_season_collapsed {
    width: 80%;
    margin-top: 1%;
}

.img_season_expand {
    width: 70%;
    margin-top: 1%;
}

#collapse_btn:hover {
  cursor: pointer;
}

.altrowstable {
    font-family: verdana,arial,sans-serif;
    font-size:11px;
    color:#333333;
    border-width: 1px;
    border-color: #a9c6c9;
    border-collapse: collapse;
}
.altrowstable th {
    padding: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
}
.altrowstable td {
    border-width: 1px;
    padding: 12px;
    border-style: solid;
    border-color: #a9c6c9;
}
.oddrowcolor{
    font-size: 14px;
    text-align: center;
    font-weight: 200;
}
.evenrowcolor{
    background-color:#c3dde0;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    font-weight: 400;
}


/* 确保导航项在滚动时正常显示 */
.nav-item-li {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    margin-bottom: 3px;
    /* 防止导航项被截断 */
    box-sizing: border-box;
}
.nav-item-a {
    display: flex;
    align-items: center;
    height:100%;
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 50px;
    padding-left: 0px;
    background: rgb(0 0 0 / 62%);
}

.nav-item-a-div {
    height: 34px;
    width: 34px;
    border-radius: 50px;
    margin-right:10px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item-a-img {
    max-width: 55%;
    /* object-fit: cover; */
    max-height: 55%;
}


.nav-item-a-span {
    margin-left: 1px;
    color: #ffffff;
    font-weight: 900;
}


/* 响应式调整：在特别小的屏幕上进一步优化 */
@media screen and (max-height: 600px) {
    #sidebar {
        max-height: calc(100vh - 120px); /* 进一步减少预留空间 */
        width: 180px; /* 适当缩小宽度 */
    }

    .nav-item-a-span {
        font-size: 14px; /* 缩小文字大小 */
    }
}
