.container-b {
    padding: 60px 160px;
    background: rgba(245, 245, 245, 1);
}


.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 400px;
    height: 60px;
    opacity: 1;
    border-radius: 10px;
}

.tab-btn.active {
    background-color: #003399; /* 选中时的深蓝色 */
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: rgba(229, 229, 229, 1);
}

/* --- 产品网格区域 --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列布局 */
    gap: 24px;
    margin-bottom: 50px;
}

/* --- 产品卡片样式 --- */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-img-wrapper {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    padding: 33px;
}

.card-content {
    padding: 20px 45px;
    height: 100%;
}

.card-content h3 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 34.75px;
    color: rgba(0, 0, 0, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 69.5px;
}

.card-specs {
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    color: #666666;
    line-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-specs li {
    font-size: 16px;
    position: relative;
    padding-left: 10px;
    color: rgba(102, 102, 102, 1);
}

/* 列表项前面的小点 */
.card-specs li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.card-arrow {
    width: 24px;
    height: 24px;
    display: none;           /* 默认隐藏 */
    transition: transform 0.3s ease;
}
/* 卡片悬停时显示箭头 */
.card:hover .card-arrow {
    display: block;          /* 悬停显示 */
}


.layui-laypage a:hover {
    color: rgba(0, 45, 176, 1) !important;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: rgba(0, 45, 176, 1) !important;
}

/*-----------------------*/

/* --- 顶部产品展示区 (pi-hero) --- */

/* 轮播容器 - 相对定位，让箭头可以绝对定位在图片上 */
.pi-hero-image {
    position: relative;
    flex: 1;
    margin-right: 51px;
    width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

.product-swiper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.product-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 箭头定位在图片上 - 绝对定位 */
.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-swiper .swiper-button-next {
    right: 16px;
}

.product-swiper .swiper-button-prev {
    left: 16px;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* 分页器在图片底部 */
.product-swiper .swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.product-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.product-swiper .swiper-pagination-bullet-active {
    background: #0044cc;
}

/* 移动端箭头调整 */
@media (max-width: 768px) {
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .product-swiper .swiper-button-next::after,
    .product-swiper .swiper-button-prev::after {
        font-size: 14px;
    }

    .product-swiper .swiper-button-next {
        right: 8px;
    }

    .product-swiper .swiper-button-prev {
        left: 8px;
    }
}

.pi-hero {
    background: rgba(247, 247, 247, 1);
    padding: 60px 160px 60px 160px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pi-hero-image {
    flex: 1;
    margin-right: 51px;
    width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

.pi-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.pi-hero-info {
    flex: 1;
    padding-top: 50px;
}

.pi-product-title {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 75.3px;
    color: rgba(51, 51, 51, 1);
}

.pi-product-int{
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 36px;
    color: rgba(51, 51, 51, 1);
    text-align: left;
    white-space: pre-line;
    word-wrap: break-word;
    word-break: break-all;
}

.pi-tabs-section {
    background-color: rgba(255, 255, 255, 1);
    padding: 75px 160px;
}

.pi-section-block {
    margin-bottom: 60px;
}

.pi-section-block:last-child {
    margin-bottom: 0;
}

.pi-section-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.pi-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 60px;
    height: 3px;
    background-color: #0044cc;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pi-section-block {
        margin-bottom: 36px;
    }

    .pi-section-title {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
}

.pi-tab-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
    gap: 120px;
}

.pi-tab-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: #666;
    padding: 0 40px 20px 40px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.pi-tab-btn:hover {
    color: #0044cc;
}

/* 激活状态的 Tab */
.pi-tab-btn.pi-active {
    color: #0044cc; /* 深蓝色 */
    font-weight: bold;
}

/* 激活时的底部蓝线 */
.pi-tab-btn.pi-active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* 覆盖边框线 */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0044cc;
}

/* Tab 内容容器 */
.pi-tab-content {
    display: none; /* 默认隐藏 */
    animation: piFadeIn 0.5s;
}

.pi-tab-content.pi-active {
    display: block; /* 激活时显示 */
}

@keyframes piFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- 规格参数表格样式 (pi-table) --- */
.pi-spec-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px; /* 限制表格宽度，使其看起来像图中那样居中 */
}

.pi-spec-table td {
    padding: 18px 20px;
    border: 1px solid #eee;
    font-size: 14px;
}

/* 左侧列（项目名） */
.pi-spec-table td:first-child {
    text-align: center;
    width: 250px;
    height: 70px;
    opacity: 1;
    background: rgba(240, 242, 245, 1);
    border: 1px solid rgba(229, 229, 229, 1);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 28.96px;
    color: rgba(0, 0, 0, 1);
}

/* 右侧列（参数值） */
.pi-spec-table td:last-child {
    background-color: #fff;
    color: #666;
    text-align: center;
    padding-left: 40px;
}

/* 简单的详情占位样式 */
.pi-detail-placeholder {
    text-align: left;
    color: rgba(51, 51, 51, 1);
    line-height: 36px;
    font-size: 18px;
}


/* ============================================
   产品中心 - 移动端适配
   ============================================ */

/* ----- 1200px 以下 ----- */
@media (max-width: 1200px) {
    .pi-hero {
        padding: 40px 60px;
        flex-direction: column;
        gap: 30px;
    }

    .pi-hero-image {
        padding-right: 0;
        width: 100%;
        height: auto;
    }

    .pi-hero-image img {
        width: 100%;
        height: auto;
    }

    .pi-tabs-section {
        padding: 50px 60px;
    }

    .container-b {
        padding: 40px 60px;
    }

    .card {
        width: 100%;
        height: auto;
        min-height: 480px;
    }

    .card-img-wrapper {
        width: 100%;
        height: auto;
    }

    .card-img-wrapper img {
        padding: 20px;
    }

    .card-content {
        padding: 0 24px 24px 24px;
    }
}

/* ----- 992px 以下 (平板) ----- */
@media (max-width: 992px) {
    .container-b {
        padding: 30px 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        min-height: 400px;
    }

    .card-img-wrapper img {
        padding: 16px;
    }

    .card-content h3 {
        font-size: 20px;
        line-height: 30px;
    }

    .card-specs li {
        font-size: 14px;
        line-height: 26px;
    }

    .pi-hero {
        padding: 30px 30px;
        flex-direction: column;
    }

    .pi-hero-image {
        padding-right: 0;
        width: 100%;
        height: auto;
    }

    .pi-tabs-section {
        padding: 40px 30px;
    }

    .pi-product-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .pi-product-int {
        font-size: 16px;
        line-height: 30px;
    }

    .pi-tab-nav {
        flex-wrap: wrap;
        gap: 8px 0;
        border-bottom: none;
    }

    .pi-tab-btn {
        font-size: 16px;
        padding: 10px 24px;
        border-bottom: 2px solid transparent;
    }

    .pi-tab-btn.pi-active::after {
        bottom: -2px;
    }

    .pi-spec-table {
        max-width: 100%;
    }

    .pi-spec-table td:first-child {
        width: 120px;
        height: 56px;
        font-size: 16px;
        line-height: 24px;
    }

    .pi-spec-table td:last-child {
        font-size: 14px;
        padding-left: 16px;
    }
}

/* ----- 768px 以下 (手机) ----- */
@media (max-width: 768px) {
    .container-b {
        padding: 20px 16px;
    }

    /* Tabs 顶部切换按钮 */
    .tabs {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 24px;
    }

    .tab-btn {
        font-size: 14px;
        width: auto;
        /*min-width: 80px;*/
        height: 44px;
        padding: 0 20px;
        border-radius: 8px;
        flex: 1 0 auto;
        /*max-width: 48%;*/
        white-space: nowrap;
    }

    /* 产品网格 - 改为单列 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 30px;
    }

    .card {
        width: 100%;
        height: auto;
        min-height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .card-img-wrapper {
        width: 100%;
        height: auto;
        /*max-height: 200px;*/
        overflow: hidden;
        border-radius: 6px;
    }

    .card-img-wrapper img {
        padding: 12px;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .card-content {
        padding: 12px 8px 8px 8px;
        width: 100%;
    }

    .card-content h3 {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .card-specs {
        margin-bottom: 10px;
    }

    .card-specs li {
        font-size: 13px;
        line-height: 24px;
        padding-left: 14px;
    }

    .card-arrow {
        font-size: 16px;
        display: inline-block;
        margin-top: 4px;
    }

    .card-link {
        display: block;
        width: 100%;
    }

    /* 顶部产品展示区 */
    .pi-hero {
        padding: 24px 16px;
        flex-direction: column;
        gap: 20px;
    }

    .pi-hero-image {
        padding-right: 0;
        width: 100%;
        height: auto;
    }

    .pi-hero-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .pi-hero-info {
        width: 100%;
        padding-top: 20px;
        padding-right: 0;
    }

    .pi-product-title {
        font-size: 22px;
        margin-bottom: 16px;
        line-height: 32px;
    }

    .pi-product-int {
        font-size: 14px;
        line-height: 26px;
        white-space: pre-line;
        word-wrap: break-word;
        word-break: break-all;
    }

    /* Tab 切换区域 */
    .pi-tabs-section {
        padding: 30px 16px;
    }

    .pi-tab-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px;
        border-bottom: 1px solid #e8e8e8;
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .pi-tab-btn {
        font-size: 14px;
        padding: 8px 16px;
        white-space: nowrap;
        flex-shrink: 0;
        color: #666;
        font-weight: 400;
        border-bottom: 2px solid transparent;
    }

    .pi-tab-btn.pi-active {
        color: #0044cc;
        font-weight: 500;
    }

    .pi-tab-btn.pi-active::after {
        bottom: -2px;
        height: 2px;
    }

    /* 规格参数表格 */
    .pi-spec-table {
        max-width: 100%;
        font-size: 12px;
    }

    .pi-spec-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .pi-spec-table td:first-child {
        width: 80px;
        height: 44px;
        font-size: 13px;
        line-height: 20px;
        padding: 6px 8px;
        font-weight: 500;
    }

    .pi-spec-table td:last-child {
        font-size: 12px;
        padding: 6px 10px;
        text-align: center;
        word-break: break-all;
    }

    /* 详情占位 */
    .pi-detail-placeholder {
        font-size: 14px;
        line-height: 28px;
    }

    /* 分页容器 */
    #pagination-box {
        gap: 4px;
        flex-wrap: wrap;
    }

    #pagination-box .layui-laypage a,
    #pagination-box .layui-laypage span {
        padding: 0 10px;
        height: 30px;
        line-height: 30px;
        font-size: 13px;
        min-width: 30px;
        text-align: center;
    }
}

