@charset "UTF-8";

/* Masthead, navigation and mobile actions */
:root {
  --ink: #261d2a;
  --muted: #62576a;
  --accent: #653373;
  --accent-strong: #3d2549;
  --wash: #f3edf5;
  --line: #e9e1eb;
  --paper: #fff;
  --shell: min(1200px, calc(100% - 64px));
  --heading: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
}

html { background: #f8f5f7; }
body {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: var(--ink);
  background: #f8f5f7;
  font: 15px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #8f5297;
  outline-offset: 3px;
}

body > #container, body > .buju {
  box-sizing: border-box;
  width: var(--shell);
  max-width: none;
  margin: 0 auto;
  overflow: visible;
}

body > .header-container {
  display: block;
  background: var(--paper);
}

.header-container > .header-s {
  min-height: 31px;
  height: auto;
  line-height: 31px;
  background: var(--accent-strong);
}

.header-container .h-s, body > .nav > .h-s {
  box-sizing: border-box;
  width: var(--shell);
  margin: 0 auto;
}

.header-s > .h-s { display: flow-root; }
.header-s .header-info { display: block; }
.header-s .header-info a { color: #eee5ee; }

.header-container > .header-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  position: relative;
  z-index: auto;
  min-height: 86px;
  height: auto;
  padding: 0;
  overflow: visible;
  background: none;
}

/* The original wide logo places the hotline at lower right. */
.header-wrap > :is(img, a) { grid-area: 1 / 1; }
.header-wrap > :is(img, a > img) { display: block; width: 100%; height: auto; }
.header-wrap > #SearchForm {
  grid-area: 1 / 1;
  display: block;
  justify-self: end;
  align-self: start;
  width: 40%;
  min-width: 0;
  margin-top: clamp(13px, 3.4vw, 44px);
}
@media (min-width: 1001px) {
  .header-wrap > :is(img, a > img) {
    height: clamp(124px, 11vw, 150px);
    object-fit: cover;
    object-position: center bottom;
  }
}
body:has(> .header-container > .header-wrap) > #logo { display: none; }
body > #logo img { display: block; width: 100%; height: auto; }

body #SearchForm .search-2016 {
  position: static;
  float: none;
  width: auto;
  min-width: 0;
  height: auto;
}

body #SearchForm .search-form {
  display: flex;
  align-items: stretch;
  height: auto;
  margin: 0;
}

body #SearchForm .keywrds {
  box-sizing: border-box;
  float: none;
  flex: 1;
  min-width: 0;
  max-width: none !important;
  width: auto;
  height: 42px;
  padding: 8px 11px;
  border: 1px solid #c6b4c8;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #fff;
  font: inherit;
}

body #SearchForm .search-btn {
  float: none;
  width: auto;
  min-width: 70px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
}

body > .nav {
  display: block;
  height: auto;
  background: var(--accent);
  line-height: 1.35;
}

