/* Custom Styles */

/* 隐藏滚动条但保留功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 动画工具类 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes splashIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-splash-in {
    animation: splashIn 0.8s ease-out forwards;
}

@keyframes shineSweep {
    0% { background-position: -120% 0; }
    100% { background-position: 120% 0; }
}

.splash-shine {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.splash-shine::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.95), rgba(255,255,255,0.05));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shineSweep 1.2s ease-in-out 0.6s 1;
}

@keyframes splashBtnSheen {
    0% { transform: translate3d(-120%, 0, 0); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: translate3d(120%, 0, 0); opacity: 0; }
}

@keyframes splashBtnSheenAuto {
    0% { transform: translate3d(-140%, 0, 0); opacity: 0; }
    12% { transform: translate3d(-140%, 0, 0); opacity: 0; }
    22% { opacity: 0.45; }
    36% { transform: translate3d(140%, 0, 0); opacity: 0; }
    100% { transform: translate3d(140%, 0, 0); opacity: 0; }
}

.splash-enter-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.16), rgba(0,0,0,0) 58%),
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    color: rgba(255,255,255,0.90);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow:
        0 10px 26px rgba(0,0,0,0.35),
        0 0 16px rgba(59, 130, 246, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

@supports (bottom: env(safe-area-inset-bottom)) {
    .splash-enter-btn {
        bottom: calc(16px + env(safe-area-inset-bottom));
        right: calc(16px + env(safe-area-inset-right));
    }
}

.splash-enter-btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, rgba(59,130,246,0.55), rgba(255,255,255,0.22), rgba(239,68,68,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.65;
    pointer-events: none;
}

.splash-enter-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
    width: 45%;
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
    pointer-events: none;
    animation: splashBtnSheenAuto 8s ease-in-out infinite;
}

.splash-enter-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.38),
        0 0 18px rgba(59, 130, 246, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.splash-enter-btn:hover::after {
    animation: splashBtnSheen 1.1s ease forwards;
}

.splash-enter-btn:active {
    transform: scale(0.965);
}

@media (prefers-reduced-motion: reduce) {
    .splash-enter-btn::after {
        animation: none;
    }
}

.is-wechat .splash-enter-btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.35), rgba(15, 23, 42, 0.6));
    border-color: rgba(59, 130, 246, 0.35);
}

.is-wechat .splash-enter-btn::after {
    animation: none;
    display: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
