/* 吉祥物样式 */
.mascot-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.mascot-wrapper {
    position: relative;
    width: 207px;
    height: 243px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-image {
    width: 207px;
    height: 243px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: mascot-float 3s ease-in-out infinite;
}

/* 渐变背景光晕效果 */
.mascot-glow {
    position: absolute;
    width: 280px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(13, 110, 253, 0.15) 0%, rgba(13, 110, 253, 0.05) 30%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
}

/* 浮动动画 */
@keyframes mascot-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 登录页面吉祥物样式 */
.login-mascot-container {
    text-align: center;
    margin-bottom: 15px;
}

.login-mascot {
    width: 207px;
    height: 243px;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 6px 16px rgba(13, 110, 253, 0.25));
}

.login-background-glow {
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* 主页吉祥物容器 - 固定在左边（动画气泡位置） */
.mascot-wrapper-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: inline-block;
}

/* 吉祥物收起按钮 - 固定在右边，AI客服按钮上方 */
.mascot-toggle-wrapper {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99997;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mascot-toggle-label {
    font-size: 12px;
    color: #6c757d;
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 收起状态的小图标按钮 - 固定在右边 */
.mascot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mascot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mascot-toggle-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* 展开的吉祥物 */
.main-page-mascot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 207px;
    height: 243px;
    opacity: 0.85;
    z-index: 9999;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: mascot-float 4s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-page-mascot:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(13, 110, 253, 0.3));
}

/* 收起状态 - 隐藏吉祥物 */
.main-page-mascot.mascot-collapsed {
    display: none;
}

/* 关闭按钮 - 默认隐藏，悬停时显示 */
.mascot-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff4757;
    border: 2px solid white;
    color: white;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10001;
}

.mascot-close-btn:hover {
    background: #ff6b7a;
    transform: scale(1.1);
}

/* 吉祥物容器悬停时显示关闭按钮 */
.mascot-wrapper-fixed:hover .mascot-close-btn {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-page-mascot {
        width: 160px;
        height: 190px;
        bottom: 70px;
        left: 15px;
    }
    
    .mascot-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .mascot-toggle-btn svg {
        width: 25px;
        height: 25px;
    }
    
    /* 调整气泡位置 */
    .bubble {
        bottom: 280px !important;
        left: 80px !important;
    }
}

@media (max-width: 480px) {
    .main-page-mascot {
        display: none;
    }
    
    /* 小屏幕上显示收起按钮 */
    .mascot-toggle-btn {
        width: 50px;
        height: 50px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-page-mascot {
        width: 160px;
        height: 190px;
        bottom: 70px;
        left: 15px;
    }
    
    .mascot-wrapper {
        width: 160px;
        height: 190px;
    }
    
    .mascot-image {
        width: 160px;
        height: 190px;
    }
}

@media (max-width: 480px) {
    .main-page-mascot {
        display: none;
    }
    
    .mascot-wrapper {
        width: 150px;
        height: 180px;
        margin: 10px auto;
    }
    
    .mascot-image {
        width: 150px;
        height: 180px;
    }
}
