/* Mobile contact layout A: one contact bar with reserved page space. */
@media(max-width:850px){
 body.r17-layout .r17-head{position:relative;top:auto;}
 body.r17-layout .r17-mast{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:100px;padding:14px 80px 14px 0;gap:8px;box-sizing:border-box;}
 body.r17-layout .r17-mast>.mobile-wechat,body.r17-layout .r17-mast>a[href^="tel:"]{display:none;}
 body.r17-layout .r17-mast .r17-brand{font-size:20px;line-height:1.2;min-height:32px;}
 body.r17-layout .r17-brand img{width:32px;height:32px;}
 body.r17-layout .r17-mast .r17-positioning{position:static;white-space:normal;width:auto;max-width:100%;margin:0;padding:0;font-size:14px;line-height:1.5;overflow-wrap:break-word;}
 body.r17-layout .r17-nav,body.r17-layout .r17-nav>.r17-wrap{position:static;}
 body.r17-layout .r17-nav .menu-toggle{position:absolute;top:14px;right:16px;margin:0;min-height:44px;width:64px;padding:8px;font-size:15px;border-radius:6px;}
 body.r17-layout .r17-mobile{display:flex;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:50;box-sizing:border-box;background:#fff;border-top:1px solid var(--r17-line);padding:8px 12px;padding-bottom:calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 10px rgba(0,0,0,.05);}
 body.r17-layout .r17-mobile a{display:flex;flex:1;align-items:center;justify-content:center;min-width:0;min-height:48px;box-sizing:border-box;padding:10px 8px;font-size:16px;font-weight:700;line-height:1.3;text-decoration:none;border:1px solid var(--r17-ink);border-radius:6px;color:var(--r17-ink);background:#fff;}
 body.r17-layout .r17-mobile a+a{margin-left:10px;background:var(--r17-ink);color:#fff;}
 body.r17-layout{padding-bottom:80px;padding-bottom:calc(80px + env(safe-area-inset-bottom));}
 html{scroll-padding-bottom:80px;scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom));}
 body.s.r17-layout .pd-nav{position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;box-sizing:border-box;gap:6px;padding:8px;margin:12px 0;box-shadow:none;-webkit-overflow-scrolling:touch;}
 body.s.r17-layout .pd-nav a{flex:0 0 auto;white-space:nowrap;padding:9px 12px;min-height:40px;font-size:14px;}
}

@media(max-width:850px){body.s.r17-layout .sy-products{position:static;height:auto;min-height:0;}body.s.r17-layout .sy-products nav{position:static;display:flex;flex-wrap:nowrap;width:100%;height:auto;max-width:100%;overflow-x:auto;box-sizing:border-box;padding:8px;gap:6px;}body.s.r17-layout .sy-products nav a{flex:0 0 auto;white-space:nowrap;min-height:40px;padding:8px 12px;}}

/* Video figures must include controls and captions in their own flow. */
body.r17-layout .service-body figure.service-film{position:relative;display:block;aspect-ratio:auto;height:auto;min-height:0;max-height:none;overflow:visible;}
body.r17-layout .service-body figure.service-film video{position:static;display:block;width:100%;height:auto;max-width:100%;object-fit:contain;}
body.r17-layout .service-body figure.service-film figcaption{position:static;inset:auto;display:block;height:auto;padding:12px 14px;margin:0;background:#fff;color:var(--r17-ink);font-size:14px;line-height:1.65;}
body.r17-layout .service-film .film-play{position:static;display:block;min-height:44px;margin:10px 12px;padding:8px 16px;font-size:15px;}
body.r17-layout .service-film .film-play[hidden]{display:none;}
@media(max-width:850px){
 body.r17-layout .custom-service .service-body{display:block;}
 body.r17-layout .custom-service .service-body>ol{margin-top:18px;}
 body.r17-layout .service-body figure.service-film{width:100%;margin:0 0 18px;}
 body.r17-layout .field-stories .site-case-film{display:block;height:auto;min-height:0;}
 body.r17-layout .site-case-film figure{height:auto;aspect-ratio:auto;}
 body.r17-layout .site-case-film figcaption{position:static;}
}

/* Older Chromium contact layout fallbacks. */
@supports not (font-size:clamp(23px,2.2vw,30px)){
 body.r17-layout .q-phone,body.r17-layout .q-chat{padding:24px;}
 body.r17-layout .q-phone .dial{font-size:36px;}
 body.r17-layout .sy-card .dial{font-size:28px;}
 body.r17-layout .sy-layout{gap:24px;}
 body.r17-layout .r17-mast>a[href^="tel:"]{font-size:22px;}
}
body.r17-layout #contact-photos{width:calc(100% - 32px);max-width:1000px;margin:28px auto;}
body.r17-layout #contact-photos figure{min-width:0;}
body.r17-layout #contact-photos figure img{display:block;width:100%;height:260px;object-fit:cover;background:#eef1ee;}
@media(max-width:700px){body.r17-layout #contact-photos figure img{height:230px;}body.r17-layout .q-phone .dial{font-size:28px;}}

/* Basic filter layout: no :is(), :has(), flex gap or fieldset flex dependency. */
#md-filter fieldset.choices{display:block}
#md-filter fieldset.choices legend{display:block;width:100%;margin-bottom:6px}
#md-filter fieldset.choices button,#md-filter fieldset.choices label{display:inline-block;vertical-align:middle;margin:0 6px 6px 0;width:auto;max-width:100%;box-sizing:border-box}
#md-filter fieldset.choices input{display:inline-block;vertical-align:middle;margin-right:5px;width:auto}
#md-filter .choices button[aria-pressed=true]{color:#fff;background:#19587d;border-color:#19587d}
#md-filter>label:first-child{display:none}
#cs-form .cs-checks{display:block!important}
#cs-form .cs-checks label{display:inline-block!important;vertical-align:middle;margin:0 4px 4px 0!important;white-space:normal!important}
#cs-form .cs-checks input{vertical-align:middle;margin-right:4px!important}
@media(min-width:781px){
 #cs-form #cs-filters>h3,#cs-form #cs-filters>.cs-fields,#cs-form #cs-filters>#cs-extra,#cs-form #cs-filters>.cs-actions{grid-column:1/-1}
}
@media(max-width:760px){
 #md-filter>label:first-child{display:block;grid-column:1/-1;grid-row:3;margin:0}
}

@media(min-width:1100px){#condition-selector #cs-results:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Shared image frames: stable rows even when aspect-ratio is unsupported. */
body .company-photos figure img{display:block;width:100%;height:320px;max-height:320px;object-fit:cover}
body .shoot-examples a{position:relative;display:block;height:0;padding-top:66.6667%;overflow:hidden;aspect-ratio:auto}
body .shoot-examples a img{position:absolute;top:0;left:0;display:block;width:100%;height:100%;object-fit:cover}
@supports not (aspect-ratio:1){
 body .qd-contact-photos figure img{display:block;width:100%;height:260px;max-height:260px;object-fit:cover}
 body.s .md-cards img{height:220px;max-height:220px;object-fit:contain}
 body .pd-sections .scene-layout>figure img{height:260px;max-height:260px;object-fit:cover}
 body .pd-sections .pd-dedicated img,body .pd-sections .pd-scene-photo img{height:260px;max-height:260px;object-fit:cover}
 body #pd-example.pd-field-examples figure img{height:240px;max-height:240px;object-fit:cover}
 body .pd-steps li>img{height:180px;object-fit:cover}
}
@media(max-width:700px){body .company-photos figure img{height:260px;max-height:260px}}
@media(max-width:700px){@supports not (aspect-ratio:1){body.s .md-cards img{height:160px;max-height:160px}}}

/* Explicit media heights also work without aspect-ratio support. */
body.r17-layout .r17-examples article>a>img{display:block;width:100%;height:240px;max-height:240px;object-fit:cover;aspect-ratio:auto}
body.r17-layout .r17-examples article h3{margin:8px 0 4px;line-height:24px;text-align:left}
body.r17-layout .company-overview>figure img,body.r17-layout .sy-profile-intro>figure img{display:block;width:100%;height:280px;max-height:280px;object-fit:cover;aspect-ratio:auto}
body.r17-layout .company-overview,body.r17-layout .sy-profile-intro{align-items:start;min-height:0}
body.r17-layout .company-overview>figure,body.r17-layout .sy-profile-intro>figure{margin-top:0;margin-bottom:0;min-height:0}
body.r17-layout .field-stories{align-items:stretch}
body.r17-layout .field-stories>[data-block="应用案例"]{display:flex;flex-direction:column}
body.r17-layout .field-stories .r17-examples{flex:1;display:flex;flex-direction:column;justify-content:space-between}
body.r17-layout .field-stories .r17-examples article{min-height:142px;box-sizing:border-box;overflow:hidden;flex:1}
body.r17-layout .field-stories .r17-examples article>a>img{float:left;width:33%;height:130px;max-height:130px;margin-right:16px;object-fit:cover}
body.r17-layout .field-stories .site-case-film video{height:430px;max-height:430px;width:100%;object-fit:contain;aspect-ratio:auto}
@media(max-width:760px){
body.r17-layout .r17-examples article>a>img{height:220px;max-height:220px}
body.r17-layout .company-overview>figure img,body.r17-layout .sy-profile-intro>figure img{height:240px;max-height:240px}
body.r17-layout .field-stories .site-case-film video{height:300px;max-height:300px}
body.r17-layout .field-stories .r17-examples article{flex:none;min-height:142px}
}
