/* 顶部导航区域 */
.top-nav {
    width: 100%;
    height: 170px;
    background: #ffffff;
    position: relative;
}

.top-nav .head {
    width: 1440px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
}

/* LOGO 区域 */
.head .top-logo {
    display: inline-flex;
    align-items: center;
}

.head .top-logo img {
    width: auto;
    height: 89px;
    margin: 15px 10px 15px 0;
}

.head .top-logo h1 {
    line-height: 80px;
    font-weight: normal;
    color: #333;
    font-size: 20px;
}

/* 搜索栏区域 */
.search-input {
    display: flex;
    align-items: center;
}

.search-input form {
    display: flex;
    align-items: center;
}

.search-input input {
    border: none;
    height: 32px;
    width: 220px;
    padding-left: 15px;
    padding-right: 10px;
    border-radius: 20px 0 0 20px;
    background: #F4F4F4;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.search-input input::placeholder {
    color: #999;
}

.search-input input:focus {
    background: #EFEFEF;
}

.search-input button {
    height: 32px;
    border: none;
    width: 40px;
    border-radius: 0 20px 20px 0;
    color: #ffffff;
    background: #b13838;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input button:hover {
    background: #830606;
}

/* 移动端导航按钮（默认隐藏） */
.head .mobile_nav {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ========== 导航栏 ========== */
.website-nav {
    width: 100%;
    height: 49px;
    padding: 1px 0;
    background: #b13838;
    border-top: 4px solid #820606;
    box-sizing: border-box;
}

.website-nav ul.nav-ul {
    width: 1440px;
    height: 46px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
}

.nav-ul li {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    line-height: 46px;
    flex: 1;
    min-width: auto;
    text-align: center;
}

.nav-ul a.nav-li {
    display: block;
    padding: 0 17px;
    color: #FFFFFF;
    font-size: 15px;
    height: 46px;
    line-height: 46px;
    transition: background 0.3s, color 0.3s;
}

.nav-ul li:hover a.nav-li {
    background: #FFFFFF;
    color: #830606;
}

/* 二级下拉菜单 */
.nav-li-child {
    display: none;
    position: absolute;
    left: 0;
    top: 46px;
    min-width: 100%;
    line-height: 50px;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    z-index: 100;
    border: none;
    border-radius: 0;
    white-space: nowrap;
}

.nav-ul li:hover dl.nav-li-child {
    display: block;
}

.nav-ul li .nav-li-child dd {
    position: relative;
    margin: 0;
}

.nav-ul li .nav-li-child a {
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.6);
    display: block;
    border-bottom: 1px solid rgba(204, 204, 204, 0.3);
    line-height: 50px;
    text-align: center;
    transition: color 0.2s;
}

.nav-ul li .nav-li-child a:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(251, 176, 102);
}

/* 响应式适配 */
@media screen and (max-width: 767px) {
    .top-nav {
        height: 115px;
        background: #fff;
    }

    .top-nav .head {
        width: 100%;
        max-width: initial;
        min-width: initial;
        height: 70px;
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        align-items: center;
    }

    .head .top-logo img {
        width: auto;
        height: 40px;
    }

    .head .mobile_nav {
        display: flex;
    }

    .search-input {
        position: relative;
        top: 0;
        left: 0;
        width: calc(100% - 30px);
        padding: 0 15px;
        padding-top: 4px;
        max-width: initial;
        min-width: initial;
        box-sizing: content-box;
        height: 40px;
        border-top: 1px solid #e4e4e4;
    }

    .search-input input {
        width: 88%;
        background: #f4f4f4;
    }

    .search-input button {
        width: 12%;
    }

    /* 移动端导航 */
    .website-nav {
        display: none;
        height: auto !important;
        position: absolute;
        z-index: 999;
        padding: 0 15px;
    }

    .website-nav ul.nav-ul {
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        max-width: initial;
        min-width: initial;
        padding: 0;
    }

    .nav-ul li {
        width: 100%;
        min-width: auto;
        flex: auto;
    }

    .nav-li-child {
        position: relative;
        top: 0;
    }
}