﻿
body {
    background-color: #ffffff;
}

/* -------- product -------- */
.f-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    transition: all 0.3s ease;
    /*background-color: #ffffff;*/
    /*border: 1px #eeeeee solid;*/
    /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
    overflow: hidden;
}

.f-product-card img {
    transition: transform 0.3s ease;
}

/* 只保留卡片阴影 */
.f-product-card:hover {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 改为：鼠标在图片上才放大 */
.f-product-card img:hover {
    transform: scale(1.08);
}

.f-product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* -------- category -------- */
.f-category-card {
    position: relative;
}

.f-category-card img {
    transition: transform .3s ease;
}

.f-category-card:hover img {
    transform: scale(1.05);
}

/* -------- article -------- */
.f-article-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.f-article-card:hover {
    transform: translateY(-5px);
}



/* ==================== 背景剧中平铺 模糊 ====================  */

.f-hero {
    width: 100%;
    height: 600px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.f-hero .f-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: #000000;
}

.f-hero .f-hero__content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1; /* 放到内容下面，不需要再给父级 z-index 硬压 */

    background-image: var(--bg-image);
    background-size: cover; /* 拉满，保持比例（会裁剪） */
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1); /* 遮住模糊后的白边 */
}


/* 
3. MudBlazor 默认：
         手机（Mobile）：xs 0–599px
         平板（Tablet）：sm 600–959px，
                         md 960–1279px
        桌面（Desktop）：lg 1280–1919px，
                         xl 1920px 及以上

4. 纯 CSS（配合 MudBlazor 使用）
        手机 (<= 599px)         xs
            @media (max-width: 599px) {}

        平板 (600px ~ 1279px)   sm、md
            @media (min-width: 600px) and (max-width: 1279px) {}

        桌面 (>= 1280px)        lg、xl
            @media (min-width: 1280px) {}

*/

/* 超小屏幕 (xs): 0px - 599px */
@media (max-width: 599px) {
    .XsOnly-hidden {
        display: none;
    }
}

/* 小屏幕 (sm): 600px - 959px */
@media (max-width: 959px) {
    .SmAndDown-hidden {
        display: none;
    }
}

@media (min-width: 600px) {
    .SmAndUp-hidden {
        display: none;
    }
}

/* 中屏幕 (md): 960px - 1279px */
@media (max-width: 1279px) {
    .MdAndDown-hidden {
        display: none;
    }
}

@media (min-width: 960px) {
    .MdAndUp-hidden {
        display: none;
    }
}

/* 大屏幕 (lg): 1280px - 1919px */
@media (max-width: 1919px) {
    .LgAndDown-hidden {
        display: none;
    }
}

@media (min-width: 1280px) {
    .LgAndUp-hidden {
        display: none;
    }
}

/* 超大屏幕 (xl): 1920px 及以上 */
@media (max-width: 1920px) {
    .XlAndDown-hidden {
        display: none;
    }
}

@media (min-width: 1920px) {
    .XlAndUp-hidden {
        display: none;
    }
}

/* 额外添加：仅在某些断点显示 */
@media (min-width: 600px) and (max-width: 959px) {
    .SmOnly-hidden {
        display: none;
    }
}

@media (min-width: 960px) and (max-width: 1279px) {
    .MdOnly-hidden {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1919px) {
    .LgOnly-hidden {
        display: none;
    }
}



/* 大屏幕（lg+） 显示5列 */
/* 大屏幕（lg+） 显示5列 */
@media (min-width: 1280px) {
    .responsive-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px !important;
        padding: 0;
        margin: 0 auto;
    }

    .lg-5cols {
        flex-grow: 0;
        max-width: calc(20% - 5px) !important; /* 限制最大宽度 */
        flex-basis: calc(20% - 5px) !important; /* 考虑到间隔 */
        width: 100%;
    }
}
