/* V_university_0.3 - WebPlus adapter for the converted home page. */

/* WebPlus window wrappers must not change the original frontend layout. */
.vuniv-window,
.vuniv-window > [frag="窗口内容"] { width: 100%; }
.vuniv-window .more,
.vuniv-window .more-link { display: none !important; }

/* WebPlus navigation -> new-site header appearance. */
#desktopNav { flex: 1; min-width: 0; }
#desktopNav > [frag^="窗口"],
#desktopNav [frag="窗口内容"] { width: 100%; }
#desktopNav .wp_nav,
#desktopNav ul.wp_nav { margin: 0; padding: 0; list-style: none; display: flex; gap: 40px; justify-content: center; align-items: center; font-size: 17px; }
#desktopNav .wp_nav .nav-item,
#desktopNav .wp_nav > li { position: relative; float: none; width: auto; margin: 0; padding: 0; background: none; }
#desktopNav .wp_nav > li::after { position: absolute; top: 5px; right: -20px; content: ''; width: 1px; height: 15px; background: rgba(188,109,109,1); }
#desktopNav .wp_nav > li:last-child::after { display: none; }
#desktopNav .wp_nav a { color: #fff !important; background: none !important; border: 0 !important; padding: 0 !important; line-height: 1.5 !important; white-space: nowrap; }
#desktopNav .wp_nav .item-name { color: inherit !important; }
#desktopNav .wp_nav .sub-nav,
#desktopNav .wp_nav ul { display: block; position: absolute; top: 100%; left: 50%; width: 150px; transform: translate(-50%,10px); opacity: 0; visibility: hidden; z-index: 1000; margin: 0; padding: 5px 0; list-style: none; background: rgba(112,17,17,.96); border-radius: 0 0 8px 8px; transition: all .3s ease; }
#desktopNav .wp_nav > li:hover > .sub-nav,
#desktopNav .wp_nav > li:hover > ul { opacity: 1; visibility: visible; transform: translate(-50%,0); }
#desktopNav .wp_nav .sub-nav li,
#desktopNav .wp_nav ul li { display: block; float: none; width: 100%; margin: 0; padding: 9px 14px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.1); }
#desktopNav .wp_nav .sub-nav li:last-child,
#desktopNav .wp_nav ul li:last-child { border-bottom: 0; }
#desktopNav .wp_nav .sub-nav ul,
#desktopNav .wp_nav ul ul { top: 0; left: 100%; transform: translate(10px,0); }
#desktopNav .wp_nav .sub-nav li:hover > ul,
#desktopNav .wp_nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translate(0,0); }

