/* 评价页面布局 */
.evaluation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.evaluation-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.evaluation-header h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.evaluation-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* 毛玻璃效果容器 */
.glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 代码输入区域 */
.code-input-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.code-input-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.code-textarea {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    min-height: 300px;
    resize: vertical;
}

.evaluation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 评价结果区域 */
.evaluation-result-section {
    padding: 2rem;
    margin-bottom: 2rem;
    display: none; /* 初始隐藏 */
}

.evaluation-result-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.evaluation-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.evaluation-result-header h2 {
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

/* 修复评分卡片布局 */
.evaluation-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Markdown内容样式 */
.markdown-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul, 
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content code {
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-size: 85%;
}

.markdown-content pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 1rem;
    overflow: auto;
    margin-bottom: 1rem;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
    font-style: italic;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* 加载状态 */
.evaluation-loading {
    text-align: center;
    padding: 3rem;
    display: none;
}

.evaluation-loading.active {
    display: block;
}

.loading-text {
    margin-top: 1rem;
    color: #6c757d;
}

/* 评价历史 */
.evaluation-history {
    padding: 2rem;
    margin-top: 2rem;
}

.evaluation-history h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: rgba(248, 249, 250, 0.7);
}

.history-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.history-preview {
    color: #6c757d;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-deepseek {
    background-color: #3a86ff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(58, 134, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-deepseek:hover {
    background-color: #2a76ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(58, 134, 255, 0.4);
    color: white;
}

.btn-deepseek:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(58, 134, 255, 0.3);
}

.deepseek-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.deepseek-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* 标签样式 */
.evaluation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .evaluation-container {
        padding: 1rem 0.5rem;
    }
    
    .code-input-section,
    .evaluation-result-section,
    .evaluation-history {
        padding: 1.5rem;
    }
    
    .evaluation-actions {
        flex-direction: column;
    }
    
    .evaluation-metrics {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 1rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    padding-bottom: 2rem;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.navbar-brand {
    font-weight: bold;
    color: #2c3e50 !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db !important;
}

.nav-link.active {
    color: #3498db !important;
    font-weight: 600;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    color: #000000;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: #3498db;
}

.beian-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.contact-info a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #3498db;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 1rem;
    transition: color 0.3s;
    gap: 0.5rem;
}

.social-link:hover {
    color: #3498db;
    text-decoration: none;
}

/* Toast通知样式 */
.toast {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background-color: rgba(52, 152, 219, 0.1);
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .evaluation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .code-textarea {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    footer .row {
        flex-direction: column;
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .navbar-text {
        display: none;
    }
}