/* 官网产品列表页与分类页独立样式：桌面数值复刻参考站 products 页实测
   （容器 1366、横幅 360 且导航透明压住、侧栏 268、卡片 4 列 259.5px、圆形分页）。
   方向属性全部使用逻辑属性（margin-inline / inset-inline / padding-inline），
   Arabic RTL 下由 dir="rtl" 自动镜像，无需单独规则。
   卡片与首页热销同构不同值：片段共用 fragments/product-card.html，
   此处只负责 pl-card__* 前缀的数值，不改动 public-hot__*。 */

/* 页头横幅：360px 与参考站一致；导航为透明压覆态（headerOverlay），
   标题垂直居中于可见区（导航高 80px，居中点 180px 不被遮挡）。
   背景取后台配置图片，无图时为品牌深青渐变兜底。 */
.pl-banner {
    height: 360px;
    background: var(--site-gradient-hero);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 24px;
    text-align: center;
}
.pl-banner__title {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
}
/* 标题下青色短线：hover 横幅时延展，复刻参考站交互。 */
.pl-banner__line {
    width: 64px;
    height: 4px;
    background: var(--site-primary);
    margin: 8px 0;
    transition: width .4s ease;
}
.pl-banner:hover .pl-banner__line { width: 128px; }
.pl-banner__desc {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    max-width: 640px;
}

/* 面包屑：14px/16px #323232，margin 16px 0 36px；仅首页图标为主题青，
   分隔符与当前项均为深灰，与参考站 .crumbs_99709 一致。 */
