/* Boosting homepage layout; existing support and video motion retained. */
/* Figma mobile composition; shared rem scaling and 1040px page container. */
/* HarmonyOS Sans Fonts © 2021 Huawei Device Co., Ltd.; fonts/harmonyos-sans-sc/LICENSE.txt. */
@font-face {
  font-family: "Home Hero HarmonyOS Sans SC";
  src: url("fonts/harmonyos-sans-sc/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Home Hero HarmonyOS Sans SC";
  src: url("fonts/harmonyos-sans-sc/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Home Hero HarmonyOS Sans SC";
  src: url("fonts/harmonyos-sans-sc/HarmonyOS_Sans_SC_Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

.support-unread-host { position: relative; }

.support-unread-dot { position: absolute; top: -.02rem; right: -.02rem; width: .08rem; height: .08rem; border-radius: 50%; background: var(--error, #f04452); pointer-events: none; }

.support-unread-dot[hidden] { display: none; }

/* Figma 4119:31498; mobile canvas excludes the mock iPhone status bar. */
#app.home-landing-page { overflow: clip; background: #0e0e0e; }
#app.home-landing-page .tab-header { max-width: 10.4rem; min-height: .62rem; padding: .13rem .2rem; margin: 0 auto; }
#app.home-landing-page .tab-header-title { font-size: .3rem; line-height: .36rem; }
#app.home-landing-page .tab-header .top-bar-action { width: .24rem; height: .24rem; padding: 0; background: transparent; box-shadow: none; border: 0; }
#app.home-landing-page .tab-header .top-bar-action img { width: .24rem; height: .24rem; }
#app.home-landing-page .home-landing-main { display: block; width: 100%; max-width: 10.4rem; margin: auto; padding: 0 0 calc(1.12rem + env(safe-area-inset-bottom)); overflow: clip; }
.home-landing { color: #fff; font-family: "Home Hero HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: .12rem; line-height: .16rem; }
.home-landing h1, .home-landing h2, .home-landing h3, .home-landing p { margin: 0; }
.home-landing img { display: block; object-fit: contain; }
.home-landing-hero { position: relative; isolation: isolate; padding: .24rem 0 .2rem; }
.home-landing-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -.62rem; left: calc((100% - 4.02rem) / 2); width: 4.02rem; height: 5.55rem; background: url("images/home/boosting/hero-background.png") center / contain no-repeat; }
.home-landing-hero-composition { width: min(100%, 4.02rem); margin: auto; }
.home-landing-hero-copy { text-align: center; padding: 0 .2rem; }
.home-landing-hero h1 { font-size: .28rem; line-height: .32rem; font-weight: var(--font-weight-900, 900); }
.home-landing-hero h1 > span { background: linear-gradient(90deg, #fbfbfc, #afc7e9); color: transparent; background-clip: text; }
.home-landing-hero h1 strong { display: block; margin-top: .03rem; font-size: .36rem; line-height: .43rem; font-weight: var(--font-weight-900, 900); background: linear-gradient(#fff, #ffd557); color: transparent; background-clip: text; }
.home-landing-hero-copy .home-landing-hero-task { margin-top: .12rem; font-size: .13rem; line-height: .24rem; font-weight: var(--font-weight-700, 700); }
.home-landing-hero-copy .home-landing-hero-pay { font-size: .13rem; line-height: .24rem; font-weight: var(--font-weight-700, 700); }
.home-landing-hero-pay bdi { display: inline-block; font-size: .24rem; color: #65f9a4; font-weight: var(--font-weight-900, 900); font-style: italic; white-space: nowrap; }
.home-landing-hero-scene { position: relative; width: 100%; height: 2.64rem; }
.home-landing-tutorial-card { position: absolute; inset: .3rem .12rem; overflow: hidden; border: 1px solid transparent; border-radius: .24rem; background: linear-gradient(155deg,#090f12,#0b1217) padding-box, linear-gradient(141deg,#8db3a2b3,#375a5ab3 11%,#192525b3 34%,#c3ffffb3 63%,#375a5ab3 79%,#7ededeb3) border-box; }
/* The supplied Chinese/Portuguese covers include copy. Other locales expose native text
   over the card while retaining the supplied artwork and lower decoration. */
.home-landing-tutorial-cover { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home-landing-tutorial-cover--localized { mask-image: linear-gradient(90deg, transparent 38%, #000 48%), linear-gradient(180deg, transparent 66%, #000 76%); -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 48%), linear-gradient(180deg, transparent 66%, #000 76%); }
.home-landing-tutorial-button--image { height: 1.3rem; }
.home-landing-tutorial-button { position: absolute; top: .75rem; left: .34rem; width: 1.57rem; padding: 0; border: 0; background: none; color: white; text-align: left; font: inherit; cursor: pointer; }
.home-landing-tutorial-button strong { display: block; white-space: pre-line; font-size: .22rem; line-height: .26rem; font-weight: var(--font-weight-700, 700); }
.home-landing-tutorial-button span { display: block; white-space: pre-line; max-width: 1.47rem; margin-top: .08rem; color: #ffffff99; font-size: .16rem; line-height: .2rem; }
.home-landing-hero-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; }
.home-landing-steps > h2 { display: flex; justify-content: center; align-items: center; gap: .12rem; padding: 0 .24rem; font-size: .3rem; line-height: .36rem; font-weight: var(--font-weight-900, 900); text-align: center; }
.home-landing-steps > h2 img { flex: none; width: .24rem; height: .24rem; }
.home-landing-steps > h2 img:last-child { transform: rotate(180deg); }
.home-landing-step { padding-bottom: .12rem; min-width: 0; }
.home-landing-step header { padding: .24rem .24rem; }
.home-landing-step h3, .home-landing-notes h2 { font-size: .24rem; line-height: .3rem; font-weight: var(--font-weight-900, 900); background: linear-gradient(90deg,#fbfbfc,#afc7e9); color: transparent; background-clip: text; }
.home-landing-step p { margin-top: .06rem; color: #babcbf; font-size: .12rem; line-height: .16rem; white-space: pre-line; }
.home-landing-art { display: block; width: 100%; padding: 0; border: 0; background: none; }
.home-landing-step-art { width: 100%; height: auto; }
.home-landing-notes { margin-top: .08rem; padding: 0 .24rem .2rem; }
.home-landing-notes header { position: relative; display: flex; align-items: flex-end; min-height: .91rem; padding-bottom: .24rem; }
.home-landing-notes h2 { position: relative; z-index: 1; max-width: calc(100% - 1.45rem); }
.home-landing-notes header img { position: absolute; right: -.01rem; bottom: -.49rem; width: 1.32rem; height: 1.32rem; }
/* Preserve Figma's gradient handles as the frame adapts to translated copy and wide screens. */
.home-landing-notes-copy { position: relative; border: 1px solid transparent; border-radius: .2rem; padding: .16rem; background: linear-gradient(#171717,#171717) padding-box, url("images/home/boosting/notes-border-gradient.svg") center / 100% 100% no-repeat border-box; }
.home-landing-notes-copy p { color: #babcbf; font-size: .13rem; line-height: .18rem; }
.home-landing-contact { position: fixed; z-index: 101; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%,10.4rem); padding: 16px .26rem max(16px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #ffffff1f; background: #0e0e0ea6; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.home-landing a:focus-visible, .home-landing button:focus-visible { outline: .02rem solid #86f3a8; outline-offset: .04rem; }
@media (max-width: 359px) {
  #app.home-landing-page .tab-header { padding-inline: .12rem; }
  #app.home-landing-page .tab-header-title { font-size: .25rem; }
}
@media (min-width: 768px) {
  #app.home-landing-page .tab-header { padding-inline: .32rem; }
  .home-landing-hero { padding: .44rem .24rem .5rem; }
  .home-landing-step-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .24rem; padding: .12rem .24rem 0; }
  .home-landing-step header { min-height: 1.5rem; }
  .home-landing-notes { max-width: 7.6rem; margin: .32rem auto 0; }
  .home-landing-contact { display: flex; justify-content: center; }
  #app.home-landing-page .home-landing-contact-button { max-width: 4.8rem; }
}

.home-landing-hero-play-surface { position: relative; display: block; width: 100%; height: 100%; border-radius: inherit; animation: home-hero-play-breathe 2.4s ease-in-out infinite; }

/* Blur only the circular background beneath the transparent PNG. */
.home-landing-hero-play-surface::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-landing-hero-play img { position: relative; width: 100%; height: 100%; }

@keyframes home-hero-play-breathe {
  0%, 100% { transform: scale(.94); }
  50% { transform: scale(1); }
}

#app.home-landing-page .tab-header .home-landing-support { display: flex; align-items: center; gap: 4px; width: auto; height: .36rem; padding: .06rem .16rem; border-radius: .12rem; border: 0; background: linear-gradient(168deg, #1f3d79 0%, #070d19 48%, #0a0f1e 84%, #1f2e53 100%); box-shadow: inset 0 0 .04rem #abcaff; color: #fffffff2; font-family: "Home Hero HarmonyOS Sans SC", sans-serif; font-size: .12rem; line-height: .16rem; font-weight: var(--font-weight-700, 700); }

/* Cancel the icon-only header's offset so the visible icon/text gap stays 4px. */
#app.home-landing-page .tab-header .home-landing-support .top-bar-action-icon { flex: none; transform: none; }

.home-landing-support-label { white-space: nowrap; }

.home-landing-support .support-unread-dot { top: .08rem; right: .08rem; width: .06rem; height: .06rem; background: #f15555; }

/* Figma 3915:38030: the exported outline keeps the pointer and bubble moving together. */
.home-landing-support:has(.support-unread-dot:not([hidden]))::after { content: attr(data-unread-label); position: absolute; top: calc(100% + .06rem); right: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 1.23rem; height: .34rem; padding: .05rem .14rem 0; background: url("images/home/landing/support-message-bubble.svg") center / 100% 100% no-repeat; color: #fff; text-shadow: 0 .01rem .04rem #5617004d; white-space: nowrap; pointer-events: none; animation: home-support-nudge 2.4s ease-in-out infinite; }

.home-landing-support:has(.support-unread-dot:not([hidden])) .top-bar-action-icon img { animation: home-support-shake 2.4s ease-in-out infinite; }

@keyframes home-support-shake {
  0%, 32%, 100% { transform: translateX(0) rotate(0); }
  8%, 24% { transform: translateX(-2px) rotate(-8deg); }
  16% { transform: translateX(2px) rotate(8deg); }
}

@keyframes home-support-nudge {
  0%, 16%, 32%, 100% { transform: translateY(0); }
  8%, 24% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing-support:has(.support-unread-dot:not([hidden]))::after,
  .home-landing-support:has(.support-unread-dot:not([hidden])) .top-bar-action-icon img { animation: none; }}

#app.home-landing-page .home-landing-contact-button { width: 100%; height: .52rem; min-height: .52rem; padding: .12rem; border: .01rem solid #cffffa; border-radius: .2rem; color: var(--text-button); background: linear-gradient(90deg, #4ae79f, #31c5d0); box-shadow: inset 0 0 .16rem #ffffff66; font-size: .15rem; font-weight: var(--font-weight-700, 700); line-height: .2rem; }

.home-landing-contact-button::before { display: none; }

.home-landing-contact-button .vib-button-content { z-index: 2; gap: .06rem; }

.home-landing-contact-button .vib-button-label { line-height: .2rem; }

.home-landing-contact-button img { width: .22rem; height: .22rem; }

/* Match the reference CTA's rhythm, with a white highlight over the green/cyan fill. */
#app.home-landing-page .home-landing-contact-button { overflow: hidden; transform-origin: center center; animation: home-contact-breathe 1.6s ease-in-out infinite; }

#app.home-landing-page .home-landing-contact-button::after { content: ""; display: block; position: absolute; z-index: 1; top: -80%; bottom: -80%; left: -38%; width: 22%; pointer-events: none; background: linear-gradient(90deg, transparent 0%, #ffffff14 22%, #ffffffcc 50%, #ffffff28 78%, transparent 100%); filter: blur(2px); opacity: 0; transform: translateX(-120%) skewX(-18deg); animation: home-contact-shine 1.6s ease-in-out infinite; }

@keyframes home-contact-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes home-contact-shine {
  0%, 12% { opacity: 0; transform: translateX(-120%) skewX(-18deg); }
  22% { opacity: .9; }
  66% { opacity: .72; transform: translateX(720%) skewX(-18deg); }
  76%, 100% { opacity: 0; transform: translateX(720%) skewX(-18deg); }
}

#app.home-landing-page .home-landing-contact-button:active,
#app.home-landing-page .home-landing-contact-button:focus-visible { animation: none; }

#app.home-landing-page .home-landing-contact-button:active::after,
#app.home-landing-page .home-landing-contact-button:focus-visible::after { animation: none; opacity: 0; }

@media (hover: hover) {
  #app.home-landing-page .home-landing-contact-button:hover { animation: none; }
  #app.home-landing-page .home-landing-contact-button:hover::after { animation: none; opacity: 0; }}

@media (prefers-reduced-motion: reduce) {
  #app.home-landing-page .home-landing-contact-button { animation: none; }
  #app.home-landing-page .home-landing-contact-button::after { animation: none; opacity: 0; }}

@media (prefers-reduced-motion: reduce) { .home-landing-hero-play-surface { animation: none; } }

@scope (#app:not([data-reference]), #toast) {
  /* 首页失败提示和 toast 的公共适配。 */
  [hidden] {
    display: none !important;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  input,
  select,
  textarea {
    font-family: inherit;
  }

  button,
  a {
    touch-action: manipulation;
  }

  button {
    -webkit-tap-highlight-color: transparent;
  }

  #app {
    overflow: clip;
  }

  #main-content {
    min-width: 0;
  }

  #app[data-page="home"] #main-content {
    display: grid;
    gap: 0.32rem;
  }

  h3 {
    font-size: 0.16rem;
    line-height: 0.22rem;
  }

  p {
    font-size: 0.14rem;
    line-height: 1.6;
  }

  small,
  .muted {
    color: var(--text-tertiary);
    font-size: 0.12rem;
  }

  .tab-header {
    width: 100%;
  }

  #app[data-page="home"] #main-content {
    gap: 0.24rem;
    padding-block: 0.28rem;
  }}

/* 首页模板使用自身布局；预览容器不再叠加间距。 */
#app[data-reference] {
  padding-bottom: 0;
  overflow: visible;
}

[hidden] {
  display: none !important;
}

#toast {
  position: fixed;
  z-index: 300;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  background: rgb(38 38 38 / 95%);
  border: 1px solid var(--white-12);
  padding: 0.12rem 0.2rem;
  border-radius: 0.16rem;
  color: white;
  font-size: 0.14rem;
  backdrop-filter: blur(0.12rem);
}

/* 首页教程入口与客服入口使用同一组 36px 头部图标规范。 */
.home-actions[data-v-fadb5cd4] {
  gap: 4px;
}

.home-actions .top-bar-action[data-v-cd378ee7] {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.home-actions .top-bar-action-icon[data-v-cd378ee7] {
  transform: translateX(4px);
}

/* 教程播放器加载状态；完播复用收回入口的动画。 */
.tutorial-video video[data-v-078fdd41] {
  pointer-events: none;
}

.tutorial-video .tutorial-video-loading[data-v-078fdd41] {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgb(41 83 126 / 28%), transparent 34%),
    #05090e;
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.tutorial-video .tutorial-video-loading.is-hidden[data-v-078fdd41] {
  opacity: 0;
}

.tutorial-video .tutorial-video-spinner[data-v-078fdd41] {
  width: 0.34rem;
  height: 0.34rem;
  border: 0.03rem solid rgb(255 255 255 / 18%);
  border-top-color: #71edba;
  border-radius: 50%;
  box-shadow: 0 0 0.18rem rgb(86 231 182 / 18%);
  animation: tutorial-video-spin 0.8s linear infinite;
}

.tutorial-video .tutorial-video-close[data-v-078fdd41] {
  z-index: 3;
}

@keyframes tutorial-video-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-video .tutorial-video-spinner[data-v-078fdd41] {
    animation: none;
  }}
