/* ============================================
   ALIGG 统一导航条样式
   ============================================ */

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 样式 */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.3s;
}

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

.logo-icon {
    font-size: 28px;
    line-height: 1;
}

.logo-text {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    border-radius: 2px;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-text {
    white-space: nowrap;
}

/* 右侧操作区 */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh,
.btn-theme {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover,
.btn-theme:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* 导航条整体样式 */
.aligg-navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .navbar-menu {
        display: none;
    }

    .navbar-actions {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .logo-text {
        display: none;
    }

    .navbar-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 56px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .mobile-menu {
        top: 56px;
    }
}

/* 主题切换动画 */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 页面内容顶部间距 */
.page-with-navbar {
    padding-top: 24px;
}
