/**
 * 主导航栏（c7zzvpjq）：对齐 dental-implant-lab.com
 * LOGO 左 | 导航靠右（贴近搜索） | 搜索右；深蓝菜单 + 金黄当前项
 */

/* 白底通栏，内容区宽度跟随 :root --container-width（见 site-layout.css） */
.lanyun-section-c7zzvpjq > .lanyun-widget-container {
    background-color: #fff;
    padding: 20px 0 !important;
    margin: 0 !important;
}

.lanyun-section-c7zzvpjq .lanyun-box-container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    --container-width: 1600px;
}

@media (min-width: 768px) {
    .lanyun-section-c7zzvpjq .lanyun-section-uadw9sxt {
        width: 30% !important;
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }

    .lanyun-section-c7zzvpjq .lanyun-section-wrim0dx5 {
        width: 65% !important;
        flex: 0 0 65% !important;
        max-width: 65% !important;
    }

    .lanyun-section-c7zzvpjq .lanyun-section-tadc3ca9 {
        width: 5% !important;
        flex: 0 0 5% !important;
        max-width: 5% !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .lanyun-section-c7zzvpjq .lanyun-section-uadw9sxt {
        width: 21% !important;
        flex: 0 0 21% !important;
        max-width: 21% !important;
    }

    .lanyun-section-c7zzvpjq .lanyun-section-wrim0dx5 {
        width: 74% !important;
        flex: 0 0 74% !important;
        max-width: 74% !important;
    }
}

/* LOGO */
.lanyun-section-34c82buj > .lanyun-widget-container {
    text-align: left;
}

.lanyun-section-34c82buj .lanyun-img-wrap {
    display: inline-block;
    line-height: 0;
}

.lanyun-section-34c82buj .lanyun-img,
.lanyun-section-34c82buj .lanyun-img-wrap img {
    width: auto;
    height: auto;
    max-width: min(100%, 420px);

    object-fit: contain;
}

/* 导航：横向、大写、深蓝 / 当前项金黄（仅桌面，移动端见 mobile-fix.css） */
@media (min-width: 768px) {
    .lanyun-section-u0z75rew > .lanyun-widget-container {
        width: 100%;
    }

    .lanyun-section-u0z75rew .direction-h {
        width: 100%;
    }

    .lanyun-section-u0z75rew > .lanyun-widget-container {
        padding-right: 0 !important;
    }

    .lanyun-section-u0z75rew .lanyun-nav-first {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end !important;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .lanyun-section-u0z75rew .lanyun-nav-first-item {
        flex: 0 0 auto;
        list-style: none;
        margin: 0;
        border: none;
    }

    .lanyun-section-u0z75rew .lanyun-nav-first-name {
        display: inline-block;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(1, 30, 112, 1);
        padding: 10px 4px;
        line-height: 1.4;
        white-space: nowrap;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
    }

    .lanyun-section-u0z75rew .lanyun-nav-first-item:hover .lanyun-nav-first-name,
    .lanyun-section-u0z75rew .lanyun-nav-first-item.active .lanyun-nav-first-name,
    .lanyun-section-u0z75rew .lanyun-nav-first-item.active > a {
        color: rgba(236, 199, 1, 1);
    }

    .lanyun-section-u0z75rew .lanyun-nav-first-item.active .lanyun-nav-first-name {
        color: rgba(236, 199, 1, 1);
    }
}

@media (min-width: 1200px) {
    .lanyun-section-u0z75rew .lanyun-nav-first {
        gap: 20px;
    }

    .lanyun-section-u0z75rew .lanyun-nav-first-name {
        font-size: 14px;
        padding: 10px 5px;
    }
}

/* 搜索图标右对齐，与导航列收紧间距 */
.lanyun-section-c7zzvpjq .lanyun-section-tadc3ca9 > .lanyun-widget-container {
    padding-left: 0 !important;
}

.lanyun-section-tadc3ca9 > .lanyun-widget-container {
    text-align: right;
}

.lanyun-section-w8jbfhkg > .lanyun-widget-container {
    text-align: right;
}

.lanyun-section-w8jbfhkg .lanyun-search-btn {
    color: rgba(1, 30, 112, 1) !important;
    background: transparent !important;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.lanyun-section-w8jbfhkg .lanyun-search-btn:hover {
    color: rgba(236, 199, 1, 1) !important;
}

/* 语言旗标（顶栏上方区块保留原修复） */
.lanyun-section-language-selector .lanyun-flag,
.ftw-lang-switch .lanyun-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.lanyun-section-language-selector .lanyun-lang-dropdown-toggle,
.ftw-lang-switch .lanyun-lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}
