/* 专题详情：灰底上 Hero、收录影片、专题详情三块白面板（间距见 --gap-panel）；影片卡与白面板样式在 main.css */
.lb-td-main > .lb-vd-panel + .lb-vd-panel {
  margin-top: var(--gap-panel);
}

.lb-td-main .lb-vd-panel .lb-module-title {
  font-size: 18px;
  font-weight: 700;
}

.lb-td-hero {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.lb-td-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev);
}

.lb-td-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.lb-td-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-td-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.lb-td-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.lb-td-dot.lb-active {
  width: 22px;
  background: var(--accent);
}

.lb-td-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 35px;
}

.lb-td-title {
  position: relative;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.lb-td-title::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -35px;
  width: 5px;
  height: 26px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.lb-td-sub {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.lb-td-desc {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lb-td-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.lb-td-count em {
  margin: 0 2px;
  color: var(--accent);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

/* ===== 专题详情正文（topic_content 富文本） ===== */
.lb-td-content-body {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 后台富文本常带行内样式，统一压回主题配色字级 */
.lb-td-content-body * {
  background: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.lb-td-content-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: var(--radius);
}

.lb-td-content-body p,
.lb-td-content-body ul,
.lb-td-content-body ol {
  margin: 0 0 12px;
}

.lb-td-content-body ul,
.lb-td-content-body ol {
  padding-left: 1.5em;
}

.lb-td-content-body h2,
.lb-td-content-body h3,
.lb-td-content-body h4 {
  margin: 18px 0 10px;
  color: var(--text) !important;
  font-size: 17px !important;
  font-weight: 700;
}

.lb-td-content-body a {
  color: var(--accent-tab) !important;
}

.lb-td-content-body > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .lb-td-hero {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .lb-td-info {
    padding: 18px 24px;
  }

  .lb-td-title::before {
    left: -24px;
  }
}

@media (max-width: 767px) {
  .lb-td-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .lb-td-main .lb-vd-panel .lb-module-title {
    font-size: 17px;
  }

  .lb-td-info {
    padding: 18px 15px 20px 20px;
  }

  .lb-td-title {
    font-size: 20px;
  }

  .lb-td-title::before {
    top: 2px;
    left: -20px;
    height: 24px;
  }

  .lb-td-content-body {
    font-size: 14px;
  }
}
