@import url("./brand-mark.css?v=wanqian-header");
@import url("./site-nav.css");

.catalog-page,
.catalog-community {
    --site-paper: #fdfcfa;
    --site-ink: #242137;
    --site-muted: #5d586b;
    --site-purple: #5d4297;
    --site-wash: #f0eaf9;
    --site-line: #e9e3ea;
    --site-width: 1280px;
    --site-gutter: clamp(20px, 5vw, 72px);
    --site-font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.catalog-page {
    margin: 0;
    background: var(--site-paper);
    color: var(--site-ink);
    font: 400 16px/1.65 var(--site-font);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}
.catalog-page *,
.catalog-header * {
    box-sizing: border-box;
}
.catalog-page main {
    flex: 1;
}
.catalog-page :is(h1, h2, h3, p, figure, dl, dd) {
    margin: 0;
}
.catalog-page [hidden] {
    display: none;
}
.catalog-page :is(img, video) {
    display: block;
    width: 100%;
    height: auto;
}
.catalog-page a,
.catalog-header a {
    color: inherit;
    text-decoration: none;
}
.catalog-page :focus-visible,
.catalog-header :focus-visible {
    outline: 2px solid #7b60b8;
    outline-offset: 4px;
}
.catalog-page [id] {
    scroll-margin-top: 24px;
}
.catalog-page :is(h1, h2) {
    line-height: 1.12;
    font-weight: 720;
    letter-spacing: -0.048em;
    text-wrap: balance;
}
.catalog-page h1 {
    font-size: clamp(37px, 4.5vw, 67px);
}
.catalog-page h2 {
    font-size: clamp(27px, 3.2vw, 46px);
}
.catalog-wrap,
.catalog-header-inner {
    width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
    margin-inline: auto;
}

.catalog-header {
    position: relative;
    z-index: 10;
    background: #fffdfb;
    border-bottom: 1px solid var(--site-line);
    color: var(--site-ink);
    font: 400 14px/1.4 var(--site-font);
    view-transition-name: catalog-header;
}
.catalog-header-inner {
    min-height: 69px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.catalog-header .catalog-brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--site-ink);
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -0.025em;
    white-space: nowrap;
}
.catalog-brand .brand-mark {
    --mark-size: 26px;
}
.catalog-header .catalog-account {
    display: inline-grid;
    place-items: center;
    min-height: 36px;
    border-radius: 7px;
    padding-inline: 13px;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        color 180ms ease;
    justify-self: end;
    border: 1px solid var(--site-line);
    color: var(--site-ink);
    font-weight: 650;
}
.catalog-header .catalog-account:hover {
    background: var(--site-wash);
    color: #47316f;
}

.catalog-copy > p:not(.catalog-label),
.catalog-intro > p {
    margin-top: 19px;
    max-width: 35em;
    color: var(--site-muted);
    text-wrap: pretty;
}
.catalog-label {
    margin-bottom: 12px !important;
    color: var(--site-purple);
    font-size: 13px;
    font-weight: 650;
}
.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}
.catalog-page .catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--site-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 640;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}
.catalog-page .catalog-button:hover {
    background: #4d327f;
}
.catalog-page .catalog-button.secondary {
    color: var(--site-ink);
    background: transparent;
    border-color: #ded6e2;
}
.catalog-page .catalog-button.secondary:hover {
    background: var(--site-wash);
    border-color: #d8cae8;
    color: #47316f;
}
.catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    border-top: 1px solid var(--site-line);
    color: var(--site-muted);
    font-size: 13px;
}
.catalog-footer a:first-child {
    color: var(--site-ink);
    font-weight: 710;
}
.catalog-footer a:hover {
    color: var(--site-purple);
}

