Files
JayuCloud/WeChatProgram/pages/artist-profile/index.wxss
T

337 lines
5.0 KiB
Plaintext

.artist-page {
min-height: 100vh;
background: #f6f7fb;
color: #1f2933;
}
.page-header {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
justify-content: space-between;
height: 96rpx;
padding: 0 24rpx;
background: rgba(255, 255, 255, 0.95);
border-bottom: 1rpx solid #e6e9ef;
}
.back-btn,
.header-spacer {
width: 64rpx;
height: 64rpx;
line-height: 58rpx;
text-align: center;
font-size: 48rpx;
}
.page-title {
flex: 1;
overflow: hidden;
text-align: center;
font-size: 32rpx;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.content-scroll {
height: calc(100vh - 96rpx);
}
.state-box {
display: flex;
min-height: 60vh;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20rpx;
padding: 40rpx;
color: #65717f;
}
.state-title {
color: #1f2933;
font-size: 34rpx;
font-weight: 700;
}
.state-desc {
text-align: center;
line-height: 1.6;
}
.primary-btn {
padding: 18rpx 36rpx;
color: #fff;
background: var(--theme-primary-action);
border-radius: 12rpx;
}
.hero {
position: relative;
height: 520rpx;
margin: 20rpx;
overflow: hidden;
background: #222831;
border-radius: 16rpx;
}
.hero-image,
.hero-mask {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
}
.hero-mask {
background: linear-gradient(180deg, rgba(10, 14, 20, 0.08), rgba(10, 14, 20, 0.72));
}
.artist-card {
position: absolute;
right: 28rpx;
bottom: 28rpx;
left: 28rpx;
display: flex;
gap: 22rpx;
align-items: center;
color: #fff;
}
.avatar {
width: 112rpx;
height: 112rpx;
flex: 0 0 auto;
overflow: hidden;
border: 3rpx solid rgba(255, 255, 255, 0.8);
border-radius: 56rpx;
}
.placeholder {
display: flex;
align-items: center;
justify-content: center;
background: #d8dde6;
color: #5f6b7a;
font-weight: 700;
}
.artist-main {
min-width: 0;
}
.artist-name,
.artist-desc,
.shop-link {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.artist-name {
font-size: 44rpx;
font-weight: 800;
}
.artist-desc {
margin-top: 10rpx;
color: rgba(255, 255, 255, 0.88);
font-size: 26rpx;
}
.shop-link {
max-width: 440rpx;
margin-top: 16rpx;
padding: 12rpx 18rpx;
background: rgba(255, 255, 255, 0.18);
border: 1rpx solid rgba(255, 255, 255, 0.28);
border-radius: 12rpx;
}
.metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16rpx;
margin: 0 20rpx 20rpx;
}
.metric-item {
display: flex;
min-height: 132rpx;
flex-direction: column;
justify-content: center;
gap: 10rpx;
padding: 20rpx;
background: #fff;
border: 1rpx solid #e6e9ef;
border-radius: 16rpx;
}
.metric-item text:first-child {
color: #65717f;
font-size: 24rpx;
}
.metric-value {
overflow-wrap: anywhere;
font-size: 34rpx;
font-weight: 800;
}
.section {
margin: 20rpx;
padding: 28rpx;
background: #fff;
border: 1rpx solid #e6e9ef;
border-radius: 16rpx;
}
.section-head {
margin-bottom: 20rpx;
font-size: 32rpx;
font-weight: 800;
}
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 14rpx;
}
.tag {
padding: 10rpx 18rpx;
color: #394554;
background: #eef1f5;
border-radius: 999rpx;
}
.empty-text {
color: #7b8794;
line-height: 1.6;
}
.slot-grid,
.work-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16rpx;
}
.slot {
display: flex;
min-height: 104rpx;
flex-direction: column;
justify-content: center;
gap: 8rpx;
padding: 18rpx;
background: #f6f7fb;
border: 1rpx solid #dfe4ea;
border-radius: 14rpx;
}
.slot text:first-child {
color: #65717f;
font-size: 24rpx;
}
.slot-time {
font-size: 32rpx;
font-weight: 800;
}
.work-card {
overflow: hidden;
background: #fff;
border: 1rpx solid #e6e9ef;
border-radius: 14rpx;
}
.work-card image {
width: 100%;
height: 210rpx;
background: #eef1f5;
}
.work-title,
.work-price {
display: block;
overflow: hidden;
padding: 0 16rpx;
text-overflow: ellipsis;
white-space: nowrap;
}
.work-title {
margin-top: 14rpx;
font-weight: 700;
}
.work-price {
margin: 8rpx 0 16rpx;
color: var(--theme-primary-action);
font-weight: 800;
}
.review-list {
display: flex;
flex-direction: column;
gap: 18rpx;
}
.review-card {
padding: 22rpx;
background: #f8fafc;
border: 1rpx solid #e6e9ef;
border-radius: 14rpx;
}
.review-top {
display: flex;
align-items: center;
gap: 16rpx;
}
.review-avatar {
width: 72rpx;
height: 72rpx;
border-radius: 36rpx;
}
.review-meta {
flex: 1;
min-width: 0;
}
.review-meta text {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.review-meta text:last-child {
margin-top: 4rpx;
color: #7b8794;
font-size: 22rpx;
}
.review-score {
color: var(--theme-primary-action);
font-weight: 800;
}
.review-content {
display: block;
margin-top: 18rpx;
color: #3f4a56;
line-height: 1.7;
white-space: pre-wrap;
}