:root {
  --ink: #282425;
  --muted: #655c5d;
  --brand: #751b24;
  --brand-hover: #9b2c35;
  --surface: #fffdfb;
  --background: #f7f3f1;
  --tint: #f4eae7;
  --line: #e5d8d5;
  --shell: min(1200px, calc(100% - 40px));
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); 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 #b24d58; outline-offset: 3px; }
img { max-width: 100%; }
body > #container, .h-s { width: var(--shell); max-width: 1200px; min-width: 0; margin-inline: auto; }

/* Main header and navigation */
body > #logo { display: none; }
body > .header-container { display: block; width: 100%; height: auto; padding: 0; background-color: var(--surface); }
.header-container .header-s { display: block; width: 100%; height: auto; background: var(--brand); }
.header-container .header-s > .h-s { display: flex; min-height: 32px; justify-content: flex-end; align-items: center; }
.header-container .header-info { float: none; width: auto; margin: 0; text-align: right; font-size: 13px; font-weight: 600; color: #fff6ee; }
.header-container .header-wrap { position: static; display: flex; justify-content: flex-end; align-items: flex-start; height: 136px; overflow: visible; padding-top: 26px; }
.header-wrap #SearchForm { width: min(46%, 480px); margin: 0; }
.header-wrap .search-2016, .header-wrap .search-form { position: static; float: none; width: 100%; height: auto; margin: 0; }
.header-wrap .search-form { display: flex; }
.header-wrap .search-form :is(.keywrds, .search-btn) { float: none; height: 44px; min-width: 0; line-height: normal; }
.header-wrap .search-form .keywrds { flex: 1 1 0; width: auto; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid #b79e9f; border-radius: 6px 0 0 6px; font-size: 15px; }
.header-wrap .search-form .search-btn { flex: none; width: auto; padding: 0 18px; margin: 0; border: 0; border-radius: 0 6px 6px 0; background: var(--brand); color: #fff; }
.header-wrap .search-form .search-btn:hover { background: var(--brand-hover); }
body > .nav { position: relative; z-index: 30; display: block; width: 100%; min-width: 0; height: auto; margin: 0 0 16px; background: var(--brand); }
.nav > .h-s > ul { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0; padding: 0; }
.nav > .h-s > ul::before, .nav > .h-s > ul::after { content: none; }
.nav > .h-s > ul > li { position: relative; float: none; flex: 1 0 auto; width: auto; min-width: 0; height: auto; margin: 0; }
.nav > .h-s > ul > li > a { display: flex; justify-content: center; align-items: center; min-height: 46px; height: auto; width: auto; margin: 0; padding: 8px 7px; border: 0; background: transparent; color: #fff; font-size: clamp(13px, 1.2vw, 15px); font-weight: 600; line-height: 1.35; text-align: center; white-space: nowrap; }
.nav > .h-s > ul > li > a:is(:hover, :focus-visible) { text-decoration: none; background: var(--brand-hover); }
.nav #menu { background: none; }
.nav #menu::before { content: none; }
.nav #menu::after { display: inline-block; margin-left: 5px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); content: ""; }
.nav #submenu { position: absolute; display: none; top: 100%; right: 0; left: auto; width: max-content; min-width: 124px; max-width: calc(100vw - 24px); height: auto; padding: 4px 0; background: var(--brand); border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px #28111235; }
.nav li:is(:hover, :focus-within) > #submenu { display: block !important; }
.nav #submenu li { float: none; width: 100%; height: auto; margin: 0; }
.nav #submenu li a { display: block; width: auto; padding: 9px 14px; color: #fff; font-size: 14px; line-height: 1.4; }
.nav #submenu li a:is(:hover, :focus-visible) { background: var(--brand-hover); text-decoration: none; }

/* Home page */
body > .img_gallery, body > .nav_list { display: none; }
body > #slideshow { --slide-width: min(1200px, calc(100vw - 40px)); position: relative; width: var(--slide-width) !important; height: auto; aspect-ratio: 4; margin: 0 auto 18px; border-radius: var(--radius); overflow: hidden; }
#slideshow > .img { width: 100% !important; height: 100%; }
#slideshow > .img > span { width: 600vw; padding: 0 !important; }
#slideshow .img > span > a { float: left; display: block; width: var(--slide-width); }
#slideshow .img img { display: block; width: 100%; height: auto; }
#slideshow .paging { display: none; }
#slideshow > .btns { inset: 0 !important; width: 100%; height: 100%; pointer-events: none; }
#slideshow .btns b { display: flex; align-items: center; width: max-content !important; height: auto; margin: 0 !important; padding: 5px 6px; top: auto; bottom: 8px; transform: translateX(-50%); border-radius: 99px; background: #300e16a0; pointer-events: auto; }
#slideshow .btns b i { margin: 3px; }
#slideshow .btns b i.on { background: #ff9e9e; }
#slideshow .btns s { top: 50%; transform: translateY(-50%); pointer-events: auto; }
#container > .main { position: static; display: grid; grid-template-columns: minmax(230px, .38fr) minmax(0, 1fr); gap: 18px; width: 100%; margin: 0; }
#container > .main::before, #container > .main::after, .hot-course::before, .hot-course::after { content: none; }
#container > .main :is(.hot-course, .course_classify, .right_part) { float: none; min-width: 0; width: auto; margin: 0; }
#container > .main .hot-course { grid-column: 1 / -1; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 15px; align-items: center; height: auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hot-course .h-left, .hot-course .h-right { float: none; width: 100%; margin: 0; }
.hot-course .h-left { height: 100%; min-height: 68px; background-size: contain; background-position: center; }
.hot-course .h-right > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; width: 100%; margin: 0; padding: 0; }
.hot-course .h-right li { display: flex; align-items: center; gap: 10px; float: none; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.hot-course .h-right li > a { display: block; flex: 1 1 auto; min-width: 0; width: auto; padding: 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-course .h-right li > a > img { display: none; }
.hot-course .h-right li > span { position: static; flex: none; float: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#container > .main .right_part { grid-column: 1; grid-row: 2; }
#container > .main .course_classify { grid-column: 2; }
#container .course, #container .right_part .item, .main-col .cols, .main-col > .main_right { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
#container .course, #container .right_part .item, .main-col .cols { margin: 0 0 14px; }
#container .course > h3, #container .right_part .item > h4, .main-col .cols > h4, .main-col .main_right > h3 { display: block; height: auto; min-height: 46px; margin: 0; padding: 9px 72px 9px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--tint); color: var(--brand); font-size: 17px; font-weight: 700; line-height: 1.6; }
#container .right_part .item > h4 p { float: none; margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
#container .right_part .item > h4 p, .main-col .cols > h4 p { border: 0; }
.main-col .cols > h4 p { float: none; width: auto; height: auto; margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
#container :is(.course, .right_part .item) > .more { position: absolute; top: 12px; right: 12px; width: auto; margin: 0; color: var(--brand); font-size: 13px; line-height: 1.5; }
#container :is(.course, .right_part .item) > .more > a { display: block; width: auto; min-height: 28px; padding: 1px 0 4px 7px; color: inherit; }
#container .right_part .item > ul, .main-col .cols > ul { width: auto; margin: 0; padding: 3px 12px; }
#container .right_part .item > ul > li, .main-col .cols > ul > li { float: none; width: auto; height: auto; margin: 0; padding: 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
#container .right_part .item > ul > li:last-child, .main-col .cols > ul > li:last-child { border-bottom: 0; }
#container .right_part .item > ul > li a, .main-col .cols > ul > li a { display: block; width: auto; padding: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-col .cols > ul > li a { height: auto; color: var(--ink); background: none; line-height: 1.45; }
.main-col .cols > ul > li a:hover { color: var(--brand-hover); }
#container .right_part .new-classify { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
#container .right_part .new-classify > h4 { grid-column: 1 / -1; }
#container .right_part .new-classify > a { width: auto; margin: 0; padding: 8px 3px; border-bottom: 1px solid var(--line); color: inherit; font-size: 14px; line-height: 1.4; text-align: center; }
#container .right_part .new-classify > a:hover { color: var(--brand); background: var(--tint); }
#container .course table { display: table; width: 100%; table-layout: fixed; border-spacing: 0; }
#container .course table :is(td, th) { width: auto; height: auto; min-width: 0; padding: 7px 3px; border: 0; border-bottom: 1px solid var(--line); color: inherit; font-size: 14px; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
#container .course table th { color: var(--muted); background: #faf6f4; font-size: 13px; }
#container .course table th:nth-child(1) { width: 49%; }
#container .course table th:nth-child(2) { width: 16%; }
#container .course table th:nth-child(3) { width: 9%; }
#container .course table th:nth-child(4), #container .course table th:nth-child(5) { width: 13%; }
#container .course table td.td_style1 { padding-left: 12px; text-align: left; }
#container .course table td.td_style1 a { display: block; width: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#container .course table .time { white-space: nowrap; font-variant-numeric: tabular-nums; }
#container .course table .course-fee { float: none; color: var(--brand); font-weight: 600; }
#container .course table .download a { display: block; width: auto; min-height: 24px; padding: 3px 0 2px 15px; background-position: 0 center; background-size: 12px; color: var(--brand); white-space: nowrap; }
#container .course table .download a[href=""] { display: none; }
#container .course table .download:not(:has(a[href]:not([href=""]))) { background: none; }
#container .course .course-mobile, #container .course table tr:has(.time-mobile) { display: none; }

/* Course listing, article and search templates */
body #container > .position { display: block; width: auto; height: auto; margin: 0; padding: 2px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.position p { margin: 0; }
.position a, .nav_cru a { color: var(--brand); }
#container > .main-col { display: grid; grid-template-columns: minmax(230px, .38fr) minmax(0, 1fr); gap: 18px; width: 100%; min-width: 0; margin: 0; }
#container > .main-col::before, #container > .main-col::after { content: none; }
.main-col > :is(.main_left, .main_right) { position: relative; display: block; float: none; width: auto; height: auto; min-width: 0; margin: 0; }
.main-col .main_right > h3 { padding-right: 14px; }
.main-col .main_right .class_cate { width: auto; margin: 0; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); }
.class_cate table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.class_cate td { overflow-wrap: anywhere; }
.main_right .course-tit { border: 0; line-height: 1.45; }
.main_right .course-tit a, .search_page .list li > a { display: block; width: auto; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main_right .course-tit a { font-weight: 700; font-size: 16px; }
.main_right .course-brief, .main_right .course-xz, .main_right .course-info span { color: var(--muted); font-size: 14px; }
.main_right .course-info { color: var(--ink); font-size: 14px; }
.main_right :is(.plist, .fenye, .kspage) { width: auto; max-width: 100%; height: auto; margin: 0; padding: 8px 12px; line-height: 2.2; overflow-wrap: anywhere; white-space: normal; }
.main_right :is(.plist, .fenye, .kspage) a { display: inline-block; min-height: 28px; padding: 0 4px; color: var(--brand); }
.main_right :is(.plist, .fenye, .kspage) select { max-width: 100%; min-height: 34px; color: var(--ink); }
.search_page > .searchtips { width: auto; height: auto; margin: 0; padding: 11px 14px; background: var(--tint); }
.search_page > .list { width: auto; margin: 0; padding: 0 14px; }
.search_page > .list > li, .search_page > .list > ul > li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; float: none; width: auto; height: auto; min-height: 44px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.search_page .list li > span { position: static; flex: none; color: var(--muted); white-space: nowrap; font-size: 13px; }
#content-mobile { display: none !important; }
.main_right > .title { height: auto; min-height: 0; margin: 0; padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 30px) 12px; background: transparent; text-align: center; }
.main_right > .title h1 { margin: 0 0 8px; padding: 0; color: var(--ink); font: 700 clamp(24px, 3vw, 33px)/1.4 "Songti SC", SimSun, serif; overflow-wrap: anywhere; }
.main_right > .title :is(h2, p) { max-width: 100%; overflow-wrap: anywhere; }
.main_right > .content { height: auto; min-width: 0; margin: 0; padding: 12px clamp(12px, 3vw, 32px) 20px; color: var(--ink); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.main_right > .content :is(img, video, iframe), #MyContent :is(img, video, iframe) { max-width: 100% !important; }
.main_right > .content img, #MyContent img { height: auto !important; }
.main_right > .content table, #MyContent table { max-width: 100%; }
#site-registration { min-width: 0; max-width: 100%; scroll-margin-top: 16px; }
.main_right > #site-registration { margin: 14px clamp(9px, 2.5vw, 26px); }
body > :is(.frmsubmit, .about) { width: min(var(--shell), 680px); max-width: 680px; height: auto; margin: 12px auto; }
body > .frmsubmit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.frmsubmit :is(input:not([type=submit]), textarea, select) { max-width: 100%; }
body:has(> .frmsubmit) > #logo { display: block; width: var(--shell); margin: 12px auto; padding: 0; background: none; }
body:has(> .frmsubmit) > #logo img { display: block; width: min(100%, 410px); margin: 0 auto; }
#container > .footer { clear: both; width: 100%; height: auto; margin: 20px 0 0; padding: 18px 10px; border: 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#container > .footer p { margin: 5px 0; }
#container > .footer a { color: var(--brand); }
body > .fixed-bottom { display: none; }

/* Original notice templates */
body > .buju { display: block; width: var(--shell); max-width: 1200px; min-width: 0; height: auto; margin: 0 auto; overflow: visible; }
.buju > :is(.front, .top, .content_mode), .buju .top > :is(.sf, .menu, .search) { width: auto; height: auto; min-width: 0; margin: 0; }
.buju > .front { min-height: 40px; padding: 3px 10px; background: var(--surface); }
.buju > .front ul, .buju .menu > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; width: auto; height: auto; margin: 0; padding: 0; }
.buju > .front li, .buju .menu li { float: none; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; background: none; }
.buju > .front li { font-size: 0; }
.buju :is(.front, .menu) li a { display: block; min-height: 36px; width: auto; margin: 0; padding: 6px 7px; font-size: 14px; line-height: 1.6; }
.buju .sf img { display: block; width: 100%; height: auto; margin: 0 auto; }
.buju .menu { background: var(--brand); }
.buju .menu > .m_tttt { display: none; }
.buju .menu > ul { display: block; }
.buju .menu > ul > .daohang { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 1px; width: 100%; margin: 0; padding: 0; background: #ffffff38; }
.buju .menu li a { display: grid; place-items: center; color: #fff; background: var(--brand); text-align: center; }
.buju .menu li a:hover { background: var(--brand-hover); }
.buju .search { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; background: none; }
.buju .search > :is(.weizhi, .search_box, a) { position: static; float: none; width: auto; height: auto; max-width: 100%; margin: 0; padding: 0; }
.buju .search_box { flex: 1 1 430px; }
.buju .search_box :is(form, table, input) { max-width: 100%; }
.buju .search_box form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.45; }
.buju .search_box :is(input, select) { height: 36px; min-width: 0; padding: 4px; border: 1px solid #cbb6b7; border-radius: 4px; color: var(--ink); background: var(--surface); }
.buju .search_box input[type="text"] { flex: 1 1 156px; width: auto !important; }
.buju .search_box input[type="submit"] { width: auto !important; padding-inline: 14px; border: 0; background: var(--brand); color: #fff; }
.buju .search .weizhi { height: auto; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; color: var(--muted); }
.buju .search .weizhi a { color: var(--brand); }
.buju .search > a > img { float: none; width: auto; max-width: 100%; height: 32px; margin: 0; }
.buju > .content_mode { display: grid; grid-template-columns: minmax(215px, .35fr) minmax(0, 1fr); align-items: start; gap: 15px; background: transparent; }
.buju .content_mode > .clearfix { display: none; }
.buju .content_mode > :is(.content_left, .content_right, .foot) { float: none; width: auto; min-width: 0; height: auto; margin: 0; padding: 0; }
.buju .content_mode > .foot { grid-column: 1 / -1; background: var(--surface); text-align: center; }
.buju .foot :is(table, td, p) { max-width: 100%; overflow-wrap: anywhere; }
.buju .content_left .top_mode_header, .buju .content_right > :is(.lamu_right_mode, .content_right_mode) { width: auto; height: auto; min-width: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.buju .top_mode_header > h5, .buju .lamu_right_mode_header { width: auto; height: auto; margin: 0; padding: 8px 12px; border: 0; background: var(--tint); color: var(--brand); font-size: 16px; line-height: 1.5; }
.buju .lamu_right_mode_header h3 { margin: 0; padding: 0; font-size: 17px; line-height: 1.6; }
.buju .top_mode_header > ul { width: auto; height: auto; margin: 0; padding: 0 8px; }
.buju .top_mode_header > ul li { width: auto; height: auto; padding: 6px 0; }
.buju .top_mode_header > ul a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buju .lanmu_list { width: auto; margin: 0; padding: 0 12px; }
.buju .class_cate { width: auto; height: auto; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.buju .class_cate .course-tit a { display: block; min-width: 0; font-size: 16px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.buju .class_cate :is(.course-info, .course-brief, .course-xz) { color: var(--muted); font-size: 14px; }
.buju .content_right :is(#fenye, .fenye, .plist) { width: auto; height: auto; max-width: 100%; margin: 0; padding: 8px 12px; line-height: 2; white-space: normal; overflow-wrap: anywhere; }
.buju .content_right img { max-width: 100% !important; height: auto !important; }
.buju .content_right :is(p, div):has(> img, > a > img) { text-indent: 0 !important; }
.buju .content_right :is(.content_tig, .content_tit, .content_main, .table_css, .lamu_bottome_box) { max-width: 100%; overflow-wrap: anywhere; }
.buju .content_right .content_tig { width: auto; height: auto; margin: 12px; padding: 5px 0; }
.buju .content_right .content_tig :is(.xiazaibox, .zaixian) { display: inline-block; float: none; max-width: 100%; height: auto; margin: 5px; }
.buju .content_right .content_tig .xiazaibox:has(a[href=""]) { display: none; }
.buju .content_right .table_css { width: 100%; table-layout: fixed; }
.buju .content_right .table_css td { width: auto; height: auto; padding: 4px; }
.buju .content_right .table_css :is(td, span) { font-family: inherit; font-size: 14px; }
.buju .content_right .lamu_bottome_box { float: none; display: inline-block; vertical-align: top; }
.buju .lamu_right_mode > div:has(> .lamu_bottome_box) { display: flex; flex-wrap: wrap; float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 5px 10px; }
.buju .content_right .content_title { width: auto; height: auto; margin: 0; padding: 14px 10px 8px; color: var(--brand); text-align: center; overflow-wrap: anywhere; }
.buju .content_right .content_title :is(h1, h2, h3) { height: auto; margin: 0; padding: 0; line-height: 1.4; }
.buju .foot span[style*="#CCC"] { color: var(--muted) !important; }

@media (max-width: 1090px) {
  body > #logo { display: block; width: var(--shell); margin: 0 auto; padding: 7px 0 0; background: none; }
  body > #logo img { display: block; width: min(100%, 410px); margin: 0 auto; }
  body > .header-container { background: var(--surface); }
  .header-container .header-s { background: transparent; }
  .header-container .header-s > .h-s { justify-content: center; min-height: 28px; }
  .header-container .header-info { color: var(--muted); text-align: center; }
  body:has(> #logo) > .header-container .header-s { display: none; }
  .header-container .header-wrap { height: auto; justify-content: center; padding: 6px 0 12px; }
  .header-wrap #SearchForm { width: min(100%, 560px); }
  .header-container .shareto { display: none; }
  #container > .main, #container > .main-col { grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr); }
  .embed-icon, #tq_invit_container, #tq_float_container { display: none !important; }
  body:has(> .fixed-bottom) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body > .fixed-bottom { display: block; position: fixed; inset: auto 0 0; z-index: 1000; width: 100%; height: auto; margin: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--brand); box-shadow: 0 -2px 10px #40161f28; }
  .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 { display: block; float: none; width: auto; height: auto; margin: 0; padding: 0; border-color: #fff3; }
  .fixed-bottom li a { display: flex; min-height: 54px; height: auto; flex-direction: column; justify-content: center; align-items: center; gap: 1px; padding: 4px 2px; color: #fff; font-size: 13px; line-height: 1.4; }
  .fixed-bottom li a img { display: block; width: 18px; height: 18px; object-fit: contain; }
  .fixed-bottom li a p { margin: 0; }
  #fixed_sec { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 24px); }
  body > #slideshow { --slide-width: calc(100vw - 24px); }
  #container > .main, #container > .main-col { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #container > .main :is(.course_classify, .right_part) { grid-column: 1; grid-row: auto; }
  .main-col > .main_right { grid-row: 1; }
  .buju > .content_mode { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .buju .content_mode > .content_right { grid-row: 1; }
  .buju .content_mode > .foot { grid-column: 1; }
}

@media (max-width: 640px) {
  body > .nav { margin-bottom: 10px; }
  .nav > .h-s { width: 100%; }
  .nav > .h-s > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav > .h-s > ul > li { border-bottom: 1px solid #fff3; }
  .nav > .h-s > ul > li > a { min-height: 43px; padding-inline: 2px; font-size: 13px; }
  .nav .h-s li:has(> #submenu) { position: relative; }
  .nav #submenu { right: auto; left: 0; }
  body:has(> .img_gallery + .nav) { display: flex; flex-direction: column; }
  body:has(> .img_gallery + .nav) > .img_gallery { order: 1; }
  body:has(> .img_gallery + .nav) > .nav_list { order: 2; }
  body:has(> .img_gallery + .nav) > #container { order: 3; }
  body > #slideshow { display: none; }
  body > .img_gallery { display: block; width: var(--shell); height: auto; aspect-ratio: 3; margin: 0 auto 12px; overflow: hidden; border: 0; border-radius: var(--radius); }
  .img_gallery .main_img, .img_gallery .main_img :is(ul, li, li a, li span) { height: 100%; }
  .img_gallery .main_img li span[class] { background-size: contain; background-position: center; background-color: var(--tint); }
  .img_gallery :is(#btn_prev, #btn_next) { display: none !important; }
  body > .nav_list { display: block; width: var(--shell); margin: 0 auto 12px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .nav_list > .list { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2px; border-bottom: 1px solid var(--line); }
  .nav_list > .list:last-child { border: 0; }
  .nav_list > .list > a { display: grid; min-height: 40px; place-items: center; padding: 6px 2px; color: var(--brand); font-size: 13px; line-height: 1.3; text-align: center; }
  #container > .main .hot-course { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 8px 10px; }
  #container > .main .hot-course::before { content: "\63a8\8350\8bfe\7a0b"; color: var(--brand); font-size: 16px; font-weight: 700; }
  #container > .main .hot-course .h-right { display: block; min-width: 0; }
  .hot-course .h-left { display: none; }
  .hot-course .h-right > ul { grid-template-columns: minmax(0, 1fr); }
  .hot-course .h-right li > a { padding-block: 7px; }
  #container .course table :is(tbody, td) { display: block; }
  #container .course table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 7px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
  #container .course table tr:is(:has(> th), :has(.time-mobile)) { display: none; }
  #container .course table :is(td, td.td_style1) { padding: 2px 0; border: 0; text-align: left; }
  #container .course table td.td_style1 { grid-column: 1 / -1; font-size: 15px; }
  #container .course table td:is(.time, .place, .fee-mobile) { font-size: 13px; }
  #container .course table td.download { grid-column: 1 / -1; }
  #container .course table td.download:not(:has(a[href]:not([href=""]))) { display: none; }
  #container .course table .download a { width: max-content; }
  .main_right .class_cate { padding-inline: 12px; }
  .main_right > .content table, #MyContent table { width: 100% !important; table-layout: fixed; }
  .main_right > .content :is(td, th), #MyContent :is(td, th) { min-width: 0; overflow-wrap: anywhere; }
  .main_right > .content pre { white-space: pre-wrap; }
  .main_right > .content p:has(img) { text-indent: 0 !important; }
  .main_right .course-info :is(.c-time, .c-place) { margin-left: 5px; }
  #container > .footer p:first-child { display: block; }
  .buju .menu > ul > .daohang { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .buju .menu li a { min-height: 40px; padding: 5px 2px; font-size: 13px; line-height: 1.3; }
  .buju .search .weizhi { flex: 1 1 100%; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .buju .menu > ul > .daohang { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.main-col > .main_left > .huizong.cols > h4 {
  padding-inline: 14px;
}

.main-col > .main_left > .huizong.cols > ul > li {
  background: none;
}

.main-col > .main_left > .huizong.cols > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 31px 9px 10px;
  border-radius: 4px;
  color: var(--ink);
  background: none;
  font-size: 15px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.main-col > .main_left > .huizong.cols > ul > li > a::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.main-col > .main_left > .huizong.cols > ul > li > a:is(:hover, :focus-visible) {
  color: var(--brand);
  background: var(--tint);
}

.main-col > .main_left > .huizong.cols > ul > li > a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
