@charset "utf-8";
/* ============================================================
 * nav.css —— 全站统一导航（首页 / 内页共用）
 * 1. 移动端全屏导航面板（含站内搜索）
 * 2. 站内搜索浮层
 * 由页面上的「汉堡」按钮打开，桌面端不使用
 * ============================================================ */

/* ---------- 1. 移动端全屏导航面板 ---------- */
.nav-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: rgba(4, 20, 36, .5);
}

.nav-mask.open { display: block; }

.nav-panel {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 22px 24px 36px;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: -webkit-linear-gradient(160deg, rgba(21, 76, 121, .95) 0%, rgba(7, 58, 100, .97) 100%);
    background: linear-gradient(160deg, rgba(21, 76, 121, .95) 0%, rgba(7, 58, 100, .97) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-panel.open { display: block; }

/* 面板打开时锁住页面滚动 */
body.nav-open { overflow: hidden; }

.nav-panel-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100%;
}

/* 面板头：校徽 + 关闭 */
.nav-panel-head {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-panel-head img { height: 38px; width: auto; }

.nav-panel-head button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: background .25s;
    transition: background .25s;
}

.nav-panel-head button:hover { background: rgba(255, 255, 255, .28); }

/* 面板内搜索 */
.nav-panel-search {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 44px;
    margin-bottom: 14px;
    padding: 0 4px 0 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 22px;
    background: rgba(255, 255, 255, .13);
}

.nav-panel-search input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.nav-panel-search input::-webkit-input-placeholder { color: rgba(255, 255, 255, .6); }
.nav-panel-search input::placeholder { color: rgba(255, 255, 255, .6); }

.nav-panel-search button {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40px;
    flex: 0 0 40px;
    width: 40px;
    height: 36px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    opacity: .9;
}

.nav-panel-search button:hover { opacity: 1; }

/* 菜单列表 */
.nav-panel-list {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-panel-list li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 14px 2px;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.nav-panel-list li a::before {
    content: "";
    -webkit-box-flex: 0;
    -ms-flex: 0 0 5px;
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin-right: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.nav-panel-list li.on a { color: #fff; font-weight: 700; }

.nav-panel-list li.on a::before {
    background: #C9A25E;
    -webkit-box-shadow: 0 0 0 3px rgba(201, 162, 94, .18);
    box-shadow: 0 0 0 3px rgba(201, 162, 94, .18);
}

/* ---------- 2. 站内搜索浮层 ---------- */
.search-box {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(4, 26, 45, .97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .3s, visibility .3s;
    transition: opacity .3s, visibility .3s;
}

.search-box.on { opacity: 1; visibility: visible; }

.search-form {
    position: absolute;
    left: 50%;
    top: 45%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 800px;
    max-width: 84%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.search-form input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 20px;
    font-family: inherit;
    outline: none;
}

.search-form input::-webkit-input-placeholder { color: rgba(255, 255, 255, .45); }
.search-form input::placeholder { color: rgba(255, 255, 255, .45); }

.search-form button {
    width: 100px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
    font-family: inherit;
    cursor: pointer;
}

.search-form button:hover { color: #C9A25E; }

.search-box .sc-close {
    position: absolute;
    right: 40px;
    top: 32px;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 30px;
    line-height: 34px;
    text-align: center;
    opacity: .7;
}

.search-box .sc-close:hover { opacity: 1; }

/* ---------- 3. 移动端：搜索浮层尺寸 ---------- */
@media screen and (max-width: 1024px) {
    .search-form {
        width: auto;
        max-width: 86%;
    }

    .search-form input { height: 60px; font-size: 24px; }
    .search-form button { width: 110px; font-size: 22px; }

    .search-box .sc-close {
        right: 20px;
        top: 20px;
        width: 50px;
        height: 50px;
        font-size: 34px;
        line-height: 50px;
    }
}

/* ---------- 4. 平板档：面板内容收成居中一列 ---------- */
@media screen and (min-width: 600px) and (max-width: 1024px) {
    .nav-panel { padding: 30px 40px 44px; }

    .nav-panel-inner {
        max-width: 640px;
        margin: 0 auto;
    }

    .nav-panel-head { margin-bottom: 26px; }
    .nav-panel-head img { height: 46px; }

    .nav-panel-search { height: 52px; margin-bottom: 18px; border-radius: 26px; }
    .nav-panel-search input { font-size: 17px; }

    .nav-panel-list li a { padding: 17px 2px; font-size: 18px; }
}

/* ---------- 5. 桌面端不使用面板 ---------- */
@media screen and (min-width: 1025px) {
    .nav-mask,
    .nav-panel { display: none !important; }
}
