:root {
  --red: #d40012;
  --red-soft: #f2c7cc;
  --red-underline: #f48fa2;
  --ink: #181818;
  --muted: rgba(24, 24, 24, 0.62);
  --line: rgba(24, 24, 24, 0.14);
  --bg: #f7f6f3;
  --white: #fff;
  font-family: "Tsanger YunHei", "HYQiHei", "PingFang SC", "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Tsanger YunHei";
  font-weight: 300;
  src: url("./assets/fonts/tsanger-yunhei-w03.ttf") format("truetype");
}

@font-face {
  font-family: "Tsanger YunHei";
  font-weight: 400;
  src: url("./assets/fonts/tsanger-yunhei-w04.ttf") format("truetype");
}

@font-face {
  font-family: "Tsanger YunHei";
  font-weight: 600;
  src: url("./assets/fonts/tsanger-yunhei-w06.ttf") format("truetype");
}

@font-face {
  font-family: "HYQiHei";
  font-weight: 400;
  src: url("https://ss.moonshotacademy.cn/font/HYQiHei.400.44beb04281001b88.woff2") format("woff2");
}

@font-face {
  font-family: "HYQiHei";
  font-weight: 600;
  src: url("https://ss.moonshotacademy.cn/font/HYQiHei.600.dfa658ff795f0bb3.woff2") format("woff2");
}

@font-face {
  font-family: "HYQiHei";
  font-weight: 700;
  src: url("https://ss.moonshotacademy.cn/font/HYQiHei.700.ef445e12f39d2602.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

body.news-detail-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

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

button {
  font: inherit;
}

.topbar {
  height: 94px;
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr auto;
  align-items: stretch;
  background: var(--white);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 24px 0 34px;
  min-width: 0;
  overflow: visible;
}

.brand img {
  width: 520px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.mainnav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 128px;
}

.mainnav a,
.nav-dropdown > button {
  min-width: auto;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: rgba(24, 24, 24, 0.68);
  font-size: 17px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mainnav a::after,
.nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(50% + 15px);
  height: 3px;
  background: var(--red-underline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.mainnav a:hover,
.nav-dropdown:hover > button {
  color: var(--red);
}

.mainnav a:hover::after,
.nav-dropdown:hover > button::after,
.mainnav a.active::after {
  transform: scaleX(1);
}

.mainnav a.active {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
  display: flex;
}

.nav-dropdown > button {
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 12px;
  min-width: 148px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid var(--red);
  box-shadow: 0 18px 36px rgba(68, 0, 7, 0.16);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-menu a {
  min-width: 0;
  height: 42px;
  justify-content: start;
  padding: 0 12px;
  color: rgba(24, 24, 24, 0.72);
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  color: var(--red);
  background: #fff4f5;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-panel {
  position: fixed;
  top: 94px;
  right: 92px;
  width: min(430px, calc(100vw - 40px));
  padding: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 3px solid var(--red);
  border-top: 0;
  box-shadow: 0 18px 36px rgba(68, 0, 7, 0.16);
  z-index: 18;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-panel.open,
.search-panel:target {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-field {
  display: grid;
  grid-template-columns: 1fr 84px;
  background: #fff7f8;
}

.search-field input,
.search-field button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-field input {
  width: 100%;
  padding: 0 14px;
  outline: none;
}

.search-field input::placeholder {
  color: rgba(24, 24, 24, 0.45);
}

.search-field button {
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tools {
  display: flex;
  align-self: stretch;
  border-left: 4px solid var(--red);
}

.tools button,
.tools a {
  width: 86px;
  border: 0;
  border-right: 4px solid var(--red);
  background: var(--white);
  color: var(--red);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.tools button:last-child,
.tools a:last-child {
  border-right: 0;
}

.tools button:hover,
.tools a:hover {
  background: #fff4f5;
}

.tools svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.tools .login {
  display: grid;
  place-items: center;
  width: 92px;
  font-size: 18px;
  font-weight: 600;
}

.hero-carousel {
  --drag-offset: 0px;
  height: calc(100vh - 94px);
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: #d9dde0;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-carousel.is-dragging {
  cursor: grabbing;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(55, 0, 8, 0.66), rgba(55, 0, 8, 0.1) 42%, transparent),
    linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent 46%);
  z-index: 2;
  pointer-events: none;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 4s ease;
}

.slide-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel.is-dragging .slide-image.active {
  transform: translateX(var(--drag-offset)) scale(1.015);
  transition: none;
}

.hero-copy {
  position: absolute;
  left: clamp(36px, 7.8vw, 128px);
  bottom: clamp(38px, 7vw, 86px);
  width: min(1060px, 78vw);
  color: #fff;
  z-index: 3;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  margin: 8px 0 0;
  max-width: 880px;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26);
}

.slide-count {
  position: absolute;
  right: clamp(34px, 7vw, 116px);
  bottom: clamp(42px, 7vw, 82px);
  top: auto;
  transform: none;
  display: flex;
  gap: 14px;
  z-index: 4;
}

.slide-count button {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.slide-count button.active {
  border-color: #fff;
  background: #fff;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 7vw, 112px) clamp(24px, 6vw, 96px) clamp(86px, 9vw, 140px);
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 72px 72px;
}

.about-section::after {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 128px);
  bottom: 60px;
  width: 260px;
  height: 260px;
  border: 3px solid rgba(212, 0, 18, 0.18);
  transform: rotate(-8deg);
  pointer-events: none;
}

.about-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
}

.about-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 86px);
}

.section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
}

.about-title-wrap {
  position: relative;
  max-width: 460px;
  padding-top: 20px;
  border-top: 8px solid var(--red);
}

.about-heading h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
  max-width: 460px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(34px, 5vw, 70px);
  max-width: 420px;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: rgba(212, 0, 18, 0.86);
  background: rgba(255, 241, 244, 0.92);
  border: 2px solid rgba(244, 143, 162, 0.7);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-1deg);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.about-tags span:nth-child(2n) {
  transform: translateY(8px) rotate(1deg);
}

.about-tags span:hover {
  transform: translateY(-4px) rotate(0deg);
  background: #fff;
  border-color: var(--red);
}

.intro-block {
  margin: 0;
  max-width: 820px;
  padding-top: clamp(18px, 3vw, 42px);
}

.intro-block p {
  margin: 0;
  color: rgba(24, 24, 24, 0.68);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 2;
  font-weight: 400;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: clamp(42px, 6vw, 84px);
}

.principle-card {
  position: relative;
  min-height: 280px;
  padding: clamp(26px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid var(--red);
  box-shadow: 0 18px 0 rgba(244, 143, 162, 0.3);
  will-change: transform;
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.34s ease, background 0.34s ease, border-color 0.34s ease, filter 0.34s ease;
}

.principle-card:hover {
  box-shadow: 0 30px 0 rgba(244, 143, 162, 0.34), 0 26px 70px rgba(74, 0, 8, 0.13);
  background: #fff;
  border-color: #f00019;
  filter: saturate(1.04);
}

.mission-card {
  --settle-y: 34px;
}

.mission-card:hover {
  box-shadow: 0 30px 0 rgba(244, 143, 162, 0.34), 0 26px 70px rgba(74, 0, 8, 0.13);
}

.value-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) 1fr;
  gap: clamp(34px, 5vw, 78px);
  min-height: 330px;
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 18px 0 rgba(24, 24, 24, 0.1);
}

