/* ===== 种草笔记装修块（note_list / note_grid）===== */
.block-note-list, .block-note-grid { margin: 0 auto; }

/* 头部 */
.block-note-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0 14px;
}
.block-note-title {
    font-size: 18px; font-weight: 700; color: var(--saas-text, #1f2937);
    position: relative; padding-left: 12px;
}
.block-note-title::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 16px; border-radius: 2px; background: var(--saas-theme, #1677ff);
}
.block-note-more { font-size: 13px; color: #8a8f99; text-decoration: none; }
.block-note-more:hover { color: var(--saas-theme, #1677ff); }

/* 列表（竖向图文卡） */
.block-note-cards { display: flex; flex-direction: column; gap: 12px; }
.block-note-item {
    display: flex; gap: 12px; background: #fff; border-radius: 12px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s;
}
.block-note-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.block-note-item .block-note-cover {
    width: 132px; min-width: 132px; aspect-ratio: 1; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.block-note-item .block-note-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.block-note-cover-empty { font-size: 32px; color: #d1d5db; }
.block-note-item .block-note-body { flex: 1; padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.block-note-text {
    font-size: 15px; font-weight: 600; color: #1f2937; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.block-note-meta { display: flex; gap: 14px; font-size: 12px; color: #9ca3af; }
.block-note-product {
    display: flex; align-items: center; gap: 8px; margin-top: auto;
    background: #f8fafc; border-radius: 8px; padding: 6px 10px; max-width: 100%;
}
.block-note-product img {
    width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.block-note-product-name {
    font-size: 12px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 瀑布流（两列） */
.block-note-masonry {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.block-note-cell {
    background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s;
}
.block-note-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.block-note-cell .block-note-cover {
    width: 100%; aspect-ratio: 1; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.block-note-cell .block-note-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.block-note-cell .block-note-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.block-note-cell .block-note-text { font-size: 14px; }
.block-note-cell .block-note-product { margin-top: 0; }

/* H5 窄屏微调 */
@media (max-width: 480px) {
    .block-note-title { font-size: 16px; }
    .block-note-masonry { gap: 8px; }
    .block-note-item .block-note-cover { width: 108px; min-width: 108px; }
    .block-note-item .block-note-body { padding: 10px 10px 10px 0; }
}
