/* === 隐藏顶栏的 logo 图标 (favicon),只保留 brand 文字 === */
.masthead .navbar-brand img,
.masthead .navbar-brand svg,
.navbar-brand img,
.navbar-brand svg,
a.navbar-brand img,
a.navbar-brand svg,
.brand img,
.brand svg {
    display: none !important;
}

/* === 让 brand 文字大一些,看起来像 logo === */
.masthead .navbar-brand,
.navbar-brand {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
}

/* === 备用: 隐藏所有可能的 logo 容器 === */
.navbar-brand-image,
.brand-icon,
[class*="logo"] img:not(.tool-icon) {
    display: none !important;
}

/* === RIBONEXT Language Switcher v1.0 === */
.ribonext-lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: 16px;
    z-index: 1050;
}

.ribonext-lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.ribonext-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.ribonext-lang-btn .lang-icon {
    font-size: 14px;
    line-height: 1;
}

.ribonext-lang-btn .lang-caret {
    font-size: 10px;
    opacity: 0.8;
}

.ribonext-lang-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    z-index: 2000;
}

.ribonext-lang-item {
    display: block;
    padding: 8px 16px;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.1s;
}

.ribonext-lang-item:hover {
    background: #f5f5f5;
    color: #1a3a5c !important;
    text-decoration: none !important;
}

.ribonext-lang-item.active {
    background: #f0f7ff;
    color: #1a3a5c !important;
    font-weight: 600;
}

.ribonext-lang-item.active::before {
    content: "\2713  ";
    color: #1a3a5c;
}
