/* MaxHope 官网 AI-READY 共享接线：全站转场、官网落款与大型 TM 能力标识。 */
.mh-ai-route-transition,
.mh-ai-route-transition * {
  box-sizing: border-box;
}

.mh-ai-route-transition {
  position: fixed;
  inset: 0;
  z-index: 20000;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.mh-ai-route-transition__curtain {
  position: absolute;
  inset: -1px;
  background: #101116;
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .58s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.mh-ai-route-transition__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(430px, 76vw);
  height: 92px;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(-50%, 18px, 0) scale(.94);
  transition:
    opacity .26s cubic-bezier(.2, .8, .2, 1) .20s,
    transform .46s cubic-bezier(.16, 1, .3, 1) .17s;
}

.mh-ai-route-transition__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 88vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 72, 232, .78) 36%, rgba(143, 168, 255, .92) 48%, rgba(255, 108, 58, .9) 58%, transparent);
  opacity: .55;
  transform: translate(-50%, -50%) scaleX(.35);
  transition:
    transform .52s cubic-bezier(.16, 1, .3, 1) .15s,
    opacity .32s cubic-bezier(.2, .8, .2, 1) .15s;
}

.mh-ai-route-transition__badge {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(330px, 64vw);
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(143, 168, 255, .33);
  border-radius: 999px;
  background: #090c12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 26px 70px rgba(0, 0, 0, .32);
}

.mh-ai-route-transition__badge::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -150px;
  background: conic-gradient(from 20deg, transparent 0 70%, #1248e8 76%, #8fa8ff 79%, #ff6c3a 82%, transparent 88% 100%);
  animation: mhAiReadyOrbit 7s linear infinite;
  will-change: transform;
}

.mh-ai-route-transition__badge::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: #090c12;
}

.mh-ai-route-transition__badge img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(224px, 44vw);
  height: auto;
}

body.mh-ai-route-leaving {
  overflow: hidden;
}

body.mh-ai-route-leaving .mh-ai-route-transition {
  visibility: visible;
  pointer-events: auto;
}

body.mh-ai-route-leaving .mh-ai-route-transition__curtain {
  transform: scaleY(1);
}

body.mh-ai-route-leaving .mh-ai-route-transition__mark {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

body.mh-ai-route-leaving .mh-ai-route-transition__mark::before {
  opacity: 1;
  transform: translate(-50%, -50%) scaleX(1);
}

/* 落款资产基础样式；MaxHope 官网页脚仅保留紧随品牌的 AI-READY 能力胶囊。 */
.mhk-site,
.mhk-site * {
  box-sizing: border-box;
}

.mhk-site {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  margin-left: auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Helvetica, Arial, sans-serif;
  line-height: 1;
}

.mhk-credit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #626671;
  font-size: 13.5px;
  font-weight: 560;
}

.mhk-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
}

.mhk-m {
  display: block;
  width: auto;
  height: 18px;
}

.mhk-m--white {
  display: none;
}

.mhk-credit b {
  color: #17181d;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.mhk-divider {
  display: block;
  width: 1px;
  height: 22px;
  margin: 0 10px;
  background: #d7d9e0;
}

.mhk-ready-link {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 44px;
  border-radius: 999px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

.mhk-ready-link:hover {
  transform: translateY(-1px);
}

.mhk-ready-link:active,
.mhk-ready-link.is-departing {
  transform: scale(.96);
}

.mhk-ready-link:focus-visible {
  outline: 3px solid rgba(18, 72, 232, .36);
  outline-offset: 3px;
}

.mhk-ready-mark {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1000 / 304;
  overflow: hidden;
  border: 1px solid #353943;
  border-radius: 999px;
  background: #080a0f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.mhk-ready-mark::before,
.mhar-mark::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 156%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 79%, rgba(18, 72, 232, .04) 82%, #1248e8 87%, #87a4ff 89%, #ff6c3a 91%, rgba(255, 108, 58, .04) 94%, transparent 98%);
  transform: translate(-50%, -50%);
  animation: mhAiReadyOrbit 9s linear infinite;
}

.mhk-ready-mark::after,
.mhar-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: #080a0f;
}

