156 lines
2.3 KiB
Plaintext
156 lines
2.3 KiB
Plaintext
|
|
/* 分类页面样式 */
|
||
|
|
.container {
|
||
|
|
display: flex;
|
||
|
|
height: 100vh;
|
||
|
|
background: #f5f5f5;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 左侧分类列表 */
|
||
|
|
.category-sidebar {
|
||
|
|
width: 200rpx;
|
||
|
|
height: 100%;
|
||
|
|
background: #fff;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-item {
|
||
|
|
position: relative;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 24rpx 16rpx;
|
||
|
|
background: #f8f8f8;
|
||
|
|
border-bottom: 1rpx solid #eee;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-item.active {
|
||
|
|
background: #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-indicator {
|
||
|
|
position: absolute;
|
||
|
|
left: 0;
|
||
|
|
top: 50%;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
width: 6rpx;
|
||
|
|
height: 50rpx;
|
||
|
|
background: linear-gradient(180deg, #4CAF50, #8BC34A);
|
||
|
|
border-radius: 0 6rpx 6rpx 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-name {
|
||
|
|
font-size: 26rpx;
|
||
|
|
color: #333;
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 6rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-item.active .category-name {
|
||
|
|
color: #4CAF50;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.category-e-name {
|
||
|
|
font-size: 20rpx;
|
||
|
|
color: #999;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 右侧内容区 */
|
||
|
|
.content-area {
|
||
|
|
flex: 1;
|
||
|
|
height: 100%;
|
||
|
|
padding: 20rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: baseline;
|
||
|
|
margin-bottom: 20rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-title {
|
||
|
|
font-size: 32rpx;
|
||
|
|
font-weight: bold;
|
||
|
|
color: #333;
|
||
|
|
margin-right: 16rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-count {
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #999;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 练习表网格 */
|
||
|
|
.worksheet-grid {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
margin: 0 -8rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.worksheet-item {
|
||
|
|
width: calc(50% - 16rpx);
|
||
|
|
margin: 0 8rpx 16rpx;
|
||
|
|
background: #fff;
|
||
|
|
border-radius: 12rpx;
|
||
|
|
overflow: hidden;
|
||
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.worksheet-cover {
|
||
|
|
position: relative;
|
||
|
|
width: 100%;
|
||
|
|
padding-top: 75%;
|
||
|
|
background: #f5f5f5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.cover-img {
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.worksheet-info {
|
||
|
|
padding: 12rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
.worksheet-title {
|
||
|
|
display: block;
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #333;
|
||
|
|
line-height: 1.4;
|
||
|
|
height: 67rpx;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 加载状态 */
|
||
|
|
.load-status {
|
||
|
|
text-align: center;
|
||
|
|
padding: 20rpx 0;
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #999;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 空状态 */
|
||
|
|
.empty-tip {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 80rpx 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-img {
|
||
|
|
width: 160rpx;
|
||
|
|
height: 160rpx;
|
||
|
|
margin-bottom: 16rpx;
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.empty-tip text {
|
||
|
|
font-size: 26rpx;
|
||
|
|
color: #999;
|
||
|
|
}
|