Files
JianSu-Naming/miniprogram/components/charDetail/charDetail.wxss
王鹏 2c47fb8f65 feat: 完善见素起名小程序功能
- 添加收藏锦囊功能,支持查看和删除收藏
- 实现积分系统,每日赠送5次灵感次数
- 添加静心阅读功能,阅读15秒可获得额外次数
- 实现灵感广场,展示用户分享的名字
- 添加字源溯源组件,长按汉字查看详情
- 优化空状态和结语卡片样式统一
- 添加音频控制(静音/风铃/雨落/古琴/白噪音/森林/溪流)
- 优化名字生成逻辑,确保每次返回5个不重复名字
- 修复卡片翻转样式问题
- 移除首页动态提醒气泡
2026-04-18 16:56:31 +08:00

179 lines
2.8 KiB
Plaintext

/* 字源溯源弹窗组件 - 磨砂玻璃风格 */
.char-detail-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}
.char-detail-mask.show {
opacity: 1;
visibility: visible;
}
.char-detail-container {
position: relative;
width: 600rpx;
max-height: 800rpx;
border-radius: 24rpx;
overflow: hidden;
transform: scale(0.9) translateY(20rpx);
transition: all 0.3s ease;
}
.char-detail-container.show {
transform: scale(1) translateY(0);
}
/* 磨砂玻璃背景 */
.glass-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20rpx);
-webkit-backdrop-filter: blur(20rpx);
}
/* 关闭按钮 */
.close-btn {
position: absolute;
top: 20rpx;
right: 20rpx;
width: 48rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 36rpx;
color: #666;
z-index: 10;
}
/* 大字展示 */
.char-display {
position: relative;
padding: 60rpx 0 40rpx;
text-align: center;
border-bottom: 1rpx solid rgba(0, 0, 0, 0.05);
}
.char-text {
font-size: 120rpx;
font-family: 'KaiTi', 'STKaiti', serif;
color: #2D2D2D;
line-height: 1;
}
.char-pinyin {
margin-top: 16rpx;
font-size: 28rpx;
color: #666;
letter-spacing: 4rpx;
}
/* 内容区域 */
.char-content {
position: relative;
max-height: 400rpx;
padding: 30rpx 40rpx;
}
/* 基础信息 */
.info-section {
display: flex;
justify-content: space-around;
padding: 20rpx 0;
margin-bottom: 30rpx;
border-bottom: 1rpx solid rgba(0, 0, 0, 0.05);
}
.info-item {
text-align: center;
}
.info-item .label {
display: block;
font-size: 22rpx;
color: #999;
margin-bottom: 8rpx;
}
.info-item .value {
display: block;
font-size: 28rpx;
color: #333;
font-weight: 500;
}
/* 章节标题 */
.section-title {
font-size: 26rpx;
color: #2D2D2D;
font-weight: 600;
margin-bottom: 16rpx;
padding-left: 16rpx;
border-left: 4rpx solid #B22222;
}
/* 内容文本 */
.meaning-section,
.imagery-section,
.poetry-section {
margin-bottom: 30rpx;
}
.meaning-text,
.imagery-text,
.poetry-text {
font-size: 28rpx;
color: #555;
line-height: 1.8;
text-align: justify;
}
.poetry-text {
font-style: italic;
color: #666;
}
/* AI 按钮 */
.ai-btn {
position: relative;
margin: 0 40rpx 40rpx;
padding: 24rpx 0;
background: linear-gradient(135deg, #2D2D2D 0%, #444 100%);
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
gap: 12rpx;
}
.ai-btn:active {
opacity: 0.9;
}
.ai-icon {
font-size: 28rpx;
color: #fff;
}
.ai-text {
font-size: 28rpx;
color: #fff;
letter-spacing: 4rpx;
}