Files
geminiWX/wechat-mini-program/pages/index/index.wxss
2025-12-08 14:39:07 +08:00

317 lines
5.6 KiB
Plaintext

.page-container {
padding-bottom: 50rpx;
background-color: var(--background-color);
min-height: 100vh;
}
.header {
background: linear-gradient(135deg, #ffaa33 0%, #ff8800 100%);
padding: 40rpx 40rpx 100rpx 40rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
position: relative;
box-shadow: 0 10rpx 20rpx rgba(255, 153, 0, 0.2);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10rpx;
padding-top: 10rpx;
}
.greeting {
color: rgba(255, 255, 255, 0.9);
font-size: 28rpx;
}
.title-container {
display: flex;
flex-direction: column;
margin-left: 20rpx;
}
.title-sub {
color: rgba(255, 255, 255, 0.95);
font-size: 34rpx;
letter-spacing: 4rpx;
margin-bottom: 8rpx;
font-weight: 500;
text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.1);
}
.title-main {
color: var(--text-white);
font-size: 60rpx;
font-weight: normal;
font-family: "Xingkai SC", "STXingkai", "STKaiti", "KaiTi", "楷体", "cursive";
letter-spacing: 2rpx;
text-shadow: 0 2rpx 6rpx rgba(0,0,0,0.15);
line-height: 1.2;
}
.bell-btn {
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(4px);
padding: 16rpx;
border-radius: 50%;
color: var(--text-white);
font-size: 32rpx;
width: 72rpx;
height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
border: 1rpx solid rgba(255, 255, 255, 0.3);
}
.search-bar {
position: absolute;
bottom: -40rpx;
left: 30rpx;
right: 30rpx;
background-color: var(--surface-color);
border-radius: 30rpx;
padding: 20rpx 30rpx;
display: flex;
align-items: center;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}
.search-bar input {
margin-left: 20rpx;
flex: 1;
font-size: 28rpx;
color: var(--text-main);
}
.search-placeholder {
color: var(--text-light);
}
.content-body {
padding: 60rpx 30rpx 0 30rpx;
}
.banner-swiper-container {
border-radius: 30rpx;
overflow: hidden;
box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.1);
margin-bottom: 40rpx;
}
.banner-swiper {
height: 300rpx;
width: 100%;
}
.banner-item {
width: 100%;
height: 100%;
}
.banner-image {
width: 100%;
height: 100%;
border-radius: 30rpx;
}
.section {
margin-bottom: 40rpx;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
}
.section-title {
font-size: 32rpx;
font-weight: bold;
color: var(--text-main);
}
.see-all {
font-size: 24rpx;
color: var(--text-light);
}
.categories-scroll {
white-space: nowrap;
width: 100%;
}
.category-item {
display: inline-block;
padding: 16rpx 40rpx;
border-radius: 40rpx;
font-size: 28rpx;
margin-right: 20rpx;
font-weight: 500;
background-color: var(--surface-secondary);
color: var(--text-secondary);
transition: all 0.3s;
}
.category-item.active {
background-color: var(--primary-light);
color: var(--primary-color);
}
.projects-list {
display: flex;
flex-direction: column;
gap: 30rpx;
}
.project-card {
background-color: var(--surface-color);
padding: 24rpx;
border-radius: 30rpx;
box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: row;
gap: 24rpx;
}
.project-image {
width: 192rpx;
height: 192rpx;
border-radius: 20rpx;
flex-shrink: 0;
background-color: #eee;
}
.project-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.project-header-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 8rpx;
}
.project-category-tag {
font-size: 20rpx;
color: var(--primary-color);
background-color: var(--primary-light);
padding: 4rpx 12rpx;
border-radius: 8rpx;
white-space: nowrap;
flex-shrink: 0;
}
.project-title {
font-size: 28rpx;
font-weight: bold;
color: var(--text-main);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
flex: 1;
margin-right: 16rpx;
}
.project-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10rpx; /* Ensure space from teacher */
}
.meta-item {
font-size: 20rpx;
color: var(--text-light);
display: flex;
align-items: center;
}
.icon {
margin-right: 4rpx;
}
/* Project Teacher */
.project-teacher {
font-size: 24rpx; /* Slightly larger */
color: var(--text-secondary);
margin-bottom: auto;
margin-top: auto; /* Center vertically in remaining space */
font-weight: 500;
}
/* Student Showcase */
.showcase-scroll {
white-space: nowrap;
width: 100%;
}
.showcase-item {
display: inline-block;
width: 320rpx;
height: 220rpx;
margin-right: 24rpx;
border-radius: 16rpx;
overflow: hidden;
position: relative;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.showcase-image {
width: 100%;
height: 100%;
background-color: #e5e7eb;
}
.showcase-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20rpx 16rpx;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
color: var(--text-white);
display: flex;
flex-direction: column;
}
.showcase-title {
font-size: 26rpx;
font-weight: bold;
margin-bottom: 4rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.showcase-student {
font-size: 20rpx;
opacity: 0.9;
}
.play-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60rpx;
height: 60rpx;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
color: var(--text-white);
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
backdrop-filter: blur(4px);
}