﻿@charset "UTF-8";

/* 当前学校移动端统一品牌样式 */
:root {
    --school-ink: #182832;
    --school-navy: #104e79;
    --school-red: #b5162a;
    --school-gold: #a7774e;
    --school-muted: #64747a;
    --school-paper: #f8f6ef;
    --school-line: rgba(24, 40, 50, .12);
}

html,
body { overflow-x: hidden; }

/* 旧内容中写死尺寸的媒体，统一限制在手机可视宽度内。 */
#content img,
#content video,
#content iframe,
#content embed,
#content object {
    max-width: 100%;
}

#content img,
#content video { height: auto; }

#content input,
#content select,
#content textarea,
#content button {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    background: var(--school-paper);
    color: var(--school-ink);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--school-ink); }
a:hover,
a:active { color: var(--school-red); }

.wrap {
    padding-top: 76px;
    background: var(--school-paper);
}

/* 公共顶部 */
#header.mobileSiteHeader {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    height: 76px;
    line-height: normal;
    color: var(--school-ink);
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--school-line);
    box-shadow: 0 3px 15px rgba(12, 29, 42, .1);
}

#header #logo.mobileBrand {
    display: block;
    height: 76px;
    margin: 0 62px 0 14px;
    padding: 0;
}

#header #logo.mobileBrand a {
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

#header .mobileBrandMark {
    display: block;
    width: 92px;
    max-width: 30vw;
    height: auto;
    flex: none;
}

#header .mobileBrandSchool {
    display: block;
    min-width: 0;
    line-height: 1;
}

#header .mobileBrandSchool img {
    display: block;
    width: 138px;
    max-width: 100%;
    height: auto;
    margin-left: -2px;
    filter: brightness(0);
    opacity: .84;
}

#header .mobileBrandSchool small {
    display: inline-block;
    /* 校名图片本身底部带透明留白，轻微上移英文以缩短视觉间距。 */
    margin-top: -1px;
    width: auto;
    overflow: hidden;
    color: #66777f;
    font-size: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .09em;
    word-spacing: .08em;
    text-align: left;
    transform: scaleX(1.06);
    transform-origin: left center;
    white-space: nowrap;
}

#header .topNav dt {
    top: 50%;
    right: 14px;
    left: auto;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    line-height: 40px;
    color: #fff;
    background: var(--school-ink);
}

#header .topNav dt::after {
    color: #fff;
    font-size: 24px;
}

#header dt::before { top: 40px; border-bottom-color: #fff; }

#header dd {
    box-sizing: border-box;
    top: 76px;
    width: 100%;
    max-height: calc(100vh - 76px);
    padding: 14px 16px 20px;
    overflow-y: auto;
    background: #fff;
    border-top: 3px solid var(--school-red);
    box-shadow: 0 14px 28px rgba(12, 29, 42, .18);
}

#header .back,
#header .siteSearch,
#header .userLogged,
#header .title { display: none !important; }

