@charset "utf-8";
/* FBW 首页：按 demo HTML 像素级对齐，并覆盖旧模板全局样式 */

/* ===== 全局冲突重置（旧模板 body padding / #container） ===== */
body.fbw-home {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
    color: #3e3e3e !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.fbw-home a {
    text-decoration: none;
    color: inherit;
}

body.fbw-home #topbar {
    display: none !important;
}

/* #container 旧规则 margin:0 会盖掉居中，必须用 ID 提高优先级 */
body.fbw-home #container.fbw-wrap,
body.fbw-home .fbw-wrap {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative;
    overflow: visible !important;
    box-sizing: border-box;
}

body.fbw-home h1,
body.fbw-home h2,
body.fbw-home h3,
body.fbw-home h4,
body.fbw-home h5,
body.fbw-home h6 {
    word-wrap: normal;
}

/* ===== Hero：动态轮播；高度=视口减顶栏 66px，首屏铺满（仅 fbwpro_cn 首页） ===== */
body.fbw-home .fbw-hero.banner,
body.fbw-home .fbw-hero.hero,
body.fbw-home a.fbw-hero.hero {
    display: block;
    height: calc(100vh - 66px) !important;
    min-height: calc(100vh - 66px);
    background: #2e2e30;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    text-decoration: none;
}
body.fbw-home .fbw-hero.banner {
    margin-top: 0;
    margin-bottom: 0;
}
body.fbw-home .fbw-hero .bannerlong {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #2e2e30;
}
body.fbw-home .fbw-hero .bannerlong ul {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
}
body.fbw-home .fbw-hero .bannerlong ul li {
    height: 100%;
    float: left;
    background-size: cover !important;
    list-style: none;
}
body.fbw-home .fbw-hero .bannerlong ul li a {
    height: 100%;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}
body.fbw-home .fbw-hero .dot {
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}
body.fbw-home .fbw-hero .dot ul {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    width: auto;
    float: none;
    list-style: none;
    pointer-events: auto;
}
body.fbw-home .fbw-hero .dot ul li {
    display: block;
    float: none;
    flex: 0 0 60px;
    width: 60px;
    height: 3px;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    list-style: none;
    opacity: 0.55;
    vertical-align: middle;
}
body.fbw-home .fbw-hero .dot ul li.active {
    background: #ffce00;
    opacity: 1;
}

 

