:root {
  --red: #9d1c24;
  --red-dark: #74141b;
  --ink: #2a2927;
  --muted: #77736d;
  --line: #e5dfd8;
  --paper: #fffdf9;
  --background: #f2f0ed;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-banner {
  position: relative;
  overflow: hidden;
  background: #302b28;
  box-shadow: 0 4px 16px rgba(49, 34, 24, .08);
}

.site-banner__slides {
  position: relative;
  height: 100vh;
  min-height: 620px;
}

.site-banner__slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .65s ease, visibility .65s ease;
}

.site-banner__slide.is-active {
  visibility: visible;
  opacity: 1;
}

.site-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.02);
}

.site-banner::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(24, 19, 17, .58), rgba(24, 19, 17, .06) 68%, rgba(24, 19, 17, .2));
  pointer-events: none;
  content: "";
}

.site-banner__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  background: rgba(32, 25, 22, .26);
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 200;
  line-height: 48px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, background-color .2s ease;
  cursor: pointer;
}

.site-banner:hover .site-banner__control {
  opacity: 1;
}

.site-banner__control:hover {
  background: rgba(102, 19, 25, .72);
}

.site-banner__control--prev {
  left: 20px;
}

.site-banner__control--next {
  right: 20px;
}

.site-banner__dots {
  position: absolute;
  right: max(20px, calc((100% - var(--content-width)) / 2));
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.site-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.site-banner__dot.is-active {
  width: 24px;
  border-radius: 6px;
  border-color: #f0c9b9;
  background: #f0c9b9;
}

.site-banner__title {
  position: absolute;
  left: max(36px, calc((100% - var(--content-width)) / 2));
  bottom: 9.5vh;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 18px 32px 17px;
  border-left: 6px solid #e7b8a4;
  color: #fff;
  background: rgba(102, 19, 25, .86);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.3;
}

.site-banner__title-link {
  display: inline-block;
  margin-left: 24px;
  padding-bottom: 3px;
  color: #f0c9b9;
  border-bottom: 2px solid rgba(240, 201, 185, .78);
  font-size: .56em;
  letter-spacing: .08em;
  line-height: 1.2;
  vertical-align: .18em;
}

.site-banner__title-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.home-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 44px 0;
}

.home-section__inner {
  width: min(var(--content-width), calc(100% - 96px));
  margin: 0 auto;
}

.section-title {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--red-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
}

.section-title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--red);
  content: "";
}

.notice-list li {
  border-bottom: 1px solid rgba(229, 223, 216, .7);
}

.notice-list a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  color: #4c4843;
  font-size: 20px;
  line-height: 1.65;
}

.notice-list a:hover {
  border-left-color: var(--red);
  color: var(--red-dark);
  background: rgba(157, 28, 36, .045);
}

.notice-list strong {
  margin-right: 8px;
  color: #8a000b;
  font-weight: 400;
}

.support-list {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.support-list .section-title {
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  font-size: 20px;
}

.support-list .section-title::after {
  display: none;
}

.support-list__schools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  width: min(860px, 100%);
  margin: 0 auto;
  padding-bottom: 24px;
  justify-items: center;
}

.support-list__schools a {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  transition: transform .2s ease, filter .2s ease;
}

.support-list__schools img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.support-list__schools a:hover {
  filter: drop-shadow(0 8px 12px rgba(49, 34, 24, .16));
  transform: translateY(-4px) scale(1.03);
}

.support-list p {
  margin: 0;
  color: #5a514a;
  font-size: 20px;
  line-height: 1.8;
}

.site-footer {
  padding: 18px 0;
  border-top: 4px solid var(--red-dark);
  color: #f5eee8;
  background: #171514;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  color: #f5eee8;
  font-size: 16px;
  text-align: center;
}

.site-footer a:hover {
  color: #f0c9b9;
}

.floating-qrcode {
  position: fixed;
  right: 28px;
  top: 50%;
  z-index: 10;
  width: 156px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(229, 223, 216, .9);
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 19, 16, .2);
  transform: translateY(-50%);
}

.floating-qrcode img {
  display: block;
  width: 100%;
  height: auto;
}

.floating-qrcode p {
  margin: 8px 0 0;
  color: #4c4843;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d49a82;
  outline-offset: 3px;
}

@media (max-width: 799px) {
  .site-banner__slides {
    height: 320px;
    min-height: 0;
  }

  .site-banner__title {
    left: 16px;
    bottom: 18px;
    max-width: calc(100% - 32px);
    padding: 9px 13px 8px;
    border-left-width: 4px;
    font-size: 21px;
    letter-spacing: .08em;
  }

  .site-banner__title-link {
    margin-left: 12px;
    padding-bottom: 2px;
    border-bottom-width: 1px;
    font-size: .68em;
    vertical-align: .12em;
  }

  .site-banner__control {
    width: 32px;
    height: 46px;
    font-size: 28px;
    line-height: 34px;
    opacity: .8;
  }

  .site-banner__control--prev {
    left: 8px;
  }

  .site-banner__control--next {
    right: 8px;
  }

  .site-banner__dots {
    right: 12px;
    bottom: 12px;
  }

  .home-section {
    min-height: auto;
    padding: 30px 0 34px;
  }

  .home-section__inner {
    width: calc(100% - 32px);
  }

  .section-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
    font-size: 22px;
  }

  .notice-list a {
    padding: 4px 8px;
    font-size: 17px;
    line-height: 1.7;
    word-break: break-all;
  }

  .support-list {
    margin-top: 22px;
    padding-top: 14px;
  }

  .support-list .section-title {
    font-size: 17px;
  }

  .support-list__schools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    padding-bottom: 12px;
  }

  .support-list__schools a {
    width: 112px;
    height: 112px;
  }

  .support-list__schools img {
    width: 106px;
    height: 106px;
  }

  .support-list p {
    font-size: 17px;
  }

  .site-footer {
    padding: 16px 0;
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__inner span {
    display: block;
    line-height: 1.8;
  }

  .floating-qrcode {
    top: auto;
    right: 12px;
    bottom: 72px;
    width: 108px;
    padding: 7px;
    transform: none;
  }

  .floating-qrcode p {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .home-section__inner {
    width: calc(100% - 24px);
  }

  .section-title {
    font-size: 20px;
  }

  .notice-list a {
    font-size: 15px;
  }
}
