/* 笔记信息流专属样式 */

.notes-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.editor-section {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.stream-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 25px;
    min-height: calc(100vh - 150px);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
}

.stream-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.btn-text-delete {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.btn-text-delete:hover {
    background: rgba(255, 77, 79, 0.1);
}

.notes-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 笔记条目样式 */
.note-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s;
    animation: slideIn 0.3s ease-out;
}

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

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #999;
}

.note-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    word-break: break-word;
}

.note-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.btn-note-action {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.btn-note-action:hover {
    background: #eef2ff;
    border-color: #667eea;
    color: #667eea;
}

.btn-note-delete:hover {
    background: #fff1f0;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .notes-layout {
        grid-template-columns: 1fr;
    }
    
    .editor-section {
        position: static;
    }
}
