:root {
    --brand: #0070b9;
    --brand-deep: #005b96;
    --brand-dark: #073c61;
    --brand-soft: #eaf4fa;
    --ink: #17232c;
    --body: #4f5e69;
    --muted: #74808a;
    --line: #d6dee4;
    --line-strong: #bdc9d2;
    --canvas: #edf2f5;
    --white: #ffffff;
    --container: min(76rem, calc(100% - 3rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--brand-dark);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: var(--container);
    min-height: 4.75rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand img {
    width: 11.1rem;
    height: 2rem;
    object-fit: contain;
}

.brand strong {
    padding-left: 0.8rem;
    color: var(--body);
    border-left: 1px solid var(--line-strong);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.official-link {
    min-height: 2.75rem;
    padding: 0 0.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-deep);
    border-bottom: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 160ms ease;
}

.official-link:hover {
    border-bottom-color: var(--brand);
}

.catalog {
    background: var(--canvas);
}

.catalog-cover {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-color: var(--brand-deep);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.catalog-cover::after {
    position: absolute;
    right: clamp(1.5rem, 6vw, 6rem);
    bottom: -5.5rem;
    width: 12rem;
    height: 12rem;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.catalog-cover-inner {
    position: relative;
    z-index: 1;
    width: var(--container);
    min-height: 24.5rem;
    margin: 0 auto;
    padding: 3.5rem 0 6.25rem;
    display: grid;
    grid-template-rows: 1fr auto;
}

.cover-copy {
    padding: 2.5rem 0 2.7rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.64fr);
    align-items: end;
    gap: clamp(3rem, 8vw, 8rem);
}

.cover-kicker {
    margin: 0 0 0.65rem;
    color: #9fd6f3;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.cover-copy h1 {
    margin: 0;
    font-size: clamp(3.35rem, 6.4vw, 6rem);
    font-weight: 560;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.cover-intro {
    max-width: 32rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    line-height: 1.85;
    text-wrap: pretty;
}

.catalog-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.catalog-stats > li {
    min-width: 0;
    padding: 1rem 1.4rem 0 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-stats > li + li {
    padding-left: 1.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.catalog-stats span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
}

.catalog-stats strong {
    color: var(--white);
    font-family: "Avenir Next", ui-monospace, monospace;
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.catalog-body {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: -3.25rem auto 0;
    padding-bottom: 6.5rem;
    scroll-margin-top: 1rem;
}

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

.product-card {
    min-width: 0;
    min-height: 23.5rem;
    padding: 1.55rem 1.55rem 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--white);
    border: 1px solid transparent;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.product-card:hover {
    background: #f8fbfd;
    border-color: #a9c9dc;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-frame {
    width: 3.75rem;
    height: 3.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-number {
    padding-top: 0.1rem;
    color: #9aa7b1;
    font-family: "Avenir Next", ui-monospace, monospace;
    font-size: 0.67rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.07em;
}

.product-identity {
    margin-top: 1.4rem;
}

.category {
    margin: 0 0 0.55rem;
    color: var(--brand-deep);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.product-card h2 {
    margin: 0;
    font-family: "Avenir Next", "PingFang SC", sans-serif;
    font-size: clamp(1.55rem, 2vw, 1.82rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-wrap: balance;
}

.product-card h2 small {
    margin-left: 0.45rem;
    color: var(--body);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.description {
    margin: 1rem 0 1.4rem;
    color: var(--body);
    font-size: 0.86rem;
    line-height: 1.75;
    text-wrap: pretty;
}

.card-action {
    min-height: 3.15rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--brand-deep);
    border-top: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 600;
}

.card-action span:last-child {
    font-size: 1rem;
    transition: transform 160ms ease;
}

.product-card:hover .card-action span:last-child {
    transform: translate(0.14rem, -0.14rem);
}

.brand:focus-visible,
.official-link:focus-visible,
.product-card:focus-visible {
    outline: 3px solid #68bde9;
    outline-offset: 3px;
}

.site-footer {
    color: #5e6b74;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: var(--container);
    min-height: 5.2rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-inner p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    :root {
        --container: min(100% - 2rem, 50rem);
    }

    .catalog-cover-inner {
        min-height: 26rem;
    }

    .cover-copy {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.72fr);
        gap: 3rem;
    }

    .catalog-stats > li {
        padding-right: 0.85rem;
        gap: 0.5rem;
    }

    .catalog-stats > li + li {
        padding-left: 0.85rem;
    }

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

@media (max-width: 680px) {
    :root {
        --container: calc(100% - 1.5rem);
    }

    .header-inner {
        min-height: 4.25rem;
        gap: 1rem;
    }

    .brand {
        gap: 0.55rem;
    }

    .brand img {
        width: 8.6rem;
        height: auto;
    }

    .brand strong {
        font-size: 0.76rem;
    }

    .official-link {
        font-size: 0.72rem;
    }

    .catalog-cover-inner {
        min-height: 0;
        padding: 2.3rem 0 5rem;
    }

    .cover-copy {
        padding: 2.15rem 0 2.3rem;
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .cover-copy h1 {
        font-size: clamp(3rem, 16vw, 4.2rem);
    }

    .cover-intro {
        max-width: 36rem;
        font-size: 0.85rem;
        line-height: 1.75;
    }

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

    .catalog-stats > li,
    .catalog-stats > li + li {
        padding: 0.8rem 0.75rem 0.6rem 0;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .catalog-stats > li:nth-child(even) {
        padding-left: 0.75rem;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
    }

    .catalog-stats > li:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .catalog-body {
        margin-top: -2.65rem;
        padding-bottom: 4.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-card {
        min-height: 21rem;
        padding: 1.35rem 1.35rem 0;
    }

    .logo-frame {
        width: 3.4rem;
        height: 3.4rem;
    }

    .product-identity {
        margin-top: 1.15rem;
    }

    .product-card h2 {
        font-size: 1.55rem;
    }

    .description {
        margin-top: 0.85rem;
        font-size: 0.84rem;
        line-height: 1.72;
    }

    .footer-inner {
        min-height: 6.5rem;
        padding: 1.25rem 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