.value-card:hover {
  background: #c80011;
  box-shadow: 0 26px 0 rgba(24, 24, 24, 0.1);
}

.card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(212, 0, 18, 0.22);
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.8;
  font-weight: 600;
}

.value-card .card-index {
  color: rgba(255, 255, 255, 0.18);
}

.card-en {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 20px;
  font-weight: 600;
}

.value-card .card-en {
  color: rgba(255, 255, 255, 0.72);
}

.principle-card h3 {
  margin: 0 0 26px;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  font-weight: 600;
}

.principle-card .principle-lead {
  margin: 0;
  max-width: 620px;
  color: rgba(24, 24, 24, 0.74);
  font-size: clamp(24px, 2.35vw, 36px);
  line-height: 1.34;
  font-weight: 400;
  letter-spacing: 0;
}

.principle-note {
  margin: clamp(18px, 2vw, 28px) 0 0;
  max-width: 620px;
  color: rgba(24, 24, 24, 0.58);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
  font-weight: 500;
}

.value-card .principle-note,
.value-card p {
  color: rgba(255, 255, 255, 0.82);
}

.value-note {
  max-width: 260px;
}

.value-copy {
  align-self: start;
}

.value-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  padding: clamp(17px, 2vw, 26px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  font-size: clamp(19px, 2vw, 31px);
  line-height: 1.38;
  font-weight: 600;
}

.value-list li::before {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.38;
  font-weight: 600;
}

.value-list li:nth-child(1)::before {
  content: "I";
}

.value-list li:nth-child(2)::before {
  content: "II";
}

.value-list li:nth-child(3)::before {
  content: "III";
}

.value-list li:nth-child(4)::before {
  content: "IV";
}

.reveal-on-scroll {
  --reveal-y: 34px;
  --settle-y: 0px;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(var(--settle-y));
}

.about-section:target .reveal-on-scroll {
  opacity: 1;
  transform: translateY(var(--settle-y));
}

.principle-card.reveal-on-scroll {
  transform: translateY(72px) scale(0.96) rotate(-1.4deg);
}

.principle-card.reveal-on-scroll:nth-child(2) {
  transform: translateY(86px) scale(0.96) rotate(1.2deg);
}

.principle-card.reveal-on-scroll:nth-child(3) {
  transform: translateY(96px) scale(0.97);
}

.principle-card.reveal-on-scroll.is-visible,
.about-section:target .principle-card.reveal-on-scroll {
  transform: translateY(var(--settle-y)) scale(1) rotate(0deg);
}

.principle-card.reveal-on-scroll.is-visible:hover,
.about-section:target .principle-card.reveal-on-scroll:hover {
  transform: translateY(calc(var(--settle-y) - 16px)) scale(1.018) rotate(-0.7deg);
}

.mission-card.reveal-on-scroll.is-visible:hover,
.about-section:target .mission-card.reveal-on-scroll:hover {
  transform: translateY(calc(var(--settle-y) - 16px)) scale(1.018) rotate(0.7deg);
}

.value-card.reveal-on-scroll.is-visible:hover,
.about-section:target .value-card.reveal-on-scroll:hover {
  transform: translateY(-18px) scale(1.01);
}

.principles-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.12s;
}

.principles-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.24s;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border-top: 5px solid var(--red);
}

.footer-marquee {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: rgba(212, 0, 18, 0.045);
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.8;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(62px, 7vw, 104px) clamp(24px, 5vw, 72px) 28px;
}

.footer-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(34px, 5vw, 64px);
  border-bottom: 2px solid rgba(212, 0, 18, 0.16);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  align-items: center;
}

.footer-school-logo {
  width: clamp(260px, 28vw, 410px);
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.footer-alliance-logo {
  width: clamp(170px, 18vw, 260px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.1fr) minmax(190px, 0.55fr);
  gap: clamp(34px, 6vw, 90px);
  padding: clamp(36px, 5vw, 68px) 0 clamp(44px, 6vw, 76px);
}

.footer-contact h2,
.footer-linkboard h2,
.footer-wechat h2 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
}

.footer-contact dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.footer-contact dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: baseline;
}

.footer-contact dt {
  color: rgba(212, 0, 18, 0.82);
  font-size: 15px;
  font-weight: 600;
}

.footer-contact dd {
  margin: 0;
  color: rgba(24, 24, 24, 0.68);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.footer-linkboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.footer-linkboard div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-linkboard a {
  width: fit-content;
  color: rgba(24, 24, 24, 0.66);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-linkboard a:hover {
  color: var(--red);
  transform: translateX(6px);
}

.footer-wechat {
  display: grid;
  justify-items: start;
  align-content: start;
}

.footer-wechat p {
  margin: 12px 0 0;
  color: rgba(24, 24, 24, 0.46);
  font-size: 14px;
}

.qr-placeholder {
  width: 132px;
  height: 132px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 3px solid var(--red);
}

.qr-placeholder span {
  background: var(--red);
}

.qr-placeholder span:nth-child(2n),
.qr-placeholder span:nth-child(5n),
.qr-placeholder span:nth-child(7n) {
  background: transparent;
}

.friend-link-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 3px solid var(--red);
  color: var(--red);
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.friend-link-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 0 rgba(244, 143, 162, 0.34);
}

.footer-building {
  position: relative;
  height: clamp(92px, 12vw, 150px);
  margin-top: -18px;
  opacity: 0.2;
  overflow: hidden;
}

.footer-building svg {
  width: 100%;
  height: 100%;
}

.footer-building path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(212, 0, 18, 0.16);
  color: rgba(24, 24, 24, 0.5);
  font-size: 14px;
}

.simple-page {
  min-height: calc(100vh - 94px);
  padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 110px);
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 72px 72px;
}

.simple-page section {
  max-width: 980px;
  margin: 0 auto;
}

.simple-page h1 {
  margin: 8px 0 42px;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1;
  font-weight: 600;
}

.simple-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.simple-link-grid a {
  position: relative;
  display: grid;
  grid-template-rows: minmax(72px, auto) auto;
  gap: 18px;
  min-height: 120px;
  align-items: stretch;
  padding: 22px;
  border: 4px solid var(--red);
  color: var(--red);
  background: #fff7f8;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.simple-link-grid a::after {
  content: "↗";
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(212, 0, 18, 0.42);
  font-size: 28px;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

.simple-link-grid a:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 0 rgba(244, 143, 162, 0.3);
}

.simple-link-grid a:hover::after {
  color: var(--red);
  transform: translate(4px, -4px);
}

