@charset "UTF-8";

:root {
  --ink: #2b292c;
  --muted: #655f64;
  --wine: #802e35;
  --deep: #502329;
  --tint: #f5eceb;
  --paper: #fff;
  --canvas: #f6f3f1;
  --line: #e5dddb;
  --gutter: clamp(12px, 2vw, 25px);
  --font: "Source Sans 3", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 15px/1.6 var(--font);
}

body > .hide:has(> img[src="/Template/jingrong/images/wx.jpg"]),
body > .hide > img[src="/Template/jingrong/images/wx.jpg"] { display: none !important; }

#container, #container *, .buju, .buju *, .fixed-bottom, .fixed-bottom *,
.frmsubmit, .frmsubmit *, body > .logo { box-sizing: border-box; }

body > :is(#container, .buju) {
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  min-width: 0;
  margin: var(--gutter) auto 0;
}

:is(#container, .buju) a { color: inherit; }
:is(#container, .buju) a:hover { color: var(--wine); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

#banner {
  container-type: inline-size;
  position: relative;
  background: var(--paper);
  border-top: 3px solid var(--wine);
}

#banner .nav > .logo {
  height: 74px;
  background-color: var(--paper);
  background-position: left center;
  background-size: auto 74px;
}

#banner .nav > .header, #banner .lunbo { display: none; }
#container:has(> #main .biao) #banner .nav > .header { display: block; height: auto; }
#banner .header > img, .buju > .head > img {
  display: block;
  width: 100%;
  height: auto;
}

#container:has(> #main .biao) #banner .lunbo {
  display: block;
  position: absolute;
  inset: calc(74px + 2.1cqw) 3% auto auto;
  width: 41.4%;
  height: auto;
}

#banner :is(#slider, #slider-mask) {
  width: 100%;
  height: auto;
  aspect-ratio: 429 / 173;
  margin: 0;
  background: transparent;
}

#banner #slider > div { width: 100%; height: 100%; }
#banner #slider img { width: 100%; height: 100%; object-fit: contain; }
#banner #slider-mask > :is(#prev, #next) { display: none; }
#banner #slider-mask:has(#slider > :nth-child(2)) > :is(#prev, #next) {
  display: block;
  top: 50%;
  bottom: auto;
  z-index: 10;
  width: 24px;
  height: 30px;
  padding: 6px;
  transform: translateY(-50%);
  background: #fff;
}
#banner #slider-mask > #prev { left: 5px; right: auto; }
#banner #slider-mask > #next { right: 5px; }

#banner .nav_bar, .buju > .menu {
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  background: var(--deep);
}

.nav_bar > ul:has(> li), .nav_bar > ul > ul, .buju > .menu > ul, .buju > .menu tr {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.buju > .menu tr { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.buju > .menu :is(table, tbody) { display: block; height: auto !important; width: 100%; }
.buju > .menu td:empty, .buju > .menu td:not(:has(a)) { display: none; }
:is(.nav_bar, .buju > .menu) :is(li, td) {
  float: none;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}
#container .nav_bar a, .buju > .menu a {
  display: grid;
  width: 100%;
  min-height: 46px;
  height: 100%;
  padding: 7px 4px;
  place-items: center;
  border-inline-end: 1px solid #fff2;
  color: #fff;
  font: 650 14px/1.3 var(--font);
  text-align: center;
}
#banner .nav_bar a:is(:hover, :focus-visible), .buju > .menu a:is(:hover, :focus-visible) {
  color: #fff;
  background: var(--wine);
  text-decoration: none;
}

#container > #main, #container > #main_2 {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: var(--gutter);
  margin: var(--gutter) 0;
  overflow: visible;
}
#container:has(> .main_right_c) { display: flow-root; }
#container > .main_left_c { width: 24%; margin-top: var(--gutter); }
#container > .main_right_c { width: 74%; margin-top: var(--gutter); }
#container :is(#main, #main_2) > :is(.main_left, .main_right, .main_left_c, .main_right_c) {
  float: none;
  width: auto;
  margin: 0;
}
#container :is(#main, #main_2) > .clear { display: none; }
#container :is(.main_left, .main_left_c, .main_right_c) {
  min-width: 0;
  border: 0;
}
#container :is(.main_right, .main_right_nr, .main_right_c, .main_nr) {
  min-width: 0;
  height: auto;
  overflow: visible;
  background: var(--paper);
}
#container :is(.main_nr, .main_right_nr) { border: 0; padding: 0; margin-bottom: var(--gutter); }
#container .main_right { background: transparent; }
#container .main_right_c { padding: clamp(14px, 2.5vw, 30px); }
#container .main_left_c { background: var(--paper); border-top: 2px solid var(--wine); }

