/* WDCC2025直播页面样式 - 基于live-player.wxss转换 */

/* 基础重置和通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333333;
  overflow-x: hidden;
}

/* 响应式单位转换：rpx转换为vw */
.page {
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部信息区域 - 会议banner */
.conference-header {
  background: #d3d3d3;
  padding: 1.2rem 2rem;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.main-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.2;
}

.date-range {
  font-size: 1.2rem;
  color: #666666;
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
}

.venue-info {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  background: transparent;
}

/* 直播播放器区域 */
.live-player-section {
  flex: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  /*min-height: 25rem;*/
}

/* 直播状态提示 */
.live-status-tip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
}

.status-text {
  font-size: 1.6rem;
  color: #666666;
  text-align: center;
}

/* 直播播放器容器 - 16:9 比例优化 */
.live-player-container {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  /* 现代浏览器16:9比例方案 */
  aspect-ratio: 16 / 9;
  /* 兜底方案：使用padding-top实现16:9比例 */
  /* 当aspect-ratio不支持时，padding-top: 56.25% 生效 (9/16 = 0.5625) */
}

/* aspect-ratio不支持时的兜底方案 */
@supports not (aspect-ratio: 16 / 9) {
  .live-player-container {
    padding-top: 56.25%; /* 16:9 比例 */
    height: 0;
  }

  .live-player-container > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* 原生直播播放器 - 适配16:9容器 */
.live-player {
  width: 100%;
  height: 100%;
  background: #000000;
  outline: none;
  /* 移除固定最小高度，完全依赖容器的16:9比例 */
}

/* 假帧层 - 精确叠加在16:9播放器上方 */
.placeholder-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000000;
  overflow: hidden;
  /* 移除固定最小高度，完全适配16:9容器 */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.placeholder-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  object-fit: cover;
  background: #000000;
}

.placeholder-content {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.placeholder-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  max-width: 30rem;
  word-break: break-word;
}

.placeholder-time {
  font-size: 1.4rem;
  color: #666666;
  font-weight: 400;
}

/* 直播加载状态 */
.live-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25rem;
  background: #f8f9fa;
}

.loading-text {
  font-size: 1.4rem;
  color: #666666;
}

/* 直播错误状态 */
.live-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 25rem;
  background: #f8f9fa;
  padding: 3rem;
}

.error-text {
  font-size: 1.4rem;
  color: #ff6b6b;
  text-align: center;
  line-height: 1.5;
}

.retry-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 2.5rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: 0 0.4rem 1.2rem rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.retry-button:active {
  transform: translateY(0.1rem);
  box-shadow: 0 0.2rem 0.6rem rgba(102, 126, 234, 0.4);
}

