/* 骨架屏样式 */
.skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffccbc, #f8bbd9, #e1bee7, #c5cae9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.skeleton.fade-out {
    opacity: 0;
    pointer-events: none;
}

.skeleton-content {
    text-align: center;
    color: var(--primary);
}

.skeleton-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.skeleton-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    opacity: 0.9;
}

.skeleton-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 装饰气泡样式 */
.bubble-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.bubble-2 {
    position: absolute;
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 动画类 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.title-fade-in {
    opacity: 0;
    transform: translateY(-20px);
    animation: titleFadeIn 1s forwards;
}

.delay-03 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes titleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 筛选包装器 */
.filter-wrapper {
    position: relative;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .skeleton-logo {
        width: 60px;
        height: 60px;
    }
    
    .skeleton-text {
        font-size: 1rem;
    }
    
    .skeleton-loader {
        width: 150px;
    }
    
    .bubble-1, .bubble-2 {
        display: none;
    }
}

/* 移动端菜单增强样式 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        /* 确保按钮在移动端可见且可点击 */
        position: relative !important;
        z-index: 1700 !important;
        display: flex !important;
        pointer-events: auto !important;
    }
    
    .nav-links {
        /* 确保菜单在移动端正确显示 */
        position: fixed !important;
        z-index: 1600 !important;
        pointer-events: auto !important;
    }
    
    .overlay {
        /* 确保遮罩层正确工作 */
        position: fixed !important;
        z-index: 1500 !important;
        pointer-events: auto !important;
    }
}
