body {
    background: #fff url(//hbnysy.hubei.gov.cn/material/images/newhome/bg.png) 50% 0% no-repeat;
}

.ht {
    height: 50px;
    border-bottom: 1px solid #dedede;
}

.ht .inner {
    height: 100%;
    display: flex;
    padding: 0px 20px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.ht-time {
    font-size: 16px;
    color: #fff;
}

.ht-right {
    display: flex;
    align-items: center;
}

.ht-right a {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
    position: relative;
    line-height: 1;
}

.ht-right a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #fff;
}

.header-main {
    display: flex;
    padding: 0px 20px;
    justify-content: space-between;
    box-sizing: border-box;
    height: 190px;
}

.header-logo {
    margin-top: 16px;
    background: url('//hbnysy.hubei.gov.cn/material/images/newhome/logo.png') center center no-repeat;
    width: 550px;
    height: 111px;
    background-size: contain;
}

.header-logo a {
    width: 100%;
    height: 100%;
    display: block;
}

.header-search {
    width: 387px;
    height: 42px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    margin-top: 31px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    height: 100%;
    background-color: #fff;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.search-input-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding-left: 48px;
    padding-right: 10px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
}

.search-input-wrap input::placeholder {
    color: #999999;
}

.search-btn {
    width: 74px;
    height: 100%;
    background-color: #2e74cc;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.header-nav {
    background-color: #4a81c3;
    height: 66px;
}

.header-nav .inner {
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.header-nav .item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: background-color 0.3s ease;
}

.header-nav .item img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-nav .item:hover img {
    transform: scale(1.1);
}

.header-nav .item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 41px;
    background-color: #7fa8da;
}

.header-nav .item.current,
.header-nav .item:hover {
    background-color: #366297;
}

/* 手机版二维码悬浮 */
.ht-mobile-wrap {
    position: relative;
    display: inline-block;
}

.ht-mobile-wrap .ht-mobile-qrcode {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    z-index: 999;
    padding-top: 6px;
}

.ht-mobile-wrap .ht-mobile-qrcode img {
    width: 100%;
    display: block;
}

.ht-mobile-wrap:hover .ht-mobile-qrcode {
    display: block;
}

/* 搜索建议下拉 */
.search-input-wrap .panel-body {
    position: absolute;
    top: 100%;
    left: 0;
    width: 313px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    max-height: 260px;
    overflow-y: auto;
}

.panel-body .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.panel-body .table tr {
    cursor: pointer;
}

.panel-body .table tr:hover {
    background-color: #f0f5ff;
}

.panel-body .table td {
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.panel-body .table tr:last-child td {
    border-bottom: none;
}

.panel-body .gray {
    color: #e4393c;
}

.header-nav .inner {
    background-color: #4a81c3;
}

.header-nav {
    background-color: #00000000;
}

/* ========== 移动端适配 ========== */

/* 平板 (≤1024px) */
@media (max-width: 1024px) {
    .header-logo {
        width: 260px;
        height: 48px;
        background-size: contain;
        margin-top: 10px;
    }

    .header-search {
        width: 280px;
        margin-top: 14px;
    }

    .header-main {
        height: 120px;
        padding: 0 20px;
        align-items: flex-start;
    }

    .header-nav .item {
        font-size: 16px;
    }

    .header-nav .item img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

    .header-nav {
        height: 50px;
    }

    .header-nav .item:not(:last-child)::after {
        height: 28px;
    }
}

/* 手机 (≤768px) */
@media (max-width: 768px) {
    .ht {
        height: auto;
        padding: 8px 0;
    }

    .ht .inner {
        flex-direction: column;
        gap: 6px;
        padding: 0 10px;
    }

    .ht-time {
        font-size: 13px;
        display: none;
    }

    .ht-right a {
        font-size: 13px;
        padding: 0 6px;
    }

    .header-main {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 15px 10px 10px;
    }

    .header-logo {
        width: 200px;
        height: 36px;
        background-size: contain;
        margin-top: 0;
    }

    .header-search {
        width: 100%;
        max-width: 320px;
        margin-top: 12px;
        height: 38px;
    }

    .search-btn {
        width: 60px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .header-nav {
        height: auto;
    }

    .header-nav .inner {
        flex-wrap: nowrap;
    }

    .header-nav .item {
        flex: 1;
        height: 40px;
        font-size: 12px;
    }

    .header-nav .item:nth-child(3) {
        flex: 1.3;
        font-size: 11px;
    }

    .header-nav .item img {
        width: 10px;
        height: 10px;
        margin-right: 3px;
    }

    .header-nav .item:not(:last-child)::after {
        height: 18px;
    }
}