crush-level-web/src/app/globals.css

536 lines
9.3 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "../css/tailwindcss.css";
body {
@apply bg-background-default text-txt-primary-normal;
font-family: var(--font-poppins);
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #888;
}
@utility text-gradient {
background: linear-gradient(135.00deg, rgba(255, 156, 181, 1),rgba(188, 151, 239, 1) 49%,rgba(139, 230, 240, 1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* 水波纹动画 */
@keyframes wave {
0%, 100% {
transform: scaleY(0.4);
}
50% {
transform: scaleY(1);
}
}
/* 语音声波动画 */
@keyframes voice-wave {
0%, 100% {
transform: scaleY(0.3);
}
50% {
transform: scaleY(1);
}
}
.animate-voice-wave {
animation: voice-wave 1s ease-in-out infinite;
}
/* 心动等级变化时的缩放动画 */
@keyframes scale-down {
0% {
transform: scale(1.5);
opacity: 0;
}
50% {
opacity: 0.8;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.animate-scale-down {
animation: scale-down 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animate-delay-100 {
animation-delay: 100ms;
}
.animate-delay-200 {
animation-delay: 200ms;
}
.animate-delay-300 {
animation-delay: 300ms;
}
/* 心形背景消失动画 */
@keyframes scale-fade-out {
0% {
transform: scale(1);
opacity: inherit;
}
100% {
transform: scale(0.3);
opacity: 0 !important;
}
}
.animate-scale-fade-out {
animation: scale-fade-out 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* 心形从小到大并渐隐(用于升级/降级双心叠加) */
@keyframes heart-scale-up-fade {
0% {
transform: scale(0.1);
opacity: 0.2;
}
100% {
transform: scale(0.6);
opacity: 0;
}
}
@keyframes heart-scale-up-fade2 {
0% {
transform: scale(0.5);
opacity: 0.2;
}
100% {
transform: scale(1);
opacity: 0;
}
}
.animate-heart-scale-up-fade {
animation: heart-scale-up-fade2 2.1s ease-out;
}
.animate-heart-scale-up-fade-2 {
animation: heart-scale-up-fade 2.1s ease-out;
}
/* 心形徽章从大缩放到正常尺寸(升级/降级时) */
@keyframes heart-badge-scale-down {
0% {
transform: scale(2);
opacity: 0.8;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.animate-heart-badge-scale-down {
animation: heart-badge-scale-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* 解锁权益浮窗动画 - 升级时从下往上滑入 */
@keyframes unlock-slide-up {
0% {
transform: translateY(100%);
opacity: 0;
}
20% {
opacity: 1;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.animate-unlock-slide-up {
animation: unlock-slide-up 0.5s ease-out forwards;
/* 确保动画结束后保持在正确位置 */
transform: translateY(0);
opacity: 1;
}
/* 解锁权益浮窗动画 - 降级时从上往下滑出 */
@keyframes unlock-slide-down {
0% {
transform: translateY(0);
opacity: 1;
}
100% {
transform: translateY(100%);
opacity: 0;
}
}
.animate-unlock-slide-down {
animation: unlock-slide-down 0.5s ease-in forwards;
}
/* 解锁权益浮窗消失动画 - 3秒后淡出 */
@keyframes unlock-fade-out {
0% {
transform: translateY(0);
opacity: 1;
}
100% {
transform: translateY(-20px);
opacity: 0;
}
}
.animate-unlock-fade-out {
animation: unlock-fade-out 0.3s ease-in forwards;
}
/* 解锁权益浮窗淡入动画 - 降级时直接从原地出现 */
@keyframes unlock-fade-in {
0% {
opacity: 0;
transform: translateY(0);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.animate-unlock-fade-in {
animation: unlock-fade-in 0.3s ease-out forwards;
}
/* 等级数字变化动画 */
@keyframes level-change {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.animate-level-change {
animation: level-change 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 增强版语音声波动画 */
@keyframes voice-wave-enhanced {
0%, 100% {
transform: scaleY(0.4) scaleX(0.95);
opacity: 0.8;
}
25% {
transform: scaleY(0.8) scaleX(1);
opacity: 0.9;
}
50% {
transform: scaleY(1.2) scaleX(1.05);
opacity: 1;
}
75% {
transform: scaleY(0.9) scaleX(1);
opacity: 0.95;
}
}
.animate-voice-wave-enhanced {
animation: voice-wave-enhanced 1s ease-in-out infinite;
transform-origin: center bottom;
}
/* 涟漪扩散效果的语音声波动画 */
@keyframes voice-wave-ripple {
0% {
transform: scaleY(0.3);
opacity: 0.6;
}
15% {
transform: scaleY(0.7);
opacity: 0.8;
}
30% {
transform: scaleY(1.1);
opacity: 1;
}
45% {
transform: scaleY(0.9);
opacity: 0.95;
}
60% {
transform: scaleY(1.0);
opacity: 1;
}
75% {
transform: scaleY(0.8);
opacity: 0.9;
}
100% {
transform: scaleY(0.4);
opacity: 0.7;
}
}
.animate-voice-wave-ripple {
animation: voice-wave-ripple 1.5s ease-in-out infinite;
transform-origin: center center;
}
/* 淡入动画 */
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in {
animation: fade-in 0.8s ease-out forwards;
}
.animate-wave-1 {
animation: wave 1.2s infinite linear;
animation-delay: -1.0s;
}
.animate-wave-2 {
animation: wave 0.8s infinite linear;
animation-delay: -0.9s;
}
.animate-wave-3 {
animation: wave 1.2s infinite linear;
animation-delay: -0.8s;
}
/* React Easy Crop 样式 */
.reactEasyCrop_Container {
position: relative !important;
width: 100%;
height: 100%;
background: transparent;
}
.reactEasyCrop_Container img {
max-width: none;
}
.reactEasyCrop_CropArea {
position: absolute;
border: none !important;
box-sizing: border-box;
cursor: move;
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: '';
position: absolute;
border-left: 1px solid rgba(255, 255, 255, 0.4);
border-right: 1px solid rgba(255, 255, 255, 0.4);
left: 33.33%;
right: 33.33%;
top: 0;
bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: '';
position: absolute;
border-top: 1px solid rgba(255, 255, 255, 0.4);
border-bottom: 1px solid rgba(255, 255, 255, 0.4);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
}
/* 滑块样式 */
.slider {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
.slider::-webkit-slider-track {
background: #4b5563;
height: 8px;
border-radius: 4px;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #3b82f6;
height: 18px;
width: 18px;
border-radius: 50%;
cursor: pointer;
}
.slider::-moz-range-track {
background: #4b5563;
height: 8px;
border-radius: 4px;
border: none;
}
.slider::-moz-range-thumb {
background: #3b82f6;
height: 18px;
width: 18px;
border-radius: 50%;
cursor: pointer;
border: none;
}
/* 头像裁剪弹窗专用样式 */
.zoom-slider {
-webkit-appearance: none;
appearance: none;
cursor: pointer;
height: 4px;
}
.zoom-slider::-webkit-slider-track {
background: rgba(255, 255, 255, 0.2);
height: 4px;
border-radius: 2px;
}
.zoom-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: white;
height: 16px;
width: 16px;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.zoom-slider::-moz-range-track {
background: rgba(255, 255, 255, 0.2);
height: 4px;
border-radius: 2px;
border: none;
}
.zoom-slider::-moz-range-thumb {
background: white;
height: 16px;
width: 16px;
border-radius: 50%;
cursor: pointer;
border: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* 头像裁剪区域样式 */
.avatar-crop-container .reactEasyCrop_CropArea {
border: 2px solid rgba(255, 255, 255, 0.8);
box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.6);
}
/* 等待拨通的圆点动画 */
@keyframes calling-dots {
0%, 80%, 100% {
transform: scale(0.8);
opacity: 0.6;
}
40% {
transform: scale(1.2);
opacity: 1;
}
}
.animate-calling-dots-1 {
animation: calling-dots 1.5s infinite ease-in-out;
animation-delay: 0s;
}
.animate-calling-dots-2 {
animation: calling-dots 1.5s infinite ease-in-out;
animation-delay: 0.5s;
}
.animate-calling-dots-3 {
animation: calling-dots 1.5s infinite ease-in-out;
animation-delay: 1s;
}
.avatar-crop-media {
object-fit: cover;
}
/* Listening状态的三个点动画 */
@keyframes listening-dots {
0%, 20%, 100% {
opacity: 0.3;
}
50% {
opacity: 1;
}
}
.animate-listening-dot-1 {
animation: listening-dots 1.5s infinite ease-in-out;
animation-delay: 0s;
}
.animate-listening-dot-2 {
animation: listening-dots 1.5s infinite ease-in-out;
animation-delay: 0.3s;
}
.animate-listening-dot-3 {
animation: listening-dots 1.5s infinite ease-in-out;
animation-delay: 0.6s;
}
.PhotoView-Slider__BannerWrap {
display: none !important;
}
.PhotoView-Slider__ArrowRight {
display: none !important;
}
.PhotoView-Slider__ArrowLeft {
display: none !important;
}
/* 钻石图标样式 */
.bg-diamond-icon {
background-image: url('/icons/diamond.svg');
}
.swiper-slide-shadow-right, .swiper-slide-shadow-left {
display: none !important;
}