* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background-size: cover;
}
.container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.video-container {
  position: relative;
  transition: transform 0.3s ease;
  transform-origin: center center;
  height: 100%;
}

#productVideo {
  width: 100%;
  height: auto;
  height: calc(100vh - 50px);
  min-height: 80vh;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

/* 进度条样式 */
.progress-container {
  position: fixed;
  bottom: 60px;
  left: 10%;
  right: 10%;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 30px;
}
.play {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.play svg {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.progress-bar {
  width: 100%;
  height: 30px;
  position: relative;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}
.progress-inner {
  height: 4px;
  background-color: #000;
  border-radius: 5px;
  margin: 13px 0;
}

.progress {
  height: 4px;
  background: #fff;
  width: 0;
  border-radius: 5px;
  transition: width 0.05s linear;
}

.buffer-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* 底部面板样式 */
.action-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2a2a2a;
  border-radius: 20px 20px 0 0;
  transform: translateY(calc(100% - 50px));
  transition: transform 0.3s ease;
  z-index: 2;
}

.handle-bar {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.panel-content {
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-height: calc(80vh - 50px);
  overflow-y: auto;
  text-align: center;
}
.panel-content h2 {
  padding-top: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.panel-content p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
  padding-bottom: 30px;
  padding: 0 15px 30px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.feature {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #aeaeae;
}
.feature-img {
  width: 20vw;
  height: 20vw;
  background-color: #aeaeae;
  border-radius: 5px;
  margin-bottom: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* 展开状态 */
.action-panel.expanded {
  transform: translateY(0);
}

.action-panel.expanded .panel-content {
  opacity: 1;
}

/* 控制箭头图标的显示/隐藏 */
.arrow-up {
  display: none;
}

.action-panel.expanded .arrow-up {
  display: block;
}

.action-panel.expanded .arrow-down {
  display: none;
}

.arrow-down {
  display: block;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* 当面板展开时，视频容器移动到顶部 */
.action-panel.expanded ~ .video-container {
  /* transform: translateY(-50%); */
}

.line {
  height: 35px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 10px 0 15px;
}
