/* 全局重置 */
* {
  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;
}
/* 这里可以只保留xiandai页面特有的样式，导航、轮播图和版尾样式复用licheng.css */
body {
    margin: 0;
}

main.content {
    /* 可以根据需要添加内容区域的样式 */
    padding: 20px;
}

.inheritor-section {
    margin-bottom: 30px;
}

.inheritor-card {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.inheritor-card img {
    width: 300px;
    height: auto;
    padding-top: 40px;
    border-radius: 4px;
    margin-right: 20px;
}

.card-text h3 {
    font-size: 24px;
    color: #2056ae;
    margin-bottom: 10px;
}

.genres-section {
    margin-bottom: 30px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 90%;
    justify-content: center;
    align-content: center;
    margin: auto;
}

.genre-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.genre-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.genre-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2056ae;
}

.genre-card p {
    font-size: 14px;
    color: #666;
}

.container {
    width: 1200px;
    margin: 30px auto;
}

.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #2056ae;
    padding-top: 30px;
}

.video-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.video-item {
    width: 32%;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.video-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-item img {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    padding: 10px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 14px;
    color: #999;
}
.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;
  }
}
.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;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .box {
    width: 100%;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 14px;
    padding: 0 10px;
  }

  .poster {
    grid-template-columns: 1fr;
  }

  .timeline {
    writing-mode: horizontal-tb;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
  }

  .column.left,
  .column.right {
    text-align: center;
  }

  .item img {
    max-width: 80%;
  }
}