body > .nav > .h-s { display: flex; align-items: center; gap: 4px; }
body > .nav .cut { display: none; }
body > .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 23px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
body > .nav a:is(:hover, :focus-visible) { background: #ffffff26; color: #fff; }
body > .nav a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
body > .nav a.eduxue-notice-link { background: #ffffff18; box-shadow: inset 0 -2px #e9cee9; }
body > .nav a.eduxue-notice-link:is(:hover, :focus-visible) { background: #ffffff35; }
@media (min-width: 761px) {
  body > .nav > .h-s > a[href*="/zzybm/"] { margin-inline-start: auto; background: var(--accent-strong); }
  body > .nav > .h-s > a[href*="/zzybm/"]:hover { background: #48294f; }
}

body .footer, body > .about {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 24px auto 0;
  padding: 19px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
}
body .footer > p:first-child { display: block; }
body .footer a { color: var(--accent); }
body > .fixed-bottom { display: none; }
/* The obsolete left-side QR is separate from the consultation and signup controls. */
#showpic { display: none !important; }
body #aff-im-root .embed-icon { width: clamp(52px, calc((100vw - 1200px)/2), 118px); height: auto; }
body #aff-im-root .embed-icon-default { width: 100%; height: auto; aspect-ratio: 118 / 247; background-size: contain !important; }

@media (max-width: 1304px) {
  body #aff-im-root .embed-icon { width: 32px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); }
  .header-container > .header-wrap {
    gap: 4px;
    padding: 0 0 12px;
  }
  .header-wrap > :is(img, a > img) {
    height: clamp(91px, 25vw, 125px);
    object-fit: cover;
    object-position: left center;
  }
  .header-wrap > #SearchForm { grid-area: 2 / 1; width: 100%; margin: 0; }
  .header-container > .header-s { display: none; }
  body #SearchForm .keywrds { font-size: 16px; }
  body > .nav > .h-s { gap: 0; }
  body > .nav a { flex: 1; min-height: 44px; padding: 0 3px; white-space: nowrap; font-size: clamp(12px, 3.4vw, 15px); }
  body > .nav a + a { border-left: 1px solid #ffffff37; }
  body:has(> .fixed-bottom) { padding-bottom: calc(61px + env(safe-area-inset-bottom)); }
  body > .fixed-bottom {
    z-index: 1001;
    display: block;
    position: fixed;
    inset: auto 0 0;
    width: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--accent-strong);
    box-shadow: 0 -2px 14px #35223d26;
  }
  .fixed-bottom > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
  .fixed-bottom > ul > li { display: block; width: auto; padding: 0; border-right: 1px solid #ffffff26; }
  .fixed-bottom > ul > li:last-child { border: 0; background: var(--accent); }
  .fixed-bottom li > a {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 2px;
    min-height: 54px;
    color: white;
    font-size: 12px;
    line-height: 1.4;
  }
  .fixed-bottom li > a > img { display: block; width: 17px; height: 17px; object-fit: contain; }
  .fixed-bottom li > a > p { margin: 0; }
  body:has(> .fixed-bottom) #aff-im-root .embed-icon { display: none !important; }
  #tq_float_container, #tq_invit_container, #TQMiniMessWrap { display: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  body :is(.nav, #container, .fixed-bottom) a { transition: color .16s, background-color .16s; }
}

/* Original banners, recommendation links and course tables */
body:has(> .slider-nav-lsn) > .slider-nav-lsn {
  display: block;
  width: 100%;
  background: #e8e4ec;
}

.slider-nav-lsn > .slider, #banner_tabs { width: 100%; }
#banner_tabs { position: relative; height: clamp(205px, 21vw, 385px); }
#banner_tabs .slides, #banner_tabs .slides li, #banner_tabs .slides a { display: block; height: 100%; }
#banner_tabs .slides a img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  color: transparent;
}
#banner_tabs .flex-direction-nav a { margin-inline: 12px; }
#banner_tabs .flex-control-nav { z-index: 11; bottom: 13px; }
#banner_tabs .flex-control-paging li a {
  width: 11px;
  height: 11px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #38263b80;
}
#banner_tabs .flex-control-paging li:is(.active, :hover) a,
#banner_tabs .flex-control-paging a.flex-active { background: #fff; }

body > #container > .main:has(> .course_classify) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 25%);
  align-items: start;
  gap: 24px;
  margin: 24px auto 0;
  overflow: visible;
}
body > #container > .main > :is(.course_classify, .right_part) {
  float: none;
  width: auto;
  min-width: 0;
  overflow: visible;
}

.main > .hot-course {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--paper);
  overflow: visible;
}
.hot-course > .h-left {
  display: grid;
  place-items: center;
  height: auto;
  width: auto;
  float: none;
  border-right: 1px solid var(--line);
  background: none;
}
.hot-course > .h-left::before {
  content: "推荐课程";
  color: var(--accent);
  font: 600 19px/1.4 var(--heading);
}
.hot-course > .h-right, .hot-course .h-right > ul { width: auto; float: none; overflow: visible; }
.hot-course .h-right > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hot-course .h-right li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 7px 0;
  float: none;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.hot-course .h-right li a { display: block; flex: 1; min-width: 0; width: auto; padding: 0; border: 0; }
.hot-course .h-right li span { position: static; float: none; width: auto; color: var(--muted); white-space: nowrap; }
.hot-course .h-right li a > img { display: none; }

.course_classify > .course, .right_part > :is(.new-classify, .shizi, .ganwu, .liucheng) {
  min-width: 0;
  padding: 0;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  background: var(--paper);
}

