/* =========================================================
   PRODUCTS DATABASE SHOWCASE
   产品数据库展示区
   白色背景 / 左侧分类 / 右侧3列产品
========================================================= */
/* =========================================================
   产品中心 - 左侧产品分类
========================================================= */
.products-section {
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: clamp(70px, 7vw, 110px) 0;
}

.products-layout {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(50px, 6vw, 90px);
    align-items: start;
}

/* =========================================================
   左侧侧边栏
========================================================= */
.products-sidebar {
    position: sticky;
    top: 100px;
}

.products-sidebar-title h2 {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 25px; /*左侧列表标题大小*/
    font-weight: 500;
    color: #111111;
}

.products-sidebar-title span {
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 20px;
    background: #c89b3c;
}

/* =========================================================
   分类标题
========================================================= */
.products-category-title {
    display: flex;
    align-items: center;
    margin-top: 38px;
    margin-bottom: 10px;
}

.products-category-title span {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    color: #333333;
}

.products-category-title i {
    display: block;
    width: 30px;
    height: 1px;
    margin-left: 12px;
    background: #c89b3c;
}

/* =========================================================
   分类列表
========================================================= */
.products-category-list {
    width: 100%;
}

.product-category-item {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none;
    border-bottom: 1px solid #eeeeee;
    background: transparent;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(13px, 1.1vw, 15px); /*左侧列表文字大小*/
    color: #000000;
    text-align: left;
    cursor: pointer;
    transition: color .25s ease, padding-left .25s ease, border-color .25s ease;
}

.product-category-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category-item em {
    flex-shrink: 0;
    font-family: Inter, sans-serif;
    font-size: clamp(12px, 1vw, 13px); /*右侧列表数字大小*/
    font-style: normal;
    color: #999999;
}
.product-category-item:hover {
    color: #111111;
    padding-left: 5px;
}

.product-category-item:hover em {
    color: #c89b3c;
}

.product-category-item.active {
    color: #c18b2c;
    font-weight: 500;
    padding-left: 5px;
}

.product-category-item.active em {
    color: #c18b2c;
}

/* =========================================================
   产品总数统计
========================================================= */
.products-total {
    margin-top: 48px;
}

.products-total-line {
    width: 100%;
    height: 1px;
    background: #dddddd;
    margin-bottom: 28px;
}

.products-total-label {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px; /*产品总数大小*/
    color: #666666;
}

.products-total-number {
    display: flex;
    align-items: baseline;
    margin-top: 8px;
}

.products-total-number strong {
    font-family: Inter, sans-serif;
    font-size: 64px;/*num大小*/
    line-height: 1;
    font-weight: 300;
    letter-spacing: -3px;
    color: #bd882d;
}

.products-total-number span {
    margin-left: 8px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;/*款大小*/
    color: #777777;
}

/* =========================================================
   右侧内容区标题
========================================================= */
.products-content {
    min-width: 0;
}

.products-content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e5e5e5;
}

.products-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: Inter, sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    color: #bd882d;
}

.products-content-header h2 {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: #111111;
}

.products-content-header h2 span {
    color: #bd882d;
}

.products-count {
    padding-bottom: 4px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px; /*共X款产品大小*/
    white-space: nowrap; /*禁止换行*/
    color: #888888;
}

.products-count strong {
    margin: 0 4px;
    font-family: Inter, sans-serif;
    font-size: 18px; /*X大小*/
    font-weight: 400;
    color: #bd882d;
}

/* =========================================================
   产品卡片网格
========================================================= */
.products-content .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.products-content .product-card {
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    box-shadow: none;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.products-content .product-card:hover {
    transform: translateY(-5px);
    border-color: #d6d6d6;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
}

/* 删除标题文字间距 */
.products-content h2 {
    letter-spacing: 0;
}

/* 图片区域 */
.products-content .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2/ 2;
    overflow: hidden;
    background: #f5f5f5;
}

.products-content .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 8%;
    transition: transform .5s ease;
}

