/* PB integration layer: preserve the approved visual system. */
.teacher-carousel-controls[hidden] {
  display: none !important
}

body .news-columns-section .home-news a,
body .news-columns-section .home-news a * {
  font-weight: 400 !important
}

@media(max-width:760px) {
  main>.school-intro .intro-copy .intro-heading .section-subtitle {
    text-align: center;
    margin: 14px 0 0
  }
}

.topbar .logo,
.footer .logo {
  background: none !important
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.page-title--campus {
  position: relative;
  isolation: isolate;
  background: #b21327 !important;
  overflow: hidden
}

.page-title--campus .wrap {
  position: relative;
  z-index: 2
}

.pb-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  z-index: 0
}

.page-title--campus:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #a70e24 8%, rgba(172, 16, 37, .96) 30%, rgba(151, 26, 40, .68) 53%, rgba(0, 0, 0, .06) 80%)
}

.page-title--campus .page-title-copy {
  position: relative;
  color: #fff
}

.page-title--campus .breadcrumb-line a,
.page-title--campus p,
.page-title--campus h1 {
  color: #fff !important
}

.pb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0
}

.pb-pagination a,
.pb-pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 9px;
  border: 1px solid #e1e5eb;
  border-radius: 5px;
  color: #4b535e;
  text-decoration: none
}

.pb-pagination .page-num-current {
  color: #fff;
  background: #df101d;
  border-color: #df101d
}

.pb-pagination .page-status {
  font-size: 13px;
  color: #7a8491
}

.pb-pagination .page-select {
  display: none
}

.pb-pagination .page-numbar {
  display: flex;
  gap: 8px
}

.pb-empty {
  padding: 36px 16px;
  text-align: center;
  color: #77808b;
  background: #f7f8fa;
  border-radius: 8px
}

.article-list-categories {
  overflow-x: auto
}

.article-list-categories a {
  white-space: nowrap
}

.article-list-categories:has(a:only-child) {
  display: none
}

.sidebar-reading ol:empty:after {
  content: '本栏目暂无其他内容';
  font-size: 14px;
  color: #788391
}

.article-adjacent>div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3
}

.article-adjacent span {
  flex-shrink: 0;
  color: #7c8795
}

.article-adjacent a {
  font-weight: 600
}

.article-body img,
.article-body video {
  max-width: 100%;
  height: auto
}

.article-body table {
  display: block;
  overflow: auto;
  max-width: 100%
}

.article-body pre {
  overflow: auto
}

.article-body {
  overflow-wrap: anywhere
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%)
}

.form-captcha {
  display: flex !important;
  align-items: center;
  gap: 10px;
  grid-column: 1/-1
}

.form-captcha input {
  min-width: 0;
  flex: 1
}

.form-captcha img {
  width: 110px;
  height: 40px;
  cursor: pointer
}

.home-video-section .video-duration,
.home-video-section .video-likes {
  position: absolute;
  bottom: 8px;
  color: white;
  background: #0007;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  z-index: 2
}

.home-video-section .video-duration {
  left: 8px
}

.home-video-section .video-likes {
  right: 8px
}

.home-video-section .play-icon {
  position: absolute !important;
  inset: 10px 10px auto auto !important;
  transform: none !important;
  width: 34px !important;
  height: 34px !important
}

.home-video-waterfall:empty:after,
.teacher-grid:empty:after,
.question-grid:empty:after,
.home-news:empty:after {
  content: '内容正在整理';
  padding: 24px;
  color: #788391;
  font-size: 15px;
  grid-column: 1/-1
}

.question-grid a {
  color: inherit;
  text-decoration: none
}

.watch-tags a {
  cursor: pointer
}

.video-list-page .article-list-categories {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid #edf0f3;
  min-height: 60px
}

.video-list-page .article-list-categories a {
  position: relative;
  padding: 10px 0;
  color: #41464d;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none
}

.video-list-page .article-list-categories a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #d61319;
  transform: scaleX(0);
  transition: transform .2s
}

.video-list-page .article-list-categories a:hover,
.video-list-page .article-list-categories a.active {
  color: #d61319
}

.video-list-page .article-list-categories a:hover:after,
.video-list-page .article-list-categories a.active:after {
  transform: scaleX(1)
}

.watch-actions>a span {
  white-space: nowrap
}

@media(max-width:760px) {
  .page-title--campus:after {
    background: linear-gradient(90deg, rgba(145, 12, 33, .94), rgba(156, 17, 33, .72) 70%, rgba(156, 17, 33, .35))
  }

  .pb-pagination {
    gap: 5px
  }

  .pb-pagination a {
    min-width: 32px;
    padding: 4px 7px
  }

  .pb-pagination .page-status {
    width: 100%;
    text-align: center
  }

  .article-list-page .sidebar-reading {
    display: none
  }
}

/* Hide the homepage advantages section on phones; retain desktop content. */
@media(max-width:760px) {
  main>.trust-strip-visual {
    display: none
  }
}

/* Compact homepage section spacing on phones. */
@media(max-width:760px) {
  .home-page main> :is(.school-intro, .section, .admission-flow, .campus-cta) {
    padding-top: 28px;
    padding-bottom: 32px
  }

  .home-page main>.section .section-head,
  .home-page main>.admission-flow .flow-heading {
    margin-bottom: 20px
  }

  .home-page main>.school-intro .intro-grid {
    gap: 20px
  }
}

/* Teacher navigation flanks the cards; the counter sits below the carousel. */
.home-page .teacher-carousel {
  padding-bottom: 30px
}

.home-page main>.teacher-showcase .teacher-carousel-controls {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
  z-index: 2
}

.home-page .teacher-carousel-controls button {
  position: absolute;
  top: calc(50% - 15px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px #0002;
  pointer-events: auto
}

.home-page .teacher-carousel-controls .teacher-prev {
  left: -10px
}

.home-page .teacher-carousel-controls .teacher-next {
  right: -10px
}

.home-page .teacher-carousel-status {
  position: absolute;
  inset: auto 0 0;
  text-align: center;
  line-height: 20px
}

.home-page .teacher-carousel-controls button:disabled {
  opacity: .45;
  cursor: default
}
