@charset "utf-8";
/* FBW 产品列表 / 详情 — 对齐设计稿「图片换色块」 */

/* 网页底色：设计稿主内容区 ≈ #F1F1F1（提高优先级覆盖 fbw-inner 白底） */
body.fbw-page.fbw-product-list {
    background: #f1f1f1 !important;
}

body.fbw-product-list .fbw-series-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(180deg, #3a3a3a 0%, #6a6a6a 55%, #f1f1f1 100%);
    color: #fff;
}

body.fbw-product-list .fbw-series-hero-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
    background: #5a5a5a;
}

body.fbw-product-list .fbw-series-hero-bg.has-img img {
    opacity: 0.85;
}

body.fbw-product-list .fbw-series-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 120px 0;
    box-sizing: border-box;
}

body.fbw-product-list .fbw-series-hero .location,
body.fbw-product-list .fbw-series-hero .location li,
body.fbw-product-list .fbw-series-hero .location a,
body.fbw-product-list .fbw-series-hero .location li + li::before {
    color: #ffffff !important;
}

body.fbw-product-list .fbw-series-hero .location {
    margin: 0 !important;
}

body.fbw-product-list .fbw-series-hero h1 {
    margin: 24px 0 0 !important;
    font-size: 42px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

/* 盖过 fbw-inner 的 #container.fbw-wrap { padding:0 120px } */
body.fbw-page.fbw-product-list #container.fbw-wrap,
body.fbw-page.fbw-product-list .fbw-wrap {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
}

/* 筛选：灰底 #f1f1f1 上白胶囊（对照设计稿 P2） */
body.fbw-product-list .fbw-filters a {
    background: #ffffff;
    border: none;
    color: #3e3e3e !important;
}

body.fbw-product-list .fbw-filters a.active,
body.fbw-product-list .fbw-filters a:hover {
    background: #222222;
    border: none;
    color: #fff !important;
}

/* 一级入口：系列网格（结构图色块） */
body.fbw-product-list .fbw-series-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;
}

body.fbw-product-list .fbw-series-grid li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

body.fbw-product-list .fbw-series-card-img {
    width: 100%;
    height: 250px; /* 设计稿色块 250×250 */
    background: #c7c7c7;
    border-radius: 10px;
    overflow: hidden;
}

body.fbw-product-list .fbw-series-grid h5 {
    margin: 16px 0 0 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #232323 !important;
    text-align: center;
}

/* 单品卡片：白底圆角 10（设计稿 288×380 r=10） */
body.fbw-product-list .fbw-product-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}

body.fbw-product-list .fbw-product-grid li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

body.fbw-product-list .fbw-product-grid li > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 16px 20px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

body.fbw-product-list .fbw-product-card-img {
    width: 100%;
    height: 250px; /* 设计稿内图 250×250 */
    background: #c7c7c7;
    border-radius: 0;
    overflow: hidden;
}

body.fbw-product-list .fbw-product-grid h5 {
    margin: 16px 0 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #232323 !important;
    text-align: center;
    line-height: 1.35 !important;
}

body.fbw-product-list .fbw-product-grid p {
    margin: 0;
    font-size: 13px;
    color: #878787;
    line-height: 1.5;
    text-align: center;
}

/* 无产品空态：跨列居中；padding 须 !important，否则被 li{padding:0!important} 盖掉 */
body.fbw-product-list .fbw-product-grid li.fbw-empty,
body.fbw-product-list .fbw-series-grid li.fbw-empty {
    grid-column: 1 / -1;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 上间距对齐有筛选时：wrap40 + 筛选区约 66 ≈ 与标题页内容呼吸感一致 */
    padding: 100px 24px 88px !important;
    margin: 0 !important;
    text-align: center;
    box-sizing: border-box;
}

body.fbw-product-list .fbw-empty-title {
    margin: 0 0 12px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #232323 !important;
    line-height: 1.4 !important;
}

body.fbw-product-list .fbw-empty-desc {
    margin: 0 0 28px !important;
    max-width: 420px;
    font-size: 14px !important;
    color: #878787 !important;
    line-height: 1.7 !important;
    text-align: center;
}

body.fbw-product-list .fbw-empty-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #222222;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

body.fbw-product-list .fbw-empty-btn:hover {
    background: #3e3e3e;
    color: #fff !important;
}

/* 详情 */
body.fbw-page.fbw-product-detail {
    background: #ffffff !important;
}

body.fbw-product-detail .fbw-pd-top {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    margin: 28px 0 48px;
    align-items: start;
}

body.fbw-product-detail .fbw-pd-main {
    width: 100%;
    height: 420px;
    background: #f0f0f0;
}

body.fbw-product-detail .fbw-pd-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

