.top {
    width: 100%;
    height: 10.4167vw;
    background: url(logobj.png) no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1.5vw;
}

.logo {
    height: 7.2917vw;
    margin: auto;
    width: 67.7083vw;
}

.logo img {
    margin-top: 1.8229vw;
    width: 35.625vw;
    height: 3.5938vw;
    object-fit: contain;
}

.nav {
    width: 100%;
    height: 3.125vw;
    background-color: #721170;
    position: relative;
    z-index: 10;
}

.navli {
    width: 67.7083vw;
    height: 3.125vw;
    max-width: 100%;
    padding: 0 0.5208vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: stretch;
    border-left: 0.0521vw solid #7f207d;
    border-right: 0.0521vw solid #7f207d;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-item {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    position: relative;
    text-align: center;
    min-height: 3.125vw;
    border-left: 0.0521vw solid #7f207d;
    list-style: none;
}

.nav-item a {
    color: #fff;
    font-size: 0.9375vw;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-item:first-child {
    border-left: none;
}

.nav-item:hover {
    color: #ded1de;
    transform: translateY(-0.1042vw);
    z-index: 2;
    box-shadow: 0 0.2083vw 0.625vw rgba(127, 32, 125, 0.15);
}

.nav-item:hover a {
    color: #ded1de;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 8vw;
    height: 8vw;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    z-index: 101;
    gap: 0.8vw;
    padding: 1vw;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 6vw;
    max-width: 36px;
    height: 0.6vw;
    max-height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(2.1vw) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-2.1vw) rotate(-45deg);
}

.footer {
    width: 100%;
    height: 2.6042vw;
    background-color: #721170;
    color: rgba(255, 255, 255, 0.6);
    line-height: 2.6042vw;
    text-align: center;
    font-size: 0.8333vw;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.1em;
    margin-top: auto;
    flex-shrink: 0;
	margin-top:  2.6042vw;
}

@media screen and (max-width: 768px) {
	.top {
	    position: relative;
	    z-index: 1000;   /* 高于菜单的 999 */
	}
    .top {
        height: auto;
        min-height: 18vw;
        background-size: cover;
        padding: 1.5vw 0;
    }

    .top-inner {
        padding: 0 4vw;
        flex-wrap: nowrap;
        height: auto;
        min-height: 14vw;
    }

    .logo {
        flex: 0 1 auto;
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .logo img {
        margin-top: 0;
        width: 50vw;
        max-width: 300px;
        height: auto;
        max-height: 12vw;
        object-fit: contain;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        height: auto;
        min-height: 0;
        background-color: #721170;
    }

    .navli {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
        display: block;
    }

    /* 移动端：全屏右侧滑入菜单（头部保留） */
    .nav-bar {
        position: fixed;
        top: 60px;                     /* 先设为 0，JS 会动态更新为头部高度 */
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(114, 17, 112, 0.95); /* 半透明背景，可调整 */
        flex-direction: column;
        justify-content: flex-start;    /* 菜单项垂直居中 */
        align-items: center;
        gap: 2vh;
        z-index: 999;               /* 比头部低，头部 z-index 设为 1000+ */
        transform: translateX(100%); /* 初始在右侧外 */
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.3s ease;
        pointer-events: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .nav-bar.open {
        transform: translateX(0);   /* 滑入视野 */
        opacity: 1;
        pointer-events: auto;
    }
    
    /* 菜单项样式 */
    .nav-item {
        flex: none;
        width: 80%;
        max-width: 300px;
        min-height: auto;
        border: none;
        border-bottom: 0.2vw solid rgba(255, 255, 255, 0.1);
        padding: 2vh 0;
        background-color: transparent;
        text-align: center;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item a {
        font-size: 5vw;
        white-space: normal;
        letter-spacing: 0.1em;
        color: #fff;
        padding: 1vh 0;
        display: block;
        width: 100%;
    }
    
    .nav-item:active {
        background-color: rgba(255, 255, 255, 0.15);
        transform: scale(0.96);
    }

    .nav-item {
        flex: none;
        width: 100%;
        min-height: 14vw;
        border-left: none;
        border-bottom: 0.2vw solid rgba(255, 255, 255, 0.08);
        padding: 1vw 2vw;
        justify-content: center;
        background-color: transparent;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item a {
        font-size:18px;
        white-space: nowrap;
        letter-spacing: 0.05em;
        padding: 1vw 0;
        width: 100%;
        text-align: center;
    }

    .nav-item:first-child {
        border-left: none;
    }

    .nav-item:active {
        background-color: rgba(255, 255, 255, 0.12);
        transform: scale(0.98);
    }

    .nav-item:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-item:hover a {
        color: #fff;
    }

    .nav-bar {
        border-left: none;
        border-right: none;
    }

    .footer {
        height: auto;
        min-height: 14vw;
        line-height: 1.6;
        padding: 3vw 4vw;
        font-size: 3.2vw;
        letter-spacing: 0.05em;
    }

    @media screen and (max-width: 480px) {
       

        .logo img {
            width: 100%;
            max-height: 20vw;
        }

        .nav-item a {
            font-size:16px;
        }

        .footer {
            font-size: 3.6vw;
            padding: 4vw 4vw;
        }

        .hamburger {
            width: 10vw;
            height: 10vw;
            gap: 1vw;
        }

        .hamburger span {
            width: 7vw;
            height: 0.8vw;
        }
    }
}

@media screen and (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

.nav-bar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.top {
    background-color: #f5f0f5;
}