/**
 * C3-b migrated from main-legacy.css — navbar shell
 */

/* -------------------- 新导航栏样式 -------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    /* 背景：完全透明，无模糊效果 */
    background: transparent !important;
    backdrop-filter: none; /* 移除模糊效果 */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 50px;
    box-shadow: none; /* 移除阴影 */
    /* 始终保持完全透明 */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* -------------------- Logo 区域（右侧小鱼 + 文字） -------------------- */
.logo-container {
    position: absolute;
    left: 50px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #1e6fa8;
    margin-left: 5px;
}

/* Logo图片样式 */
.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Logo hover 效果 */
.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
}

/* -------------------- 导航菜单 -------------------- */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #1e6fa8;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* 导航项 hover 时的渐变下划线 */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #3a9ad9, #07d96c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #07d96c; /* 文字变荧光绿 */
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #07d96c;
}

.nav-link.active::after {
    transform: scaleX(1);
}


@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 移动端汉堡菜单样式 */
.navbar {
    z-index: 100100;
    pointer-events: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 100101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #3a9ad9;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: transparent !important;
    backdrop-filter: none; /* 移除模糊效果，完全透明 */
    box-shadow: none; /* 移除阴影，保持透明 */
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-nav-link:not(.ht-drawer-item) {
    display: block;
    color: #1e6fa8;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.mobile-nav-link:not(.ht-drawer-item):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #07d96c;
}

.mobile-nav-item.mobile-nav-split {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.mobile-nav-item.mobile-nav-split .mobile-nav-link {
    flex: 1 1 0;
    text-align: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    white-space: nowrap;
}

.mobile-nav-split-sep {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.32);
    font-weight: 400;
    pointer-events: none;
    user-select: none;
}

/* 移动端：logo 左侧、汉堡右侧（各 AI 页共用） */
@media (max-width: 1024px) {
    .navbar .logo-container {
        position: absolute !important;
        left: max(16px, env(safe-area-inset-left, 0px)) !important;
        right: auto !important;
        top: env(safe-area-inset-top, 0px) !important;
        height: 70px;
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        z-index: 1000;
    }

    .navbar .mobile-menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }
}
