/* Footer */
.site-footer{
  grid-area: footer;
  display: block;
  background: var(--footer-top-background-color);
  background-color: var(--footer-top-background-color);
}

.site-footer__top{
  width: 100%;
  background-color: var(--footer-top-background-color);
  grid-area: footer-top;
}

/* Footer - top area*/
.site-footer__top .container {
  width: 100%;
  max-width: none;
  padding: 0.5rem 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "footer-left footer-right";
  gap: var(--section-gap);
}




/* Footer - top area - left side */
.footer-left {
  /* border: 1px solid red; */


  width: 100%;

  display: block;
  grid-area: footer-left;
}

/* =======  Right side split in two columns for addresses ======= */
.footer-right {

  gap: 1.5rem;
  height: 100%;
  align-content: center;    /* push grid content to bottom */
  justify-items: center;    /* align items to the right */

  display: block;
  grid-area: footer-right;
}

.footer-right .field__item > p:first-child{
  font-size: 2rem;
  color: #fff;
  font-weight: 380;
}
.footer-right .field__item > p{
  color: #f0efef;
  font-weight: lighter;
}

/* =======  End Right side split in two columns for addresses ======= */



/* ======= Footer - Bottom bar ======= */
/* Footer - Bottom bar */
.footer-bottom {
  grid-area: footer-bottom;
  width: 100%;
  
  background: var(--footer-bottom-background-color);
  color: #ffffff;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.region--footer-second{
  /* border: 1px solid red; */

  /* max-width: var(--default-max-width); */
  /* margin: 0 auto;  */
  min-height: 35px;

  padding: 16px;
}

/* add the left border to the menu items */
.footer-bottom .menu > li + li {
  border-left: 1.8px solid #ffffff;
  
}

/* List the menu items horizontally */
.footer-bottom .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

/* Give each item a little space */
.footer-bottom .menu > li {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}


/* Add hover effect to the menu items */
.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
  text-decoration: underline;
}
.site-footer a {
  color: #e6e6e6;
  text-decoration: none;
}

/* The text format*/
.site-footer .menu__item a{
  color: #f0f0f0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 0 1rem 0;
}


/*======= End Footer - Bottom bar =======*/

/* ====== Override the Olivero footer =======*/
@media (min-width: 62.5rem) {
  .region > *:where(:not([data-big-pipe-placeholder-id])) {
      margin-block-end: 0px;
  }
}
@media (min-width: 43.75rem) {
  .region > *:where(:not([data-big-pipe-placeholder-id])) {
      margin-block-end: 0px;
  }
}


.region--footer-right p{
  margin-block-start: 1rem;
  margin-block-end: 0;
}


/* ====== 移动端响应式优化 ======= */

/* 手机端优化 (小于768px) */
@media (max-width: 768px) {
  /* 改为单列布局 */
  .site-footer__top .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "footer-left"
      "footer-right";
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  /* 右侧内容优化 */
  .footer-right {
    text-align: left;
    justify-items: start;
  }

  /* 调整标题字体大小 */
  .footer-right .field__item > p:first-child {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* 调整正文字体大小 */
  .footer-right .field__item > p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* 底部导航优化 */
  .region--footer-second {
    padding: 1rem;
  }

  /* 底部菜单项垂直排列或更好的换行 */
  .footer-bottom .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* 移除左边框，因为是垂直排列 */
  .footer-bottom .menu > li + li {
    border-left: none;
    border-top: 1.8px solid #ffffff;
    padding-top: 0.8rem;
  }

  /* 调整菜单项间距 */
  .footer-bottom .menu > li {
    padding: 0;
    width: 100%;
  }

  /* 调整链接字体大小 */
  .site-footer .menu__item a {
    font-size: 0.95rem;
  }
}

/* 小屏手机优化 (小于480px) */
@media (max-width: 480px) {
  .site-footer__top .container {
    padding: 1rem 0.75rem;
    gap: 1.5rem;
  }

  .footer-right .field__item > p:first-child {
    font-size: 1.25rem;
  }

  .footer-right .field__item > p {
    font-size: 0.875rem;
  }

  .region--footer-second {
    padding: 0.75rem;
  }

  .site-footer .menu__item a {
    font-size: 0.875rem;
  }
}

/* 平板端优化 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-footer__top .container {
    padding: 1rem 1.5rem;
  }

  .footer-right .field__item > p:first-child {
    font-size: 1.75rem;
  }
}