.not-found-page p {
  max-width: 620px;
  margin: -18px 0 0;
  color: rgba(24, 24, 24, 0.68);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.75;
  font-weight: 600;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.not-found-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 3px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 0 22px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.not-found-actions a + a {
  background: #fff;
  color: var(--red);
}

.link-logo-box {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
}

.link-logo-box img {
  display: block;
  max-width: 190px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.link-card-copy {
  display: grid;
  gap: 7px;
  padding-right: 34px;
}

.link-card-copy strong {
  color: var(--red);
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.15;
  font-weight: 700;
}

.link-card-copy small {
  color: rgba(24, 24, 24, 0.5);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.link-logo-box--placeholder span {
  color: rgba(212, 0, 18, 0.72);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.simple-empty {
  grid-column: 1 / -1;
  padding: 32px 0;
  color: rgba(24, 24, 24, 0.52);
  font-size: 18px;
  font-weight: 800;
}

.news-page {
  min-height: calc(100vh - 94px);
  padding: clamp(70px, 7vw, 116px) clamp(24px, 7vw, 112px) clamp(86px, 8vw, 128px);
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 72px 72px;
}

.news-hero,
.news-board {
  max-width: 1360px;
  margin: 0 auto;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(280px, 0.3fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 66px);
  padding-top: 22px;
  border-top: 8px solid var(--red);
}

.news-hero h1 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(70px, 8vw, 122px);
  line-height: 0.96;
  font-weight: 700;
}

.news-hero p {
  margin: 0 0 12px;
  color: rgba(24, 24, 24, 0.62);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.72;
  font-weight: 400;
}

.news-board {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.news-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--red);
}

.news-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-filter-panel button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 2px solid rgba(212, 0, 18, 0.5);
  background: #fff;
  color: rgba(24, 24, 24, 0.64);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.news-filter-panel button:hover,
.news-filter-panel button.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.news-search input {
  width: min(310px, 28vw);
  height: 42px;
  border: 2px solid rgba(212, 0, 18, 0.5);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px) 86px clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(212, 0, 18, 0.2);
  cursor: pointer;
  outline: none;
  transition: background 0.24s ease, padding-left 0.24s ease, padding-right 0.24s ease, transform 0.24s ease;
}

.news-card:hover,
.news-card:focus-visible {
  padding-left: 20px;
  padding-right: 106px;
  background: #fff;
  transform: translateX(4px);
}

.news-card--media {
  grid-template-columns: minmax(260px, 0.42fr) 116px minmax(0, 1fr);
}

.news-enter-arrow {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: 0 14px 34px rgba(212, 0, 18, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: translate(18px, -50%) scale(0.86);
  transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.news-enter-arrow svg {
  width: 26px;
  height: 26px;
}

.news-enter-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-card:hover .news-enter-arrow,
.news-card:focus-visible .news-enter-arrow,
.news-enter-arrow:focus-visible {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.news-enter-arrow:hover,
.news-enter-arrow:focus-visible {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 36px rgba(212, 0, 18, 0.2);
  outline: none;
}

.news-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 4px solid var(--red);
  background: #fff7f8;
}

.news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.04);
}

.news-date {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: start;
  color: var(--red);
}

.news-date strong {
  font-size: clamp(54px, 5.2vw, 82px);
  line-height: 0.86;
  font-weight: 700;
}

.news-date span {
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.news-date small {
  color: rgba(24, 24, 24, 0.42);
  font-size: 14px;
  font-weight: 700;
}

.news-type {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.news-copy h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.22;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 48px);
}

.news-copy p {
  margin: 14px 0 0;
  color: rgba(24, 24, 24, 0.62);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.7;
}

.news-detail {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 64px);
  pointer-events: none;
}

.news-detail__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.03) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.03) 0 1px, transparent 1px 100%),
    rgba(255, 255, 255, 0.86);
  background-size: 72px 72px;
  opacity: 0;
  backdrop-filter: blur(0);
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

.news-detail__panel {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(980px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(32px, 5vw, 70px);
  border: 5px solid var(--red);
  background: #fff;
  box-shadow: 16px 18px 0 rgba(212, 0, 18, 0.1);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-detail__panel:focus {
  outline: none;
}

.news-detail__close {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-detail__close:hover,
.news-detail__close:focus-visible {
  background: var(--red);
  color: #fff;
  transform: rotate(6deg);
  outline: none;
}

.news-detail__close svg {
  width: 22px;
  height: 22px;
}

.news-detail__close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-right: 58px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.news-detail__type {
  padding: 8px 13px;
  background: #fff0f2;
}

.news-detail__date {
  color: rgba(24, 24, 24, 0.46);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-detail h2 {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.05;
  font-weight: 800;
}

.news-detail__lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(24, 24, 24, 0.62);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.68;
  font-weight: 600;
}

.news-detail__figure {
  margin: clamp(28px, 4vw, 44px) 0 0;
  border: 4px solid var(--red);
  background: #fff6f7;
}

.news-detail__figure[hidden] {
  display: none;
}

.news-detail__figure img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.news-detail__body {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-top: clamp(28px, 4vw, 44px);
}

.news-detail__body p {
  margin: 0;
  color: rgba(24, 24, 24, 0.72);
  font-size: clamp(17px, 1.28vw, 21px);
  line-height: 1.86;
  font-weight: 500;
}

.news-flight {
  position: fixed;
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  pointer-events: none;
}

.news-detail.is-flying .news-flight {
  opacity: 1;
  animation: news-flight 0.46s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-detail.is-open {
  pointer-events: auto;
}

.news-detail.is-open .news-detail__backdrop {
  opacity: 1;
  backdrop-filter: blur(8px);
}

.news-detail.is-open .news-detail__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-detail.is-ready .news-detail__panel {
  transition-duration: 0.22s;
}

@keyframes news-flight {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.35);
  }
  64% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(42);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(48);
  }
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.news-pagination a {
  display: grid;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  border: 3px solid var(--red);
  color: var(--red);
  background: #fff;
  font-weight: 700;
}

.news-pagination a.active,
.news-pagination a:hover {
  background: var(--red);
  color: #fff;
}

.news-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-search button {
  height: 42px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.news-result-meta {
  color: rgba(24, 24, 24, 0.54);
  font-size: 15px;
  font-weight: 800;
}

.news-list--official {
  border-top: 4px solid var(--red);
}

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 58px;
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  padding: clamp(26px, 3vw, 42px) 0;
  border-bottom: 1px solid rgba(212, 0, 18, 0.2);
}

.news-row--cover {
  grid-template-columns: minmax(220px, 0.32fr) 116px minmax(0, 1fr) 58px;
}

.news-row__cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid var(--red);
  background: #fff7f8;
}

.news-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.news-row:hover .news-row__cover img {
  transform: scale(1.035);
}

.news-row__date {
  display: grid;
  gap: 5px;
  color: var(--red);
}

.news-row__date strong {
  font-size: clamp(48px, 4vw, 72px);
  line-height: 0.9;
}

.news-row__date span {
  font-size: 18px;
  font-weight: 900;
}

.news-row__date small {
  color: rgba(24, 24, 24, 0.42);
  font-weight: 800;
}

.news-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
  color: rgba(212, 0, 18, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.news-row__body h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.24;
  font-weight: 800;
}

.news-row__body p {
  margin: 12px 0 0;
  color: rgba(24, 24, 24, 0.62);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.72;
}

.news-row__arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.news-row__arrow:hover {
  transform: translateX(5px);
  background: var(--red);
  color: #fff;
}

.news-row__arrow svg {
  width: 24px;
  height: 24px;
}

.news-row__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-empty {
  padding: 48px 0;
  color: rgba(24, 24, 24, 0.54);
  font-size: 20px;
  font-weight: 800;
}

.news-pagination button {
  display: grid;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  border: 3px solid var(--red);
  color: var(--red);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.news-pagination button.active,
.news-pagination button:hover {
  background: var(--red);
  color: #fff;
}

.article-page {
  min-height: calc(100vh - 94px);
  padding: clamp(58px, 6vw, 96px) clamp(24px, 7vw, 112px) clamp(56px, 6vw, 90px);
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 72px 72px;
}

.article-breadcrumb,
.article-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 5px solid var(--red);
  color: rgba(24, 24, 24, 0.52);
  font-weight: 800;
}

.article-shell {
  padding-top: clamp(34px, 5vw, 64px);
}

.article-head span {
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.article-head h1 {
  margin: 14px 0 22px;
  color: var(--ink);
  max-width: 1120px;
  font-size: clamp(38px, 4.15vw, 64px);
  line-height: 1.12;
  font-weight: 900;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(212, 0, 18, 0.22);
  border-bottom: 1px solid rgba(212, 0, 18, 0.22);
  color: rgba(24, 24, 24, 0.56);
  font-size: 15px;
  font-weight: 700;
}

.article-cover {
  margin: clamp(28px, 4vw, 46px) 0;
  border: 4px solid var(--red);
}

.article-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  max-width: 1180px;
  margin: clamp(34px, 4vw, 54px) 0 0;
  color: rgba(24, 24, 24, 0.76);
  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.95;
}

.article-content p {
  margin: 0 0 1.15em;
}

.article-content h2 {
  margin: 1.6em 0 0.8em;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.25;
}

.article-content img {
  display: block;
  max-width: 100%;
  margin: 1.4em auto;
  border: 3px solid rgba(212, 0, 18, 0.18);
  object-fit: contain;
}

.article-content a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-table,
.article-content table {
  width: 100%;
  margin: 1.35em 0;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.92em;
  line-height: 1.55;
}

.article-table th,
.article-table td,
.article-content th,
.article-content td {
  border: 1px solid rgba(212, 0, 18, 0.2);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.article-table th,
.article-content th {
  color: var(--red);
  background: rgba(255, 247, 248, 0.88);
  font-weight: 900;
}

.article-attachments,
.article-actions,
.article-neighbor,
.article-status {
  max-width: 1180px;
  margin: clamp(26px, 4vw, 46px) 0 0;
}

.article-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 2px solid rgba(212, 0, 18, 0.24);
  border-bottom: 2px solid rgba(212, 0, 18, 0.12);
}

.article-attachments h2 {
  margin: 0 8px 0 0;
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.article-attachments a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 2px solid rgba(212, 0, 18, 0.22);
  background: rgba(255, 247, 248, 0.7);
  color: rgba(24, 24, 24, 0.72);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 900;
}

.article-attachments a::before {
  content: "附件";
  margin-right: 8px;
  color: var(--red);
  font-size: 13px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.article-actions button,
.article-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.article-actions button:hover,
.article-actions a:hover {
  background: var(--red);
  color: #fff;
}

.article-neighbor {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 3px solid var(--red);
}

.article-neighbor a {
  max-width: 760px;
  color: rgba(24, 24, 24, 0.68);
  font-weight: 800;
  line-height: 1.55;
}

.article-neighbor a:not(.disabled):hover {
  color: var(--red);
}

.article-neighbor .disabled {
  color: rgba(24, 24, 24, 0.34);
  pointer-events: none;
}

.admin-login-page,
.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.04) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 72px 72px;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 430px);
  min-height: calc(100vh - 74px);
  gap: clamp(32px, 10vw, 160px);
  align-items: center;
  padding: clamp(32px, 7vw, 96px);
}