/* Mobile navigation is cloned from the WebPlus navigation after rendering. */
.mobile-nav-host { padding: 5px 20px 25px; }
.mobile-nav-host .wp_nav,
.mobile-nav-host .wp_nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav-host .wp_nav > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav-host .wp_nav a { display: block; padding: 12px 0; color: #fff !important; background: none !important; }
.mobile-nav-host .wp_nav ul { display: block; padding-left: 18px; }
.mobile-nav-host .wp_nav ul a { padding: 8px 0; font-size: 14px; opacity: .9; }

/* WebPlus custom list tags inside the new-site component styles. */
.vuniv-row-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vuniv-row-link .names { min-width: 0; flex: 1; }
.vuniv-row-link .names a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vuniv-row-link .dates { flex: 0 0 auto; color: #9a9a9a; }
ul.list-text .vuniv-row-link .names { font-size: 18px; }
ul.list-text li:hover .names a,
ul.list-text-image li:hover .names a { color: rgba(112,17,17,1); }

ul.list-text-image li .image-frame .vuniv-image-row { display: flex; align-items: stretch; justify-content: space-between; }
ul.list-text-image li .image-frame .figures > a { display: block; width: 100%; height: 100%; }
ul.list-text-image li .image-frame .figures > a img,
ul.list-text-image li .image-frame .figures > img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
ul.list-text-image li .image-frame .texts .names a { font-weight: 700; }
ul.list-text-image li .image-frame .texts .descs { color: #555; line-height: 1.7; }

/* WebPlus generated title anchors inherit the converted design. */
.vuniv-window .names a { color: inherit; }
.vuniv-window .descs a { color: inherit; }

/* Friend links generated by a simpleNews window. */
.vuniv-friends-window ul.links { margin: 0; padding: 0; list-style: none; }
.vuniv-friends-window ul.links li { margin: 0; }
.vuniv-friends-window ul.links li a { color: #fff; }

/* Header search using the current site's WebPlus search endpoint. */
.header .searchs .frame-from .keyword { color: #272727; }

@media screen and (max-width: 1200px) {
    #desktopNav .wp_nav,
    #desktopNav ul.wp_nav { gap: 24px; font-size: 15px; }
    #desktopNav .wp_nav > li::after { right: -12px; }
}

@media screen and (max-width: 991px) {
    #desktopNav { display: none; }
    ul.list-text-image li .image-frame .vuniv-image-row { align-items: stretch; }
}

@media screen and (max-width: 600px) {
    ul.list-text-image li .image-frame .vuniv-image-row { display: block; }
    ul.list-text-image li .image-frame .figures { width: 100%; height: 190px; }
    ul.list-text-image li .image-frame .texts { padding: 14px; }
}

/* Current inner-page navigation state, matching the source site. */
#desktopNav .wp_nav > li.active > a,
#desktopNav .wp_nav > li.selected > a { position: relative; }
#desktopNav .wp_nav > li.active > a::after,
#desktopNav .wp_nav > li.selected > a::after {
    position: absolute; left: 0; bottom: -8px; content: '';
    width: 100%; height: 5px; background: #fff; border-radius: 10px;
    box-shadow: 0 3px 6px rgba(255,255,255,.57);
}


/* === V_university_0.4 content-page adapter === */
/* Source mapping: templates/single.php, category.php and style.php. */
.vuniv-single-window,
.vuniv-single-window > [frag^="窗口"],
.vuniv-single-window [frag="窗口内容"],
.vuniv-column-content,
.vuniv-column-content > [frag^="窗口"],
.vuniv-column-content [frag="窗口内容"] { width: 100%; }

.vuniv-single-window .wp_articlecontent,
.vuniv-single-window .wp_entry,
.vuniv-single-window .wp_single,
.vuniv-single-window .wp_column_article,
.vuniv-column-content { overflow-wrap: anywhere; }

.vuniv-single-window img,
.vuniv-column-content img { max-width: 100% !important; height: auto !important; }

/* If WebPlus exposes its one-article view wrapper, remove component chrome only;
   article body typography remains the source site's original .single-profile rules. */
.vuniv-single-window .wp_single,
.vuniv-single-window .wp_column_article,
.vuniv-single-window .wp_entry { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }

/* === V_university_0.6 dynamic teacher adapter === */
.teacher-data-source { display: none !important; }
.vuniv-empty { padding: 35px 0; text-align: center; color: #888; }
ul.list-teacher li .drop-teacher .profile-frame .figures .imgs { height: 255px; overflow: hidden; }
ul.list-teacher li .drop-teacher .profile-frame .figures .imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher-tail:empty { display: none; }
.vuniv-search-shell { max-width: 760px; margin-left: auto; margin-right: auto; }
.vuniv-search-form { display: flex; gap: 12px; }
.vuniv-search-form input { flex: 1; height: 46px; padding: 0 16px; border: 1px solid #ddd; outline: none; }
.vuniv-search-form button { min-width: 100px; border: 0; background: #701111; color: #fff; font-size: 16px; }

/* === V_university_0.6 / 学工在线 WebPlus adapter === */
/* XGZX home: an empty/unavailable banner must not put white navigation on
   white content. Restore the normal overlay after a banner image loads. */
body.xgzx-home-page.xgzx-home-no-banner #header-xgzx {
    position: relative;
    top: 0;
    padding-top: 30px;
    padding-bottom: 30px;
}
body.xgzx-home-page.xgzx-home-no-banner .header-xgzx {
    background: rgba(112, 17, 17, .97);
}
body.xgzx-home-page.xgzx-home-no-banner #xgzxDesktopNav .wp_nav ul {
    background: rgba(112, 17, 17, .97) !important;
}
body.xgzx-home-page.xgzx-home-no-banner #home-banner { display: none; }
@media screen and (max-width: 991px) {
    body.xgzx-home-page.xgzx-home-no-banner #header-xgzx {
        padding-top: 0;
        padding-bottom: 0;
    }
}

#xgzxDesktopNav { margin-top: 15px; }
#xgzxDesktopNav > [frag^="窗口"],
#xgzxDesktopNav [frag="窗口内容"] { width: 100%; }
#xgzxDesktopNav .wp_nav,
#xgzxDesktopNav ul.wp_nav { margin: 0; padding: 0; list-style: none; display: flex; gap: 80px; justify-content: center; align-items: center; font-size: 17px; }
#xgzxDesktopNav .wp_nav > li { position: relative; float: none; width: auto; margin: 0; padding: 0 0 20px; background: none; color: #fff; }
#xgzxDesktopNav .wp_nav > li::after { position: absolute; top: 5px; right: -40px; content: ''; width: 1px; height: 15px; background: rgba(229,228,228,1); }
#xgzxDesktopNav .wp_nav > li:last-child::after { display: none; }
#xgzxDesktopNav .wp_nav a { color: #fff !important; background: none !important; border: 0 !important; padding: 0 !important; line-height: 1.5 !important; white-space: nowrap; }
#xgzxDesktopNav .wp_nav > li.active > a::after,
#xgzxDesktopNav .wp_nav > li.selected > a::after { position: absolute; left: 0; bottom: -8px; content: ''; width: 100%; height: 5px; background: #fff; border-radius: 10px; box-shadow: 0 3px 6px rgba(255,255,255,.57); }
#xgzxDesktopNav .wp_nav ul { display: block; position: absolute; left: 50%; top: 100%; width: 150px; z-index: 1000; margin: 0; padding: 5px 0; list-style: none; background: rgba(255,255,255,.17); transform: translate(-50%,10px); opacity: 0; visibility: hidden; transition: all .3s ease; border-radius: 0 0 8px 8px; }
#header-xgzx.active #xgzxDesktopNav .wp_nav ul { background: rgba(112,17,17,.93); }
#xgzxDesktopNav .wp_nav > li:hover > ul { opacity: 1; visibility: visible; transform: translate(-50%,0); }
#xgzxDesktopNav .wp_nav ul li { position: relative; float: none; display: block; width: 100%; padding: 10px 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.1); }
#xgzxDesktopNav .wp_nav ul li:last-child { border-bottom: 0; }
#xgzxDesktopNav .wp_nav ul ul { left: 100%; top: 0; transform: translate(10px,0); }
#xgzxDesktopNav .wp_nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translate(0,0); }
.xgzx-floating-menus .mobile-nav-host .wp_nav,
.xgzx-floating-menus .mobile-nav-host .wp_nav ul { margin: 0; padding: 0; list-style: none; }
.xgzx-floating-menus .mobile-nav-host .wp_nav > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.xgzx-floating-menus .mobile-nav-host .wp_nav a { display: block; padding: 12px 0; color: #fff !important; background: none !important; }
.xgzx-floating-menus .mobile-nav-host .wp_nav ul { padding-left: 18px; }
.xgzx-floating-menus .mobile-nav-host .wp_nav ul a { padding: 8px 0; font-size: 14px; opacity: .9; }
.header-xgzx .heads .searchs #search-form-btn { cursor: pointer; }
.xgzx-inside-banner img { width: 100%; display: block; }
.xgzx-banner-desktop, .xgzx-banner-desktop > a, .xgzx-banner-desktop img { display: block; width: 100%; }
.xgzx-banner-desktop img { height: auto !important; max-width: none !important; }
.xgzx-banner-mobile { display: none !important; width: 100%; height: auto; }
.xgzx-friend-links ul,
.xgzx-bottom-links ul { margin: 0; padding: 0; list-style: none; }
.xgzx-brother-source { display: none !important; }
.xgzx-qrcode-window > [frag="窗口内容"] { display: flex; align-items: center; gap: 20px; }
.xgzx-qrcode-window .qrcode img { max-width: 100%; }
.xgzx-module .contents .wp_article_list { margin: 0; padding: 0; list-style: none; }
#grammar-pioneer .grammar-pioneer,
.home-honor,
.home-peaches { overflow: hidden; white-space: nowrap; }
#grammar-pioneer .items,
.home-honor .singles,
.home-peaches .singles { white-space: normal; }

@media screen and (max-width: 1200px) {
    #xgzxDesktopNav .wp_nav, #xgzxDesktopNav ul.wp_nav { gap: 48px; font-size: 15px; }
    #xgzxDesktopNav .wp_nav > li::after { right: -24px; }
}
@media screen and (max-width: 991px) {
    #xgzxDesktopNav { display: none; }
    .xgzx-banner-desktop { display: none !important; }
    .xgzx-banner-mobile { display: block !important; }
}
/* === V_university_0.6.6 WebPlus navigation marker compatibility ===
 * simpleSudyNavi renders <i class="mark"> elements. Bootstrap also defines
 * .mark with a pale background, which can cover navigation text when the
 * WebPlus navigation stylesheet positions the marker. The converted design
 * already draws separators with li::after, so the WebPlus marker is hidden.
 */
#desktopNav .wp_nav .mark,
#xgzxDesktopNav .wp_nav .mark,
.mobile-nav-host .wp_nav .mark,
.xgzx-floating-menus .wp_nav .mark {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
#desktopNav .wp_nav > li:last-child::after,
#xgzxDesktopNav .wp_nav > li:last-child::after {
    display: none !important;
}


/* === V_university_0.6.7 WebPlus runtime navigation hardening ===
   WebPlus may inject sudyNav.css after template CSS and may also add inline
   left/top/width/height values to submenu UL elements.  Keep the converted
   visual design authoritative without changing WebPlus navigation data. */
#desktopNav .wp_nav,
#desktopNav ul.wp_nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}
#desktopNav .wp_nav > li,
#desktopNav .wp_nav > li.nav-item {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
#desktopNav .wp_nav > li > a,
#desktopNav .wp_nav > li > a:link,
#desktopNav .wp_nav > li > a:visited,
#desktopNav .wp_nav > li > a:hover,
#desktopNav .wp_nav > li > a:active,
#desktopNav .wp_nav > li > a .item-name {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

/* First-level dropdown: WebPlus writes inline left/top/width/height values.
   !important is intentional so the submenu remains centred under its owner. */
#desktopNav .wp_nav > li > .sub-nav,
#desktopNav .wp_nav > li > ul {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 100% !important;
    width: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    transform: translate(-50%,10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
    background: rgba(112,17,17,.96) !important;
}
#desktopNav .wp_nav > li:hover > .sub-nav,
#desktopNav .wp_nav > li:hover > ul {
    transform: translate(-50%,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#desktopNav .wp_nav > li > ul > li,
#desktopNav .wp_nav > li > .sub-nav > li {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
#desktopNav .wp_nav > li > ul > li > a,
#desktopNav .wp_nav > li > .sub-nav > li > a,
#desktopNav .wp_nav > li > ul > li > a .item-name,
#desktopNav .wp_nav > li > .sub-nav > li > a .item-name {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    text-align: center !important;
}

/* Third and deeper levels open to the right of their parent dropdown item. */
#desktopNav .wp_nav > li > ul ul,
#desktopNav .wp_nav > li > .sub-nav ul {
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    width: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    transform: translate(10px,0) !important;
}
#desktopNav .wp_nav > li > ul li:hover > ul,
#desktopNav .wp_nav > li > .sub-nav li:hover > ul {
    transform: translate(0,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Keep desktop navigation readable inside the WebPlus design/configuration
   canvas, whose effective content width can fall below a normal desktop. */
@media screen and (min-width: 992px) and (max-width: 1200px) {
    #desktopNav .wp_nav,
    #desktopNav ul.wp_nav {
        gap: 20px !important;
        font-size: 16px !important;
    }
    #desktopNav .wp_nav > li::after { right: -10px !important; }
}

/* XGZX navigation uses the same WebPlus runtime positioning model.  Apply the
   same inline-style override so second/third-level menus remain aligned. */
#xgzxDesktopNav .wp_nav,
#xgzxDesktopNav ul.wp_nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}
#xgzxDesktopNav .wp_nav > li,
#xgzxDesktopNav .wp_nav > li.nav-item {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: transparent !important;
}
#xgzxDesktopNav .wp_nav > li > a,
#xgzxDesktopNav .wp_nav > li > a:link,
#xgzxDesktopNav .wp_nav > li > a:visited,
#xgzxDesktopNav .wp_nav > li > a:hover,
#xgzxDesktopNav .wp_nav > li > a:active,
#xgzxDesktopNav .wp_nav > li > a .item-name {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
#xgzxDesktopNav .wp_nav > li > ul {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 100% !important;
    width: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    transform: translate(-50%,10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
}
#xgzxDesktopNav .wp_nav > li:hover > ul {
    transform: translate(-50%,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
#xgzxDesktopNav .wp_nav > li > ul > li {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
#xgzxDesktopNav .wp_nav > li > ul > li > a,
#xgzxDesktopNav .wp_nav > li > ul > li > a .item-name {
    display: block !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    text-align: center !important;
}
#xgzxDesktopNav .wp_nav > li > ul ul {
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    width: 150px !important;
    min-width: 150px !important;
    height: auto !important;
    transform: translate(10px,0) !important;
}
#xgzxDesktopNav .wp_nav > li > ul li:hover > ul {
    transform: translate(0,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
    #xgzxDesktopNav .wp_nav,
    #xgzxDesktopNav ul.wp_nav {
        gap: 36px !important;
        font-size: 16px !important;
    }
    #xgzxDesktopNav .wp_nav > li::after { right: -18px !important; }
}

/* WebPlus may wrap the rendered navigation in runtime containers.  Keep those
   wrappers participating in the flex header instead of shrinking to content. */
#desktopNav,
#desktopNav > div,
#desktopNav [id^="wp_nav_"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#desktopNav > div,
#desktopNav [id^="wp_nav_"],
#desktopNav [frag="窗口内容"] {
    width: 100% !important;
    height: auto !important;
}
#header .header {
    flex-wrap: nowrap !important;
    min-height: 58px;
}


