/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* 头部导航容器样式 */
.webHeader {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.webHeaderContainter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box; /* 确保内边距不会影响宽度 */
}

/* 头部 logo 样式 */
.headerLogo {
    height: 40px;
    max-width: 100%; /* 确保 logo 在小屏幕下不会溢出 */
}

/* 菜单切换按钮样式 */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1E90FF;
    order: 2; /* 确保在小屏幕下显示在右侧 */
}

/* 导航栏样式 */
.header-nav {
    display: flex;
    align-items: center;
    order: 1; /* 确保在小屏幕下菜单内容排列顺序 */
}

/* 导航菜单项样式 */
.nav-item {
    position: relative;
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none; /* 去除链接下划线 */
}

/* 鼠标悬停时菜单项颜色变化 */
.nav-item:hover {
    color: #1E90FF;
}

/* 鼠标悬停时菜单项下方蓝色条效果 */
.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1E90FF;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* 登录和免费体验按钮样式 */
.reg,
.freeExperience {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    margin-left: 20px;
    cursor: pointer;
    white-space: nowrap; /* 防止按钮文字换行 */
    box-sizing: border-box; /* 确保内边距和边框不影响宽度 */
    text-align: center; /* 文字居中 */
    width: 120px; /* 统一按钮宽度，可根据实际情况调整 */
    text-decoration: none; /* 去除链接下划线 */
    transition: box-shadow 0.3s ease; /* 添加过渡效果 */
}

/* 登录按钮样式调整 */
.reg {
    background-color: transparent;
    border: 1px solid #1E90FF;
    color: #1E90FF;
}

/* 免费体验按钮样式 */
.freeExperience {
    background-color: #1E90FF;
    color: #ffffff;
    text-decoration: none;
}

/* 鼠标悬停时按钮发光效果 */
.reg:hover,
.freeExperience:hover {
    box-shadow: 0 0 10px 3px rgba(30, 144, 255, 0.5); /* 添加半透明的发光效果 */
}

/* 右侧按钮容器样式 */
.right-buttons {
    display: flex;
    align-items: center;
    order: 3; /* 确保在小屏幕下按钮排列顺序 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex-direction: column; /* 垂直排列菜单项 */
        padding: 10px 0; /* 增加内边距 */
        box-sizing: border-box; /* 确保内边距不会影响宽度 */
    }

    .header-nav.show {
        display: flex;
    }

    .nav-item {
        display: block;
        border-bottom: 1px solid #eee;
        width: 100%; /* 菜单项宽度占满 */
        box-sizing: border-box;
        padding: 15px 20px; /* 调整菜单项内边距 */
    }

    .right-buttons {
        display: flex;
        flex-direction: column; /* 垂直排列按钮 */
        align-items: flex-start;
        width: 100%;
        padding: 10px 20px; /* 调整按钮容器内边距 */
        box-sizing: border-box;
    }

    .reg,
    .freeExperience {
        margin: 5px 0;
        width: 100%; /* 按钮宽度占满 */
        text-align: center;
        padding: 12px 0; /* 调整按钮内边距 */
    }
}