.admin-login-brand img {
  width: min(520px, 92%);
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.admin-login-panel,
.admin-card {
  border: 4px solid var(--red);
  background: rgba(255, 247, 248, 0.9);
  box-shadow: 0 18px 0 rgba(244, 143, 162, 0.3);
}

.admin-login-panel {
  padding: clamp(26px, 3.4vw, 40px);
}

.admin-login-panel h1,
.admin-card h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 700;
}

.admin-login-form,
.admin-edit-grid {
  display: grid;
  gap: 18px;
}

.admin-login-form label,
.admin-edit-grid label {
  display: grid;
  gap: 9px;
  color: rgba(24, 24, 24, 0.62);
  font-size: 15px;
  font-weight: 700;
}

.admin-login-form input,
.admin-edit-grid input,
.admin-edit-grid select,
.admin-edit-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 3px solid rgba(212, 0, 18, 0.72);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.admin-edit-grid textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.external-captcha {
  min-height: 70px;
  display: grid;
  align-items: center;
  padding: 10px;
  border: 3px solid rgba(212, 0, 18, 0.45);
  background: #fff;
}

.login-message,
.admin-save-status {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.admin-primary-btn,
.wechat-login-btn,
.admin-toolbar button,
.admin-actions button,
.admin-row button {
  min-height: 48px;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-primary-btn,
.admin-toolbar .admin-primary-btn,
.admin-actions .admin-primary-btn {
  background: var(--red);
  color: #fff;
}

.admin-primary-btn:hover,
.wechat-login-btn:hover,
.admin-toolbar button:hover,
.admin-actions button:hover,
.admin-row button:hover,
.admin-data-row button:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(244, 143, 162, 0.34);
}

.wechat-login-btn {
  display: grid;
  place-items: center;
  min-height: 52px;
  text-align: center;
}

.admin-page {
  display: grid;
  grid-template-columns: 286px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 34px;
  padding: 28px 22px;
  background: var(--red);
  color: #fff;
}

.admin-logo img {
  width: 220px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-sidebar button,
.admin-back-home {
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
  padding: 0 16px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
}

.admin-back-home span {
  font-size: 18px;
}

.admin-sidebar button.active,
.admin-sidebar button:hover,
.admin-back-home:hover {
  background: #fff;
  color: var(--red);
}

.admin-main {
  padding: clamp(28px, 5vw, 72px);
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 42px;
  padding-bottom: 22px;
  border-bottom: 6px solid var(--red);
}

.admin-topline span {
  color: var(--red);
  font-weight: 700;
}

.admin-topline h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
}

.admin-user {
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(24, 24, 24, 0.62);
  font-weight: 700;
}

.admin-user a {
  color: var(--red);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 26px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat-grid article {
  border: 4px solid var(--red);
  background: #fff7f8;
  padding: 24px;
}

.admin-stat-grid span {
  color: var(--red);
  font-weight: 800;
}

.admin-stat-grid strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 64px;
  line-height: 0.92;
}

.admin-stat-grid p {
  margin: 0;
  color: rgba(24, 24, 24, 0.58);
  font-weight: 600;
}

.admin-card {
  padding: clamp(24px, 4vw, 42px);
}

.admin-card h3,
.admin-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.12;
  font-weight: 800;
}

.admin-card h3 {
  margin-bottom: 22px;
}

.admin-section-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 5px solid var(--red);
}

.admin-section-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.admin-activity {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-activity li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(212, 0, 18, 0.22);
  color: rgba(24, 24, 24, 0.72);
  font-weight: 700;
}

.admin-toolbar,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-table {
  display: grid;
  margin-top: 22px;
  border-top: 3px solid var(--red);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px 100px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 0, 18, 0.22);
  color: rgba(24, 24, 24, 0.72);
  font-weight: 700;
}

.admin-row--head {
  color: var(--red);
}

.admin-table--links .admin-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1fr) 110px 100px;
}

