/* ===================================================================
   产品中心：高端简洁目录式版式（仅 product.php 加载，2026-12-02）
   左侧编号分类栏 + 右侧产品矩阵；保留 Filterizr 原筛选逻辑
   =================================================================== */

.product-page {
    background: #19191b;
    min-height: 100vh;
}

/* ---------- 页首：克制的标题与数据 ---------- */
.product-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.product-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 32px 54px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.product-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #fcc92e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.product-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 4px;
}

.product-hero-desc {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    letter-spacing: 0.6px;
}

.product-hero-side {
    display: flex;
    align-items: flex-end;
    gap: 38px;
    padding-bottom: 6px;
}

.product-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-hero-stat strong {
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.product-hero-stat span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-hero-link {
    color: #fcc92e;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(252, 201, 46, 0.4);
    padding-bottom: 4px;
    white-space: nowrap;
}

.product-hero-link:hover,
.product-hero-link:focus {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ---------- 主体：左侧分类栏 + 右侧产品区 ---------- */
.product-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 32px 104px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.product-rail {
    position: sticky;
    top: 96px;
}

.product-rail-head {
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-cat-list {
    counter-reset: product-category;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.product-cat-list li {
    counter-increment: product-category;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 0 11px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.product-cat-list li::before {
    content: counter(product-category, decimal-leading-zero);
    min-width: 20px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
    letter-spacing: 1px;
}

.product-cat-list li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #fcc92e;
    opacity: 0;
    transition: opacity .2s ease;
}

.product-cat-list li:hover {
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
}

.product-cat-list li:hover::after {
    opacity: 0.45;
}

.product-cat-list li.active {
    background: rgba(252, 201, 46, 0.055);
    color: #ffffff;
    font-weight: 600;
}

.product-cat-list li.active::before {
    color: #fcc92e;
}

.product-cat-list li.active::after {
    opacity: 1;
}

.product-rail-catalog {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 1px;
}

.product-rail-catalog span:last-child {
    color: #fcc92e;
    font-size: 15px;
}

.product-content {
    min-width: 0;
}

.product-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-toolbar-kicker {
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-toolbar-count {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.product-toolbar-count strong {
    margin-right: 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
}

/* ---------- 产品矩阵：白底产品图 + 深色信息栏 ---------- */
.product-grid {
    counter-reset: product-card;
}

.product-grid > .filtr-item {
    box-sizing: border-box;
    float: left;
    padding: 0 14px 34px;
    counter-increment: product-card;
}

.product-card {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #1d1d1f;
    transition: border-color .3s ease, transform .3s ease;
}

.product-card:hover {
    border-color: rgba(252, 201, 46, 0.45);
    transform: translateY(-3px);
}

.product-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffffff;
}

.product-card-media .media-thumb {
    height: auto;
    aspect-ratio: 8 / 5;
    background: #ffffff;
}

.product-card-media .media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    transition: transform .5s ease, opacity .3s ease;
}

.product-card:hover .media-thumb img {
    transform: scale(1.04);
    opacity: 1;
}

.product-card-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(25, 25, 27, 0.82);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}

.product-card:hover .product-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.product-card-info {
    padding: 15px 16px 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-align: left;
}

.product-card-info p a {
    color: inherit;
}

.product-card-info p a:hover {
    color: #fcc92e;
}

.product-card-index {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.product-card-index::before {
    content: 'NO. ' counter(product-card, decimal-leading-zero);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .product-hero-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-shell {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 36px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-grid > .filtr-item {
        width: 50% !important;
    }
}

@media (max-width: 991px) {
    .product-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .product-hero-side {
        align-self: stretch;
        justify-content: flex-start;
    }

    .product-shell {
        display: block;
        padding-top: 40px;
    }

    .product-rail {
        position: static;
        margin-bottom: 34px;
    }

    .product-rail-head,
    .product-rail-catalog {
        display: none;
    }

    .product-cat-list {
        display: flex;
        flex-direction: row;
        gap: 26px;
        overflow-x: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        scrollbar-width: thin;
    }

    .product-cat-list li {
        flex: 0 0 auto;
        gap: 0;
        padding: 0 0 11px;
        font-size: 13px;
        background: transparent;
    }

    .product-cat-list li::before {
        display: none;
    }

    .product-cat-list li::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: -1px;
        width: auto;
        height: 2px;
    }

    .product-cat-list li.active {
        background: transparent;
    }

    .product-grid > .filtr-item {
        width: 50% !important;
    }
}

@media (max-width: 640px) {
    .product-hero-inner {
        padding: 46px 18px 34px;
    }

    .product-hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .product-hero-side {
        gap: 24px;
    }

    .product-hero-stat strong {
        font-size: 24px;
    }

    .product-shell {
        padding: 32px 18px 72px;
    }

    .product-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-grid > .filtr-item {
        width: 100% !important;
        padding: 0 0 28px;
    }

    .product-card-info {
        padding: 14px;
    }
}
