/* 全局、标签页等样式保持不变 */
.post-thumbnail > img { display: none !important; }
.like-page-container { padding: 1.5rem; background-color: var(--bg-a); }
.like-section { margin-bottom: 2.5rem; }
.like-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--title); display: flex; align-items: center; }
.like-title.is-centered { justify-content: center; }
.like-title i { color: var(--theme); margin-right: 0.5rem; font-size: 1.5rem; }
.like-tabs { display: flex; border-bottom: 2px solid var(--light-b); margin-bottom: 1.5rem; }
.like-tab { flex: 1; text-align: center; padding: 0.8rem 1rem; cursor: pointer; font-size: 1.1rem; color: var(--main); border-bottom: 3px solid transparent; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.like-tab i { margin-right: 0.5rem; }
.like-tab.active, .like-tab:hover { color: var(--theme); border-bottom-color: var(--theme); }
.like-tab-content { display: none; }
.like-tab-content.active { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/*
 * =================================================================
 * 我推的老婆 - 【最终修复版】透明蒙版 + 强化边缘3D效果
 * =================================================================
 */
.waifu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.waifu-card-wrap {
    perspective: 1200px;
}

.waifu-card {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 9;
    color: #fff;
    border-radius: 16px;
    transform-style: preserve-3d;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}
.waifu-card-wrap:hover .waifu-card {
    transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

.waifu-card::before,
.waifu-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: inherit;
    transform-style: preserve-3d;
}

/* ✨ 核心修复区域：::before 伪元素 */
.waifu-card::before {
    z-index: 5;
    
    /* ✨ 修复1：移除背景和模糊，实现完全透明 */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    /* ✨ 修复2：强化边缘的3D效果 */
    box-shadow: 
        /* 更明亮、更立体的外圈高光 */
        inset 0 0 0 2px rgba(255, 255, 255, 0.4),
        /* 更深邃、范围更大的内圈阴影，制造强烈的凹陷感 */
        inset 0 0 30px 10px rgba(0, 0, 0, 0.6);
        
    transform: translateZ(10px);
}

.waifu-card::after {
    z-index: 0;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateZ(-20px);
}

.waifu-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    filter: brightness(0.85);
    z-index: 1;
    transform: translateZ(0px) scale(1.02);
    transition: none;
}
.waifu-card-wrap:hover .waifu-bg {
    transform: translateZ(0px) scale(1.02);
}

.waifu-content {
    position: relative;
    z-index: 10;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    transform: translateZ(10.5px);
}

.waifu-avatar {
   display: none;
}

.waifu-info {
    text-shadow: 0px 4px 12px rgba(0, 0, 0, 0.8), 0px 1px 3px rgba(0, 0, 0, 1);
    text-align: center;
}
.waifu-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.waifu-source {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    letter-spacing: 0.5px;
}


/* 列表布局样式 (保持不变) */
.ranked-list { display: flex; flex-direction: column; gap: 1.2rem; }
.ranked-item { display: flex; border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s ease, border-color 0.3s ease; background-color: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); }
.ranked-item:hover { box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.25); }
.ranked-item-cover-link { display: block; flex-shrink: 0; position: relative; }
.item-status { position: absolute; top: 0.5rem; right: 0.5rem; background-color: rgba(0, 0, 0, 0.6); color: #fff; padding: 0.2rem 0.5rem; font-size: 0.8rem; border-radius: var(--radius-inner); z-index: 1; }
.ranked-item-cover { width: 120px; height: 100%; object-fit: cover; }
.ranked-item-info { flex-grow: 1; min-width: 0; padding: 1rem 1.5rem; display: flex; flex-direction: column; }
.ranked-item-info a { color: inherit; text-decoration: none; }
.ranked-item-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
.ranked-item-info a:hover .ranked-item-title { color: var(--theme); }
.ranked-item-desc { font-size: 0.9rem; color: var(--dark-b); line-height: 1.7; margin: 0; max-height: 5.1em; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.ranked-item-desc.is-expanded { max-height: 500px; }
.ranked-item-desc::after { display: none; }
.ranked-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ranked-item-tags { margin: 0; flex-grow: 1; min-width: 0; }
.ranked-item-tags .tag { font-size: 0.75rem; padding: 0.3em 0.8em; margin: 0 0.4rem 0.4rem 0; background-color: var(--item-bg-color, var(--bg-c)); color: var(--main); border-radius: 6px; border: 1px solid var(--light-b); display: inline-block; transition: all 0.2s ease; }
.ranked-item-tags .tag:hover { background-color: var(--theme-a); color: var(--theme); border-color: var(--theme); transform: translateY(-2px); }

/* 确保“阅读更多”按钮的颜色始终跟随主题变化 */
.read-more-btn {
    background: none;
    border: none;
    color: var(--theme);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.2rem 0;
    flex-shrink: 0;
    margin-left: 1rem;
}
.read-more-btn:hover {
    text-decoration: underline;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .waifu-grid { grid-template-columns: 1fr; }
    .waifu-card { transform: none !important; }
    .like-title { font-size: 1.5rem; }
    .ranked-item { flex-direction: column; }
    .ranked-item-cover { width: 100%; height: 160px; }
    .ranked-item-footer { flex-direction: column; align-items: flex-start; border-top: none; padding-top: 0.5rem; }
    .ranked-item-tags { margin-bottom: 0.5rem; }
    .read-more-btn { margin-left: 0; }
}