:root {
  --ink: #292225;
  --muted: #665961;
  --brand: #761c33;
  --brand-hover: #9e2b49;
  --wash: #f7f3f1;
  --paper: #fffdfb;
  --line: #e6d9d6;
  --shell: min(1200px, calc(100% - 40px));
  --radius: 9px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 16px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
body a { color: inherit; }
body a:hover { color: var(--brand-hover); }
:where(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 3px; }
img { max-width: 100%; }
body > .mlogo, body > #logo {
  display: flex; align-items: center; justify-content: flex-start; width: var(--shell); height: auto;
  margin: 0 auto; padding: 18px 0 14px; background: transparent;
}
body > .mlogo img, body > #logo img { display: block; width: min(100%, 360px); height: auto; margin: 0; }
.header-s, .header-container .header-s { display: block; height: auto; background: transparent; color: var(--muted); }
.header-s > .h-s { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.header-info, .header-container .header-info { float: none; width: auto; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: left; color: var(--muted); }
.header-info a { color: inherit; }
.header-wrap-all, .header-container { display: block; height: auto; background: transparent; }
.header-wrap, .header-container .header-wrap { overflow: visible; height: auto; display: flex; justify-content: flex-end; padding: 0 0 14px; }
body > .mlogo ~ .header-wrap-all .header-wrap, .header-container .header-wrap { margin-top: -30px; }
.header-wrap #SearchForm { width: min(100%, 420px); margin: 0; }
.search-2016, .header-wrap .search-2016 { position: static; float: none; width: 100%; height: auto; }
.search-2016 .search-form { display: flex; width: 100%; height: auto; margin: 0; }
.search-2016 .keywrds, .search-2016 .search-btn { float: none; height: 42px; line-height: normal; }
.search-2016 .keywrds {
  flex: 1 1 auto; min-width: 0; width: 100%; padding: 6px 12px; color: var(--ink); font-size: 15px;
  background: var(--paper); border: 1px solid #bca5a7; border-radius: 6px 0 0 6px;
}
.search-2016 .search-btn { flex: 0 0 auto; width: auto; padding: 0 18px; margin: 0; background: var(--brand); color: #fff; border: 0; border-radius: 0 6px 6px 0; }
.search-2016 .search-btn:hover { background: var(--brand-hover); }
.h-s, #container, .container { width: var(--shell); max-width: 1200px; min-width: 0; margin-inline: auto; }
.course-classify > .container, .course-classify > #container { width: 100%; }
body > .nav {
  display: block; position: relative; width: 100%; min-width: 0; height: auto;
  margin: 0 0 18px; background: var(--brand); font-size: 15px; line-height: 1.3;
}
.nav .h-s .h-s { width: 100%; }
.nav .h-s > ul { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 0; margin: 0; }
.nav .h-s > ul::before, .nav .h-s > ul::after { content: none; }
.nav li { float: none; width: auto; min-width: 0; margin: 0; }
.nav li > a {
  display: grid; place-items: center; min-height: 48px; width: auto; padding: 8px 3px;
  color: #fff; font-weight: 700; line-height: 1.3; text-align: center; white-space: nowrap;
  border: 0; background: none; transition: background-color 150ms ease;
}
.nav li > a:is(:hover,:focus-visible) { color: #fff; background: #983351; text-decoration: none; }
#slideshow { width: var(--shell); max-width: 1200px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
#slideshow .img { width: 100%; }
#slideshow .btns { width: 100%; }
#slideshow .btns b { width: auto; padding: 4px; height: auto; left: 50%; transform: translateX(-50%); border-radius: 99px; background-color: #2e172c80; }
#slideshow .btns b i { margin: 3px; }
#slideshow .btns b i.on { background: #ffa4bc; }
@media (min-width: 681px) and (max-width: 1240px) {
  #slideshow, #slideshow .img { height: calc((100vw - 40px) * .25); }
  #slideshow img { display: block; width: calc(100vw - 40px); height: auto; }
  #slideshow .btns b { top: auto; margin-top: calc((100vw - 40px) * .25 - 28px); }
}
.hot-course {
  display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 18px; align-items: center;
  margin-block: 18px 24px; padding: 12px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.hot-course::before { content: none; }
.hot-course .h-left, .hot-course .h-right, .hot-course .h-right ul { float: none; width: 100%; margin: 0; }
.hot-course .h-left { height: 100%; background-size: contain; background-position: center; }
.hot-course .h-right ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.hot-course .h-right ul::after { content: none; }
.hot-course li { display: flex; align-items: center; gap: 8px; width: auto; min-width: 0; margin: 0; border-bottom: 1px solid var(--line); }
.hot-course li a { display: block; flex: 1; min-width: 0; padding: 9px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-course li a img { display: none; }
.hot-course li span { position: static; flex: none; white-space: nowrap; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.course-classify { width: var(--shell); margin: 0 auto 18px; }
.course-classify > h2 { height: auto; margin: 0; padding: 10px 14px; line-height: 1.4; border-radius: var(--radius) var(--radius) 0 0; background: #f1e6e5; border: 1px solid var(--line); color: var(--brand); }
.course-classify > h2::before, .course-classify > h2::after, .course-classify > h2 p::before, .course-classify > h2 p::after { display: none; }
.course-classify > h2 > p { display: block; width: auto; margin: 0; padding: 0; color: inherit; font-size: 18px; font-weight: 700; background: none; }
.course-classify > .course-wrap {
  width: 100%; max-width: none; margin: 0 0 22px; padding: 5px 12px; background: var(--paper);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
.course-wrap ul { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; margin: 0; padding: 0; }
.course-wrap ul::before, .course-wrap ul::after { content: none; }
.course-wrap li { float: none; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; background: none; border: 0; }
.course-wrap li a { display: block; padding: 9px 2px; color: var(--ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-wrap li a:hover { color: var(--brand); background: var(--wash); }
.course_classify, .testimonial, .main-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(255px, .34fr); gap: 20px; }
.course-classify > .course_classify { width: 100%; }
.main-col { grid-template-columns: minmax(224px,.29fr) minmax(0,1fr); width: 100%; margin: 0; }
.course_classify::before, .course_classify::after, .testimonial::before, .testimonial::after, .main-col::before, .main-col::after { content: none; }
.course_left, .course_right, .main_left, .main_right, .testimonial_left, .testimonial_right {
  display: block; float: none; min-width: 0; width: auto; height: auto; margin: 0; max-width: none;
}
.coures_left_one, .course_right .item, .testimonial_right .item, .main_left .cols, .main_right, .testimonial_left {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.coures_left_one, .course_right .item, .testimonial_right .item, .main_left .cols { margin: 0 0 14px; }
.coures_left_one { padding: 0; }
.coures_left_one h3, .course_right .item h4, .testimonial_right .item h4,
.main_left .cols h4, .main_right > h3, .testimonial_left_title {
  height: auto; min-height: 48px; margin: 0; padding: 10px 14px; background: #f1e6e5;
  border: 0; border-bottom: 1px solid var(--line); color: var(--brand); font-size: 16px; line-height: 1.65; font-weight: 700;
}
.coures_left_one h3 a { color: var(--brand); }
.coures_left_one h3 .more, .course_right .more1, .testimonial_right .more1 { font-weight: 500; color: var(--brand); font-size: 13px; }
.coures_left_one ul { margin: 0; padding: 0; }
.coures_left_one ul > li {
  display: grid; grid-template-columns: minmax(0,1fr) 100px 57px 84px 100px;
  gap: 4px; align-items: center; float: none; width: 100%; min-height: 44px; padding: 0 9px; border-bottom: 1px solid var(--line);
}
.coures_left_one ul > li:last-child { border-bottom: 0; }
.coures_left_one ul > li:not(.coures_left_one_li):hover { background: var(--wash); }
.coures_left_one ul li span { display: block; float: none; width: auto; min-width: 0; height: auto; padding: 0 4px; line-height: 1.35; text-align: center; }
.coures_left_one ul li .couresw1 { text-align: left; }
.couresw1 > a { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.coures_left_one ul li .couresw4 { font-variant-numeric: tabular-nums; }
.coures_left_one ul li .couresw5bg { background-size: 12px; background-position: 8px center; padding: 0 0 0 8px; }
.coures_left_one ul .coures_left_one_li { min-height: 34px; background: var(--wash); }
.coures_left_one ul .coures_left_one_li span { font-size: 13px; color: var(--muted); }
.course_right .news ul, .testimonial_right .news ul, .main_left .cols ul { margin: 0; padding: 2px 12px; }
.course_right .news li, .testimonial_right .news li, .main_left .cols li {
  float: none; width: 100%; min-width: 0; height: auto; padding: 0; margin: 0; border-bottom: 1px solid var(--line);
}
.course_right .news li:last-child, .testimonial_right .news li:last-child, .main_left .cols li:last-child { border-bottom: 0; }
.course_right .news li a, .testimonial_right .news li a, .main_left .cols li a {
  display: block; padding: 8px 0; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.liucheng > ul { padding: 8px 14px 12px; }
body .position, body .nav_cru { height: auto; padding: 3px 0 12px; margin-block: 0; line-height: 1.55; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.position p { margin: 0; }
.position a, .nav_cru a { color: var(--brand); }
.content-mobile { display: none !important; }
.main_right { align-self: start; padding: 0; }
.main_right > h3 { font-size: 19px; padding-inline: 18px; }
.main_right > .class_cate { margin: 0; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--line); }
.class_cate table { table-layout: fixed; border-collapse: collapse; }
.class_cate td { overflow-wrap: anywhere; }
.main_right .course-tit a, .main_right > li > a, .search_page .list li > a {
  display: block; width: auto; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.main_right .course-tit a { font-size: 16px; font-weight: 700; }
.main_right :is(.course-tit, li) a:hover, .search_page .list li > a:hover { color: var(--brand-hover); }
.class_cate :is(.course-brief,.course-xz,.course-info) { color: var(--muted); }
.main_right > li, .search_page .list > li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; float: none;
  width: auto; min-height: 44px; height: auto; margin: 0 18px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.main_right > li > span, .search_page .list > li > span { position: static; flex: 0 0 auto; color: var(--muted); white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.main_right .plist, .main_right .fenye, .main_right .kspage { max-width: 100%; padding: 10px 12px; margin: 0; line-height: 2.3; white-space: normal; overflow-wrap: anywhere; }
.main_right .plist a, .main_right .fenye a, .main_right .kspage a { display: inline-block; padding-inline: 3px; color: var(--brand); min-height: 30px; }
.main_right .plist select, .main_right .fenye select { max-width: 100%; min-height: 34px; margin-left: 4px; color: var(--ink); background: var(--paper); }
.search_page .searchtips { padding: 12px 18px; color: var(--brand); background: #f1e6e5; }
.testimonial_left_con { padding: 18px; }
.main_right > .title { height: auto; min-height: 0; padding: clamp(20px,3vw,32px) clamp(14px,4vw,32px) 16px; background: none; text-align: center; }
.main_right > .title h1 { margin: 0 0 10px; font-family: "Songti SC","SimSun",serif; font-size: clamp(23px,3.1vw,36px); font-weight: 700; color: var(--ink); line-height: 1.34; overflow-wrap: anywhere; }
.main_right > .title p, .main_right > .title h2 { max-width: 100%; overflow-wrap: anywhere; }
.main_right > .content { padding: 12px clamp(14px,4vw,34px) 22px; font-size: 16px; line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.main_right > .content :is(img,video,iframe), #MyContent img { max-width: 100% !important; }
.main_right > .content img, #MyContent img { height: auto !important; }
.main_right > .content table, #MyContent table { max-width: 100%; }
.main_right > .content p { line-height: inherit; }
.main_right :is(.similar_course,.frmsubmit,section.site-registration) { min-width: 0; max-width: 100%; }
.main_right :is(.similar_course,section.site-registration) { margin: 14px clamp(10px,3vw,26px); }
#site-registration { scroll-margin-top: 18px; }
body > .frmsubmit, body > .about { width: var(--shell); max-width: 660px; height: auto; margin: 12px auto; }
body > .frmsubmit { padding: clamp(14px,3vw,28px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.frmsubmit :is(input:not([type=submit]),textarea) { max-width: 100%; }
.flink { display: block; width: var(--shell); margin: 18px auto; border: 0; background: transparent; }
.flink h3 { background: none; border: 0; color: var(--muted); }
.fiink_list table { width: 100%; }
.fiink_list td { display: inline-block; margin: 4px 10px 4px 0; }
.footerall { display: block; min-width: 0; width: 100%; height: auto; margin-top: 24px; padding: 14px 0 22px; background: #ece4e2; color: var(--ink); }
.footerall .footer { width: var(--shell); max-width: 1200px; height: auto; margin: 0 auto; padding: 0; background: transparent; }
.footer_one, .footer_one_left { width: auto; height: auto; min-width: 0; float: none; }
.footer_one_left { display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: center; }
.footer_one_left::before, .footer_one_left::after { content: none; }
.footer_one_left ul { width: auto; height: auto; margin: 0; padding: 0; border: 0; }
.footerall .footer_one_left > ul > li { color: var(--ink); }
.footerall .footer_one_left > ul > li:first-child { color: var(--brand); }
.footerall .footer_one_left > ul > li > a { color: inherit; }
.footerall .footer_one_left > ul > li > a:hover { color: var(--brand-hover); }
.footerall .footer_two { width: auto; height: auto; text-align: center; overflow-wrap: anywhere; }
@media (min-width: 851px) {
  .fixed-bottom { display: none !important; }
}
@media (max-width: 850px) {
  :root { --shell: calc(100% - 28px); }
  .main-col, .course_classify, .testimonial { gap: 14px; grid-template-columns: minmax(0,1fr); }
  .main_right { grid-row: 1; }
  .header-wrap, .header-container .header-wrap { padding-bottom: 12px; }
  body:has(.fixed-bottom) { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .fixed-bottom {
    display: block; position: fixed; inset: auto 0 0; z-index: 9990; width: 100%; height: auto;
    min-height: 54px; padding-bottom: env(safe-area-inset-bottom); background: var(--brand); box-shadow: 0 -2px 9px #4d102326;
  }
  .fixed-bottom ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; margin: 0; padding: 0; }
  .fixed-bottom ul::before, .fixed-bottom ul::after { content: none; }
  .fixed-bottom li { float: none; width: auto; height: auto; margin: 0; text-align: center; }
  .fixed-bottom li a { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 54px; padding: 5px 2px; color: #fff; line-height: 1.4; font-size: 13px; white-space: nowrap; }
  .fixed-bottom li img { display: block; width: 18px; height: 18px; object-fit: contain; margin: 0 0 2px; }
  .fixed-bottom li p { margin: 0; }
  #fixed_sec { display: none; }
}
@media (max-width: 680px) {
  body > :is(.mlogo,#logo) { justify-content: center; padding: 13px 0 9px; }
  body > .mlogo img, body > #logo img { width: min(260px,100%); }
  .header-s > .h-s { justify-content: center; }
  .header-s .shareto { display: none; }
  body > .mlogo ~ .header-wrap-all .header-wrap, .header-container .header-wrap { margin-top: 4px; }
  .header-wrap #SearchForm { width: 100%; }
  body > .nav { margin-bottom: 12px; }
  .nav .h-s > ul { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .nav li > a { min-height: 43px; font-size: 14px; }
  .nav li:nth-child(n+5) { border-top: 1px solid #ffffff32; }
  #slideshow { display: none; }
  body > .img_gallery { display: block; width: var(--shell); height: auto; aspect-ratio: 2.3; margin: 0 auto; overflow: hidden; border: 0; border-radius: var(--radius); }
  .img_gallery .main_img { height: 100%; }
  .main_img ul, .main_img li, .main_img li a, .main_img li span { height: 100%; }
  .main_img li span[class] { background-size: contain; background-position: center; background-color: #eee6e4; }
  .img_gallery :is(#btn_prev,#btn_next) { display: none !important; }
  .hot-course { grid-template-columns: minmax(0,1fr); gap: 0; margin-block: 12px 16px; padding: 8px 10px; }
  .hot-course::before { display: block; content: "\91cd\70b9\63a8\8350\8bfe\7a0b"; color: var(--brand); font-size: 16px; font-weight: 700; }
  .hot-course .h-left { display: none; }
  .hot-course .h-right ul { grid-template-columns: minmax(0,1fr); }
  .hot-course li { font-size: 15px; }
  .course-wrap ul { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .course-classify > .course-wrap { padding-inline: 5px; }
  .course-wrap li a { min-height: 42px; padding: 10px 1px; font-size: clamp(12px,3.4vw,15px); }
  .coures_left_one ul > li { grid-template-columns: minmax(0,1fr) max-content max-content; gap: 6px; }
  .coures_left_one ul > li:not(.coures_left_one_li) { grid-template-rows: auto auto; padding: 7px 8px; }
  .coures_left_one ul > li:not(.coures_left_one_li) .couresw1 { grid-column: 1 / -1; font-size: 15px; }
  .coures_left_one ul > li span { padding: 2px 4px; font-size: 13px; text-align: left; }
  .coures_left_one ul li .couresw3 { display: none; }
  .coures_left_one ul .coures_left_one_li { display: none; }
  .coures_left_one ul li .couresw5bg { padding-left: 16px; background-position: 0 center; }
  .main_right > .class_cate, .main_right > h3 { padding-inline: 12px; }
  .main_right > li, .search_page .list > li { margin-inline: 12px; }
  .main_right > .title h1 { font-size: 24px; }
  .main_right > .content table { width: 100% !important; table-layout: fixed; }
  .main_right > .content :is(td,th) { min-width: 0 !important; overflow-wrap: anywhere; }
  .main_right > .content pre { white-space: pre-wrap; }
  .main_right > .content p:has(img) { text-indent: 0 !important; }
  .footer_one_left { gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav li > a { transition: none; }
}

/* Keep the legacy 1920px-wide logo artwork legible without changing its image URL. */
body > .mlogo, body > #logo { padding-block: 7px 1px; }
body > .mlogo img, body > #logo img {
  flex: 0 0 460px; width: 460px; max-width: none; height: 103px;
  object-fit: none; object-position: 29% bottom;
}
#slideshow { width: var(--shell) !important; }
#slideshow .img .paging { pointer-events: none; }
#slideshow .img .pattern, #slideshow .img .subpattern { display: none; }
#slideshow .btns b { width: auto !important; margin-left: 0 !important; }
.course-classify > h2 { min-height: 45px; }
.course-classify > h2 > p { position: static; inset: auto; height: auto; line-height: 1.5; }
.main_right > .class_cate { width: auto; }
body .position { display: block; }
body .main_right > h3 { background: #f1e6e5; color: var(--brand); }
body .main_right > .title { min-height: 0; }
body .main_right > .title h1 { padding: 0; }
body > #container { width: var(--shell); }
body .main-col .main_left { display: block; }
@media (min-width: 1101px) and (max-width: 1399px) {
  :root { --shell: min(1200px, calc(100% - 220px)); }
}
@media (min-width: 681px) and (max-width: 1399px) {
  #slideshow { height: auto; aspect-ratio: 4; }
  #slideshow .img { height: 100%; }
  #slideshow img { width: var(--banner-item, calc(100vw - 40px)); }
  #slideshow .btns { height: 100%; pointer-events: none; }
  #slideshow .btns b { top: auto; bottom: 8px; margin-top: 0; pointer-events: auto; }
  #slideshow .btns s { pointer-events: auto; }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  #slideshow { --banner-item: calc(100vw - 220px); }
}
@media (min-width: 681px) and (max-width: 850px) {
  #slideshow { --banner-item: calc(100vw - 28px); }
}
@media (max-width: 1100px) {
  .embed-icon, #tq_invit_container, #tq_float_container { display: none !important; }
}
@media (max-width: 680px) {
  body > :is(.mlogo,#logo) { justify-content: center; padding-block: 0; }
  body > .mlogo img, body > #logo img { margin-block: -16px; transform: scale(.7); }
  body > .course-classify { overflow: clip; }
  body > .img_gallery { aspect-ratio: 2.8; }
  /* At these sizes the article and course results come before secondary links. */
  .main-col > .main_left { grid-row: 2; }
}
@media (max-width: 680px) {
  body > .mlogo, body > #logo { overflow: clip; }
  .fiink_list { min-width: 0; overflow-wrap: anywhere; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  body:has(.fixed-bottom) { padding-bottom: 60px; }
  body .fixed-bottom { display: block !important; position: fixed; inset: auto 0 0; z-index: 9990; width: 100%; height: auto; min-height: 54px; padding: 0; background: var(--brand); }
  body .fixed-bottom ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; margin: 0; padding: 0; }
  body .fixed-bottom ul::before, body .fixed-bottom ul::after { content: none; }
  body .fixed-bottom li { float: none; width: auto; height: auto; }
  body .fixed-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; color: #fff; line-height: 1.4; }
  body .fixed-bottom img { width: 18px; height: 18px; object-fit: contain; }
}
@media (min-width: 681px) {
  body > .mlogo, body > #logo { min-height: 111px; }
  body > .mlogo img, body > #logo img { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
  body > .mlogo::after, body > #logo::after {
    content: ""; display: block; width: 460px; height: 103px;
    background: url('/Template/ufyedu/images/201602251046.png') no-repeat -448px -60px / 1920px 190px;
  }
}
.fiink_list :is(tbody,tr) { display: block; max-width: 100%; }
.fiink_list td { width: auto; max-width: 100%; }
.fiink_list a { float: none; margin-right: 0; }
/* The existing desktop carousel writes viewport-sized offsets inline. Align them to its content shell. */
#slideshow > .img { width: 100% !important; }
#slideshow > .img > span { padding-left: 0 !important; }
#slideshow > .btns { left: 0 !important; }
