/* Responsive rules for the Chinese homepage body only. Shared navigation and
   footer are intentionally outside these selectors. Desktop (>=1220px) is
   left to the existing stylesheets. */
@media (min-width: 736px) and (max-width: 1219px) {
  .app-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .app-content-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .app-wrap .home-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 24px !important;
  }

  .app-wrap .home-wrap > div {
    width: calc(100% - 32px);
    max-width: 1220px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
  }

  .app-wrap > .section-hero {
    width: 100%;
    max-width: 100%;
    height: clamp(420px, 56vw, 560px);
    margin-left: 0;
  }

  .app-wrap .section-hero-picture {
    position: absolute;
    inset: 0;
    display: block;
  }

  .app-wrap .section-hero-image {
    height: 100%;
  }

  .app-wrap .section-hero-content {
    padding-top: clamp(34px, 5vw, 54px);
  }

  .app-wrap .home-candidate-slot.section-promo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-wrap .archive-app-panel.page-home {
    width: 100%;
    max-width: 1220px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel .box ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-wrap .archive-app-panel.page-home .app-panel li {
    float: none;
    width: auto;
    height: auto;
    min-height: 288px;
    aspect-ratio: auto;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .app-content {
    min-height: 288px;
    height: auto;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(odd):before {
    border-left: 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(even):before {
    border-left: 1px solid rgba(0, 0, 0, .1);
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(n+3):before {
    border-top: 1px solid rgba(0, 0, 0, .1);
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .app-image {
    margin-top: 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info {
    position: static;
    margin-top: 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info p span {
    white-space: normal;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .platform {
    position: static;
    margin: 0;
  }

  .app-wrap .home-footprints-box > aside.common-flex-box.flex-four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
  }

  .app-wrap .home-footprints-box > aside > .advertise,
  .app-wrap .home-footprints-box > aside > .spu-item-normal-box {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex: none;
    box-sizing: border-box;
  }

  .app-wrap .home-footprints-box > aside > .advertise img {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box .item-cover {
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    place-items: center;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box .item-cover img {
    width: min(100%, 216px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .app-wrap .home-sns-box > aside.common-flex-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-wrap .home-sns-box .article-card {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 20px 16px 48px;
    box-sizing: border-box;
  }

  .app-wrap .home-sns-box .article-card .item-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1.58;
  }

  .app-wrap .home-sns-box .article-card .item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 735px) {
  .app-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .app-content-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .app-wrap .home-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 18px !important;
  }

  .app-wrap .home-wrap > div {
    width: calc(100% - 24px);
    max-width: 1220px;
    margin: 14px auto 0;
    box-sizing: border-box;
  }

  .app-wrap > .section-hero {
    position: relative;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }

  .app-wrap .section-hero-picture {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
  }

  .app-wrap .section-hero-image {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    object-fit: contain;
    object-position: center;
  }

  .app-wrap .section-hero-content {
    position: absolute;
    inset: 0 0 auto;
    padding: 26px 14px 0;
    text-align: center;
  }

  .app-wrap .section-hero-content h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.08;
  }

  .app-wrap .section-hero-content p {
    margin-top: 8px;
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.15;
  }

  .app-wrap > .section-hero.section-hero-mobile-fallback {
    height: 430px;
    min-height: 430px;
  }

  .app-wrap > .section-hero.section-hero-mobile-fallback .section-hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .app-wrap > .section-hero.section-hero-mobile-fallback .section-hero-image {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
    object-fit: initial;
  }

  .app-wrap > .section-hero.section-hero-mobile-fallback .section-hero-content {
    padding-top: 26px;
  }

  .app-wrap .home-candidate-slot.section-promo {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 10px;
  }

  .app-wrap .home-candidate-slot.section-promo .advertise {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .app-wrap .home-candidate-slot.section-promo .advertise img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .app-wrap .archive-app-panel.page-home {
    width: 100%;
    max-width: 1220px;
    margin-bottom: 14px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel .box {
    margin-top: 12px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel .box ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-wrap .archive-app-panel.page-home .app-panel li {
    float: none;
    width: auto;
    height: auto;
    min-height: 208px;
    aspect-ratio: auto;
    min-width: 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .app-content {
    min-height: 208px;
    height: 100%;
    padding: 12px 8px;
    gap: 8px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(odd):before {
    border-left: 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(even):before {
    border-left: 1px solid rgba(0, 0, 0, .1);
  }

  .app-wrap .archive-app-panel.page-home .app-panel li:nth-child(n+3):before {
    border-top: 1px solid rgba(0, 0, 0, .1);
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .app-image {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background-size: auto 72px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li.handshaker .app-image {
    background-position: 0 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li.launcher .app-image {
    background-position: -77px 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li.notes .app-image {
    background-position: -154px 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li.bbs .app-image {
    background-position: -302px 0;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info {
    position: static;
    margin-top: 0;
    padding: 0 8px;
    width: 100%;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info h6 {
    font-size: 14px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info p {
    margin-top: 6px;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .info p span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .app-wrap .archive-app-panel.page-home .app-panel li .platform {
    position: static;
    margin: 0;
  }

  .app-wrap .home-footprints-box {
    margin-top: 14px;
  }

  .app-wrap .home-footprints-box > aside.common-flex-box.flex-four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
  }

  .app-wrap .home-footprints-box > aside > .advertise,
  .app-wrap .home-footprints-box > aside > .spu-item-normal-box {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    flex: none;
    box-sizing: border-box;
  }

  .app-wrap .home-footprints-box > aside > .advertise img {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: none;
    object-fit: contain;
  }

  .app-wrap .home-footprints-box > aside > .advertise {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box .item-cover {
    display: grid;
    width: 100%;
    height: auto;
    margin: 8px auto 0;
    aspect-ratio: auto;
    padding-top: calc(45px - 17.55px);
    place-items: center;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box .item-cover img {
    width: min(100%, 160px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box > article {
    min-width: 0;
    padding: 0 7px 8px;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box h5 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box h3 {
    font-size: 13px;
    line-height: 1.35;
    height: 2.7em;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box h5 {
    font-size: 11px;
    line-height: 1.35;
  }

  .app-wrap .home-footprints-box .spu-item-normal-box h5,
  .app-wrap .home-footprints-box .spu-item-normal-box .item-attr-colors,
  .app-wrap .home-footprints-box .spu-item-normal-box .item-price {
    display: none;
  }

  .app-wrap .home-sns-box {
    margin-top: 14px;
  }

  .app-wrap .home-sns-box > aside.common-flex-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-wrap .home-sns-box .article-card {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 12px 10px 42px;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }

  .app-wrap .home-sns-box .article-card:nth-child(even) {
    border-left: 1px solid rgba(0, 0, 0, .08);
  }

  .app-wrap .home-sns-box .article-card .item-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1.58;
    overflow: hidden;
  }

  .app-wrap .home-sns-box .article-card .item-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .app-wrap .home-sns-box .article-card .read {
    right: 10px;
    bottom: 12px;
    left: 10px;
    font-size: 12px;
  }
}

@supports (height:1cqw) {
  @media(max-width:735px) {
    .app-wrap .home-footprints-box .spu-item-normal-box {container-type:inline-size}
    .app-wrap .home-footprints-box .spu-item-normal-box .item-cover {
      height:calc(max(100cqw, calc(min(100cqw,160px) + 65px)) - 17.55px);
    }
  }
}
