/* ============================================================
   瀑布流样式 — Waterfall Layout Styles
   适配 luxetalkclub 主题设计规范（绿色主色、圆角卡片、现代风格）
   ============================================================ */

/* ===== 瀑布流容器 ===== */
.waterfall-root {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.waterfall-root [hidden] {
    display: none !important;
}

[data-waterfall-surface] {
    position: relative;
    overflow: visible;
    width: 100%;
    column-count: 6;
    column-gap: 20px;
}

@media (max-width: 1400px) {
    [data-waterfall-surface] { column-count: 5; }
}

@media (max-width: 1200px) {
    [data-waterfall-surface] { column-count: 4; }
}

@media (max-width: 1024px) {
    [data-waterfall-surface] { column-count: 3; }
}

@media (max-width: 768px) {
    [data-waterfall-surface] { column-count: 2; column-gap: 14px; }
}

@media (max-width: 480px) {
    [data-waterfall-surface] { column-count: 1; }
}

/* ===== 骨架屏 ===== */
[data-waterfall-skeleton] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0;
}

@media (max-width: 1400px) {
    [data-waterfall-skeleton] { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
    [data-waterfall-skeleton] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    [data-waterfall-skeleton] { grid-template-columns: repeat(3, 1fr); }
}

.wf-item-shell {
    break-inside: avoid;
    margin-bottom: 20px;
}

.wf-item-shell--story {
    cursor: pointer;
}
@media (max-width: 768px) {
    [data-waterfall-skeleton] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    [data-waterfall-skeleton] { grid-template-columns: 1fr; }
}

.wf-skeleton-card {
    position: relative;
    aspect-ratio: 0.75;
    border-radius: 15px;
    background: var(--bg-card3, #f0f2f4);
    overflow: hidden;
}

[data-theme="dark"] .wf-skeleton-card {
    background: var(--bg-card, #272E33);
}

.wf-skeleton-card__shimmer {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: wfShimmer 1.2s ease-in-out infinite;
}

[data-theme="dark"] .wf-skeleton-card__shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

@keyframes wfShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== 分类标签栏 ===== */
.waterfall-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}

.waterfall-category-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
    padding: 4px 0;
    flex: 1;
}

.waterfall-category-track:active {
    cursor: grabbing;
}

.waterfall-category-track::-webkit-scrollbar {
    display: none;
}

.waterfall-category-chip {
    flex: 0 0 auto;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #E2E8F0);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-primary, #333333);
    white-space: nowrap;
    line-height: normal;
}

[data-theme="dark"] .waterfall-category-chip {
    border-color: #4A5F4B;
}

.waterfall-category-chip:hover {
    background: var(--primary-color-hover, #0FDE7A);
    border-color: var(--primary-color-hover, #0FDE7A);
    color: #ffffff;
}

.waterfall-category-chip:active {
    background-color: var(--primary-color-active, #0E8C0E);
    transform: scale(0.95);
}

.waterfall-category-chip.is-active {
    background: var(--primary-color, #0DC46C);
    color: #ffffff;
    border-color: var(--primary-color, #0DC46C);
}

@media (max-width: 768px) {
    .waterfall-category-chip {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .waterfall-category-chip {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ===== 场景卡 ===== */
.wf-scene-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #E2E8F0);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.wf-scene-card.has-anchors,
.wf-scene-card.has-anchors .wf-scene-card__media {
    overflow: visible;
}

.wf-scene-card.has-anchors .wf-scene-card__image,
.wf-scene-card.has-anchors .wf-scene-card__video-shell {
    border-radius: 15px;
}

.wf-scene-card.has-anchors:hover {
    z-index: 30;
}

.wf-scene-card.is-anchor-popup-active,
.masonry-item-shell.is-anchor-popup-active {
    z-index: 30;
}

.masonry-item-shell:has(.wf-scene-card.has-anchors:hover) {
    z-index: 30;
}

.wf-scene-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .wf-scene-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wf-scene-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.wf-scene-card__image {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--bg-card, #f3f4f6);
    min-height: 120px;
    transition: transform 0.3s ease;
}

.wf-scene-card:hover .wf-scene-card__image {
    transform: scale(1.05);
}

/* Video */
.wf-scene-card__video-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    background-color: var(--bg-card, #f3f4f6);
}

.wf-scene-card__video-cover {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.wf-scene-card:hover .wf-scene-card__video-cover {
    transform: scale(1.03);
}

.wf-scene-card__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wf-scene-card__video-shell.is-playing .wf-scene-card__video {
    opacity: 1;
}

.wf-scene-card__video-shell.is-playing .wf-scene-card__video-cover {
    opacity: 0;
}

.wf-scene-card__video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.wf-scene-card__video-loading-spinner {
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wfSpin 0.8s linear infinite;
}

@keyframes wfSpin {
    to { transform: rotate(360deg); }
}

.wf-scene-card__video-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.36);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: background 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    z-index: 5;
}

.wf-scene-card__video-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 17px solid #ffffff;
}

/* ===== 用户心得卡 ===== */
.wf-story-card {
    overflow: hidden;
    border-radius: 15px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #E2E8F0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wf-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .wf-story-card {
    background: var(--bg-card, #272E33);
    border-color: #3A454C;
}

.wf-story-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.74;
    object-fit: cover;
    background: var(--bg-card3, #f0f2f4);
}

.wf-story-card__body {
    padding: 14px;
}

.wf-story-card__meta,
.wf-story-modal__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wf-story-card__avatar,
.wf-story-modal__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.wf-story-card__avatar--placeholder,
.wf-story-modal__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #0DC46C);
    color: #fff;
    font-weight: 700;
}

.wf-story-card__author,
.wf-story-modal__author {
    min-width: 0;
    flex: 1;
    color: var(--text-secondary, #64748B);
    font-size: 13px;
}

.wf-story-card__rating,
.wf-story-modal__rating {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 700;
}

.wf-story-card__title {
    margin: 0 0 8px;
    color: var(--text-primary, #111827);
    font-size: 17px;
    line-height: 1.28;
    font-weight: 700;
}

.wf-story-card__excerpt {
    margin: 0;
    color: var(--text-secondary, #64748B);
    font-size: 14px;
    line-height: 1.45;
}

.wf-story-card__button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-color, #0DC46C);
    font-weight: 700;
    cursor: pointer;
}

.wf-story-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.wf-story-card__footer .wf-story-card__button {
    margin-top: 0;
}

.wf-story-card__likes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary, #64748B);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wf-story-card__likes .wf-story-action__icon {
    width: 15px;
    height: 15px;
}

/* ===== 心得详情弹窗 ===== */
.wf-story-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.56);
}

.wf-story-modal.is-open {
    display: flex;
}

.wf-story-modal-open {
    overflow: hidden;
}

.wf-story-modal__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.8fr);
    width: min(1540px, calc(100vw - 56px));
    height: min(860px, calc(100vh - 56px));
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .wf-story-modal__dialog {
    background: var(--bg-card, #272E33);
}

.wf-story-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.38);
    color: #fff;
    font-size: 30px;
    line-height: 42px;
    cursor: pointer;
}

.wf-story-modal__media {
    position: relative;
    min-height: 0;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-story-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
}

.wf-story-modal__counter {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 10px 18px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.wf-story-modal__nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 34px;
    line-height: 42px;
    cursor: pointer;
    transform: translateY(-50%);
}

.wf-story-modal__nav--prev { left: 18px; }
.wf-story-modal__nav--next { right: 18px; }

.wf-story-modal__panel {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #fff);
}

.wf-story-modal__scroll {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 26px 28px;
}

.wf-story-modal__title {
    margin: 0 0 14px;
    color: var(--text-primary, #111827);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.wf-story-modal__content {
    color: var(--text-secondary, #475569);
    font-size: 16px;
    line-height: 1.7;
}

.wf-story-modal__related,
.wf-story-modal__comments {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary, #E2E8F0);
}

.wf-story-modal__related h3,
.wf-story-modal__comments h3 {
    margin: 0 0 14px;
    color: var(--text-primary, #111827);
    font-size: 16px;
    font-weight: 800;
}

.wf-story-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.wf-story-product img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-card3, #f0f2f4);
}

.wf-story-product__info {
    min-width: 0;
}

.wf-story-product__info h4 {
    margin: 0 0 8px;
    color: var(--text-primary, #111827);
    font-size: 15px;
    line-height: 1.35;
}

.wf-story-product__info strong {
    color: #EF3340;
    font-size: 17px;
}

.wf-story-product__buy {
    padding: 10px 18px;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 8px;
    color: var(--text-primary, #111827);
    font-weight: 800;
    text-decoration: none;
}

.wf-story-comment {
    padding: 10px 0;
}

.wf-story-comment strong {
    color: var(--text-primary, #111827);
    font-size: 14px;
}

.wf-story-comment p,
.wf-story-empty {
    margin: 6px 0 0;
    color: var(--text-secondary, #64748B);
    font-size: 14px;
    line-height: 1.45;
}

.wf-story-share {
    margin: 0 28px 14px;
    padding: 16px;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 12px;
    background: var(--bg-card2, #F8FAFC);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .wf-story-share {
    background: var(--bg-card3, #1F2933);
}

.wf-story-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 48px;
}

.wf-story-share__header strong {
    color: var(--text-primary, #111827);
    font-size: 16px;
    font-weight: 800;
}

.wf-story-share__header button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary, #64748B);
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}

.wf-story-share__hint {
    margin: 8px 0 14px;
    color: var(--text-secondary, #64748B);
    font-size: 13px;
    line-height: 1.45;
}

.wf-story-share__options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.wf-story-share-option {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #111827);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wf-story-share-option:hover,
.wf-story-share-option--primary {
    border-color: var(--primary-color, #0DC46C);
    color: var(--primary-color, #0DC46C);
}

.wf-story-share-option .wf-story-action__icon {
    width: 18px;
    height: 18px;
}

.wf-story-share__copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.wf-story-share__copy input {
    min-width: 0;
    height: 42px;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 8px;
    padding: 0 12px;
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #64748B);
    font-size: 13px;
}

.wf-story-share__copy button {
    min-width: 96px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color, #0DC46C);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wf-story-share__status {
    margin-top: 10px;
    color: var(--primary-color, #0DC46C);
    font-size: 13px;
    font-weight: 700;
}

.wf-story-modal__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-top: 1px solid var(--border-primary, #E2E8F0);
}

.wf-story-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: var(--text-primary, #111827);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.wf-story-action.is-active {
    color: var(--primary-color, #0DC46C);
}

.wf-story-action__icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.wf-story-action span {
    font-size: 17px;
}

.wf-story-comment-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid var(--border-primary, #E2E8F0);
}

.wf-story-comment-box textarea {
    min-height: 64px;
    resize: vertical;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary, #111827);
    font-size: 15px;
}

.wf-story-comment-box button {
    border: 0;
    background: transparent;
    color: #ff7a00;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 640px) {
    .wf-story-modal {
        padding: 12px;
    }

    .wf-story-modal__dialog {
        grid-template-columns: 1fr;
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
    }

    .wf-story-modal__media {
        min-height: 42vh;
    }

    .wf-story-modal__title {
        font-size: 22px;
    }

    .wf-story-modal__scroll,
    .wf-story-modal__actions,
    .wf-story-comment-box {
        padding: 18px;
    }

    .wf-story-share {
        margin: 0 18px 12px;
        padding: 14px;
    }

    .wf-story-share__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wf-story-product {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .wf-story-product__buy {
        grid-column: 2;
        justify-self: start;
    }
}

.wf-scene-card__video-toggle:hover {
    background: var(--primary-color, #0DC46C);
    transform: translate(-50%, -50%) scale(1.1);
}

.wf-scene-card__video-shell:hover .wf-scene-card__video-toggle {
    opacity: 1;
    pointer-events: auto;
}

.wf-scene-card__video-shell.is-playing .wf-scene-card__video-toggle,
.wf-scene-card__video-shell.is-playing:hover .wf-scene-card__video-toggle {
    opacity: 0;
    pointer-events: none;
}

/* ===== 心得详情弹窗：加载态 / 多图缩略图 / 评论署名 等增强 ===== */
.wf-story-modal__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-story-modal__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wf-story-spin 0.8s linear infinite;
}

@keyframes wf-story-spin {
    to { transform: rotate(360deg); }
}

.wf-story-modal__thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    scrollbar-width: thin;
}

.wf-story-modal__thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.wf-story-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-story-modal__thumb.is-active {
    border-color: var(--primary-color, #0DC46C);
}

.wf-story-modal__thumb:hover {
    opacity: 0.85;
}

.wf-story-comment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wf-story-comment__time {
    color: var(--text-tertiary, #94A3B8);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.wf-story-comments__more {
    margin: 10px 0 0;
    color: var(--text-tertiary, #94A3B8);
    font-size: 13px;
}

.wf-story-comment-box__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wf-story-comment-box__name {
    height: 38px;
    border: 1px solid var(--border-primary, #E2E8F0);
    border-radius: 10px;
    padding: 0 12px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #111827);
    font-size: 14px;
}

.wf-story-comment-box__name:focus {
    outline: none;
    border-color: var(--primary-color, #0DC46C);
}

.wf-story-comment-box button {
    min-height: 40px;
}

.wf-story-comment-box button.is-sending {
    opacity: 0.65;
    cursor: progress;
}

.wf-story-comment--new {
    animation: wf-story-comment-flash 2s ease-out;
    border-radius: 8px;
}

@keyframes wf-story-comment-flash {
    0% { background: rgba(13, 196, 108, 0.22); transform: translateY(-4px); }
    30% { background: rgba(13, 196, 108, 0.14); transform: translateY(0); }
    100% { background: transparent; transform: translateY(0); }
}

@media (max-width: 640px) {
    .wf-story-modal__thumb {
        width: 48px;
        height: 48px;
    }
}

/* Bottom summary */
.wf-scene-card__summary {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 48px 16px 16px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wf-scene-card:hover .wf-scene-card__summary {
    opacity: 1;
}

.wf-scene-card__summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wf-scene-card__summary-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wf-scene-card__summary-price {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.wf-scene-card__summary-title {
    color: rgba(255,255,255,0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.wf-scene-card__summary-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.wf-scene-card__summary-icon:hover {
    background: var(--primary-color, #0DC46C);
}

.wf-scene-card__desc {
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--text-secondary, #808080);
    line-height: 1.4;
}

/* ===== 商品锚点（热点）===== */
.wf-scene-anchor {
    position: absolute;
    z-index: 6;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wf-scene-card:hover .wf-scene-anchor {
    opacity: 1;
    pointer-events: auto;
}

.wf-scene-anchor__button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color, #0DC46C);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
}

.wf-scene-anchor__button::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #0DC46C);
    opacity: 0.5;
    animation: wfAnchorPulse 2s ease-out infinite;
}

@keyframes wfAnchorPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wf-scene-anchor__button:hover {
    transform: scale(1.15);
    background: var(--primary-color-hover, #0FDE7A);
}

/* Anchor popup card */
.wf-scene-anchor-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 10;
    width: min(180px, calc(100vw - 32px));
}

.wf-scene-anchor-popup.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.wf-scene-anchor--popup-below .wf-scene-anchor-popup {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-8px) scale(0.95);
}

.wf-scene-anchor--popup-below .wf-scene-anchor-popup.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
}

.wf-scene-anchor--popup-right .wf-scene-anchor-popup {
    left: 0;
    transform: translateX(0) translateY(8px) scale(0.95);
}

.wf-scene-anchor--popup-right .wf-scene-anchor-popup.is-visible {
    transform: translateX(0) translateY(0) scale(1);
}

.wf-scene-anchor--popup-left .wf-scene-anchor-popup {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px) scale(0.95);
}

.wf-scene-anchor--popup-left .wf-scene-anchor-popup.is-visible {
    transform: translateX(0) translateY(0) scale(1);
}

.wf-scene-anchor--popup-below.wf-scene-anchor--popup-right .wf-scene-anchor-popup,
.wf-scene-anchor--popup-below.wf-scene-anchor--popup-left .wf-scene-anchor-popup {
    transform: translateX(0) translateY(-8px) scale(0.95);
}

.wf-scene-anchor--popup-below.wf-scene-anchor--popup-right .wf-scene-anchor-popup.is-visible,
.wf-scene-anchor--popup-below.wf-scene-anchor--popup-left .wf-scene-anchor-popup.is-visible {
    transform: translateX(0) translateY(0) scale(1);
}

.wf-scene-anchor-popup__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #E2E8F0);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

[data-theme="dark"] .wf-scene-anchor-popup__card {
    background: var(--bg-card, #272E33);
    border-color: #4A5F4B;
}

.wf-scene-anchor-popup__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.wf-scene-anchor-popup__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-scene-anchor-popup__name {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #333333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-scene-anchor-popup__price {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color, #0DC46C);
}

/* ===== 关键词卡 ===== */
.wf-keyword-card {
    border-radius: 15px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-primary, #E2E8F0);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.wf-keyword-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .wf-keyword-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wf-keyword-card__header {
    padding: 16px 16px 12px;
}

.wf-keyword-card__title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title, #333333);
    margin: 0;
}

.wf-keyword-card__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 16px;
}

.wf-keyword-card__item {
    position: relative;
    width: 100%;
    aspect-ratio: 268 / 102;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.wf-keyword-card__item:hover {
    transform: scale(1.02);
}

.wf-keyword-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-keyword-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.5) 100%);
}

.wf-keyword-card__label {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* ===== Masonry Virtual List ===== */
.masonry-phantom,
.masonry-content,
.masonry-cache-host {
    pointer-events: none;
}

.masonry-content {
    pointer-events: auto;
}

.masonry-item-shell {
    will-change: transform;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .wf-scene-anchor__button {
        width: 30px;
        height: 30px;
    }

    .wf-scene-anchor__button svg {
        width: 12px;
        height: 12px;
    }

    .wf-scene-card__summary {
        padding: 32px 12px 12px;
    }

    .wf-scene-card__summary-price {
        font-size: 16px;
    }

    .wf-scene-card__summary-title {
        font-size: 13px;
    }

    .wf-scene-card__video-toggle {
        width: 58px;
        height: 58px;
    }

    .wf-scene-card__video-icon {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 14px;
    }
}

@media (max-width: 480px) {
    .wf-scene-card {
        border-radius: 12px;
    }

    .wf-scene-card__media {
        border-radius: 12px;
    }

    .wf-scene-card__video-shell {
        border-radius: 12px;
    }

    .wf-keyword-card {
        border-radius: 12px;
    }

    .wf-keyword-card__item {
        border-radius: 8px;
    }
}

/* ===== 无限滚动哨兵 ===== */
.waterfall-sentinel {
    text-align: center;
    padding: 24px 0;
}

.waterfall-sentinel__spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-primary, #E2E8F0);
    border-top-color: var(--primary-color, #0DC46C);
    border-radius: 50%;
    animation: wfSpin 0.8s linear infinite;
}

.waterfall-sentinel__text {
    display: inline-block;
    margin-left: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #808080);
}
