/* ============================================================
   产品中心 - 通栏大横幅展厅式 v5 (category.html)
   数据全部来自数据库栏目表：名称/描述/英文别名/背景图
   一行 3 个产品卡片 - 大气质感版（大图 + 紧凑信息 + 立体卡片）
   作用域前缀 .phub，不影响其它页面
   ============================================================ */
.phub {
    --ph-blue: #1a6fc4;
    --ph-blue-d: #0f4b8c;
    --ph-ink: #16243a;
    --ph-gray: #63748b;
    background: #f4f7fb;
    padding-bottom: 20px;
}

/* ===================== 分类通栏大横幅 ===================== */
.phub-sec { margin-bottom: 80px;margin-top:80px }
.phub-banner {
    position: relative;
    height: 440px;
    background-size: cover;
    background-position: center 45%;
    background-attachment: fixed; /* 背景图固定，滚动时视差大气感 */
    overflow: hidden;
}
.phub-banner__mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 20, 40, .94) 0%, rgba(8, 34, 66, .82) 40%, rgba(12, 52, 94, .35) 100%);
}
.phub-banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(to top, #f4f7fb, rgba(244, 247, 251, 0));
    z-index: 1;
}
.phub-banner__inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 48px;
}
.phub-banner__no {
    font-size: 160px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .14);
    letter-spacing: -8px;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}
.phub-banner__txt { flex: 1; color: #fff; }
.phub-banner__en {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 6px;
    color: #8fd0ff;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}
.phub-banner__en::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 52px; height: 3px;
    background: var(--ph-blue);
}
.phub-banner__txt h2 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 0 0 22px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}
.phub-banner__txt p {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    max-width: 700px;
}
.phub-banner__more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: all .3s ease;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}
.phub-banner__more i { font-style: normal; transition: transform .3s ease; }
.phub-banner__more:hover { background: #fff; color: var(--ph-blue-d); border-color: #fff; }
.phub-banner__more:hover i { transform: translateX(6px); }

/* ===================== 一行3个 产品卡片（大气质感版） ===================== */
.phub-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 52px 40px 10px;
}
.phub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.phub-card {
    position: relative;
    display: block;
    background: #fff;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(26, 111, 196, .09);
    box-shadow: 0 8px 30px rgba(20, 50, 90, .08);
    transition: box-shadow .45s ease, transform .45s ease, border-color .45s ease;
}
/* 顶部品牌色条：hover 时变宽 */
.phub-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 4px;
    background: linear-gradient(90deg, var(--ph-blue), #4aa3f0);
    z-index: 4;
    transition: width .45s ease;
}
.phub-card:hover {
    box-shadow: 0 26px 60px rgba(15, 75, 140, .2);
    transform: translateY(-10px);
    border-color: transparent;
}
.phub-card:hover::before { width: 100%; }

/* 产品图：4:3 比例贴合产品图本身，去掉上下留白 */
.phub-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
    border-bottom: 0;
}
.phub-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.phub-card:hover .phub-card__media img { transform: scale(1.09); }
.phub-card__cat {
    position: absolute;
    left: 0;
    top: 16px;
    background: var(--ph-blue);
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 7px 15px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(26, 111, 196, .28);
}

/* 信息区：紧凑、有层次 */
.phub-card__body { padding: 8px 24px 26px; }
.phub-card__body h3 {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    color: var(--ph-ink);
    line-height: 1.45;
    margin: 0 0 12px;
    padding-left: 14px;
    transition: color .3s ease;
}
.phub-card__body h3::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 4px; height: 18px;
    background: var(--ph-blue);
    border-radius: 2px;
}
.phub-card:hover .phub-card__body h3 { color: var(--ph-blue); }
/* 描述固定 2 行，不再一大片留白 */
.phub-card__body p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--ph-gray);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 了解详情：描边按钮，hover 填充 */
.phub-card__more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border: 1px solid var(--ph-blue);
    color: var(--ph-blue);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all .3s ease;
}
.phub-card__more i { font-style: normal; transition: transform .3s ease; }
.phub-card:hover .phub-card__more { background: var(--ph-blue); color: #fff; }
.phub-card:hover .phub-card__more i { transform: translateX(5px); }

/* ===================== 响应式 ===================== */
@media screen and (max-width: 1180px) {
    .phub-banner { height: 380px; }
    .phub-banner__no { font-size: 120px; }
    .phub-banner__txt h2 { font-size: 44px; }
    .phub-banner__inner { gap: 30px; padding: 0 28px; }
    .phub-wrap { padding: 40px 28px 10px; }
    .phub-grid { gap: 22px; }
    .phub-card__body { padding: 18px 20px 22px; }
}
@media screen and (max-width: 900px) {
    .phub-banner { background-attachment: scroll; } /* 移动端关闭视差固定 */
}
@media screen and (max-width: 760px) {
    .phub-banner { height: 300px; background-position: 62% center; }
    .phub-banner__inner { gap: 16px; padding: 0 18px; }
    .phub-banner__no { font-size: 66px; letter-spacing: -4px; }
    .phub-banner__txt h2 { font-size: 22px; }
    .phub-banner__en { font-size: 12px; letter-spacing: 4px; }
    .phub-banner__txt p { font-size: 13px; line-height: 1.7; }
    .phub-banner__more { padding: 11px 16px; font-size: 12px; }
    .phub-wrap { padding: 30px 16px 6px; }
    .phub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .phub-card__media img { padding: 10px; }
    .phub-card__body { padding: 16px; }
    .phub-card__body h3 { font-size: 17px; }
}
@media screen and (max-width: 480px) {
    .phub-banner__more { display: none; }
    .phub-grid { grid-template-columns: 1fr; }
}
