:root {
  --canvas: #f2f4f6;
  --surface: #fff;
  --panel: #eaf0f6;
  --text: #182a3b;
  --muted: #4b5f72;
  --nav: #182c46;
  --accent: #295982;
  --border: #d8e1ea;
  --space: clamp(12px, 2vw, 24px);
  --type: "Instrument Sans", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  background: var(--canvas);
  color: var(--text);
  font: 15px/1.6 var(--type);
}

body > .hide:has(> img[src="/Template/jingrong/images/wx.jpg"]) {
  display: none !important;
}

#container, #container *, #fixed, #fixed * { box-sizing: border-box; }

#container {
  width: min(1160px, calc(100% - 2 * var(--space)));
  margin: var(--space) auto 0;
  padding: 0;
}

#container a:focus-visible,
#container :is(input, button, textarea, select):focus-visible,
#fixed a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#container > #banner {
  height: auto;
  padding-top: clamp(31px, 10.1vw, 122px);
  border-top: 3px solid var(--accent);
  background-color: var(--surface);
  background-position: center top;
  background-size: 100% auto;
}

#banner > .nav {
  top: auto;
  position: static;
  width: 100%;
  background: var(--nav);
}

#banner > .nav ul:has(> li) {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

#banner > .nav ul:has(> li:nth-child(8)) {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

#banner > .nav li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

#banner > .nav li a {
  display: grid;
  min-height: 49px;
  height: 100%;
  padding: 7px 5px;
  place-items: center;
  border-inline-end: 1px solid #fff2;
  color: #fff;
  background: none;
  text-align: center;
  overflow-wrap: anywhere;
  font: 650 15px/1.25 var(--type);
  transition: background-color .15s ease;
}

#banner > .nav li:last-child a,
#banner > .nav li a:is(:hover, :focus-visible) {
  color: #fff;
  background: var(--accent);
}

#banner > .nav a:focus-visible, #fixed a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

#container > #slider-mask {
  width: 100%;
  height: auto;
  aspect-ratio: 1002 / 173;
  margin: var(--space) 0;
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

#slider-mask #slider,
#slider-mask #slider > div,
#slider-mask #slider img {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

#slider-mask #slider img { object-fit: contain; }
#slider-mask #slider { z-index: 1; }

#slider-mask #slider:not(:has(> div[style])) > div:nth-child(n + 2) {
  display: none;
}

#slider-mask :is(#prev, #next) {
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #182c46e6;
  content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAA1UlEQVR42u2awQ3EIBDEwvbfMynhdA9mHGE3QOwAirR5HhEREREREZEj7L039dkmJU+NMMk3T4ww6W1Pi3AswFprfeFOOHoEvhDh+CVIjzCJRcgRJrUQNcIkFyNGmPSCtAjTqE6KMK2zR4lQC0CJUA1AiFAP0I6ACNCMgAnQioAK8CvCFQGu+Q74V/7Uzpib5TEBWvKIAE35eoC2fDUAQb4WgCJfCUCSjwegyUcDEOVjAajy0ekwUT4+HabJV6bDJPnKdJgkH58O0+T9R0hERERERORWXj6flDev9zobAAAAAElFTkSuQmCC");
}

#slider-mask #prev { left: 6px; transform: translateY(-50%) scaleX(-1); }
#slider-mask #next { right: 6px; }

#slider-mask:not(:has(#slider > div[style])) :is(#prev, #next) { display: none; }

#main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.55fr);
  gap: var(--space);
  align-items: start;
  width: 100%;
  margin-top: var(--space);
  overflow: visible;
}

#main > .clear { display: none; }

#main :is(.main_left, .main_right, .main_right_c, .c_right_c) {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  overflow: visible;
  background: none;
}

#main :is(.main_nr, .main_right_nr, .c_right_c) {
  position: relative;
  margin: 0 0 var(--space);
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

#main :is(.main_nr, .main_right_nr) > :is(h3, h4) {
  min-height: 50px;
  margin: 0;
  padding: 12px 85px 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  color: var(--nav);
  font: 700 19px/1.35 var(--type);
}

#main :is(h3, h4) a { color: inherit; }
#main .more { top: 9px; right: 12px; }
#main .more a { display: block; padding: 4px 2px; color: var(--accent); }

