* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f5f5;
}

#backTop {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-color: white;
  line-height: 60px;
  text-align: center;
  box-shadow: 4px 4px 10px #c9c9c9;
  transition: .3s all;
  position: fixed;
  right: -100px;
  bottom: 220px
}

#backTop:hover {
  transform: translateY(-15px);
  transition: .3s all;
  cursor: pointer;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #f4f4f4;
  height: 60px;
  border-bottom: 1px solid #c4c4c4;
}

nav img {
  height: 40px;
  margin-right: 50px;
}

nav li {
  float: left;
  list-style: none;
  text-align: center;
}

a {
  text-decoration: none;
}

nav a {
  display: block;
  width: 150px;
  font-size: 18px;
  color: #000;
  line-height: 60px;
  transition: .3s all;
}


nav a:hover,
footer a:hover {
  color: brown;
  letter-spacing: 3px;
  transition: .3s all;
}

h1 {
  text-align: center;
  line-height: 80px;
  letter-spacing: 10px;
  color: rgb(0, 0, 0);
  font-size: 35px
}

.hotCity,
.hotJingdian {
  display: grid;
  width: 1200px;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 10px auto;
  text-align: center;
}

.hotCity h2 {
  letter-spacing: 10px;
}

.hotCity img {
  width: 100%;
  height: 85%;
  border-radius: 10px;
}

.hotJingdian img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.hotCity div {
  transition: .3s all;
  cursor: pointer;
}

.hotCity div:hover,
.food-part:hover,
.news div:hover {
  transform: translateY(-10px);
  transition: .3s all;
  box-shadow: 5px 5px 10px #cbcbcb;
  border-radius: 10px;
}

.hotJingdian div {
  position: relative;
}

.hotJingdian h2 {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  letter-spacing: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.275);
  font-family: '宋体';
  opacity: 0;
  transition: .3s all;
  border-radius: 10px;
}

.hotJingdian div:hover h2 {
  opacity: 1;
  transition: .3s all;
  cursor: pointer;
}

.index_jingdian {
  display: block;
  width: 200px;
  margin: 25px auto;
  border: 2px solid #474747;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  font-family: '宋体';
  color: black;
  letter-spacing: 3px;
  transition: .3s all;
}

.index_jingdian:hover {
  background-color: #000;
  color: white;
  transition: .3s all;
}

footer .foot {
  display: flex;
  justify-content: space-around;
  width: 40%;
  margin: 0 auto;
}

footer {
  width: 100%;
  background-color: #474747;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: #f5f5f5;
  line-height: 30px;
  padding-top: 20px;
  letter-spacing: 2px;
}

footer a {
  color: #f5f5f5;
}

.box {
  position: relative;
  top: 10px;
  height: 700px;
  width: 1200px;
  padding-bottom: 40px;
  margin: 0 auto;
}

.tab {
  position: absolute;
  width: 80%;
  color: #666;
  cursor: pointer;
}

.tab ul>li {
  width: 150px;
  margin-bottom: 20px;
  line-height: 38px;
  text-align: center;
  border-bottom: 2px solid #262626;
  font-family: "宋体";
  font-size: 18px;
  padding: 0px 10px;
  list-style: none;
}

.current {
  color: white;
  background-color: #2e2e2e;
}

.tabcontent {
  position: absolute;
  top: 20px;
  left: 200px;
}

.show {
  display: block;
}

.hidden {
  display: none;
}

.box img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}

.show div {
  display: flex;
  justify-content: space-around;
  letter-spacing: 1px;
  font-family: "宋体";
  line-height: 30px;
  align-items: start;
  margin-bottom: 40px;
  height: 200px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.show span {
  color: brown;
  font-size: 25px;
}

.show p {
  padding-left: 10px;
}

.food {
  width: 1200px;
  margin: 0 auto;
}

.food-part {
  position: relative;
  margin-bottom: 30px;
  transition: .3s all;
  overflow: hidden;
  height: 150px;
  cursor: pointer;
  background-color: white;
  border-radius: 10px;
}

.food-part img {
  width: 200px;
  height: 150px;
}

.food-part div {
  position: absolute;
  top: 15px;
  width: 82%;
  right: 8px;
  line-height: 30px;

}

.food-part h2 {
  font-family: '宋体';
  letter-spacing: 5px;
}

.wenhua .food-part {
  height: 200px;
}

.wenhua img {
  height: 200px;
}

.news div p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 8;
  /* 设置为想要的行数 */
  overflow: hidden;
  text-overflow: ellipsis;
  color: #323232;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.news {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.news img {
  width: 100%;
  height: 200px;
}

.news div {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.news h2 {
  font-family: '宋体';
  font-size: 18px;
  margin: 5px auto;
}

.news span {
  color: #666;
  line-height: 30px;
}

form {
  width: 300px;
  margin: 30px auto;
  background-color: white;
  border-radius: 10px;
  padding: 30px 200px;
  line-height: 30px;
  font-size: 18px;
  letter-spacing: 1px;

}

form input[type='text'] {
  width: 200px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #666;
}

textarea {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid #666;
}

form label {
  display: block;
}

button {
  width: 150px;
  height: 45px;
  border: 2px solid #2e2e2e;
  background-color: white;
  letter-spacing: 5px;
  font-size: 20px;
  border-radius: 10px;
  transition: .3s all;
}

button:hover {
  background-color: #2e2e2e;
  color: white;
  cursor: pointer;
  transition: .3s all;
}