/* V0.6.8 - WebPlus home banner full-width compatibility
   The original PHP site renders separate desktop/mobile artwork at its natural
   proportions. WebPlus {图片} can emit width/height attributes or inline 320x240
   display dimensions. Do not guess undocumented simpleNews cXX settings here;
   normalize only the rendered size so the configured image fills the viewport. */
#home-banner,
#home-banner .swiper,
#home-banner .swiper-wrapper,
#home-banner .swiper-slide {
    width: 100% !important;
    max-width: none !important;
}
#home-banner .swiper-slide {
    height: auto !important;
    overflow: hidden !important;
}
#home-banner .swiper-slide > a,
#home-banner .swiper-slide > span,
#home-banner .swiper-slide > p,
#home-banner .swiper-slide > div:not(.slide-text),
#home-banner .swiper-slide > span > a,
#home-banner .swiper-slide > div:not(.slide-text) > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#home-banner .swiper-slide img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
}



/* V0.6.8 hotfix - article ImagePlayer isolation.
   Some WebPlus articles containing the built-in jQueryftxhdp gallery load an
   extra global stylesheet/script bundle. Keep the gallery available, but
   re-assert the converted site's header/nav geometry after that plugin runs. */
body.vuniv-has-imageplayer #header {
    position: relative !important;
    z-index: 100 !important;
    overflow: visible !important;
    padding: 20px 0 !important;
    background: rgba(112,17,17,1) !important;
}
body.vuniv-has-imageplayer #header .container,
body.vuniv-has-imageplayer #header .header,
body.vuniv-has-imageplayer #desktopNav,
body.vuniv-has-imageplayer #desktopNav > div,
body.vuniv-has-imageplayer #desktopNav [id^="wp_nav_"] {
    overflow: visible !important;
}
body.vuniv-has-imageplayer #header .header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 58px !important;
    height: auto !important;
    line-height: normal !important;
}
body.vuniv-has-imageplayer #header .logos {
    flex: 0 0 auto !important;
    height: auto !important;
    line-height: normal !important;
}
body.vuniv-has-imageplayer #header .logos img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 58px !important;
    height: auto !important;
}
body.vuniv-has-imageplayer #desktopNav .wp_nav,
body.vuniv-has-imageplayer #desktopNav ul.wp_nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    line-height: 1.5 !important;
}
body.vuniv-has-imageplayer #desktopNav .wp_nav > li,
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > a,
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > a .item-name {
    height: auto !important;
    line-height: 1.5 !important;
}
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > ul,
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > .sub-nav,
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > ul ul,
body.vuniv-has-imageplayer #desktopNav .wp_nav > li > .sub-nav ul {
    height: auto !important;
}
body.vuniv-has-imageplayer .wp_articlecontent .picSlideWrap,
body.vuniv-has-imageplayer .wp_articlecontent .sudy-imgs {
    max-width: 100%;
}

