/* Full-width image-backed Banners. Brand colors and original content remain. */
body.quality-refined #main {
  --banner-desktop-wash:rgba(248,251,255,.38);
  --banner-mobile-wash:rgba(247,250,255,.84);
}
body:is(.nexus,.byteplus) #main {
  --banner-desktop-wash:rgba(6,19,42,.38);
  --banner-mobile-wash:rgba(6,19,42,.76);
}
body.business #main {--banner-desktop-wash:rgba(255,251,247,.38);--banner-mobile-wash:rgba(255,251,247,.86)}
body.huawei #main {--banner-desktop-wash:rgba(255,250,250,.38);--banner-mobile-wash:rgba(255,250,250,.86)}
body.workspace #main {--banner-desktop-wash:rgba(250,253,255,.38);--banner-mobile-wash:rgba(250,253,255,.84)}
body.minimal #main {--integrated-service-art:url("https://www.yunroot.com/wp-content/themes/yunroot/assets/campaign-azure-vm.webp")}
body.platform #main {--integrated-service-art:url("https://www.yunlaodi.com/wp-content/themes/yunlaodi/assets/campaign-google-run.webp")}
body.quality-refined #main .tb-carousel {position:relative;height:auto;min-height:480px}
body.quality-refined #main .tb-carousel .tb-slide {
  position:relative;isolation:isolate;box-sizing:border-box;height:auto;min-height:480px;
  padding:0;align-items:center;overflow:hidden;
}
body.quality-refined #main .tb-carousel .tb-slide:not([hidden]) {display:flex}
body.quality-refined #main .tb-carousel .tb-slide.tb-leaving {position:absolute;inset:0}
body.quality-refined #main .tb-carousel .tb-slide > :is(.tb-image,.agency-campaign-art) {
  position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;
  object-fit:cover;object-position:center;z-index:0;
}
body.quality-refined #main .tb-carousel .tb-slide::before {
  content:"";display:block;position:absolute;inset:0;z-index:1;
  background:var(--banner-desktop-wash);pointer-events:none;
}
body.quality-refined #main .tb-carousel .tb-slide > .tb-copy {
  position:relative;z-index:2;box-sizing:border-box;width:min(1200px,calc(100% - 48px));
  max-width:none;min-width:0;margin:0 auto;padding:48px 0 68px;align-self:center;background:transparent;
}
body.quality-refined #main .tb-carousel .agency-copy {width:min(60%,700px);max-width:none;min-height:0;padding:0;background:transparent}
body.quality-refined #main .tb-carousel .tb-copy > :is(h2,p,.tb-label,.tb-actions) {max-width:min(60%,700px)}
body.quality-refined #main .tb-carousel .tb-copy h2 {font-size:clamp(32px,3vw,44px);line-height:1.4;margin-block:15px 20px}
body.quality-refined #main .tb-carousel :is(.agency-actions,.tb-actions) {display:flex;flex-wrap:wrap;gap:14px;margin-top:26px}
body.quality-refined #main .tb-carousel :is(.agency-actions,.tb-actions) > :is(a,button) {min-height:44px;max-width:100%;white-space:normal}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) {
  position:relative;isolation:isolate;box-sizing:border-box;width:100%;height:auto;
  min-height:480px;padding:28px 0 48px;overflow:hidden;
}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner) > :is(.brand-inner-art,.tc-catalog-backdrop),
body.quality-refined #main .az-about-hero .az-hero-layout > figure {
  position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;border:0;
  border-radius:0;object-fit:cover;object-position:center;z-index:0;
}
body.quality-refined #main .az-about-hero .az-hero-layout > figure img {width:100%;height:100%;object-fit:cover}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero)::before {
  content:"";display:block;position:absolute;inset:0;z-index:1;
  background:var(--banner-desktop-wash);pointer-events:none;
}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) > :not(img) {position:relative;z-index:2}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) .inner-crumb {position:relative;margin-block:0 24px;padding-block:0}
body.quality-refined #main :is(.tc-catalog-content,.az-hero-layout,.cs-hero-grid) {height:auto;min-height:0;display:block;padding-block:16px 0}
body.quality-refined #main :is(.tc-catalog-copy,.az-hero-layout>div:first-child,.cs-hero-grid>div:first-child) {width:min(60%,700px);max-width:none}
body.quality-refined #main .az-about-hero .az-hero-layout {position:static}
body.quality-refined #main .az-about-hero .az-hero-layout > div:first-child {position:relative;z-index:2}
body.quality-refined #main .brand-inner-banner :is(.inner-hero-grid>div:first-child,.product-hero-grid>div:first-child,.service-hero-copy,.ali-service-hero-layout>div:first-child,.reading-heading,.hw-hero-copy),
body.quality-refined #main .brand-inner-banner :is(.brand-news-wrap,.reading-title,.provider-refined,.container) > :is(h1,p,.reading-meta) {max-width:min(60%,700px)}
body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) h1 {font-size:clamp(30px,3vw,44px);line-height:1.4;overflow-wrap:break-word}
body.quality-refined #main .cs-hero {background-image:var(--integrated-service-art);background-size:cover;background-position:center}
/* Keep all service preparation and handover information as a compact lower strip. */
body.quality-refined #main .cs-hero-grid > aside {margin-top:30px;padding:18px 22px;background:rgba(255,255,255,.93);border-radius:6px}
body.quality-refined #main .cs-hero-grid > aside > ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:760px) {
  body.quality-refined #main .tb-carousel {
    position:relative;
    height:auto;
    min-height:0;
    --integrated-banner-wash:rgba(247,250,255,.84);
  }
  body.nexus #main .tb-carousel,
  body.byteplus #main .tb-carousel {--integrated-banner-wash:rgba(6,19,42,.76)}
  body.business #main .tb-carousel {--integrated-banner-wash:rgba(255,251,247,.86)}
  body.huawei #main .tb-carousel {--integrated-banner-wash:rgba(255,250,250,.86)}
  body.workspace #main .tb-carousel {--integrated-banner-wash:rgba(250,253,255,.84)}
  body.quality-refined #main .tb-carousel .tb-slide {
    position:relative;
    isolation:isolate;
    box-sizing:border-box;
    height:auto;
    min-height:max(430px,var(--tb-slide-height,0px));
    padding:0;
    align-items:center;
    overflow:hidden;
  }
  body.quality-refined #main .tb-carousel .tb-slide:not([hidden]) {display:flex}
  body.quality-refined #main .tb-carousel .tb-slide.tb-leaving {position:absolute;inset:0}
  body.quality-refined #main .tb-carousel .tb-slide > :is(.tb-image,.agency-campaign-art) {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-height:none;
    margin:0;
    object-fit:cover;
    object-position:72% center;
    z-index:0;
  }
  body.quality-refined #main .tb-carousel .tb-slide::before {
    content:"";
    display:block;
    position:absolute;
    inset:0;
    z-index:1;
    background:var(--integrated-banner-wash);
    pointer-events:none;
  }
  body.quality-refined #main .tb-carousel .tb-slide > .tb-copy {
    position:relative;
    z-index:2;
    box-sizing:border-box;
    width:calc(100% - 40px);
    max-width:none;
    min-width:0;
    margin:0 auto;
    padding:32px 0 62px;
    align-self:center;
    background:transparent;
  }
  body.quality-refined #main .tb-carousel .agency-copy {width:100%;max-width:none;padding:0;background:transparent}
  body.quality-refined #main .tb-carousel .tb-copy h2 {max-width:100%;font-size:28px;line-height:1.4;margin-block:14px 18px}
  body.quality-refined #main .tb-carousel .tb-copy :is(p,.tb-label) {max-width:100%}
  body.quality-refined #main .tb-carousel .tb-copy p:not(.agency-brand) {font-size:16px;line-height:1.85}
  body.quality-refined #main .tb-carousel :is(.agency-actions,.tb-actions) {display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
  body.quality-refined #main .tb-carousel :is(.agency-actions,.tb-actions) > :is(a,button) {min-height:44px;max-width:100%;white-space:normal}
  body.quality-refined #main .tb-carousel > .tb-controls {
    position:absolute;
    inset:auto 0 9px;
    z-index:4;
    width:max-content;
    height:36px;
    margin:0 auto;
    background:transparent;
  }
  body.quality-refined #main .tb-carousel .tb-slide.tb-measuring > .tb-copy {align-self:center}
}
@media (max-width:760px) {
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) {
    width:100%;min-height:400px;height:auto;padding:24px 0 38px;
  }
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner) > :is(.brand-inner-art,.tc-catalog-backdrop) {inset:0;width:100%;height:100%;object-position:72% center}
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero)::before {background:var(--banner-mobile-wash)}
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) > :is(.wrap,.container,.hw-wrap) {width:calc(100% - 40px);padding-inline:0}
  body.quality-refined #main :is(.tc-catalog-content,.az-hero-layout,.cs-hero-grid) {padding:6px 0 0}
  body.quality-refined #main :is(.tc-catalog-copy,.az-hero-layout>div:first-child,.cs-hero-grid>div:first-child) {width:100%;max-width:none}
  body.quality-refined #main .brand-inner-banner :is(.inner-hero-grid>div:first-child,.product-hero-grid>div:first-child,.service-hero-copy,.ali-service-hero-layout>div:first-child,.reading-heading,.hw-hero-copy),
  body.quality-refined #main .brand-inner-banner :is(.brand-news-wrap,.reading-title,.provider-refined,.container) > :is(h1,p,.reading-meta) {width:100%;max-width:none}
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) h1 {font-size:28px;line-height:1.45}
  body.quality-refined #main :is(.brand-inner-banner,.tc-catalog-banner,.cs-hero,.az-about-hero) :is(.btn,.button,.hw-button,.cs-button) {min-height:44px;max-width:100%;white-space:normal}
  body.quality-refined #main .cs-hero-grid > aside > ul {grid-template-columns:1fr;gap:10px}
}
@media (max-width:359px) {
  body.quality-refined #main .tb-carousel .tb-slide > .tb-copy {width:calc(100% - 32px)}
  body.quality-refined #main .tb-carousel .tb-copy h2 {font-size:26px}
}
/* Let all three text lengths size the same grid track; hidden slides stay inert
   to vision, pointers and accessibility while the active slide can crossfade. */
body.quality-refined #main .tb-carousel {display:grid;grid-template-columns:minmax(0,1fr)}
body.quality-refined #main .tb-carousel .tb-slide {grid-area:1 / 1;align-self:stretch}
body.quality-refined #main .tb-carousel .tb-slide[hidden] {display:flex!important;visibility:hidden;pointer-events:none}
body.quality-refined #main .tb-carousel .tb-slide.tb-leaving {position:relative;inset:auto;z-index:0}
/* Shortcuts follow the carousel in flow, so wrapping copy cannot sit behind them. */
body.quality-refined:is(.tencent-home,.alibaba-home) #main .tencent-image-hero {height:auto;min-height:0}
body.quality-refined:is(.tencent-home,.alibaba-home) #main .tencent-image-hero > .tb-services {
  position:relative;inset:auto;transform:none;margin-block:0;width:100%;height:auto;
}
body.quality-refined.alibaba-home #main .tencent-image-hero > .tb-services {background:#fff;border-block:1px solid #e7e7e7}
