/* 吉祥物样式 */
.mascot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: mascotFloat 3s ease-in-out infinite;
}

.mascot img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.mascot:hover img {
    transform: scale(1.1) rotate(10deg);
}

/* 第二只吉祥物 */
.mascot-2 {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 70px;
    height: 70px;
    z-index: 998;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: mascotFloat 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* 第三只吉祥物 */
.mascot-3 {
    position: fixed;
    bottom: 50px;
    right: 120px;
    width: 65px;
    height: 65px;
    z-index: 997;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: mascotFloat 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* 第四只吉祥物 */
.mascot-4 {
    position: fixed;
    bottom: 140px;
    right: 140px;
    width: 60px;
    height: 60px;
    z-index: 996;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: mascotFloat 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* 吉祥物漂浮动画 */
@keyframes mascotFloat {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

/* 气泡样式 */
.mascot-speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--theme-secondary, #ffb6c1);
    border-radius: 15px;
    padding: 10px 15px;
    margin-bottom: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.mascot-speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--theme-secondary, #ffb6c1);
}

.mascot-speech-bubble::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
    margin-top: -2px;
    z-index: 1;
}

.mascot:hover .mascot-speech-bubble,
.mascot-2:hover .mascot-speech-bubble,
.mascot-3:hover .mascot-speech-bubble,
.mascot-4:hover .mascot-speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.mascot-speech-bubble p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 投喂按钮 */
.feed-mascot-button {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--theme-primary, #d65db1);
    background: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.feed-mascot-button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.feed-mascot-button:active {
    transform: scale(0.95);
}

/* 字体选择器 */
.font-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--theme-secondary, #ffb6c1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
}

.font-selector h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--theme-text-strong, #a87aaa);
}

.font-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--theme-secondary, #ffb6c1);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-selector select:hover {
    border-color: var(--theme-primary, #d65db1);
    box-shadow: 0 2px 8px rgba(214, 93, 177, 0.2);
}

.font-selector select:focus {
    outline: none;
    border-color: var(--theme-primary, #d65db1);
    box-shadow: 0 0 0 3px rgba(214, 93, 177, 0.1);
}

/* 字体类 */
.font-comic {
    font-family: 'Comic Sans MS', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif !important;
}

.font-cursive {
    font-family: 'Brush Script MT', cursive !important;
}

.font-serif {
    font-family: Georgia, serif !important;
}

.font-monospace {
    font-family: 'Courier New', monospace !important;
}

.font-fantasy {
    font-family: 'Papyrus', fantasy !important;
}

.font-rounded {
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', sans-serif !important;
}

/* 中文字体 */
.font-kaiti {
    font-family: KaiTi, STKaiti, '楷体', serif !important;
}

.font-songti {
    font-family: SimSun, STSong, '宋体', serif !important;
}

.font-yahei {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif !important;
}

.font-fangsong {
    font-family: FangSong, STFangsong, '仿宋', serif !important;
}

.font-heiti {
    font-family: SimHei, STHeiti, '黑体', sans-serif !important;
}

.font-lishu {
    font-family: LiSu, STLiti, '隶书', serif !important;
}

.font-youyuan {
    font-family: YouYuan, '幼圆', sans-serif !important;
}

.font-stxingkai {
    font-family: STXingkai, '华文行楷', cursive !important;
}

/* 英文字体 */
.font-impact {
    font-family: Impact, 'Arial Black', sans-serif !important;
    font-weight: bold;
}

.font-georgia {
    font-family: Georgia, 'Times New Roman', serif !important;
}

.font-palatino {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif !important;
}

.font-trebuchet {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif !important;
}

.font-consolas {
    font-family: Consolas, Monaco, monospace !important;
}

.font-courier {
    font-family: 'Courier New', Courier, monospace !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mascot {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    
    .mascot-2 {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 15px;
    }
    
    .mascot-3 {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 80px;
    }
    
    .mascot-4 {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 90px;
    }
    
    .font-selector {
        top: 60px;
        right: 10px;
        min-width: 160px;
        padding: 10px;
    }
    
    .font-selector h3 {
        font-size: 14px;
    }
    
    .font-selector select {
        font-size: 12px;
        padding: 6px 10px;
    }
}
