/* 📋 笔记卡片三行布局 - 完整版 */
.note-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}
.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}
/* 第一行：标题 */
.note-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 第二行：摘要 */
.note-card-preview {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 4px 0;
}
/* 第三行：标签和日期 */
.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.note-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.note-card-tags .tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.note-card-tags .tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}
.note-card-date {
    font-size: 0.75rem;
    color: var(--text-sub);
    white-space: nowrap;
    opacity: 0.8;
}
/* 悬浮操作按钮 */
.note-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.note-card:hover .note-card-actions {
    opacity: 1;
    transform: translateY(0);
}
.note-action-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-sub);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.note-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: scale(1.05);
}
.note-action-btn span {
    font-size: 0.75rem;
}
/* 标识 */
.note-card.pinned {
    border-left: 4px solid var(--primary);
}
.note-card.pinned::before {
    content: "📌";
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 1.1rem;
}
.note-card.encrypted {
    border-right: 4px solid #eab308;
}
.note-card.encrypted::after {
    content: "🔒";
    position: absolute;
    top: 8px;
    left: 32px;
    font-size: 0.95rem;
}
.note-card.public {
    border-bottom: 3px solid #22c55e;
}
/* 响应式 */
@media (max-width: 768px) {
    .note-card { padding: 12px; min-height: 100px; }
    .note-card-title { font-size: 1rem; }
    .note-card-preview { font-size: 0.85rem; -webkit-line-clamp: 1; }
    .note-card-actions { opacity: 1; }
    .note-action-btn span { display: none; }
}
