@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：仅背景图（文案做进图内） ===== */
body.fbw-home .fbw-hero.hero,
body.fbw-home a.fbw-hero.hero {
    display: block;
    height: 655px;
    background: #2e2e30;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

/* ===== About ===== */
body.fbw-home .fbw-about.about {
    padding: 193px 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 !important;
}

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 {
    width: 391px;
    height: 501px;
    padding: 351px 38px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px; /* 外框圆角裁切背景图 */
}

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: 21px !important;
    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: 500 !important;
    color: #3e3e3e !important;
    line-height: 30px !important;
    margin: 0 !important;
}

body.fbw-home .fbw-products .p-grid {
    display: grid;
    grid-template-columns: 391px 391px 391px;
    row-gap: 35px;
    column-gap: 0;
    justify-content: space-between;
    margin-top: 41px;
}

body.fbw-home .fbw-products .p-card {
    display: block;
    width: 391px;
    text-decoration: none;
    color: inherit;
}

body.fbw-home .fbw-products .p-card .ph {
    height: 371px;
    width: 391px;
    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;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #3e3e3e !important;
    margin-top: 24px !important;
    line-height: 1.3 !important;
}

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,
    body.fbw-home .fbw-products .p-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 13px;
        justify-content: stretch;
    }
    body.fbw-home .fbw-features .f-card,
    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.hero,
    body.fbw-home a.fbw-hero.hero {
        height: auto;
        min-height: 420px;
        background-size: cover;
    }
    body.fbw-home .fbw-about.about { padding-top: 80px; }
    body.fbw-home .fbw-features .f-grid,
    body.fbw-home .fbw-products .p-grid {
        grid-template-columns: 1fr;
    }
    body.fbw-home .fbw-features .f-card {
        height: auto;
        min-height: 280px;
        padding: 180px 24px 32px;
        width: auto;
    }
    body.fbw-home .fbw-products.products { padding: 60px 24px; }
    body.fbw-home .fbw-products .p-card .ph { height: 240px; width: auto; }
}
