html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

    .bg-glass {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }

    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .animate-on-scroll {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* 修复模态框样式 */
    .auth-tab-btn {
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
    }

    .auth-tab-btn.active {
        color: #165DFF;
        border-bottom-color: #165DFF;
    }

    .auth-tab-btn:hover {
        color: #165DFF;
    }

    /* 确保模态框内容可见 */
    #auth-modal {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    #auth-modal > div {
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
    }
}