video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: -1;
}

.navbar-custom {
    background-color: transparent;
    z-index: 100;
}

.navbar-custom .container-fluid {
    min-height: 60px;
    width: 100vw;
    border-bottom: 1px solid #fff8;
    animation: fade 2s ease-in-out forwards;
    animation-delay: 1s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    /* backdrop-filter: blur(8.5px); */
}

.navbar-custom .container-fluid ul.float-right {
    margin-right: 30px;
}

.navbar-custom .container-fluid .dropdown-menu-text {
    min-width: 100px;
    text-align: center;
}

.navbar-custom .container-fluid .button-menu-mobile {
    color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-custom .container-fluid .logo-box {
    width: 350px;
}

.navbar-custom .container-fluid .logo-lg {
    text-align: left !important;
    margin-left: 19px;
}

.navbar-custom .container-fluid .profile-dropdown {
    min-width: auto;
}

.navbar-custom .container-fluid .dropdown-item-justify {
    text-align: justify;
    text-align-last: justify;
}

/* 让 .dropdown 本身成为 hover 的触发容器 */
.topbar-dropdown {
  position: relative;           /* 非常重要，确保菜单能相对定位 */
}

/* 默认隐藏菜单 */
.topbar-dropdown .dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* 当鼠标悬停或 Bootstrap 点击展开时显示 */
.topbar-dropdown.show .dropdown-menu,
.topbar-dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* 选中语言项后强制收起，覆盖 :hover 保持展开的行为 */
.topbar-dropdown.topbar-dropdown-suppressed .dropdown-menu,
.topbar-dropdown.topbar-dropdown-suppressed:hover .dropdown-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* 可选：改善触发区域体验 */
.topbar-dropdown .nav-link {
  padding: 0.5rem 1rem;        /* 适当增大可点击区域 */
}

.dropdown:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.logo-box {
    width: 500px !important;
    position: relative;
    padding-left: 20px;
}

.logo-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}