/*
Theme Name: 小遇主题
Theme URI: https://example.com/
Author: 开发者
Author URI: https://example.com/
Description: 互动文字动画主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xiaoyu
Tags: interactive, animation, custom-colors, responsive-layout
*/

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动画关键帧定义 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotation, 0deg)); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1) rotate(var(--rotation, 0deg)); opacity: 1; }
    50% { transform: scale(1.05) rotate(var(--rotation, 0deg)); opacity: 0.9; }
}

@keyframes rotate-gentle {
    0% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

@keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin-in {
    from { opacity: 0; transform: rotate(-10deg) scale(0.8); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-in {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes fade-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.5); }
}

/* 动画类定义 */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 4s ease-in-out infinite;
}

.animate-rotate-gentle {
    animation: rotate-gentle 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.animate-spin-in {
    animation: spin-in 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slide-in 0.6s ease-out forwards;
}

.animate-bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fade-out {
    animation: fade-out 0.5s ease-in forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .mobile-control-panel {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .text-sm-mobile {
        font-size: 12px;
    }
}

/* WordPress 管理栏适配 */
.admin-bar #mainContainer {
    padding-top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #mainContainer {
        padding-top: 46px;
    }
}

/* 粒子效果基础样式 */
.particle {
    pointer-events: none;
    will-change: transform, opacity;
}