/* 跨页面视觉组件；位置与间距由使用它的页面负责。 */

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 48px;
  color: var(--color-text-700);
  border: 1px solid rgba(26, 35, 60, 0.1);
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
  transition:
    color var(--motion-hover-duration) var(--motion-hover-ease),
    border-color var(--motion-hover-duration) var(--motion-hover-ease),
    background-color var(--motion-hover-duration) var(--motion-hover-ease);
}

.text-gradient {
  background-image: linear-gradient(
    115.796deg,
    #3392fe 0%,
    #015efb 50%,
    #ba39ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.category-nav {
  display: flex;
  width: min(var(--content-width), calc(100% - 2 * var(--category-gutter, 0px)));
  margin-inline: auto;
  overflow-x: auto;
  border-radius: 99px;
  background: #fff;
  scrollbar-width: none;
  scroll-margin-top: 96px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav__link {
  display: inline-flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  height: 64px;
  padding: 20px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.category-nav__count {
  color: var(--color-text-400);
  font-size: 12px;
  line-height: 18px;
}

.category-nav__link:hover {
  background: #eef4ff;
}

.category-nav__link[aria-current="page"] {
  color: #fff;
  background: var(--color-brand);
}

.category-nav__link[aria-current="page"] .category-nav__count {
  color: rgba(255, 255, 255, 0.4);
}

.category-nav__link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -4px;
}

@media (max-width: 980px) {
  .category-nav__link {
    flex: 1 0 128px;
  }
}

@media (max-width: 720px) {
  .button-outline {
    width: 152px;
    height: 44px;
  }

  .category-nav {
    scroll-margin-top: 148px;
  }

  .category-nav__link {
    height: 52px;
    padding-block: 14px;
  }
}

.about-hero__media::after,
.service-hero__video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgb(242 245 252 / .22) 0%,
    rgb(242 245 252 / .14) 24%,
    rgb(242 245 252 / .12) 40%,
    rgb(242 245 252 / .14) 48%,
    rgb(242 245 252 / .21) 56%,
    rgb(242 245 252 / .35) 64%,
    rgb(242 245 252 / .54) 72%,
    rgb(242 245 252 / .74) 80%,
    rgb(242 245 252 / .91) 88%,
    rgb(242 245 252 / .98) 95%,
    #f2f5fc 100%);
}

@media (max-width: 720px) {
  .hero__pagination button { width: 44px; height: 44px; margin-block: -10px; }
  .hero__pagination button::before { top: 20px; left: 0; right: 0; }
  .hero__pagination button::after { top: 20px; }
  .faq-section__link { min-height: 44px; }
}

.page-atmosphere-host { position: relative; isolation: isolate; }
.page-atmosphere { position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 680px; overflow: hidden; pointer-events: none; }
.page-atmosphere img { position: absolute; top: min(-254.054px,-17.6426vw); left: calc(50% + max(25.95px,1.80208vw)); width: max(1596.988px,110.902vw); max-width: none; height: auto; opacity: .2; transform: translateX(-50%) rotate(-9.83deg); }
.page-atmosphere::after { content: ''; position: absolute; inset: auto 0 0; height: 280px; background: linear-gradient(180deg,rgba(242,245,252,0) 0%,rgba(242,245,252,.009) 6.6667%,rgba(242,245,252,.036) 13.333%,rgba(242,245,252,.082) 20%,rgba(242,245,252,.147) 26.667%,rgba(242,245,252,.232) 33.333%,rgba(242,245,252,.332) 40%,rgba(242,245,252,.443) 46.667%,rgba(242,245,252,.557) 53.333%,rgba(242,245,252,.668) 60%,rgba(242,245,252,.768) 66.667%,rgba(242,245,252,.853) 73.333%,rgba(242,245,252,.918) 80%,rgba(242,245,252,.964) 86.667%,rgba(242,245,252,.991) 93.333%,#f2f5fc 100%); }
@media (min-width:721px) and (max-width:980px) {
  .page-atmosphere { top: -72px; }
}
@media (max-width:720px) {
  .page-atmosphere { top: -80px; }
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 64px auto 0; padding-inline: var(--pagination-gutter, 0px); }
.pagination__pages { display: flex; align-items: center; gap: 12px; }
.pagination__direction,
.pagination__number,
.pagination__ellipsis { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 42px; border: 1px solid #e4e6eb; border-radius: 99px; background: #fff; color: var(--color-text-900); font-size: 16px; font-weight: 500; line-height: 24px; }
.pagination__direction { width: 200px; gap: 8px; padding: 8px 24px; }
.pagination__direction img { width: 24px; height: 24px; flex-shrink: 0; }
.pagination__number,
.pagination__ellipsis { width: 40px; }
.pagination__number[aria-current="page"] { color: #fff; background: var(--color-brand); border-color: var(--color-brand); }
.pagination__direction[aria-disabled="true"] { color: var(--color-text-400); }
.pagination__direction[aria-disabled="true"] img { opacity: .4; }
.pagination__ellipsis { border-color: transparent; }
.pagination a:hover { border-color: var(--color-brand); }
@media (max-width: 720px) {
  .pagination { flex-wrap: wrap; gap: 12px; margin-top: 40px; }
  .pagination__pages { order: -1; width: 100%; justify-content: center; gap: 8px; }
  .pagination__direction { flex: 1; width: auto; max-width: 200px; height: 44px; padding-inline: 12px; }
  .pagination__number,
  .pagination__ellipsis { width: 44px; height: 44px; }
}