/* Teacher source content is only a parser input.  It is intentionally kept as
   raw text so embedded article images/scripts are not rendered or requested. */
.teacher-data-source .teacher-source-content {
    display: none !important;
}

/* === V0.6.9 teacher-page column placement fix ===
   The four department columns are data/group dimensions for the teacher page,
   not left-sidebar navigation items. Hide only this page's nested sidebar
   columns; the same columns are rendered on the right inside every teacher tab. */
body.vuniv-teacher-page .vuniv-column-list .wp_subcolumn {
    display: none !important;
}

/* The four bound WebPlus source windows are parser inputs only. */
body.vuniv-teacher-page #teacherDataSource,
body.vuniv-teacher-page #teacherDataSource .teacher-major-source,
body.vuniv-teacher-page #teacherDataSource .teacher-source-item {
    display: none !important;
}

/* === V0.6.11 WebPlus breadcrumb separator order fix ===
   WebPlus simpleColumnAttri outputs breadcrumbs as:
   <a>...</a><span class="possplit">...</span><a>...</a>...
   The original theme rule `.current-location span { float:left; }` was written
   for the old PHP markup where each whole breadcrumb item was wrapped by span.
   On WebPlus it pulls all separator spans to the front, producing
   `home > > > 首页师资队伍教师队伍...`.
   Keep the WebPlus separators in normal inline flow on every converted list/detail page. */