.course_classify .course > h3, .right_part h4, body > .nav_list > h2 {
  height: auto;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  color: var(--accent);
  font: 600 18px/1.5 var(--heading);
}
.course_classify .course > h3 a { color: inherit; }
.course_classify .course > .more, .right_part > :is(.shizi, .ganwu) > .more {
  top: 10px;
  right: 13px;
  width: auto;
  line-height: 27px;
  font-size: 13px;
}
.course_classify .more a, .right_part .more a { color: var(--accent); }
.course_classify .course > table { width: 100%; table-layout: fixed; }
.course_classify .course th, .course_classify .course td { height: auto; line-height: 1.45; }
.course_classify .course th { padding: 8px 4px; background: #faf7fa; color: var(--muted); font-size: 13px; }
.course_classify .course th:first-child { width: 48%; }
.course_classify .course th:not(:first-child) { width: auto; }
.course_classify .course td { padding: 8px 6px; border-color: var(--line); }
.course_classify .course td:first-child { padding-inline: 13px 6px; }
.course_classify .course td.download { background: none; text-align: center; }
.course_classify .course td.download a[href=""] { visibility: hidden; }
.course_classify .course .course-fee { color: var(--accent); }
.course_classify .td_style1 a, .hot-course .h-right a, .right_part li > a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.course_classify .td_style1 a:hover, .hot-course .h-right a:hover, .right_part li > a:hover { color: var(--accent); }
.right_part > .new-classify { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.right_part > .new-classify > h4 { grid-column: 1 / -1; }
.right_part > .new-classify > a {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  padding: 9px 3px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow-wrap: anywhere;
}
.right_part > .new-classify > a:hover { background: var(--wash); }
.right_part > :is(.shizi, .ganwu, .liucheng) > ul { width: auto; margin: 0 12px; padding: 0; }
.right_part > :is(.shizi, .ganwu) li { height: auto; padding: 8px 0; line-height: 1.5; border-color: var(--line); }
.right_part > .liucheng li { padding: 6px 0; line-height: 1.6; overflow-wrap: anywhere; }
.right_part > .liucheng li span { background: var(--accent); }
body > .img_gallery, body > .nav_list { display: none; }

@media (max-width: 760px) {
  body:has(> .slider-nav-lsn) > .slider-nav-lsn { display: none; }
  body > .img_gallery {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(142px, 45vw, 300px);
    margin: 0;
    border: 0;
    overflow: hidden;
  }
  .img_gallery .main_img { position: relative; height: 100%; overflow: hidden; touch-action: pan-y; }
  .img_gallery .main_img ul, .img_gallery .main_img li,
  .img_gallery .main_img li a, .img_gallery .main_img li span { height: 100% !important; }
  .img_gallery .main_img li { float: left; }
  .img_gallery .main_img li :is(a, span) { display: block; width: 100%; }
  .img_gallery .main_img li span { background-size: cover; background-position: center; background-repeat: no-repeat; }
  .img_gallery .img_1 { background-image: url('images/1.png'); }
  .img_gallery .img_2 { background-image: url('images/2.png'); }
  .img_gallery .img_3 { background-image: url('images/3.png'); }
  .img_gallery .img_4 { background-image: url('images/4.png'); }
  .img_gallery .point {
    position: absolute;
    inset: auto auto 10px 50%;
    z-index: 10;
    display: flex;
    gap: 1px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 5px;
    border-radius: 18px;
    background: #302532a8;
    transform: translateX(-50%);
  }
  .img_gallery .point a {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    background: none;
  }
  .img_gallery .point a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffffff91; }
  .img_gallery .point a.on::before { width: 13px; border-radius: 9px; background: #fff; }
  .img_gallery .point a:nth-child(n + 5) { display: none; }
  .img_gallery .img_font { display: none; }
  body > .nav_list {
    box-sizing: border-box;
    width: var(--shell);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    margin: 14px auto 0;
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    background: var(--paper);
  }
  body > .nav_list > h2 { grid-column: 1 / -1; color: var(--accent) !important; }
  body > .nav_list:not(:has(> h2))::before {
    content: "课程分类";
    grid-column: 1 / -1;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--wash);
    color: var(--accent-strong);
    font-weight: 600;
  }
  body > .nav_list > .list { display: contents; }
  body > .nav_list a {
    display: grid;
    place-items: center;
    min-height: 37px;
    min-width: 0;
    padding: 3px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
  }
  body > #container > .main:has(> .course_classify) { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
  body > #container > .main > .right_part { display: block; }
  .main > .hot-course { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 12px 8px; }
  .main > .hot-course::before {
    content: "\63a8\8350\8bfe\7a0b";
    margin: 0 -12px 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--wash);
    color: var(--accent);
    font: 600 17px/1.4 var(--heading);
  }
  .main > .hot-course > .h-left { display: none; }
  .hot-course .h-right > ul { grid-template-columns: minmax(0, 1fr); }
  .hot-course .h-right li span { font-size: 12px; }
  body:has(> .nav_list) > #container .right_part > .new-classify { display: none; }
  .course_classify .course :is(table, tbody) { display: block; width: 100%; }
  .course_classify .course tr:has(th, .phone-style) { display: none; }
  .course_classify .course tr:has(.td_style1) {
    display: grid;
    grid-template-columns: minmax(64px, 1.12fr) minmax(36px, .72fr) minmax(54px, .92fr) minmax(56px, 1fr);
    column-gap: 8px;
    padding: 7px 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .course_classify .course tr:has(.td_style1) > td {
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
  }
  .course_classify .course tr:has(.td_style1) > .td_style1 {
    grid-column: 1 / -1;
    padding: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
  }
  .course_classify .course tr:has(.td_style1) > :is(td:empty, .download:has(a[href=""])) {
    display: none;
  }
  .course_classify .course tr:has(.td_style1) > .download a { padding: 2px 0; }
  .course_classify .course tr:has(.td_style1) > .download a[href]:not([href=""]) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body > #container > .main:has(> .course_classify) { grid-template-columns: minmax(0, 1fr); }
  .right_part { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  body > #container > .main > .right_part { display: grid; }
}

/* Keep home lists compact without discarding the original complete anchor text. */
.course_classify .course tr:has(.phone-style) { display: none; }
.course_classify .course td:not(:first-child), .course_classify .course th:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
.course_classify .course td.download a:not([href=""]) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.right_part > .clearfix { display: none; }
.right_part .new-classify > a, .course .more a { white-space: nowrap; }
.main:has(> .course_classify) .hot-course::before { display: none; }
@media (max-width: 760px) {
  .main:has(> .course_classify) .hot-course::before { display: block; }
  .course_classify .course tr:has(.td_style1) > td:not(:first-child) { text-align: left; }
}

/* Course directories, teaching staff, and article details */
body > #container > .position,
body > .buju > .position {
  display: block;
  margin: 20px 0 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

body > #container > #content-mobile {
  display: none;
}

body > #container > :is(.main-col, .main:has(> .main_right)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(216px, 270px);
  align-items: start;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
  max-width: 100%;
  margin: 14px 0 0;
  overflow: visible;
}

body > #container > :is(.main-col, .main:has(> .main_right))::before,
body > #container > :is(.main-col, .main:has(> .main_right))::after {
  content: none;
}

