/* pages/video/video.wxss */ .container { display: flex; flex-direction: column; height: 100vh; background-color: #f8f8f8; position: relative; } /* 头部导航样式 */ .nav-container { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: 180rpx; padding-top: 100rpx; background-color: #f8f8f8; box-sizing: border-box; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); } .hello-text { font-size: 34rpx; font-weight: bold; color: #333; position: absolute; left: 30rpx; } .nav-category-scroll { width: 100%; height: 80rpx; white-space: nowrap; } .nav-category-list { display: inline-flex; padding: 0 24rpx; height: 100%; } .nav-category-item { display: flex; align-items: center; justify-content: center; padding: 0 32rpx; height: 100%; font-size: 30rpx; color: #333; position: relative; transition: all 0.3s ease; } .nav-category-item.active { color: #333; font-weight: 500; } .nav-category-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80rpx; height: 6rpx; background: linear-gradient(to right, #007aff, #af97ed); border-radius: 3rpx; } /* 列表容器 */ .list-container { flex: 1; height: calc(100vh - 180rpx); background-color: #f8f8f8; } .list { padding: 20rpx; box-sizing: border-box; } /* 视频卡片样式 */ .video-item { position: relative; margin-bottom: 20rpx; border-radius: 12rpx; overflow: hidden; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05); } .video-item::before{ content: ""; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); z-index: 2; position: absolute; top: 0; left: 0; } .video-cover-container { width: 100%; height: 380rpx; } .video-cover { width: 100%; height: 100%; } .play-button-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; z-index: 3; } .play-button { width: 100rpx; height: 100rpx; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); display: flex; align-items: center; justify-content: center; } .play-button-lock { /* width: 100rpx; */ height: 100rpx; text-align: center; /* display: flex; align-items: center; justify-content: center; */ } .play-button-lock-title { width: 100%; color: yellow; font-weight: 600; } .play-icon { width: 100rpx; height: 100rpx; } .video-title { position: absolute; top: 20rpx; left: 20rpx; font-size: 42rpx; font-weight: bold; color: #fff; margin-bottom: 10rpx; display: -webkit-box; width: 95%; z-index: 3; } .video-play-count { position: absolute; bottom: 20rpx; left: 20rpx; font-size: 36rpx; color: #fff; margin-top: 10rpx; z-index: 3; } .share-button { position: absolute; right: 20rpx; bottom: 20rpx; display: flex; flex-direction: row; align-items: center; justify-content: center; background: #07c160; border-radius: 40rpx; padding: 7rpx 20rpx; z-index: 3; border: 2rpx solid #fff; } .share-icon { width: 48rpx; height: 48rpx; margin-right: 8rpx; } .share-button text { font-size: 28rpx; color: #fff; font-weight: 500; } .share-cover-button { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: 4; padding: 0; margin: 0; border: none; background: transparent; } .share-cover-button::after { display: none; } /* 加载状态样式 */ .loading-status { padding: 30rpx 0; text-align: center; font-size: 28rpx; color: #999; } .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100rpx; } .loading-spinner { width: 40rpx; height: 40rpx; border: 4rpx solid #f3f3f3; border-top: 4rpx solid #07c160; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10rpx; } .finished { height: 80rpx; line-height: 80rpx; color: #999; } .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; } .empty-icon { width: 200rpx; height: 200rpx; margin-bottom: 20rpx; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 刷新按钮 */ .refresh-container { position: fixed; right: 20rpx; bottom: 100rpx; z-index: 1001; width: 120rpx; height: 120rpx; display: flex; align-items: center; justify-content: center; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* 分类切换样式 */ .category-scroll { position: fixed; top: 180rpx; left: 0; width: 100%; height: 88rpx; background-color: #fff; z-index: 100; white-space: nowrap; border-bottom: 1rpx solid #f5f5f5; } .category-list { display: inline-flex; padding: 0 24rpx; height: 100%; } .category-item { display: flex; align-items: center; justify-content: center; padding: 0 32rpx; height: 100%; font-size: 30rpx; color: #333; position: relative; transition: all 0.3s ease; } .category-item.active { color: #333; font-weight: 500; } .category-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 48rpx; height: 6rpx; background-color: #333; border-radius: 3rpx; } .ad-custom-card-1 { width: 100%; /* padding: 0 20rpx; */ box-sizing: border-box; border-radius: 8rpx; margin-bottom: 20rpx; }