/* 论坛信息展示区域 */
.info-section {
  flex: 1;
  background: #ffffff;
  padding: 0;
  /*margin: 1rem;*/
  /*border-radius: 1rem;*/
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info-item {
  margin-bottom: 0;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-header {
  background: #d7e1ed;
  color: #333333;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1.2rem 1.5rem;
  display: block;
}

.info-content {
  background: #ffffff;
  color: #333333;
  font-size: 1.5rem;
  font-weight: 400;
  padding: 1.2rem 1.5rem;
  display: block;
  line-height: 1.4;
  word-break: break-word;
}

/* 底部信息区域 */
.footer-section {
  background: #ffffff;
  padding: 1.5rem;
  margin: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label {
  font-size: 1.2rem;
  color: #666666;
}

.info-value {
  font-size: 1.2rem;
  color: #333333;
  font-family: monospace;
}

/* 直播指示器 */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  background: #ff4757;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.live-text {
  font-size: 1.2rem;
  color: #ff4757;
  font-weight: 600;
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
  .conference-header {
    padding: 1rem 1.5rem;
  }

  .main-title {
    font-size: 1.0rem;
  }

  .date-range {
    font-size: 1.1rem;
  }

  .venue-info {
    font-size: 1.1rem;
  }

  .live-player-container {
    /*margin: 0.75rem 0;*/
  }

  .placeholder-content {
    left: 1.5rem;
  }

  .placeholder-title {
    font-size: 1.0rem;
    max-width: 25rem;
  }

  .placeholder-time {
    font-size: 1.3rem;
  }

  .info-section {
    /*margin: 0.75rem;*/
  }

  .info-header {
    font-size: 1.4rem;
    padding: 1rem 1.25rem;
  }

  .info-content {
    font-size: 1.4rem;
    padding: 1rem 1.25rem;
  }

  .footer-section {
    padding: 1rem;
    margin: 0.75rem;
  }
}

@media screen and (min-width: 768px) {
  .conference-header {
    padding: 1.5rem 2.5rem;
  }

  .main-title {
    font-size: 1.0rem;
  }

  .date-range {
    font-size: 1.3rem;
  }

  .venue-info {
    font-size: 1.1rem;
  }

  .live-player-container {
    /*margin: 1.25rem 0;*/
  }

  .placeholder-content {
    left: 2.5rem;
  }

  .placeholder-title {
    font-size: 1.0rem;
    max-width: 35rem;
  }

  .placeholder-time {
    font-size: 1.5rem;
  }

  .info-section {
    /*margin: 1.25rem;*/
  }

  .info-header {
    font-size: 1.6rem;
    padding: 1.4rem 1.75rem;
  }

  .info-content {
    font-size: 1.6rem;
    padding: 1.4rem 1.75rem;
  }
}

/* 加载进度指示器 - 已隐藏 */
.loading-progress {
  display: none !important;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 12;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.25rem;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
  .loading-progress {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.2rem;
  }

  .progress-text {
    font-size: 1.1rem;
  }
}

/* Video.js播放器样式覆盖 */
.video-js {
  width: 100% !important;
  height: 100% !important;
  background: #000000 !important;
}

/* 支持fallback padding-top模式的Video.js定位 */
@supports not (aspect-ratio: 16 / 9) {
  .live-player-container .video-js {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }
}

.video-js .vjs-poster {
  background-size: cover !important;
  background-position: center !important;
}

/* Video.js控制栏样式 */
.video-js .vjs-control-bar {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(10px) !important;
}

.video-js .vjs-big-play-button {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  width: 4rem !important;
  height: 4rem !important;
  line-height: 3.6rem !important;
  font-size: 1.5rem !important;
  left: 50% !important;
  top: 50% !important;
  margin-left: -2rem !important;
  margin-top: -2rem !important;
}

.video-js .vjs-big-play-button:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  border-color: #667eea !important;
}

/* Video.js加载指示器 */
.video-js .vjs-loading-spinner {
  border-color: #667eea transparent transparent transparent !important;
}

/* Video.js错误显示 */
.video-js .vjs-error-display {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
}

/* 响应式Video.js */
@media screen and (max-width: 480px) {
  .video-js .vjs-big-play-button {
    width: 3.5rem !important;
    height: 3.5rem !important;
    line-height: 3.1rem !important;
    font-size: 1.3rem !important;
    margin-left: -1.75rem !important;
    margin-top: -1.75rem !important;
  }
}

/* 隐藏状态 */
.hidden {
  display: none !important;
}

/* 错误提示弹窗样式 */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

.modal-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-message {
  font-size: 1.4rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-btn {
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-width: 8rem;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.3);
}

.modal-btn-primary:hover {
  box-shadow: 0 0.6rem 2rem rgba(102, 126, 234, 0.4);
  transform: translateY(-0.1rem);
}

.modal-btn-primary:active {
  transform: translateY(0.1rem);
  box-shadow: 0 0.3rem 1rem rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
  background: #ffffff;
  color: #666666;
  border: 0.15rem solid #e0e0e0;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
}

.modal-btn-secondary:hover {
  background: #f8f9fa;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-0.1rem);
}

.modal-btn-secondary:active {
  transform: translateY(0.1rem);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.15);
}

/* 弹窗动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 弹窗响应式调整 */
@media screen and (max-width: 480px) {
  .error-modal {
    padding: 1.5rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }

  .modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-message {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .modal-btn {
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
    width: 100%;
  }
}

/* 隐藏Video.js默认错误界面 */
.video-js .vjs-error-display {
  display: none !important;
}

.video-js .vjs-modal-dialog {
  display: none !important;
}

/* 隐藏Video.js默认错误覆盖层 */
.video-js .vjs-modal-dialog-content {
  display: none !important;
}

/* 确保错误状态下不显示任何Video.js错误UI */
.video-js.vjs-error .vjs-error-display,
.video-js.vjs-error .vjs-modal-dialog,
.video-js.vjs-error .vjs-modal-dialog-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ===== 未直播状态的专用样式 ===== */

/* 未直播状态的假帧优化 */
.placeholder-frame.not-live {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #444444;
}

.placeholder-frame.not-live .placeholder-time {
  color: #ffa726 !important;
  font-weight: 500;
  font-size: 1.5rem;
}

.placeholder-frame.not-live .placeholder-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 未直播状态的提示信息 */
.not-live-hint {
  display: none;
  margin-top: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  pointer-events: none;
}

.not-live-icon {
  font-size: 2rem;
  opacity: 0.8;
  animation: pulse 2s infinite;
  color: #ffa726;
}

.not-live-message {
  font-size: 1.2rem;
  color: #cccccc;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 未直播状态的背景图片优化 */
.placeholder-frame.not-live .placeholder-bg {
  filter: brightness(0.7) contrast(1.1);
  opacity: 0.9;
}

/* 响应式优化 - 未直播状态 */
@media screen and (max-width: 480px) {
  .not-live-hint {
    margin-top: 1rem;
    gap: 0.6rem;
  }

  .not-live-icon {
    font-size: 1.8rem;
  }

  .not-live-message {
    font-size: 1.1rem;
  }

  .placeholder-frame.not-live .placeholder-time {
    font-size: 1.3rem;
  }

  .placeholder-frame.not-live .placeholder-title {
    font-size: 1.0rem;
  }
}

@media screen and (min-width: 768px) {
  .not-live-hint {
    margin-top: 2rem;
    gap: 1rem;
  }

  .not-live-icon {
    font-size: 2.2rem;
  }

  .not-live-message {
    font-size: 1.3rem;
  }

  .placeholder-frame.not-live .placeholder-time {
    font-size: 1.6rem;
  }

  .placeholder-frame.not-live .placeholder-title {
    font-size: 1.0rem;
  }
}