.img_card {
    padding: 15px;
    background: #fff;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    /* Silky smooth transition */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
    will-change: transform, box-shadow;
}

/* 定义鼠标悬停时的上浮和阴影加深效果 */
.img_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
    font-family: 'Noto Serif SC', serif;
}

.love_img_link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.user-desc {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Content */
.love_img {
    width: 100%;
}

.card-imgs {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.grid-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.card-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 1/1; /* Default square for grid */
    display: block;
}

.img_card:hover .card-imgs img {
    /* Optional: Subtle zoom on images when card is hovered */
    /* transform: scale(1.05); */
}

/* Grid Layouts */
.grid-1 {
    display: block; /* Override grid display for single image */
    border-radius: 12px;
    overflow: hidden;
}
.grid-1 img {
    aspect-ratio: auto; /* Single image keeps ratio */
    max-height: 350px;
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-5, .grid-6, .grid-7, .grid-8, .grid-9 {
    grid-template-columns: repeat(3, 1fr);
}

/* Words / Description */
.words {
    padding: 0 2px;
    margin-bottom: 12px;
}

.words span {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    display: block;
    word-break: break-all;
    font-family: 'Noto Serif SC', serif;
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
}

.post-date {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    color: #aaa;
}

.post-date i {
    margin-right: 6px;
    color: #ccc;
    font-size: 13px;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: #f0f2f5;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.action-btn:hover {
    background: #ff7875;
    color: #fff;
    transform: rotate(-90deg);
}

.action-btn i {
    font-size: 14px;
    margin-left: 0;
}

/* Responsive */
.col-lg-4 {
    padding: 0 10px;
}

@media (max-width: 767px) {
    .img_card {
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border-bottom: none;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .col-lg-4 {
        padding: 0 15px;
    }
}

/* Encrypted Album Style - Stacked Paper Effect */
.card-locked-body {
    /* Diagonal stripes background like the reference image */
    background: repeating-linear-gradient(
        45deg,
        #f2f2f2,
        #f2f2f2 15px,
        #ffffff 15px,
        #ffffff 30px
    );
    height: 180px; /* Slightly shorter to allow space for stacks */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 20px; /* Space for the stack shadows */
    color: #666;
    position: relative;
    border: 1px solid #e0e0e0;
    
    /* The Stacked Effect */
    box-shadow: 
        0 10px 0 -5px #e6e6e6,  /* 1st layer below */
        0 10px 1px -4px rgba(0,0,0,0.1), /* Shadow for 1st layer */
        0 20px 0 -10px #dcdcdc, /* 2nd layer below */
        0 20px 1px -9px rgba(0,0,0,0.1); /* Shadow for 2nd layer */
        
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.card-locked-body:hover {
    /* Bouncy lift effect on hover */
    transform: translateY(-5px);
    box-shadow: 
        0 15px 0 -5px #e6e6e6,
        0 15px 1px -4px rgba(0,0,0,0.1),
        0 30px 0 -10px #dcdcdc,
        0 30px 1px -9px rgba(0,0,0,0.1);
}

.card-locked-body .lock-icon {
    font-size: 3.5rem;
    color: #555;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-locked-body .lock-text {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
    letter-spacing: 1px;
}
