/* Designer CSS owns all layout, typography, colors and responsive breakpoints.
   These rules only connect the dynamic content and accessible slider. */
.k12-banner>ul{display:block;width:100%}
.k12-banner li{position:absolute;top:0;left:0}
.k12-banner li[hidden]{display:none!important}
.k12-news-list-text p{margin-top:5px;margin-bottom:15px}
.k12-brand{font-size:32px;color:var(--brand)}
.k12-image-placeholder{display:block;width:100%;aspect-ratio:3/2;background:#f5f7f9}
.k12-empty{padding:24px 0;color:#888}
[role=tab],[role=button]{cursor:pointer}
[role=tab]:focus-visible,[role=button]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:767px),(hover:none) and (pointer:coarse){
 .product-wrap .product[data-course-label]::before{content:attr(data-course-label)}
}
.k12-news-navigation{padding:16px 0;color:#666;font-size:14px;overflow-wrap:anywhere}
.k12-news-navigation p{margin:0 0 8px;line-height:1.8}
.k12-news-navigation a{padding-top:0}
.k12-news-navigation span{color:#999}
.k12-related-news{margin-top:20px;border-top:1px solid var(--surface-border);padding-top:20px}
.k12-related-news h3{font-size:20px;line-height:28px;margin:0 0 12px}
.k12-news-column-more{padding:24px 0 4px;text-align:center;color:#666;font-size:16px}
.k12-news-column-more a{color:var(--brand);margin:0 6px}
.k12-news-column-more a:hover{text-decoration:underline}
/* Center header icons independently of text baselines and legacy floats. */
@media(min-width:768px){
 .top > .right{display:flex;align-items:center;gap:6px}
 .top .top_tel{float:none;flex:0 0 22px;width:22px;height:22px;padding:0;margin:0;background-position:0 -248px}
 #head .tel{display:flex;align-items:center}
 #head .icon_tel{float:none;flex:0 0 28px;margin:0 4px 0 0}
}
/* Make generated body links identifiable without changing template navigation. */
.k12-body a[data-auto-internal-link]{display:inline;color:var(--brand,#ea4245);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.k12-body a[data-auto-internal-link]:hover{color:#c62e36;text-decoration-thickness:2px}
.k12-body a[data-auto-internal-link]:focus-visible{outline:2px solid var(--brand,#ea4245);outline-offset:3px;border-radius:2px}
/* The template's .page flex container wrapped a block ul, stacking its li items. */
.k12-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:30px 0 8px;padding:0;clear:both;font-size:14px;line-height:1.4}
.k12-pagination>ul{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.k12-pagination>ul>li{display:block;float:none;width:auto;margin:0;padding:0;border:0;list-style:none}
.k12-pagination li>a,.k12-pagination li>span{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 13px;border:1px solid #e2e4e8;border-radius:6px;background:#fff;color:#555;text-decoration:none;white-space:nowrap;transition:color .15s,border-color .15s,background-color .15s}
.k12-pagination li>a:hover{color:var(--brand,#ea4245);border-color:var(--brand,#ea4245);background:#fff5f5}
.k12-pagination li>a:focus-visible{outline:2px solid var(--brand,#ea4245);outline-offset:3px}
.k12-pagination li>.is-current{color:#fff;background:var(--brand,#ea4245);border-color:var(--brand,#ea4245);font-weight:600}
.k12-pagination li>.is-disabled{color:#b7bbc2;background:#f7f8fa;border-color:#eceef1;cursor:default}
.k12-pagination .k12-pagination-gap{min-width:20px;text-align:center;color:#999}
.k12-pagination-total{color:#888;white-space:nowrap}
@media(max-width:600px){.k12-pagination{gap:10px;margin-top:24px}.k12-pagination>ul{gap:6px}.k12-pagination li>a,.k12-pagination li>span{min-width:36px;height:38px;padding:0 10px}.k12-pagination-total{flex-basis:100%;text-align:center}}
/* Campus cards fill their content column instead of using legacy 173/175px widths. */
#campus_detail .recommend>.clearfix,#campus_detail .imgs>.clearfix{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%;margin-top:16px}
#campus_detail .recommend>.clearfix::after,#campus_detail .imgs>.clearfix::after{display:none}
#campus_detail .recommend>.clearfix>a{float:none;width:100%;min-width:0;margin:0;box-sizing:border-box;display:flex;flex-direction:column;background:#fff}
#campus_detail .recommend img,#campus_detail .recommend .k12-image-placeholder,#campus_detail .imgs>.clearfix>img{display:block;float:none;width:100%;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0;box-sizing:border-box}
#campus_detail .recommend h3{margin:0;padding:10px 8px;font-size:16px;line-height:1.5!important;overflow-wrap:anywhere}
@media(max-width:767px){#campus_detail .recommend>.clearfix,#campus_detail .imgs>.clearfix{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#campus_detail .recommend h3{font-size:14px;padding:8px 6px}}
/* Article typography: scoped to the body, excluding page titles and recommendations. */
.news_para.k12-body{font-size:16px;line-height:1.95;color:#454b54;overflow-wrap:anywhere}
.news_para.k12-body div{line-height:inherit;text-indent:0}
.news_para.k12-body p{margin:0 0 18px;line-height:inherit;text-indent:2em}
.news_para.k12-body :is(h1,h2,h3,h4,h5,h6){text-align:left;text-indent:0;color:#252a32;font-weight:700;line-height:1.5;clear:both;scroll-margin-top:24px}
.news_para.k12-body h1{font-size:28px;margin:36px 0 18px}
.news_para.k12-body h2{font-size:24px;margin:36px 0 18px;padding:10px 14px;border-left:4px solid var(--brand,#ea4245);border-radius:0 6px 6px 0;background:#fff5f5}
.news_para.k12-body h3{font-size:20px;margin:28px 0 12px;padding:0 0 10px;border-bottom:1px solid #eceef1}
.news_para.k12-body h4{font-size:18px;margin:24px 0 10px}
.news_para.k12-body :is(h5,h6){font-size:16px;margin:20px 0 8px}
.news_para.k12-body>:is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0}
.news_para.k12-body :is(h1,h2,h3,h4,h5,h6)+:is(h2,h3,h4,h5,h6){margin-top:18px}
.news_para.k12-body ul,.news_para.k12-body ol{margin:16px 0 22px;padding-left:1.75em;text-indent:0;list-style-position:outside}
.news_para.k12-body ul{list-style-type:disc}.news_para.k12-body ol{list-style-type:decimal}
.news_para.k12-body li{display:list-item;float:none;width:auto;margin:8px 0;padding:0;line-height:1.85;text-indent:0;list-style:inherit}
.news_para.k12-body li::marker{color:var(--brand,#ea4245);font-weight:600}
.news_para.k12-body li p{margin:6px 0;text-indent:0}.news_para.k12-body li :is(ul,ol){margin:8px 0}
.news_para.k12-body blockquote{margin:24px 0;padding:16px 20px;border-left:3px solid #cbd0d8;border-radius:0 6px 6px 0;background:#f7f8fa;color:#626976;text-indent:0}
.news_para.k12-body blockquote p{margin:0 0 8px;text-indent:0}.news_para.k12-body blockquote>:last-child{margin-bottom:0}
.news_para.k12-body table{display:block;width:100%;max-width:100%;margin:24px 0;border-collapse:collapse;overflow-x:auto;text-indent:0;font-size:15px;line-height:1.7}
.news_para.k12-body :is(th,td){padding:12px 16px;border:1px solid #e2e5eb;vertical-align:top;text-align:left;min-width:100px}
.news_para.k12-body th{background:#fff2f3;color:#73333a;font-weight:600}.news_para.k12-body tbody tr:nth-child(even){background:#fafbfc}
.news_para.k12-body :is(th,td) p{margin:0;text-indent:0}.news_para.k12-body caption{text-align:left;padding:0 0 10px;color:#737b87}
.news_para.k12-body img{display:block;max-width:100%;height:auto;margin:24px auto;border-radius:8px}
.news_para.k12-body figure{margin:24px 0;text-indent:0}.news_para.k12-body figure img{margin:0 auto 10px}.news_para.k12-body figcaption{text-align:center;font-size:14px;line-height:1.6;color:#858b94}
.news_para.k12-body hr{border:0;border-top:1px solid #e5e7eb;margin:30px 0}
.news_para.k12-body pre{margin:22px 0;padding:16px;overflow-x:auto;border-radius:6px;background:#f5f6f8;line-height:1.65;text-indent:0;white-space:pre}
.news_para.k12-body code{font-family:SFMono-Regular,Consolas,monospace;font-size:.9em;background:#f5f6f8;border-radius:3px;padding:2px 4px}.news_para.k12-body pre code{padding:0;background:none}
@media(max-width:767px){.news_para.k12-body{font-size:16px;line-height:1.9}.news_para.k12-body h1{font-size:25px}.news_para.k12-body h2{font-size:21px;margin-top:28px;padding:9px 12px}.news_para.k12-body h3{font-size:19px;margin-top:24px}.news_para.k12-body h4{font-size:17px}.news_para.k12-body :is(th,td){padding:10px 12px}.news_para.k12-body blockquote{padding:14px 16px}}

/* Shared related-content modules: ordered selections with compact, equal-width cards. */
.k12-recommendation-sidebar .nytitle{margin-bottom:16px}
.k12-recommendation-sidebar .nytitle .zuo{float:none;font-size:20px;color:#333}
.k12-recommendation-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;margin:18px 0;align-items:start}
.k12-recommendation-row:last-child{margin-bottom:0}
.k12-recommendation-image img,.k12-recommendation-image .k12-image-placeholder{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:5px;display:block}
.k12-recommendation-row>div>a{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.k12-recommendation-row>div>.k12-recommendation-column{font-size:12px;color:#999;margin-top:6px}
.k12-recommendation-bottom{margin:30px 0 20px;clear:both}
.k12-recommendation-bottom>h3{font-size:22px;line-height:1.4;border-bottom:1px solid #ddd;padding:0 0 12px;margin-bottom:18px;color:#333}
.k12-recommendation-bottom>h3:before{content:'';display:inline-block;width:5px;height:22px;background:#ef3d44;border-radius:3px;vertical-align:-3px;margin-right:10px}
.k12-recommendation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.k12-recommendation-grid>a{display:block;border:1px solid #eee;border-radius:6px;overflow:hidden;text-align:center}
.k12-recommendation-grid img,.k12-recommendation-grid .k12-image-placeholder{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.k12-recommendation-grid h4{font-size:16px;line-height:1.6;padding:8px;margin:0;overflow-wrap:anywhere}
@media(max-width:767px){.k12-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.k12-recommendation-sidebar .nytitle .zuo{font-size:18px}}

/* Homepage campus list grows by rows, without fixed-height empty space. */
#main #xq .tab_block_l .tab_content{height:auto;min-height:0;padding:20px}
#main #xq .tab_block_l .tab_content li .tr{height:auto;min-height:0;margin-bottom:0}
#main #xq .tab_block_l .tab_content li .tr .td{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 20px;margin:0;float:none}
#main #xq .tab_block_l .tab_content li .tr .td>div{float:none;min-width:0;margin:0}
#main #xq .tab_block_l .tab_content li .tr .td p{float:none;width:auto;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.8}
@media(max-width:900px){#main #xq .tab_block_l .tab_content li .tr .td{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#main #xq .tab_block_l .tab_content{padding:14px}#main #xq .tab_block_l .tab_content li .tr .td{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}}

/* Align homepage news accents to the text and compact the friend-link footer row. */
#main .newsbox .news_title{display:flex;align-items:center;justify-content:space-between;gap:12px}
#main .newsbox .news_title>.left{display:flex;align-items:center;min-width:0;float:none}
#main .newsbox .news_title>.right{float:none;flex-shrink:0}
#main .newsbox .news_title>.clearfix{display:none}
#main .newsbox .news_title .news_shu{display:block;position:static;float:none;flex:0 0 3px;height:20px;margin:0 8px 0 0;border-radius:2px}
#main .newsbox .news_title .left>a{line-height:1.5}
.youlianbox[data-friend-links]{margin:24px 0 0;padding:0;background:#fff;border-top:1px solid #e8e8e8}
.youlianbox[data-friend-links] .youlian{display:flex;align-items:flex-start;gap:12px 24px;height:auto;min-height:0;padding:18px 0;box-sizing:border-box}
.youlianbox[data-friend-links] .youlianTitle{float:none;flex-shrink:0;width:auto;margin:0;padding:0;font-size:16px;font-weight:600;color:#555;line-height:28px}
.youlianbox[data-friend-links] .youlianWord{display:flex;flex-wrap:wrap;gap:6px 24px;float:none;flex:1;min-width:0;width:auto;margin:0;padding:0;list-style:none}
.youlianbox[data-friend-links] .youlianWord li{float:none;margin:0;padding:0;line-height:28px}
.youlianbox[data-friend-links] .youlianWord li a{display:inline-block;font-size:14px;line-height:28px;color:#666;overflow-wrap:anywhere;text-decoration:none}
.youlianbox[data-friend-links] .youlianWord li a:hover{color:#ea4245;text-decoration:underline}
.youlianbox[data-friend-links]+#footer{margin-top:0}
@media(max-width:600px){.youlianbox[data-friend-links] .youlian{gap:8px 16px;padding:14px 0}.youlianbox[data-friend-links] .youlianWord{gap:4px 16px}}
