body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0a0a0a;
    color: white;
}

/* 文字省略号 - 单行 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文字省略号 - 两行 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 表单输入框 (毛玻璃块) */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.glass-input:focus-within {
    border-color: #00f2ea;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.dashed-box-neon {
    border: 2px dashed #00f2ea;
    background-color: rgba(0, 242, 234, 0.05);
}

.card-gradient {
    background: linear-gradient(135deg, #ff0050 0%, #990033 100%);
}

.notice-board {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #d4af37;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.animate-scroll-up {
    animation-name: scroll-up;
    animation-duration: 30s; /* 默认值，可被内联样式覆盖 */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: none;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.3s ease-out forwards;
}

input::placeholder {
    color: #666;
}

::-webkit-scrollbar {
    display: none;
}

/* Bounce in animation for modals */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Float up animation for purchase modal */
@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float-up {
    animation: float-up 0.3s ease-out forwards;
}

/* 跑马灯动画 */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation-name: marquee;
    animation-duration: 12s; /* 默认值，可被内联样式覆盖 */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: none;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* 底部购买通知滚动 */
@keyframes marquee-bottom {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee-bottom {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee-bottom 30s linear infinite;
}