:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-card), rgba(102, 126, 234, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

/* 课程卡片 */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.course-card .card-body {
    position: relative;
    z-index: 1;
}

.course-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.course-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-card .level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.level-badge.beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.level-badge.intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.level-badge.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* 数据集卡片 */
.dataset-card {
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
}

.dataset-card .dataset-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.dataset-card:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 代码编辑器 */
.code-editor-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.code-editor-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.code-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.code-editor-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
}

.code-editor-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.status-badge {
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-badge.ready {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    animation: none;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    animation: none;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.btn-editor {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-editor:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-editor.run {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-editor.run:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-editor.clear {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
}

.code-editor-body {
    padding: 0;
}

.code-input {
    width: 100%;
    min-height: 320px;
    padding: 1.25rem;
    background: #ffffff;
    color: #1e293b;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    border-radius: 0;
    tab-size: 4;
}

.code-input:focus {
    outline: none;
    background: #fafafa;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.code-output {
    padding: 1.25rem 1.5rem;
    background: #fafafa;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 160px;
    border-top: 1px solid #e2e8f0;
}

.code-output.success {
    color: #16a34a;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
}

.code-output.error {
    color: #dc2626;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}

/* 章节列表 */
.chapter-list {
    list-style: none;
    padding: 0;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.chapter-item.completed {
    border-left: 4px solid var(--success-color);
}

.chapter-item.in-progress {
    border-left: 4px solid var(--primary-color);
}

.chapter-item.pending {
    border-left: 4px solid var(--border-color);
    opacity: 0.7;
}

.chapter-item .chapter-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.chapter-item .chapter-info {
    flex: 1;
}

.chapter-item .chapter-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.chapter-item .chapter-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.chapter-item .chapter-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 成就徽章 */
.badge-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge-card.unlocked {
    border-color: var(--success-color);
}

.badge-card .badge-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.badge-card.locked .badge-icon {
    filter: grayscale(100%);
}

.badge-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.badge-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* 进度条 */
.progress-bar-container {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* 测评题目 */
.question-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.question-card .question {
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
}

.question-card .options {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.question-card .option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.question-card .option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.question-card .option:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.question-card .option:hover::before {
    background: var(--primary-color);
}

.question-card .option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: translateX(4px);
}

.question-card .option.selected::before {
    background: var(--primary-color);
}

.question-card .option.correct {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    animation: correctPulse 0.5s ease;
}

.question-card .option.correct::before {
    background: var(--success-color);
}

.question-card .option.incorrect {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    animation: shake 0.5s ease;
}

.question-card .option.incorrect::before {
    background: var(--error-color);
}

.question-card .option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.option .option-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option:hover .option-indicator {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.option.selected .option-indicator {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.option.correct .option-indicator {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: scale(1.1);
}

.option.incorrect .option-indicator {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
    transform: scale(1.1);
}

@keyframes correctPulse {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.explanation {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 数据集卡片样式 */
.dataset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.dataset-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dataset-card .dataset-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dataset-card .dataset-icon {
    font-size: 1.5rem;
}

.dataset-card h5 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.dataset-card p {
    margin: 0;
}

.dataset-card .dataset-columns {
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-load-dataset {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-dataset:hover {
    background: var(--secondary-color);
}

.dataset-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-download-dataset {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-download-dataset:hover {
    background: var(--primary-color);
    color: white;
}

/* 解析内容样式 */
.question-card .explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页英雄区 */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: rgba(30, 41, 59, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* 登录模态框 */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

/* 数据集加载成功弹窗样式 */
#datasetLoadedModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

#datasetLoadedModal .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#datasetLoadedModal .checkmark {
    width: 80px;
    height: 80px;
    animation: checkmarkScale 0.5s ease-out 0.2s both;
}

@keyframes checkmarkScale {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

#datasetLoadedModal .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw 0.6s ease-out 0.1s forwards;
}

@keyframes circleDraw {
    to { stroke-dashoffset: 0; }
}

#datasetLoadedModal .checkmark-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkDraw 0.4s ease-out 0.5s forwards;
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

#datasetLoadedModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

#datasetLoadedModal .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#datasetLoadedModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.form-control {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* 理论内容样式 */
.theory-content {
    line-height: 1.8;
}

.theory-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.theory-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.theory-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.theory-content ul, .theory-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.theory-content li {
    margin-bottom: 0.5rem;
}

.theory-content code {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #a5b4fc;
}

/* 小贴士 */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.tips-list li::before {
    content: '💡';
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* 常见错误 */
.errors-list {
    list-style: none;
    padding: 0;
}

.errors-list li {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-left: 4px solid var(--error-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.errors-list li::before {
    content: '⚠️';
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.errors-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.06) 100%);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .nav-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .code-input {
        min-height: 200px;
    }
}
