
/* guoxue-responsive-20261111 */
:root {
  --gx-paper: #f6f2e9;
  --gx-surface: #fffdf8;
  --gx-ink: #2c2722;
  --gx-muted: #655b50;
  --gx-line: #e5dbc9;
  --gx-accent: #795328;
  --gx-nav: #62451f;
  --gx-serif: "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --gx-sans: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  background: var(--gx-paper);
  color: var(--gx-ink);
  font-family: var(--gx-sans);
  font-size: 15px;
  line-height: 1.65;
}

#container {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 20px auto 0;
  overflow: visible;
  font-size: 15px;
}

#container a:focus-visible,
.fixed-bottom a:focus-visible {
  outline: 2px solid var(--gx-accent);
  outline-offset: 2px;
}

#banner {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 0;
  border-top: 2px solid #b88d51;
  background: #f8f1e1;
  overflow: visible;
}

#banner::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 960 / 150;
  background: url(/Template/simu/images/20131216b.jpg) center / cover no-repeat;
}

#banner > ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  height: auto;
  border-top: 1px solid #c8a25e;
  line-height: 1.4;
}

#banner > ul > li > a:is(:link, :visited) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
}

#banner > ul > li:last-child > a {
  background: #755324;
}

#banner > ul > li > a:is(:hover, :focus-visible) {
  background: #825c29;
}

#main {
  margin-top: 18px;
  overflow: visible;
}

#main:has(> #mainrig) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 23%);
  align-items: start;
  gap: 14px 20px;
}

#main:has(> #mainrig) > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gx-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

#main > :is(#news, #master, #mainleft, #mainrig),
#maintop > :is(#jianzhang, #about, #lianxi),
#fenlei > :is(#kebiao, #zhaosheng, #xinwen) {
  float: none;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--gx-surface);
}

#main #news, #main #master, #main #mainleft,
#main > #mainrig:has(> h1), #main #tuijian, #main #lianxi,
#maintop > div, #fenlei > div, #pic {
  border-top: 2px solid #ad8652;
}

#main #mainrig:not(:has(> h1)) {
  background: transparent;
}

#main #mainrig > :is(#tuijian, #lianxi) {
  box-sizing: border-box;
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: var(--gx-surface);
}

#main #mainrig > #lianxi {
  margin-top: 16px;
}

#main #mainrig p {
  margin: 10px 16px;
  padding: 0;
  overflow-wrap: anywhere;
}

#main #tuijian ul {
  margin: 0;
  padding: 0 16px 8px;
  list-style: none;
}

#main #tuijian li {
  border: 0;
  border-top: 1px solid var(--gx-line);
  padding: 8px 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

#news > h1, #master > h1, #mainrig h1, #mainleft > h5,
#maintop h2, #fenlei h2, #pic > h2 {
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--gx-line);
  background: transparent;
  color: var(--gx-accent);
  font: 700 20px/1.4 var(--gx-serif);
  text-align: left;
}

#main #mainleft {
  padding: 0 22px 16px;
  line-height: 1.75;
}

#mainleft > h5 {
  margin-inline: -22px;
}

#mainleft > :is(h1, h2) {
  margin: 0;
  padding: 20px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--gx-line);
  background: transparent;
  color: var(--gx-ink);
  font: 700 clamp(21px, 3vw, 30px)/1.45 var(--gx-serif);
  text-align: left;
  overflow-wrap: anywhere;
}

#mainleft .weekly-date {
  margin-top: 8px;
  color: var(--gx-muted);
  font-size: 13px;
}

#mainleft #MyContent {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 16px;
  overflow-wrap: anywhere;
  overflow-x: auto;
  font-size: 16px;
  line-height: 1.85;
}

#MyContent img {
  max-width: 100%;
  height: auto;
}

#mainleft #site-registration {
  scroll-margin-top: 12px;
}

#site-registration input:not([type="hidden"]),
#site-registration textarea {
  min-height: 44px;
}

#mainleft #site-registration textarea {
  display: block;
  min-height: 84px;
}

#site-registration button,
#site-registration input[type="submit"] {
  min-height: 44px;
}

#news > table, #master > table, #mainleft > h5 + table {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border-spacing: 0;
}

#news > table :is(td, th), #master > table :is(td, th),
#mainleft > h5 + table :is(td, th) {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gx-line);
  vertical-align: top;
}

