/* pages/course_detail/course_detail.wxss */ .detail-container { position: relative; } .banner { width: 750rpx; height: 470rpx; position: absolute; top: 0; left: 0; } .detail-content { margin-top: 450rpx; border-radius: 20rpx; background: #F5F5F5; height: calc(100vh - 470rpx); position: relative; padding: 20rpx; } .title-info { width: 670rpx; height: 216rpx; background: #fff; margin: 0 auto; border-radius: 16rpx 16rpx 16rpx 16rpx; padding: 20rpx; display: flex; flex-direction: column; } .hugo_price { font-weight: 600; font-size: 40rpx; color: #FF6C6C; line-height: 47rpx; height: 56rpx; } .hugo_title { max-height: 88rpx; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 32rpx; line-height: 38rpx; margin-bottom: 16rpx; } .sub_cotnainer { color: rgba(136, 136, 136, 1); font-size: 24rpx; flex: 1; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; justify-content: space-between; border-top: 0.5rpx #F5F5F5 solid; } .sub_cotnainer .sub_title { height: 28rpx; display: inline; overflow: hidden; line-height: 28rpx; max-width: 228rpx; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .sub_cotnainer .sub_time { display: flex; height: 28rpx; line-height: 28rpx; align-items: center; justify-content: center; position: relative; margin-left: 5rpx; } .sub_cotnainer .sub_time .time { width: 20rpx; height: 20rpx; display: block; padding: 2rpx 5rpx 0 8rpx; } .detail_content { margin: 0 auto; margin-top: 20rpx; border-radius: 16rpx 16rpx 16rpx 16rpx; background: #fff; padding: 20rpx; font-weight: 400; font-size: 26rpx; color: #333333; line-height: 30rpx; text-align: left; font-style: normal; text-transform: none; /* min-height: 100vh; */ } .detail_title { height: 40rpx; font-weight: 500; font-size: 28rpx; padding: 20rpx 0; color: #333333; line-height: 33rpx; text-align: left; font-style: normal; text-transform: none; } .bottom_panel { position: fixed; height: 100rpx; bottom: 0; width: 100%; background: #fff; /* 可以通过增加padding-bottom来适配 */ padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/ padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/ display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .bottom_panel .left { margin-left: 32rpx; display: flex; height: 72rpx; text-align: left; flex-direction: column; } .bottom_panel .left .count { --td-countdown-bg-color: #404040; --td-countdown-default-color: #404040; --td-error-color-6: #404040; --td-font-size-s: 20rpx; /* padding-left: 5rpx; */ } .bottom_panel .left .desc { width: 422rpx; height: 34rpx; font-weight: 400; font-size: 24rpx; color: #333333; line-height: 28rpx; text-transform: none; } .bottom_panel .right .btn { --td-button-default-bg-color: #D75F5D; font-size: 28rpx; width: 220rpx; height: 72rpx !important; line-height: 72rpx !important; margin-right: 20rpx; }