* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #333333;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  background: #c91f1f;
}

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

.page {
  width: 980px;
  margin: 0 auto;
  background: #ffffff;
}

.banner img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 38px;
  background: #000000;
}

.nav a {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  border-right: 1px solid #222222;
}

.nav a:hover {
  background: #333333;
}

main {
  padding: 12px 14px 0;
}

.block {
  margin-bottom: 16px;
}

.block h2 {
  margin: 0 0 10px;
  padding: 5px;
  color: #ffffff;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
  background: #d71920;
}

.intro {
  overflow: hidden;
}

.intro img {
  float: left;
  width: 220px;
  height: 160px;
  margin: 0 16px 8px 0;
  object-fit: cover;
}

.intro p,
.text-block p {
  margin: 0;
  text-indent: 2em;
}

.center-text {
  margin: 8px 0 12px;
  color: #666666;
  text-align: center;
  font-size: 18px;
}

.double-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.double-images img {
  display: block;
  width: 100%;
  height: 278px;
  object-fit: cover;
}

.line-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
  color: #777777;
  text-align: center;
}

.line-title::before,
.line-title::after {
  width: 90px;
  height: 1px;
  content: "";
  background: #aaaaaa;
}

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

.album img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.contact form {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px 10px;
  width: 520px;
  margin: 0 auto;
}

input,
textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #999999;
  font: inherit;
}

button {
  grid-column: 2;
  width: 80px;
  padding: 4px 0;
  border: 1px solid #555555;
  background: #eeeeee;
  cursor: pointer;
}

footer {
  margin-top: 22px;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  background: #000000;
}

@media (max-width: 980px) {
  .page {
    width: 100%;
  }

  .banner img {
    height: 300px;
  }

  .nav {
    grid-template-columns: 1fr;
    height: auto;
  }

  .nav a {
    min-height: 34px;
    border-bottom: 1px solid #222222;
  }

  .double-images,
  .album {
    grid-template-columns: 1fr;
  }

  .intro img {
    float: none;
    width: 100%;
    height: auto;
    margin-right: 0;
  }

  .contact form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  button {
    grid-column: 1;
  }
}
