:root {
    --products-red: #bc1721;
    --products-ink: #17191b;
    --products-muted: #66696c;
    --products-surface: #f1f2f2;
    --products-page: #fafafa;
    --products-radius: 32px;
    --products-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.xiniu-products-body {
    background: var(--products-page);
}

.xiniu-products-body .site-nav a[href$="/products/"],
.xiniu-products-body .site-nav a[href="products-preview.html"] {
    color: var(--products-red);
}

.xiniu-products-body .site-nav a[href$="/products/"]::after,
.xiniu-products-body .site-nav a[href="products-preview.html"]::after {
    right: 0;
}

.products-page {
    padding-top: var(--header-height);
    overflow: hidden;
    background: var(--products-page);
    color: var(--products-ink);
}

.product-catalog-page {
    padding-top: var(--header-height);
    background: #fff;
}

.products-page__shell {
    display: flex;
    width: min(1340px, calc(100% - 96px));
    align-items: center;
    flex-direction: column;
    margin-inline: auto;
    text-align: center;
}

.products-page__intro {
    padding: 70px 0 58px;
}

.products-page__intro h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.products-page__intro p {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--products-muted);
    font-size: 15px;
    line-height: 1.8;
}

.product-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 6px 6px;
}

.product-system-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 640px;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    padding: 42px 46px 30px;
    border-radius: var(--products-radius);
    background: var(--products-surface);
    isolation: isolate;
}

.product-system-card__media {
    position: relative;
    z-index: 1;
    width: 72%;
    height: 350px;
    flex: 0 0 auto;
    overflow: hidden;
    margin-inline: auto;
    border-radius: 18px;
    background: #dfe1e2;
}

.product-system-card:nth-child(even) .product-system-card__media {
    width: 76%;
}

.product-system-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--products-ease), filter 0.6s ease;
}

.product-system-card__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 28px;
    text-align: center;
}

.product-system-card__copy h2 {
    margin: 0;
    font-size: clamp(36px, 3.4vw, 48px);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.product-system-card__copy p {
    max-width: 410px;
    margin: 12px auto 0;
    color: var(--products-muted);
    font-size: 14px;
    line-height: 1.65;
}

.product-system-card__more {
    position: relative;
    z-index: 3;
    display: inline-flex;
    width: 96px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 !important;
    border-radius: 999px;
    background: var(--products-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
    word-break: keep-all;
    transition: background 0.28s ease, transform 0.28s var(--products-ease);
}

.product-system-card__more:hover {
    background: #95121a;
    transform: translateY(-2px);
}

.product-system-card__more:active {
    transform: scale(0.98);
}

.product-catalog {
    padding: 112px 0 120px;
    background: #fff;
}

.product-catalog__shell {
    width: min(1340px, calc(100% - 96px));
    margin-inline: auto;
}

.product-catalog__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    align-items: end;
    gap: 64px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(23, 25, 27, 0.16);
}

.product-catalog__header > div > p {
    margin: 0 0 18px;
    color: var(--products-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.product-catalog__header h2 {
    margin: 0;
    color: var(--products-ink);
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.product-catalog__header > p {
    max-width: 430px;
    margin: 0;
    color: var(--products-muted);
    font-size: 14px;
    line-height: 1.8;
}

.product-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0 46px;
}

.product-catalog__filters a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(23, 25, 27, 0.18);
    border-radius: 999px;
    color: var(--products-ink);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, transform 0.24s var(--products-ease);
}

.product-catalog__filters a:hover,
.product-catalog__filters a.is-active {
    border-color: var(--products-red);
    background: var(--products-red);
    color: #fff;
}

.product-catalog__filters a:active {
    transform: scale(0.98);
}

.product-catalog__filters span {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(23, 25, 27, 0.08);
    font-size: 10px;
}

.product-catalog__filters a:hover span,
.product-catalog__filters a.is-active span {
    background: rgba(255, 255, 255, 0.18);
}

.product-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-catalog-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--products-surface);
}

.product-catalog-card__media {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px;
    background: #e7e8e8;
}

.product-catalog-card__media::before {
    position: absolute;
    content: "";
    width: 66%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(188, 23, 33, 0.09);
}

.product-catalog-card__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 22px 24px rgba(23, 25, 27, 0.16));
    transition: transform 0.55s var(--products-ease);
}

.product-catalog-card__media > span {
    position: relative;
    z-index: 1;
    color: rgba(23, 25, 27, 0.18);
    font-size: 72px;
    font-weight: 800;
}

.product-catalog-card__body {
    min-height: 230px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 30px 30px;
}