body > #container > :is(.main-col, .main:has(> .main_right)) > :is(.main_left, .main_right) {
  float: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body > #container > :is(.main-col, .main:has(> .main_right)) > .main_right {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--paper);
}

body > #container > :is(.main-col, .main:has(> .main_right)) > .main_left {
  grid-column: 2;
  grid-row: 1;
}

:is(.main-col, .main) > .main_left > :is(.huizong, .new-classify, .tuijian_lanmu, .ganwu) {
  float: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  padding: 0 12px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

:is(.main-col, .main) > .main_left .new-classify {
  float: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding-bottom: 2px;
}

:is(.main-col, .main) > .main_left h4 {
  margin: 0 0 6px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
}

:is(.main-col, .main) > .main_left .new-classify > a {
  display: inline-block;
  float: none;
  width: auto;
  height: auto;
  margin: 0 7px 1px 0;
  padding: 5px 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

:is(.main-col, .main) > .main_left :is(.tuijian_lanmu, .ganwu) :is(ul, li) {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

:is(.main-col, .main) > .main_left :is(.tuijian_lanmu, .ganwu) li a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right > :is(h3, h4) {
  margin: 0;
  padding: 17px clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  color: var(--accent-strong);
  font: 650 clamp(19px, 2.4vw, 25px)/1.35 var(--heading);
}

body > #container > .main-col:has(> .main_left > .main_right) {
  display: block;
}

body > #container > .main-col > .main_left:has(> .main_right) {
  display: flex;
  flex-direction: column;
}

body > #container > .main-col > .main_left > .main_right {
  order: -1;
  float: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--paper);
}