#main .main_nr > ul { padding: 0 14px; }
#main .main_nr > ul > li {
  height: auto;
  min-height: 40px;
  padding: 0;
  border-bottom: 1px solid var(--border) !important;
  line-height: 1.5;
}

#main .main_nr > ul > li:last-child { border-bottom: 0 !important; }
#main .main_nr li a,
#main .biao .style1 > a {
  display: block;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#main .main_nr li a { padding: 9px 0; }
#main .main_nr li:not(:has(a)) { padding: 9px 0; }
#main a:is(:hover, :focus-visible) { color: var(--accent); text-underline-offset: .19em; }

#main .sousuo { height: auto; margin: 0 0 var(--space); padding: 0; }
#main .sousuo :is(table, tbody) { display: block; width: 100%; }
#main .sousuo tr { display: grid; grid-template-columns: minmax(0, 1fr) 78px; }
#main .sousuo td { min-width: 0; padding: 0; }
#main .sousuo input {
  width: 100%;
  height: 42px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  font: 14px/1.4 var(--type);
}
#main .sousuo .input2 { border-color: var(--nav); color: #fff; background: var(--nav); }

#main .biao table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#main .biao :is(th, td) {
  height: auto;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: 14px/1.5 var(--type);
  overflow-wrap: anywhere;
}
#main .biao th { color: var(--nav); background: var(--canvas); font-weight: 650; }
#main .biao :is(th, td):first-child { padding-inline-start: 14px; text-align: left; }
#main .biao .style1 { background: none; }
#main .biao th:nth-child(2) { width: 12%; }
#main .biao th:nth-child(3) { width: 16%; }
#main .biao th:nth-child(4) { width: 16%; }
#main .biao th:nth-child(5) { width: 10% !important; }
#main .biao td:last-child a { color: var(--accent); font-weight: 650; }

#main .shizi,
#main .master_list > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

#main :is(.shizi, .master_list) li {
  display: grid;
  grid-template-columns: clamp(46px, 6vw, 72px) minmax(0, 1fr);
  align-content: start;
  column-gap: 10px;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

#main .shizi li > a:first-child { grid-row: span 2; }
#main :is(.shizi, .master_list) img {
  display: block;
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  object-fit: cover;
  background: var(--panel);
}
#main .shizi li h2 { margin: 0; padding: 0; color: var(--nav); font-size: 16px; }
#main .shizi li span { max-height: none; color: var(--muted); font-size: 13px; }
#main :is(.master_list_nr, #master_list_nr) { width: auto; min-width: 0; float: none; }

#main .position { margin: 0 0 10px; padding: 4px 0; color: var(--muted); background: none; overflow-wrap: anywhere; }
#main .main_right_list { padding: 0 14px; }
#main .main_right_list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  font: 15px/1.55 var(--type);
}

#main .main_right_list li > a { min-width: 0; overflow-wrap: anywhere; }
#main .main_right_list .time { position: static; flex: 0 0 auto; color: var(--muted); }
#main .main_right_nr > dl { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
#main .main_right_nr dt { padding: 13px 14px 0; background: none; }
#main .main_right_nr dt a { color: var(--nav); text-decoration: none; font: 650 16px/1.5 var(--type); }
#main .main_right_nr dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
  padding: 7px 14px 13px;
  border-bottom: 1px solid var(--border);
}
#main .main_right_nr dd span { margin: 0; color: var(--muted); }
#main .main_right_nr dd a { background: var(--nav); color: #fff; }