body.fbw-product-detail .fbw-pd-thumb-nav {
    flex: 0 0 auto;
    width: 22px;
    height: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c0c0c0;
    font-size: 18px;
    line-height: 72px;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

body.fbw-product-detail .fbw-pd-thumb-nav:hover {
    color: #666;
}

body.fbw-product-detail .fbw-pd-thumbs {
    display: flex;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body.fbw-product-detail .fbw-pd-thumbs::-webkit-scrollbar {
    display: none;
}

body.fbw-product-detail .fbw-pd-thumb-btn {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
}

body.fbw-product-detail .fbw-pd-thumb-btn.is-active {
    border-color: #3e3e3e;
}

body.fbw-product-detail .fbw-pd-thumb {
    width: 72px;
    height: 72px;
    background: #e8e8e8;
}

body.fbw-product-detail .fbw-pd-info h1 {
    margin: 0 0 10px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #232323 !important;
    line-height: 1.25 !important;
}

body.fbw-product-detail .fbw-pd-sub {
    color: #666;
    font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* 手风琴：标题左对齐，右侧 + / ×（设计稿） */
body.fbw-product-detail .fbw-pd-acc {
    border-top: 1px solid #e5e5e5;
}

body.fbw-product-detail .fbw-pd-acc:last-child {
    border-bottom: 1px solid #e5e5e5;
}

body.fbw-product-detail .fbw-pd-acc-hd {
    position: relative;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 16px 28px 16px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #232323;
    font-family: inherit;
    box-sizing: border-box;
}

body.fbw-product-detail .fbw-pd-acc-hd::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #232323;
}

body.fbw-product-detail .fbw-pd-acc.open .fbw-pd-acc-hd::after {
    content: "\00d7"; /* × */
    font-size: 20px;
}

body.fbw-product-detail .fbw-pd-acc-bd {
    display: none;
    padding: 0 0 18px 20px; /* 展开内容相对标题缩进约 2 字，对齐设计稿 */
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    box-sizing: border-box;
}

body.fbw-product-detail .fbw-pd-acc.open .fbw-pd-acc-bd {
    display: block;
}

body.fbw-product-detail .fbw-pd-feat {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.fbw-product-detail .fbw-pd-feat li {
    margin: 0 0 6px;
    padding: 0;
    line-height: 1.55;
}

body.fbw-product-detail .fbw-pd-feat li:last-child {
    margin-bottom: 0;
}

body.fbw-product-detail .fbw-pd-file {
    display: inline-block;
    color: #666 !important;
    text-decoration: underline;
    margin: 0 0 8px;
}

body.fbw-product-detail .fbw-pd-file:hover {
    color: #232323 !important;
}

body.fbw-product-detail .fbw-pd-media {
    margin: 24px 0 48px;
}

body.fbw-product-detail .fbw-pd-media-item {
    width: 100%;
    height: 360px;
    margin-bottom: 16px;
    background: #ececec;
}

body.fbw-product-detail .fbw-pd-related-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

body.fbw-product-detail .fbw-pd-related-hd h3 {
    margin: 0 !important;
    font-size: 22px !important;
}

body.fbw-product-detail .fbw-pd-related-hd a {
    color: #666 !important;
    font-size: 14px;
}

body.fbw-product-detail .fbw-relate-grid {
    list-style: none;
    margin: 0 0 72px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

body.fbw-product-detail .fbw-relate-grid li {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

body.fbw-product-detail .fbw-relate-grid li > a {
    display: block;
    padding: 14px;
    box-sizing: border-box;
}

body.fbw-product-detail .fbw-relate-img {
    width: 100%;
    height: 180px;
    background: #c7c7c7;
    border-radius: 0;
    overflow: hidden;
}

body.fbw-product-detail .fbw-relate-grid h5 {
    margin: 12px 0 4px !important;
    font-size: 15px !important;
    text-align: center;
}

body.fbw-product-detail .fbw-relate-grid p {
    margin: 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}

body.fbw-product-detail .main.relate .section-title {
    display: none !important;
}

@media (max-width: 1100px) {
    body.fbw-product-list .fbw-product-grid ul { grid-template-columns: repeat(2, 1fr); }
    body.fbw-product-list .fbw-series-grid ul { grid-template-columns: repeat(2, 1fr); }
    body.fbw-product-detail .fbw-pd-top { grid-template-columns: 1fr; }
    body.fbw-product-detail .fbw-relate-grid { grid-template-columns: repeat(2, 1fr); }
    body.fbw-product-list .fbw-series-hero-inner { padding: 40px 40px 0; }
}

@media (max-width: 900px) {
    body.fbw-product-list .fbw-series-hero { height: auto; min-height: 220px; }
    body.fbw-product-list .fbw-series-hero-inner { padding: 28px 24px 24px; }
    body.fbw-product-list .fbw-series-hero h1 { font-size: 32px !important; }
    body.fbw-product-list .fbw-series-card-img { height: auto; aspect-ratio: 1 / 1; }
    body.fbw-product-detail .fbw-pd-main { height: auto; aspect-ratio: 4 / 3; }
    body.fbw-product-detail .fbw-pd-related-hd h3 { font-size: 18px !important; }
}

@media (max-width: 600px) {
    body.fbw-product-list .fbw-product-grid ul,
    body.fbw-product-list .fbw-series-grid ul,
    body.fbw-product-detail .fbw-relate-grid {
        grid-template-columns: 1fr;
    }
}