/* ----- 480px 以下 (小屏手机) ----- */
@media (max-width: 480px) {
    .container-b {
        padding: 16px 12px;
    }

    .tabs {
        gap: 8px;
        margin-bottom: 18px;
    }

    .tab-btn {
        font-size: 13px;
        height: 38px;
        padding: 0 14px;
        /*min-width: 60px;*/
        border-radius: 6px;
        color: rgba(0, 0, 0, 1);
    }

    .product-grid {
        gap: 12px;
        margin-bottom: 20px;
    }

    .card {
        padding: 10px;
    }

    .card-img-wrapper {
        /*max-height: 160px;*/
    }

    .card-img-wrapper img {
        padding: 8px;
    }

    .card-content {
        padding: 8px 4px 4px 4px;
    }

    .card-content h3 {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 4px;
    }

    .card-specs li {
        font-size: 12px;
        line-height: 22px;
        padding-left: 12px;
    }

    .card-arrow {
        font-size: 14px;
    }

    .pi-hero {
        padding: 16px 12px;
        gap: 16px;
    }

    .pi-product-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 12px;
    }

    .pi-product-int {
        font-size: 13px;
        line-height: 24px;
    }

    .pi-tabs-section {
        padding: 20px 12px;
    }

    .pi-tab-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .pi-spec-table td {
        padding: 6px 8px;
        font-size: 11px;
    }

    .pi-spec-table td:first-child {
        width: 60px;
        height: 36px;
        font-size: 12px;
        line-height: 16px;
        padding: 4px 6px;
    }

    .pi-spec-table td:last-child {
        font-size: 11px;
        padding: 4px 6px;
    }

    .pi-detail-placeholder {
        font-size: 13px;
        line-height: 24px;
    }

    #pagination-box .layui-laypage a,
    #pagination-box .layui-laypage span {
        padding: 0 8px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
        min-width: 26px;
        text-align: center;
    }
}

/* ----- 375px 以下 (超小屏) ----- */
@media (max-width: 375px) {
    .container-b {
        padding: 12px 8px;
    }

    .tab-btn {
        font-size: 12px;
        height: 34px;
        padding: 0 10px;
        min-width: 50px;
    }

    .card-img-wrapper {
        /*max-height: 140px;*/
    }

    .card-content h3 {
        font-size: 15px;
        line-height: 22px;
    }

    .card-specs li {
        font-size: 11px;
        line-height: 20px;
    }

    .pi-product-title {
        font-size: 18px;
        line-height: 26px;
    }

    .pi-product-int {
        font-size: 12px;
        line-height: 22px;
    }

    .pi-tab-btn {
        font-size: 12px;
        padding: 4px 10px;
    }

    .pi-spec-table td:first-child {
        font-size: 11px;
        width: 50px;
        height: 32px;
    }

    .pi-spec-table td:last-child {
        font-size: 10px;
    }
}