/* ==========================================================================
   头部导航（修改版）
   ========================================================================== */
.hedes {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* 顶部欢迎条 */
.hedes .hedes_top {
    width: 100%;
    height: 36px;
    /* background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%); */
    background-color: #24518a;
    text-align: center;
    color: #fff;
    font-size: 13px;
    letter-spacing: .5px;
    line-height: 36px;
}

/* Logo + 联系方式 行 */
.hedes .hedes_bs .hedes_b {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.hedes .hedes_bs .hedes_b img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

.hedes .hedes_bs .hedes_b .wenben {
    text-align: right;
    line-height: 1.7;
}

.hedes .hedes_bs .hedes_b .wenben span {
    font-size: 16px;
    color: var(--c-primary);
    font-weight: 600;
}

/* 桌面导航 */
.hedes .hedes_db {
    width: 100%;
    background: var(--c-primary);
}

.hedes .hedes_db .hedes_db_w {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航项之间加细分隔线 */
.hedes .hedes_db .hedes_db_w a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .18);
}

.hedes .hedes_db .hedes_db_w a {
    color: #fff;
    padding: 0 30px;
    height: 56px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    max-width: 260px;
    white-space: nowrap;
    position: relative;
    transition: background .3s ease, color .3s ease;
}

/* 导航项内容不换行 */
.hedes .hedes_db .hedes_db_w a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--c-accent);
    transform: translateX(-50%);
    transition: width .3s ease;
}

.hedes .hedes_db .hedes_db_w a:hover,
.hedes .hedes_db .hedes_db_w a.active {
    background: var(--c-primary-light);
}

.hedes .hedes_db .hedes_db_w a:hover::after,
.hedes .hedes_db .hedes_db_w a.active::after {
    width: 36px;
}

/* 汉堡按钮（移动端） */
.qiehuan {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background .25s ease;
}

.qiehuan:active {
    background: var(--c-bg);
}

.qiehuan i {
    color: var(--c-primary);
    font-size: 30px;
}

/* 移动端下拉菜单 */
.hede_tops {
    width: 100%;
    padding: 8px 20px 22px;
    background: var(--c-primary);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    display: none;
    box-shadow: var(--shadow-md);
}

.hede_tops a {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hede_tops a:last-child {
    border-bottom: none;
}

.hede_tops a:active,
.hede_tops a:hover {
    color: var(--c-accent);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .hedes_db {
        display: none;
    }

    .qiehuan {
        display: flex;
    }

    .hedes .hedes_bs .hedes_b {
        height: 72px;
    }

    .hedes .hedes_bs .hedes_b img {
        width: 92px;
    }

    .hedes .hedes_bs .hedes_b .wenben {
        display: none;
    }
}

@media (max-width: 480px) {
    .hedes .hedes_top {
        font-size: 12px;
        padding: 0 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hedes .hedes_bs .hedes_b {
        height: 64px;
    }

    .hedes .hedes_bs .hedes_b img {
        width: 82px;
    }
}
