/* 布局样式 */

/* 全局布局 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

.container-fluid {
    padding: 1rem;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-text {
    color: #6c757d !important;
    font-weight: 500;
}

/* 主内容区域 */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 三列布局 */
.column-container {
    display: flex;
    gap: 1.5rem;
    min-height: 70vh;
}

.column {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.column:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 列标题 */
.column-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.column-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.column-header .bi {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* 配置列 */
.config-column .column-header {
    color: #198754;
    border-bottom-color: rgba(25, 135, 84, 0.2);
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* 生成列 */
.generate-column .column-header {
    color: #0dcaf0;
    border-bottom-color: rgba(13, 202, 240, 0.2);
}

.generate-section {
    margin-bottom: 1.5rem;
}

/* 预览列 */
.preview-column .column-header {
    color: #fd7e14;
    border-bottom-color: rgba(253, 126, 20, 0.2);
}

.preview-section {
    margin-bottom: 1.5rem;
}

/* 文章预览区域 */
.article-preview-content {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    max-height: 500px;
    overflow-y: auto;
}

.article-preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.article-preview-content h1,
.article-preview-content h2,
.article-preview-content h3,
.article-preview-content h4 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.article-preview-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.article-preview-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
}

.article-preview-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6c757d;
}

.article-preview-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #495057;
}

.article-preview-content ul,
.article-preview-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.article-preview-content li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state .bi {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 历史记录 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.history-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.history-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.history-item-header h6 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    flex: 1;
    line-height: 1.2;
}

.history-item p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

.history-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.history-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 状态徽章样式 */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .column-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .column {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .navbar {
        margin-bottom: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .column {
        padding: 1rem;
    }
    
    .column-header {
        margin-bottom: 1rem;
    }
    
    .article-preview-content {
        padding: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer small {
    color: #6c757d;
    font-weight: 500;
}

/* 文章内容模态框样式 */
.article-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #495057;
}

.article-content ul,
.article-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.article-content li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}