* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Nunito, Helvetica, Arial, "Microsoft Yahei", 微软雅黑, STXihei,
    华文细黑, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  font-size: 62.5%;
}

h1,
h2,
h3,
.overlay-de,
.overlay-title {
  font-family: Nunito, Helvetica, Arial, "Microsoft Yahei", 微软雅黑, STXihei,
    华文细黑, sans-serif;
}

.container {
  max-width: 100%;
  min-width: auto;
  margin: 0 auto;
}

main {
  max-width: 95%;
  min-width: auto;
  margin: 0 auto;
}

/* 头部样式 */
header {
  background-color: white;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-height: 10rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4361ee;
}

.banner {
  position: relative;
  margin: 2.4rem 0 4.8rem;
}

.banner-img {
  width: 100%;
  max-height: 50vh;
  border-radius: 1rem;
  display: block;
  object-fit: cover;
}

.overlay {
  position: absolute;
  left: 10%;
  top: 20%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  color: #fff;
}

.overlay-de {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.overlay-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.intro {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 4rem;
  padding: 2.4rem 0 4.8rem;
}

.intro-image {
  flex: 1 1 42rem;
}
.intro-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}

.intro-content {
  flex: 1 1 42rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro-content h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #d80000;
  margin-bottom: 1.6rem;
}
.intro-content p {
  font-size: 1.5rem;
  color: #636363;
  margin-bottom: 0.8rem;
}

.gallery {
  padding: 2.4rem 0 4.8rem;
}
.gallery-grid {
  column-count: 3;
  column-gap: 1.6rem;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
  object-fit: cover;
  break-inside: avoid-column;
  margin-bottom: 1.6rem;
}
.gallery-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 2.4rem;
  color: #d80000;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #ccc;
  padding: 3.2rem 0 4rem;
  border-top: 0.1rem solid #eee;
}

.icp-info {
  font-size: 1rem;
  line-height: 1.6;
}
.icp-info a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.icp-info a:hover {
  color: #d80000;
  text-decoration: underline;
}
.copyright {
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  main {
    max-width: 114rem;
  }
}
@media (max-width: 992px) {
  main {
    max-width: 96rem;
  }
  .overlay-de {
    font-size: 1.5rem;
  }
  .overlay-title {
    font-size: 2rem;
  }
  .intro-content h2 {
    font-size: 2rem;
  }
  .intro-content p {
    font-size: 1rem;
  }
  .gallery-title {
    font-size: 2rem;
  }
  .icp-info {
    font-size: 1rem;
  }
  .copyright {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  main {
    max-width: 72rem;
  }
  .overlay-de {
    font-size: 1rem;
  }
  .overlay-title {
    font-size: 1.4rem;
  }
  .intro-content h2 {
    font-size: 1.5rem;
  }
  .intro-content p {
    font-size: 1rem;
  }
  .gallery-grid {
    column-count: 2;
    column-gap: 1.6rem;
  }
  .gallery-title {
    font-size: 1.5rem;
  }
  .icp-info {
    font-size: 1rem;
  }
  .copyright {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  main {
    max-width: 54rem;
  }
  .overlay-de {
    font-size: 0.9rem;
  }
  .overlay-title {
    font-size: 1rem;
  }
  .intro-content h2 {
    font-size: 1rem;
  }
  .intro-content p {
    font-size: 0.5rem;
  }
  .gallery-grid {
    column-count: 1;
    column-gap: 1.6rem;
  }
  .gallery-title {
    font-size: 1.2rem;
  }
  .icp-info {
    font-size: 0.5rem;
  }
  .copyright {
    font-size: 0.5rem;
  }
}
