/**
 * 多语言相关样式
 */

/* 语言下拉菜单样式 */
.dropdown-menu {
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease;
    color: #fff;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.dropdown-item.active {
    background: rgba(0, 255, 255, 0.2);
    font-weight: bold;
    color: #00ffff;
}

.dropdown-item .flag {
    margin-right: 8px;
    font-size: 16px;
}

/* 当前语言指示 */
#currentLanguageName {
    font-weight: 500;
}

/* 不同语言的字体适配 */
html[lang="ja-JP"] {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

html[lang="ko-KR"] {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

html[lang="zh-CN"] {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

html[lang="en-US"] {
    font-family: 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
}

/* 语言切换按钮样式 */
.language-dropdown .nav-link {
    position: relative;
}

.language-dropdown .nav-link::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 语言切换动画 */
.language-transition {
    transition: all 0.3s ease;
}

/* 多语言内容淡入效果 */
.i18n-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.i18n-content.loading {
    opacity: 0.7;
}

/* 搜索框多语言样式 */
.search-box[data-i18n-placeholder] {
    transition: all 0.3s ease;
}


/* 标签云多语言样式 */
.tag-item {
    transition: all 0.3s ease;
}

/* 加载状态多语言样式 */
.loading p {
    transition: all 0.3s ease;
}
