/* 导航条样式 */
.navbar {
    background-color: #243a7e;
    color: white;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.nav-logo-image {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-item {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.navbar-item:hover, .navbar-item.active {
    background-color: #1a2c62;
}

.language-switch {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 60px;
    transition: all 0.3s;
    white-space: nowrap;
    user-select: none;
}

.language-switch:hover {
    color: #007bff;
}

/* 通用下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1050;
    height: 100%;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 60px;
    font-size: 15px;
    transition: background-color 0.3s;
    white-space: nowrap;
    color: white;
}

.dropdown-toggle:hover {
    background-color: #1a2c62;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1055;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}

/* 显式控制下拉菜单显示，而不是通过hover */
#video-frame-dropdown:hover #video-frame-menu {
    display: block;
}

.dropdown-item {
    display: block;
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #007bff !important;
}

/* 防止子菜单项样式被覆盖 */
#video-frame-menu .dropdown-item {
    height: auto !important;
    line-height: normal !important;
    padding: 12px 16px !important;
    text-align: left !important;
    color: #333 !important;
}

#video-frame-menu .dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: #007bff !important;
}

/* 语言下拉菜单 */
.language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1100;
    height: 100%;
}

.language-dropdown:hover .language-menu {
    display: block !important;
}

.language-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1200;
    right: 0;
    top: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.language-menu.show {
    display: block !important;
}

.language-option {
    display: block;
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-weight: normal;
    font-size: 14px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
    color: #007bff !important;
}

.language-option.active {
    background-color: #e6f7ff;
    color: #007bff !important;
}

/* 防止语言菜单项被导航菜单项样式覆盖 */
.navbar-item.language-dropdown .language-menu a.language-option {
    height: auto;
    display: block;
    color: #333 !important;
    text-align: left !important;
    line-height: normal;
    padding: 12px 16px;
}

.navbar-item.language-dropdown .language-menu a.language-option:hover,
.navbar-item.language-dropdown .language-menu a.language-option.active {
    background-color: #f5f5f5;
    color: #007bff !important;
}

/* 箭头图标间距统一 */
.fa-caret-down {
    margin-left: 5px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 0 10px;
    }
    
    .navbar-logo img {
        margin-right: 8px;
    }
    
    .navbar-menu {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .navbar-item {
        padding: 15px 10px;
        white-space: nowrap;
    }
    
    .language-dropdown {
        position: static;
    }
    
    .language-menu {
        position: fixed;
        top: 60px;
        right: 10px;
        left: auto;
        max-width: 200px;
    }
} 