/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
}

/* 页面标题样式 */
header h1 {
    color: #8e44ad;
    font-weight: 700;
}

header p {
    color: #666;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    padding: 1rem 1.5rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: #9b59b6;
    box-shadow: 0 0 0 0.25rem rgba(155, 89, 182, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.btn-outline-primary {
    color: #8e44ad;
    border-color: #8e44ad;
}

.btn-outline-primary:hover {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

/* 分析结果样式 */
.markdown-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4 {
    color: #8e44ad;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.markdown-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

.markdown-content strong {
    color: #e74c3c;
    font-weight: 600;
}

.markdown-content ul, 
.markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote {
    border-left: 4px solid #9b59b6;
    padding: 0.5rem 1rem;
    background-color: rgba(155, 89, 182, 0.1);
    margin: 1rem 0;
    color: #666;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultCard {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .form-label {
        margin-bottom: 0.25rem;
    }
    
    .markdown-content {
        font-size: 1rem;
    }
}

/* 打印样式 */
@media print {
    body * {
        visibility: hidden;
    }
    #resultCard, #resultCard * {
        visibility: visible;
    }
    #resultCard {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .card-footer, #loading {
        display: none !important;
    }
} 