.vuniv-location .breadcrumbs .possplit {
    float: none !important;
}

/* === V_university_0.7 teacher Phase 1: consistent faculty hover cards === */
body.vuniv-teacher-page ul.list-teacher li .drop-teacher {
    width: 660px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    z-index: 30;
}
body.vuniv-teacher-page ul.list-teacher li.drop-left .drop-teacher {
    left: auto;
    right: 80%;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame {
    width: 620px;
    min-width: 0;
    max-width: calc(100vw - 72px);
    min-height: 330px;
    box-sizing: border-box;
    align-items: stretch;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .figures {
    flex: 0 0 210px;
    width: 210px;
    min-width: 210px;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .figures .imgs {
    width: 210px;
    height: 248px;
    overflow: hidden;
    background: #f5f5f5;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .figures .imgs img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .figures .names {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .intros {
    min-width: 0;
    padding: 20px 10px 20px 20px;
}
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .intros .infos {
    margin-top: 18px;
    line-height: 1.85;
    max-height: 11.1em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* === V_university_0.7 teacher Phase 2: legacy article -> new detail layout === */
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .imgs {
    aspect-ratio: 500 / 592;
    overflow: hidden;
    background: #f4f4f4;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .imgs img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
}
body.vuniv-teacher-detail-page .teacher-contact-params .lists li {
    min-height: 34px;
    overflow-wrap: anywhere;
}
body.vuniv-teacher-detail-page .teacher-fame.teacher-field-empty {
    display: none !important;
}
body.vuniv-teacher-detail-page .teacher-intro-content {
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
body.vuniv-teacher-detail-page .teacher-derived-section .contents {
    white-space: pre-line;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
body.vuniv-teacher-detail-page .teacher-tail.teacher-tail-parsed {
    display: none !important;
}

@media screen and (max-width: 991px) {
    body.vuniv-teacher-page ul.list-teacher li .drop-teacher {
        display: none !important;
    }
    body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .imgs {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* === V_university_0.7.2 teacher data-mapping / typography fixes === */
/* The underline in the converted teacher UI was visually too heavy (6px in
   the source theme). Use a 3px underline on teacher pages. */
body.vuniv-teacher-page .header-four .titles::before,
body.vuniv-teacher-detail-page .header-four .titles::before {
    height: 3px;
}

/* Hover profile: tighter reading rhythm and consistent summary density. */
body.vuniv-teacher-page ul.list-teacher li .drop-teacher .profile-frame .intros .infos {
    line-height: 1.55;
    max-height: 9.3em;
}

/* Detail-page information boxes use the requested 18px body typography. */
body.vuniv-teacher-detail-page .teacher-detail .heads .profile-frame .figures .params .items,
body.vuniv-teacher-detail-page .teacher-contact-params .lists li,
body.vuniv-teacher-detail-page .teacher-intro-content {
    font-size: 18px;
}
body.vuniv-teacher-detail-page .teacher-contact-params .lists li {
    line-height: 1.65;
}
body.vuniv-teacher-detail-page .teacher-intro-content {
    line-height: 1.65;
}

/* Only the optional fame line may disappear when it has no value. Contact
   fields remain visible with an empty value so the following labels never move. */
body.vuniv-teacher-detail-page .teacher-fame-empty {
    display: none !important;
}
body.vuniv-teacher-detail-page .teacher-contact-params .teacher-field-empty,
body.vuniv-teacher-detail-page .teacher-contact-params li.teacher-field-empty {
    display: list-item !important;
}

/* Content after the legacy 个人简介 section is kept as the user's original
   rich-editor HTML rather than rebuilt into generated plain-text sections. */
body.vuniv-teacher-detail-page .teacher-tail {
    margin-top: 50px;
}
body.vuniv-teacher-detail-page .teacher-tail:empty {
    display: none;
}

/* === V_university_0.7.3 teacher mentor/filter + detail spacing/editor-content fixes === */
/* Detail card: show only the professional-title value under the portrait. */
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .boxs {
    padding: 14px 24px 24px 24px;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .names {
    padding-top: 10px;
    padding-bottom: 10px;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .params {
    margin-top: 6px;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .params .items {
    line-height: 1.5;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .params .teacher-field-empty {
    display: none !important;
}

/* The red biography block and the original editor content below it are two
   independent regions. Reduce the excessive top/bottom padding here only. */
body.vuniv-teacher-detail-page .teacher-detail .heads .intros {
    margin-top: 42px;
    padding-top: 42px;
    padding-right: 8%;
    padding-bottom: 42px;
    padding-left: 40%;
    box-sizing: border-box;
}
body.vuniv-teacher-detail-page .teacher-detail .heads .intros .infos {
    margin-top: 20px;
}

/* Keep the WebPlus rich-editor DOM after 个人简介 untouched.  Do not
   override its .wp_articlecontent/.teacher/.teac2/.t3/.t4 typography here:
   those classes are already styled by the site's own WebPlus stylesheet and
   inline editor HTML.  The adapter only separates this area from the red bio. */
body.vuniv-teacher-detail-page .teacher-tail.teacher-editor-content {
    margin-top: 42px;
}

@media screen and (max-width: 991px) {
    body.vuniv-teacher-detail-page .teacher-detail .heads .intros {
        margin-top: 15px;
        padding: 26px 15px;
        min-height: 0 !important;
    }
    body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .boxs {
        padding: 10px 0 14px 0;
    }
    body.vuniv-teacher-detail-page .teacher-tail.teacher-editor-content {
        margin-top: 28px;
    }
}
/* === V_university_0.7.5 teacher/home fidelity fixes === */
/* When a legacy teacher article carries its own inline <style> block, let that
   source template control the spacing/typography of everything after 个人简介. */
body.vuniv-teacher-detail-page .teacher-tail.teacher-editor-content.teacher-editor-has-legacy-style {
    margin-top: 0;
}

/* Home image modules: if WebPlus returns no article image, show the
   dedicated image provided for the homepage placeholder, without cropping. */
ul.list-text-image li .image-frame .figures.vuniv-figure-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
ul.list-text-image li .image-frame .figures.vuniv-figure-placeholder > img.vuniv-default-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}
ul.list-text-image li .image-frame:hover .figures.vuniv-figure-placeholder > img.vuniv-default-logo {
    transform: none !important;
}

/* === V_university_0.7.6 home banner seam fix ===
   WebPlus can leave a small inline/line-height box around the home slideshow
   window, which appears as a thin white seam between #header and the first
   slide.  Scope the reset to the homepage banner panel only so no list,
   article, teacher, footer, or other WebPlus window is affected. */
.vuniv-home-banner-panel,
.vuniv-home-banner-panel > [frag^="窗口"],
.vuniv-home-banner-panel [frag="窗口内容"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.vuniv-home-banner-panel #home-banner,
.vuniv-home-banner-panel #home-banner .swiper,
.vuniv-home-banner-panel #home-banner .swiper-wrapper,
.vuniv-home-banner-panel #home-banner .swiper-slide,
.vuniv-home-banner-panel #home-banner .swiper-slide > a,
.vuniv-home-banner-panel #home-banner .swiper-slide img {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    vertical-align: top !important;
}
/* Restore normal text metrics inside optional slide captions/pagination. */
.vuniv-home-banner-panel #home-banner .slide-text {
    font-size: 15px;
    line-height: 1.5;
}
.vuniv-home-banner-panel #home-banner .swiper-pagination {
    line-height: normal;
}


/* === V_university_0.7.7 teacher detail title alignment === */
/* Only the professional-title row under the teacher portrait is centered.
   Remove the decorative red bullet inherited from global.css without changing
   any other teacher-card metadata or the list-page hover card. */
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .params .teacher-profess {
    text-align: center;
    padding-left: 0;
}
body.vuniv-teacher-detail-page .teacher-detail .profile-frame .figures .params .teacher-profess::before {
    content: none;
    display: none;
}


/* === V_university_0.7.9: consistent home banner top edge === */
/* Slides may have slightly different intrinsic aspect ratios. The source
   theme vertically centers each image in a flex slide, exposing the slide's
   white background above shorter images. Always anchor artwork to the top. */
.vuniv-home-banner-panel #home-banner .swiper-wrapper {
    align-items: flex-start !important;
}
.vuniv-home-banner-panel #home-banner .swiper-slide {
    align-items: flex-start !important;
    align-self: flex-start !important;
}

/* WebPlus third-level dropdown: keep one line, without changing first and
   second-level menu labels. Text longer than six characters is shortened by
   the shared navigation script, retaining the full name as a title tooltip. */
#desktopNav .wp_nav > li > ul > li > ul > li > a > .item-name,
#xgzxDesktopNav .wp_nav > li > ul > li > ul > li > a > .item-name {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}


/* === V_university_0.7.10: header teacher subnav scope ===
   The "教师队伍" item is a clickable second-level destination, not an
   expandable third-level header menu. Do not hide department links in the
   teacher page or the left sidebar; hide only nested header-navigation ULs. */
#desktopNav .wp_nav > li > ul > li.vuniv-no-third-nav > ul,
#xgzxDesktopNav .wp_nav > li > ul > li.vuniv-no-third-nav > ul,
#mobileNavHost .wp_nav > li > ul > li.vuniv-no-third-nav > ul {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* V_university_0.7.11: match third-level dropdown text to the existing
   15px second-level labels. Leave top-level sizing, placement, and the
   six-character truncation rule unchanged. */
#desktopNav .wp_nav > li > ul > li > ul > li > a,
#desktopNav .wp_nav > li > ul > li > ul > li > a > .item-name,
#xgzxDesktopNav .wp_nav > li > ul > li > ul > li > a,
#xgzxDesktopNav .wp_nav > li > ul > li > ul > li > a > .item-name {
    font-size: 15px !important;
}

/* V_university_0.7.20: "学生工作" is a top-level link, not a dropdown.
   Hide only its first-level submenu on the College desktop/mobile navigation.
   The link itself remains visible and clickable. */
#desktopNav .wp_nav > li.vuniv-no-dropdown > ul,
#desktopNav .wp_nav > li.vuniv-no-dropdown > .sub-nav,
#mobileNavHost .wp_nav > li.vuniv-no-dropdown > ul,
#mobileNavHost .wp_nav > li.vuniv-no-dropdown > .sub-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