#main .c_right_c { padding: clamp(14px, 3vw, 32px); overflow-wrap: anywhere; }
#main .c_right_c > :is(h1, h2, h5) {
  padding: 0 0 13px;
  border: 0;
  color: var(--nav);
  background: none;
  text-align: center;
  font: 700 clamp(22px, 2.7vw, 32px)/1.42 var(--type);
}
#main .c_right_c > :is(.title, .con_title) { width: auto; margin: 0; padding: 7px 11px; background: var(--canvas); color: var(--muted); }
#main .c_right_c > :is(.title, .con_title) ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 12px; }
#main .c_right_c > :is(.title, .con_title) li { float: none; margin: 0; }
#main .c_right_c :is(.read, .read_con) { font: 16px/1.75 var(--type); }
#main .c_right_c .weekly-date { text-align: center; text-indent: 0; }
#main .c_right_c #MyContent :is(img, video, iframe) { max-width: 100% !important; }
#main .c_right_c #MyContent img { height: auto !important; }
#main .c_right_c .biaodan:empty { display: none; }
#container :is(#site-registration, .sr-grid, .sr-grid > *, .sr-grid :is(input, textarea)) {
  min-width: 0;
  max-width: 100%;
}
#container #site-registration { text-indent: 0; }
#container :is(fieldset, .bmbs, .bmbs input, .biaodan input, .biaodan textarea) { min-width: 0; max-width: 100%; }

#main :is(.fenye, #fenye) {
  max-width: 100%;
  padding: 8px 10px;
  color: var(--muted);
  text-align: left;
  line-height: 2;
  overflow-wrap: anywhere;
}
#main :is(.fenye, #fenye) a {
  display: inline-block;
  width: auto;
  min-height: 29px;
  margin: 2px;
  padding: 0 7px;
  border: 1px solid var(--border);
  color: var(--nav);
  white-space: nowrap;
}
#main :is(.fenye, #fenye) select { max-width: 100%; }

#container > .footer, #container > #footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font: 14px/1.65 var(--type);
  overflow-wrap: anywhere;
}
#container > .footer p, #container > #footer p { margin: 6px 0; }
#container > .footer h2, #container > #footer h2 { color: var(--nav); font-size: 16px; }

@media (max-width: 740px) {
  body:has(#fixed) > #container { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #banner > .nav ul:has(> li), #banner > .nav ul:has(> li:nth-child(8)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #banner > .nav li:nth-child(n + 5) { border-top: 1px solid #fff2; }
  #banner > .nav ul:not(:has(> li:nth-child(8))) > li:last-child { grid-column: span 2; }
  #banner > .nav li a { min-height: 44px; font-size: 14px; }
  #slider-mask :is(#prev, #next) { width: 34px; height: 34px; padding: 7px; }
  #main { grid-template-columns: minmax(0, 1fr); }
  #main > :is(.main_right, .main_right_c) { order: -1; }
  #main .sousuo { display: none; }
  #main .biao :is(table, tbody) { display: block; }
  #main .biao tr {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0 3px;
    padding: 5px 11px;
    border-bottom: 1px solid var(--border);
  }
  #main .biao :is(th, td) {
    display: block;
    width: auto !important;
    padding: 2px 3px;
    border: 0;
    text-align: left;
  }
  #main .biao tr:first-child { background: var(--canvas); }
  #main .biao th, #main .biao td:last-child a { white-space: nowrap; }
  #main .biao :is(th, td):first-child { grid-column: 1 / -1; padding-inline-start: 3px; }
  #main .biao td:first-child a { min-height: 35px; padding-top: 4px; font-size: 15px; }
  #main .biao td:last-child a { display: inline-block; min-height: 28px; padding-inline: 3px; }
  #main .main_right_list li { flex-wrap: wrap; gap: 4px 12px; }
  #main .main_right_list .time { white-space: nowrap; }
  #main .c_right_c .read, #main .c_right_c #MyContent table { overflow-x: auto; }
  #main .c_right_c #MyContent table { display: block; max-width: 100%; }
  #container .bmb .bmbs { margin-inline: 0; }
  #container .bm_an input { margin: 10px; }

  #fixed {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    width: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--nav);
  }
  #fixed ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #fixed li { width: auto; border-inline-end: 1px solid #fff2; }
  #fixed li:last-child { background: var(--accent); }
  #fixed a {
    display: grid;
    min-height: 54px;
    place-content: center;
    justify-items: center;
    gap: 2px;
    color: #fff;
    font: 650 12px/1.25 var(--type);
    text-align: center;
  }
  #fixed img { width: 18px; height: 18px; object-fit: contain; }
  #fixed p { margin: 0; }
}

@media (max-width: 440px) {
  #main .shizi, #main .master_list > ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #banner > .nav li a { transition: none; }
}
