| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- /* 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;
- }
|