/* Keep the original image and video proportions in the hotel scenarios. */
:is(#p17,#p18,#p20,#p21,#p22,#p23,#p24,#p25,#p27,#p28,#p29,#p30,#p31) .page-head h2 {text-wrap:balance;}
:is(#p17,#p18,#p20,#p21,#p22,#p23,#p24,#p25,#p27,#p28,#p29,#p30) .page-head>p {text-wrap:pretty;}
#p17 .ah-rail li {display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:2px 7px;}
#p17 .ah-rail li::before {grid-column:1;grid-row:1;}
#p17 .ah-rail strong {grid-column:2;grid-row:1;}
#p17 .ah-rail li>span {grid-column:2;}
#p18 .ah-ops .switcher {display:grid;grid-template-columns:minmax(128px,.24fr) minmax(0,1fr);gap:clamp(14px,2vw,32px);align-items:start;}
#p18 .ah-ops .switch-list {display:grid;grid-template-columns:1fr;gap:6px;border:0;}
#p18 .ah-ops .switch-list button {justify-content:flex-start;width:100%;}
#p18 .ah-ops figure {width:fit-content;max-width:100%;}
#p18 .ah-ops .enlarge {width:fit-content;max-width:100%;background:transparent;border-radius:4px;}
#p18 .ah-ops .enlarge img {width:auto;max-width:100%;height:auto;max-height:min(57svh,610px);background:transparent;object-fit:contain;}
#p18 .expand-icon {width:auto;height:26px;display:inline-flex;gap:4px;padding:0 7px;background:#153743;color:white;align-items:center;}
#p18 .expand-icon::after {content:'放大界面';font-size:11px;line-height:1;}
#p19 .chapter-art img {object-position:60% 45%;}
#p26 .chapter-art img {object-position:42% 50%;}
:is(#p20,#p21,#p22,#p23,#p24,#p25) .video-frame {width:100%;aspect-ratio:16/9;background:#132937;}
:is(#p20,#p21,#p22,#p23,#p24,#p25) .video-frame :is(.launch-video,video,.launch-video img) {display:block;width:100%;height:100%;max-height:none;object-fit:contain;}
:is(#p20,#p21,#p22,#p23,#p24,#p25) .video-frame .launch-video {background:#132937;}
#p22 .yd-cinema>.asset .enlarge img {object-fit:contain;}
#p25 .yd-portraits {gap:5px;align-items:end;}
#p25 .yd-portraits .enlarge {width:100%;background:#e8ece8;}
#p25 .yd-portraits img {width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;}
#p25 .yd-case-strip>figure .enlarge {display:block;width:fit-content;max-width:100%;background:transparent;}
#p25 .yd-case-strip>figure img {height:auto;width:auto;max-width:100%;max-height:clamp(96px,20vh,190px);aspect-ratio:auto;object-fit:contain;}
#p27 .yd-mile-nav button {align-items:baseline;white-space:nowrap;}
#p27 .yd-mile-page .yd-mile-info {opacity:0;}
#p27 .yd-mile-page[data-engaged] .yd-mile-info {opacity:1;}
#p28 .yd-delivery-steps {display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.8vw,26px);padding:0;margin:0;list-style:none;}
#p28 .yd-delivery-steps li {position:relative;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:3px 6px;padding-top:5px;border-top:1px solid #bfcfc8;}
#p28 .yd-delivery-steps .yd-delivery-no {color:#177573;font-variant-numeric:tabular-nums;font-size:11px;font-weight:650;}
#p28 .yd-delivery-steps strong {font-size:clamp(14px,1.08vw,17px);color:#20434a;font-weight:650;}
#p28 .yd-delivery-steps p {grid-column:2;color:#46636a;font-size:clamp(12px,.96vw,15px);line-height:1.5;}
:is(#p29,#p30) .yd-keyimg figure button {width:fit-content;max-width:100%;background:transparent;}
:is(#p29,#p30) .yd-showcase .yd-keyimg img {max-width:100%;width:auto;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;}
:is(#p29,#p30) .yd-gallery .yd-tile img {aspect-ratio:1.84;max-height:none;}
#p29 .yd-keyimg img {object-position:center 50%;}
#p29 .yd-gallery .yd-tile:nth-child(4) img {object-position:center 58%;}
#p30 .yd-gallery .yd-tile:nth-child(2) img {object-position:60% 46%;}
#p31 .yd-qr .yd-code img {width:min(100%,245px);}

@media(min-width:761px){
  .presenting #p17 .ah-safety {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);}
  .presenting #p17 .ah-safety-media {aspect-ratio:2.92;}
  .presenting #p17 .ah-rail {margin-top:6px;}
  .presenting #p18 .ah-ops .enlarge img {max-height:min(calc(100svh - 286px),580px);}
  .presenting :is(#p20,#p22) .yd-cinema {grid-template-columns:minmax(0,min(62%,calc((100svh - 310px)*1.7778))) minmax(245px,1fr);}
  .presenting #p22 .yd-cinema {grid-template-columns:minmax(0,min(60%,calc((100svh - 377px)*1.7778))) minmax(245px,1fr);}
  .presenting #p21 .yd-laundry {grid-template-columns:minmax(0,min(40%,calc((100svh - 467px)*1.7778))) minmax(0,1fr);}
  .presenting #p21 .yd-route .yd-thumb img {aspect-ratio:1.9;}
  .presenting #p23 .yd-split {grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(13px,2vw,28px);}
  .presenting #p23 .yd-split {max-width:min(100%,calc((100svh - 330px)*3.5556));}
  .presenting #p24 .yd-commerce {grid-template-columns:minmax(0,min(37%,calc((100svh - 385px)*1.7778))) minmax(0,1fr);}
  .presenting #p25 .yd-evidence {grid-template-columns:minmax(0,min(65%,calc((100svh - 305px)*1.7778))) minmax(215px,1fr);}
  .presenting #p25 .yd-portraits {width:fit-content;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr));}
  .presenting #p25 .yd-portraits .enlarge {width:fit-content;max-width:100%;background:transparent;}
  .presenting #p25 .yd-portraits img {width:auto;max-width:100%;height:auto;max-height:clamp(108px,19.25vh,175px);}
  .presenting #p25 .yd-case-strip>figure img {max-height:clamp(112px,20vh,186px);}
  .presenting #p28 .yd-format-foot {display:block;margin-top:12px;padding-top:7px;}
  .presenting #p28 .yd-format-foot h3 {margin-bottom:5px;}
  .presenting #p28 .yd-format figure img {aspect-ratio:2.55;}
  .presenting #p29 .yd-showcase {grid-template-columns:minmax(0,min(51%,calc((100svh - 365px)*1.5))) minmax(0,1fr);}
  .presenting #p30 .yd-showcase {grid-template-columns:minmax(0,min(50%,calc((100svh - 345px)*1.3333))) minmax(0,1fr);}
  .presenting :is(#p29,#p30) .yd-gallery {column-gap:clamp(9px,1vw,16px);max-width:min(100%,calc((100svh - 305px)*1.8));}
  .presenting :is(#p29,#p30) .yd-gallery .yd-tile img {aspect-ratio:2.16;}
  .reading #p25 .yd-case-strip>figure img {max-height:210px;}
  .reading #p28 .yd-format-foot{display:block;}
  .reading #p28 .yd-format-foot h3 {margin-bottom:9px;}
}
@media(max-width:760px){
  #p18 .ah-ops .switcher {display:block;}
  #p18 .ah-ops .switch-list {display:flex;flex-wrap:wrap;gap:5px;margin:0 0 8px;padding:0;}
  #p18 .ah-ops .switch-list button {width:auto;}
  #p18 .ah-ops figure {width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#76998e #e5efe9;}
  #p18 .ah-ops figure .enlarge {width:fit-content;max-width:none;}
  #p18 .ah-ops figure .enlarge img {max-width:none;width:auto;max-height:none;height:clamp(200px,48vw,286px);}
  #p18 .ah-ops figcaption {position:sticky;left:0;width:fit-content;max-width:100%;padding:3px 0;}
  #p18 .ah-ops figcaption::after {content:' · 触图放大';color:#296767;}
  #p17 .ah-rail li {gap:2px 4px;}
  #p27 .yd-mile-nav button {flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:4px;row-gap:0;min-height:36px;}
  #p28 .yd-format-foot {display:block;}
  #p28 .yd-format-foot h3 {margin-bottom:8px;}
  #p28 .yd-delivery-steps {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;}
  :is(#p29,#p30) .yd-showcase .yd-keyimg img {width:100%;max-height:none;}
  #p25 .yd-case-strip>figure img {width:100%;max-height:none;}
}
@media(max-width:430px) {
  #p27 .yd-mile-nav button {display:block;line-height:1.45;white-space:normal;}
  #p27 .yd-mile-nav small {display:inline;white-space:nowrap;margin-right:3px;}
  #p27 .yd-mile-nav .yd-mile-label {display:inline-block;white-space:nowrap;}
}

#p25 .yd-case-strip .switch-list {border:0;gap:5px;margin:0 0 8px;padding:0;}
#p25 .yd-case-strip .switch-list button {font-size:clamp(12px,.99vw,15px);padding:5px 8px;min-height:35px;}
#p25 .yd-case-strip .switch-content>.asset .enlarge {width:fit-content;max-width:100%;background:transparent;}
#p25 .yd-case-strip .switch-content>.asset img {display:block;width:auto;max-width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;}
@media(min-width:761px) {
  .reading #p18 .ah-ops :is(figure,.enlarge) {width:100%;}
  .reading #p18 .ah-ops .enlarge img {display:block;width:100%;height:auto;max-height:none;}
  .presenting #p25 .yd-portraits {width:min(100%,calc(46svh * 1.7));}
  .presenting #p25 .yd-portraits img {height:auto;max-height:min(44svh,430px);width:100%;}
  .presenting #p25 .yd-case-strip .switch-content>.asset img {max-height:min(44svh,430px);}
}
@media(min-width:761px) and (max-height:800px) {
  .presenting :is(#p18,#p20,#p21,#p22,#p23,#p25,#p29,#p30) {padding-top:19px;}
  .presenting :is(#p18,#p20,#p21,#p22,#p23,#p25,#p29,#p30) .page-head {margin-bottom:14px;}
  .presenting :is(#p18,#p20,#p21,#p22,#p23,#p25,#p29,#p30) .page-head>p {margin-top:6px;}
  .presenting #p23 .yd-split {max-width:min(100%,calc((100svh - 360px)*3.5556));}
}
@media(max-width:760px) {
  #p18 .ah-ops .switch-content:nth-child(n+3) .enlarge,
  #p18 .ah-ops .switch-content:nth-child(n+3) .enlarge img {width:100%;height:auto;}
  .presenting :is(#p29,#p30) .page-head {margin-bottom:12px;}
  .presenting :is(#p29,#p30) .yd-showcase {gap:10px;}
  .presenting :is(#p29,#p30) .yd-story {margin-top:5px;padding-top:5px;line-height:1.58;}
}
@media(min-width:350px) and (max-width:650px) {
  #p28 .yd-formats {gap:12px;}
  #p28 .yd-format {display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1fr);gap:2px 10px;align-items:start;}
  #p28 .yd-format h3 {grid-column:1/-1;margin:0 0 4px;}
  #p28 .yd-format figure {grid-column:1;grid-row:2/span 2;}
  #p28 .yd-format figure img {aspect-ratio:auto;object-fit:contain;}
  #p28 .yd-format .yd-desc,#p28 .yd-format .yd-tags {grid-column:2;margin:0;}
  #p28 .yd-format .yd-tags {line-height:1.5;}
}
#p28 .yd-format .yd-desc {text-wrap:balance;}
#p28 .yd-service-tag {display:inline-block;white-space:nowrap;}
#p28 .yd-service-tag:not(:last-child)::after {content:' ·';color:#66817f;}
