/* 自定义样式 */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Markdown 渲染样式 */
#result h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 0.5rem;
}

#result h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A5F;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

#result h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#result p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #333;
}

#result ul, #result ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#result li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

#result ul li {
    list-style-type: disc;
}

#result ol li {
    list-style-type: decimal;
}

#result strong {
    font-weight: 600;
    color: #1E3A5F;
}

#result code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

#result pre {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

#result pre code {
    background: none;
    padding: 0;
}

/* 风险等级标签样式 */
.risk-high {
    background-color: #FDEDEC;
    color: #C0392B;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.risk-medium {
    background-color: #FEF5E7;
    color: #F39C12;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.risk-low {
    background-color: #E8F8F5;
    color: #27AE60;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 结果区域淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .max-w-7xl {
        max-width: 100%;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}