.product-lead {
    display: grid;
    grid-template-columns: minmax(255px, 0.83fr) minmax(0, 1.65fr);
    align-items: center;
    gap: clamp(25px, 4vw, 58px);
    padding-block: clamp(48px, 6.4vw, 94px);
}
.product-lead h1 {
    font-size: clamp(36px, 3.8vw, 55px);
    text-wrap: initial;
}
.workspace-window {
    min-width: 0;
    padding: 0 12px;
    border-radius: 14px;
    background: #f6f2f6;
    border: 1px solid #e0d8e5;
    box-shadow:
        0 13px 34px #4a335113,
        0 1px 2px #4a335113;
}
.workspace-bar {
    display: flex;
    min-height: 53px;
    align-items: center;
    justify-content: space-between;
    gap: 5px 14px;
    flex-wrap: wrap;
    padding-block: 6px;
}
.workspace-bar > span {
    font-weight: 650;
    font-size: 13px;
}
.workspace-bar small {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 450;
    color: var(--site-muted);
    white-space: nowrap;
}
.workspace-tabs {
    display: flex;
    gap: 3px;
}
.workspace-tabs button {
    border: 0;
    background: transparent;
    color: var(--site-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 9px;
    min-height: 33px;
    border-radius: 6px;
    white-space: nowrap;
}
.workspace-tabs button:hover {
    background: #eae5ee;
}
.workspace-tabs button[aria-selected="true"] {
    background: #e9def8;
    color: #49346e;
    font-weight: 630;
}
.workspace-panel img {
    aspect-ratio: 1360 / 860;
    object-fit: contain;
    border: 1px solid #e4dde9;
    border-radius: 7px;
    background: #fff;
}
.workspace-panel figcaption {
    min-height: 40px;
    padding-block: 7px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    color: var(--site-muted);
    font-size: 12px;
}
.workspace-panel figcaption a {
    color: var(--site-purple);
    padding: 4px;
    border-radius: 4px;
}
.workspace-panel figcaption a:hover {
    background: var(--site-wash);
}
.film-section {
    background: #211e2c;
    color: #fffdfa;
    padding-block: clamp(42px, 6vw, 82px);
}
.film-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.82fr);
    align-items: center;
    gap: clamp(25px, 7vw, 92px);
}
.film-layout video {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #191722;
}
.film-section :is(figcaption, .catalog-copy > p:not(.catalog-label)) {
    color: #ded8e6;
}
.film-section figcaption,
.download-feature figcaption,
.ecosystem-image figcaption {
    font-size: 12px;
    margin-top: 8px;
}
.film-section .catalog-label {
    color: #e3d3ff;
}
.film-section h2 {
    font-size: clamp(42px, 5.6vw, 72px);
}
.film-section .catalog-button {
    background: #f6eefc;
    color: #38274d;
}
.film-section .catalog-button:hover {
    background: #e6d8f5;
}

.catalog-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    align-items: end;
    gap: 14px 32px;
    padding-block: clamp(38px, 5.4vw, 78px) 30px;
}
.catalog-intro > p {
    margin: 0;
}
.tool-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(23px, 4.2vw, 60px);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--site-line);
}
.tool-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eee8e7;
}
.tool-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.tool-image figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fffdf9f5;
    color: #342c39;
    font-size: 11px;
}
.tool-details > p,
.ecosystem-stages article > p:not(.catalog-label),
.browser-option p,
.download-status p {
    color: var(--site-muted);
    text-wrap: pretty;
    margin-top: 10px;
}
.tool-details dl {
    margin-block: 17px;
    border-top: 1px solid var(--site-line);
    font-size: 14px;
}
.tool-details dl div {
    display: grid;
    grid-template-columns: 3em minmax(0, 1fr);
    gap: 7px;
    padding-block: 6px;
    border-bottom: 1px solid var(--site-line);
}
.tool-details dt {
    color: var(--site-purple);
    font-weight: 620;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 36px);
    padding-block: 33px 58px;
}
.tool-grid article,
.tool-grid .tool-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tool-grid :is(.tool-image, .tool-details) {
    width: 100%;
}
.tool-grid .tool-details {
    flex: 1;
}
.tool-grid .tool-details > p {
    flex: 1;
}
.tool-grid h2 {
    margin-top: 17px;
    font-size: clamp(22px, 2.2vw, 29px);
}
.tool-grid dl {
    width: 100%;
}

