/* 现代数据库答题系统 - 重新设计 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #c7d2fe;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #b91c1c;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-alt: #f3f4f6;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 主容器 */
.container {
    background: var(--background);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* 排版样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(to right, #4f46e5, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 当前分数显示 */
.current-score {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: none;
}

.score-badge {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s;
}

.score-badge i {
    color: var(--warning);
    font-size: 1.2rem;
}

.score-badge span {
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
}

/* 应用头部和选择界面 */
.app-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.selection {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 特性卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.feature-card {
    background: var(--background);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* 题号跳转功能 */
.jump-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.jump-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.jump-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.jump-mode-selector {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    width: 100%;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.radio-label:hover {
    color: var(--primary);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.jump-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.jump-btn:hover {
    background: var(--primary-dark);
}

/* 答题界面 */
.quiz-body {
    padding: 30px;
    animation: fadeIn 0.5s;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-header i {
    color: var(--primary);
}

.progress-wrapper {
    min-width: 250px;
}

.progress-text {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

.progress-bar {
    background: var(--background-alt);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(to right, var(--success), var(--primary));
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 问题和选项 */
.question-wrapper {
    background: var(--background-alt);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.question {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 隐藏原生 radio 按钮 */
.options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 选项样式 */
.options label {
    display: flex;
    padding: 15px 20px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    color: var(--text);
    word-wrap: break-word;
    white-space: normal;
}

.options label:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.options input[type="radio"]:checked + label {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.2));
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
    padding-left: 25px;
}

.options input[type="radio"]:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 反馈消息 */
.feedback {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-weight: 500;
    animation: fadeIn 0.5s;
    display: none;
}

.feedback.correct {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-dark);
    border-left: 4px solid var(--success);
    display: block;
}

.feedback.incorrect {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-dark);
    border-left: 4px solid var(--danger);
    display: block;
}

/* 按钮样式 */
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn i {
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.success-btn {
    background: var(--success);
    color: white;
}

.success-btn:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.danger-btn {
    background: var(--danger);
    color: white;
}

.danger-btn:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.outline-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.outline-btn:hover {
    background: var(--background-alt);
    transform: translateY(-2px);
}

/* 结果显示界面 */
.results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    animation: fadeIn 0.5s;
    padding: 30px;
}

.results-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.results-header {
    margin-bottom: 25px;
}

.results-header i {
    font-size: 5rem;
    color: var(--warning);
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.results-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text);
    background: linear-gradient(to right, var(--primary), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(4px);
}

.dialog {
    background: var(--background);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.3s;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dialog-header i {
    font-size: 24px;
    color: var(--warning);
}

.dialog-header h3 {
    margin: 0;
}

.dialog-body {
    margin-bottom: 25px;
}

.dialog-body p {
    margin: 0;
    color: var(--text);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 预习页面样式 */
.review-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.5s;
    padding: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--background);
    z-index: 10;
}

.review-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.review-tabs {
    display: flex;
    gap: 10px;
    margin: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.review-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.review-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.review-section {
    display: none;
    animation: fadeIn 0.5s;
}

.review-section.active {
    display: block;
}

.review-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 10px;
    font-weight: 700;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 预习题目卡片样式 */
.review-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

/* 题目标题样式 */
.review-question {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 选项样式 */
.review-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.review-options div {
    padding: 12px 15px;
    border-radius: 8px;
    background: var(--background-alt);
    font-size: 0.95rem;
    color: var(--text);
}

.review-correct {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-dark) !important;
    font-weight: 600;
    border-left: 3px solid var(--success);
}

/* 答案样式 */
.review-answer {
    padding: 12px 15px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .app-header {
        padding: 25px 15px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-wrapper {
        width: 100%;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 480px) {
    .quiz-body {
        padding: 20px 15px;
    }
    
    .question-wrapper {
        padding: 15px;
    }
    
    .options label {
        padding: 12px 15px;
    }
    
    .review-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .review-tabs {
        margin: 15px;
    }
    
    .review-content {
        padding: 15px;
    }
    
    .dialog {
        width: 90%;
        max-width: none;
        padding: 20px;
    }
    
    .dialog-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* 工具类 */
.hidden {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* 应用题样式 */
.application-item {
    background: white;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.application-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.application-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.application-image {
    margin: 20px 0;
    text-align: center;
}

.application-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.application-answer {
    background: #f8fafc;
    border-left: 4px solid #10b981;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-top: 20px;
}

/* 返回按钮样式 */
.review-back-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    width: 200px;
    text-align: center;
}

.review-back-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

/* 分类标题样式 */
.section-title {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .review-page {
        padding: 10px;
    }

    .review-nav {
        padding: 10px;
        margin: -10px -10px 15px -10px;
    }

    .review-nav-container {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .review-nav-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .review-nav .nav-btn {
        min-width: auto;
        padding: 10px 20px;
        font-size: 14px;
    }

    .review-back-btn {
        bottom: 20px;
        width: 160px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* 对话框遮罩层样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* 对话框样式 */
.dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* 对话框内容样式 */
.dialog p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
}

/* 对话框按钮容器 */
.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* 对话框按钮样式 */
.dialog-btn {
    min-width: 80px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dialog-btn-confirm {
    background: #ef4444;
    color: white;
}

.dialog-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .dialog {
        width: 85%;
        padding: 20px;
        margin: 0;
    }
    
    .dialog-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .dialog-btn {
        flex: 1;
        min-width: 0;
        padding: 12px;
    }
}

/* 预习页面标题 */
.review-page h1 {
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

/* 分类标题样式 */
.section-title {
    margin-top: 30px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .review-content {
        padding: 15px;
        padding-top: 15px;
    }
}

/* 修改二叉树格式化样式 */
.tree-structure {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    white-space: pre-wrap; /* 允许代码换行 */
    word-wrap: break-word; /* 确保长单词可以换行 */
    line-height: 1.2;
    font-size: 14px; /* 移动端字体稍小 */
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    color: #1f2937;
    overflow-x: auto; /* 允许横向滚动 */
    max-width: 100%;
    box-sizing: border-box;
}

/* 修改移动端适配样式 */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px;
        margin: 5px;
        border-radius: 15px;
    }

    .review-page {
        padding: 5px;
    }

    .review-content {
        padding: 5px;
    }

    .application-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .application-text {
        font-size: 14px;
    }

    .review-question {
        font-size: 14px;
    }

    .review-options div {
        padding: 10px;
        font-size: 14px;
    }

    /* 确保按钮在移动端正确显示 */
    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        width: 100%;
        margin: 0;
    }

    /* 修改对话框在移动端的显示 */
    .dialog {
        width: 90%;
        max-width: none;
        padding: 15px;
    }
}

/* 添加全局样式以防止溢出 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* 修改图片样式确保不会溢出 */
img {
    max-width: 100%;
    height: auto;
}

/* 修改选项容器样式 */
.options {
    width: 100%;
    overflow-x: hidden;
}

/* 修改选项标签样式 */
.options label {
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
}

/* AI解释部分样式 */
.ai-explain-section {
    margin: 20px 0;
    padding: 0;
}

.ai-explain-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.ai-explanation {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    position: relative;
    min-height: 100px;
}

.ai-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-spinner {
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--info);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-content {
    line-height: 1.6;
}

.ai-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.ai-content p {
    margin-bottom: 1em;
}

.ai-content h1, .ai-content h2, .ai-content h3, .ai-content h4 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.ai-content ul, .ai-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.ai-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin: 1em 0;
    color: var(--text-light);
}

.ai-content code {
    font-family: monospace;
    background: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

.ai-content pre {
    background: rgba(0,0,0,0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.ai-content pre code {
    background: none;
    padding: 0;
} 