/* 头部导航栏自定义样式 */

/* Header容器 */
.header-sticky {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: none;
    border: none;
}

.navbar {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.container-fluid {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0 0 20px !important;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Logo样式 */
.navbar-brand {
    margin-right: 24px;
    padding: 17px 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img,
#logo {
    height: 36px;
    width: auto;
    max-height: 36px;
}

/* 导航栏容器（基础） */
#navbarMainCollapse {
    flex-grow: 1;
}

/* PC 端导航布局（保持原有样式） */
@media (min-width: 1200px) {
    #navbarMainCollapse {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        align-self: center;
        gap: 20px;
    }

    .search-box {
        margin-left: 0;
        margin-right: 12px;
    }
}

/* 导航菜单项 - 靠左 */
.navbar-nav {
    flex-direction: row !important;
    align-items: center;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap;
    flex-shrink: 1;
}

.navbar-nav .nav-item {
    margin: 0;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: #374151;
    font-weight: 500;
    padding: 6px 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #2563eb;
}

.navbar-nav .nav-link.active {
    color: #2563eb;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.search-box input {
    width: 140px;
    padding: 7px 35px 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #666;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #9ca3af;
    pointer-events: none;
    font-size: 14px;
}

/* 右侧功能区样式 */
.right-nav-items {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    height: 100%;
}

.nav-text-link {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-text-link:first-child {
    padding-left: 0;
}

.nav-text-link + .nav-text-link:before {
    content: "|";
    position: absolute;
    left: 0;
    color: #d1d5db;
    font-weight: 300;
}

.nav-text-link:last-of-type:before {
    display: none;
}

.nav-text-link:hover {
    color: #2563eb;
}

/* 免费注册按钮 */
.btn-register-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 32px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0 0 0 12px;
    flex-shrink: 0;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    align-self: stretch;
    border: none;
    outline: none;
    box-shadow: none;
    position: relative;
    z-index: 10;
}

