:root {
  --lnut-blue: #162a87;
  --lnut-blue-dark: #0d1c63;
  --lnut-blue-mid: #034798;
  --lnut-blue-link: #004b96;
  --lnut-blue-soft: #f1f8fe;
  --lnut-blue-muted: #6784b3;
  --ink: #222222;
  --line: #d8e7f8;
  --paper: #ffffff;
  --page: #f6faff;
}


body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.campus-gallery {
  min-height: 100vh;
  padding: 72px 24px 88px;
  background:
    linear-gradient(180deg, rgba(22, 42, 135, 0.08), rgba(22, 42, 135, 0) 280px),
    var(--page);
}

.gallery-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-title {
  position: relative;
  padding: 0 0 34px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.section-title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 92px;
  height: 3px;
  content: "";
  background: var(--lnut-blue-mid);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lnut-blue-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-title h1 {
  margin: 0;
  color: var(--lnut-blue);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.12;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 50px;
}

.gallery-card {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 220ms ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.featured {
  grid-column: span 2;
}

.card-link {
  display: block;
  height: 100%;
}

.card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 0 20px;
  background: transparent;
  border-bottom: 1px solid var(--lnut-blue);
}

.card-head::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 160px;
  height: 4px;
  content: "";
  background: var(--lnut-blue);
}

.featured .card-head {
  min-height: 74px;
  padding-bottom: 24px;
}

.featured .card-head::after {
  width: 210px;
}

.card-head h2 {
  display: flex;
  align-items: baseline;
  min-width: 0;
  margin: 0;
  color: var(--lnut-blue-link);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.card-head span:first-child {
  margin-right: 16px;
  color: var(--lnut-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}

.featured .card-head h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.featured .card-head span:first-child {
  font-size: 44px;
}

.corner-mark {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 36px;
  margin-left: 18px;
  transition: transform 220ms ease;
}

.corner-mark::before,
.corner-mark::after {
  position: absolute;
  content: "";
  transition: transform 220ms ease, opacity 220ms ease, background 220ms ease;
}

.corner-mark::before {
  left: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  background: rgba(22, 42, 135, 0.12);
  border: 1px solid rgba(22, 42, 135, 0.22);
}

.corner-mark::after {
  top: 3px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: var(--lnut-blue);
}

.gallery-card:hover .corner-mark {
  transform: translateX(3px);
}

.gallery-card:hover .corner-mark::before {
  opacity: 0.9;
  transform: translate(-2px, 2px);
}

.gallery-card:hover .corner-mark::after {
  background: var(--lnut-blue-dark);
  transform: translate(2px, -2px);
}

.photo-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: calc(100% - 30px);
  margin: 26px 0 0 auto;
  overflow: hidden;
  background: #ddd;
  box-shadow: -16px 16px 0 var(--lnut-blue);
}

.featured .photo-wrap {
  aspect-ratio: 21 / 9;
  width: calc(100% - 40px);
  margin-top: 32px;
  box-shadow: -20px 20px 0 var(--lnut-blue);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card:hover .photo-wrap img {
  transform: scale(1.06);
}

@media (max-width: 860px) {
  .campus-gallery {
    padding: 46px 18px 64px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .featured {
    grid-column: auto;
  }

  .photo-wrap {
    aspect-ratio: 4 / 3;
  }

  .featured .photo-wrap {
    aspect-ratio: 16 / 9;
    width: calc(100% - 30px);
    box-shadow: -16px 16px 0 var(--lnut-blue);
  }
}

@media (max-width: 520px) {
  .section-title {
    margin-bottom: 26px;
    padding-bottom: 24px;
  }

  .card-head {
    min-height: 70px;
    padding: 0 18px;
  }

  .card-head h2 {
    font-size: 20px;
  }

  .card-head span:first-child {
    margin-right: 12px;
    font-size: 28px;
  }

  .corner-mark {
    width: 36px;
    height: 30px;
  }

  .corner-mark::before,
  .corner-mark::after {
    width: 17px;
    height: 17px;
  }
}