:root {
    --page-max: 1920px;
    --edge: clamp(16px, 1.2vw, 23px);
    --hero-edge: clamp(24px, 3vw, 261px);
    --footer-edge: clamp(24px, 3vw, 261px);
    --content-width: min(calc(100% - (var(--edge) * 2)), 1874px);
    --hero-width: min(calc(100% - (var(--hero-edge) * 2)), 1280px);
    --footer-width: min(calc(100% - (var(--footer-edge) * 2)), 1398px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
}

.page-shell {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
}

.content-shell {
    width: var(--content-width);
    margin: 0 auto;
}

.footer-shell {
    width: var(--footer-width);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(36px, 2.8vw, 54px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(34px, 2.8vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.toolbar-anchor {
    position: fixed;
    top: 50%;
    right: max(16px, calc((100vw - min(100vw, 1920px)) / 2 + 24px));
    transform: translateY(-50%);
    z-index: 30;
}

.toolbar-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toolbar-item {
    position: relative;
}

.toolbar-item-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.toolbar-item-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.toolbar-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.46);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.toolbar-trigger:hover,
.toolbar-trigger:focus-visible,
.toolbar-item:hover .toolbar-trigger {
    background: #ca1c1d;
}

.toolbar-trigger:focus-visible {
    outline: 2px solid rgba(202, 28, 29, 0.28);
    outline-offset: 2px;
}

.toolbar-trigger-icon {
    display: block;
    object-fit: contain;
}

.toolbar-trigger-icon-phone {
    width: 23px;
    height: 23px;
}

.toolbar-trigger-icon-wechat {
    width: 24px;
    height: 20px;
}

.toolbar-trigger-icon-top {
    width: 20px;
    height: 26px;
}

.toolbar-flyout {
    position: absolute;
    top: 50%;
    right: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 10px 18px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(8px, -50%, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.toolbar-flyout::after {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    width: 16px;
    height: 100%;
}

.toolbar-item:hover .toolbar-flyout,
.toolbar-item:focus-within .toolbar-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0);
}

.toolbar-flyout-phone,
.toolbar-flyout-label {
    white-space: nowrap;
}

.toolbar-flyout-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #3d4046;
}

.toolbar-flyout-wechat {
    box-sizing: border-box;
    width: 184px;
    min-width: 184px;
    height: 184px;
    padding: 12px;
}

.toolbar-wechat-qr {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.homepage-news-carousel {
    overflow: hidden;
    background: #30363d;
}

.homepage-news-stage {
    position: absolute;
    inset: 0;
}

.homepage-news-stage[data-news-url] {
    cursor: pointer;
}

.homepage-news-date-stack {
    position: absolute;
    inset: 0;
    z-index: 11;
}

.homepage-news-date-badge {
    position: absolute;
    left: 18px;
    top: 16px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.homepage-news-caption-stack {
    position: relative;
    min-height: 24px;
    min-width: 0;
    flex: 1 1 auto;
    padding-right: 20px;
}

.homepage-news-caption {
    max-width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.homepage-news-thumb {
    display: block;
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    opacity: 0.75;
    cursor: pointer;
    transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.homepage-news-thumb:hover,
.homepage-news-thumb.is-active {
    border-color: rgba(255, 255, 255, 0.92);
    opacity: 1;
    transform: translateY(-1px);
}

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

.footer-lower-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.42fr) repeat(3, minmax(150px, 0.7fr));
    gap: clamp(28px, 3vw, 60px);
    align-items: start;
}

.footer-brand-column {
    min-width: 0;
    min-height: 196px;
    display: flex;
    flex-direction: column;
}

.footer-chrome-row {
    margin-top: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 22px;
}

.footer-chrome-copy {
    flex-shrink: 0;
    white-space: nowrap;
}

.banner-stage {
    position: relative;
    min-height: clamp(560px, 46vw, 960px);
    background: #0f1721;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    min-height: inherit;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.banner-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.banner-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.banner-media,
.banner-media picture,
.banner-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-media {
    overflow: hidden;
}

.banner-media img {
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
}

.banner-side-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 104px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    pointer-events: auto;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
}

.banner-side-arrow img {
    display: block;
    width: 14px;
    height: 24px;
    object-fit: contain;
}

.banner-side-arrow-left {
    left: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.banner-side-arrow-right {
    right: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.banner-shell {
    position: relative;
    z-index: 2;
    min-height: inherit;
    width: var(--hero-width);
    margin: 0 auto;
}

.banner-copy {
    position: relative;
    z-index: 3;
    padding-top: 100px;
    max-width: min(44vw, 820px);
}

.banner-slide[data-layout="left"] .banner-copy {
    margin-right: auto;
    text-align: left;
}

.banner-slide[data-layout="right"] .banner-copy {
    margin-left: auto;
    text-align: right;
}

.banner-slide[data-layout="center"] .banner-copy {
    margin: 0 auto;
    max-width: min(64vw, 1140px);
    text-align: center;
}

.banner-slide[data-size="sm"] .banner-copy {
    max-width: min(40vw, 720px);
}

.banner-slide[data-size="lg"] .banner-copy {
    max-width: min(49vw, 920px);
}

.banner-kicker {
    font-size: clamp(14px, 0.95vw, 18px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.banner-title {
    margin-top: clamp(18px, 1.7vw, 26px);
    font-size: clamp(34px, .05vw, 68px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.045em;
    white-space: pre-line;
}

.banner-slide[data-size="sm"] .banner-title {
    font-size: clamp(30px, 3vw, 54px);
}

.banner-slide[data-size="lg"] .banner-title {
    font-size: clamp(40px, 4.2vw, 80px);
}

.banner-subtitle {
    margin-top: clamp(18px, 1.65vw, 28px);
    font-size: clamp(14px, 0.96vw, 18px);
    font-weight: 500;
    line-height: 1.65;
    /* white-space: pre-line; */
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: clamp(28px, 3vw, 42px);
}

.banner-slide[data-layout="right"] .banner-actions {
    justify-content: flex-end;
}

.banner-slide[data-layout="center"] .banner-actions {
    justify-content: center;
}

.banner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 154px;
    height: 51px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.banner-pill svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.banner-slide[data-theme="light"] .banner-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.banner-slide[data-theme="light"] .banner-title,
.banner-slide[data-theme="light"] .banner-subtitle,
.banner-slide[data-theme="light"] .banner-metric-label,
.banner-slide[data-theme="light"] .banner-feature-name {
    color: #fff;
}

.banner-slide[data-theme="light"] .banner-pill {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.04);
}

.banner-slide[data-theme="light"] .banner-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

.banner-slide[data-theme="light"] .banner-metric-value {
    color: #fff;
}

.banner-slide[data-theme="dark"] .banner-kicker {
    color: rgba(48, 53, 60, 0.75);
}

@media (max-width: 900px) {
    .homepage-news-caption-stack {
        width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .homepage-news-date-badge {
        left: 12px;
        top: 12px;
        font-size: 12px;
    }

    .homepage-news-caption {
        font-size: 14px;
    }
}

.banner-slide[data-theme="dark"] .banner-title,
.banner-slide[data-theme="dark"] .banner-metric-value,
.banner-slide[data-theme="dark"] .banner-feature-name {
    color: #2d3136;
}

.banner-slide[data-theme="dark"] .banner-subtitle,
.banner-slide[data-theme="dark"] .banner-metric-label {
    color: #44494f;
}

.banner-slide[data-theme="dark"] .banner-pill {
    color: #2f3338;
    border-color: rgba(52, 57, 63, 0.5);
    background: rgba(255, 255, 255, 0.16);
}

.banner-slide[data-theme="dark"] .banner-pill:hover {
    background: rgba(255, 255, 255, 0.28);
}

.banner-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 28px;
}

.banner-slide[data-layout="center"] .banner-metrics {
    justify-content: center;
}

.banner-metric {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.banner-metric-separator {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.42);
    align-self: center;
}

.banner-slide[data-theme="dark"] .banner-metric-separator {
    background: rgba(54, 59, 65, 0.34);
}

.banner-metric-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-metric-value {
    font-size: clamp(30px, 2.2vw, 42px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.banner-metric-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.banner-feature-strip {
    position: absolute;
    z-index: 3;
    display: flex;
    gap: 22px;
    align-items: center;
}

.banner-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.banner-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.08);
}

.banner-slide[data-theme="dark"] .banner-feature-icon {
    border-color: rgba(52, 57, 63, 0.42);
    background: rgba(255, 255, 255, 0.22);
}

.banner-feature-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.showcase-stage {
    position: relative;
    overflow: hidden;
}

.showcase-slots {
    position: relative;
}

.showcase-slot {
    min-width: 0;
}

.showcase-tile {
    background-color: #d9e0e7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.showcase-tile-center {
    position: relative;
    overflow: hidden;
}

.showcase-center-frame {
    position: absolute;
    inset: 0;
    background-color: #d9e0e7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.45s ease;
    will-change: transform;
}

.showcase-center-active {
    transform: translate3d(0, 0, 0);
}

.showcase-center-buffer.is-offscreen-right {
    transform: translate3d(100%, 0, 0);
}

.showcase-center-buffer.is-offscreen-left {
    transform: translate3d(-100%, 0, 0);
}

.showcase-tile-center.is-animating-next .showcase-center-active {
    transform: translate3d(-100%, 0, 0);
}

.showcase-tile-center.is-animating-next .showcase-center-buffer {
    transform: translate3d(0, 0, 0);
}

.showcase-tile-center.is-animating-prev .showcase-center-active {
    transform: translate3d(100%, 0, 0);
}

.showcase-tile-center.is-animating-prev .showcase-center-buffer {
    transform: translate3d(0, 0, 0);
}

.showcase-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 120px;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 33, 0.22);
    color: rgba(255, 255, 255, 0.94);
    font-size: 62px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.showcase-nav:hover {
    background: rgba(15, 23, 33, 0.4);
    color: #ffffff;
}

.showcase-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 4px;
}

.showcase-nav-prev {
    left: clamp(20px, 20vw, 383px);
}

.showcase-nav-next {
    right: clamp(20px, 20vw, 392px);
}

.showcase-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.showcase-dot {
    width: 30px;
    height: 6px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.showcase-dot.is-active {
    width: 46px;
    background: rgba(255, 255, 255, 0.94);
}

.showcase-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    .footer-lower-grid {
        grid-template-columns: minmax(360px, 1.2fr) repeat(3, minmax(120px, 0.72fr));
        gap: 28px;
    }
}

@media (max-width: 1100px) {
    .partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .footer-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .footer-chrome-row {
        margin-top: 36px;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-nav {
        width: 44px;
        height: 88px;
        font-size: 46px;
    }

    .showcase-nav-prev {
        left: 12px;
    }

    .showcase-nav-next {
        right: 12px;
    }

    .showcase-pagination {
        display: none;
    }

    .banner-stage {
        min-height: clamp(760px, 136vw, 1080px);
    }

    .banner-shell {
        width: calc(100% - 28px);
    }

    .banner-side-arrow {
        width: 45px;
        height: 104px;
    }

    .banner-copy,
    .banner-slide[data-layout="left"] .banner-copy,
    .banner-slide[data-layout="right"] .banner-copy,
    .banner-slide[data-layout="center"] .banner-copy {
        max-width: 100%;
        margin: 0 auto;
        padding-top: 100px;
        text-align: center;
    }

    .banner-title,
    .banner-slide[data-size="sm"] .banner-title,
    .banner-slide[data-size="lg"] .banner-title {
        font-size: clamp(28px, 6.4vw, 42px);
        line-height: 1.03;
    }

    .banner-subtitle {
        font-size: 14px;
        line-height: 1.55;
    }

    .banner-actions,
    .banner-slide[data-layout="right"] .banner-actions,
    .banner-slide[data-layout="center"] .banner-actions {
        justify-content: center;
        gap: 12px;
    }

    .banner-pill {
        min-width: 132px;
        height: 44px;
        padding: 0 22px;
        font-size: 13px;
    }

    .banner-metrics {
        justify-content: center;
        gap: 18px;
        margin-top: 20px;
    }

    .banner-metric {
        gap: 10px;
    }

    .banner-metric-separator {
        height: 34px;
    }

    .banner-metric-value {
        font-size: 28px;
    }

    .banner-feature-strip {
        left: 50% !important;
        right: auto !important;
        bottom: 28px !important;
        transform: translateX(-50%);
        gap: 14px;
    }

    .banner-feature-item {
        gap: 6px;
    }

    .banner-feature-icon {
        width: 22px;
        height: 22px;
    }

    .banner-feature-name {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .footer-lower-grid {
        grid-template-columns: 1fr;
    }
}