/*
 * 首页横幅整屏滑出（仅 .fbw-fs-slide）：
 * 每张 slide 绝对铺满视口，用 translateX(±100%) 满幅移出，不用淡入淡出
 */
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide {
    overflow: hidden;
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul {
    width: 100% !important;
    height: 100%;
    left: 0 !important;
    top: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    transform: none !important;
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100%;
    float: none !important;
    margin: 0;
    padding: 0;
    z-index: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: none;
    will-change: transform;
    background-size: cover !important;
    background-position: center !important;
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-active {
    z-index: 2;
    visibility: visible;
    transform: translateX(0);
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-from-right {
    z-index: 3;
    visibility: visible;
    transform: translateX(100%);
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-from-left {
    z-index: 3;
    visibility: visible;
    transform: translateX(-100%);
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-to-left {
    z-index: 1;
    visibility: visible;
    transform: translateX(-100%);
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-to-right {
    z-index: 1;
    visibility: visible;
    transform: translateX(100%);
}
body.fbw-home .fbw-hero .bannerlong.fbw-fs-slide ul li.is-animating {
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ===== About ===== */
body.fbw-home .fbw-about.about {
    padding: 120px 120px 0;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    float: none;
    width: auto;
    overflow: visible;
}

body.fbw-home .fbw-about h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    letter-spacing: 1px;
    line-height: 1.4 !important;
    margin: 0 !important;
}

body.fbw-home .fbw-about .about-body,
body.fbw-home .fbw-about > p {
    font-size: 16px !important;
    font-weight: 300;
    color: #666 !important;
    line-height: 30px !important;
    margin-top: 23px !important;
    margin-bottom: 0 !important;
}

/* 设计稿 1440：FOR BETTER WORLD ≈ 409×27，素材按宽高比缩放 */
body.fbw-home .fbw-about .about-body img {
    display: block;
    width: 409px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

body.fbw-home .fbw-about .about-body > p:first-child {
    margin-top: 0;
}

body.fbw-home .fbw-about .about-body p {
    margin: 0;
    line-height: inherit;
}

body.fbw-home .fbw-about .link-more,
body.fbw-home .fbw-products .link-more {
    display: inline-block;
    margin-top: 25px;
    font-size: 16px;
    color: #666 !important;
    border-bottom: 1px solid #999;
    padding-bottom: 2px;
}

/* ===== Features：391×3 + gap13 + 左右120 = 1440 ===== */
body.fbw-home .fbw-features.features {
    background: #fff;
    margin: 0;
    padding: 0;
}

body.fbw-home .fbw-features .f-grid {
    display: grid;
    grid-template-columns: 391px 391px 391px;
    gap: 13px;
    padding: 36px 120px 0;
    justify-content: start;
    box-sizing: border-box;
    margin: 0;
}

body.fbw-home .fbw-features .f-card {
    /* PC 设计 391×501；比例锁死，自适应只缩尺寸不变形 */
    width: 391px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 391 / 501;
    padding: 0 9.72% 6%;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px; /* 外框圆角裁切背景图 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body.fbw-home .fbw-features .f-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 48px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

body.fbw-home .fbw-features .f-card:nth-child(1) {
    background: linear-gradient(180deg, rgb(119, 110, 107) 0%, rgb(60, 50, 45) 100%);
}
body.fbw-home .fbw-features .f-card:nth-child(2) {
    background: linear-gradient(180deg, rgb(171, 171, 168) 0%, rgb(116, 115, 110) 100%);
}
body.fbw-home .fbw-features .f-card:nth-child(3) {
    background: linear-gradient(180deg, rgb(56, 61, 69) 0%, rgb(42, 47, 54) 100%);
}

body.fbw-home .fbw-features .f-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 100%);
}

body.fbw-home .fbw-features .f-card > * {
    position: relative;
    z-index: 1;
}

body.fbw-home .fbw-features .f-card h4 {
    font-size: 26px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

body.fbw-home .fbw-features .f-card p {
    font-size: 14px !important;
    font-weight: 300;
    line-height: 24px !important;
    margin-top: 14px !important; /* H1：小字再上挪一点 */
    opacity: 0.92;
    color: #fff !important;
}

/* ===== Products ===== */
body.fbw-home .fbw-products.products {
    padding: 144px 120px 126px;
    box-sizing: border-box;
    margin: 0;
}

body.fbw-home .fbw-products .sec-title {
    text-align: center;
    font-size: 30px !important;
    font-weight: 400 !important;
    color: #3e3e3e !important;
    line-height: 30px !important;
    margin: 0 !important;
}

/* 桌面一行四列；卡片宽度随栅格自适应 */
body.fbw-home .fbw-products .p-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 35px;
    column-gap: 20px;
    justify-content: stretch;
    margin-top: 41px;
}

body.fbw-home .fbw-products .p-card {
    display: block;
    width: auto;
    text-decoration: none;
    color: inherit;
}

body.fbw-home .fbw-products .p-card .ph {
    height: 280px;
    width: auto;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px; /* 对照设计稿产品图容器圆角 */
}

body.fbw-home .fbw-products .p-card .ph img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

body.fbw-home .fbw-products .p-card .ph .phicon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9d9d9, #bfbfbf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 13px;
}

body.fbw-home .fbw-products .p-card h5 {
    text-align: center;
    /* 系列名：在原 20px 上再缩小两号 → 16px；英文站同步 */
    font-size: 16px !important;
    font-weight: 300 !important;
    color: #3e3e3e !important;
    margin-top: 24px !important;
    line-height: 1.3 !important;
    transition: color 0.15s ease;
}

body.fbw-home .fbw-products .p-card,
body.fbw-home .fbw-products .p-card h5 {
    color: #3e3e3e !important;
}

body.fbw-home .fbw-products .p-card:hover,
body.fbw-home .fbw-products .p-card:hover h5 {
    color: #ffce00 !important;
}

body.fbw-home .fbw-features .f-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    margin: 24px 0;
}

body.fbw-home .fbw-products .p-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
}

body.fbw-home .fbw-products .p-more-wrap {
    text-align: center;
    margin-top: 40px;
}

/* 头尾布局交给 menu.css / footer.css，避免 !important 锁死坐标盖过断点 */

/* 窄屏仅收紧内边距，保持网格比例，避免“歪斜”变形 */
@media (max-width: 1440px) {
    body.fbw-home .fbw-about.about,
    body.fbw-home .fbw-features .f-grid,
    body.fbw-home .fbw-products.products {
        padding-left: 40px;
        padding-right: 40px;
    }
    body.fbw-home .fbw-features .f-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px;
        justify-content: stretch;
    }
    /* 产品中心：窄于 1440 仍保持四列 */
    body.fbw-home .fbw-products .p-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 16px;
        justify-content: stretch;
    }
    body.fbw-home .fbw-features .f-card {
        width: auto;
        height: auto;
        aspect-ratio: 391 / 501;
    }
    body.fbw-home .fbw-products .p-card,
    body.fbw-home .fbw-products .p-card .ph {
        width: auto;
    }
}

@media (max-width: 1100px) {
    body.fbw-home .fbw-features .f-grid,
    body.fbw-home .fbw-products .p-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.fbw-home .fbw-hero.banner,
    body.fbw-home .fbw-hero.hero,
    body.fbw-home a.fbw-hero.hero {
        height: calc(100vh - 66px) !important;
        min-height: 420px;
        background-size: cover;
    }
    body.fbw-home .fbw-hero .bannerlong,
    body.fbw-home .fbw-hero .bannerlong ul li {
        min-height: 420px;
        height: 100%;
    }
    /* 覆盖 1440 断点的左右 40px，手机收成 24px */
    body.fbw-home .fbw-about.about { padding: 80px 24px 0; }
    body.fbw-home .fbw-features .f-grid {
        grid-template-columns: 1fr;
        padding-left: 24px;
        padding-right: 24px;
    }
    body.fbw-home .fbw-products .p-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.fbw-home .fbw-features .f-card {
        /* 手机仍保持 PC 391:501，不改比例 */
        width: auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 391 / 501;
        padding: 0 9.72% 6%;
    }
    body.fbw-home .fbw-products.products { padding: 60px 24px; }
    body.fbw-home .fbw-products .p-card .ph {
        height: auto;
        width: auto;
        aspect-ratio: 1 / 1;
    }
    body.fbw-home .fbw-products .p-card .ph img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }
}
