@charset "utf-8";

/* CSS Document */
* {
    box-sizing: border-box;
}
html, body {
	width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; /* 针对 Firefox */
    scrollbar-width: none; /* 针对 IE/Edge 旧版 */
    -ms-overflow-style: none;
	font-family: -apple-system, "Microsoft YaHei", sans-serif;
	background: #fff; 
	border:0;
}

/* 针对 Chrome, Safari, Edge (WebKit内核) */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

        /* 自定义动画关键帧 */
        @keyframes heart-burst {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(0.95); }
            75% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes thumb-burst {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(0.95); }
            75% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes particle-explode {
            0% {
                transform: translate(0, 0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) scale(0);
                opacity: 0;
            }
        }

        @keyframes number-pop {
            0% { transform: scale(1); color: #4b5563; }
            50% { transform: scale(1.4); color: #ef4444; }
            100% { transform: scale(1); color: #4b5563; }
        }

        /* 点赞激活状态类 - 小红心 */
        .like-btn.heart-active.active {
            background-color: #fef2f2;
        }
        .like-btn.heart-active.active svg.heart-icon {
            fill: #ef4444;
            stroke: #ef4444;
            animation: heart-burst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        /* 点赞激活状态类 - 大拇指 */
        .like-btn.thumb-active.active {
            background-color: #eff6ff;
        }
        .like-btn.thumb-active.active svg.thumb-icon {
            fill: #3b82f6;
            stroke: #3b82f6;
            animation: thumb-burst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        /* 粒子样式 */
        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 50;
        }

        /* 数字跳动动画类 */
        .count-pop {
            animation: number-pop 0.3s ease-out;
        }

        /* 按钮点击波纹效果 */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(239, 68, 68, 0.3);
            transform: scale(0);
            animation: ripple-effect 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple-effect {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
        
        /* 禁用状态防止快速连点导致的视觉错乱 */
        .like-btn.processing {
            pointer-events: none;
            opacity: 0.8;
        }