.footer {
  background-color: rgb(var(--color-page-background));
}

.section-footer-padding {
  margin-top: var(--section-vertical-gap);
  padding-top: calc(var(--padding-top) / 2);
  padding-bottom: calc(var(--padding-bottom) / 2);
}

@media (min-width: 960px) {
  .section-footer-padding {
    padding-left: var(--padding-left);
    padding-right: var(--padding-right);
  }
}

.footer-block:empty {
  display: none;
}

@media (min-width: 960px) {
  .footer-block .footer-block--subscribe .footer-letter-form {
    width: 100% !important;
    max-width: 590px;
  }

  .footer-block .footer-block--subscribe .footer-block__heading {
    margin-top: 15px;
  }
}

@media (max-width: 959px) {
  .footer-block .footer-block--subscribe .field {
    margin-bottom: 0;
  }
}

.footer-block__heading {
  font-weight: 500;
}

.footer-block--full {
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 959px) {
  .footer-block--full {
    margin-top: 20px;
  }
}

.footer-block--full {
  width: 100%;
}

.footer-block--full .footer-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-block__details-content.rte,
.footer-block__details-content>li {
  margin-top: 15px;
}

.footer-block__details-content a {
  opacity: 0.7;
}

footer-menu {
  display: flex;
  flex-direction: column;
}

.footer__blocks-wrapper .footer__list-social {
  margin-top: 15px;
  grid-column-gap: 8px;
}

@media (min-width: 960px) {
  .footer__blocks-wrapper .footer__list-social {
    grid-column-gap: var(--block-media-icon-padding);
  }
}

.footer__blocks-wrapper .footer__list-social {
  grid-row-gap: 15px;
}

.footer__blocks-wrapper .footer__list-social a svg,
.footer__blocks-wrapper .footer__list-social img {
  width: 28px;
  height: 28px;
}

@media (min-width: 960px) {

  .footer__blocks-wrapper .footer__list-social a svg,
  .footer__blocks-wrapper .footer__list-social img {
    width: var(--block-media-icon-width);
    height: var(--block-media-icon-width);
  }
}

.footer__blocks-wrapper .footer-block--subscribe {
  width: 100% !important;
}

@media (min-width: 960px) {
  .footer__blocks-wrapper .footer-letter-form {
    display: flex;
  }

  .footer__blocks-wrapper .footer-letter-form .field {
    max-width: 590px;
  }
}

@media (min-width: 960px) {
  .footer-block {
    min-width: 200px;
  }

  .footer-block--list .footer-block__heading svg {
    display: none;
  }

  .footer_content_center .footer__blocks-wrapper .footer-block__heading,
  .footer_content_center .footer__blocks-wrapper .footer-block__details-content,
  .footer_content_center .footer__blocks-wrapper .footer-block__details-content li {
    text-align: center;
  }

  .footer_content_center .footer__blocks-wrapper .footer-letter-form {
    justify-content: center;
  }

  .footer_content_center .footer__blocks-wrapper .footer__conact-block,
  .footer_content_center .footer__blocks-wrapper .footer__list-social {
    justify-content: center;
  }

  .footer_content_right .footer__blocks-wrapper .footer-block__heading,
  .footer_content_right .footer__blocks-wrapper .footer-block__details-content,
  .footer_content_right .footer__blocks-wrapper .footer-block__details-content li {
    text-align: right;
  }

  .footer_content_right .footer__blocks-wrapper .footer-letter-form {
    justify-content: flex-end;
  }

  .footer_content_right .footer__blocks-wrapper .footer__conact-block,
  .footer_content_right .footer__blocks-wrapper .footer__list-social {
    justify-content: flex-end;
  }
}

.footer_content_right .content_vertical {
  align-items: flex-end;
}

.footer_content_right .footer__copyright {
  text-align: right;
}

.footer_content_right .copyright-menu-box {
  justify-content: flex-end;
}

@media (max-width: 959px) {
  .footer_content_right .footer__content-bottom-wrapper {
    align-items: flex-end;
  }

  .footer_content_right .footer__payment {
    justify-content: flex-end;
  }
}

.footer_content_left .content_vertical {
  align-items: flex-start;
}

.footer_content_left .copyright-menu-box {
  justify-content: flex-start;
}

.footer_content_left .footer__copyright {
  text-align: left;
}

@media (max-width: 959px) {
  .footer_content_left .footer__content-bottom-wrapper {
    align-items: flex-start;
  }

  .footer_content_left .footer__payment {
    justify-content: flex-start;
  }
}

