/* Post detail page */

@import url("content-detail-toolbar.css");

.post-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.post-detail__main {
  flex: 1;
  min-width: 0;
  max-width: 919px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-detail__divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-black-alpha-10);
  flex-shrink: 0;
}

.post-detail__aside {
  width: 269px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-detail__aside-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 600;
  line-height: 36px;
}

.post-detail__aside-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-detail__app-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.post-detail__article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.post-detail__header {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-detail__title {
  align-self: stretch;
  margin: 0;
  color: var(--text-primary);
  font-size: 36px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  word-break: break-all;
}

.post-detail__author,
.post-detail__stats {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.post-detail__body {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-detail__img {
  width: 100%;
  border-radius: 40px;
  display: block;
  object-fit: cover;
  background: var(--color-neutral-200);
}

.post-detail__text {
  margin: 0;
  text-align: justify;
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.post-detail__body .video-player {
  width: 100%;
  height: 535px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.post-detail__body .video-player .playBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  z-index: 10;
  cursor: pointer;
}

.post-detail__body .video-player .dplayer-video {
  width: 100%;
  height: 100%;
}

.post-detail__body .video-player .dplayer {
  height: 100%;
}

.post-detail__body .video-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.post-detail__body .video-player__poster--hidden {
  opacity: 0;
  visibility: hidden;
}

.post-detail__nav {
  padding: 24px 30px;
  border-radius: 18px;
  border: 1px solid var(--color-black-alpha-10);
  background: var(--surface-input);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.post-detail__nav-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-detail__nav-col--next {
  text-align: right;
}

.post-detail__nav-label {
  margin: 0;
  color: var(--color-primary-500);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 30px;
}

.post-detail__nav-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.post-detail__nav-sep {
  width: 2px;
  flex-shrink: 0;
  background: var(--color-black-alpha-10);
}

.post-side-card {
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  overflow: hidden;
  text-decoration: none;
}

.post-side-card__img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
  background: #343434;
}

.post-side-card__body {
  padding: 6px 12px;
  background: var(--color-black-alpha-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-side-card__title {
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-side-card__date {
  color: var(--text-secondary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.post-detail__aside-title-text--mobile {
  display: none;
}

.video-detail__tags {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.video-detail__tags-label {
  color: var(--text-secondary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.video-detail__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-detail__tag {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--color-primary-alpha-10);
  color: var(--color-primary-500);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.video-detail__notice {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-detail__notice p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.video-detail__notice a,
.video-detail__notice .link {
  color: var(--color-primary-500);
  text-decoration: none;
}

.video-detail__notice .text-red {
  color: #ff2d55;
}

.detail-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-banner {
  height: 89px;
  border-radius: 12px;
  overflow: hidden;
}

.detail-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-neutral-200);
}

@media (max-width: 1024px) {
  .post-detail {
    flex-direction: column;
  }

  .post-detail__main,
  .post-detail__aside {
    width: 100%;
    max-width: none;
  }

  .post-detail__divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .post-detail-page .post-detail {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 12px 16px;
    max-width: none;
  }

  .post-detail-page .post-detail__main {
    display: contents;
  }

  .post-detail-page .breadcrumb {
    order: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .post-detail-page .post-detail__article {
    order: 1;
    align-items: stretch;
    gap: 12px;
  }

  .post-detail-page .post-detail__header {
    gap: 6px;
  }

  .post-detail-page .post-detail__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .post-detail-page .post-detail__author,
  .post-detail-page .post-detail__stats {
    font-size: 14px;
    line-height: 20px;
  }

  .post-detail-page .post-detail__body {
    gap: 12px;
  }

  .post-detail-page .post-detail__img {
    border-radius: 12px;
    height: auto;
    aspect-ratio: 343 / 193;
  }

  .post-detail-page .post-detail__text {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
    text-align: justify;
  }

  .post-detail-page .post-detail__body .video-player {
    height: 190px;
    border-radius: 12px;
  }

  .post-detail-page .post-detail__body .video-player .playBtn {
    width: 41px;
    height: 41px;
  }

  .post-detail-page .video-detail__actions {
    order: 2;
  }

  .post-detail-page .video-detail__download-label--desktop,
  .post-detail-page .video-detail__download-icon--desktop {
    display: none;
  }

  .post-detail-page .video-detail__download-label--mobile,
  .post-detail-page .video-detail__download-icon--mobile {
    display: inline;
  }

  .post-detail-page .post-detail__download picture {
    width: 24px;
    height: 24px;
  }

  .post-detail-page .post-detail__download img {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    filter: none;
  }

  .post-detail-page .video-detail__tags {
    order: 3;
    gap: 12px;
    align-items: flex-start;
  }

  .post-detail-page .video-detail__tags-label {
    font-size: 14px;
    line-height: 20px;
    flex-shrink: 0;
  }

  .post-detail-page .video-detail__tag {
    padding: 4px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .post-detail-page .post-detail__nav {
    order: 4;
    flex-direction: row;
    padding: 24px 30px;
    gap: 18px;
  }

  .post-detail-page .post-detail__nav-label {
    font-size: 16px;
    line-height: 22px;
  }

  .post-detail-page .post-detail__nav-text {
    font-size: 12px;
    line-height: 18px;
  }

  .post-detail-page .post-detail__nav-col--next {
    text-align: right;
  }

  .post-detail-page .post-detail__nav-sep {
    width: 1px;
    height: 96px;
  }

  .post-detail-page .post-detail__aside {
    order: 5;
    width: 100%;
    max-width: none;
    gap: 12px;
  }

  .post-detail-page .post-detail__aside-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .post-detail-page .post-detail__aside-title-text--desktop {
    display: none;
  }

  .post-detail-page .post-detail__aside-title-text--mobile {
    display: inline;
  }

  .post-detail-page .post-detail__aside-list {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .post-detail-page .post-detail__aside-list::-webkit-scrollbar {
    display: none;
  }

  .post-detail-page .post-side-card {
    display: flex;
    flex-direction: column;
    width: 233px;
    flex-shrink: 0;
    border-radius: 8px;
    gap: 4px;
    background: transparent;
  }

  .post-detail-page .post-side-card__img {
    width: 233px;
    height: 104px;
    border-radius: 12px;
  }

  .post-detail-page .post-side-card__body {
    padding: 0;
    background: transparent;
    gap: 0;
  }

  .post-detail-page .post-side-card__title {
    font-size: 12px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-detail-page .post-side-card__date {
    display: none;
  }

  .post-detail-page .video-detail__notice {
    order: 6;
    padding: 24px 12px;
    border-radius: 18px;
    gap: 12px;
  }

  .post-detail-page .video-detail__notice p {
    font-size: 12px;
    line-height: 18px;
  }

  .post-detail-page .post-detail__app-rows {
    order: 7;
    gap: 0;
    padding: 18px 0;
    border-radius: 16px;
    border: 1px solid var(--color-black-alpha-5);
    background: var(--surface-foreground);
  }

  .post-detail-page .post-detail__app-rows .recommend-apps__grid {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 8px;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .post-detail-page .post-detail__app-rows .recommend-apps__icon-wrap {
    background: #3d3d3d;
  }

  .post-detail-page .detail-banners {
    order: 8;
    gap: 12px;
    width: 100%;
  }

  .post-detail-page .detail-banner {
    border-radius: 6px;
    height: 47px;
  }

  .post-detail-page .detail-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .post-detail-page .comment-section {
    order: 9;
    padding-top: 0;
    border-top: none;
  }

  .post-detail-page .comment-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-black-alpha-10);
    margin-bottom: 6px;
  }

  .post-detail-page .post-detail__divider {
    display: none;
  }

  .post-detail-page .post-detail__body .video-player__controls {
    left: 12px;
    right: 12px;
    bottom: 0;
    gap: 14px;
    padding-bottom: 0;
  }

  .post-detail-page .post-detail__body .video-player__shade {
    height: 30px;
  }

  .post-detail-page .post-detail__body .video-player__progress {
    height: 2px;
  }

  .post-detail-page .post-detail__body .video-player__progress-track,
  .post-detail-page .post-detail__body .video-player__progress-bar {
    height: 2px;
  }

  .post-detail-page .post-detail__body .video-player__progress-thumb {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }

  .post-detail-page .post-detail__body .video-player__toolbar-left,
  .post-detail-page .post-detail__body .video-player__toolbar-right {
    gap: 12px;
  }

  .post-detail-page .post-detail__body .video-player__toolbar-right {
    gap: 20px;
  }

  .post-detail-page .post-detail__body .video-player__time {
    font-size: 12px;
    line-height: 19.2px;
  }

  .post-detail-page .post-detail__body .video-player__icon-btn {
    width: 16px;
    height: 16px;
  }

  .post-detail-page .post-detail__body .video-player__icon-btn img {
    width: 16px;
    height: 16px;
  }
}
