/* Scoped overrides retain the existing college identity and CMS markup. */
:root {
    --yj-primary: #00816b;
    --yj-dark: #005b50;
    --yj-border: #cde8e1;
    --yj-muted: #717c78;
}
html { scroll-behavior: smooth; height: auto; min-height: 100%; overflow: auto; }
body { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; height: auto; min-height: 100vh; overflow: visible; }
body #wapper { max-width: 100%; height: auto; }
body .container { max-width: 1170px; width: calc(100% - 40px); }
a:focus-visible, button:focus-visible { outline: 3px solid #e5ac23; outline-offset: 3px; }
[hidden] { display: none !important; }
body #header { display: block; }
#header .row { margin-left: 0; margin-right: 0; }
#header .hz_header { height: 145px; }
#navbar.yj-navbar { height: auto; min-height: 0; margin: 0; overflow: visible; background: transparent; z-index: 20; }
#navbar.yj-navbar .container { height: auto; background: var(--yj-primary); padding: 0; }
#navbar.yj-navbar .navbar { margin: 0; min-height: 50px; border: 0; background: transparent; }
#navbar.yj-navbar .navbar-header { position: static; height: 0; }
#navbar.yj-navbar #navbar-brand { position: absolute; top: -112px; left: 18px; margin: 0; padding: 0; height: auto; width: auto; }
#navbar.yj-navbar #navbar-brand img { max-width: min(720px, 88vw); width: auto; max-height: 88px; height: auto; }
#navbar.yj-navbar #yj-menu-toggle { display: none; background: transparent; border-radius: 3px; }
#navbar .yj-nav-list { display: flex; float: none; width: 100%; padding: 0; margin: 0; list-style: none; }
#navbar .yj-nav-list > li { position: relative; flex: 1; width: auto; height: auto; top: 0; float: none; line-height: normal; background: transparent; }
#navbar .yj-nav-list > li > a { display: block; padding: 16px 30px; color: #fff; font-size: 17px; line-height: 1.2; text-decoration: none; }
#navbar .yj-nav-list > li:last-child { background: var(--yj-dark); }
#navbar .yj-nav-list > li:last-child > a { color: #fff4bb; }
#navbar .yj-nav-list a::before, #navbar .yj-nav-list a::after { content: none; }
#navbar .yj-nav-list > li.active > a, #navbar .yj-nav-list > li:hover > a { background: var(--yj-dark); }
#navbar .yj-submenu-toggle { position: absolute; right: 5px; top: 10px; width: 30px; height: 30px; border: 0; background: transparent; color: white; font-size: 20px; line-height: 30px; padding: 0; }
#navbar .yj-submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; width: max(100%, 180px); padding: 6px 0; margin: 0; background: #fff; border: 1px solid var(--yj-border); list-style: none; text-align: left; }
#navbar .yj-submenu li, #navbar .yj-submenu li:last-child { float: none; width: 100%; height: auto; line-height: normal; background: #fff; top: 0; }
#navbar .yj-submenu a { display: block; padding: 11px 18px; color: #254b42; font-size: 15px; }
#navbar .yj-submenu a:hover, #navbar .yj-submenu a[aria-current] { background: #e9f7f2; color: var(--yj-primary); }
#navbar .yj-has-submenu.yj-open > .yj-submenu { display: block; }
#Enrollment .yj-home .container { padding: 0; margin: 0 auto 32px; border: 0; background: white; }
#Enrollment .yj-home #Enrollment-index-banner-image { padding: 14px 0 22px; }
.yj-hero .carousel { position: relative; overflow: hidden; background: #e4f2ed; }
.yj-hero .carousel-inner > .item { width: 100%; }
.yj-hero .carousel-inner > .item img { width: 100%; height: clamp(240px, 48vw, 560px); object-fit: contain; background: #e4f2ed; }
.yj-hero .carousel-caption { left: 0; right: 0; bottom: 0; padding: 28px 80px 35px; background: linear-gradient(transparent, rgba(0, 42, 33, .8)); font-size: 18px; text-shadow: none; }
.yj-hero .carousel-indicators { bottom: 8px; }
.yj-hero .carousel-control { width: 7%; z-index: 10; }
.yj-hero .carousel-control span { color: white; font: 42px/55px Arial, sans-serif; }
.yj-hero .carousel-control span::before { content: none; }
#Enrollment .yj-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 30px; }
.yj-panel { min-width: 0; border: 1px solid var(--yj-border); border-top: 3px solid var(--yj-primary); background: #fff; }
.yj-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #e4efeb; }
.yj-panel-heading h2 { margin: 0; color: var(--yj-dark); font-size: 21px; font-weight: 600; line-height: 1.4; }
.yj-panel-heading > a { color: var(--yj-muted); font-size: 13px; }
.yj-panel-heading > a:hover { color: var(--yj-primary); }
#Enrollment .yj-home .widgets > .panel { margin: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
#Enrollment .yj-panel .widgets > .panel > .panel-heading { display: none; }
#Enrollment .yj-panel .widgets .panel-body { padding: 5px 20px 14px; height: auto; min-height: 266px; }
#Enrollment .yj-panel .widgets .list-group { padding: 0; margin: 0; }
#Enrollment .yj-news-list .list-group-item { display: flex; align-items: baseline; gap: 14px; border: 0; border-bottom: 1px dashed #e3eae7; padding: 12px 0; line-height: 1.6; background: none; }
#Enrollment .yj-news-list .list-group-item:last-child { border-bottom: 0; }
#Enrollment .yj-news-list .list-group-item > a { display: block; flex: 1; width: auto; min-width: 0; margin: 0; padding: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #323e39; line-height: 1.6; }
#Enrollment .yj-news-list .list-group-item > a::before { content: none; }
#Enrollment .yj-news-list .list-group-item > a:hover { color: var(--yj-primary); }
#Enrollment .yj-news-list .list-group-item .badge { position: static; flex: 0 0 auto; width: auto; padding: 0; background: none; color: var(--yj-muted); font-size: 12px; font-weight: normal; float: none; line-height: 1.6; }
#Enrollment .yj-gallery #Enrollment-list-3 .panel-body { padding: 16px 20px; }
#Enrollment .yj-gallery .list-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; width: auto; transform: none; }
#Enrollment .yj-gallery .list-group::before, #Enrollment .yj-gallery .list-group::after { display: none; }
#Enrollment .yj-gallery .list-group-item { float: none; width: auto; padding: 0; border: 0; background: transparent; }
#Enrollment .yj-gallery .list-group-item:nth-child(n+5) { display: none; }
#Enrollment .yj-gallery .list-group-item a { display: block; padding: 0; color: #334a42; }
#Enrollment .yj-gallery .list-group-item img { width: 100%; height: 105px; object-fit: cover; }
#Enrollment .yj-gallery .list-group-item span { display: block; position: static; color: #334a42; background: none; padding: 7px 0 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
#Enrollment .yj-gallery .list-group-item a::before { content: none; }
body .maintain, body #Schoolsurvey-main, body #Enrollment-main { width: calc(100% - 40px); max-width: 1170px; margin: 24px auto 32px; min-height: 360px; }
body #main { min-width: 0; overflow-wrap: anywhere; }
body #main > h3 { color: var(--yj-dark); font-size: 24px; margin: 0 0 18px; padding: 18px 20px; border-bottom: 2px solid var(--yj-primary); }
body #main img { max-width: 100%; height: auto; }
body #main .list-group { padding: 12px 20px; }
body #page-news-info h1 { font-size: 27px; line-height: 1.6; text-align: center; }
body #page-news-info-detail { font-size: 16px; line-height: 1.9; overflow-x: auto; }
.yj-related { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; padding: 12px 16px; background: #edf7f3; }
.yj-related a { padding: 5px 10px; color: var(--yj-dark); border-radius: 3px; font-size: 14px; }
.yj-related a[aria-current], .yj-related a:hover { background: var(--yj-primary); color: #fff; }
.yj-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 20px; }
.yj-photo-card { display: block; min-width: 0; color: #334a42; }
#main .yj-photo-card img { width: 100%; height: 180px; object-fit: cover; }
#main .yj-photo-card h4 { margin: 10px 0; font-size: 16px; line-height: 1.5; }
.yj-photo-empty, .yj-image-error { display: block; padding: 35px 12px; background: #edf7f3; color: #46655b; text-align: center; }
.yj-image-dialog { max-width: 92vw; max-height: 94vh; border: 0; padding: 20px; border-radius: 5px; background: white; }
.yj-image-dialog::backdrop { background: rgba(0, 20, 15, .82); }
.yj-image-dialog img { display: block; max-width: 84vw; max-height: 72vh; margin: 12px auto; object-fit: contain; }
.yj-image-dialog button { float: right; border: 1px solid var(--yj-border); background: white; padding: 5px 14px; color: var(--yj-dark); }
.yj-image-dialog p { margin: 12px 0 0; text-align: center; }
.yj-archive-links { padding: 14px 0; background: #edf7f3; text-align: center; }
.yj-archive-links a { display: inline-block; padding: 7px 14px; color: var(--yj-dark); }
body .list-nodata { padding: 40px 20px; color: var(--yj-muted); text-align: center; }
@media (max-width: 991px) {
    #navbar .yj-nav-list > li > a { padding: 16px 24px 16px 8px; font-size: 15px; }
    #Enrollment .yj-home-grid { gap: 20px; }
    #Enrollment .yj-panel .widgets .panel-body { padding-left: 14px; padding-right: 14px; }
    body #aside { display: none !important; }
    body #aside-right { width: 100%; float: none; padding: 0; }
    .yj-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body .container, body .maintain, body #Schoolsurvey-main, body #Enrollment-main { width: calc(100% - 24px); }
    #header .hz_header { height: 108px; }
    #navbar.yj-navbar #navbar-brand { top: -82px; left: 10px; }
    #navbar.yj-navbar #navbar-brand img { max-width: calc(100vw - 48px); max-height: 65px; }
    #navbar.yj-navbar .navbar-header { height: 44px; }
    #navbar.yj-navbar #yj-menu-toggle { display: block; float: right; margin: 4px 8px; padding: 8px 12px; width: auto; font-size: 14px; color: white; border: 1px solid rgba(255,255,255,.5); }
    #navbar #yj-navigation.yj-collapsed { display: none; }
    #navbar .yj-nav-list { display: block; }
    #navbar .yj-nav-list > li > a { padding: 14px 20px; text-align: left; }
    #navbar .yj-submenu { position: static; width: 100%; border: 0; }
    #navbar .yj-submenu-toggle { right: 12px; top: 8px; }
    #Enrollment .yj-home-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .yj-panel-heading { padding: 13px 16px; }
    .yj-panel-heading h2 { font-size: 20px; }
    #Enrollment .yj-panel .widgets .panel-body { min-height: 0; }
    #Enrollment .yj-news-list .list-group-item > a { white-space: normal; overflow: visible; font-size: 14px; }
    #Enrollment .yj-news-list .list-group-item { align-items: flex-start; gap: 9px; }
    #Enrollment .yj-gallery .list-group-item img { height: clamp(100px, 28vw, 170px); }
    .yj-hero .carousel-caption { font-size: 14px; padding: 24px 18px 45px; }
    .yj-hero .carousel-indicators { width: 66%; left: 6%; margin-left: 0; }
    body #main { padding: 0; }
    body #main > h3 { font-size: 21px; }
    body #page-news-info h1 { font-size: 21px; }
    body #main .list-group { padding: 10px; }
    body #page-news-info-meta > div { width: 100%; }
    body #page-news-info-meta-sizeable { text-align: left; margin-top: 8px; }
    .yj-photo-grid { gap: 14px; padding: 12px; }
    #main .yj-photo-card img { height: 130px; }
    .yj-related { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .carousel .item { transition: none !important; }
}
