- 添加收藏锦囊功能,支持查看和删除收藏 - 实现积分系统,每日赠送5次灵感次数 - 添加静心阅读功能,阅读15秒可获得额外次数 - 实现灵感广场,展示用户分享的名字 - 添加字源溯源组件,长按汉字查看详情 - 优化空状态和结语卡片样式统一 - 添加音频控制(静音/风铃/雨落/古琴/白噪音/森林/溪流) - 优化名字生成逻辑,确保每次返回5个不重复名字 - 修复卡片翻转样式问题 - 移除首页动态提醒气泡
369 lines
5.8 KiB
Plaintext
369 lines
5.8 KiB
Plaintext
page {
|
|
background-color: #FAFAFA;
|
|
height: 100%;
|
|
}
|
|
|
|
.container {
|
|
min-height: 100%;
|
|
padding: 0 40rpx 40rpx;
|
|
}
|
|
|
|
/* 顶部标题 */
|
|
.header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 40rpx 0;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.back-btn {
|
|
font-size: 36rpx;
|
|
color: #A0A0A0;
|
|
padding: 20rpx;
|
|
margin-left: -20rpx;
|
|
}
|
|
|
|
.header-title {
|
|
font-family: "Noto Serif SC", serif;
|
|
font-size: 32rpx;
|
|
color: #2D2D2D;
|
|
letter-spacing: 4rpx;
|
|
}
|
|
|
|
.header-spacer {
|
|
width: 76rpx;
|
|
}
|
|
|
|
/* 积分信息 - 克制地放在角落 */
|
|
.credits-bar {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
margin-bottom: 30rpx;
|
|
padding: 0 10rpx;
|
|
}
|
|
|
|
.credits-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
padding: 12rpx 20rpx;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border-radius: 30rpx;
|
|
opacity: 0.7;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.credits-item:active {
|
|
opacity: 1;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.credits-item.watch-ad {
|
|
background: #F5F5F0;
|
|
opacity: 1;
|
|
}
|
|
|
|
.credits-icon {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.credits-text {
|
|
font-size: 22rpx;
|
|
color: #666;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
|
|
/* 收藏列表 */
|
|
.favorites-scroll {
|
|
height: calc(100vh - 200rpx);
|
|
}
|
|
|
|
.favorites-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 30rpx;
|
|
}
|
|
|
|
.favorite-item {
|
|
background: #FFFFFF;
|
|
border-radius: 16rpx;
|
|
padding: 40rpx;
|
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.favorite-item:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.favorite-item .name {
|
|
font-family: "Noto Serif SC", serif;
|
|
font-size: 48rpx;
|
|
color: #2D2D2D;
|
|
margin-bottom: 16rpx;
|
|
letter-spacing: 8rpx;
|
|
}
|
|
|
|
.favorite-item .origin {
|
|
font-size: 24rpx;
|
|
color: #888888;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding-top: 200rpx;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-family: "Noto Serif SC", serif;
|
|
font-size: 120rpx;
|
|
color: #E0E0E0;
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.empty-text {
|
|
font-family: "Noto Serif SC", serif;
|
|
font-size: 32rpx;
|
|
color: #A0A0A0;
|
|
letter-spacing: 4rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.empty-subtext {
|
|
font-size: 24rpx;
|
|
color: #C0C0C0;
|
|
}
|
|
|
|
/* 半屏弹窗 */
|
|
.detail-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
z-index: 100;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.detail-modal.visible {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.detail-content {
|
|
width: 100%;
|
|
background: #FFFFFF;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
padding: 60rpx 50rpx 80rpx;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.detail-modal.visible .detail-content {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.detail-close {
|
|
position: absolute;
|
|
top: 30rpx;
|
|
right: 40rpx;
|
|
font-size: 48rpx;
|
|
color: #C0C0C0;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.detail-name {
|
|
font-family: "Noto Serif SC", serif;
|
|
font-size: 72rpx;
|
|
color: #2D2D2D;
|
|
text-align: center;
|
|
margin-bottom: 30rpx;
|
|
letter-spacing: 16rpx;
|
|
}
|
|
|
|
.detail-origin {
|
|
font-size: 26rpx;
|
|
color: #888888;
|
|
text-align: center;
|
|
margin-bottom: 40rpx;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.detail-desc {
|
|
font-size: 28rpx;
|
|
color: #4A4A4A;
|
|
line-height: 2;
|
|
text-align: justify;
|
|
margin-bottom: 40rpx;
|
|
padding: 0 20rpx;
|
|
}
|
|
|
|
.detail-meta {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 40rpx;
|
|
margin-bottom: 50rpx;
|
|
}
|
|
|
|
.detail-tone, .detail-score {
|
|
font-size: 22rpx;
|
|
color: #A0A0A0;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
|
|
.detail-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 40rpx;
|
|
}
|
|
|
|
.detail-btn {
|
|
padding: 20rpx 60rpx;
|
|
border-radius: 40rpx;
|
|
font-size: 26rpx;
|
|
letter-spacing: 4rpx;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.share-btn {
|
|
background: #2D2D2D;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.share-btn:active {
|
|
background: #1A1A1A;
|
|
}
|
|
|
|
.remove-btn {
|
|
background: #F5F5F5;
|
|
color: #888888;
|
|
}
|
|
|
|
.remove-btn:active {
|
|
background: #E8E8E8;
|
|
}
|
|
|
|
/* 静心阅读全屏页 */
|
|
.meditation-page {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
.meditation-page.visible {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.meditation-close {
|
|
position: absolute;
|
|
top: 60rpx;
|
|
right: 40rpx;
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 48rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
z-index: 10;
|
|
}
|
|
|
|
.meditation-content {
|
|
text-align: center;
|
|
padding: 60rpx;
|
|
}
|
|
|
|
.meditation-title {
|
|
font-size: 32rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
letter-spacing: 8rpx;
|
|
margin-bottom: 80rpx;
|
|
}
|
|
|
|
.meditation-poem {
|
|
margin-bottom: 60rpx;
|
|
}
|
|
|
|
.poem-text {
|
|
display: block;
|
|
font-family: "KaiTi", "STKaiti", serif;
|
|
font-size: 56rpx;
|
|
color: #ffffff;
|
|
line-height: 1.8;
|
|
letter-spacing: 8rpx;
|
|
margin-bottom: 40rpx;
|
|
text-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.poem-author {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
letter-spacing: 4rpx;
|
|
}
|
|
|
|
.meditation-hint {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
letter-spacing: 4rpx;
|
|
margin-top: 60rpx;
|
|
}
|
|
|
|
.meditation-progress {
|
|
position: absolute;
|
|
bottom: 100rpx;
|
|
left: 80rpx;
|
|
right: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.progress-bar {
|
|
flex: 1;
|
|
height: 4rpx;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 2rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 2rpx;
|
|
transition: width 0.15s linear;
|
|
}
|
|
|
|
.progress-text {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
min-width: 60rpx;
|
|
text-align: right;
|
|
}
|