/* Homepage layout normalization. Loaded after all homepage skins. */
body.mxp-home-page {
    --mxp-home-content: 1280px;
    --mxp-home-gutter: 32px;
    --mxp-home-section-space: 72px;
    --mxp-home-line: #e5eaf1;
    --mxp-home-muted: #667085;
    --mxp-home-surface: #f7f9fc;
    overflow-x: hidden;
    background: #fff;
}

body.mxp-home-page .mxp-shop-section,
body.mxp-home-page .mxp-plus-network,
body.mxp-home-page .security-compliance-section,
body.mxp-home-page .industry-solutions-section,
body.mxp-home-page .mxp-max-solutions,
body.mxp-home-page .cloud-products-section,
body.mxp-home-page .mxp-news-section,
body.mxp-home-page .home-customer-cases,
body.mxp-home-page .mxp-max-trust {
    margin: 0;
    padding: var(--mxp-home-section-space) 0;
}

body.mxp-home-page .mxp-shop-section,
body.mxp-home-page .mxp-plus-network,
body.mxp-home-page .industry-solutions-section,
body.mxp-home-page .mxp-news-section,
body.mxp-home-page .mxp-partners-section {
    background: #fff;
}

body.mxp-home-page .security-compliance-section,
body.mxp-home-page .mxp-max-solutions,
body.mxp-home-page .cloud-products-section,
body.mxp-home-page .home-customer-cases,
body.mxp-home-page .mxp-max-trust {
    background: var(--mxp-home-surface);
}