.pl-crumbs {
    max-width: 1366px;
    margin: 16px auto 36px;
    padding-inline: 24px;
    font-size: 14px;
    line-height: 22px;
    color: #323232;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.pl-crumbs__home { fill: var(--site-primary); margin-inline-end: 5px; flex-shrink: 0; }
.pl-crumbs a { color: #323232; }
.pl-crumbs a:hover { color: var(--site-primary); }
.pl-crumbs__sep { color: #323232; margin: 0 5px; }
.pl-crumbs__cur { color: #323232; }

/* 主体：侧栏 268px + 右栏自适应，顶部对齐。 */
.pl-main {
    max-width: 1366px;
    margin: 0 auto;
    padding: 16px 24px 76px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.pl-side { width: 268px; flex-shrink: 0; }
.pl-content { flex: 1; min-width: 0; }

/* 侧栏标题条：灰底大标题，外阴影。 */
.pl-side__title {
    height: 54px;
    line-height: 54px;
    font-size: 20px;
    font-weight: 700;
    background: #eee;
    text-indent: 12px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .25);
}

/* 分类树：白底阴影容器；子级默认收起（display:none），
   当前分支由服务端给节点加 is-open，其余由 site-products.js 切换。
   容器限高 648px 自滚动，分类增多时不拉长首屏（对齐参考站 p_ul_list）。 */
.pl-tree {
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .25);
    padding: 14px 12px;
    margin-bottom: 36px;
    max-height: 648px;
    overflow-y: auto;
}
.pl-tree__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 22px;
}
.pl-tree__item a, .pl-tree__item span:not(.pl-tree__toggle) { color: #505050; }
.pl-tree__item a:hover, .pl-tree__item.is-current a, .pl-tree__item.is-current span:not(.pl-tree__toggle) {
    color: var(--site-primary);
}
/* 分类树折叠箭头：复刻参考站侧栏 ft-down1 字体图标（.p_list_item i.sj）——
   16px 实心框内的空心 V 形描边，几何与描边与站点头部导航箭头
   .public-header__icon--chevron 保持一致（参考站实测视觉 10.75 x 6.00 CSS px、
   宽高比 1.79、填充率 0.30；本站同款实测 11.00 x 6.25、1.76、0.28，轮廓一致）。
   颜色规则同参考站：默认黑色（.i 无 color 规则，继承计算值为 #000），
   行悬停（.ecer-flex:hover i）与当前项（.on i）为主题蓝 var(--site-primary)。
   参考站侧栏箭头不随展开收起旋转，故不设 transform。 */
.pl-tree__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #000;
}
.pl-tree__chevron {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: miter;
    stroke-miterlimit: 4;
}
.pl-tree__item:hover .pl-tree__toggle,
.pl-tree__item.is-current .pl-tree__toggle { color: var(--site-primary); }
.pl-tree__children { display: none; }
.pl-tree__item.is-open + .pl-tree__children { display: block; }
/* 子级缩进 10px（对齐参考站 .p_child），子级链接色 #444。 */
.pl-tree__children .pl-tree__item { padding-inline-start: 10px; }
.pl-tree__children .pl-tree__item a,
.pl-tree__children .pl-tree__item span:not(.pl-tree__toggle) { color: #444; }

/* 分组标题行：左分类名（主题青，链接）+ 右 View More，底部细分隔线。
   间距对齐参考站：标题上 24px、分隔线下 12px、卡片上 24px。 */
.pl-group { margin-bottom: 36px; }
.pl-group__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 24px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}
.pl-group__name {
    margin: 0;
    color: var(--site-primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
}
.pl-group__name a { color: inherit; }
.pl-group__name a:hover { color: var(--site-primary-hover); }
.pl-group__more {
    display: inline-flex;
    align-items: center;
    color: #505050;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
}
.pl-group__more:hover { color: var(--site-primary); }
.pl-group__chevron { font-family: ui-monospace, monospace; }
.pl-group__chevron:last-of-type { margin-inline-start: 2px; }
/* 分类页右侧标题：居中主题青分类名，底部细线，无数量统计（对齐参考站 p_right_title）。 */
.pl-group__head--category {
    justify-content: center;
    margin: 24px auto 36px;
    border-bottom: 0;
    padding-bottom: 0;
}
.pl-group__head--category::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -12px;
    width: 100%;
    border: 1px solid #dcdcdc;
}
.pl-group__head--category { position: relative; }
.pl-group__title {
    margin: 0;
    color: var(--site-primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
}

/* 产品网格：4 列，卡间 12px、行间 24px。 */
.pl-grid { display: flex; flex-wrap: wrap; }
.pl-card__item {
    width: calc((100% - 36px) / 4);
    margin-inline-end: 12px;
    margin-block-end: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}
.pl-card__item:nth-child(4n) { margin-inline-end: 0; }
.pl-card__item:hover { box-shadow: 0 0 10px rgba(0, 0, 0, .25); }

/* 卡内图片区：230px 居中，hover 放大 1.1。 */
.pl-card__media {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    position: relative;
}
.pl-card__media a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-card__media img {
    max-width: 100%;
    max-height: 100%;
    transition: transform .4s ease;
}
.pl-card__item:hover .pl-card__media img { transform: scale(1.1); }
/* Video 角标：图片右下角灰底白字，默认媒体为视频时显示。 */
.pl-card__video {
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 48px;
    height: 20px;
    border-radius: 10px;
    background: #969696;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    z-index: 3;
}

/* 卡内标题：两行截断居中，hover 变青。 */
.pl-card__name {
    margin: 12px 0;
    color: #505050;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    min-height: 48px;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.pl-card__name a { color: inherit; }
.pl-card__name a:hover { color: var(--site-primary); }

/* Get Best Price：描边胶囊按钮，hover 蓝底白字；纯样式，询盘建成后接入。 */
.pl-card__cta {
    display: block;
    height: 40px;
    border: 2px solid var(--site-primary);
    border-radius: 36px;
    line-height: 36px;
    text-align: center;
    color: var(--site-primary);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    box-sizing: border-box;
}
.pl-card__cta:hover { background: var(--site-primary); color: #fff; }

/* 空状态：无启用分类或无已发布产品时显示。 */
.pl-empty {
    text-align: center;
    color: #8a94a0;
    font-size: 14px;
    line-height: 24px;
    padding: 60px 0;
}

/* 服务端分页（仅分类页）：36×36 圆形，当前项青底白字。
   几何与样式对齐参考站 .paging_99516 实测：相邻项距 14px（参考站 margin 0 7px）、
   数字色 #323232、无边框、阴影 0 0 6px rgba(0,0,0,.15)、hover/当前青底白字；
   上间距 16px（卡片自带 24px 下间距，合计 40px 与参考站一致），
   下间距 24px + 主区 76px 内边距 = 参考站分页器 100px 底距。
   首/上/下/末四箭头为 SVG 尖括号，形态复刻参考站 ft-*page 字体图标
   （单尖括号视觉 4.5 x 8.75px、双尖括号 8 x 8.75px，stroke 1.33px）；
   RTL 下整组左右镜像（flex 自动反向 + 箭头 scaleX(-1)）。 */
.pl-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 24px;
}
.pl-pager__num, .pl-pager__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #323232;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 0 6px rgba(0, 0, 0, .15);
    box-sizing: border-box;
}
.pl-pager__num:hover, .pl-pager__arrow:hover { background: var(--site-primary); color: #fff; }
.pl-pager__num.is-current { background: var(--site-primary); color: #fff; }
.pl-pager__chevron {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: miter;
    stroke-miterlimit: 4;
}
[dir="rtl"] .pl-pager__chevron { transform: scaleX(-1); }
.pl-pager__ellipsis {
    width: 14px;
    text-align: center;
    color: #999;
    font-size: 16px;
    line-height: 36px;
}

/* 视口 ≤1280：容器贴合视口，侧栏收窄，卡片仍 4 列。 */
@media screen and (max-width: 1280px) {
    .pl-crumbs, .pl-main { max-width: none; }
    .pl-side { width: 240px; }
}

/* 视口 ≤920：侧栏移至产品区上方（对齐参考站移动站：先分类树与联系盒，后产品），
   面包屑字号收缩；产品卡片同步降为两列（此前 641–920px 仍四列，卡片仅约 113px 宽）。 */
@media screen and (max-width: 920px) {
    .pl-main { flex-direction: column; }
    .pl-side { width: 100%; order: -1; }
    .pl-tree { max-height: 420px; overflow: auto; }
    .pl-crumbs { font-size: 13px; }
    .pl-card__item { width: calc((100% - 12px) / 2); margin-inline-end: 12px; }
    .pl-card__item:nth-child(2n) { margin-inline-end: 0; }
    /* 四列的行尾重置在兩列下要还原，否则第 4/8… 张会多出右侧缝。 */
    .pl-card__item:nth-child(4n) { margin-inline-end: 12px; }
}

/* 视口 ≤640：横幅压低、卡片单列通栏（对齐参考站移动站形态），标题缩小。 */
@media screen and (max-width: 640px) {
    .pl-banner { height: 180px; }
    .pl-banner__title { font-size: 28px; line-height: 38px; }
    .pl-banner__desc { font-size: 14px; line-height: 22px; }
    .pl-card__item {
        width: 100%;
        margin-inline-end: 0;
    }
    .pl-card__item:nth-child(n) { margin-inline-end: 0; }
    .pl-card__name { font-size: 13px; line-height: 20px; min-height: 40px; }
    .pl-card__cta { height: 34px; line-height: 30px; font-size: 12px; }
    .pl-group__name { font-size: 20px; line-height: 30px; }
    .pl-group__head--category { margin: 0 auto 24px; }
    .pl-group__title { font-size: 18px; line-height: 28px; }
}

/* 视口 ≤520：侧栏分类树单项字号收缩。 */
@media screen and (max-width: 520px) {
    .pl-tree__item { font-size: 13px; }
}