#main :is(#news, #master, #mainleft) .tdstyle {
  width: auto;
  overflow-wrap: anywhere;
}

#main :is(#news, #master, #mainleft) :is(.tdstyle2, .tdstyle3) {
  width: 1%;
  white-space: nowrap;
  color: var(--gx-muted);
  font-size: 13px;
}

#main :is(#news, #master, #mainleft) .tdstyle a,
#master > table a {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

#main a:is(:hover, :focus-visible) {
  color: var(--gx-accent);
  text-underline-offset: 3px;
}

#main :is(.pstyle, .Page, .page, #fenye) {
  max-width: 100%;
  line-height: 2.25;
  overflow-wrap: anywhere;
}

#main select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid #c4b294;
  border-radius: 3px;
  background: var(--gx-surface);
  color: var(--gx-ink);
  font: inherit;
}

#master > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px;
}

#master > ul > li {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  box-shadow: none;
}

#master > ul > li img {
  max-width: 100%;
  height: auto;
  padding: 0;
}

#sousuo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--gx-line);
  background: var(--gx-surface);
}

#sousuo span.spanclass {
  color: var(--gx-muted);
}

#sousuo .instyle {
  box-sizing: border-box;
  width: min(220px, 55%);
  min-width: 0;
  height: 36px;
  padding: 4px 8px;
  border-color: #c4b294;
  border-radius: 3px;
  font: inherit;
}

#sousuo .suosouspan {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--gx-nav);
}

#main #sousuo .suosouspan a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: white;
}

#maintop, #fenlei {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  overflow: visible;
}

#maintop {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

#maintop > #jianzhang {
  grid-row: span 2;
}

#maintop > #about {
  padding: 0 16px 14px;
  overflow-wrap: anywhere;
}

#maintop > #about h2 {
  margin: 0 -16px 12px;
}

#maintop > #lianxi {
  padding: 0;
}

#maintop > #lianxi p {
  margin: 8px 16px;
}

#fenlei {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#main #more {
  position: absolute;
  float: none;
  inset: 8px 14px auto auto;
  margin: 0;
  padding: 0;
}

#main #more a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--gx-accent);
  font-size: 13px;
}

#jianzhang ul, #fenlei ul {
  margin: 0;
  padding: 0 16px 10px;
  list-style: none;
}

#jianzhang ul li, #fenlei ul li {
  height: auto !important;
  line-height: 1.55 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gx-line) !important;
  padding: 0;
  white-space: normal;
  overflow: visible;
}

#jianzhang li a, #fenlei li a {
  display: block;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}

#mid2 img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#pic {
  display: block;
  height: auto;
  margin-top: 18px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: var(--gx-surface);
}

#pic #wrapper, #pic #carousel {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

#pic #carousel ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
}

#pic #carousel li {
  float: none;
  width: auto;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: #eee3d1;
}

#pic #carousel li img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

#footer {
  margin-top: 22px;
  border-top: 1px solid var(--gx-line);
  padding: 14px 0 18px;
  color: var(--gx-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#footer p {
  margin: 8px 0;
}

#footer #footerstyle {
  display: block;
  padding: 0;
  border: 0;
  line-height: 1.55;
}

#footer table,
#footer table tbody {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

#footer table tr {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0 12px;
  border: 0;
}

#footer table td {
  width: auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  white-space: normal;
}

#footer a:is(:link, :visited) {
  color: var(--gx-muted);
}

.fixed-bottom {
  display: none;
}

/* The older teacher directory uses this separate page frame. */
:is(#buju, .buju) {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 20px auto 0;
  color: var(--gx-ink);
  font: 15px/1.65 var(--gx-sans);
}

:is(#buju, .buju) > :is(#head, .head) {
  width: auto;
  margin: 0;
}

:is(#buju, .buju) > :is(#head, .head) img {
  display: block;
  width: 100%;
  height: auto;
}

:is(#buju, .buju) > :is(#menu, .menu) {
  width: auto;
  height: auto;
  background: var(--gx-nav);
}

:is(#buju, .buju) > :is(#menu, .menu) > ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(#buju, .buju) > :is(#menu, .menu) li {
  flex: 1 1 auto;
  float: none;
  margin: 0;
}

