@charset "utf-8";

/* Shared head / footer chrome — SEO + responsive baseline */

.site-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*
 * Primary header + nav balance
 * Fixes thin/weak nav under a tall logo row (头轻脚重).
 */
body.page-home .head_cnt,
body.page-list .head_cnt,
body.page-article .head_cnt {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 20px !important;
    min-height: 72px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body.page-home .head_cnt .logo,
body.page-list .head_cnt .logo,
body.page-article .head_cnt .logo {
    float: none !important;
    width: auto !important;
    max-width: 58%;
    margin: 0 !important;
    line-height: 1 !important;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

body.page-home .head .logo img,
body.page-list .head .logo img,
body.page-article .head .logo img {
    display: block;
    max-height: 56px;
    width: auto;
}

body.page-home .head .search,
body.page-list .head .search,
body.page-article .head .search {
    float: none !important;
    margin: 0 !important;
    width: 340px !important;
    max-width: 42%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

body.page-home .nav-box,
body.page-list .nav-box,
body.page-article .nav-box {
    background: transparent !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 6;
}

body.page-home .nav-box > .nav,
body.page-list .nav-box > .nav,
body.page-article .nav-box > .nav {
    background: linear-gradient(180deg, #1c2c36 0%, #152029 72%, #121c24 100%) !important;
    line-height: 1.25 !important;
    border-top: 3px solid #a67c3d;
    -webkit-box-shadow: 0 10px 28px rgba(21, 32, 41, 0.2);
    box-shadow: 0 10px 28px rgba(21, 32, 41, 0.2);
}

body.page-home .nav-box .container,
body.page-list .nav-box .container,
body.page-article .nav-box .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body.page-home .nav .container > div,
body.page-list .nav .container > div,
body.page-article .nav .container > div,
body.page-home .site-nav-links,
body.page-list .site-nav-links,
body.page-article .site-nav-links {
    width: 100% !important;
    float: none !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 2px;
}

body.page-home .nav a,
body.page-list .nav a,
body.page-article .nav a {
    float: none !important;
    width: auto !important;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0;
    position: relative;
    display: block;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    line-height: 1.3 !important;
    padding: 18px 10px !important;
    background: transparent !important;
    -webkit-transition: color .2s ease, background-color .2s ease;
    transition: color .2s ease, background-color .2s ease;
}

body.page-home .nav a::after,
body.page-list .nav a::after,
body.page-article .nav a::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 0;
    height: 3px;
    background: #a67c3d;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transition: -webkit-transform .22s ease;
    transition: transform .22s ease;
}

body.page-home .nav a:hover,
body.page-list .nav a:hover,
body.page-article .nav a:hover,
body.page-home .nav a.active,
body.page-list .nav a.active,
body.page-article .nav a.active {
    color: #fff !important;
    background: rgba(166, 124, 61, 0.18) !important;
}

body.page-home .nav a:hover::after,
body.page-list .nav a:hover::after,
body.page-article .nav a:hover::after,
body.page-home .nav a.active::after,
body.page-list .nav a.active::after,
body.page-article .nav a.active::after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

body.page-home .nav a img,
body.page-list .nav a img,
body.page-article .nav a img {
    display: none !important;
}

@media (max-width: 900px) {
    body.page-home .head_cnt,
    body.page-list .head_cnt,
    body.page-article .head_cnt {
        min-height: 0;
        padding: 10px 48px 10px 12px !important;
    }
    body.page-home .head .search,
    body.page-list .head .search,
    body.page-article .head .search {
        width: auto !important;
        max-width: 42%;
    }
}

@media (max-width: 640px) {
    body.page-home .head_cnt,
    body.page-list .head_cnt,
    body.page-article .head_cnt {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-right: 46px !important;
    }
    body.page-home .head_cnt .logo,
    body.page-list .head_cnt .logo,
    body.page-article .head_cnt .logo {
        max-width: calc(100% - 48px);
    }
    body.page-home .head .search,
    body.page-list .head .search,
    body.page-article .head .search {
        width: 100% !important;
        max-width: 100%;
    }
}

.head .logo img {
    max-width: 100%;
    height: auto;
}

.head_cnt .btn-menu {
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

.head .search-but {
    cursor: pointer;
    font: inherit;
}

.head .search-button input#search_an,
.head .search-button button#search_an {
    color: #fff;
    display: block;
    width: 100%;
    font-size: 14px;
    text-align: center;
    border: 0;
    height: 44px;
    line-height: 44px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: url(../images/search.png) no-repeat left center #4bc061;
    -ms-background-position-x: 15%;
    background-position-x: 15%;
    padding-left: 30%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.head .search-input input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.site-footer {
    width: 100%;
    margin-top: 24px;
    padding: 28px 16px 32px;
    background: #152029;
    color: rgba(255, 255, 255, 0.72);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.site-footer-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px 14px;
    margin: 0 0 14px;
}

.site-footer-nav a {
    color: #e8d5b0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.site-footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.site-footer-brand {
    display: inline-block;
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.site-footer-beian {
    display: inline-block;
    margin-left: 8px;
}

.site-footer-beian a {
    color: #e8d5b0;
    text-decoration: none;
}

.site-footer-beian a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to top — progressive enhancement */
#toTop.scrotop {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 90;
    width: 44px;
    min-height: 44px;
    border: 0;
    padding: 6px 4px;
    background: #152029;
    color: #e8d5b0;
    cursor: pointer;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#toTop.scrotop.is-show {
    display: block;
}

#toTop.scrotop span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .head_cnt {
        width: 100% !important;
        max-width: 1180px;
        margin: 0 auto;
        padding-left: 12px;
        padding-right: 48px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        position: relative;
    }
    .head .logo {
        max-width: 58%;
    }
    .head .logo img {
        max-width: 200px;
    }
    .head .search {
        max-width: 42%;
    }
    .head .search-keyword {
        width: 100%;
        max-width: 100%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .hy_top_con .fenxiang {
        float: none;
        margin-top: 4px;
    }
    .head_cnt {
        padding-right: 46px;
    }
    .head .logo {
        float: none;
        width: auto;
        max-width: calc(100% - 48px);
        margin-bottom: 8px;
    }
    .head .search {
        float: none;
        width: 100%;
        max-width: calc(100% - 8px);
        clear: both;
    }
    .site-footer {
        padding: 22px 12px 28px;
    }
    .site-footer-nav a {
        font-size: 13px;
    }
}
