/* style.css */
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
}

.loading { 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.loaded { 
    opacity: 1; 
}

.content-auto {
    content-visibility: auto;
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 93, 255, 0.12);
}

.btn-gradient {
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #165DFF, #4080FF);
}

.nav-shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dropdown-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-hidden {
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.node-option:hover {
    background-color: rgba(22, 93, 255, 0.05);
}

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

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

#node-dropdown {
    max-height: 180px; 
    overflow-y: auto; 
}

/* 悬浮窗样式 */
.feedback-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-modal.active {
    opacity: 1;
    visibility: visible;
}

.feedback-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.feedback-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.feedback-modal.active .feedback-content {
    transform: translateY(0);
}

/* 成功结果动画 */
.result-success {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.copy-btn-hover {
    transition: all 0.2s ease;
}

.copy-btn-hover:hover {
    transform: scale(1.05);
}

.success-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.focus-visible:focus {
    outline: 2px solid #165DFF;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .border-neutral-300 {
        border-color: #000;
    }
    .text-neutral-500 {
        color: #000;
    }
}

/* Tailwind 配置 */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    /* 这里可以添加额外的 Tailwind 工具类 */
}