/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background: #f5f5f5;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* 导航栏样式 */
header{
    width: 100%;
    height: 50px;
    background-color:#2056AE;
    position: fixed;
    z-index: 1000;
}
.zyou{display: flex;flex-direction: row;justify-content: space-between;width: 80%;margin: auto;}
.logo{width: 130px;height: 50px;}
.lo{width: 130px;height: 50px;}
.box{
    width: 40%;
    height: 50px;
    margin: auto;
}
ul,li{padding: 0;margin: 0;list-style: none;}
a{text-decoration: none;}
.nav{ 
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}  
.nav a{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
    height: 100%; 
    text-align: center;
    color: #F0F0E6;
    font-size: 18px;
    
}
.nav .item{
    width: 20%;
    height: 100%;
    position: relative;
}
.list{
    position: absolute;
    width: 100%;
    overflow: hidden;
    max-height: 0px;
    transition: .4s;
    border-radius: 0 0 8px 8px;
    background-color:  #3E7ADA;
}
.ej{height: 50px;}
.ej a{color:#F0F0E6 ;}
.ej a:hover{color: #D4AF37;}
.nav>.item:hover{
    background-color: #3E7ADA;
}
.nav>.item:hover>.list{
    max-height: 100px;
}
.ej:hover{
    background-color: #3E7ADA;
}

/* 轮播图样式 */
.datu {
  width: 100%;
  max-height: 780px;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 500%;
  animation: slide 15s infinite;
}

.slides img {
  width: 20%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-20%);
  }

  45% {
    transform: translateX(-20%);
  }

  50% {
    transform: translateX(-40%);
  }

  70% {
    transform: translateX(-40%);
  }

  75% {
    transform: translateX(-60%);
  }

  95% {
    transform: translateX(-60%);
  }

  100% {
    transform: translateX(-80%);
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%);
  display: flex;
}

.carousel-indicators div {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 5px;
  transition: background-color 0.5s;
}

.carousel-indicators div:nth-child(1) {
  animation: indicator 15s infinite;
}

.carousel-indicators div:nth-child(2) {
  animation: indicator 15s infinite 3s;
}

.carousel-indicators div:nth-child(3) {
  animation: indicator 15s infinite 7s;
}

.carousel-indicators div:nth-child(4) {
  animation: indicator 15s infinite 11s;
}

@keyframes indicator {
  0%,
  20% {
    background-color: #2056ae;
  }

  25%,
  100% {
    background-color: #fff;
  }
}

/* 中间四个格子的容器 */
.container {
  width: 80%;
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between; 
  margin: auto;
  padding-top: 20px;
}

/* 中间标题 */
.story-title {
  padding: 20px;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #2056ae;
  margin-bottom: 20px;
}

/* 卡片样式 */
.card {
  width: calc(48% - 10px); 
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px; 
}

.card-content {
  display: flex;
  align-items: center;
}

.card img {
  width: 40%; 
  height: auto;
  border-radius: 4px;
  margin-right: 15px;
}

.card-text {
  flex: 1;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.card button {
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.card button:hover {
  background-color: #0056b3;
}

/* 非遗传承人部分 */
.inheritors {
  text-align: center;
  padding: 20px;
}

.inheritors h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #2056ae;
}

.inheritor-item {
  display: inline-block;
  width: 220px;
  margin: 0 10px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.inheritor-item img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 10px;
}

.more-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #2056ae;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.more-btn:hover {
  background-color: #2056ae;
}

.fyccr{
    padding: 20px;
}
.kong{padding: 30px;}

/* 版尾样式 */
.banwei {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #fff;
  font-size: 15px;
  width: 100%;
  height: 100px;
  background-color: #2056ae;
}