.ai-news-container {
    padding: 20px;
    height: calc(100vh - 80px); /* 减去导航栏高度 */
}

.ai-news-layout {
    display: flex;
    height: 100%;
    gap: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 左侧文件列表部分 */
.file-list-section {
    flex: 0 0 33.333%;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-list-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.file-list-header h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.file-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    background-color: white;
}

.pdf-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.pdf-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.pdf-item:hover {
    background-color: #e9ecef;
}

.pdf-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.pdf-icon {
    margin-right: 12px;
    color: #dc3545;
}

.pdf-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧预览部分 */
.preview-section {
    flex: 0 0 66.666%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.preview-header h2 {
    margin: 0;
    color: #333;
}

.preview-content {
    flex: 1;
    overflow: hidden;
    background-color: #f8f9fa;
}

.preview-content iframe {
    border: none;
    background-color: white;
}

.no-preview-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 16px;
}

.no-files-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-message,
.error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
}

/* PDF预览样式 */
.pdf-preview-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.pdf-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.close-button {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ai-news-container {
        padding: 1rem;
    }

    .pdf-preview-overlay {
        width: 100%;
    }

    .preview-header {
        padding: 0.5rem 1rem;
    }

    .preview-header h2 {
        font-size: 1.2rem;
    }

    .pdf-name {
        font-size: 1rem;
    }

    .loading-message, .error-message, .no-files-message {
        font-size: 1.1rem;
        padding: 1rem;
    }
} 