:is(.main-col, .main) .main_right > .class_cate {
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0 clamp(14px, 3vw, 28px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

:is(.main-col, .main) .main_right > .class_cate:hover {
  background: transparent;
}

:is(.main-col, .main) .main_right > .class_cate table {
  width: 100%;
  table-layout: fixed;
}

:is(.main-col, .main) .main_right > .class_cate td {
  box-sizing: border-box;
  height: auto;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right .course-tit {
  padding: 0 0 5px;
  border: 0;
}

:is(.main-col, .main) .main_right .course-tit a {
  display: block;
  width: auto;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 650;
  white-space: normal;
}

:is(.main-col, .main) .main_right .course-tit a:hover {
  color: var(--accent);
}

:is(.main-col, .main) .main_right .course-brief {
  display: table-cell;
  padding: 0 0 5px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
}

:is(.main-col, .main) .main_right :is(.course-xz, .course-info) {
  color: var(--muted);
  font-size: 13px;
}

:is(.main-col, .main) .main_right :is(.course-xz, .course-info) span {
  color: var(--accent);
  font-weight: 650;
}

:is(.main-col, .main) .main_right .class_cate .c-place,
:is(.main-col, .main) .main_right .class_cate .course-info i {
  display: inline;
}

:is(.main-col, .main) .main_right .shizi_lanmu {
  padding: 0 clamp(14px, 3vw, 28px);
}

:is(.main-col, .main) .main_right .shizi_lanmu ul {
  width: 100%;
  margin: 0;
}

:is(.main-col, .main) .main_right .shizi_lanmu li {
  height: auto;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right .shizi_lanmu a {
  font-size: 15px;
}

:is(.main-col, .main, .buju) #fenye {
  clear: both;
  float: none;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 15px clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 13px;
  line-height: 2.2;
  text-align: left !important;
  overflow-wrap: anywhere;
}

:is(.main-col, .main, .buju) #fenye :is(a, select) {
  display: inline-block;
  min-height: 34px;
  margin: 2px 0;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent-strong);
}

:is(.main-col, .main) .main_right > .title h1 {
  margin: 0;
  padding: clamp(20px, 4vw, 37px) clamp(14px, 4vw, 42px) 18px;
  color: var(--accent-strong);
  font: 650 clamp(23px, 3.2vw, 34px)/1.45 var(--heading);
  text-align: center;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right .title_content {
  box-sizing: border-box;
  width: auto;
  margin: 0 clamp(14px, 4vw, 42px);
  padding: 6px 12px 10px;
  border: 0;
  background: var(--wash);
  overflow: visible;
}

:is(.main-col, .main) .main_right .title_content table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
}

:is(.main-col, .main) .main_right .title_content td {
  box-sizing: border-box;
  height: auto;
  min-width: 0;
  padding: 5px 4px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right .title_content td:is(.td-s1, .td-s2) {
  padding-inline: 6px;
  text-align: left;
}

:is(.main-col, .main) .main_right .title_content td span {
  display: inline;
  width: auto;
  color: var(--ink);
}

:is(.main-col, .main) .main_right .title_content td.new-tag {
  text-align: center;
}

:is(.main-col, .main) .main_right .title_content .new-tag a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: .18em;
}

:is(.main-col, .main) .main_right > .content {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: clamp(14px, 4vw, 42px);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right #MyContent {
  max-width: 100%;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

:is(.main-col, .main) .main_right #MyContent :is(div, p, blockquote, section, figure, ul, ol) {
  max-width: 100% !important;
}

:is(.main-col, .main) .main_right .content :is(img, video, iframe, object, embed, pre, table) {
  box-sizing: border-box;
  max-width: 100% !important;
}

:is(.main-col, .main) .main_right .content :is(img, video) {
  height: auto !important;
}

:is(.main-col, .main) .main_right .content img {
  width: auto;
}

:is(.main-col, .main) .main_right .content :is(pre, table) {
  display: block;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

:is(.main-col, .main) .main_right #site-registration {
  width: auto;
  margin: 0 clamp(14px, 4vw, 42px) 26px;
  border-color: var(--line);
}

:is(.main-col, .main) .main_right #site-registration :is(.sr-heading, button) {
  background: var(--accent-strong);
}

