/**
 * 喵喵美化插件 - 前台样式
 * Version: 1.0.0
 */

/* ====================
   全局样式
   ==================== */

/* 可爱主题色 */
:root {
    --miaomiao-primary: #ff6b9d;
    --miaomiao-secondary: #4ecdc4;
    --miaomiao-pink: #fff0f5;
    --miaomiao-coral: #ffe4e1;
}

/* 全局过渡效果 */
.miaomiao-transition {
    transition: all 0.3s ease;
}

/* ====================
   动画效果
   ==================== */

/* 弹跳动画 */
@keyframes miaomiao-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 摇摆动画 */
@keyframes miaomiao-wiggle {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

/* 脉冲动画 */
@keyframes miaomiao-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 闪烁动画 */
@keyframes miaomiao-twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* 浮动动画 */
@keyframes miaomiao-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 旋转动画 */
@keyframes miaomiao-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====================
   特效元素
   ==================== */

/* 爱心特效 */
.miaomiao-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: miaomiao-heart-float 1s ease-out forwards;
}

@keyframes miaomiao-heart-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* 星星特效 */
.miaomiao-star {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: miaomiao-star-twinkle 0.8s ease-out forwards;
}

@keyframes miaomiao-star-twinkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(2) rotate(180deg);
        opacity: 0;
    }
}

/* 气泡特效 */
.miaomiao-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    animation: miaomiao-bubble-rise 1.5s ease-out forwards;
}

@keyframes miaomiao-bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-150px) scale(0);
        opacity: 0;
    }
}

/* ====================
   可爱装饰
   ==================== */

/* 猫咪装饰 */
.miaomiao-cat-decoration {
    position: relative;
}

.miaomiao-cat-decoration::before {
    content: "🐱";
    position: absolute;
    font-size: 1.2em;
}

/* 猫爪装饰 */
.miaomiao-paw-decoration::before {
    content: "🐾";
    margin-right: 5px;
}

/* 花朵装饰 */
.miaomiao-flower-decoration::before {
    content: "🌸";
    margin-right: 5px;
}

/* 星星装饰 */
.miaomiao-star-decoration::before {
    content: "⭐";
    margin-right: 5px;
}

/* ====================
   按钮样式
   ==================== */

/* 可爱按钮 */
.miaomiao-btn-cute {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.miaomiao-btn-cute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 圆形按钮 */
.miaomiao-btn-round {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4 0%, #7fdbda 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miaomiao-btn-round:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ====================
   卡片样式
   ==================== */

/* 可爱卡片 */
.miaomiao-card-cute {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.1);
    border: 2px solid #fff0f5;
    transition: all 0.3s ease;
}

.miaomiao-card-cute:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
}

/* 毛玻璃卡片 */
.miaomiao-card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ====================
   输入框样式
   ==================== */

/* 可爱输入框 */
.miaomiao-input-cute {
    border: 2px solid #ffe4e1;
    border-radius: 25px;
    padding: 12px 20px;
    outline: none;
    transition: all 0.3s ease;
}

.miaomiao-input-cute:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.2);
}

/* ====================
   标签样式
   ==================== */

/* 可爱标签 */
.miaomiao-tag-cute {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    margin: 2px;
}

/* 渐变标签 */
.miaomiao-tag-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    margin: 2px;
}

/* ====================
   提示框样式
   ==================== */

/* 可爱提示框 */
.miaomiao-tooltip-cute {
    position: relative;
}

.miaomiao-tooltip-cute::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b9d;
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.miaomiao-tooltip-cute:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* ====================
   加载动画
   ==================== */

/* 可爱加载 */
.miaomiao-loading-cute {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ffe4e1;
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: miaomiao-spin 1s linear infinite;
}

/* 脉冲加载 */
.miaomiao-loading-pulse {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
    animation: miaomiao-pulse 1s ease-in-out infinite;
}

/* ====================
   响应式适配
   ==================== */

@media (max-width: 768px) {
    .miaomiao-float-buttons {
        bottom: 80px !important;
    }

    .miaomiao-music-player {
        bottom: 10px !important;
        padding: 8px 15px !important;
    }

    .greeting-widget {
        left: 10px !important;
        bottom: 80px !important;
        font-size: 12px !important;
        padding: 10px 15px !important;
    }

    .footer-cat {
        font-size: 40px !important;
    }
}

/* ====================
   暗黑模式适配
   ==================== */

body.dark-mode {
    filter: invert(1) hue-rotate(180deg);
}

body.dark-mode img,
body.dark-mode video {
    filter: invert(1) hue-rotate(180deg);
}

/* ====================
   打印样式
   ==================== */

@media print {

    .miaomiao-float-buttons,
    .miaomiao-music-player,
    .greeting-widget,
    .footer-cat,
    .scroll-progress {
        display: none !important;
    }
}