Files
MBTI_wang/miniprogram/pages/result/disc.wxss
卡若 ce55c48c64 feat: 同步今日小程序与后台迭代版本
集中提交今日 API、管理端、小程序与部署文档调整,确保 Gitea 主分支与本地最新开发版本一致。

Made-with: Cursor
2026-04-20 11:07:55 +08:00

277 lines
5.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* pages/result/disc.wxssdash 公共样式由 app.wxss 全局引入,避免工具链解析 @import 失败导致白屏) */
.result-page {
width: 100%;
min-height: 100vh;
background-color: #f5f5f5;
}
.content-scroll {
width: 100%;
height: 100vh;
}
.content-container {
padding: 32rpx;
padding-bottom: 64rpx;
}
.content-container--with-fixed-footer {
padding-bottom: calc(64rpx + 220rpx + env(safe-area-inset-bottom));
}
.content-scroll--with-fixed-footer {
height: 100vh;
}
.type-card,
.analysis-card {
background-color: #fff;
border-radius: 24rpx;
padding: 48rpx;
margin-bottom: 32rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
}
.type-header {
text-align: center;
margin-bottom: 40rpx;
}
.type-label {
display: block;
font-size: 32rpx;
color: #333;
}
.type-value {
display: block;
font-size: 56rpx;
font-weight: bold;
color: #8b5cf6;
margin: 16rpx 0;
}
.type-description {
display: block;
font-size: 28rpx;
color: #666;
line-height: 1.6;
}
.section-title,
.card-title {
display: block;
font-size: 34rpx;
font-weight: bold;
color: #333;
margin-bottom: 20rpx;
}
.score-item {
margin-bottom: 18rpx;
}
.score-header {
display: flex;
justify-content: space-between;
margin-bottom: 8rpx;
}
.score-label,
.score-value {
font-size: 28rpx;
color: #666;
}
.progress-bar-container {
width: 100%;
height: 14rpx;
background-color: #e5e5e5;
border-radius: 8rpx;
overflow: hidden;
}
.progress-bar {
height: 100%;
border-radius: 8rpx;
}
.fill-d { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }
.fill-i { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.fill-s { background: linear-gradient(90deg, #10b981 0%, #34d399 100%); }
.fill-c { background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%); }
.trait-section {
margin-bottom: 18rpx;
}
.trait-title {
display: block;
font-size: 30rpx;
color: #333;
margin-bottom: 8rpx;
}
.trait-item {
display: flex;
align-items: flex-start;
margin-bottom: 6rpx;
}
.trait-bullet {
margin-right: 12rpx;
color: #8b5cf6;
}
.trait-text {
flex: 1;
font-size: 28rpx;
color: #666;
line-height: 1.6;
}
.career-item {
display: flex;
align-items: center;
margin-bottom: 16rpx;
}
.career-dot {
width: 14rpx;
height: 14rpx;
background-color: #8b5cf6;
border-radius: 50%;
margin-right: 16rpx;
}
.career-text {
flex: 1;
font-size: 28rpx;
color: #333;
}
.action-section {
margin-top: 16rpx;
padding-bottom: 40rpx;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 100% !important;
padding: 28rpx;
border-radius: 16rpx;
margin-bottom: 20rpx;
border: none;
box-sizing: border-box;
overflow: hidden;
}
.btn::after {
border: none;
}
.btn-primary {
background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%);
box-shadow: 0 8rpx 24rpx rgba(59, 130, 246, 0.3);
}
.btn-outline {
background: #fff;
border: 2rpx solid #3B82F6;
}
.btn-text {
font-size: 32rpx;
font-weight: 600;
color: #fff;
}
.btn-text-outline {
font-size: 30rpx;
color: #3B82F6;
font-weight: 500;
}
.paywall-card { margin-top: 24rpx; border-radius: 24rpx; overflow: hidden; }
.paywall-content { position: relative; min-height: 360rpx; }
.paywall-blur { padding: 32rpx 24rpx 200rpx; border-radius: 24rpx; background: rgba(255,255,255,0.97); backdrop-filter: blur(6rpx); }
.paywall-mask { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 24rpx; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.28) 38%, rgba(255,255,255,0.58) 100%); pointer-events: none; }
.paywall-fake-title { display: block; font-size: 30rpx; font-weight: 600; color: #444; margin-bottom: 16rpx; }
.paywall-fake-line { display: block; font-size: 26rpx; color: #888; line-height: 1.8; }
.paywall-btn { position: absolute; left: 5%; right: 5%; width: 90%; bottom: 132rpx; z-index: 3; padding: 20rpx 0; border-radius: 999rpx; background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%); box-shadow: 0 8rpx 24rpx rgba(59,130,246,0.35); display: flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 12rpx; }
.paywall-btn-main { font-size: 30rpx; color: #fff; font-weight: 600; }
.paywall-btn-price { font-size: 24rpx; color: #ffe5f0; }
.result-share-footer {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 200;
box-sizing: border-box;
width: 100%;
padding: 20rpx 32rpx;
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
background: #f5f5f5;
box-shadow: 0 -8rpx 24rpx rgba(0, 0, 0, 0.06);
display: flex;
flex-direction: column;
gap: 16rpx;
}
.disc-dash-track {
height: 10rpx;
background: #e5e7eb;
border-radius: 6rpx;
overflow: hidden;
}
.disc-dash-fill {
height: 100%;
border-radius: 6rpx;
}
.paywall-btn--inline-profile {
position: relative !important;
left: auto !important;
right: auto !important;
bottom: auto !important;
width: 100% !important;
margin-top: 28rpx;
z-index: 1;
}
.result-share-footer-row2 {
display: flex;
flex-direction: row;
gap: 16rpx;
width: 100%;
}
.result-share-footer-row2 .result-share-footer-btn {
flex: 1;
min-height: 88rpx;
line-height: 88rpx;
}
.result-share-footer-btn {
width: 100% !important;
box-sizing: border-box;
display: block;
margin: 0;
padding: 0;
min-height: 96rpx;
line-height: 96rpx;
border-radius: 999rpx;
font-size: 30rpx;
font-weight: 600;
color: #fff;
background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
border: none;
}
.result-share-footer-btn::after {
border: none;
}