/* ==================== 新风格导航栏样式 (纯CSS) ==================== */

/* 导航栏容器 */
.new-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

/* 导航栏内部容器 */
.new-navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏主体 */
.new-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Logo 区域 */
.new-navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.new-navbar-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7EC3E3 0%, #BEE1F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* 中间菜单区域 - muee.cc logo */
.new-navbar-menu {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
}

/* 桌面端显示菜单 */
@media (min-width: 768px) {
    .new-navbar-menu {
        display: flex;
    }
}

/* muee.cc logo 居中样式 */
.navbar-muee-logo-center {
    display: inline-flex;
    align-items: center;
    opacity: 0.65;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.navbar-muee-logo-center:hover {
    opacity: 1;
}

/* 右侧按钮区域 */
.new-navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 爱心按钮 */
.new-navbar-heart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.new-navbar-heart-btn:hover svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* 分隔线 */
.new-navbar-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

/* 用户按钮 */
.new-navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #363636;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.new-navbar-user-btn:hover {
    color: #5DA0C2;
}

/* 登录/注册按钮样式 */
.new-navbar-login-btn {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.new-navbar-login-btn:hover {
    color: #1e293b;
}

.new-navbar-register-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: white;
    background: #1e293b;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.new-navbar-register-btn:hover {
    background: #0f172a;
    color: white;
}

/* 用户下拉菜单容器 (保留原有样式兼容) */
#userDropdownContainer {
    position: relative;
    display: inline-block;
}

/* 移动端菜单按钮 */
.new-navbar-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #363636;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .new-navbar-mobile-toggle {
        display: none;
    }
}

/* 移动端菜单图标 */
.new-navbar-mobile-icon {
    width: 24px;
    height: 24px;
}

/* Logo文字调整 */
.new-navbar-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .new-navbar-logo-text {
        font-size: 1.25rem;
    }

    .new-navbar-actions {
        gap: 0.5rem;
    }

    .new-navbar-heart-btn,
    .new-navbar-user-btn {
        padding: 0.25rem;
    }
}

/* 滚动时导航栏效果 */
.new-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 为body添加顶部padding,避免内容被固定导航栏遮挡 */
body.has-new-navbar {
    padding-top: 64px;
}

/* 底部菜单栏样式 (保留原有的底部导航) */
.new-navbar-bottom {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.new-navbar-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.new-navbar-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 菜单默认显示（桌面端和移动端都显示） */
.new-navbar-bottom-menu {
    display: flex;
    flex: 1;
}

/* 移动端菜单横向滚动样式 */
@media (max-width: 767px) {
    .new-navbar-bottom-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }

    .new-navbar-bottom-menu::-webkit-scrollbar {
        display: none;  /* Chrome/Safari */
    }

    .new-navbar-bottom-menu ul {
        gap: 1rem;
        padding: 0.75rem 0;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .new-navbar-bottom-menu ul li a {
        font-size: 0.875rem;
        padding: 0.375rem 0;
    }
}

.new-navbar-bottom-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.new-navbar-bottom-menu ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    display: inline-block;
}

.new-navbar-bottom-menu ul li a:hover,
.new-navbar-bottom-menu ul li a.active {
    color: #5DA0C2;
}

/* 移动端菜单切换按钮 - 现在菜单直接显示，隐藏此按钮 */
.new-navbar-bottom-toggle {
    display: none;
}

/* ==================== 移动端菜单展开样式 ==================== */
/* 移动端菜单展开时显示 */
.new-navbar-bottom-menu.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端菜单列表样式 */
.new-navbar-bottom-menu.mobile-open ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
}

.new-navbar-bottom-menu.mobile-open ul li {
    border-bottom: 1px solid #f1f5f9;
}

.new-navbar-bottom-menu.mobile-open ul li:last-child {
    border-bottom: none;
}

.new-navbar-bottom-menu.mobile-open ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #475569;
    transition: all 0.2s ease;
}

.new-navbar-bottom-menu.mobile-open ul li a:hover,
.new-navbar-bottom-menu.mobile-open ul li a.active {
    background: #f8fafc;
    color: #5DA0C2;
    padding-left: 2rem;
}

/* 移动端底部导航栏需要相对定位，让子菜单绝对定位 */
@media (max-width: 767px) {
    .new-navbar-bottom-nav {
        position: relative;
    }
}