:is(.main-col, .main) .main_right #site-registration .sr-grid {
  gap: clamp(12px, 3vw, 24px);
}

:is(.main-col, .main) .main_right:has(#site-registration) .frmsubmit:not(:has(form, a, input, button)) {
  display: none;
}

/* The desktop and mobile registration routes use different native forms. */
body > .top:has(.sf),
body > .buju:has(> .rightbody #form-bmb) {
  box-sizing: border-box;
  width: var(--shell);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

body > .top:has(.sf) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

body > .top:has(.sf) > .sf {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
}

body > .top:has(.sf) > .sf img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body > .top:has(.sf) > #SearchForm {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: start;
  width: 40%;
  max-width: 100%;
  margin-top: clamp(13px, 3.4vw, 44px);
}

body > .buju > .rightbody:has(#form-bmb),
body > .frmsubmit:has(> #frmOrder) {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-width: 790px;
  margin: 15px auto 0;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--paper);
}

body > .frmsubmit:has(> #frmOrder) {
  width: var(--shell);
}

body:has(> .frmsubmit > #frmOrder) > .header-container:has(> .logo-img:only-child) { display: none; }
body:has(> .frmsubmit > #frmOrder) > #logo {
  display: block;
  width: var(--shell);
  margin: 0 auto;
}
body:has(> .frmsubmit > #frmOrder) > #logo img {
  height: auto !important;
}

.rightbody:has(#form-bmb) > .sign-up,
:is(#form-bmb, #frmOrder) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.sign-up > p:has(+ #form-bmb) {
  margin: 0 0 12px;
  padding: 0;
}

.sign-up > p:has(+ #form-bmb) > span:empty {
  display: none;
}

#form-bmb h3,
body > .frmsubmit:has(> #frmOrder) > h2 {
  height: auto;
  margin: 0 0 12px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--accent-strong);
  font: 650 20px/1.5 var(--heading);
}

#form-bmb :is(.item, .item-other) {
  height: auto;
  padding: 0 0 14px;
}

#form-bmb :is(.item, .item-other) > div,
#frmOrder > div {
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}

#form-bmb :is(.item, .item-other) label,
#frmOrder > div > span {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 4px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  line-height: inherit;
}

:is(#form-bmb, #frmOrder) :is(input[type="text"], textarea) {
  box-sizing: border-box;
  width: min(100%, 31rem);
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font: inherit;
}

#form-bmb .radiobox {
  float: none;
  width: auto;
  height: auto;
  margin: 0 4px 0 8px;
  accent-color: var(--accent);
}

:is(#form-bmb, #frmOrder) input[type="submit"] {
  display: block;
  float: none;
  width: min(100%, 190px);
  max-width: 100%;
  height: auto;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 3px;
  background: var(--accent-strong);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

body:has(> .frmsubmit > #frmOrder) > .about {
  box-sizing: border-box;
  width: var(--shell);
  max-width: 790px;
  margin: 16px auto;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  body > .top:has(.sf) > #SearchForm { grid-area: 2 / 1; width: 100%; margin: 0 0 12px; }
  body > #container:has(.weekly-main-title),
  body > .header-container > .header-wrap.h-s {
    width: var(--shell) !important;
    margin-inline: auto !important;
  }
  body > .header-container > .header-wrap.h-s > img,
  body:has(> .frmsubmit > #frmOrder) > #logo img {
    height: clamp(91px, 25vw, 125px) !important;
    object-fit: cover;
    object-position: left center;
  }
  body > #container:has(.weekly-main-title) .main_right:has(.weekly-main-title) { padding: 0 !important; }
  body > #container > :is(.main-col, .main:has(> .main_right)) {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 8px;
  }

  body > #container > :is(.main-col, .main:has(> .main_right)) > .main_left {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 700px) {
  body > #container > .position,
  body > .buju > .position {
    margin-top: 9px;
  }

  :is(.main-col, .main) .main_right .title_content tr:first-child,
  :is(.main-col, .main) .main_right .title_content td:first-child:not(.new-tag),
  :is(.main-col, .main) .main_right .title_content td.new-tag:not(:has(a[href])) {
    display: none;
  }

  :is(.main-col, .main) .main_right .title_content tr {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }

  :is(.main-col, .main) .main_right .title_content td {
    display: block;
    flex: 1 1 50%;
    width: auto;
  }

  :is(.main-col, .main) .main_right .title_content td.new-tag:not(:empty) {
    flex-basis: 100%;
    order: 1;
    border-top: 1px solid var(--line);
  }

  :is(.main-col, .main) .main_right .class_cate :is(.c-time, .c-place) {
    margin-left: 6px;
  }

  :is(.main-col, .main) .main_right #site-registration .sr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  :is(.main-col, .main) .main_right #site-registration .sr-heading small {
    display: block;
  }

  :is(.main-col, .main) .main_right #site-registration button,
  :is(#form-bmb, #frmOrder) input[type="submit"] {
    width: 100%;
  }
}