:is(#buju, .buju) > :is(#menu, .menu) li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 8px;
  color: #fff;
  font: 700 15px/1.4 var(--gx-sans);
}

:is(#buju, .buju) > :is(#body, .body) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  align-items: start;
  gap: 16px;
  width: auto;
  margin: 16px 0 0;
}

:is(#buju, .buju) > :is(#body, .body) > div {
  float: none !important;
  box-sizing: border-box;
  width: auto !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

:is(#buju, .buju) :is(.msjieshao1, .right_mode, .lanmucontent) {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  padding-inline: 12px;
  background: var(--gx-surface);
}

:is(#buju, .buju) .msjieshao1 li {
  height: auto !important;
  min-height: 35px;
  line-height: 1.55 !important;
  padding-block: 6px;
}

:is(#buju, .buju) .lanmucontent :is(dl, dd) {
  margin-inline: 0;
}

:is(#buju, .buju) .lanmucontent dd {
  color: var(--gx-muted);
  font-size: 14px;
}

:is(#buju, .buju) > .links {
  float: none;
  width: auto;
  height: auto;
}

:is(#buju, .buju) > .links :is(table, tbody) {
  display: block;
  width: 100%;
}

:is(#buju, .buju) > .links tr {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

:is(#buju, .buju) > .links td {
  width: auto;
  white-space: normal;
}

:is(#buju, .buju) > .footer > div {
  float: none !important;
  margin-inline: 0 !important;
  overflow-wrap: anywhere;
}

@media (max-width: 840px) {
  #container {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  #main:has(> #mainrig) {
    grid-template-columns: minmax(0, 1fr);
  }

  #main > #mainleft {
    width: auto !important;
    padding: 0 16px 12px !important;
  }

  #mainleft > h5 {
    margin-inline: -16px;
  }

  #fenlei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :is(#buju, .buju) {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  :is(#buju, .buju) > :is(#body, .body) {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(#buju, .buju) > :is(#menu, .menu) li {
    flex: 1 1 33.333%;
  }

  #container {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  #banner::before {
    min-height: 60px;
    background-size: max(100%, 480px) auto;
  }

  #banner > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 15px;
  }

  #banner > ul > li > a:is(:link, :visited) {
    min-height: 44px;
  }

  #main {
    margin-top: 12px;
  }

  #main > #mainleft {
    padding-inline: 12px !important;
  }

  #mainleft > h5 {
    margin-inline: -12px;
  }

  #news > table tr:has(> .tdstyle),
  #mainleft > h5 + table tr:has(> .tdstyle) {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gx-line);
  }

  #news > table tr:has(> .tdstyle) > td,
  #mainleft > h5 + table tr:has(> .tdstyle) > td {
    width: auto;
    padding: 0;
    border: 0;
  }

  #main :is(#news, #mainleft) .tdstyle {
    flex: 1 0 100%;
    min-width: 0;
  }

  #main :is(#news, #mainleft) :is(.tdstyle2, .tdstyle3) {
    width: auto;
  }

  #mainleft > h5 + table .tdstyle2:empty,
  #mainleft > h5 + table .tdstyle3:empty {
    display: none;
  }

  #maintop, #fenlei {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #maintop > #jianzhang {
    grid-row: auto;
  }

  #sousuo .spanclass:first-child {
    flex-basis: 100%;
  }

  #sousuo .instyle {
    flex: 1 1 120px;
    width: auto;
    max-width: 100%;
    height: 40px;
  }

  #main #sousuo .suosouspan a {
    min-height: 40px;
  }

  #pic #carousel ul {
    grid-auto-flow: column;
    grid-auto-columns: min(62%, 200px);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  #pic #carousel li {
    scroll-snap-align: start;
  }

  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
  }

  .fixed-bottom {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid #ab8249;
    background: var(--gx-nav);
    font-size: 13px;
    text-align: center;
  }

  .fixed-bottom ul {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .fixed-bottom li {
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid #927044;
  }

  .fixed-bottom li:last-child {
    border-right: 0;
  }

  .fixed-bottom li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
    min-height: 56px;
    padding: 5px;
    color: white;
    text-decoration: none;
  }

  .fixed-bottom li p {
    margin: 0;
  }

  .fixed-bottom li img {
    width: 17px;
    height: 17px;
    margin: 0;
    object-fit: contain;
  }
}