.admin-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-edit-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-edit-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(460px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.admin-news-layout {
  display: grid;
  grid-template-columns: minmax(600px, 0.92fr) minmax(620px, 1.08fr);
  gap: 20px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  border: 3px solid rgba(212, 0, 18, 0.34);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.admin-list-item span,
.admin-list-item em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.admin-list-item strong {
  min-width: 0;
  color: rgba(24, 24, 24, 0.76);
  font-size: 16px;
  line-height: 1.35;
}

.admin-list-item.active,
.admin-list-item:hover {
  border-color: var(--red);
  box-shadow: 8px 8px 0 rgba(212, 0, 18, 0.1);
}

.admin-toolbar--spread {
  display: grid;
  grid-template-columns: 130px 120px minmax(220px, 1fr);
  align-items: end;
  margin-bottom: 18px;
}

.admin-inline-field {
  display: grid;
  gap: 8px;
  color: rgba(24, 24, 24, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.admin-inline-field input,
.admin-inline-field select {
  height: 44px;
  border: 3px solid rgba(212, 0, 18, 0.54);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.admin-data-table {
  display: grid;
  border-top: 3px solid var(--red);
  overflow-x: hidden;
  overflow-y: hidden;
}

.admin-data-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 0, 18, 0.22);
  color: rgba(24, 24, 24, 0.68);
  font-weight: 700;
}

.admin-data-row--head {
  min-height: 46px;
  color: var(--red);
  font-size: 14px;
}

.admin-news-table .admin-data-row {
  grid-template-columns: minmax(170px, 1fr) 76px 58px 50px 42px;
  gap: 8px;
  min-width: 0;
}

.admin-link-table .admin-data-row {
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1fr) 82px 64px 70px;
  min-width: 650px;
}

.admin-account-table .admin-data-row {
  grid-template-columns: minmax(90px, 0.9fr) minmax(90px, 0.9fr) 92px 54px 42px;
  gap: 8px;
  min-width: 0;
}

.admin-data-row strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.35;
}

.admin-data-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-data-row button {
  min-height: 40px;
  border: 2px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 8px;
  font-weight: 800;
  cursor: pointer;
}

.admin-data-row.active {
  background: rgba(255, 241, 244, 0.85);
  box-shadow: inset 5px 0 0 var(--red);
  padding-left: 12px;
}

.rich-editor {
  display: grid;
  gap: 0;
  margin: 22px 0;
  border: 3px solid rgba(212, 0, 18, 0.72);
  background: #fff;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 3px solid rgba(212, 0, 18, 0.22);
  background: #fff7f8;
}

.rich-toolbar button,
.rich-toolbar select,
.rich-toolbar input {
  min-height: 38px;
  border: 2px solid rgba(212, 0, 18, 0.48);
  background: #fff;
  color: var(--red);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.rich-toolbar label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(24, 24, 24, 0.54);
  font-size: 13px;
  font-weight: 800;
}

.rich-file-button,
.admin-upload-line,
.attachment-upload {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(212, 0, 18, 0.48);
  background: #fff;
  color: var(--red);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rich-file-button:hover,
.admin-upload-line:hover,
.attachment-upload:hover {
  background: var(--red);
  color: #fff;
}

.rich-file-button input,
.admin-upload-line input,
.attachment-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.rich-link-field input {
  width: 180px;
}

.rich-content {
  min-height: 270px;
  padding: 24px;
  color: rgba(24, 24, 24, 0.74);
  font-size: 18px;
  line-height: 1.85;
  outline: none;
}

.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
}

.rich-content table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

.rich-content th,
.rich-content td {
  border: 1px solid rgba(212, 0, 18, 0.28);
  padding: 10px 12px;
}

.rich-content th {
  color: var(--red);
  background: #fff7f8;
}

.rich-content:empty::before {
  content: "在这里编辑正文内容...";
  color: rgba(24, 24, 24, 0.34);
}

.attachment-manager {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px;
  border: 3px solid rgba(212, 0, 18, 0.28);
  background: #fff;
}

.attachment-manager strong {
  color: var(--ink);
  font-size: 20px;
}

.attachment-manager p {
  margin: 6px 0 0;
  color: rgba(24, 24, 24, 0.56);
  line-height: 1.6;
  font-weight: 600;
}

.attachment-fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 10px;
}

.attachment-fields input,
.attachment-fields button {
  min-height: 42px;
  border: 2px solid rgba(212, 0, 18, 0.54);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.attachment-fields button {
  color: var(--red);
  cursor: pointer;
}

#attachment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#attachment-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 0, 18, 0.18);
  color: rgba(24, 24, 24, 0.7);
  font-weight: 700;
}

#attachment-list button {
  min-height: 34px;
  border: 2px solid rgba(212, 0, 18, 0.54);
  background: #fff;
  color: var(--red);
  font-weight: 800;
}

