/* Tailwind扩展颜色和字体 */
@layer base {
    @font-face {
        font-family: 'Inter';
        src: local('Inter'), url('/fonts/Inter-Regular.woff2') format('woff2');
    }
}

/* 自定义样式 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .scrollbar-hide {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
.animate-pulse-soft {
        animation: pulseSoft 2s infinite;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulseSoft {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
    .fixed-bottom-right {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 50;
    }
    .floating-icon {
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 1rem;
        margin: 0.5rem;
        transition: all 0.3s ease;
    }
    .floating-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    .search-input {
        min-height: 2rem;
        line-height: 1.5;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        resize: none;
        transition: all 0.3s ease;
    }
    .search-input:focus {
        min-height: 6rem;
    }
    .answer-option {
        margin-bottom: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background-color: #f8fafc;
        transition: all 0.2s ease;
    }
    .answer-option:hover {
        background-color: #f1f5f9;
    }
    .logout-btn {
        margin-left: 0.5rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 0.3rem;
        background-color: #f3f4f6;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .logout-btn:hover {
        background-color: #e5e7eb;
        color: #4b5563;
    }
    .user-info-card {
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        box-shadow: 5px 5px 10px #d9d9d9, -5px -5px 10px #ffffff;
        border-radius: 1rem;
        padding: 1.5rem;
        transition: all 0.3s ease;
    }
    .user-info-card:hover {
        box-shadow: 8px 8px 16px #d9d9d9, -8px -8px 16px #ffffff;
    }
    /* 新增刷新按钮样式 */
    .refresh-btn {
        background-color: #f3f4f6;
        color: #4b5563;
        padding: 0.25rem 0.75rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    .refresh-btn:hover {
        background-color: #e5e7eb;
    }
        /* 代码块通用样式 */
    pre {
        background-color: #2d2d2d;
        color: #f8f8f8;
        padding: 15px;
        border-radius: 5px;
        overflow-x: auto;
        font-family: Consolas, Monaco, 'Andale Mono', monospace;
        font-size: 14px;
    }

    .json-key { color: #569cd6; }
    .json-string { color: #ce9178; }
    .json-number { color: #b5cea8; }
    .json-boolean { color: #dcdcaa; }
    .json-null { color: #dcdcaa; }
    .json-bracket { color: #d4d4d4; }
    .json-colon { color: #d4d4d4; }
    .json-comma { color: #d4d4d4; }
    
    
.bind-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bind-status-icon:hover {
    transform: scale(1.1);
}

.bind-status-icon i {
    transition: color 0.2s ease;
}

.bind-status-icon:not([data-binded="true"]):hover i {
    color: #4F46E5 !important; /* 悬停时变为紫色 */
}