   /* 全局样式 */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
            touch-action: manipulation; /* 禁止触摸时的默认缩放/双击行为 */
            list-style: none;
            text-decoration: none;
        }
        
body {
            background-color: #f5f5f5;
            overflow-x: hidden; /* 禁止横向滚动，避免干扰轮播 */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        /* 通用块样式 */
.block {
            width: 80%;
            margin: 0 auto;
        }
        
        /* 导航栏 */
.nav {
            background-color: #333;
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            z-index: 100;
            top: 0;
            margin: 0 auto;
            width: 80%;
           
        }
        
.nav-logo {
            font-size: 1.5rem;
            font-weight: bold;
        }
        
.nav-links {
            display: flex;
            gap: 30px;
        }
        
.nav-links a {
            color: white;
            text-decoration: none;
            font-size: 18px;
        }

.nav-links img {
           width: 1rem;
           height: 16px;
        }

.nav-links>li:nth-of-type(3){
            border-bottom: 2px solid rgb(233, 119, 19);
        }

    /* 导航栏样式 */
    .video-nav {
      clear: both;
      width: 80%;
      max-width: 1400px;
      margin: 80px auto 0;
      display: flex;
      gap: 10px;
      border-bottom: 2px solid #e0e0e0;
    }

    .video-nav-item {
      padding: 8px 15px;
      background-color: #fff;
      border: none;
      border-radius: 6px 6px 0 0;
      font-size: 15px;
      font-weight: 500;
      color: #666;
      cursor: pointer;
      transition: all 0.3s ease;
    }
/* 激活状态的导航按钮 */
    .video-nav-item.active {
      background-color: #e97713;
      color: #fff;
    }

    .video-nav-item:hover:not(.active) {
      background-color: #f8f8f8;
      color: #e97713;
    }

    /* 视频板块容器 */
    .videocar {
      width: 100%;
      padding: 20px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .video-region {
      display: none;
    }

    .video-region.active {
      display: block;
    }

    .videocar-video {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }

    .video {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .video-title {
      font-size: 18px;
      color: #444;
      font-weight: 500;
      background-color: #fff;
      padding: 8px 12px;
      border-radius: 4px;
    }

    /* 核心：16:9播放框 + 响应式宽度 */
    .video-container {
      position: relative;
      width: 100%;
      margin: 0 auto;
      background-color: #000;
      overflow: hidden;
      padding-top: 56.25%;
      cursor: pointer; /* 抖音：视频区域显示手型光标 */
    }

    @media (min-width: 768px) {
      .video-container {
        width: 90%;
      }
    }

    /* 视频样式 */
    .native-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }

    /* 抖音样式播放按钮：核心修改部分 */
    .center-play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 64px; /* 抖音：更小的按钮尺寸 */
      height: 64px;
      border-radius: 50%;
      border: 2px solid #fff; /* 白色边框 */
      background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色背景 */
      color: #fff; /* 白色图标 */
      font-size: 0; /* 隐藏文字，用伪元素做图标 */
      cursor: pointer;
      z-index: 10;
      transition: all 0.2s ease;
      opacity: 1; /* 初始显示 */
    }

    /* 播放三角：用伪元素绘制，比文字更精致 */
    .center-play-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-40%, -50%); /* 三角居中修正 */
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 12px 0 12px 20px; /* 三角尺寸 */
      border-color: transparent transparent transparent #fff; /* 白色三角 */
    }

    /* 暂停状态：替换为双竖线 */
    .center-play-btn.paused::before {
      content: '';
      border: none; /* 清除三角 */
      width: 18px;
      height: 24px;
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }

    .center-play-btn.paused::after {
      content: '';
      width: 6px;
      height: 24px;
      background-color: #fff;
      box-shadow: 12px 0 0 #fff; /* 第二个竖线用阴影实现 */
    }

    /* 播放时隐藏按钮（抖音核心交互） */
    .center-play-btn.hidden {
      opacity: 0;
      pointer-events: none; /* 隐藏后不触发点击 */
    }

    /* 视频控制栏：保留原有样式 */
    .video-controls {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 10px;
      display: flex;
      align-items: center;
      gap: 15px;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
      color: #fff;
      z-index: 10;
      transition: opacity 0.3s ease; /* 新增过渡动画 */
    }
    .video-controls.hidden {
     opacity: 0;
     pointer-events: none; /* 隐藏后不触发点击，避免误操作 */
     transition: opacity 0.3s ease; /* 过渡动画，更丝滑 */
    }


    .progress-container {
      flex: 1;
      height: 6px;
      background-color: rgba(255, 255, 255, 0.3);
      border-radius: 3px;
      cursor: pointer;
    }

    .progress-bar {
      height: 100%;
      width: 0;
      background-color: #e97713;
      border-radius: 3px;
      transition: width 0.1s;
    }

    .time-display {
      font-size: 12px;
      white-space: nowrap;
    }

    .volume-container {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .control-btn {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
    }

    .volume-slider {
      width: 80px;
      height: 6px;
      background-color: rgba(255, 255, 255, 0.3);
      border-radius: 3px;
      cursor: pointer;
    }

    .volume-bar {
      height: 100%;
      width: 80%;
      background-color: #e97713;
      border-radius: 3px;
    }
@media(max-width:768px){
.block{width: 100%;}
.nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
.video-nav{
    margin-top: 120px;
}
.video-container {
        width: 100%;
        max-width: none;
      }

}