.admin-mini-footer {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(22px, 6vw, 96px);
  border-top: 4px solid var(--red);
  color: rgba(24, 24, 24, 0.58);
  background: rgba(255, 247, 248, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.admin-mini-footer--inside {
  margin-top: 42px;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.admin-page--cms .admin-panel.active {
  display: block;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.admin-card--flat {
  border-width: 4px;
  box-shadow: 0 12px 0 rgba(244, 143, 162, 0.18);
}

.admin-note {
  margin: 0;
  color: rgba(24, 24, 24, 0.62);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
}

.admin-section-head > button {
  min-height: 50px;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-section-head > .admin-primary-btn,
.admin-section-head > button:hover {
  background: var(--red);
  color: #fff;
}

.admin-filterbar {
  display: grid;
  grid-template-columns: 150px 150px minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-filterbar label,
.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: rgba(24, 24, 24, 0.58);
  font-size: 14px;
  font-weight: 900;
}

.admin-filterbar input,
.admin-filterbar select,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 3px solid rgba(212, 0, 18, 0.7);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.admin-form-grid textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.admin-official-table {
  display: grid;
  border-top: 4px solid var(--red);
}

.admin-official-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 120px 120px 100px;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 0, 18, 0.2);
  color: rgba(24, 24, 24, 0.7);
  font-weight: 800;
}

.admin-official-row--head {
  min-height: 48px;
  color: var(--red);
  font-size: 14px;
}

.admin-official-row--news {
  grid-template-columns: minmax(260px, 1fr) 110px 118px 88px 110px 70px 116px;
}

.admin-official-row strong {
  color: var(--ink);
  line-height: 1.38;
}

.admin-row-actions {
  display: inline-flex;
  gap: 8px;
}

.admin-row-actions button,
.admin-row-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-row-actions button:hover,
.admin-row-actions a:hover {
  background: var(--red);
  color: #fff;
}

.admin-empty {
  padding: 34px 0;
  color: rgba(24, 24, 24, 0.5);
  font-weight: 800;
}

.admin-form-page {
  display: grid;
  gap: 24px;
}

.admin-form-section {
  border: 4px solid var(--red);
  background: rgba(255, 247, 248, 0.92);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 12px 0 rgba(244, 143, 162, 0.18);
}

.admin-form-section h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-media-picker {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.1fr) auto;
  gap: 16px;
  align-items: stretch;
}

.admin-media-picker label {
  align-content: start;
}

.admin-media-picker input[readonly] {
  color: rgba(24, 24, 24, 0.62);
  background: rgba(255, 255, 255, 0.86);
  cursor: default;
}

.admin-media-preview {
  position: relative;
  min-height: 154px;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(212, 0, 18, 0.38);
  background:
    linear-gradient(90deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(212, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    #fff;
  background-size: 36px 36px;
  overflow: hidden;
}

.admin-media-preview--logo {
  min-height: 118px;
}

.admin-media-preview span {
  color: rgba(24, 24, 24, 0.42);
  font-size: 16px;
  font-weight: 900;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.admin-media-preview--logo img {
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.admin-media-preview small {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  overflow: hidden;
  color: #fff;
  background: rgba(24, 24, 24, 0.62);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.admin-media-actions button {
  min-height: 46px;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-media-actions button:first-child,
.admin-media-actions button:hover {
  background: var(--red);
  color: #fff;
}

.admin-media-dialog[hidden] {
  display: none;
}

.admin-media-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(24, 24, 24, 0.42);
}

.admin-media-dialog__panel {
  width: min(1120px, 94vw);
  max-height: min(820px, 90vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 5px solid var(--red);
  background: #fff;
  box-shadow: 0 24px 0 rgba(212, 0, 18, 0.16);
  overflow: hidden;
}

.admin-media-dialog__head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding: 24px clamp(22px, 3vw, 36px);
  border-bottom: 4px solid var(--red);
  background: #fff7f8;
}

.admin-media-dialog__head span {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.admin-media-dialog__head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
}

.admin-media-dialog__head button,
.admin-media-url button {
  min-height: 44px;
  border: 3px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-media-dialog__head button:hover,
.admin-media-url button:hover {
  background: var(--red);
  color: #fff;
}

.admin-media-dialog__body {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.35fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 36px);
  overflow: auto;
}

.admin-media-upload,
.admin-media-url,
.admin-media-library {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-media-library {
  grid-row: span 2;
}

.admin-media-upload h3,
.admin-media-url h3,
.admin-media-library h3 {
  margin: 0;
  color: var(--red);
  font-size: 18px;
}

.admin-media-upload label {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(212, 0, 18, 0.48);
  background: #fff7f8;
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.admin-media-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-media-upload p {
  margin: 0;
  color: rgba(24, 24, 24, 0.54);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 700;
}

.admin-media-url div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-media-url input {
  min-height: 44px;
  border: 3px solid rgba(212, 0, 18, 0.52);
  padding: 0 14px;
  font: inherit;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-media-grid button {
  display: grid;
  gap: 8px;
  border: 3px solid rgba(212, 0, 18, 0.26);
  background: #fff;
  padding: 8px;
  color: rgba(24, 24, 24, 0.7);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-media-grid button:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 0 rgba(244, 143, 162, 0.22);
}

.admin-media-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff7f8;
}

.admin-media-grid span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 16px;
  border: 4px solid var(--red);
  background: #fff;
}

.rich-editor--page {
  margin: 0;
}

.rich-editor--page .rich-content {
  min-height: 360px;
  background: #fff;
}

/* Admin usability pass: keep the school red as an accent, but make the CMS calm and operable. */
.admin-page,
.admin-login-page {
  background: #f6f7f9;
  color: #1f2328;
}

.admin-page--cms {
  display: block;
}

.admin-page--cms .admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid #e7e9ee;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2328;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.admin-page--cms .admin-logo {
  display: inline-flex;
  align-items: center;
}

.admin-page--cms .admin-logo img {
  width: 224px;
  height: 50px;
  filter: none;
}

.admin-page--cms .admin-sidebar nav {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
}

.admin-page--cms .admin-sidebar button,
.admin-page--cms .admin-back-home {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6673;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-page--cms .admin-sidebar button.active,
.admin-page--cms .admin-sidebar button:hover {
  background: #fff1f2;
  color: var(--red);
}

.admin-page--cms .admin-back-home {
  border: 1px solid #e3e6eb;
  background: #fff;
  color: #374151;
}

.admin-page--cms .admin-back-home:hover {
  border-color: var(--red);
  background: #fff7f8;
  color: var(--red);
}

.admin-page--cms .admin-main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.admin-page--cms .admin-topline {
  margin-bottom: 26px;
  padding: 0;
  border: 0;
}

.admin-page--cms .admin-topline span,
.admin-page--cms .admin-section-head span {
  color: #8a93a3;
  font-size: 13px;
  font-weight: 700;
}

.admin-page--cms .admin-topline h1 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}

.admin-page--cms .admin-user {
  padding-top: 4px;
  font-size: 14px;
}

.admin-page--cms .admin-panel.active,
.admin-page--cms .admin-view.active {
  display: grid;
  gap: 18px;
}

.admin-page--cms .admin-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-page--cms .admin-stat-grid article,
.admin-page--cms .admin-card,
.admin-page--cms .admin-form-section {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.admin-page--cms .admin-stat-grid article {
  padding: 20px;
}

.admin-page--cms .admin-stat-grid span {
  color: #6b7280;
}

.admin-page--cms .admin-stat-grid strong {
  margin: 10px 0 4px;
  color: #111827;
  font-size: 44px;
}

.admin-page--cms .admin-section-head {
  gap: 16px;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-page--cms .admin-section-head h2,
.admin-page--cms .admin-card h3 {
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.25;
}

.admin-page--cms .admin-section-head > button,
.admin-page--cms .admin-primary-btn,
.admin-page--cms .admin-actions button,
.admin-page--cms .admin-row-actions button,
.admin-page--cms .admin-row-actions a,
.admin-page--cms .attachment-fields button,
.admin-page--cms #attachment-list button,
.admin-page--cms .rich-toolbar button,
.admin-page--cms .admin-media-actions button,
.admin-page--cms .admin-media-dialog__head button,
.admin-page--cms .admin-media-url button {
  min-height: 38px;
  border: 1px solid #d6dae1;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.admin-page--cms .admin-primary-btn,
.admin-page--cms .admin-section-head > .admin-primary-btn,
.admin-page--cms .admin-actions .admin-primary-btn {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.admin-page--cms .admin-section-head > button:hover,
.admin-page--cms .admin-actions button:hover,
.admin-page--cms .admin-row-actions button:hover,
.admin-page--cms .admin-row-actions a:hover,
.admin-page--cms .attachment-fields button:hover,
.admin-page--cms #attachment-list button:hover,
.admin-page--cms .rich-toolbar button:hover,
.admin-page--cms .admin-media-actions button:hover,
.admin-page--cms .admin-media-actions button:first-child,
.admin-page--cms .admin-media-dialog__head button:hover,
.admin-page--cms .admin-media-url button:hover {
  border-color: var(--red);
  background: #fff1f2;
  color: var(--red);
}

.admin-page--cms .admin-card {
  padding: 20px;
}

.admin-page--cms .admin-card--flat {
  border-width: 1px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.admin-management-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-upload-card {
  position: sticky;
  top: 92px;
}

.admin-file-drop {
  min-height: 70px;
  display: grid;
  gap: 6px;
  place-items: center;
  border: 1px dashed #cfd5df;
  border-radius: 10px;
  background: #f9fafb;
  color: var(--red);
  cursor: pointer;
  text-align: center;
}

.admin-file-drop strong {
  color: var(--red);
  font-size: 15px;
}

.admin-file-drop span {
  color: #7b8494;
  font-size: 12px;
  font-weight: 600;
}

.admin-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.admin-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-asset-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.admin-asset-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 9px;
  background: #f3f4f6;
}

.admin-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-asset-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-asset-info strong,
.admin-asset-info span,
.admin-asset-info small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-asset-info strong {
  color: #1f2937;
  font-size: 15px;
}

.admin-asset-info span {
  color: #5f6673;
  font-size: 13px;
  font-weight: 700;
}

.admin-asset-info small {
  color: #8a93a3;
  font-size: 12px;
  font-weight: 600;
}

.admin-official-row--file {
  grid-template-columns: minmax(170px, 1.6fr) minmax(82px, 0.8fr) 64px 64px 92px minmax(210px, 1.1fr);
}

.admin-page--cms .admin-filterbar {
  grid-template-columns: 140px 140px minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-page--cms .admin-filterbar--compact {
  grid-template-columns: minmax(240px, 1fr) 140px;
}

.admin-page--cms .admin-filterbar label,
.admin-page--cms .admin-form-grid label {
  color: #596273;
  font-size: 13px;
  font-weight: 700;
}

.admin-page--cms .admin-filterbar input,
.admin-page--cms .admin-filterbar select,
.admin-page--cms .admin-form-grid input,
.admin-page--cms .admin-form-grid select,
.admin-page--cms .admin-form-grid textarea,
.admin-page--cms .admin-media-url input,
.admin-page--cms .rich-toolbar select,
.admin-page--cms .rich-toolbar input,
.admin-page--cms .attachment-fields input {
  min-height: 42px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}

.admin-page--cms .admin-filterbar input:focus,
.admin-page--cms .admin-filterbar select:focus,
.admin-page--cms .admin-form-grid input:focus,
.admin-page--cms .admin-form-grid select:focus,
.admin-page--cms .admin-form-grid textarea:focus,
.admin-page--cms .admin-media-url input:focus,
.admin-page--cms .rich-toolbar input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 0, 18, 0.08);
}

.admin-page--cms .admin-official-table {
  border-top: 1px solid #e5e7eb;
}

.admin-page--cms .admin-official-row {
  min-height: 58px;
  border-bottom: 1px solid #edf0f4;
  color: #596273;
  font-weight: 600;
}

.admin-page--cms .admin-official-row--head {
  min-height: 42px;
  color: #7b8494;
  background: #f9fafb;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 13px;
}

.admin-page--cms .admin-official-row strong {
  color: #1f2937;
  font-weight: 750;
}

.admin-page--cms .admin-row-actions {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.admin-page--cms .admin-form-page {
  gap: 18px;
}

.admin-page--cms .admin-form-section {
  padding: 22px;
}

.admin-page--cms .admin-form-section h3 {
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.25;
}

.admin-page--cms .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-page--cms .admin-media-picker {
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1fr) auto;
  gap: 14px;
}

.admin-page--cms .admin-media-preview {
  min-height: 136px;
  border: 1px dashed #cfd5df;
  border-radius: 10px;
  background: #f9fafb;
}

.admin-page--cms .admin-media-preview small {
  border-radius: 6px;
  background: rgba(17, 24, 39, 0.64);
  font-weight: 600;
}

.admin-page--cms .rich-editor {
  margin: 0;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  overflow: hidden;
}

.admin-page--cms .rich-toolbar {
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.admin-page--cms .rich-toolbar label {
  color: #687181;
  font-weight: 600;
}

.admin-page--cms .rich-content {
  min-height: 360px;
  color: #374151;
  font-size: 17px;
  line-height: 1.8;
}

.admin-page--cms .attachment-upload {
  border: 1px dashed #cfd5df;
  border-radius: 8px;
  color: #374151;
}

.admin-page--cms .admin-actions--sticky {
  bottom: 0;
  gap: 10px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(12px);
}

.admin-page--cms .admin-media-dialog {
  background: rgba(17, 24, 39, 0.48);
}

.admin-page--cms .admin-media-dialog__panel {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.admin-page--cms .admin-media-dialog__head {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.admin-page--cms .admin-media-dialog__head h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.admin-page--cms .admin-media-upload label {
  border: 1px dashed #cfd5df;
  border-radius: 10px;
  background: #f9fafb;
  color: var(--red);
}

.admin-page--cms .admin-media-upload h3,
.admin-page--cms .admin-media-url h3,
.admin-page--cms .admin-media-library h3 {
  color: #1f2937;
}

.admin-page--cms .admin-media-grid button {
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}

.admin-page--cms .admin-media-grid button:hover {
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(212, 0, 18, 0.1);
}

@media print {
  .topbar,
  .bes-footer,
  .article-breadcrumb,
  .article-actions,
  .admin-sidebar,
  .admin-topline,
  .admin-actions {
    display: none !important;
  }

  .article-page,
  .admin-page,
  .admin-main {
    display: block;
    padding: 0;
    background: #fff;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .mainnav {
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    height: 58px;
    justify-content: flex-start;
    overflow-x: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding-left: 16px;
    padding-right: 16px;
  }

  .mainnav a,
  .nav-dropdown > button {
    min-width: auto;
  }

  .search-panel {
    top: 152px;
    right: 16px;
    width: calc(100vw - 32px);
  }

  .hero-carousel {
    height: calc(100vh - 152px);
    margin-top: 58px;
  }

  .about-heading {
    grid-template-columns: 1fr;
  }

  .intro-block {
    padding-top: 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .mission-card {
    --settle-y: 0px;
  }

  .mission-card:hover {
    transform: translateY(-8px);
  }

  .value-card {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .simple-link-grid {
    grid-template-columns: 1fr;
  }

  .admin-management-grid {
    grid-template-columns: 1fr;
  }

  .admin-upload-card {
    position: static;
  }

  .admin-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-official-row--file {
    grid-template-columns: minmax(170px, 1.5fr) minmax(80px, 0.8fr) 64px 64px 90px minmax(210px, 1fr);
  }
}

@media (min-width: 1181px) and (max-width: 1480px) {
  .topbar {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) auto;
  }

  .brand {
    padding-left: 24px;
    padding-right: 12px;
  }

  .brand img {
    width: 360px;
    max-width: 100%;
  }

  .mainnav {
    padding-left: 0;
    padding-right: 42px;
  }

  .mainnav a,
  .nav-dropdown > button {
    padding: 0 10px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 68px;
  }

  .brand {
    padding-left: 16px;
  }

  .brand img {
    width: 260px;
    height: 42px;
  }

  .tools button,
  .tools a {
    width: 54px;
  }

  .tools .login {
    width: 66px;
    font-size: 14px;
  }

  .mainnav {
    top: 68px;
  }

  .search-panel {
    top: 126px;
  }

  .hero-carousel {
    min-height: 540px;
    height: calc(100vh - 126px);
    margin-top: 58px;
  }

  .admin-page--cms .admin-filterbar,
  .admin-page--cms .admin-filterbar--compact,
  .admin-page--cms .admin-form-grid,
  .admin-page--cms .admin-media-picker {
    grid-template-columns: 1fr;
  }

  .admin-asset-grid {
    grid-template-columns: 1fr;
  }

  .admin-official-row--file {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 12px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 74px;
    width: auto;
  }

  .slide-count {
    right: 22px;
    bottom: 32px;
    gap: 9px;
  }

  .media-placeholder span {
    font-size: 16px;
    padding: 12px 18px;
  }

  .slide-count button {
    width: 13px;
    height: 13px;
  }

  .about-section {
    padding: 62px 18px 78px;
    background-size: 44px 44px;
  }

  .about-section::after {
    display: none;
  }

  .section-label {
    font-size: 15px;
  }

  .about-heading h2 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .about-title-wrap {
    padding-top: 16px;
    border-top-width: 6px;
  }

  .intro-block {
    padding-top: 8px;
  }

  .intro-block p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
  }

  .principle-card {
    min-height: 240px;
    padding: 24px;
    border-width: 3px;
  }

  .card-index {
    top: 20px;
    right: 18px;
  }

  .principle-card h3 {
    font-size: 38px;
  }

  .principle-card p {
    font-size: 24px;
  }

  .value-list li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    font-size: 18px;
  }

  .footer-shell {
    padding: 46px 22px 24px;
  }

  .footer-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-logos {
    gap: 14px;
  }

  .footer-school-logo {
    width: 240px;
    height: 52px;
  }

  .footer-alliance-logo {
    width: 180px;
  }

  .footer-main,
  .footer-linkboard {
    grid-template-columns: 1fr;
  }

  .footer-contact dl div {
    grid-template-columns: 44px 1fr;
  }

  .qr-placeholder {
    width: 132px;
    height: 132px;
  }

  .footer-bottom {
    padding-top: 18px;
  }

  .simple-page {
    min-height: calc(100vh - 126px);
    padding: 92px 22px 70px;
  }

  .link-logo-box img {
    max-width: 170px;
  }

  .news-page {
    padding: 92px 22px 78px;
    background-size: 44px 44px;
  }

  .news-hero,
  .news-board,
  .news-card,
  .news-card--media {
    grid-template-columns: 1fr;
  }

  .news-hero h1,
  .news-hero p {
    grid-column: auto;
  }

  .news-hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .news-controls {
    display: grid;
  }

  .news-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-filter-panel button {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    border: 2px solid rgba(212, 0, 18, 0.5);
  }

  .news-search input {
    width: 100%;
  }

  .news-card {
    gap: 18px;
    padding: 30px 0;
  }

  .news-card:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .news-media {
    aspect-ratio: 16 / 11;
  }

  .news-date {
    grid-template-columns: auto auto auto;
    align-items: baseline;
    gap: 10px;
  }

  .admin-login-shell,
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-login-shell {
    min-height: auto;
    padding: 28px 18px 60px;
  }

  .admin-login-brand h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .admin-page {
    display: block;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    gap: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    padding: 28px 18px 56px;
  }

  .admin-topline {
    display: grid;
  }

  .admin-stat-grid,
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-split,
  .admin-news-layout {
    grid-template-columns: 1fr;
  }

  .admin-toolbar--spread {
    grid-template-columns: 1fr;
  }

  .attachment-fields {
    grid-template-columns: 1fr;
  }

  .admin-row,
  .admin-table--links .admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .slide-image {
    transition: none;
  }
}

.bes-footer {
  position: relative;
  overflow: hidden;
  padding: 44px clamp(22px, 3vw, 38px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #d40012 0%, #b90010 56%, #96000d 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: #fff;
}

.bes-footer::before {
  content: "";
  position: absolute;
  inset: -22% -8% auto auto;
  width: 46vw;
  height: 46vw;
  min-width: 460px;
  min-height: 460px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  transform: rotate(-8deg);
}

.bes-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(34px, 4vw, 58px) clamp(34px, 5vw, 76px);
}

.bes-footer__top {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.78fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.bes-footer__identity {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.bes-footer__school-logo {
  width: clamp(320px, 28vw, 455px);
  height: 78px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.bes-footer__alliance-logo {
  width: clamp(210px, 18vw, 280px);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  opacity: 0.96;
}

.bes-footer__join-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bes-footer__join {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.bes-footer__join::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

.bes-footer__join:hover {
  transform: translateY(-4px);
  background: #fff;
  color: var(--red);
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.18);
}

.bes-footer__join-options {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  width: 190px;
  opacity: 0;
  clip-path: inset(-12px 100% -12px 0 round 999px);
  transform: translateX(-12px);
  transition: clip-path 0.32s ease, opacity 0.22s ease, transform 0.32s ease;
  pointer-events: none;
}

.bes-footer__join-options a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bes-footer__join-options a:hover {
  transform: translateY(-3px);
  background: #fff;
  color: var(--red);
}

.bes-footer__join-wrap.is-open .bes-footer__join-options {
  clip-path: inset(-12px 0 -12px 0 round 999px);
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.bes-footer__slogan {
  justify-self: end;
  max-width: 420px;
  text-align: right;
}

.bes-footer__slogan p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 700;
}

.bes-footer__slogan h2 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 78px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.bes-footer__slogan span {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.36;
  font-weight: 600;
}

.bes-footer__rule {
  height: 2px;
  margin: clamp(42px, 5vw, 70px) 0 32px;
  background: rgba(255, 255, 255, 0.78);
}

.bes-footer__body {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(430px, 0.9fr);
  gap: clamp(42px, 8vw, 132px);
  align-items: end;
}

.bes-footer__contact p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 600;
}

.bes-footer__marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}

.bes-platform {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bes-platform > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(0) invert(1);
  transition: inherit;
}

.bes-platform__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bes-platform:hover,
.bes-platform:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.bes-platform:hover > img,
.bes-platform:focus-visible > img {
  opacity: 1;
}

.bes-platform__popover {
  position: absolute;
  left: 50%;
  bottom: 56px;
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 140px;
  padding: 14px 12px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(48, 0, 5, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bes-platform__popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.bes-platform--wechat:hover .bes-platform__popover,
.bes-platform--wechat:focus-visible .bes-platform__popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bes-platform__qr {
  display: block;
  width: 108px;
  height: 108px;
  padding: 6px;
  border: 2px solid var(--red);
  background: #fff;
  object-fit: contain;
}

.bes-platform__popover small {
  color: rgba(24, 24, 24, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.bes-footer__links {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  text-align: right;
}

.bes-footer__links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  margin-bottom: 2px;
}

.bes-footer__links a,
.bes-footer__links p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.bes-footer__links a:hover {
  color: #fff;
}

.bes-footer__conac {
  display: inline-flex;
  width: 44px;
  height: 44px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bes-footer__conac img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bes-footer__conac:hover {
  opacity: 1;
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .bes-footer__top,
  .bes-footer__body {
    grid-template-columns: 1fr;
  }

  .bes-footer__slogan,
  .bes-footer__links {
    justify-self: start;
    text-align: left;
    justify-items: start;
  }

  .bes-footer__marks {
    justify-content: flex-start;
  }

  .bes-footer__links nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .bes-footer {
    padding: 24px 14px;
  }

  .bes-footer__inner {
    padding: 32px 22px;
  }

  .bes-footer__school-logo {
    width: 276px;
    height: 56px;
  }

  .bes-footer__alliance-logo {
    width: 180px;
  }

  .bes-footer__slogan h2 {
    font-size: clamp(36px, 12vw, 56px);
  }
}

@media (max-width: 760px) {
  .news-card,
  .news-card--media {
    padding-right: 58px;
  }

  .news-card:hover,
  .news-card:focus-visible {
    padding-left: 0;
    padding-right: 58px;
    transform: none;
  }

  .news-enter-arrow {
    width: 44px;
    height: 44px;
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  .news-enter-arrow svg {
    width: 22px;
    height: 22px;
  }

  .news-detail {
    padding: 16px;
  }

  .news-detail__panel {
    padding: 28px 22px;
    border-width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-flight {
    display: none;
  }

  .news-detail__backdrop,
  .news-detail__panel,
  .news-enter-arrow,
  .news-card {
    transition: none;
  }
}