.mainNav .li1 { margin: 0 0 7px; }
.mainNav .li1 .a1 {
    box-sizing: border-box;
    height: 46px;
    padding: 0 15px;
    color: var(--school-ink);
    background: #f3f1ea;
    border-left: 3px solid transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 46px;
}
.mainNav .li1 .a1:hover,
.mainNav .on1 .a1 { color: var(--school-red); background: #f8f6ef; border-left-color: var(--school-red); }
.mainNav .hasUl1 .sh { width: 48px; height: 46px; line-height: 46px; background: #e8e5dc; }
.mainNav .ul1 { padding: 4px 0 12px; }
.mainNav .li2 { box-sizing: border-box; min-width: 50%; padding: 9px 5px 0; }
.mainNav .a2 { padding: 0 8px; color: var(--school-muted); font-size: 13px; }

/* 移动端业务系统：放在主导航之后，采用点击折叠，适配触屏操作。 */
.mobileBusinessSystems { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--school-line); }
.mobileBusinessTrigger {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 15px;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: var(--school-ink);
    border: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}
.mobileBusinessGridIcon { display: grid; grid-template-columns: repeat(2,5px); gap: 2px; }
.mobileBusinessGridIcon i { display: block; width: 5px; height: 5px; background: currentColor; }
.mobileBusinessChevron { width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.mobileBusinessSystems.is-open .mobileBusinessChevron { transform: rotate(225deg); }
.mobileBusinessPanel { display: none; padding: 10px 0 0; }
.mobileBusinessSystems.is-open .mobileBusinessPanel { display: grid; gap: 8px; }
.mobileBusinessPanel a {
    display: grid;
    box-sizing: border-box;
    min-height: 70px;
    padding: 10px;
    align-items: center;
    grid-template-columns: 42px minmax(0,1fr) 18px;
    gap: 10px;
    color: var(--school-ink);
    background: #f8f6ef;
    border: 1px solid var(--school-line);
}
.mobileBusinessPanel a:active { color: var(--school-ink); background: #fff; border-color: var(--school-red); }
.mobileBusinessIcon { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--school-red); background: #edf3f5; }
.mobileBusinessIcon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobileBusinessPanel strong,
.mobileBusinessPanel small { display: block; }
.mobileBusinessPanel strong { margin-bottom: 3px; color: var(--school-ink); font-size: 14px; line-height: 1.35; }
.mobileBusinessPanel small { overflow: hidden; color: var(--school-muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.mobileBusinessPanel b { color: var(--school-red); font-size: 16px; font-weight: 400; }

.mobileNavSearch { position: relative; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--school-line); }
.mobileNavSearch #inputkeyword { box-sizing: border-box; width: calc(100% - 86px); height: 42px; padding: 0 12px; border: 1px solid var(--school-line); }
.mobileNavSearch #search { position: absolute; top: 14px; right: 0; width: 78px; height: 42px; color: #fff; background: var(--school-red); border: 0; line-height: 42px; }
.mobileNavSearch .select-box { display: none; }

/* 全站内容和按钮 */
#content { box-sizing: border-box; background: var(--school-paper); padding: 20px 14px 32px; }

/* 尚未单独改造的问卷、投票、信箱和表单模板使用统一的移动端兜底布局。 */
.wrap > .path {
    box-sizing: border-box;
    padding: 15px 16px;
    color: rgba(255,255,255,.72);
    background: linear-gradient(118deg, #0c2738 0%, #174f77 100%);
    font-size: 11px;
    line-height: 1.8;
}

.wrap > .path::before { color: #e4aa55; }
.wrap > .path a,
.wrap > .path span { color: rgba(255,255,255,.82); }

#content:not(.mobileHomeContent):not(.mobileInnerContent) {
    overflow-x: auto;
    background: var(--school-paper);
}

#content:not(.mobileHomeContent):not(.mobileInnerContent) .mainContent,
#content:not(.mobileHomeContent):not(.mobileInnerContent) .side {
    box-sizing: border-box;
    float: none;
    width: 100%;
    margin: 0 0 16px;
}

#content:not(.mobileHomeContent):not(.mobileInnerContent) .mainBox,
#content:not(.mobileHomeContent):not(.mobileInnerContent) .boxA,
#content:not(.mobileHomeContent):not(.mobileInnerContent) .boxB,
#content:not(.mobileHomeContent):not(.mobileInnerContent) .letterBox {
    box-sizing: border-box;
    max-width: 100%;
    background: #fff;
    border-top: 3px solid var(--school-ink);
    box-shadow: 0 2px 9px rgba(24,40,50,.06);
}

#content .form-control,
#content input[type="text"],
#content input[type="password"],
#content input[type="email"],
#content input[type="tel"],
#content textarea,
#content select {
    max-width: 100%;
}
.moreBtn {
    box-sizing: border-box;
    height: 42px;
    margin-top: 14px;
    color: var(--school-navy);
    background: transparent;
    border: 1px solid var(--school-line);
    font-size: 14px;
    font-weight: 700;
    line-height: 40px;
}
.moreBtn:hover,
.moreBtn:active { color: #fff; background: var(--school-red); border-color: var(--school-red); }

/* 公共底部，不显示“常用链接”标题 */
#footer.mobileSiteFooter {
    padding: 30px 20px 24px;
    color: rgba(255,255,255,.72);
    background: var(--school-ink);
    text-align: left;
    font-size: 11px;
    line-height: 1.9;
}

#footer .mobileFooterBrand { margin-bottom: 18px; }
#footer .mobileFooterBrand strong { display: block; color: #fff; font-size: 19px; line-height: 1.45; }
#footer .mobileFooterBrand span { display: block; margin-top: 4px; color: #d1a35f; font-size: 9px; letter-spacing: .14em; }
#footer a { color: rgba(255,255,255,.86); }
#footer a:hover { color: #fff; }
#footer .footNav { display: flex; margin-bottom: 16px; flex-wrap: wrap; gap: 7px 16px; }
#footer .footNav a { margin: 0; }
#footer .copyRight { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); }
#footer .btns { margin-top: 15px; }
#footer .btns a { display: inline-block; min-width: 88px; padding: 4px 13px; text-align: center; border: 1px solid rgba(255,255,255,.28); }

/* 全文检索品牌色 */
.fulltextSearchBody .select-box dt .s-option,
.fulltextSearchBody .select-box dt span,
.fulltextSearchBody .select-box .select-box-row ul li.active,
.fulltextSearchBody .s-content .link-box,
.fulltextSearchBody .s-content .link-box a,
.fulltextSearchBody .s-advanced .title { color: var(--school-navy); }
.fulltextSearchBody .nodename,
.fulltextSearchBody .select-box .select-box-row h3 span,
.fulltextSearchBody .s-advanced #sunbtim,
.fulltextSearchBody .s-advanced #search,
.fulltextSearchBody .s-tablink-scroll-touch #ulindexitem > li.current:after,
.fulltextSearchBody .s-head-form .btn-box .btn { background-color: var(--school-navy); }
.fulltextSearchBody .s-head-form .input-box .from-control { border-color: var(--school-navy); }

@media screen and (max-width: 350px) {
    #header #logo.mobileBrand { margin-left: 10px; margin-right: 56px; }
    #header .mobileBrandMark { width: 78px; }
    #header .mobileBrandSchool img { width: 118px; }
    #header .mobileBrandSchool small {
        font-size: 7px;
        letter-spacing: .07em;
        transform: scaleX(1.03);
    }
    #header .topNav dt { right: 10px; }
    #content { padding-right: 11px; padding-left: 11px; }
}
