Files
ZhiQiXiaoYuan/pages/course-detail/course-detail.wxss
ChuXun eaab9a762a 1
2025-10-19 20:28:31 +08:00

221 lines
3.3 KiB
Plaintext

/* pages/course-detail/course-detail.wxss */
.container {
padding-bottom: 150rpx;
}
/* 课程头部 */
.course-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 60rpx 30rpx 40rpx;
color: #ffffff;
}
.course-name {
font-size: 40rpx;
font-weight: bold;
margin-bottom: 20rpx;
}
.course-meta {
display: flex;
gap: 15rpx;
}
.meta-tag {
padding: 8rpx 20rpx;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 20rpx;
font-size: 24rpx;
}
/* 信息卡片 */
.info-card {
background-color: #ffffff;
margin: 20rpx 30rpx;
border-radius: 16rpx;
padding: 30rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
}
.info-row {
display: flex;
align-items: center;
padding: 20rpx 0;
border-bottom: 1rpx solid #F5F5F5;
}
.info-row:last-child {
border-bottom: none;
}
.info-icon {
font-size: 36rpx;
margin-right: 20rpx;
}
.info-content {
flex: 1;
display: flex;
justify-content: space-between;
align-items: center;
}
.info-label {
font-size: 28rpx;
color: #999999;
}
.info-value {
font-size: 28rpx;
color: #333333;
font-weight: 500;
}
/* 标签栏 */
.tab-bar {
display: flex;
background-color: #ffffff;
margin: 0 30rpx;
border-radius: 12rpx;
overflow: hidden;
}
.tab-item {
flex: 1;
text-align: center;
padding: 25rpx 0;
font-size: 28rpx;
color: #666666;
transition: all 0.3s;
}
.tab-item.active {
color: #4A90E2;
font-weight: bold;
background-color: #E8F4FF;
}
/* 内容区域 */
.content-area {
margin: 20rpx 30rpx;
}
.tab-content {
background-color: #ffffff;
border-radius: 16rpx;
padding: 30rpx;
}
.section {
margin-bottom: 30rpx;
}
.section:last-child {
margin-bottom: 0;
}
.section-title {
font-size: 32rpx;
font-weight: bold;
color: #333333;
margin-bottom: 20rpx;
padding-left: 20rpx;
border-left: 6rpx solid #4A90E2;
}
.section-content {
font-size: 28rpx;
color: #666666;
line-height: 1.8;
text-align: justify;
}
/* 教学大纲 */
.syllabus-list {
padding-left: 10rpx;
}
.syllabus-item {
display: flex;
align-items: center;
padding: 20rpx;
margin-bottom: 15rpx;
background-color: #F8F9FA;
border-radius: 12rpx;
}
.syllabus-number {
width: 50rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
background-color: #4A90E2;
color: #ffffff;
border-radius: 25rpx;
font-size: 24rpx;
margin-right: 20rpx;
}
.syllabus-text {
flex: 1;
font-size: 28rpx;
color: #333333;
}
/* 空状态 */
.empty-tip {
display: flex;
flex-direction: column;
align-items: center;
padding: 80rpx 0;
}
.empty-icon {
font-size: 100rpx;
margin-bottom: 20rpx;
}
.empty-text {
font-size: 26rpx;
color: #999999;
}
/* 底部操作栏 */
.action-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
gap: 20rpx;
padding: 20rpx 30rpx;
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
background-color: #ffffff;
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
}
.action-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 90rpx;
border-radius: 45rpx;
font-size: 28rpx;
gap: 10rpx;
}
.favorite-btn {
background-color: #FFE8E8;
color: #FF6B6B;
}
.share-btn {
background-color: #E8F4FF;
color: #4A90E2;
}
.btn-icon {
font-size: 32rpx;
}