.products-content .product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 图片右下角箭头 */
.product-image-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c89b3c;
    border-radius: 50%;
    background: #ffffff;
    color: #b88325;
    font-size: 13px;
}

/* 产品文字信息 */
.products-content .product-info {
    padding: 17px 16px 15px;
}

.products-content .product-category {
    display: block;
    margin-bottom: 6px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;/* 产品型号大小 */
    color: #bd882d;
}

.products-content .product-info h3 {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;/* 产品名称大小 */
    line-height: 1.4;
    font-weight: 500;
    color: #111111;
}

.products-content .product-info p {
    margin: 7px 0 -20px 0;
    min-height: 40px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 13px; /* 产品介绍大小 */
    line-height: 1.7;
    color: #888888;
}

.product-card-number {
    font-family: Inter, sans-serif;
    color: #777777;
    /* 背景：改色值，想去掉就设为 transparent */
    background-color: transparent;
    /* 圆角：数值越大越圆，0为直角 */
    border-radius: 3px;
    font-size: 12px;
    margin-right: auto;
    text-align: left;
}

.product-card-bottom span {
    font-family: Inter, sans-serif;
    font-size: 11px;
    color: #777777;
}

.product-card-bottom i {
    font-style: normal;
    color: #bd882d;
}

/* 底部行容器：左右分布，垂直居中对齐 */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px none;
}

/* 右下角圆形箭头样式 */
.product-card-arrow {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c89b3c;
    border-radius: 50%;
    background: #ffffff;
    color: #b88325;
    font-size: 13px;
}

/* 隐藏原图片内的旧箭头，避免残留 */
.product-image-arrow {
    display: none;
}

/* =========================================================
   分页控件
========================================================= */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.product-page-button {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: #555555;
    cursor: pointer;
}

.product-page-button.active {
    border-color: #bd882d;
    background: #bd882d;
    color: #ffffff;
}

.product-page-button:hover:not(:disabled) {
    border-color: #bd882d;
    color: #bd882d;
}

.product-page-button.active:hover {
    color: #ffffff;
}

.product-page-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* =========================================================
   产品卡片链接化
========================================================= */

.products-content .product-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.products-content .product-card:visited {
    color: inherit;
}

.products-content .product-card:hover {
    color: inherit;
}

/* =========================================================
   Loading / 空数据状态
========================================================= */
.products-loading,
.products-empty {
    grid-column: 1 / -1;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: #999999;
}

.products-empty span {
    font-size: 18px;
    color: #333333;
}

.products-empty p {
    font-size: 12px;
}
/* 无详情卡片，禁用hover上浮 */
.product-card.card.no-hover-effect:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e8e8e8 !important;
}
/* =========================================================
   平板适配 最大1000px
========================================================= */
@media (max-width: 1000px) {
    .products-layout {
        width: calc(100% - 50px);
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 35px;
    }

    .products-content .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   手机适配 最大700px
========================================================= */
@media (max-width: 700px) {
    .products-section {
        padding: 55px 0 70px;
    }

    .products-layout {
        width: calc(100% - 30px);
        display: block;
    }

    .products-sidebar {
        position: static;
        margin-bottom: 45px;
    }

    .products-category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .products-total {
        display: none;
    }

    .products-content-header {
        display: block;
    }

    .products-count {
        margin-top: 12px;
    }

    .products-content .card-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   统一面包屑
   产品中心 / 产品详情 / 技术资料统一
========================================================= */
.products-breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #777777;
}

.products-breadcrumb .breadcrumb-location {
    color: #777777;
}

.products-breadcrumb a {
    color: #555555;
    text-decoration: none;
    font-weight: 400;
    transition: color .25s ease;
}

.products-breadcrumb a:hover {
    color: #bd882d;
}

.products-breadcrumb .breadcrumb-arrow {
    color: #b5b5b5;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 700px) {
    .products-breadcrumb {
        gap: 7px;
        font-size: 13px;
    }

    .products-breadcrumb .breadcrumb-arrow {
        font-size: 12px;
    }
}
