/* WAP 新兴应用：1260px design canvas. Desktop keeps the parent theme styles. */
#xxyy-main .xxyy-mobile-copy { display: none; }

@media (max-width: 768px) {
  #xxyy-main {
    --wap-title: 4.36508vw;
    --wap-body: clamp(12px, 2.85714vw, 22px);
    background: #fff;
    padding-top: 50px;
  }
  #xxyy-main .xxyy-desktop-copy { display: none !important; }
  #xxyy-main .xxyy-mobile-copy { display: block !important; }

  /* Reset the parent's stacked mobile layout, within this page only. */
  #xxyy-main > section {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: clip !important;
  }
  #xxyy-main :is(.xxyy-banner-content-layer, .xxyy-robot-content-layer,
    .xxyy-satellite-content-layer, .xxyy-green-content-layer) {
    display: contents !important;
  }
  #xxyy-main :is(.xxyy-banner-picture, .xxyy-robot-bg-picture,
    .xxyy-satellite-bg-picture, .xxyy-green-bg-picture) {
    position: relative !important;
    inset: auto !important;
    grid-column: 1;
    order: initial !important;
    height: auto !important;
    display: block !important;
    z-index: 1;
  }
  #xxyy-main :is(.xxyy-banner-bg-img, .xxyy-robot-bg-img,
    .xxyy-satellite-bg-img, .xxyy-green-bg-img) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  #xxyy-main :is(.xxyy-banner-desc-box, .xxyy-robot-desc-box,
    .xxyy-satellite-desc-box, .xxyy-green-desc-box) {
    position: relative !important;
    inset: auto !important;
    grid-column: 1;
    order: initial !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4.5vw 7.78vw 10vw !important;
    opacity: 1;
    filter: none !important;
    pointer-events: auto !important;
  }
  #xxyy-main :is(.xxyy-banner-desc-text, .xxyy-robot-desc-text,
    .xxyy-satellite-desc-text, .xxyy-green-desc-text) {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--wap-body) !important;
    line-height: 1.66667 !important;
    letter-spacing: .075em !important;
    font-weight: 300 !important;
    color: #111 !important;
    text-align: justify !important;
    text-shadow: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Hero: title over the supplied WAP image, description on white below. */
  #xxyy-main .xxyy-banner-picture {
    grid-row: 1;
    width: 100% !important;
    aspect-ratio: 1260 / 776 !important;
  }
  #xxyy-main .xxyy-banner-title-group {
    position: absolute !important;
    inset: 14.5vw auto auto 7.78vw !important;
    width: 45vw !important;
    margin: 0 !important;
    z-index: 3;
  }
  #xxyy-main .xxyy-banner-sub-tag {
    font-size: 3.4127vw !important;
    line-height: 1.1628 !important;
    font-weight: 400 !important;
    letter-spacing: .06em !important;
    margin: 0 0 2.5vw !important;
  }
  #xxyy-main .xxyy-banner-main-title {
    font-size: 5.15873vw !important;
    line-height: 1.30769 !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
  }
  #xxyy-main .xxyy-banner-main-title span { white-space: nowrap !important; }
  #xxyy-main .xxyy-banner-desc-box {
    grid-row: 2;
    padding: 5.7vw 5.87vw 8.8vw !important;
  }

  /* Robot and satellite: centered bilingual heading, illustration, paragraph. */
  #xxyy-main :is(.xxyy-robot-title-box, .xxyy-satellite-title-group) {
    grid-column: 1;
    grid-row: 1;
    position: relative !important;
    inset: auto !important;
    order: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 3.97vw !important;
    text-align: center !important;
    opacity: 1;
    filter: none !important;
    pointer-events: auto !important;
  }
  #xxyy-main :is(.xxyy-robot-en-title, .xxyy-satellite-en-title,
    .xxyy-green-en-title, .xxyy-products-en-title) {
    margin: 0 !important;
    font-size: var(--wap-title) !important;
    line-height: 1.36364 !important;
    font-weight: 400 !important;
    letter-spacing: .03em !important;
    color: #0f00ff !important;
    text-shadow: none !important;
  }
  #xxyy-main :is(.xxyy-robot-cn-title, .xxyy-satellite-cn-title,
    .xxyy-green-cn-title, .xxyy-products-cn-title) {
    margin: 3vw 0 0 !important;
    font-size: var(--wap-title) !important;
    line-height: 1.27273 !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    color: #333 !important;
    text-shadow: none !important;
  }
  #xxyy-main .xxyy-satellite-cn-title { display: block !important; }
  #xxyy-main .xxyy-satellite-cn-title span { display: inline !important; }
  #xxyy-main :is(.xxyy-robot-bg-picture, .xxyy-satellite-bg-picture) {
    grid-row: 2;
    width: 92.06349% !important;
    justify-self: center;
  }
  #xxyy-main .xxyy-robot-bg-picture {
    aspect-ratio: 1160 / 691 !important;
    margin-top: 1.4vw;
  }
  #xxyy-main .xxyy-satellite-bg-picture {
    aspect-ratio: 1160 / 710 !important;
    margin-top: 6vw;
  }
  #xxyy-main :is(.xxyy-robot-desc-box, .xxyy-satellite-desc-box) { grid-row: 3; }
  #xxyy-main .xxyy-robot-video-wrap { display: none !important; }

  /* Green power: white bilingual headings sit over the wind turbine image. */
  #xxyy-main .xxyy-green-bg-picture {
    grid-row: 1;
    width: 100% !important;
    aspect-ratio: 1260 / 710 !important;
  }
  #xxyy-main :is(.xxyy-green-top-title-box, .xxyy-green-bottom-title-box) {
    position: absolute !important;
    inset: auto !important;
    left: 7.3vw !important;
    width: 65vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    z-index: 3;
  }
  #xxyy-main .xxyy-green-bottom-title-box { top: 10.3vw !important; }
  #xxyy-main .xxyy-green-top-title-box { top: 24.5vw !important; }
  #xxyy-main .xxyy-green-en-title { color: #fff !important; }
  #xxyy-main .xxyy-green-cn-title {
    color: #fff !important;
    margin: 0 !important;
    letter-spacing: .06em !important;
  }
  #xxyy-main .xxyy-green-cn-title span:first-child { max-width: 49vw; }
  #xxyy-main .xxyy-green-desc-box { grid-row: 2; }

  /* Products: retain both working tabs and the two-column specification list. */
  #xxyy-main .xxyy-products-section { padding-bottom: 10vw !important; }
  #xxyy-main .xxyy-products-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 6.35vw !important;
    gap: 10vw !important;
    min-width: 0;
  }
  #xxyy-main :is(.xxyy-products-left-col, .xxyy-products-right-col) {
    width: 100% !important;
    min-width: 0 !important;
  }
  #xxyy-main .xxyy-products-left-col { padding: 0 .8vw; }
  #xxyy-main .xxyy-products-en-title span { white-space: nowrap !important; }
  #xxyy-main .xxyy-products-cn-title { margin-top: 3vw !important; }
  #xxyy-main .xxyy-tab-nav {
    margin-top: 8vw !important;
    gap: 1.5vw !important;
    width: 93% !important;
  }
  #xxyy-main .xxyy-tab-btn { min-height: 44px; }
  #xxyy-main .xxyy-tab-btn-text {
    font-size: var(--wap-title) !important;
    line-height: 1.27273 !important;
    letter-spacing: .1em !important;
    color: #333 !important;
    font-weight: 300 !important;
  }
  #xxyy-main .xxyy-tab-btn.is-active .xxyy-tab-btn-text {
    color: #0f00ff !important;
    font-weight: 700 !important;
  }
  #xxyy-main .xxyy-tab-btn:focus-visible {
    outline: 2px solid #0f00ff;
    outline-offset: 4px;
  }
  #xxyy-main .xxyy-tab-btn-arrow { width: 7.22vw !important; }
  #xxyy-main .xxyy-product-card-wrap {
    aspect-ratio: 1099 / 970;
    border-radius: 3.89vw !important;
    box-shadow: none;
  }
  #xxyy-main :is(.xxyy-tab-specs-grid, .xxyy-tab-desc-list) {
    margin-top: 4.8vw !important;
    padding: 0 1.4vw !important;
    min-height: 0 !important;
  }
  #xxyy-main .xxyy-tab-specs-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) !important;
    gap: 3vw !important;
  }
  #xxyy-main .xxyy-tab-specs-col { gap: 0 !important; }
  #xxyy-main :is(.xxyy-tab-spec-item, .xxyy-tab-desc-item) {
    font-size: clamp(10px, 2.85714vw, 22px) !important;
    line-height: 1.69444 !important;
    letter-spacing: .02em !important;
    color: #111 !important;
    font-weight: 300 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  /* Restore the site's scroll reveal, disabled by the parent's old WAP rules. */
  #xxyy-main .scroll-reveal {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity .65s ease, transform .65s ease !important;
  }
  #xxyy-main .scroll-reveal:is(.is-revealed, .is-in-view) {
    opacity: 1 !important;
    transform: none !important;
  }
  @media (prefers-reduced-motion: reduce) {
    #xxyy-main .scroll-reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }
}
