.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.gradient-bg {
    background: linear-gradient(135deg, #165DFF 0%, #0A2463 100%);
}
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.2);
}
/* Ensure grid cards have consistent sizing */
#news-cards-container > article,
#games-cards-container > article {
    min-height: 0;
    min-width: 0;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.zoom-in {
    transition: transform 0.5s ease;
}
.zoom-in:hover {
    transform: scale(1.05);
}
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    img, video, iframe, embed, object {
        max-width: 100%;
        box-sizing: border-box;
    }
    .overflow-x-auto {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-align: center;
}
.category-future-tech { background-color: #3B82F6; }
.category-deep-sea { background-color: #06B6D4; }
.category-surreal-art { background-color: #EC4899; }
.category-smart-tech { background-color: #10B981; }
.category-machine-era { background-color: #F59E0B; }
.category-natural-ecology { background-color: #10B981; }
.category-color-art { background-color: #EF4444; }
.category-quantum-physics { background-color: #84CC16; }
.category-space-opera { background-color: #6366F1; }
.category-urban-night { background-color: #0EA5E9; }
.category-fantasy-fairy { background-color: #D946EF; }
.category-multiverse { background-color: #22D3EE; }
.category-digital-art { background-color: #A855F7; }
.category-space-exploration { background-color: #3B82F6; }
.category-retro-gaming { background-color: #8B5CF6; }

@media (min-width: 768px) {
    .nft-grid-desktop > *:nth-child(n+5) {
        display: none !important;
    }
}

.nft-card .aspect-square > img,
.nft-card > img:first-child {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    -webkit-border-top-left-radius: 0.75rem;
    -webkit-border-top-right-radius: 0.75rem;
    display: block;
}

/* 弹窗打开时锁定背景滚动 */
body.modal-open {
    overflow: hidden !important;
    width: 100%;
    overscroll-behavior: none;
    touch-action: none;
}