/* ==========================================================================
   视频页样式（PC 端）
   站点：xuelibu.com   日期：2026-10-02
   前缀统一 v- ，避免与站点 css.css 冲突
   容器沿用站点 .content_all（1180px 固定宽度）
   ========================================================================== */

/* ---------- 栏目标题栏 ---------- */
.v-head {
  position: relative;
  margin: 4px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1787e0;
}
.v-head h1 {
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  color: #1787e0;
  line-height: 1.2;
}
.v-head .v-sub {
  margin-left: 12px;
  font-size: 13px;
  font-weight: normal;
  color: #999;
}

/* ==========================================================================
   列表页：一行三个视频窗口
   ========================================================================== */
.v-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 20px;
}
.v-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 封面（16:9） */
.v-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}
.v-cover img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.v-card:hover .v-cover img {
  transform: scale(1.06);
}

/* 播放按钮 */
.v-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  opacity: .92;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.v-play::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 15px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.v-card:hover .v-play {
  background: #1787e0;
  border-color: #1787e0;
  opacity: 1;
  transform: scale(1.08);
}

/* 时长角标 */
.v-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  background: rgba(0, 0, 0, .75);
  border-radius: 3px;
}

/* 标题：位于视频窗口底部，最多两行 */
.v-card .v-tit {
  display: -webkit-box;
  height: 45px;
  margin-top: 11px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color .2s ease;
}
.v-card:hover .v-tit {
  color: #1787e0;
}

/* 空状态 */
.v-empty {
  padding: 80px 0;
  text-align: center;
  font-size: 15px;
  color: #999;
}
.v-empty b {
  display: block;
  margin-bottom: 10px;
  font-size: 42px;
  color: #ddd;
}

/* ==========================================================================
   详情页
   ========================================================================== */

/* ---------- 播放窗口 ---------- */
.v-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.v-player video {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* 尚未上传视频时的占位 */
.v-novideo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #888;
  background: #111;
}

/* ---------- 标题 ---------- */
.v-dt {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.55;
  color: #222;
}

/* 元信息 */
.v-meta {
  margin-top: 12px;
  padding-bottom: 14px;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #eee;
}
.v-meta span {
  margin-right: 18px;
}
.v-meta b {
  font-weight: normal;
  color: #666;
}

/* ---------- 视频文案 ---------- */
.v-desc {
  padding: 22px 0 6px;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}
.v-desc p {
  margin-bottom: 14px;
}
.v-desc img {
  max-width: 100%;
  height: auto;
}
.v-desc h2, .v-desc h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: bold;
  color: #222;
}

/* ---------- 相关视频推荐 ---------- */
.v-rel {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #eee;
}
.v-rel-h {
  position: relative;
  margin-bottom: 20px;
  padding-left: 12px;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.3;
  color: #222;
}
.v-rel-h::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 19px;
  background: #1787e0;
  border-radius: 2px;
}
.v-rel-h em {
  margin-left: 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: normal;
  color: #999;
}
