/* 首页样式 */ .page-container { min-height: 100vh; background: linear-gradient(180deg, #E8C3D4 0%, #F5E6ED 100%); position: relative; } /* 顶部导航栏已移除,改用全局 unified-header */ .nav-title-text { font-size: 40rpx; font-weight: bold; color: #101828; margin-left:40rpx } /* 内容区域 */ .content-area { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; /* 允许滚动 */ } /* 顶部 Banner */ .banner-section { padding: 20rpx 32rpx 0; } /* 顶部 Banner */ .banner-section { padding: 20rpx 32rpx 0; } .home-banner { width: 100%; border-radius: 24rpx; box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1); display: block; } .story-scroll { padding: 24rpx 0; white-space: nowrap; } .story-list { display: inline-flex; gap: 40rpx; padding: 0 20rpx; } .story-item { display: flex; flex-direction: column; align-items: center; width: 140rpx; } .story-avatar-wrap { position: relative; width: 142rpx; height: 142rpx; } .story-ring { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #DEE2E7 0%, #DBE0E7 100%); box-shadow: 0 31rpx 31rpx rgba(142, 155, 174, 0.2); } .story-avatar { position: absolute; top: 10rpx; left: 10rpx; width: 122rpx; height: 122rpx; border-radius: 50%; border: 4rpx solid #fff; } .story-name { margin-top: 8rpx; font-size: 26rpx; font-weight: 600; color: #1a1a1a; text-align: center; } /* 滑动提示 */ .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 16rpx; padding: 16rpx 0; opacity: 0.6; } .hint-arrow { width: 40rpx; height: 40rpx; opacity: 0.8; } .hint-text { font-size: 32rpx; font-weight: 900; color: #914584; letter-spacing: 4rpx; } /* 卡片堆叠 */ .card-stack { position: relative; width: 100%; height: 1040rpx; display: flex; justify-content: center; margin-top: 16rpx; } .card-next { position: absolute; top: 80rpx; width: 706rpx; height: 724rpx; border-radius: 68rpx; overflow: hidden; transform: scale(0.95); opacity: 0.8; background: #f4f7fb; box-shadow: 0 40rpx 80rpx rgba(59, 64, 86, 0.15); } .card-bg-image { width: 100%; height: 100%; } .card-current { position: absolute; top: 0; width: 706rpx; height: 800rpx; transition: transform 0.1s ease-out; z-index: 10; } .card-current.swipe-left { animation: swipeLeft 0.3s ease-out forwards; } .card-current.swipe-right { animation: swipeRight 0.3s ease-out forwards; } @keyframes swipeLeft { to { transform: translateX(-1000rpx) rotate(-20deg); opacity: 0; } } @keyframes swipeRight { to { transform: translateX(1000rpx) rotate(20deg); opacity: 0; } } .card-inner { position: relative; width: 100%; height: 724rpx; margin-top: 52rpx; border-radius: 68rpx; overflow: hidden; background: #f4f7fb; box-shadow: 0 40rpx 80rpx rgba(59, 64, 86, 0.72); } .card-image { width: 100%; height: 100%; } /* 卡片信息覆盖层 */ .card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 96rpx 48rpx 48rpx; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); } .card-info { color: #fff; } .card-name-row { display: flex; align-items: baseline; gap: 16rpx; margin-bottom: 12rpx; } .card-name { font-size: 52rpx; font-weight: 700; text-shadow: 0 4rpx 8rpx rgba(0,0,0,0.3); } .card-height { font-size: 30rpx; font-weight: 500; opacity: 0.95; } .card-location-row { display: flex; align-items: center; gap: 16rpx; font-size: 26rpx; font-weight: 500; opacity: 0.9; margin-bottom: 20rpx; } .card-divider { opacity: 0.6; } .card-bio { font-size: 28rpx; font-weight: 500; opacity: 0.95; line-height: 1.6; margin-bottom: 20rpx; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-hobbies { font-size: 26rpx; font-weight: 500; opacity: 0.8; margin-bottom: 24rpx; } .card-tags { display: flex; flex-wrap: wrap; gap: 16rpx; } .card-tag { font-size: 22rpx; font-weight: 700; background: rgba(255,255,255,0.25); backdrop-filter: blur(20rpx); padding: 8rpx 20rpx; border-radius: 14rpx; border: 2rpx solid rgba(255,255,255,0.2); } /* 悬浮操作按钮 - 放在卡片和底部导航栏之间 */ .floating-actions { position: fixed; left: 0; right: 0; bottom: 230rpx; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 64rpx; z-index: 50; padding: 0 48rpx; } .action-btn { display: flex; flex-direction: column; align-items: center; gap: 16rpx; flex: 0 0 auto; } .action-btn .action-icon { width: 116rpx; height: 116rpx; background: rgba(0,0,0,0.3); backdrop-filter: blur(20rpx); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3rpx solid rgba(255,255,255,0.3); padding: 28rpx; box-sizing: border-box; box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.4); } /* 爱心按钮 - 白色背景 */ .heart-btn .action-icon { background: #fff; border: 3rpx solid rgba(255,255,255,0.3); box-shadow: 0 8rpx 24rpx rgba(251, 44, 54, 0.3); } /* 声音按钮 - 淡紫色半透明背景 */ .voice-btn .action-icon { background: rgba(145, 69, 132, 0.6); border: 3rpx solid rgba(255,255,255,0.3); box-shadow: 0 8rpx 24rpx rgba(145, 69, 132, 0.4); } .action-btn.liked .action-icon { background: #fff; } .action-label { font-size: 34rpx; font-weight: 900; color: #fff; text-shadow: 0 2rpx 8rpx rgba(0,0,0,0.8), 0 4rpx 12rpx rgba(0,0,0,0.6); letter-spacing: 2rpx; } .select-btn .action-icon { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); } .select-btn.unlocked .action-icon { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); box-shadow: 0 0 0 4rpx #fff; } /* 顶部头像 */ .card-host { position: absolute; top: 14rpx; left: 6rpx; display: flex; align-items: center; gap: 20rpx; z-index: 20; } .host-avatar-wrap { width: 142rpx; height: 142rpx; border-radius: 50%; overflow: hidden; border: 4rpx solid #fff; box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.2); } .host-avatar { width: 100%; height: 100%; } .host-name { font-size: 34rpx; font-weight: 700; color: #fff; text-shadow: 0 4rpx 12rpx rgba(0,0,0,0.4); padding: 20rpx; } /* 空状态 */ .card-empty { position: absolute; top: 80rpx; width: 706rpx; height: 724rpx; border-radius: 68rpx; background: #f4f7fb; box-shadow: 0 40rpx 80rpx rgba(59, 64, 86, 0.15); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48rpx; } .empty-icon-wrap { width: 192rpx; height: 192rpx; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 16rpx 48rpx rgba(0,0,0,0.1); margin-bottom: 32rpx; } .empty-icon-wrap.loading { background: linear-gradient(135deg, #E9D5FF 0%, #FDF2F8 100%); } .empty-icon { width: 80rpx; height: 80rpx; } .empty-icon.rotating { animation: rotate 1.5s linear infinite; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .empty-title { font-size: 40rpx; font-weight: 700; color: #1f2937; margin-bottom: 16rpx; } .empty-desc { font-size: 28rpx; color: #6b7280; margin-bottom: 48rpx; } .refresh-btn { background: #914584; color: #fff; font-size: 36rpx; font-weight: 700; padding: 24rpx 64rpx; border-radius: 100rpx; border: none; box-shadow: 0 16rpx 32rpx rgba(145, 69, 132, 0.3); } /* 弹窗 */ .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; } .modal-content { width: 640rpx; background: #f8f9fc; border-radius: 48rpx; overflow: hidden; } .modal-header { background: #fff; padding: 64rpx 48rpx 40rpx; text-align: center; border-radius: 0 0 60rpx 60rpx; box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.05); margin-bottom: 32rpx; } .modal-avatar-wrap { position: relative; width: 192rpx; height: 192rpx; margin: 0 auto 40rpx; } .modal-avatar { width: 100%; height: 100%; border-radius: 50%; border: 6rpx solid #fff; box-shadow: 0 16rpx 32rpx rgba(0,0,0,0.15); } .modal-lock { position: absolute; bottom: -8rpx; right: -8rpx; width: 48rpx; height: 48rpx; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.15); } .lock-icon { width: 32rpx; height: 32rpx; } .modal-title { font-size: 42rpx; font-weight: 800; color: #111827; line-height: 1.4; } .modal-title .highlight { color: #914584; } .modal-options { padding: 0 40rpx 24rpx; } .option-item { background: #fff; border-radius: 32rpx; padding: 32rpx; display: flex; align-items: center; gap: 28rpx; margin-bottom: 24rpx; box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.05); border: 2rpx solid #f3f4f6; } .option-item.highlight { background: linear-gradient(135deg, #914584 0%, #7a3a6f 100%); border: none; box-shadow: 0 16rpx 32rpx rgba(145, 69, 132, 0.3); } .option-icon { width: 88rpx; height: 88rpx; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .option-icon.grass { background: #dcfce7; } .option-icon.grass image { width: 44rpx; height: 44rpx; } .option-icon.money { background: rgba(255,255,255,0.2); } .money-symbol { font-size: 48rpx; font-weight: 800; color: #fff; } .option-info { flex: 1; } .option-price { font-size: 40rpx; font-weight: 800; color: #111827; display: block; } .option-desc { font-size: 30rpx; font-weight: 600; color: #6b7280; display: block; margin-top: 4rpx; } .option-info.light .option-price, .option-info.light .option-desc { color: #fff; } .option-info.light .option-desc { opacity: 0.95; } .option-btn { background: #f3f4f6; color: #4b5563; font-size: 36rpx; font-weight: 800; padding: 16rpx 40rpx; border-radius: 100rpx; } .option-btn.light { background: #fff; color: #914584; box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1); } .modal-cancel { display: block; text-align: center; font-size: 32rpx; font-weight: 600; color: #9ca3af; padding: 20rpx 0 48rpx; } /* 自定义底部导航栏 - 完全匹配Figma设计 */ .custom-tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 194rpx; background: #fff; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 24rpx; z-index: 999; border-top: 2rpx solid #F3F4F6; } .tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12rpx; width: 150rpx; height: 120rpx; } .tabbar-icon { width: 68rpx; height: 68rpx; } .tabbar-text { font-family: Arial, sans-serif; font-size: 40rpx; font-weight: 700; color: #A58AA5; line-height: 1; } .tabbar-text.active { color: #B06AB3; } .message-icon-wrapper { position: relative; width: 68rpx; height: 68rpx; } .message-icon-wrapper .tabbar-icon { width: 68rpx; height: 68rpx; } .message-dot { position: absolute; top: -8rpx; right: -8rpx; width: 24rpx; height: 24rpx; background: #FB2C36; border: 2rpx solid #fff; border-radius: 50%; } /* 消息数字角标 */ .message-badge { position: absolute; top: -10rpx; right: -16rpx; min-width: 36rpx; height: 36rpx; padding: 0 8rpx; background: #FB2C36; border: 3rpx solid #fff; border-radius: 18rpx; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .message-badge text { font-size: 22rpx; font-weight: 600; color: #fff; line-height: 1; } /* ==================== 解锁弹窗样式 - 完全匹配Figma设计 ==================== */ /* 弹窗遮罩 */ .unlock-popup-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1001; display: flex; align-items: center; justify-content: center; } /* 弹窗主体 */ .unlock-popup { width: 680rpx; background: #F8F9FC; border-radius: 48rpx; overflow: hidden; position: relative; box-shadow: 0 50rpx 100rpx -24rpx rgba(0, 0, 0, 0.25); animation: unlockPopupIn 0.3s ease-out; min-height: 720rpx; } @keyframes unlockPopupIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } /* 关闭按钮 */ .unlock-popup-close { position: absolute; top: 32rpx; right: 32rpx; width: 32rpx; height: 32rpx; display: flex; justify-content: center; align-items: center; opacity: 0.7; z-index: 10; } .unlock-popup-close text { font-size: 40rpx; color: #0A0A0A; line-height: 1; font-weight: 300; } /* 顶部白色区域 */ .unlock-popup-header { background: #fff; padding: 56rpx 48rpx 48rpx; border-radius: 0 0 60rpx 60rpx; box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; } /* 头像容器 */ .unlock-avatar-container { position: relative; width: 192rpx; height: 192rpx; margin-bottom: 40rpx; } .unlock-avatar-wrap { width: 192rpx; height: 192rpx; border-radius: 50%; overflow: hidden; border: 4rpx solid #fff; box-shadow: 0 20rpx 30rpx -6rpx rgba(0, 0, 0, 0.1), 0 8rpx 12rpx -4rpx rgba(0, 0, 0, 0.1); } .unlock-avatar { width: 100%; height: 100%; } /* 锁图标 */ .unlock-lock-icon { position: absolute; bottom: -8rpx; right: -8rpx; width: 56rpx; height: 56rpx; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4rpx 12rpx -2rpx rgba(0, 0, 0, 0.1), 0 8rpx 12rpx -2rpx rgba(0, 0, 0, 0.1); } .unlock-lock-icon image { width: 32rpx; height: 32rpx; } /* 标题 */ .unlock-title { text-align: center; font-size: 42rpx; font-weight: 900; color: #101828; line-height: 1.25; letter-spacing: -0.5rpx; } .unlock-title .highlight { color: #914584; } /* 选项区域 */ .unlock-options { padding: 56rpx 40rpx 64rpx; display: flex; flex-direction: column; gap: 32rpx; } /* 选项卡通用样式 */ .unlock-option-item { display: flex; align-items: center; justify-content: space-between; padding: 0 32rpx; height: 150rpx; border-radius: 32rpx; box-shadow: 0 2rpx 4rpx -2rpx rgba(0, 0, 0, 0.1), 0 2rpx 6rpx rgba(0, 0, 0, 0.1); } .option-left { display: flex; align-items: center; gap: 28rpx; flex: 1; } /* 图标容器 */ .option-icon { width: 96rpx; height: 96rpx; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2rpx 4rpx -2rpx rgba(0, 0, 0, 0.1), 0 2rpx 6rpx 0 rgba(0, 0, 0, 0.1); } /* 分享图标 */ .share-icon { background: #FFF0F5; } .share-icon image { width: 52rpx; height: 52rpx; } /* 爱心图标 */ .hearts-icon { background: #FFF0F5; } .hearts-icon image { width: 52rpx; height: 52rpx; } /* 选项信息 */ .option-info { display: flex; flex-direction: column; gap: 8rpx; flex: 1; min-width: 0; } .option-title { font-size: 36rpx; font-weight: 900; line-height: 1.4; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .option-desc { font-size: 28rpx; font-weight: 700; line-height: 1.5; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 按钮 */ .option-btn { width: 174rpx; height: 100rpx; border-radius: 100rpx; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4rpx 8rpx -4rpx rgba(0, 0, 0, 0.1), 0 8rpx 12rpx -2rpx rgba(0, 0, 0, 0.1); } .option-btn text { font-size: 40rpx; font-weight: 900; letter-spacing: -0.025em; line-height: 1.5; } /* ==================== GF100 弹窗样式 ==================== */ .gf100-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); } .gf100-content { position: relative; width: 62.5%; max-width: 480rpx; animation: gf100In 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } @keyframes gf100In { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } } .gf100-image { width: 100%; display: block; border-radius: 20rpx; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.5); } .gf100-close { position: absolute; top: -80rpx; right: 0; width: 60rpx; height: 60rpx; border: 2rpx solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .close-icon { color: #fff; font-size: 40rpx; line-height: 1; } /* 分享选项 - 粉色背景 */ .share-option { background: #FFF0F5; border: 2rpx solid #FCE7F3; } .share-option .option-title { color: #914584; } .share-option .option-desc { color: #914584; } .share-btn { background: #914584; } .share-btn text { color: #FFFFFF; } /* 爱心选项 - 白色背景 */ .hearts-option { background: #FFFFFF; border: 2rpx solid #F3F4F6; } .hearts-option .option-title { color: #101828; } .hearts-option .option-desc { color: #6A7282; } .hearts-btn { background: #F3F4F6; } .hearts-btn text { color: #4A5565; } /* 暂不需要 */ .unlock-cancel { text-align: center; padding: 24rpx 0 0; } .unlock-cancel text { font-size: 32rpx; font-weight: 700; color: #99A1AF; letter-spacing: 0.5rpx; line-height: 1.5; }