/* Standalone opening notices published with the old EDP template */
body > .buju:has(> .content_mode) {
  margin: 14px auto 0;
  background: var(--paper);
}

.buju:has(> .content_mode) > :is(.top, .content_mode, .foot_conten, .rightbody, div[style*="960px"]),
.buju:has(> .content_mode) > div > div[style*="960px"] {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  height: auto;
}

.buju:has(> .content_mode) > .top > :is(.sf, div[style*="960px"]) {
  float: none !important;
  width: 100% !important;
}

.buju:has(> .content_mode) > .top img {
  display: block;
  width: 100%;
  height: auto;
}

.buju:has(> .content_mode) > .top > table {
  display: block;
  width: auto;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.buju:has(> .content_mode) > .top > table > tbody {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.buju:has(> .content_mode) > .top > table tr {
  display: contents;
}

.buju:has(> .content_mode) > .top > table td {
  display: block;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  text-align: center;
  line-height: 1.5;
}

.buju:has(> .content_mode) > .top > table td:not(:has(a[href])) {
  display: none;
}

.buju:has(> .content_mode) > .top > table a {
  color: var(--accent-strong);
  font-size: 13px;
}

.buju:has(> .content_mode) > .top > .search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: var(--accent-strong);
  line-height: 1.5;
}

.buju:has(> .content_mode) > .top :is(.weizhi, .search_box) {
  float: none;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  line-height: 1.5;
}

.buju:has(> .content_mode) > .top .search_box :is(input, select) {
  box-sizing: border-box;
  max-width: 100%;
}

.buju > .content_mode {
  padding: clamp(14px, 4vw, 42px);
  border-top: 2px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
}

.buju > .content_mode .content_title {
  height: auto;
  padding: 7px 0 15px;
  text-align: center;
}

.buju > .content_mode .content_title h1 {
  color: var(--accent-strong);
  font: 650 clamp(22px, 3vw, 33px)/1.5 var(--heading);
  overflow-wrap: anywhere;
}

.buju > .content_mode .content_tig {
  display: flow-root;
  box-sizing: border-box;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto 24px;
  padding: 8px 12px 12px;
  border: 0;
  background: var(--wash);
}

.buju > .content_mode .content_tig :is(.table_css, td) {
  height: auto;
  font: inherit;
  overflow-wrap: anywhere;
}

.buju > .content_mode .content_tig :is(.xiazaibox, .zaixian) {
  float: none;
  display: inline-block;
  width: auto;
  min-width: 92px;
  height: auto;
  margin: 4px 5px 0 0;
  padding: 3px 8px;
  background: var(--accent);
}

.buju > .content_mode #MyContent {
  max-width: 100%;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.buju > .content_mode #MyContent :is(img, video, iframe, pre, table) {
  box-sizing: border-box;
  max-width: 100% !important;
}

.buju > .content_mode #MyContent :is(img, video) {
  height: auto !important;
}

.buju > .content_mode #MyContent :is(pre, table) {
  display: block;
  overflow-x: auto;
}

