/* Novel (小说) channel — single DOM tree, PC + H5 via media queries */

.novel-static {
  --novel-bg: #0f0f0f;
  --novel-surface: rgba(255, 255, 255, 0.05);
  --novel-border: rgba(255, 255, 255, 0.1);
  --novel-text: #fff;
  --novel-muted: rgba(255, 255, 255, 0.55);
  --novel-accent: #ecd227;
  --novel-ink: #0d0d0d;
  --novel-placeholder: #464646;
  --novel-font: "PingFang SC", "Noto Sans SC", sans-serif;
  --cf-accent: var(--novel-accent);
  --cf-ink: var(--novel-ink);
  --cf-muted: var(--novel-muted);
  --cf-text: var(--novel-text);
  width: 100%;
  box-sizing: border-box;
  background: var(--novel-bg);
  color: var(--novel-text);
  font-family: var(--novel-font);
}

.novel-static *,
.novel-static *::before,
.novel-static *::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Shell ========== */
.novel-view {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.novel-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.novel-crumb {
  color: var(--novel-muted);
  font-weight: 400;
}

.novel-crumb__current {
  color: var(--novel-muted);
}


.novel-crumb__h5,
.novel-crumb__pc {
  display: none;
}

.novel-title {
  margin: 0;
  color: var(--novel-text);
  font-weight: 600;
}

.novel-list-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
  font-size: 14px;
  line-height: 20px;
}


/* ========== Cards ========== */
.novel-grid {
  display: grid;
  width: 100%;
}

.novel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

.novel-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.novel-card__media {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--novel-placeholder);
}

.novel-card__media::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 133.333333%; /* 4 / 3 */
}

.novel-card__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.novel-card__chapters {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  color: #fff;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.novel-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.novel-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: var(--novel-text);
}

.novel-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--novel-muted);
}

.novel-card--ad .novel-card__chapters,
.novel-card--ad .novel-card__tags {
  display: none;
}

/* ==========================================================================
   H5
   ========================================================================== */
@media (max-width: 768px) {
  .novel-view {
    align-items: stretch;
    padding: 12px 16px 32px;
  }

  .novel-inner {
    gap: 18px;
  }

  .novel-crumb {
    font-size: 12px;
    line-height: 18px;
  }

  .novel-crumb__h5 {
    display: inline;
  }

  .novel-title {
    font-size: 16px;
    line-height: 22px;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .novel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 5px;
  }

  .novel-card {
    gap: 4px;
    border-radius: 9px;
  }

  .novel-card__media {
    border-radius: 6px;
  }

  .novel-card__chapters {
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 16px;
  }

  .novel-card__body {
    gap: 2px;
    margin-top: 6px;
  }

  .novel-card__title {
    font-size: 12px;
    line-height: 18px;
    -webkit-line-clamp: 2;
  }

  .novel-card__tags {
    font-size: 12px;
    line-height: 18px;
  }
}

/* ==========================================================================
   PC
   ========================================================================== */
@media (min-width: 769px) {
  .novel-view {
    padding: 36px 200px 60px;
  }

  .novel-inner {
    max-width: 1520px;
    gap: 36px;
  }

  .novel-crumb {
    font-size: 18px;
    line-height: 24px;
  }

  .novel-crumb__pc {
    display: inline;
  }

  .novel-title {
    font-size: 24px;
    line-height: 32px;
  }

  

  

  

  

  

  

  

  .novel-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .novel-card {
    gap: 12px;
  }

  .novel-card__media {
    border-radius: 12px;
  }

  .novel-card__chapters {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 22px;
  }

  .novel-card__body {
    gap: 8px;
    margin-top: 12px;
  }

  .novel-card__title {
    font-size: 20px;
    line-height: 28px;
    -webkit-line-clamp: 2;
    max-height: 56px;
  }

  .novel-card__tags {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .novel-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}