#container :is(h3, h4, .main_left_c h1) {
  border: 0;
  border-top: 2px solid var(--wine);
  padding: 12px 96px 12px 16px;
  color: var(--deep);
  background: var(--tint);
  font-size: 18px;
}
#container .main_left_c h1 { border-top: 0; padding-right: 12px; }
#container .more { top: 13px; right: 14px; }
#container .more a { color: var(--wine); }

#container .main_left .main_nr li {
  height: auto;
  min-height: 39px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
#container .main_left .main_nr li:last-child { border-bottom: 0; }
#container :is(.main_left .main_nr li, .biao .style1) > a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#container .sousuo { height: auto; padding: 8px 0 13px; }
#container .sousuo table { width: 100%; }
#container .sousuo .input1 { width: 100%; min-width: 0; }
#container .sousuo .input2 { max-width: 100%; background: var(--wine); border-color: var(--wine); }
#container .sousuo input { min-height: 32px; border: 1px solid var(--line); border-radius: 3px; }

#container .biao table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#container .biao :is(td, th) { padding: 11px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.5; }
#container .biao th { background: #fbf7f6; color: var(--muted); }
#container .biao th:first-child { width: 42%; }
#container .biao .style1 { height: auto; padding-left: 14px; background: none; }
#container .biao td a[href*="/baoming"] { display: inline-block; color: var(--wine); font-weight: 650; }

#container .master { padding: 12px 16px; overflow: visible; }
#container .master ul, #container .master_list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
#container :is(.master, .master_list) li {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}
#container .master img, #container .master_list img {
  width: 78px;
  height: 94px;
  float: left;
  margin: 0 11px 3px 0;
  padding: 0;
  object-fit: cover;
}
#container #master_list_nr { float: none; width: auto; }
#container .master li span { display: block; max-height: none; overflow: visible; }

#container .position {
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#container .main_right .position { padding: 10px 12px; background: var(--paper); }
#container .main_right_list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  line-height: 1.5;
}
#container .main_right_list li > a { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
#container .main_right_list .time { position: static; flex: none; color: var(--muted); }
#container .main_right_nr dl { display: block; margin: 0; padding: 10px 15px; border-bottom: 1px solid var(--line); }
#container .main_right_nr dt { padding: 0; background: none; }
#container .main_right_nr dt a { color: var(--deep); font-size: 16px; text-decoration: none; }
#container .main_right_nr dd { margin: 3px 0 0; padding: 0; color: var(--muted); overflow-wrap: anywhere; }
#container .main_right_nr dd span { display: inline-block; max-width: 100%; margin: 3px 11px 3px 0; }
#container .main_right_nr dd a { color: #fff; background: var(--wine); }
#container :is(.fanye, #fenye) { display: block; min-width: 0; padding: 9px 4px; overflow-wrap: anywhere; }
#container .fanye a { display: inline-block; width: auto; padding: 2px 4px; border-color: var(--line); }
#container :is(h2, h5) { color: var(--deep); }
#container .main_right_c h5 { font-size: clamp(20px, 2.5vw, 30px); line-height: 1.35; border-color: var(--line); overflow-wrap: anywhere; }
#container :is(.title, .con_title) { width: auto; max-width: 100%; margin: 10px 0; color: var(--muted); }
#container :is(.title, .con_title) li { float: none; display: inline-block; width: auto; margin: 3px 10px 3px 0; }
#container .read, #container .read_con { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
#container .read img, #container .read_con img, .buju .articlemain img { max-width: 100%; height: auto; }
#container :is(.read, .read_con) :is(table, iframe), .buju .articlemain table { max-width: 100%; }
#container .bmb .bmbs { margin-left: 0; }
#container .bmb :is(fieldset, input) { min-width: 0; max-width: 100%; }

#container #footer, .buju > .footer {
  float: none;
  width: 100%;
  height: auto;
  margin: var(--gutter) 0 0;
  padding: 18px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}
#container #footer img { max-width: 100%; }
#container #footer img[src*="备案图标"] { width: 16px; height: auto; vertical-align: middle; }

/* Original gallery and older teacher details. */
.buju > .head, .buju > .body, .buju :is(.content, .right_mode, .lanmucontent, .links) {
  min-width: 0;
  max-width: 100%;
  height: auto;
}
.buju > .head { width: 100%; margin: 0; }
.buju :is(.body, .content) { margin: var(--gutter) auto 0; }
.buju :is(.body, .content) { width: 100%; display: flow-root; }
.buju .right_mode { width: calc(100% - 335px); }
.buju :is(.arttitle, .info, .articlemain, .line_baoming) { max-width: 100%; overflow-wrap: anywhere; }
.buju .arttitle { font-size: clamp(19px, 2.4vw, 29px); line-height: 1.4; }
.buju .articlemain { padding: 12px; background: var(--paper); }
.buju :is(.lanmucontent, .line_baoming, .articlemain) :is(table, img, textarea, input) { max-width: 100%; }