.ecosystem-lead {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(25px, 5vw, 72px);
    padding-block: clamp(44px, 6vw, 78px) 34px;
}
.ecosystem-lead h1 {
    font-size: clamp(37px, 4.25vw, 63px);
    text-wrap: initial;
}
.ecosystem-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
}
.ecosystem-image figcaption,
.download-feature figcaption {
    color: var(--site-muted);
}
.ecosystem-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 60px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    overflow: hidden;
}
.ecosystem-stages article {
    background: #fffefc;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: clamp(20px, 3vw, 37px);
}
.ecosystem-stages article + article {
    border-left: 1px solid var(--site-line);
}
.ecosystem-stages h2 {
    font-size: clamp(22px, 2.4vw, 31px);
}
.ecosystem-stages article > p:not(.catalog-label) {
    margin: 3px 0 6px;
    flex: 1;
}
.ecosystem-stages .catalog-label {
    margin-bottom: 3px !important;
}

.downloads-main {
    padding-bottom: 52px;
}
.download-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(23px, 4vw, 58px);
    padding: clamp(22px, 3.8vw, 50px);
    border: 1px solid #e8e0ea;
    border-radius: 14px;
    background: #f8f5f8;
}
.download-feature img {
    border-radius: 9px;
}
.download-feature h2 {
    font-size: clamp(36px, 5.4vw, 65px);
}
.download-status {
    margin-block: 19px;
    border-block: 1px solid #e4dce8;
    padding-block: 10px;
}
.download-status strong {
    font-size: 14px;
}
.download-status p {
    margin-top: 2px;
    font-size: 13px;
}
.browser-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 28px;
    padding: 27px 0 0;
}
.browser-option h2 {
    font-size: 23px;
}

.catalog-community body > .topbar .brand {
    display: none;
}
.catalog-community .discovery-head {
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: light-dark(#faf6f9, #282331);
}
.catalog-community .discovery-head h1 {
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.045em;
}
.catalog-community .app .resource {
    border: 1px solid var(--line);
}

@media (min-width: 761px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tool-image img {
        transition: transform 460ms cubic-bezier(0.2, 0.7, 0.28, 1);
    }
    .tool-feature:hover .tool-image img,
    .tool-grid article:hover .tool-image img {
        transform: scale(1.03);
    }
}
@media (max-width: 900px) {
    .product-lead {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 23px;
    }
    .desktop-break {
        display: none;
    }
}
@media (max-width: 760px) {
    .catalog-intro,
    .product-lead,
    .film-layout,
    .tool-feature,
    .ecosystem-lead,
    .download-feature {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-lead,
    .ecosystem-lead,
    .film-layout {
        gap: 27px;
    }
    .film-layout .catalog-copy {
        grid-row: 1;
    }
    .tool-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tool-grid article + article {
        border-top: 1px solid var(--site-line);
        padding-top: 20px;
    }
    .ecosystem-stages {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 38px;
    }
    .ecosystem-stages article + article {
        border-left: 0;
        border-top: 1px solid var(--site-line);
    }
    .catalog-community .discovery-head {
        flex-wrap: wrap;
        gap: 10px;
    }
}
@media (max-width: 650px) {
    .catalog-header-inner {
        min-height: 54px;
        gap: 6px;
    }
    .catalog-header .catalog-brand {
        font-size: 17px;
        gap: 6px;
    }
    .catalog-brand .brand-mark {
        --mark-size: 22px;
    }
    .catalog-header .catalog-account {
        padding-inline: 8px;
        font-size: 12px;
    }
    .workspace-window {
        padding-inline: 8px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
    ::view-transition-old(root) {
        animation: catalog-out 140ms ease-in both;
    }
    ::view-transition-new(root) {
        animation: catalog-in 240ms cubic-bezier(0.2, 0.68, 0.3, 1) both;
    }
    ::view-transition-group(catalog-header) {
        animation-duration: 180ms;
    }
    @keyframes catalog-out {
        to {
            opacity: 0;
        }
    }
    @keyframes catalog-in {
        from {
            opacity: 0;
            transform: translateY(5px);
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-header a,
    .catalog-page .catalog-button {
        transition: none;
    }
}
