/* @🍮 */
/* === 照片/视频卡片样式 === */

.pv-card {
    width: 230px;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin: 0 8px;
}

.message-wrapper.sent .pv-card {
    border-bottom-right-radius: 5px;
}

.message-wrapper.received .pv-card {
    border-bottom-left-radius: 5px;
}

.pv-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
}

.pv-card-image-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.pv-card-content {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.pv-card-footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 20px 10px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.pv-card-footer.hidden {
    opacity: 0;
}

.pv-card-footer svg {
    width: 14px;
    height: 14px;
    fill: white;
    flex-shrink: 0;
}
