/* ========== 笔记卡片完整样式 ========== */

.note-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg, white);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.note-card.pinned {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-color: #667eea;
}

.pinned-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 标题 */
.note-card-header {
    margin-bottom: 8px;
}

.note-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text, #111827);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 内容摘要 */
.note-card-body {
    flex: 1;
    margin-bottom: 12px;
}

.note-card-summary {
    font-size: 0.9rem;
    color: var(--text-sub, #6b7280);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部：标签 + 日期 */
.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.note-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.note-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.note-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.note-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-card-date {
    font-size: 0.8rem;
    color: var(--text-sub, #6b7280);
    white-space: nowrap;
}

/* Grid 布局 */
.notes.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Timeline 布局 */
.notes.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 80px 20px;
}

.empty > div:first-child {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
