/**
 * 高考学习系统 - 统一导航栏 (黑白主题)
 */

/* 导航栏容器 */
.unified-navbar {
    background: #1a1a1a;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* 左侧 Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.navbar-logo-icon {
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
}

.navbar-logo-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 中间导航链接 */
.navbar-nav {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    color: #aaa;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

/* 右侧用户区域 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
}
.user-info:hover { background: rgba(255,255,255,0.1); }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
}

/* 登录/注册按钮 */
.auth-buttons { display: flex; gap: 12px; }

.btn-navbar {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-navbar-outline {
    background: transparent;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-navbar-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.btn-navbar-primary {
    background: #555;
    color: #fff;
}
.btn-navbar-primary:hover {
    opacity: 0.85;
}

/* 用户下拉菜单 */
.user-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 180px;
    padding: 8px 0;
    display: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.dropdown-menu.show { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

.dropdown-item.text-danger { color: #ccc; }
.dropdown-item.text-danger:hover { background: rgba(255,255,255,0.1); }

/* 移动端菜单按钮 */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.navbar-toggle:hover { background: rgba(255,255,255,0.1); }

/* 移动端响应式 */
@media (max-width: 768px) {
    .unified-navbar { padding: 0 16px; height: 56px; }
    .navbar-toggle { display: block; }

    .navbar-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-nav.show { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { padding: 12px 16px; }
    .user-name { display: none; }
    .navbar-user { gap: 12px; }
}

/* 子系统标识徽章 */
.system-badge {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 12px;
}

/* 通知红点 */
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}
