/* =========================================================================
 * webinar.css — 线上研讨会列表页 + 详情页（对齐原站 catid=98）
 *   - 列表：单列标题 + 日期 + 阅读更多（还原 widget-item 风格）
 *   - 详情：标题 + 日期 + 正文 + 主讲人区块（红 / 标题，#E53333）
 * 复用 inner.css 设计令牌；仅样式，不动业务逻辑。
 * ========================================================================= */

/* ---------- 全局 sticky footer：页脚始终贴浏览器底部（仅加载本样式表的页面生效） ---------- */
html { height: 100%; }
body {
  margin: 0;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
#et-main-area {
  flex: 1 0 auto !important;
  min-width: 0;
}
#main-footer {
  flex-shrink: 0 !important;
}

/* ---------- 英雄横幅（与媒体中心 .media-hero 风格一致） ---------- */
.webinar-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: #222 url(/static/cms/images/media/media_center.jpg) center / cover no-repeat;
}
.webinar-hero .container {
  width: 100%;
}
/* 用 #et-main-area 前缀提权，压过 inner.css 的 #et-main-area h1（30px/黑）规则 */
#et-main-area .webinar-hero__title {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
#et-main-area .webinar-hero__slash {
  color: var(--red);
  margin-right: 6px;
}
@media (max-width: 768px) {
  #et-main-area .webinar-hero__title {
    font-size: 40px;
  }
}
@media (max-width: 560px) {
  #et-main-area .webinar-hero__title {
    font-size: 30px;
  }
}

/* ---------- 标题区容器：去掉面包屑区域灰色背景（覆盖 inner.css 通用灰底） ---------- */
/* inner.css 用类选择器 .main_title_container{background:var(--bg-gray-2)}，这里加 ID 前缀提权 */
#et-main-area .main_title_container {
  background: transparent;
  padding-top: 32px;
}

/* ---------- 列表页：左缩略图 + 右内容（对齐原站 et_pb_post 横排卡片） ---------- */
.webinar-list {
  margin: 0;
  padding: 0;
}
.webinar-post {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border, #ececec);
}
.webinar-post__left {
  flex: 0 0 360px;
  width: 360px;
}
.webinar-post__img {
  display: block;
  overflow: hidden;
}
.webinar-post__img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.webinar-post__img:hover img {
  transform: scale(1.05);
}
.webinar-post__body {
  flex: 1;
  min-width: 0;
}
.webinar-post__date {
  font-size: 13px;
  color: #999;
  margin: 0 0 10px;
}
.webinar-post__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 14px;
}
.webinar-post__title a {
  color: #222;
  text-decoration: none;
}
.webinar-post__title a:hover {
  color: var(--red);
}
.webinar-post__content p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text, #555);
  margin: 0 0 16px;
}
/* 详细信息按钮（对齐原站 .btn .btn-default 描边按钮） */
.webinar-post__more {
  display: inline-block;
  padding: 9px 26px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.webinar-post__more:hover {
  background: var(--red);
  color: #fff;
}
/* 分页（ThinkPHP render） */
.webinar-list + .pagination,
.pagination {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}
.pagination a,
.pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  margin: 0 3px;
  border: 1px solid var(--border, #ddd);
  color: #555;
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination .current,
.pagination span.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
/* 响应式：窄屏堆叠 */
@media (max-width: 768px) {
  .webinar-post {
    flex-direction: column;
    gap: 16px;
  }
  .webinar-post__left {
    flex: none;
    width: 100%;
  }
  .webinar-post__img img {
    height: 200px;
  }
}

/* ---------- 详情页：全宽区段 + 居中阅读栏（与全宽页脚衔接顺滑，整体通屏） ---------- */
.webinar-detail__wrap {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.webinar-detail__inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- 详情页 ---------- */
#et-main-area .webinar-detail__title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin: 24px 0 8px;
  line-height: 1.3;
}
.webinar-detail__date {
  display: inline-block;
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}
.webinar-detail__body {
  font-size: 15px;
  line-height: 2;
  color: var(--text, #444);
}
.webinar-detail__body p {
  margin: 0 0 16px;
}
.webinar-detail__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.webinar-detail__body li {
  margin-bottom: 6px;
}

/* 主讲人区块：红 / 标题 + 图片 + 信息（对齐原站 #E53333 / SimSun / 18px 观感） */
.webinar-detail__body .webinar-speaker-title {
  color: #E53333;
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 14px;
}
.webinar-speaker {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 24px;
}
.webinar-speaker__img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;          /* 正方形头像 */
  flex: 0 0 auto;
}
.webinar-speaker__info {
  flex: 1;
}
.webinar-speaker__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--red);          /* 姓名红色 */
  margin: 0 0 4px;
}
.webinar-speaker__role {
  font-size: 14px;
  color: var(--red);
  margin: 0 0 12px;
}
.webinar-speaker__info p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text, #555);
  margin: 0 0 8px;
}

/* 详情正文内媒体（优酷 iframe 等）自适应：避免定宽元素撑出横向溢出导致页脚走形 */
.webinar-detail__body iframe,
.webinar-detail__body video,
.webinar-detail__body object,
.webinar-detail__body embed {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 910 / 698;
  height: auto;
  border: 0;
  display: block;
}
/* 隐藏抓取残留的空 src 图片，避免破图占位 */
.webinar-detail__body img[src=""],
.webinar-detail__body img:not([src]) {
  display: none;
}

/* 视频外链（后台维护的优酷 embed）：独立响应式 16:9 区块，置于标题/日期下方、正文上方 */
.webinar-video {
  margin: 24px 0 28px;
}
.webinar-video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 16:9 */
  height: 0;
  background: #000;
  overflow: hidden;
}
.webinar-video__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 560px) {
  .webinar-video {
    margin: 18px 0 22px;
  }
}

/* 返回新闻：普通流按钮，置于"主讲人"区域下方 */
.webinar-back-news {
  margin-top: 28px;
}
.webinar-back-news a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--red, #E53333);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  /* 平行四边形：左侧切角，文字保持水平 */
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  transition: background .2s;
}
.webinar-back-news a:hover {
  background: #c1271d;
}

/* 相关推荐 + 上一篇/下一篇 */
.webinar-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #ececec);
}
.webinar-related__title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 16px;
}
.webinar-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.webinar-related__list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border, #eee);
  overflow: hidden;
}
.webinar-related__list a {
  color: #222;
  text-decoration: none;
  font-size: 15px;
}
.webinar-related__list a:hover {
  color: var(--red);
}
.webinar-related__list .date {
  float: right;
  font-size: 13px;
  color: #999;
}
.webinar-pager {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 14px;
  gap: 16px;
}
.webinar-pager a {
  color: var(--red);
  text-decoration: none;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.webinar-pager a:hover {
  text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  #et-main-area .webinar-detail__title {
    font-size: 24px;
  }
  .webinar-speaker {
    flex-direction: column;
  }
  .webinar-speaker__img {
    width: 90px;
    height: 90px;
  }
  .webinar-back-news a {
    padding: 10px 18px;
    font-size: 14px;
  }
}