body.mxp-home-page .mxp-shop-inner,
body.mxp-home-page .mxp-plus-network-inner,
body.mxp-home-page .security-compliance-container,
body.mxp-home-page .industry-solutions-container,
body.mxp-home-page .mxp-max-section-inner,
body.mxp-home-page .cloud-products-header,
body.mxp-home-page .cloud-products-container,
body.mxp-home-page .mobile-products-list,
body.mxp-home-page .mxp-news-inner,
body.mxp-home-page .gpu-content-container,
body.mxp-home-page .mxp-partners-inner {
    width: min(var(--mxp-home-content), calc(100% - 64px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

body.mxp-home-page .mxp-shop-title,
body.mxp-home-page .mxp-plus-network-head h2,
body.mxp-home-page .security-compliance-section .main-title,
body.mxp-home-page .industry-solutions-title,
body.mxp-home-page .mxp-max-section-title,
body.mxp-home-page .cloud-products-main-title,
body.mxp-home-page .mxp-news-title,
body.mxp-home-page .home-customer-cases .gpu-content-title,
body.mxp-home-page .mxp-partners-title {
    margin-top: 0;
    color: #172033;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.mxp-home-page .mxp-shop-desc,
body.mxp-home-page .mxp-plus-network-head p,
body.mxp-home-page .mxp-security-subtitle,
body.mxp-home-page .mxp-section-subtitle,
body.mxp-home-page .mxp-max-section-desc,
body.mxp-home-page .mxp-news-desc,
body.mxp-home-page .home-customer-cases .gpu-content-text,
body.mxp-home-page .mxp-partners-desc {
    color: var(--mxp-home-muted);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Hero and shortcut alignment */
body.mxp-home-page .mxp-hezi-banner .hero-slide-content {
    width: min(var(--mxp-home-content), calc(100% - 64px));
}

body.mxp-home-page .mxp-hezi-banner .mxp-quick-section {
    width: 100%;
    padding-right: var(--mxp-home-gutter);
    padding-left: var(--mxp-home-gutter);
}

body.mxp-home-page .mxp-hezi-banner .Hui-quick.mxp-hui-quick,
body.mxp-home-page .mxp-max-hero__tabs,
body.mxp-home-page .mxp-max-quick__grid {
    width: min(var(--mxp-home-content), 100%);
    max-width: var(--mxp-home-content);
    margin-right: auto;
    margin-left: auto;
}

body.mxp-home-page .mxp-max-hero__inner {
    width: min(var(--mxp-home-content), calc(100% - 64px));
    padding-right: 24px;
    padding-left: 24px;
}

body.mxp-home-page .mxp-max-hero__content {
    margin-left: 0;
}

@media (min-width: 769px) {
    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .tencent-banner-nav {
        left: max(32px, calc((100% - var(--mxp-home-content)) / 2));
        width: 240px;
    }

    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .hero-slide-content {
        width: min(var(--mxp-home-content), calc(100% - 64px));
        padding-right: 24px;
        padding-left: 312px;
    }
}

/* Product groups */
body.mxp-home-page .mxp-shop-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

body.mxp-home-page .mxp-shop-head {
    align-items: flex-end;
    margin: 0 0 28px;
}

body.mxp-home-page .mxp-shop-title {
    margin-bottom: 8px;
}

body.mxp-home-page .mxp-shop-tabs-wrap {
    margin: 0 0 24px;
}

body.mxp-home-page .mxp-shop-tabs {
    gap: 8px 28px;
}

body.mxp-home-page .mxp-shop-tab {
    min-height: 42px;
    padding-bottom: 12px;
}

body.mxp-home-page .mxp-shop-panel {
    min-height: 0;
}

body.mxp-home-page .mxp-shop-grid,
body.mxp-home-page .mxp-shop-recommendations {
    gap: 16px;
}

body.mxp-home-page .mxp-shop-group-card,
body.mxp-home-page .mxp-shop-recommendation {
    border-radius: 6px;
}

body.mxp-home-page .mxp-shop-group-card {
    min-height: 172px;
}

body.mxp-home-page .mxp-shop-group-card-body {
    padding: 18px;
}

/* Globe */
body.mxp-home-page .mxp-plus-network {
    border-top: 1px solid var(--mxp-home-line);
}

body.mxp-home-page .mxp-plus-network-head {
    margin-bottom: 32px;
}

body.mxp-home-page .mxp-plus-network-head h2 {
    margin-bottom: 10px;
}

body.mxp-home-page .mxp-plus-network-body {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
}

body.mxp-home-page .mxp-plus-network-stats {
    gap: 12px;
}

body.mxp-home-page .mxp-plus-network-stats > div {
    padding: 18px 20px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(35, 55, 86, 0.06);
}

body.mxp-home-page .mxp-plus-network-visual {
    height: 400px;
    min-height: 400px;
}

/* Security certifications */
body.mxp-home-page .security-compliance-section--certifications .security-compliance-container {
    width: min(var(--mxp-home-content), calc(100% - 64px));
}

body.mxp-home-page .security-compliance-section--certifications .section-header {
    margin-bottom: 28px;
}

body.mxp-home-page .security-compliance-section--certifications .security-certifications {
    padding: 30px 32px;
    border-radius: 6px;
    background: #fff;
}

body.mxp-home-page .security-compliance-section--certifications .certifications-title {
    margin-bottom: 24px;
}

body.mxp-home-page .security-compliance-section--certifications .certifications-grid {
    gap: 20px 24px;
}

body.mxp-home-page .security-compliance-section--certifications .certification-item {
    padding: 12px 8px;
}

/* Solutions */
body.mxp-home-page .industry-solutions-header,
body.mxp-home-page .mxp-max-section-head {
    margin-bottom: 28px;
}

body.mxp-home-page .industry-solutions-title,
body.mxp-home-page .mxp-max-section-title {
    margin-bottom: 0;
}

body.mxp-home-page .industry-tabs-container {
    margin-bottom: 28px;
}

body.mxp-home-page .industry-tabs {
    padding: 6px;
    border: 1px solid var(--mxp-home-line);
    border-radius: 6px;
    background: #fff;
}

body.mxp-home-page .industry-content-main {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    margin-bottom: 0;
    padding: 36px 40px;
    border: 1px solid var(--mxp-home-line);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(35, 55, 86, 0.06);
}

body.mxp-home-page .industry-solutions-section .solution-image,
body.mxp-home-page .industry-solutions-section .solution-image img,
body.mxp-home-page .industry-solutions-section .mxp-solution-img,
body.mxp-home-page .industry-solutions-section .mxp-solution-preview {
    border-radius: 6px;
}

body.mxp-home-page .mxp-max-solutions__viewport {
    border-radius: 6px;
}

body.mxp-home-page .mxp-max-solutions__stage {
    min-height: 420px;
}

/* Secondary cloud catalogue */
body.mxp-home-page .cloud-products-header {
    margin-bottom: 28px;
}

body.mxp-home-page .cloud-products-container {
    min-height: 410px;
    border: 1px solid var(--mxp-home-line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(35, 55, 86, 0.07);
}

body.mxp-home-page .cloud-products-nav {
    width: 220px;
    padding: 22px 0;
}

body.mxp-home-page .cloud-products-nav .nav-category {
    padding: 14px 20px;
}

body.mxp-home-page .cloud-products-list {
    padding: 24px;
}

body.mxp-home-page .products-grid-cloud {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

body.mxp-home-page .cloud-product-card {
    padding: 18px;
    border: 1px solid #edf0f5;
    border-radius: 6px;
}

/* News, cases and partners */
body.mxp-home-page .mxp-news-section {
    border-top: 1px solid var(--mxp-home-line);
}

body.mxp-home-page .mxp-news-header {
    margin-bottom: 28px;
}

body.mxp-home-page .mxp-news-title {
    margin-bottom: 8px;
}

body.mxp-home-page .mxp-news-layout {
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 20px;
}

body.mxp-home-page .mxp-news-list {
    gap: 10px;
}

body.mxp-home-page .mxp-news-item,
body.mxp-home-page .mxp-news-aside-card {
    border-radius: 8px;
}

body.mxp-home-page .home-customer-cases .gpu-content-title {
    margin-bottom: 10px;
}

body.mxp-home-page .home-customer-cases .gpu-content-text {
    margin: 0 auto 28px;
}

body.mxp-home-page .home-customer-cases .customer-cases-grid {
    width: 100%;
    max-width: none;
    gap: 16px;
    margin: 0;
    padding: 0;
}

body.mxp-home-page .home-customer-cases .customer-case-card {
    border: 1px solid var(--mxp-home-line);
    border-radius: 6px;
    background: #fff;
}

body.mxp-home-page .mxp-max-trust__layout {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    min-height: 400px;
}

body.mxp-home-page .mxp-max-trust__visual {
    min-height: 400px;
    border-radius: 8px;
}

body.mxp-home-page .mxp-partners-section {
    padding: 56px 0;
    border-top: 1px solid var(--mxp-home-line);
}

body.mxp-home-page .mxp-partners-head {
    margin-bottom: 24px;
}

body.mxp-home-page .mxp-partners-title {
    margin-bottom: 0;
}

body.mxp-home-page .mxp-partners-track {
    gap: 24px 44px;
}

@media (max-width: 1100px) and (min-width: 769px) {
    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .tencent-banner-nav {
        left: 24px;
        width: 200px;
    }

    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .hero-slide-content {
        width: calc(100% - 48px);
        padding-left: 272px;
    }

    body.mxp-home-page .mxp-plus-network-body {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 1024px) {
    body.mxp-home-page {
        --mxp-home-section-space: 60px;
    }

    body.mxp-home-page .mxp-shop-inner,
    body.mxp-home-page .mxp-plus-network-inner,
    body.mxp-home-page .security-compliance-container,
    body.mxp-home-page .industry-solutions-container,
    body.mxp-home-page .mxp-max-section-inner,
    body.mxp-home-page .cloud-products-header,
    body.mxp-home-page .cloud-products-container,
    body.mxp-home-page .mobile-products-list,
    body.mxp-home-page .mxp-news-inner,
    body.mxp-home-page .gpu-content-container,
    body.mxp-home-page .mxp-partners-inner,
    body.mxp-home-page .security-compliance-section--certifications .security-compliance-container {
        width: calc(100% - 48px);
    }

    body.mxp-home-page .industry-content-main {
        gap: 28px;
        padding: 30px;
    }

    body.mxp-home-page .mxp-news-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
}

@media (max-width: 768px) {
    body.mxp-home-page {
        --mxp-home-gutter: 16px;
        --mxp-home-section-space: 48px;
    }

    body.mxp-home-page .mxp-shop-inner,
    body.mxp-home-page .mxp-plus-network-inner,
    body.mxp-home-page .security-compliance-container,
    body.mxp-home-page .industry-solutions-container,
    body.mxp-home-page .mxp-max-section-inner,
    body.mxp-home-page .cloud-products-header,
    body.mxp-home-page .cloud-products-container,
    body.mxp-home-page .mobile-products-list,
    body.mxp-home-page .mxp-news-inner,
    body.mxp-home-page .gpu-content-container,
    body.mxp-home-page .mxp-partners-inner,
    body.mxp-home-page .security-compliance-section--certifications .security-compliance-container {
        width: calc(100% - 32px);
    }

    body.mxp-home-page .mxp-shop-title,
    body.mxp-home-page .mxp-plus-network-head h2,
    body.mxp-home-page .security-compliance-section .main-title,
    body.mxp-home-page .industry-solutions-title,
    body.mxp-home-page .mxp-max-section-title,
    body.mxp-home-page .cloud-products-main-title,
    body.mxp-home-page .mxp-news-title,
    body.mxp-home-page .home-customer-cases .gpu-content-title,
    body.mxp-home-page .mxp-partners-title {
        font-size: 24px;
        line-height: 1.35;
    }

    body.mxp-home-page .mxp-shop-desc,
    body.mxp-home-page .mxp-plus-network-head p,
    body.mxp-home-page .mxp-security-subtitle,
    body.mxp-home-page .mxp-section-subtitle,
    body.mxp-home-page .mxp-max-section-desc,
    body.mxp-home-page .mxp-news-desc,
    body.mxp-home-page .home-customer-cases .gpu-content-text,
    body.mxp-home-page .mxp-partners-desc {
        font-size: 14px;
    }

    body.mxp-home-page .mxp-hezi-banner .hero-slide-content,
    body.mxp-home-page .mxp-max-hero__inner {
        width: 100%;
    }

    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .banner-horizental {
        height: auto;
        overflow: hidden;
    }

    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .hero-swiper {
        position: relative;
        inset: auto;
        order: 1;
        height: clamp(360px, 100vw, 390px);
        min-height: clamp(360px, 100vw, 390px);
    }

    body.mxp-home-page .mxp-hezi-banner .mxp-quick-section,
    body.mxp-home-page .mxp-hezi-banner.hero-banner--tencent .mxp-quick-section {
        position: static;
        inset: auto;
        order: 2;
        margin: 0;
        padding: 12px 16px 20px;
        background: #fff;
    }

    body.mxp-home-page .Hui-quick.mxp-hui-quick .Hui-itemBlock {
        height: auto;
        min-height: 76px;
        max-height: none;
        border-radius: 6px;
    }

    body.mxp-home-page .Hui-quick.mxp-hui-quick .Hui-neirong {
        width: 100%;
        justify-content: center;
    }

    body.mxp-home-page .mxp-shop-head {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 22px;
    }

    body.mxp-home-page .mxp-shop-tabs-wrap {
        margin-bottom: 20px;
        overflow: hidden;
    }

    body.mxp-home-page .mxp-shop-tabs {
        flex-wrap: nowrap;
        gap: 22px;
        overflow-x: auto;
        padding: 0 2px;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    body.mxp-home-page .mxp-shop-tabs::-webkit-scrollbar {
        display: none;
    }

    body.mxp-home-page .mxp-shop-tab {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    body.mxp-home-page .mxp-shop-group-card {
        min-height: 152px;
    }

    body.mxp-home-page .mxp-plus-network-head,
    body.mxp-home-page .industry-solutions-header,
    body.mxp-home-page .mxp-max-section-head,
    body.mxp-home-page .cloud-products-header,
    body.mxp-home-page .mxp-news-header {
        margin-bottom: 22px;
    }

    body.mxp-home-page .mxp-plus-network-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    body.mxp-home-page .mxp-plus-network-stats > div {
        padding: 15px 18px;
    }

    body.mxp-home-page .mxp-plus-network-visual {
        height: 320px;
        min-height: 320px;
    }

    body.mxp-home-page .security-compliance-section--certifications .security-certifications {
        padding: 22px 14px;
    }

    body.mxp-home-page .security-compliance-section--certifications .certifications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    body.mxp-home-page .industry-tabs-container {
        margin: 0 0 22px;
    }

    body.mxp-home-page .industry-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 6px;
        scrollbar-width: none;
    }

    body.mxp-home-page .industry-tabs::-webkit-scrollbar {
        display: none;
    }

    body.mxp-home-page .industry-content-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    body.mxp-home-page .industry-solutions-section .solution-image,
    body.mxp-home-page .industry-solutions-section .solution-image img,
    body.mxp-home-page .industry-solutions-section .mxp-solution-img,
    body.mxp-home-page .industry-solutions-section .mxp-solution-preview {
        width: 100%;
        min-height: 210px;
        height: 210px;
    }

    body.mxp-home-page .mxp-max-solutions__stage {
        min-height: 360px;
    }

    body.mxp-home-page .mobile-products-list {
        padding: 18px;
        border: 1px solid var(--mxp-home-line);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(35, 55, 86, 0.06);
    }

    body.mxp-home-page .mxp-news-header {
        align-items: flex-start;
        gap: 18px;
    }

    body.mxp-home-page .mxp-news-filters {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body.mxp-home-page .mxp-news-filters::-webkit-scrollbar {
        display: none;
    }

    body.mxp-home-page .mxp-news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.mxp-home-page .mxp-news-aside-card {
        position: static;
    }

    body.mxp-home-page .mxp-news-item {
        padding: 17px 18px;
    }

    body.mxp-home-page .home-customer-cases .customer-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.mxp-home-page .mxp-max-trust__layout {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    body.mxp-home-page .mxp-max-trust__visual {
        order: -1;
        min-height: 280px;
    }

    body.mxp-home-page .mxp-partners-section {
        padding: 44px 0;
    }

    body.mxp-home-page .mxp-partners-track {
        gap: 18px 28px;
    }
}

@media (max-width: 520px) {
    body.mxp-home-page .home-customer-cases .customer-cases-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.mxp-home-page .home-customer-cases .case-content,
    body.mxp-home-page .home-customer-cases .case-content-link {
        padding: 20px;
    }

    body.mxp-home-page .mxp-news-item {
        flex-direction: column;
        gap: 10px;
    }

    body.mxp-home-page .mxp-news-date {
        align-self: flex-start;
    }

    body.mxp-home-page .mxp-plus-network-visual {
        height: 280px;
        min-height: 280px;
    }

    body.mxp-home-page .mxp-max-trust__visual {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.mxp-home-page .mxp-shop-group-card,
    body.mxp-home-page .mxp-shop-recommendation,
    body.mxp-home-page .cloud-product-card,
    body.mxp-home-page .customer-case-card {
        transition: none;
    }
}