@media (max-width: 959px) {
  .footer-block {
    position: relative;
    padding-bottom: var(--grid-vertical-space);
  }

  .footer-block::after {
    position: absolute;
    content: " ";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(var(--color-text), 0.1);
  }

  footer-menu {
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
  }

  footer-menu .footer-block__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  footer-menu .footer-block__details-content {
    height: 0;
    opacity: 0;
  }

  footer-menu .icon-arrow {
    display: inline-block;
  }

  footer-menu .icon-minus {
    display: none;
  }

  footer-menu[open] .footer-block__details-content {
    opacity: 1;
    height: auto;
  }

  footer-menu[open] .icon-arrow {
    display: none;
  }

  footer-menu[open] .icon-minus {
    display: inline-block;
  }
}

.footer-block__details-content .list-menu__item--active,
.footer-block__details-content .list-menu__item--link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  color: rgba(var(--color-text));
  opacity: 1;
}

.footer-block-image>img {
  height: auto;
  object-fit: cover;
  object-fit: center center;
}

@media (max-width: 959px) {
  .footer-block-image {
    text-align: left !important;
  }
}

.footer__copyright {
  text-align: center;
  margin-top: 10px;
}

.footer-block--newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 960px) {
  .footer-block--newsletter {
    justify-content: space-between;
  }

  .footer-block--newsletter .field {
    margin-bottom: 0;
  }

  .footer-block--newsletter.content-align-row {
    flex-direction: column;
    justify-content: center;
  }

  .footer-block--newsletter.content-align-row .footer__list-social {
    margin-top: 20px;
  }

  .footer-block--newsletter.content-align-col {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .footer-block--newsletter.content-align-col .footer-block--subscribe {
    max-width: 100%;
    width: 65%;
    margin-right: 40px;
  }

  .footer-block--newsletter.content-align-col .footer__list-social {
    min-width: 300px;
  }
}

.footer-letter-media-up {
  margin-top: 0 !important;
}

@media (min-width: 960px) {
  .footer-block--newsletter {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .content-align-row .footer-block--subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .content-align-row .footer-block--subscribe .footer-block__heading {
    text-align: center;
  }

  .footer-block--subscribe .footer-letter-form {
    width: 396px;
  }

  .footer-block--subscribe {
    flex-shrink: 0;
  }

  .footer-block--subscribe.letter-size--middle .footer-block__heading {
    margin-bottom: 20px;
  }

  .footer-block--subscribe.letter-size--middle .footer-letter-form {
    width: 490px;
  }

  .footer-block--subscribe.letter-size--large .footer-block__heading {
    margin-bottom: 24px;
  }

  .footer-block--subscribe.letter-size--large .footer-letter-form {
    width: 590px;
  }
}

@media (max-width: 959px) {
  .footer-block--newsletter {
    margin-top: 20px;
  }

  .footer-block--subscribe {
    width: 100%;
  }

  .footer-block--newsletter .field {
    width: 100%;
  }

  .footer__list-social {
    margin-bottom: 20px;
  }
}

.footer-block--subscribe .footer-block__heading {
  margin-bottom: 15px;
}

.footer__list-social {
  display: flex;
  grid-column-gap: 8px;
}

@media (min-width: 960px) {
  .footer__list-social {
    grid-column-gap: var(--media-icon-padding);
  }
}

.footer__list-social {
  grid-row-gap: 15px;
  flex-wrap: wrap;
}

.footer__list-social a svg,
.footer__list-social a img {
  transition: transform 125ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 28px;
  height: 28px;
}

@media (min-width: 960px) {

  .footer__list-social a svg,
  .footer__list-social a img {
    width: var(--media-icon-width);
    height: var(--media-icon-width);
  }
}

.footer__list-social a:hover svg,
.footer__list-social a:hover img {
  transform: scale(1.1);
}

.copyright-menu-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.copyright-menu-box .line {
  padding: 0 10px;
}

.copyright-menu-box .footer-menu--item {
  flex-shrink: 0;
  flex-wrap: wrap;
}

.copyright-menu-box .footer-menu--item:hover a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (min-width: 960px) {
  .footer__content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .content_vertical {
    flex-direction: column;
  }

  .corner-content__left {
    flex-direction: row-reverse;
    display: flex;
  }

  .corner-content__left .copyright-menu-box {
    margin-left: 10px;
  }
}

@media (max-width: 959px) {
  .footer__content-bottom {
    flex-direction: column-reverse;
    display: flex;
    row-gap: 20px;
  }

  .copyright__content {
    margin-top: 8px;
  }
}

.footer__content-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer__column--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

/* @media (--pc) {
  .footer__column--info {
    max-width: 30%;
  }
} */
@media (max-width: 959px) {}

@keyframes animateLocalization {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

.footer__localization form {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__localization .dropdown-menu__list-wrapper {
  opacity: 1;
  animation: animateLocalization 200ms ease;
  transform: translateY(-10px);
}

.footer__payment {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer__payment>svg {
  height: 22px;
  width: 35px;
}

@media (max-width: 959px) {
  .footer__content-bottom-wrapper {
    flex-direction: column;
  }

  .footer__column--info {
    align-items: center;
  }

  .footer__copyright {
    margin-top: 0px;
  }

  .footer__payment {
    justify-content: center;
  }

  .footer__localization form {
    gap: 6px;
  }

  .footer__localization dropdown-menu:last-child .dropdown-menu__list-wrapper {
    right: 0;
  }
}

.footer__conact-block {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.footer__conact-block svg {
  color: rgb(var(--color-text));
  width: 20px;
  height: 20px;
}

.footer__conact-block .footer__conact-text {
  margin-left: 20px;
}

.footer__conact-block .footer__conact-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer__conact-block .footer__conact-icon .logo-list-icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

@media (max-width: 959px) {
  .footer__list-social {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer__list-social a svg {
    width: 36px;
    height: 36px;
  }
}

.footer .newsletter-form__button {
  padding: 6px;
}

/* The ipad end responds to the mobile end in vertical screen */
/* @custom-media --tablet (max-width: 959px); */
/* @custom-media --gt-mobile (min-width: 751px); */
/* detectingScreen need to consider the configuration of the tablet */

/* =========================================================
   MEOKY Footer 
   ========================================================= */

/* Footer 背景与普通文字跟随后台「配色」 */
.meoky-site-footer {
  position: relative !important;
  display: flow-root;
  height: auto;
  min-width: 0;
  max-width: 100%;
  background: rgb(var(--color-page-background)) !important;
  color: rgb(var(--color-text)) !important;
  overflow-wrap: anywhere;
}

/* =========================================================
   电脑端：根据屏幕宽度自动排列
   ========================================================= */
@media (min-width: 960px) {

  .meoky-site-footer .footer__content-top.page-width,
  .meoky-site-footer .footer__content-bottom.page-width {
    width: calc(100% - 80px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .meoky-site-footer .footer__blocks-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    column-gap: 52px !important;
    row-gap: 46px !important;
    width: 100% !important;
    align-items: start !important;
  }

  .meoky-site-footer .footer-block,
  .meoky-site-footer footer-menu.footer-block {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* 菜单在电脑端不显示展开箭头 */
  .meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>.footer-block__heading svg {
    display: none !important;
  }
}

/* =========================================================
   仅导航菜单：白色标题气泡
   ========================================================= */
.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>.footer-block__heading {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 30px !important;
  margin: 0 0 22px !important;
  padding: 6px 13px !important;
  border-radius: 15px 15px 15px 0 !important;
  background: #ffffff !important;
  color: #202020 !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

/* 每个导航菜单前两项：主链接 */
.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content>li:nth-child(-n + 2)>a {
  display: inline-block !important;
  color: rgb(var(--color-text)) !important;
  opacity: 1 !important;
  font-family: "Arial Rounded MT Bold", Arial, sans-serif !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  text-decoration: none !important;
}

/* 第三项起：小号链接、全部竖排 */
.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content>li:nth-child(n + 3) {
  display: block !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
}

.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content>li:nth-child(n + 3)>a {
  display: inline-block !important;
  color: rgb(var(--color-text)) !important;
  opacity: 1 !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content>li {
  margin-top: 10px !important;
}

.meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content a:hover {
  color: rgb(var(--color-text)) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* =========================================================
   仅 Custom content：标题气泡与品牌正文
   ========================================================= */
.meoky-site-footer .footer-block:has(> .footer-block__details-content.rte)>.footer-block__heading {
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 30px !important;
  margin: 0 0 22px !important;
  padding: 6px 13px !important;
  border-radius: 15px 15px 15px 0 !important;
  background: #ffffff !important;
  color: #202020 !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.meoky-site-footer .footer-block__details-content.rte,
.meoky-site-footer .footer-block__details-content.rte p {
  max-width: 430px !important;
  margin: 0 !important;
  color: rgb(var(--color-text)) !important;
  font-family: "Arial Rounded MT Bold", Arial, sans-serif !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
}

/* 其他原有 Footer 文字略缩小，不加气泡 */
.meoky-site-footer .footer__conact-text,
.meoky-site-footer .footer-block--subscribe,
.meoky-site-footer .footer__copyright,
.meoky-site-footer .footer__content-bottom {
  font-size: 16px !important;
}

/* =========================================================
   原生社媒：支付图标上方，正常占位，不使用绝对定位
   ========================================================= */
.meoky-site-footer .footer__content-top {
  display: flow-root;
}

.meoky-site-footer .footer-block,
.meoky-site-footer .footer__copyright,
.meoky-site-footer .footer__content-bottom-wrapper,
.meoky-site-footer .footer__column {
  min-width: 0;
  max-width: 100%;
}

.meoky-site-footer .footer__content-bottom {
  flex-wrap: wrap;
  gap: 24px;
}

.meoky-site-footer .footer__content-bottom-wrapper {
  flex-wrap: wrap;
  align-items: flex-end;
}

.meoky-site-footer .footer__column--info {
  gap: 32px;
}

.meoky-site-footer .footer__social-above-payment {
  width: 100%;
  min-width: 0;
}

.meoky-site-footer .footer__social-above-payment .footer__list-social {
  justify-content: flex-start;
  margin: 0;
}

.meoky-site-footer .footer__list-social {
  min-width: 0;
  max-width: 100%;
}

.meoky-site-footer .footer__list-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meoky-site-footer .footer__list-social svg,
.meoky-site-footer .footer__list-social img {
  display: block;
}

.meoky-site-footer .footer-letter-form,
.meoky-site-footer .footer-block-image img {
  max-width: 100%;
}

@media (min-width: 960px) {
  .meoky-site-footer .footer__content-bottom.page-width {
    padding-top: 40px !important;
    align-items: flex-end;
  }

  .meoky-site-footer .footer-media-full-row>.footer__list-social {
    width: 100%;
    justify-content: center;
  }

  .meoky-site-footer .footer-block--newsletter.content-align-col {
    flex-wrap: wrap;
    gap: 24px;
  }

  .meoky-site-footer .content-align-col .footer-block--subscribe {
    flex: 1 1 360px;
    min-width: 0;
    width: auto;
    margin-right: 0;
  }

  .meoky-site-footer .content-align-col .footer__list-social {
    min-width: 0;
  }
}

@media (max-width: 959px) {
  .meoky-site-footer .footer__content-bottom {
    padding-top: 24px;
  }

  .meoky-site-footer .footer__column--info {
    width: 100%;
    gap: 24px;
  }

  .meoky-site-footer .footer__social-above-payment .footer__list-social {
    justify-content: center;
  }

  .meoky-site-footer .footer__list-social a {
    min-width: 44px;
    min-height: 44px;
  }
}

/* =========================================================
   手机端：自然单列与折叠菜单
   ========================================================= */
@media (max-width: 959px) {
  .meoky-site-footer .footer__blocks-wrapper {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>.footer-block__heading {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 48px !important;
    margin-bottom: 0 !important;
    padding: 9px 16px !important;
  }

  .meoky-site-footer footer-menu[open]>.footer-block__heading {
    margin-bottom: 16px !important;
  }

  .meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>.footer-block__heading svg {
    color: #202020 !important;
    flex-shrink: 0;
  }

  .meoky-site-footer footer-menu:not([open])>.footer-block__heading .icon-arrow,
  .meoky-site-footer footer-menu[open]>.footer-block__heading .icon-minus {
    display: block !important;
  }

  .meoky-site-footer footer-menu[open]>.footer-block__heading .icon-arrow,
  .meoky-site-footer footer-menu:not([open])>.footer-block__heading .icon-minus {
    display: none !important;
  }

  .meoky-site-footer .footer-block__details-content.rte,
  .meoky-site-footer .footer-block__details-content.rte p {
    max-width: none !important;
    font-size: 23px !important;
  }

  .meoky-site-footer footer-menu:has(> ul.footer-block__details-content)>ul.footer-block__details-content>li:nth-child(-n + 2)>a {
    font-size: 23px !important;
  }

}