.site-footer {
  width: 100%;
  color: #181818;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fff 0%, #f7f6ff 127.28%);
  border: 0;
  box-shadow: none;
  /* 设计稿在底部分隔线之下还留 20px。这段留白必须由 footer 自己的 padding 提供：
     若写成 .site-footer__bottom 的 margin-bottom，作为末子元素它会外边距塌陷、
     溢出到 footer 之外，渐变背景会正好止于分隔线。 */
  padding-bottom: 20px;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer ul,
.site-footer p {
  margin: 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
}

.site-footer__links > li {
  display: flex;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.site-footer nav {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer nav::before {
  content: none;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 163px max-content max-content max-content;
  align-items: start;
  justify-content: space-between;
  width: calc(100% - 80px);
  max-width: 1684px;
  margin: 0 auto;
  padding: 80px 0 40px;
}

.site-footer__brand,
.site-footer__section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.site-footer__nero-link,
.site-footer__nero-logo {
  display: block;
  width: 163px;
}

.site-footer__nero-logo {
  height: 80px;
  object-fit: contain;
  filter: brightness(0);
}

.site-footer__legal,
.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__title {
  margin: 0;
  padding: 0;
  color: #181818;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.site-footer__link,
.site-footer__contact {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #666 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-footer__store-link,
.site-footer__contact {
  gap: 8px;
}

.site-footer__store-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  object-fit: contain;
}

.site-footer__contact-icon {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.site-footer__contact-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.site-footer__apple-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #c6c6c6;
}

.site-footer__apple-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__link:hover,
.site-footer__contact:hover {
  color: #7e5eed !important;
  transform: translateX(3px);
}

.site-footer__link:focus-visible,
.site-footer__contact:focus-visible,
.site-footer__social-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #7e5eed;
  outline-offset: 3px;
}

/* 设计稿 Frame 1107（1920 / 1024 / 360 三个断点完全一致）：版权栏上下各有一条通栏
   1px #CCC 分隔线，线外留 20px、线与版权行之间留 25px。之前这两条线被去掉，并把
   20+25 合并成了单一内边距，所以这里用 margin(线外) + border(线) + padding(线内)
   还原三段结构；三个断点数值相同，无需按断点单独覆盖。 */
.site-footer__bottom {
  width: 100%;
  margin: 20px 0 0;
  padding: 25px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.site-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 80px);
  max-width: 1440px;
  min-height: 48px;
  margin: 0 auto;
}

.site-footer__bottom-leading,
.site-footer__social-area,
.site-footer__social-group,
.site-footer__social-links,
.site-footer__product {
  display: flex;
  align-items: center;
}

.site-footer__bottom-leading {
  gap: 25px;
}

.site-footer__product {
  flex: 0 0 auto;
  gap: 16px;
  color: #181818 !important;
}

.site-footer__product-logo {
  display: block;
  width: 48px;
  height: 48px;
}

.site-footer__product-name {
  color: #181818;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.site-footer__social-area {
  gap: 25px;
}

.site-footer__social-group {
  gap: 20px;
}

.site-footer__social-label {
  color: #999;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.site-footer__social-links {
  gap: 10px;
}

.site-footer__social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-footer__social-link::before,
.site-footer__social-link::after {
  position: absolute;
  left: 50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-footer__social-link::before {
  bottom: calc(100% + 8px);
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: #181818;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  transform: translate(-50%, 4px);
}

.site-footer__social-link::after {
  bottom: calc(100% + 3px);
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #181818;
  content: "";
  transform: translate(-50%, 4px);
}

.site-footer__social-link:hover::before,
.site-footer__social-link:hover::after,
.site-footer__social-link:focus-visible::before,
.site-footer__social-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Keep the last tooltip inside the viewport instead of letting its invisible
   resting box widen the document. */
.site-footer__social-links .site-footer__social-link:last-child::before,
.site-footer__social-links .site-footer__social-link:last-child::after {
  right: 0;
  left: auto;
  transform: translateY(4px);
}

.site-footer__social-links .site-footer__social-link:last-child:hover::before,
.site-footer__social-links .site-footer__social-link:last-child:hover::after,
.site-footer__social-links .site-footer__social-link:last-child:focus-visible::before,
.site-footer__social-links .site-footer__social-link:last-child:focus-visible::after {
  transform: translateY(0);
}

.site-footer__social-link img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer__social-group:first-child .site-footer__social-link:nth-child(1) img {
  width: 85.4167%;
  height: 75%;
}

.site-footer__social-group:first-child .site-footer__social-link:nth-child(2) img {
  width: 83.3333%;
  height: 66.6667%;
}

.site-footer__social-group:first-child .site-footer__social-link:nth-child(3) img {
  width: 83.3333%;
  height: 82.8271%;
}

.site-footer__social-link:hover {
  opacity: 0.82;
  transform: translateY(-2px) scale(1.08);
}

.site-footer__copyright {
  color: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

body:has(.browser-page) .site-footer {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

@media screen and (min-width: 1600px) {
  .site-footer__main {
    display: flex;
    gap: 300px;
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    padding: 80px 0 0;
  }

  /* 原来的 padding:44px 0 是分隔线被移除后把「线外 20 + 线内 25」合并的产物。
     线还原后交回基础规则的 20/25，这里不再覆盖。 */

  .site-footer__bottom-row {
    width: calc(100% - 80px);
    max-width: 1440px;
    padding: 0;
  }
}

@media screen and (max-width: 1319.9px) {
  .site-footer__main {
    width: calc(100% - 148px);
    max-width: 876px;
  }

  .site-footer__link,
  .site-footer__contact {
    color: #181818 !important;
  }

  .site-footer__bottom-row {
    flex-wrap: wrap;
    row-gap: 25px;
    width: calc(100% - 40px);
    max-width: none;
  }

  .site-footer__bottom-leading {
    justify-content: space-between;
    width: 100%;
  }

  .site-footer__copyright {
    flex: 0 0 100%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023.9px) {
  .site-footer__main {
    grid-template-columns: 163px max-content;
    justify-content: start;
    gap: 40px 200px;
    width: calc(100% - 80px);
    max-width: 688px;
  }

  .site-footer__bottom-leading {
    align-items: flex-start;
  }
}

@media screen and (max-width: 767.9px) {
  .site-footer__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: none;
    padding: 80px 40px 50px;
  }

  .site-footer__brand {
    gap: 28px;
  }

  .site-footer__section {
    gap: 12px;
  }

  .site-footer__legal,
  .site-footer__links {
    gap: 8px;
  }

  .site-footer__link,
  .site-footer__contact {
    color: #181818 !important;
  }

  /* 仅保留移动端两侧 20px 内边距，上下沿用基础规则的 25px（线内）。 */
  .site-footer__bottom {
    padding: 25px 20px;
  }

  .site-footer__bottom-row,
  .site-footer__bottom-leading,
  .site-footer__social-area {
    flex-direction: column;
  }

  .site-footer__bottom-row {
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
  }

  .site-footer__bottom-leading {
    gap: 18px;
  }

  .site-footer__social-area {
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__social-group {
    gap: 10px;
  }

  .site-footer__social-label {
    width: auto;
    flex: 0 0 auto;
    font-size: 12px;
    line-height: normal;
    text-align: left;
  }

  .site-footer__social-link,
  .site-footer__social-link img {
    width: 16px;
    height: 16px;
  }

  .site-footer__copyright {
    font-size: 8px;
    line-height: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__link,
  .site-footer__contact,
  .site-footer__social-link,
  .site-footer__social-link::before,
  .site-footer__social-link::after {
    transition: none;
  }

  .site-footer__link:hover,
  .site-footer__contact:hover,
  .site-footer__social-link:hover {
    transform: none;
  }
}
