/* 笔记总览：一行一张卡片（封面 + 标题），风格介于工具网格与 Blog 列表之间。 */

.note-list-page {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem 1.5rem !important;
}

.note-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 52rem;
    margin: 0 auto;
}

.note-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    background-image: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.note-card:hover {
    background: var(--color-surface-hover);
    background-image: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.note-card-cover {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-surface-dim);
}

.note-card-cover img,
.note-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.note-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    font-size: 1.75rem;
    font-weight: 600;
}

.note-card-body h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.note-card:hover .note-card-body h2 {
    color: var(--color-blog-link);
}

.note-card-body .meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.note-post .blog-body-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .note-card {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.65rem;
    }

    .note-card-cover {
        width: 5.5rem;
        height: 5.5rem;
    }

    .note-card-body h2 {
        font-size: 1rem;
    }
}