/* Original dedicated phone registration page. */
body:has(> .frmsubmit #frmOrder) > :is(.logo, .frmsubmit, .about) {
  width: min(700px, calc(100% - 2 * var(--gutter)));
  min-width: 0;
  margin: 12px auto;
}
body:has(> .frmsubmit #frmOrder) > .logo img { width: 100%; height: auto; display: block; }
.frmsubmit { padding: clamp(14px, 3vw, 26px); border-top: 2px solid var(--wine); background: var(--paper); }
.frmsubmit h2 { color: var(--deep); }
.frmsubmit input { max-width: 100%; min-height: 39px; }
.frmsubmit input[type=submit] { background: var(--wine); color: #fff; }

@media (max-width: 1250px) {
  .embed-icon:has(> .embed-icon-default) {
    top: auto !important;
    right: 8px !important;
    bottom: 12px;
    transform: none !important;
  }
  .embed-icon > .embed-icon-default {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid var(--line);
    border-radius: 50%;
    background-position: top center !important;
    box-shadow: 0 2px 8px #50232924;
  }
}

@media (max-width: 800px) {
  .nav_bar > ul:has(> li), .nav_bar > ul > ul, .buju > .menu > ul, .buju > .menu tr {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #container > #main, #container > #main_2 { grid-template-columns: minmax(0, 1fr); }
  #container > :is(.main_left_c, .main_right_c) { float: none; width: 100%; }
  #container :is(.main_left_c, .main_right_c, .main_left) { display: block; }
  #container .main_left_c:has(+ .main_right_c) { margin-top: var(--gutter); }
  #container .main_right_list li { flex-wrap: wrap; gap: 3px 8px; }
  #container .main_right_list .time { align-self: end; }
  .buju > .body > div, .buju :is(.right_mode, .artmainr, .articlemain, .line_baoming, .content > div) {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  body:has(.fixed-bottom) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body:has(.fixed-bottom) .embed-icon:has(> .embed-icon-default) { bottom: calc(62px + env(safe-area-inset-bottom)); }
  #banner .nav > .logo { height: 65px; background-size: auto 66px; }
  #container:has(> #main .biao) #banner .nav > .header { display: none; }
  #container:has(> #main .biao) #banner .lunbo { position: relative; inset: auto; width: 100%; }
  #container .biao :is(table, tbody) { display: block; }
  #container .biao tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 12px; border-bottom: 1px solid var(--line); }
  #container .biao tr:has(th) { display: none; }
  #container .biao tr > td { display: block; padding: 3px 0; border: 0; text-align: left; }
  #container .biao tr > td.style1 { grid-column: 1 / -1; padding: 0 0 5px; color: var(--deep); font-weight: 650; }
  #container .biao tr > td:nth-child(2)::before { content: "费用 "; color: var(--muted); }
  #container .biao tr > td:nth-child(3)::before { content: "日期 "; color: var(--muted); }
  #container .biao tr > td:nth-child(4)::before { content: "地点 "; color: var(--muted); }
  #container :is(.master, .master_list) ul { grid-template-columns: 1fr; }
  #container .main_right_c { padding: 12px; }
  #container :is(.read, .read_con) :is(p, div):has(> img, > a > img) {
    text-indent: 0 !important;
  }
  .buju .next_pro { width: auto; max-width: 100%; overflow-wrap: anywhere; }
  .buju .line_baoming :is(table, tbody, tr, td) { display: block; width: 100% !important; }
  .buju .line_baoming :is(input, select, textarea) { min-width: 0; max-width: 100%; }
  #container .bmb .bmbs { padding: 5px 0; }
  #container .bmb label { float: none; height: auto; display: block; margin-bottom: 3px; }
  #container .bmb .bm_an input { margin: 6px; }
  .fixed-bottom {
    position: fixed;
    display: block;
    inset: auto 0 0;
    width: 100%;
    z-index: 100;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--deep);
  }
  .fixed-bottom ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; }
  .fixed-bottom li { width: auto; margin: 0; border-inline-end: 1px solid #fff2; }
  .fixed-bottom li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 4px;
    color: #fff;
    font: 650 12px/1.25 var(--font);
    white-space: nowrap;
  }
  .fixed-bottom li a img { display: block; width: 21px; height: 21px; object-fit: contain; }
}

@media (min-width: 621px) {
  #container .fixed-bottom, body:has(> #container) > .fixed-bottom { display: none; }
}
