100 lines
1.7 KiB
Plaintext
100 lines
1.7 KiB
Plaintext
|
|
.category-page {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100vh;
|
||
|
|
background: #f7f8fc;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tab 分类 */
|
||
|
|
.tab-scroll {
|
||
|
|
background: #ffffff;
|
||
|
|
white-space: nowrap;
|
||
|
|
flex-shrink: 0;
|
||
|
|
border-bottom: 1rpx solid #F0F0F0;
|
||
|
|
}
|
||
|
|
.tab-list {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: row;
|
||
|
|
padding: 0 16rpx;
|
||
|
|
}
|
||
|
|
.tab-item {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 28rpx 24rpx;
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #666666;
|
||
|
|
border-bottom: 4rpx solid transparent;
|
||
|
|
white-space: nowrap;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
.tab-item.active {
|
||
|
|
color: #6C8CFF;
|
||
|
|
font-weight: 600;
|
||
|
|
border-bottom-color: #6C8CFF;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 关键词提示 */
|
||
|
|
.keyword-tip {
|
||
|
|
padding: 16rpx 32rpx;
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #888888;
|
||
|
|
background: #FFF8F0;
|
||
|
|
border-bottom: 1rpx solid #FFE5B0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 课程列表 */
|
||
|
|
.course-scroll {
|
||
|
|
flex: 1;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.course-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(2, 1fr);
|
||
|
|
gap: 20rpx;
|
||
|
|
padding: 24rpx 24rpx 0;
|
||
|
|
}
|
||
|
|
.course-card {
|
||
|
|
background: #ffffff;
|
||
|
|
border-radius: 20rpx;
|
||
|
|
overflow: hidden;
|
||
|
|
box-shadow: 0 4rpx 16rpx rgba(108,140,255,0.08);
|
||
|
|
}
|
||
|
|
.course-cover {
|
||
|
|
height: 200rpx;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
.course-cover-emoji {
|
||
|
|
font-size: 72rpx;
|
||
|
|
}
|
||
|
|
.course-info {
|
||
|
|
padding: 20rpx;
|
||
|
|
}
|
||
|
|
.course-title {
|
||
|
|
font-size: 28rpx;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #333333;
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 12rpx;
|
||
|
|
display: -webkit-box;
|
||
|
|
-webkit-line-clamp: 2;
|
||
|
|
-webkit-box-orient: vertical;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.course-meta {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12rpx;
|
||
|
|
margin-bottom: 8rpx;
|
||
|
|
}
|
||
|
|
.course-lessons {
|
||
|
|
font-size: 22rpx;
|
||
|
|
color: #AAAAAA;
|
||
|
|
}
|
||
|
|
.course-duration {
|
||
|
|
font-size: 22rpx;
|
||
|
|
color: #AAAAAA;
|
||
|
|
display: block;
|
||
|
|
}
|