
.main_item {
    width: 100%;
}


/* 响应式字体大小 */
h1 {
    font-size: 1.8rem; /* 基于根字体大小缩放 */
    line-height: 1.3;
    margin-bottom: 1em;
}

/* 菜单容器 */
.nav-menu {
    position:relative; /* 固定定位关键属性 */
    top: 0;
    left: 0;
    width: 100%;
    min-width: 345px;
    z-index: 1000;
    text-align: center;
    /* background: #2c3e50; */
}

.nav-menu li {
    /* display: contents; */
    list-style: none;
    margin: 5px 0px;
    border-top: 0px solid #475b6d; /* 分隔线 */
    background: #2c3e50;
}

/* 菜单链接 */
.nav-menu a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 20px;

}




