/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}
a { 
    text-decoration: none;
    color:rgba(2, 34, 138, 1);
}
/* 主页面内容 */
.main-content {
    color: white;
    transition: transform 0.3s ease-out;
}

/* 侧边栏打开时主页面的偏移 */
.main-content.sidebar-open {
    transform: translateX(-75%);
}

/* 顶部导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5.0667vw;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2.6667vw;
}
.logo-image{
    width: 8.2667vw;
    height: 8.2667vw;
}

.logo-text {
    font-size:4vw;
    font-weight: bold;
    color: white;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2.6667vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-image{
    width: 6.1333vw;
    height: 6.1333vw;
}
/* 侧边栏导航菜单 - 修改为从右侧滑出 */
.sidebar {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 5.3333vw;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out;
}

/* 侧边栏打开状态 */
.sidebar.open {
    transform: translateX(-100%);
}

/* 关闭按钮 */
.close-btn {
    align-self: flex-end;
    cursor: pointer;
    padding: 2.6667vw;
    margin-bottom: 5.3333vw;
} 
/* 导航菜单 */
.menu {
    flex: 1;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 8vw;
}

.menu a {
    display: block;
    text-decoration: none;
    color: #1237B2;
    font-size: 18px;
    font-weight: 500;
    padding: 2.6667vw 0;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #004080;
}

/* 背景遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.50);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    padding: 0 5.0667vw;
    text-align: center;
}