hku-class/miniprogram/app.wxss
2026-05-12 23:10:05 +08:00

369 lines
6.1 KiB
Plaintext

page {
background: #f7f0e8;
color: #2f211c;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
.page {
min-height: 100vh;
box-sizing: border-box;
padding: 28rpx 28rpx 56rpx;
background:
linear-gradient(180deg, #f7f0e8 0%, #fffaf3 42%, #f7f0e8 100%);
}
.hero {
position: relative;
overflow: hidden;
border: 1rpx solid rgba(107, 31, 43, 0.14);
border-radius: 40rpx;
background: linear-gradient(145deg, #6b1f2b 0%, #8a3c2a 68%, #d6a653 135%);
color: #fff8ed;
padding: 38rpx 36rpx;
box-shadow: 0 28rpx 60rpx rgba(73, 31, 24, 0.18);
}
.hero::after {
content: "";
position: absolute;
top: -80rpx;
right: -70rpx;
width: 260rpx;
height: 260rpx;
border: 1rpx solid rgba(255, 248, 237, 0.2);
border-radius: 999rpx;
background: rgba(255, 248, 237, 0.09);
}
.eyebrow {
display: inline-flex;
align-items: center;
min-height: 38rpx;
padding: 0 18rpx;
border: 1rpx solid rgba(255, 248, 237, 0.24);
border-radius: 999rpx;
color: rgba(255, 248, 237, 0.78);
font-size: 20rpx;
font-weight: 600;
letter-spacing: 1rpx;
}
.hero-title {
position: relative;
margin-top: 22rpx;
max-width: 560rpx;
font-size: 44rpx;
font-weight: 750;
line-height: 1.18;
}
.hero-subtitle {
position: relative;
margin-top: 14rpx;
max-width: 520rpx;
color: rgba(255, 248, 237, 0.76);
font-size: 26rpx;
line-height: 1.55;
}
.hero-metrics {
position: relative;
display: flex;
gap: 18rpx;
margin-top: 30rpx;
}
.metric {
flex: 1;
min-height: 112rpx;
box-sizing: border-box;
padding: 18rpx;
border: 1rpx solid rgba(255, 248, 237, 0.16);
border-radius: 24rpx;
background: rgba(255, 255, 255, 0.1);
}
.metric-number {
font-size: 36rpx;
font-weight: 760;
}
.metric-label {
margin-top: 4rpx;
color: rgba(255, 248, 237, 0.68);
font-size: 21rpx;
}
.section {
margin-top: 36rpx;
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18rpx;
}
.section-title {
color: #31211c;
font-size: 32rpx;
font-weight: 760;
}
.section-action {
color: #8b5a36;
font-size: 24rpx;
font-weight: 600;
}
.card {
position: relative;
overflow: hidden;
margin-bottom: 18rpx;
border: 1rpx solid rgba(121, 84, 54, 0.12);
border-radius: 28rpx;
background: rgba(255, 252, 247, 0.94);
padding: 26rpx;
box-shadow: 0 16rpx 42rpx rgba(68, 39, 27, 0.08);
}
.menu-card {
margin-bottom: 16rpx;
border: 1rpx solid rgba(121, 84, 54, 0.1);
border-radius: 26rpx;
background: rgba(255, 252, 247, 0.96);
padding: 24rpx;
}
.chevron {
color: #b09a86;
font-size: 48rpx;
line-height: 1;
}
.mine-class-pill {
position: relative;
display: inline-flex;
align-items: center;
max-width: 560rpx;
min-height: 50rpx;
margin-top: 24rpx;
padding: 0 22rpx;
border: 1rpx solid rgba(255, 248, 237, 0.18);
border-radius: 999rpx;
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 248, 237, 0.9);
font-size: 24rpx;
font-weight: 650;
}
.card-title {
color: #3a221d;
font-size: 30rpx;
font-weight: 700;
line-height: 1.35;
}
.muted {
color: #8a7b70;
font-size: 24rpx;
line-height: 1.55;
}
.grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20rpx;
}
.module-tile {
min-height: 168rpx;
box-sizing: border-box;
border: 1rpx solid rgba(121, 84, 54, 0.12);
border-radius: 30rpx;
background: linear-gradient(180deg, #fffdf8 0%, #fff7ed 100%);
padding: 24rpx;
box-shadow: 0 18rpx 42rpx rgba(68, 39, 27, 0.07);
}
.module-icon {
display: flex;
align-items: center;
justify-content: center;
width: 58rpx;
height: 58rpx;
margin-bottom: 18rpx;
border-radius: 20rpx;
background: #6b1f2b;
color: #fff7ea;
font-size: 24rpx;
font-weight: 760;
}
.module-title {
color: #34211c;
font-size: 29rpx;
font-weight: 720;
}
.module-desc {
margin-top: 10rpx;
color: #8a7b70;
font-size: 23rpx;
line-height: 1.45;
}
.button {
margin-top: 22rpx;
border-radius: 22rpx;
background: #6b1f2b;
color: #fff8ea;
font-weight: 650;
box-shadow: 0 16rpx 34rpx rgba(107, 31, 43, 0.16);
}
.button.secondary {
border: 1rpx solid rgba(121, 84, 54, 0.16);
background: #fffaf3;
color: #6b1f2b;
box-shadow: none;
}
.empty {
margin-top: 120rpx;
text-align: center;
}
.list-row {
display: flex;
align-items: center;
gap: 22rpx;
}
.row-mark {
display: flex;
align-items: center;
justify-content: center;
width: 64rpx;
height: 64rpx;
flex: none;
border-radius: 22rpx;
background: #f1dfc4;
color: #6b1f2b;
font-size: 24rpx;
font-weight: 760;
}
.row-body {
min-width: 0;
flex: 1;
}
.pill {
display: inline-flex;
align-items: center;
min-height: 42rpx;
padding: 0 18rpx;
border-radius: 999rpx;
background: #f2e5d6;
color: #7a4b2b;
font-size: 22rpx;
font-weight: 650;
}
.member-row,
.schedule-row,
.feed-head {
display: flex;
align-items: center;
gap: 22rpx;
}
.more-dot {
flex: none;
min-width: 58rpx;
height: 44rpx;
border-radius: 999rpx;
color: #a7988b;
font-size: 30rpx;
line-height: 36rpx;
text-align: center;
}
.avatar {
display: flex;
align-items: center;
justify-content: center;
width: 82rpx;
height: 82rpx;
flex: none;
border-radius: 30rpx;
background: linear-gradient(145deg, #6b1f2b, #a86b3b);
color: #fff8ed;
font-size: 30rpx;
font-weight: 760;
}
.date-badge {
width: 86rpx;
height: 92rpx;
flex: none;
border-radius: 26rpx;
background: #efe0ca;
color: #6b1f2b;
text-align: center;
}
.date-day {
margin-top: 12rpx;
font-size: 34rpx;
font-weight: 780;
}
.date-month {
margin-top: -2rpx;
font-size: 20rpx;
font-weight: 650;
}
.feed-card {
display: block;
}
.feed-content {
margin-top: 20rpx;
color: #4f3930;
font-size: 27rpx;
line-height: 1.6;
}
.feed-images {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10rpx;
margin-top: 20rpx;
}
.feed-images image {
width: 100%;
height: 150rpx;
border-radius: 18rpx;
background: #efe0ca;
}
.feed-actions {
display: flex;
gap: 24rpx;
margin-top: 20rpx;
color: #8a7b70;
font-size: 24rpx;
}
input,
textarea,
picker {
box-sizing: border-box;
width: 100%;
}