:root {
  --red: #c9151e;
  --red-dark: #8f0f17;
  --orange: #f36d21;
  --cream: #fff8ee;
  --line: #d4b2a8;
  --text: #333;
  --muted: #777;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "SimSun", "宋体", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  background:
    linear-gradient(180deg, #b70d16 0, #df3d24 88px, #f8ded4 88px, #f8ded4 100%);
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.page {
  width: min(1002px, 100%);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 28px rgba(80, 10, 10, .22);
}

.utility {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  background: linear-gradient(#e74723, #bf1017);
}

.utility a,
.footer-nav a {
  color: #fff;
}

.utility-links {
  white-space: nowrap;
}

.utility-links span,
.footer-nav span {
  margin: 0 6px;
}

.banner {
  height: 180px;
  background: #c0181e url("assets/old-banner.jpg") center / cover no-repeat;
}

.main-nav {
  background: linear-gradient(#ee391d, #be0e17);
  border-top: 1px solid #ffb199;
  border-bottom: 1px solid #8f0f17;
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  min-height: 34px;
  padding: 10px 4px 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .24);
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(#ff8a31, #d82017);
}

.sub-nav {
  min-height: 27px;
  padding: 6px 12px;
  color: #4b2b1b;
  font-size: 12px;
  background: linear-gradient(#fff7e8, #f4d5c0);
  border-bottom: 1px solid var(--line);
}

.sub-nav span {
  margin-right: 18px;
}

main {
  padding: 6px;
}

.top-grid {
  display: grid;
  grid-template-columns: 270px 1fr 230px;
  gap: 6px;
  align-items: start;
}

.section-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.panel + .panel {
  margin-top: 6px;
}

.panel h2 {
  position: relative;
  height: 31px;
  margin: 0;
  padding: 0 10px 0 32px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 31px;
  background: linear-gradient(#fffdf8, #f3e4d6);
  border-bottom: 1px solid var(--line);
}

.panel h2::before {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--orange);
  border: 2px solid #ffd2a4;
}

.compact-list,
.article-list,
.news-list {
  margin: 0;
  padding: 7px 9px;
  list-style: none;
}

.compact-list li,
.article-list li,
.news-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 24px;
  align-items: center;
  border-bottom: 1px dotted #ccb7ad;
}

.news-list li {
  grid-template-columns: 68px minmax(0, 1fr) 44px;
}

.news-list span {
  color: #9b1d17;
  font-size: 12px;
}

.compact-list a,
.article-list a,
.news-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

time {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.login-card form {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.login-card label {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}

.login-card input {
  min-width: 0;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid #c7a99d;
}

.login-card button {
  width: 86px;
  height: 28px;
  justify-self: end;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(#f37a2c, #c9141d);
  border: 1px solid #9d171d;
}

.login-card p {
  margin: 0;
  padding: 0 10px 10px;
  text-align: right;
}

.school-intro {
  margin: 0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.8;
}

.quick-stats {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}

.quick-stats span {
  padding: 6px;
  color: #67402f;
  font-size: 12px;
  background: var(--cream);
  border: 1px solid #eed0bd;
}

.quick-stats strong {
  display: block;
  color: var(--red);
  font-size: 13px;
}

.headline-area {
  min-height: 414px;
  border: 1px solid var(--line);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 33px;
  background: linear-gradient(#fff4df, #f4d3ba);
  border-bottom: 1px solid var(--line);
}

.tabs button {
  color: var(--red);
  font: 700 14px "SimSun", "宋体", sans-serif;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.tabs button.selected {
  color: #fff;
  background: linear-gradient(#ff8a31, #c9151e);
}

.feature-story {
  margin: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff7e8 0, #fff 58%);
  border: 1px solid #ead0bc;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
  background: var(--red);
}

.feature-story h1 {
  margin: 8px 0 6px;
  color: #94121a;
  font: 700 20px/1.35 "Microsoft YaHei", "SimSun", sans-serif;
  letter-spacing: 0;
}

.feature-story p {
  margin: 0;
  color: #5c5048;
  font-size: 13px;
  line-height: 1.8;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.photo-stack {
  display: grid;
  gap: 8px;
  padding: 9px;
}

.photo-stack div {
  min-height: 86px;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(rgba(107, 18, 20, .22), rgba(107, 18, 20, .82)),
    linear-gradient(135deg, #b61a21, #e98939);
  border: 1px solid #b83221;
}

.photo-stack span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
}

.photo-stack strong {
  font-size: 16px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.quick-links a,
.subject-grid a,
.links a {
  min-height: 30px;
  padding: 7px 6px;
  text-align: center;
  background: #fff8ee;
  border: 1px solid #e3c4b1;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}

.bottom-grid {
  grid-template-columns: 1fr 2fr;
}

.links div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.site-footer {
  color: #333;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-nav {
  min-height: 30px;
  color: #fff;
  line-height: 30px;
  background: linear-gradient(#db321f, #a90e16);
}

.site-footer p {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p:first-of-type {
  padding-top: 10px;
}

.site-footer p:last-child {
  padding-bottom: 12px;
}

@media (max-width: 900px) {
  .top-grid,
  .section-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .banner {
    height: 150px;
  }

  .main-nav ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .side-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .panel + .panel {
    margin-top: 0;
  }

  .subject-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    background: #f8ded4;
  }

  .utility {
    display: block;
    height: auto;
    padding: 5px 10px;
    line-height: 1.7;
  }

  .banner {
    height: 108px;
  }

  .nav-toggle {
    display: block;
    width: 100%;
    min-height: 36px;
    color: #fff;
    font-weight: 700;
    background: transparent;
    border: 0;
  }

  .main-nav ul {
    display: none;
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav.open ul {
    display: grid;
  }

  .sub-nav {
    overflow: auto;
    white-space: nowrap;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .tabs button {
    min-height: 34px;
  }

  .feature-story h1 {
    font-size: 17px;
  }

  .news-list li {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
  }

  .subject-grid,
  .links div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
