/* ========== 笔记卡片严格三行布局 ========== */

.note-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    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);
    min-height: 160px;
}

.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.2rem;
}

/* 第一行：标题 */
.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: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 第二行：内容摘要 */
.note-card-summary {
    font-size: 0.9rem;
    color: var(--text-sub, #6b7280);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.note-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    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-date {
    font-size: 0.8rem;
    color: var(--text-sub, #6b7280);
    white-space: nowrap;
    flex-shrink: 0;
}
