/* 视频详情页 · 视频要点卡片（数据来自 video.summary / video.summary_points） */
/* 顶部栏：适配刘海屏/挖孔屏安全区，任何机型都不被状态栏遮挡 */
.topbar {
  box-sizing: border-box;
  height: calc(62px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}

/* 返回按钮：纯矢量箭头，不依赖字体与图片，任意内核显示一致 */
.topbar .back {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin: 0 -2px 0 -6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(6, 48, 96, 0.16);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.topbar .back svg {
  display: block;
  width: 22px;
  height: 22px;
}

.topbar .back:active {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .topbar .back:hover {
    background: rgba(255, 255, 255, 0.26);
  }
}

/* 小屏收紧、大屏放大，点击区始终不小于 38×38 */
@media (max-width: 359px) {
  .topbar .back {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
  }
  .topbar .back svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 414px) {
  .topbar .back {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
  }
  .topbar .back svg {
    width: 23px;
    height: 23px;
  }
}
/* 顶部标题栏改为显示栏目名，过长时省略；字号随屏幕宽度微调 */
.topbar strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  font-size: clamp(15px, 4.5vw, 17px);
}

.video-brief {
  position: relative;
  margin: 18px 16px calc(74px + env(safe-area-inset-bottom, 0px));
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 10px 30px rgba(28, 88, 166, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.video-brief::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2f79d6 0%, #63a7f0 45%, rgba(99, 167, 240, 0) 100%);
}

.vb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vb-tag {
  flex: none;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(47, 121, 214, 0.1);
  color: #1f63bf;
  font: 700 11px/1.1 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0.12em;
}

.vb-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 121, 214, 0.28), rgba(47, 121, 214, 0));
}

.vb-lead {
  margin: 0 0 14px;
  color: #2f3b52;
  font: 400 14.5px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.vb-title {
  margin: 0 0 10px;
  color: #1b2a44;
  font: 600 17px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif;
  word-break: break-word;
}

.vb-lead:last-child {
  margin-bottom: 0;
}

.vb-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vb-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vb-num {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  background: #e9f1ff;
  color: #2c6cc4;
  font: 700 11px/24px "Microsoft YaHei", "PingFang SC", sans-serif;
  text-align: center;
}

.vb-text {
  margin: 0;
  color: #48546b;
  font: 400 13.5px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif;
  word-break: break-word;
}

@media (min-width: 600px) {
  .video-brief {
    max-width: 720px;
    margin: 24px auto calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
