body {
      margin: 0;
      background: #0d0d0d;
      font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      color: #fff;
    }
a {
    text-decoration: none;
}
    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 99;
      background-color: #0d0d0d;
      border-bottom: 1px solid #222;
      transition: box-shadow 0.3s ease;
      padding: 5px 0;
    }

    header.sticky-shadow {
      box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }

    .header-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff4757;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}

.logo:hover {
  color: #fff;
}

    .search {
      flex: 1;
      max-width: 320px;
      display: flex;
      align-items: center;
      background: #1a1a1a;
      border-radius: 4px;
      margin-top:5px;
      height:36px;
    }

    .search-form {
      display: flex;
      align-items: center;
      width: 100%;
    }

    .search input {
      flex: 1;
      height: 100%;
      background: transparent;
      border: none;
      color: #fff;
      outline: none;
      font-size: 14px;
      margin-top:12px;
      padding: 0 5px;
    }

    .search-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0 10px;
      margin-top:12px;
      display: flex;
      align-items: center;
    }

    .search-btn svg {
      fill: #ccc;
      vertical-align: middle;
    }

    .nav-scroll {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 8px 0;
    }

    .nav-scroll::-webkit-scrollbar {
      display: none;
    }

    .nav-scroll a {
      display: inline-block;
      padding: 6px 12px;
      margin-right: 8px;
      background: #1e1e1e;
      border-radius: 4px;
      color: #ccc;
      font-size: 14px;
      text-decoration: none;
    }

    .nav-scroll a.active {
      background: #ff4757;
      color: #fff;
      font-weight: bold;
    }

    @media screen and (max-width: 768px) {
      .search {
        margin-top: 8px;
        max-width: 100%;
      }
    }
  /* 首页主页 */
  .swiper-container {
  width: 100%;
  height: 0;
  padding-top: 42%; /* 自适应比例图 16:9 大约等于 56.25% */
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.swiper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.swiper-slide:hover .swiper-img {
  transform: scale(1.02);
}

/* 分页圆点 */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 0.6;
  margin: 0 4px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}

.swiper-pagination-bullet-active {
  background: #ff4757;
  opacity: 1;
  transform: scale(1.2);
}

/* 左右箭头 */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 71, 87, 0.8);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
 .section-title {
  font-size: 1.3rem;
  font-weight: bold;
  border-left: 4px solid #ff4757;
  padding-left: 10px;
}

.more-link {
  font-size: 0.9rem;
  color: #ff4757;
  text-decoration: none;
  margin-left: auto;
}

.more-link:hover {
  text-decoration: underline;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-top: 5px;
}

.video-card {
  width: calc(16.666% - 10px); /* 6列：100% / 6 = 16.666% */
  margin-left: 10px;
  margin-top: 5px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
}

.video-card:hover {
  transform: scale(1.03);
}

    .video-thumb-wrap {
      position: relative;
      display: block;
    }

    .video-thumb {
      width: 100%;
      height: auto;
      aspect-ratio: 2/3;
      object-fit: cover;
      display: block;
    }

    .video-badge {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      font-size: 0.75rem;
      padding: 4px 6px;
      text-align: center;
      box-sizing: border-box;
    }

    .video-info {
      padding: 8px 6px;
    }

    .video-title {
      font-size: 0.9rem;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    footer {
      margin: 60px 0 20px;
      text-align: center;
      font-size: 0.85rem;
      color: #555;
    }
/* 移动端：3列 */
@media (max-width: 768px) {
  .video-card {
    width: calc(33.333% - 10px); /* 100% / 3 = 33.333% */
  }
}
    @media (min-width: 768px) {
      .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      }
    }
   
  @media (min-width: 768px) {
    .article-list {
      grid-template-columns: 1fr 1fr;
    }
  }
  .article-section {
  margin-top: 40px;
}
.article-title {
  font-size: 1.3rem;
  font-weight: bold;
  border-left: 4px solid #ffa502;
  padding-left: 10px;
  margin-bottom: 20px;
  color: #ffe066;
}
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 15px;
}
@media (min-width: 768px) {
  .article-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
}
.article-item {
  display: flex;
  background-color: #1a1a1a;
  padding: 10px;
  border-radius: 6px;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}
.article-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.article-content {
  flex: 1;
  min-width: 0;
}
.article-content a {
  text-decoration: none;
}
.article-name {
  font-size: 0.95rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-desc {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}
.article-noimg .article-content {
  margin-left: 0;
}
  .more-button {
    text-align: center;
    margin-top: 20px;
  }
  .more-button a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff4757;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  .more-button a:hover {
    background-color: #e84118;
  }

/* 动漫区块容器 */
.anime-layout {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* 左图区域 */
.anime-left {
  width: 282px;
  flex-shrink: 0;
  margin-right: 16px;
}

.anime-left-link {
  display: block;
  text-decoration: none;
}

.anime-left-image {
  position: relative;
  width: 282px;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.anime-left-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anime-badge {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  padding: 4px 6px;
}

.anime-title {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anime-desc {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
  margin-top: 4px;
  max-height: 2.8em;
  overflow: hidden;
}

/* 右侧网格区域 */
.anime-right {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.anime-card {
  width: 120px;
  margin-right: 8px;
  margin-bottom: 10px;
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}

.anime-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.anime-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 移动端覆盖 */
@media (max-width: 768px) {
  .hidden-on-mobile {
    display: none !important;
  }
  .anime-layout {
    flex-direction: column;
  }

  .anime-left {
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .anime-left-image {
    width: 100%;
    height: 200px;
    aspect-ratio: 282 / 400;
  }

  .anime-right {
    justify-content: space-between;
  }
  

  .anime-card {
    width: calc(33.33% - 6px);
    margin-right: 0;
  }
}


