/* ============================================================
   nav-unified.css — 统一导航栏样式（结构 + 视觉）
   所有页面共用，勿在各 HTML 内重复定义导航相关 CSS
   ============================================================ */

/* ---------- 导航栏容器 ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(8, 14, 28, 0.72);
    border-bottom: 1px solid rgba(79, 141, 255, 0.12);
    backdrop-filter: blur(14px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---------- 内容宽度容器 ---------- */
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

/* ---------- 内部 flex 布局 ---------- */
.nav-content {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Logo ---------- */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #4F8DFF, #B36BFF);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
}
.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(to right, #4F8DFF, #B36BFF);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-style: italic;
    font-size: 0.875rem;
}

/* ---------- 桌面导航链接 ---------- */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}
.desktop-nav a {
    color: #B7C2D6;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
@media (min-width: 768px) {
    .desktop-nav a {
        font-size: 1rem;
    }
}
.desktop-nav a:hover {
    color: #7BB6FF;
    text-shadow: 0 0 14px rgba(79, 141, 255, 0.35);
}

/* ---------- 移动端汉堡按钮 ---------- */
.menu-btn {
    display: block;
    font-size: 2rem;
    color: #D6DEEA;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.menu-btn:hover {
    color: #7BB6FF;
}
@media (min-width: 768px) {
    .menu-btn {
        display: none;
    }
}

/* ---------- 移动端菜单面板 ---------- */
.mobile-menu {
    background-color: rgba(12, 20, 37, 0.96);
    border-bottom: 1px solid rgba(79, 141, 255, 0.18);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}
.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-menu-content a {
    padding: 0.5rem 0;
    color: #B7C2D6;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-menu-content a:hover {
    color: #4F8DFF;
}

/* ---------- Tailwind 版导航兼容（idc / long-distance 页） ---------- */
nav .hidden.md\:flex a {
    color: #B7C2D6 !important;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
nav .hidden.md\:flex a:hover {
    color: #7BB6FF !important;
    text-shadow: 0 0 14px rgba(79, 141, 255, 0.35);
}

#mobile-menu-btn {
    color: #D6DEEA !important;
    transition: color 0.2s ease;
}
#mobile-menu-btn:hover {
    color: #7BB6FF !important;
}

#mobile-menu {
    background: rgba(12, 20, 37, 0.96) !important;
    border-bottom: 1px solid rgba(79, 141, 255, 0.18);
}
#mobile-menu a {
    color: #B7C2D6 !important;
    transition: color 0.2s ease;
}
#mobile-menu a:hover {
    color: #7BB6FF !important;
}
