/* 漫画板块：ComicTopicView 的编辑推荐与最近更新，强调色由组件通过 --comic-accent 传入。
   这两块没有随组件走隔离样式，因为 .comic-feature 挂在 MudPaper 上，作用域属性只加到原生元素。
   作品卡见 Components/ComicCard.razor.css。 */

.comic-feature {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #14161c;
}

/* 模糊铺底只提供色彩氛围，裁切无所谓。注意它与下面的 overlay 是叠加关系，
   两处的不透明度要一起看：过暗会把插画压成纯黑。 */
.comic-feature-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.2);
    transform: scale(1.1);
    opacity: 0.75;
}

/* 左侧压暗保证文字对比度，右侧放亮让底图透出来。 */
.comic-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 18, 22, 0.88) 0%, rgba(16, 18, 22, 0.7) 55%, rgba(16, 18, 22, 0.52) 100%);
}

.comic-feature-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comic-feature-text {
    flex: 1 1 auto;
    min-width: 0;
}

/* 前景插画完整呈现：只限制最大尺寸，不用 object-fit，永远不裁切。 */
.comic-feature-art {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

    .comic-feature-art img {
        display: block;
        max-width: 100%;
        max-height: 320px;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    }

@media (max-width: 959px) {
    /* 窄屏改为上下排列，插画在上。 */
    .comic-feature-content {
        flex-direction: column-reverse;
        gap: 0;
    }

    .comic-feature-art {
        width: 100%;
        padding: 1.5rem 1.5rem 0;
    }

        .comic-feature-art img {
            max-height: 220px;
        }
}

/* ---------- 最近更新 ---------- */

.comic-update {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .comic-update:hover {
        transform: translateY(-4px);
        border-color: var(--comic-accent);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

/* 更新条目的图为 962x325 的宽幅横幅，与作品封面比例不同。 */
.comic-update-cover {
    position: relative;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: var(--mud-palette-background-gray);
}

    .comic-update-cover img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.comic-update:hover .comic-update-cover img {
    transform: scale(1.08);
}

.comic-update-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(16, 18, 22, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.comic-update:hover .comic-update-badge {
    opacity: 1;
}

.comic-update-episode {
    color: var(--comic-accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .comic-update,
    .comic-update-cover img {
        transition: none;
    }

        .comic-update:hover,
        .comic-update:hover .comic-update-cover img {
            transform: none;
        }
}