.buju:has(> .content_mode) .content_tongzhi {
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.buju:has(> .content_mode) .content_tongzhi td {
  padding: 6px 3px;
}

.buju:has(> .content_mode) .rightbody :is(input[type="text"], textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 34px;
}

.buju:has(> .content_mode) .foot_conten {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Two historical category shells use nested fixed-width tables. */
body:has(> table[width="960"] table[width="680"]) > table[width="960"] {
  box-sizing: border-box;
  width: var(--shell);
  max-width: 100%;
  table-layout: fixed;
  margin: 15px auto;
  border-top: 2px solid var(--accent);
  background: var(--paper);
}

body > table[width="960"]:has(table[width="680"]) :is(table, img) {
  box-sizing: border-box;
  max-width: 100%;
}

body > table[width="960"]:has(table[width="680"]) img {
  height: auto;
}

body > table[width="960"]:has(table[width="680"]) table[width="680"] {
  float: none;
  width: 100%;
}

body > table[width="960"]:has(table[width="680"]) :is(td, #wrap) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Archived lists and details with the banner, search strip and two columns. */
#container:has(> .main > .main_right) > .banner > .logo img {
  display: block;
  width: 100%;
  height: auto;
}

#container:has(> .main > .main_right) > .banner > .nav {
  padding: 6px 12px;
  background: var(--accent);
}

#container:has(> .main > .main_right) > .banner > .nav a {
  color: white;
}

#container:has(> .main > .main_right) .classify {
  grid-column: 1 / -1;
  box-sizing: border-box;
  max-width: 100%;
  background: var(--paper);
}

#container:has(> .main > .main_right) .classify > ul {
  padding: 0;
}

#container:has(> .main > .main_right) .classify table {
  display: block;
  width: 100%;
}

#container:has(> .main > .main_right) .classify tbody {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

#container:has(> .main > .main_right) .classify tr {
  display: contents;
}

#container:has(> .main > .main_right) .classify td {
  display: block;
  min-width: 0;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

#container:has(> .main > .main_right) .classify td:not(:has(a[href])) {
  display: none;
}

#container:has(> .main > .main_right) > .search {
  padding: 8px 12px;
  background: var(--wash);
  color: var(--ink);
  overflow-wrap: anywhere;
}

#container:has(> .main > .main_right) > .search > table {
  width: 100%;
}

#container:has(> .main > .main_right) .search_box :is(input, select) {
  box-sizing: border-box;
  max-width: 100%;
}

#container > .main:has(> .main_right) > .clearfix {
  display: none;
}

#container > .main > .main_right :is(.xzbm, .similar) {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  overflow-wrap: anywhere;
}

#container > .main > .main_right .xzbm :is(.zxbm_content, table, input:not([type="radio"], [type="hidden"]), textarea),
#container > .main > .main_right .similar .class_cate {
  box-sizing: border-box;
  max-width: 100%;
}

#container > .main > .main_right .xzbm .zxbm_content {
  overflow-x: auto;
}

#container > .main > .main_right .download ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#container > .main > .main_right .download li {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px 10px;
  background: var(--accent);
}

@media (max-width: 760px) {
  #container:has(> .main > .main_right) .classify tbody,
  .buju:has(> .content_mode) > .top > table > tbody {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #container:has(> .main > .main_right) > .search :is(table, tbody, tr, td) {
    display: block;
    width: auto;
  }

  #container:has(> .main > .main_right) > .search td {
    margin-bottom: 4px;
  }

  .buju:has(> .content_mode) > div:has(.tdbg) {
    overflow-x: auto;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) > tbody {
    display: grid;
    grid-template-columns: minmax(62px, 25%) minmax(0, 1fr);
    width: 100%;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) > tbody > tr {
    display: contents;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) > tbody > tr > td {
    display: block;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) td[colspan] {
    grid-column: 1 / -1;
  }

  :is(.buju:has(> .content_mode), #container > .main > .main_right .xzbm) table:has(.tdbg) :is(input:not([type="radio"], [type="hidden"]), textarea) {
    box-sizing: border-box;
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  body > table[width="960"]:has(table[width="680"]) table[width="98%"],
  body > table[width="960"]:has(table[width="680"]) td > table {
    table-layout: fixed;
  }

  body > table[width="960"]:has(table[width="680"]) tr:has(> td[width="250"]):has(> td > table[width="680"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body > table[width="960"]:has(table[width="680"]) td[width="250"] {
    box-sizing: border-box;
    width: 100%;
  }
}
