body,
html {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background-color: #000;
}

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

/* 核心：太阳光效果（从右上角射出） */
.sun-light {
  position: fixed;
  top: 12vh;
  right: 12vw;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  /* 在遮罩层之上 */
  opacity: 0;
  /* 太阳光渐变：源头集中但边缘更晕染开 */
  background:
    radial-gradient(circle 220px at calc(100% - 40px) 40px,
      rgba(255, 255, 200, 0.92) 0%,
      rgba(255, 230, 150, 0.62) 22%,
      rgba(255, 210, 120, 0.32) 44%,
      rgba(255, 255, 255, 0) 65%),
    radial-gradient(circle 520px at calc(100% - 90px) 90px,
      rgba(255, 255, 200, 0.25) 0%,
      rgba(255, 255, 255, 0) 75%);

  /* 更柔和的晕染边缘 */
  filter: blur(20px);
  /* 显眼但进出平滑，不会有卡顿感 */
  animation: sunLightIn 3s ease-in-out forwards;
}

/* 光束来回自然过渡，不突兀（每 5% 更细腻） */
@keyframes sunLightIn {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0.1;
  }

  15% {
    opacity: 0.2;
  }

  20% {
    opacity: 0.3;
  }

  25% {
    opacity: 0.4;
  }

  30% {
    opacity: 0.5;
  }

  35% {
    opacity: 0.6;
  }

  40% {
    opacity: 0.7;
  }

  45% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
  }
}

/* 遮罩：配合光束点亮页面 */
.muban {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  pointer-events: none;
  z-index: 20;
  opacity: 1;
  transition: opacity 1s ease;
}

.muban.hidden {
  opacity: 0;
}

header {
  display: flex;
  align-items: center;
  padding: 10px 80px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  transition: background 0.4s ease;
}

header .logo {
  font-size: 1.2em;
  font-weight: bold;
}

header .logo img {
  height: 60px;
}

.banner {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.carousel .slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel .slide.active {
  opacity: 1;
}

.banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .4);
}

.banner .content {
  position: absolute;
  top: 3vh;
  left: 120px;
  max-width: 600px;
}

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

.banner .title {
  font-family: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  /* 优先马善政书法字体，兼容楷体 */
  font-size: 48px;
  color: #d4d1d1;
  line-height: 1.5;
  letter-spacing: 8px;
  /* 字间距更舒展 */
  text-align: center;
  margin-top: 35vh;
}

.banner .tags {
  margin-top: 15px;
}

.banner .tags span {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 3px;
  font-size: .9em;
}

.banner .bannerText {
  position: absolute;
  bottom: 12vh;
  right: 80px;
}

.banner .bannerText_cloumn {
  position: absolute;
  bottom: 12vh;
  right: 80px;
  width: 300px;
}

.thumbnails {
  width: 100%;
  display: flex;
  position: absolute;
  bottom: 20px;
  right: 50px;
  justify-content: flex-end;
}

.thumbnails img {
  width: 20;
  height: 120px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .3s;
}

.thumbnails img.active-thumb {
  opacity: 1;
}

.hot-shorts h2 {
  margin-top: 140px;
  margin-left: 80px;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 20px;
  padding: 20px 80px;
}

/* aspect-ratio属性：设置卡片的宽高比 默认为auto 至少一个纬度为auto才生效 */
.card {
  border-radius: 8px;
  overflow: hidden;
}

.card .card-img {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card img:hover {
  transform: scale(1.1);
  cursor: pointer;
}


.card .info {
  padding: 10px 0;
}

.card .title {
  color: hsla(0, 0%, 100%, .9);
  cursor: pointer;
  font-family: PingFang SC;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.card .tags span {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  padding: 2px 6px;
  margin-right: 3px;
  border-radius: 3px;
  font-size: .7em;
}

footer {
  padding: 100px 20px;
  margin: 0 80px;
  text-align: center;
  color: #888;
  border-top: 1px solid hsla(0, 0%, 100%, .1);
}

@media (min-width: 1921px) {
  header {
    padding: 10px 0px;
  }

  .logo {
    font-weight: bold;
    padding: 0px 250px;
    width: 100%;
  }

  .hot-shorts h2 {
    padding: 0px 250px;
    margin-left: 0px;
  }

  .grid {
    padding: 20px 250px;
  }
}