.mhk-ready-word {
  display: block;
  width: 56%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.mhk-ready-word--light {
  display: none;
}

/* MaxHope 自有官网的页脚使用浅色胶囊；深色胶囊仍保留给套餐与强调场景。 */
.footer-ai-ready .mhk-ready-mark {
  border-color: #bfc5d2;
  background: #f8f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.footer-ai-ready .mhk-ready-mark::after {
  background: #f8f9fc;
}

.footer-ai-ready .mhk-ready-word--dark {
  display: none;
}

.footer-ai-ready .mhk-ready-word--light {
  display: block;
}

.mhk-site--dark .mhk-credit {
  color: #a0a3ad;
}

.mhk-site--dark .mhk-credit b {
  color: #edeef2;
}

.mhk-site--dark .mhk-m--blue {
  display: none;
}

.mhk-site--dark .mhk-m--white {
  display: block;
}

.mhk-site--dark .mhk-divider {
  background: #3a3d47;
}

.mhk-site--dark .mhk-ready-mark {
  border-color: #bfc5d2;
  background: #f8f9fc;
}

.mhk-site--dark .mhk-ready-mark::after {
  background: #f8f9fc;
}

.mhk-site--dark .mhk-ready-word--dark {
  display: none;
}

.mhk-site--dark .mhk-ready-word--light {
  display: block;
}

/* 官网套餐大型标识：320px 以上显示 TM，窄屏自动退回无 TM。 */
.mhar-mark,
.mhar-mark * {
  box-sizing: border-box;
}

.mhar-mark {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1000 / 304;
  overflow: hidden;
  border: 1px solid #353943;
  border-radius: 999px;
  background: #080a0f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 54px rgba(9, 14, 28, .14);
  container-type: inline-size;
}

.mhar-mark::before {
  animation-duration: 7s;
}

.mhar-word {
  display: block;
  width: 56%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.mhar-word--tm {
  display: none;
  width: 62%;
}

@container (min-width: 320px) {
  .mhar-mark--tm-large .mhar-word--default {
    display: none;
  }

  .mhar-mark--tm-large .mhar-word--tm {
    display: block;
  }
}

.web-plan-ai-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: block;
  width: clamp(152px, 12vw, 178px);
  border-radius: 999px;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

.web-plan-title-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 18px);
  min-width: 0;
  margin-top: 13px;
}

.web-plan-title-row h2 {
  min-width: 0;
  margin-top: 0;
}

@media (min-width: 821px) {
  .web-plan-ai-badge .mhar-word--default {
    display: none;
  }

  .web-plan-ai-badge .mhar-word--tm {
    display: block;
  }
}

.web-plan-ai-badge:hover {
  transform: translateY(-2px);
}

.web-plan-ai-badge:active,
.web-plan-ai-badge.is-departing {
  transform: scale(.98);
}

.web-plan-ai-badge:focus-visible {
  outline: 3px solid rgba(143, 168, 255, .88);
  outline-offset: 4px;
}

@keyframes mhAiReadyOrbit {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

@media (max-width: 820px) {
  .web-plan-ai-badge .mhar-word--default {
    display: block;
  }

  .web-plan-ai-badge .mhar-word--tm {
    display: none;
  }

  .web-plan-ai-badge {
    width: 132px;
  }

  .web-plan-title-row {
    margin-top: 6px;
  }
}

@media (max-width: 700px) {
  :where(.fbot, .ai-fbot) .mhk-site {
    width: 100%;
    margin: 5px 0 0;
  }
}

@media (max-width: 380px) {
  .web-plan-ai-badge {
    width: 118px;
  }

  .web-plan-title-row {
    gap: 10px;
  }

  .mhk-credit {
    font-size: 12.5px;
  }

  .mhk-lockup {
    gap: 5px;
    margin-left: 5px;
  }

  .mhk-credit b {
    font-size: 15px;
  }

  .mhk-divider {
    margin-inline: 7px;
  }

  .mhk-ready-link {
    min-width: 104px;
  }

  .mhk-ready-mark {
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-ai-route-transition__curtain,
  .mh-ai-route-transition__mark,
  .mh-ai-route-transition__mark::before,
  .mhk-ready-link,
  .web-plan-ai-badge {
    transition: none;
  }

  .mh-ai-route-transition__badge::before,
  .mhk-ready-mark::before,
  .mhar-mark::before {
    animation: none;
    transform: translate(-50%, -50%) rotate(315deg);
  }
}

@media print {
  .mh-ai-route-transition {
    display: none;
  }

  .mhk-ready-mark::before,
  .mhar-mark::before {
    animation: none;
    transform: translate(-50%, -50%) rotate(315deg);
  }
}