.product-catalog-card__body > p {
    margin: 0 0 15px;
    color: var(--products-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.product-catalog-card__body h3 {
    margin: 0;
    color: var(--products-ink);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.16;
}

.product-catalog-card__body h3 a {
    color: inherit;
}

.product-catalog-card__body > div {
    margin: 14px 0 22px;
    color: var(--products-muted);
    font-size: 13px;
    line-height: 1.7;
}

.product-catalog-card__link {
    min-width: 94px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--products-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.24s ease, transform 0.24s var(--products-ease);
}

.product-catalog-card__link:hover {
    background: #95121a;
    color: #fff;
    transform: translateY(-2px);
}

.product-catalog-card__link:active {
    transform: scale(0.98);
}

.product-catalog__empty {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 44px;
    border-radius: 24px;
    background: var(--products-surface);
    text-align: center;
}

.product-catalog__empty strong {
    font-size: 28px;
}

.product-catalog__empty span {
    margin-top: 12px;
    color: var(--products-muted);
    font-size: 14px;
}

.product-catalog__empty a {
    margin-top: 24px;
    color: var(--products-red);
    font-size: 13px;
    font-weight: 700;
}

.product-catalog__pagination {
    margin-top: 48px;
}

.product-catalog__pagination ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.product-catalog__pagination a,
.product-catalog__pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(23, 25, 27, 0.18);
    border-radius: 999px;
    color: var(--products-ink);
    font-size: 12px;
    font-weight: 700;
}

.product-catalog__pagination .current {
    border-color: var(--products-red);
    background: var(--products-red);
    color: #fff;
}

@media (hover: hover) {
    .product-catalog-card:hover .product-catalog-card__media img {
        transform: translateY(-6px) scale(1.035);
    }
}

.technology-section--products {
    background: #111214;
    color: #f8f7f4;
}

.technology-section--products::before {
    border-color: rgba(248, 247, 244, 0.14);
    box-shadow: 0 0 0 80px rgba(248, 247, 244, 0.025), 0 0 0 160px rgba(248, 247, 244, 0.025);
}

.technology-section--products .section-kicker {
    color: var(--products-red);
}

.technology-section--products .technology-section__intro > p:nth-of-type(2),
.technology-section--products .process-list p {
    color: rgba(248, 247, 244, 0.62);
}

.technology-section--products .process-list li {
    border-color: rgba(248, 247, 244, 0.18);
}

.technology-section--products .process-list strong {
    color: #f8f7f4;
}

.technology-section--products .button--dark {
    border-color: #f8f7f4;
    background: #f8f7f4;
    color: #17191b;
}

.technology-section--products .button--dark:hover {
    border-color: var(--products-red);
    background: var(--products-red);
    color: #fff;
}

@media (hover: hover) {
    .product-system-card:hover .product-system-card__media img {
        filter: contrast(1.03) saturate(1.03);
        transform: scale(1.035);
    }
}

@media (max-width: 1024px) {
    .products-page__shell {
        width: calc(100% - 64px);
    }

    .product-system-card {
        min-height: 580px;
        padding: 34px 32px 26px;
    }

    .product-system-card__media,
    .product-system-card:nth-child(even) .product-system-card__media {
        width: 80%;
        height: 310px;
    }

    .product-system-card__copy {
        margin-top: 24px;
    }

    .product-catalog__shell {
        width: calc(100% - 64px);
    }

    .product-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-catalog-card__media {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .products-page__shell {
        width: calc(100% - 40px);
    }

    .products-page__intro {
        padding: 44px 0 36px;
    }

    .products-page__intro h1 {
        font-size: 40px;
        line-height: 1.05;
    }

    .products-page__intro p {
        margin-top: 20px;
        font-size: 14px;
    }

    .product-system-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-inline: 5px;
    }

    .product-system-card {
        min-height: 520px;
        padding: 30px 28px 24px;
        border-radius: 26px;
    }

    .product-system-card__media,
    .product-system-card:nth-child(even) .product-system-card__media {
        width: 86%;
        height: 270px;
        border-radius: 16px;
    }

    .product-system-card__copy {
        margin-top: 22px;
    }

    .product-system-card__copy h2 {
        font-size: 40px;
    }

    .product-system-card__copy p {
        margin-top: 10px;
        font-size: 13px;
    }

    .product-catalog {
        padding: 76px 0 84px;
    }

    .product-catalog__shell {
        width: calc(100% - 32px);
    }

    .product-catalog__header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 28px;
    }

    .product-catalog__header h2 {
        font-size: 46px;
    }

    .product-catalog__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 26px -16px 34px;
        padding: 0 16px 6px;
        scrollbar-width: none;
    }

    .product-catalog__filters::-webkit-scrollbar {
        display: none;
    }

    .product-catalog__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-catalog-card__media {
        min-height: 340px;
    }

    .product-catalog-card__media img {
        height: 310px;
    }

    .product-catalog-card__body {
        min-height: 210px;
        padding: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .product-system-card__media img,
    .product-system-card__more,
    .product-catalog-card__media img,
    .product-catalog-card__link,
    .product-catalog__filters a {
        transition-duration: 0.01ms !important;
    }
}
