.preview-section {
    flex: 1;
    display: flex;
    height: 100%;
    box-sizing: border-box;
}

.carousel-container {
    height: 100%;
    width: auto;
    aspect-ratio: 3/4;  /* 保持 3:4 的宽高比 */
}

.carousel-slide canvas {
    width: 100% !important;
    height: 100% !important;
    background: transparent;
    object-fit: contain;  /* 保持图片比例 */
}

/* 笔记预览区域样式 */
.note-preview {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    overflow-y: auto;  /* 内容过多时可滚动 */
}

.note-title {
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
}

.note-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.note-tags {
    color: #4a90e2;
    font-size: 14px;
}

.note-comments {
    margin-top: 20px;
}

.comments-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.comment-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-fan {
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 14px;
    color: #333;
}