/* 首页数据、With系统视频与用户价值、合伙人招募及底部号召。 */
:root {
  --tint: #f2f6ff;
  --shadow-card: 0 3px 8px 0 rgb(9 10 11 / 8%);
}

.home-stats {
  padding: 36px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.home-stats__grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-stats__item {
  display: flex;
  padding: 4px 16px;
  flex-direction: column-reverse;
  text-align: center;
}

.home-stats__item + .home-stats__item {
  border-left: 1px solid var(--line);
}

.home-stats__item dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-stats__item dd {
  margin: 0 0 4px;
  color: var(--brand-strong);
  font-family: "DingTalk JinBuTi", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.stories__sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.platform-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.platform-overview__content {
  min-width: 0;
  padding: 64px clamp(32px, 4vw, 64px) 64px 56px;
}

.platform-overview__content .section-heading {
  margin-bottom: 32px;
  text-align: left;
}

.platform-overview__content h2 {
  text-wrap: balance;
}

@media (min-width: 1180px) {
  .platform-overview__content h2 {
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(24px, 1.8vw, 30px);
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  .platform-overview__content {
    padding-right: 112px;
  }

  .platform-overview__content h2 {
    white-space: normal;
    text-wrap: balance;
  }
}

.story-video {
  display: grid;
  min-width: 0;
  min-height: 560px;
  margin: 0;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.story-video__frame {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  background: var(--surface);
}

.story-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.story-video video:fullscreen {
  object-fit: contain;
  background: #000;
}

.story-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(64px, 10vw, 104px);
  height: clamp(64px, 10vw, 104px);
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 50%;
  box-shadow: inset 0 1px 16px rgb(255 255 255 / 18%), 0 8px 32px rgb(0 40 150 / 18%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.story-video__play svg {
  width: clamp(28px, 4vw, 40px);
  height: clamp(28px, 4vw, 40px);
}

.story-video__play[hidden],
.story-video__status[hidden] {
  display: none;
}

.story-video__play:hover {
  background: rgb(255 255 255 / 30%);
}

.story-video__play:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 5px;
}

.story-video__status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 10px 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  border-radius: var(--radius-card);
  font-size: 14px;
  text-align: center;
}

.stories {
  min-height: 0;
  padding: 0;
}

.home-how__grid {
  display: grid;
  min-width: 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.home-how__card {
  display: grid;
  margin-inline: -14px;
  padding: 22px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: baseline;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.home-how__card:hover,
.home-how__card:focus-visible {
  background: var(--tint);
}

.home-how__card:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 4px;
}

.home-how__card:first-child {
  padding-top: 0;
}

.home-how__card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-how__card-heading {
  display: flex;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-items: baseline;
  gap: 14px;
}

.home-how__card:hover h3,
.home-how__card:focus-visible h3 {
  color: var(--brand-strong);
}

.home-how__card small {
  flex-shrink: 0;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.home-how__card h3 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
  transition: color 180ms ease;
}

.home-how__card p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-wrap: pretty;
}

.home-how__card-action {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.home-how__card-action > span {
  font-size: 18px;
  line-height: 1;
}

.developer-plan {
  min-height: 0;
  background: var(--surface);
}

.developer-plan .developer-banner {
  min-height: 0;
  padding: 40px 48px;
  align-items: center;
}

.developer-plan .developer-banner__actions {
  margin-top: 0;
}

.partner-roles-map {
  min-height: 540px;
  margin-top: 32px;
}

.partner-roles-map > img {
  top: 50%;
  width: 540px;
  height: auto;
  max-width: 48%;
  mix-blend-mode: normal;
}

.partner-roles-map .support-point h3 {
  margin-bottom: 0;
}

.partner-roles-map .partner-role__reward {
  display: flex;
  min-height: 72px;
  margin: 8px 0 10px;
  align-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.partner-role__reward strong {
  color: var(--brand-strong);
  font-family: "DingTalk JinBuTi", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.partner-role__reward span {
  flex-basis: 100%;
  font-size: 12px;
}

.partner-role__reward .partner-role__cash-label {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 6px;
  color: #966210;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.partner-role__reward .partner-role__cash-art {
  position: relative;
  display: block;
  width: 56px;
  height: 40px;
  margin-left: auto;
  flex: 0 0 56px;
  isolation: isolate;
  pointer-events: none;
}

.partner-role__cash-coins {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.partner-role__cash-canvas {
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: 0;
  display: block;
  pointer-events: none;
}

.partner-role__reward .partner-role__reward-label {
  font-size: 30px;
  line-height: 1.6;
}

.partner-roles-summary {
  text-align: center;
}

.partner-roles-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.partner-roles-summary p + p {
  margin-top: 8px;
  font-size: 12px;
}

.partner-join {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.partner-join__title {
  margin: 0 0 28px;
  font-family: "DingTalk JinBuTi", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 25px;
  line-height: 1.3;
  text-align: center;
}

.partner-join__intro {
  max-width: 760px;
  margin: -12px auto 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.developer-plan .developer-steps {
  margin: 0;
}

.partner-join__actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.partner-join__actions .text-link {
  margin: 0;
}

.partner-join__learning {
  display: flex;
  margin: 20px 0 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.partner-join__learning a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand-strong);
  text-underline-offset: 4px;
}

.partner-join__learning a:hover,
.partner-join__learning a:focus-visible {
  text-decoration: underline;
}

.developer-banner__link {
  color: rgb(255 255 255 / 88%);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-banner__link:hover,
.developer-banner__link:focus-visible {
  color: var(--surface);
}

.developer-cta__actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.developer-cta .developer-cta__actions .button {
  margin-top: 0;
  min-width: 180px;
}

/* 首页背景：白色介绍、浅灰行业、白色合作、浅蓝洞察、浅蓝波纹行动入口。 */
#industries {
  background: #f6f8fb;
}

#resources[data-section-art] {
  --section-art-color: #f3f7fd;
  --section-art-height: clamp(260px, 24vw, 340px);
  border-top: 0;
}

#resources[data-section-art]::before {
  opacity: 0.58;
}

#developer-cta {
  color: var(--ink);
  background: #f5f9ff url("./assets/growth-cta.jpeg") center / cover no-repeat;
}

#developer-cta .button--light {
  border: 1px solid #cbd8eb;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .platform-overview {
    grid-template-columns: 1fr;
  }

  .platform-overview__content {
    width: min(calc(100% - 48px), 800px);
    margin-inline: auto;
    padding: 40px 0 56px;
  }

  .story-video {
    width: 100%;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 1179px) {
  .partner-roles-map {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .partner-roles-map .support-point {
    position: static;
    width: auto;
  }

  .partner-roles-map .support-point::after {
    display: none;
  }

  .partner-roles-map > img {
    position: static;
    width: min(100%, 360px);
    max-width: none;
    margin-inline: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    transform: none;
  }

  .partner-roles-map .support-point--bottom-left,
  .partner-roles-map .support-point--bottom-right {
    grid-column: auto;
    grid-row: 3;
  }

  .partner-roles-summary {
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  #developer-cta { background-position: 75% center; }
  .home-stats {
    padding: 24px 0;
  }

  .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .home-stats__item + .home-stats__item {
    border-left: 0;
  }

  .home-stats__item:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .home-stats__item dd {
    font-size: 24px;
  }

  .platform-overview__content {
    padding: 32px 0 48px;
  }

  .home-how__card {
    padding: 20px 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-how__card-action {
    margin-top: 10px;
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }

  .home-how__card-heading {
    gap: 10px;
  }

  .home-how__card h3 {
    font-size: 17px;
  }

  .developer-plan .developer-banner {
    padding: 32px 25px;
    align-items: flex-start;
  }

  .developer-plan .developer-banner__actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .partner-roles-map {
    margin-top: 36px;
    gap: 24px 16px;
  }

  .partner-role__reward strong {
    font-size: clamp(22px, 6.7vw, 30px);
  }

  .partner-roles-map .partner-role__reward {
    min-height: 60px;
  }

  .partner-role__reward .partner-role__cash-label {
    font-size: 14px;
  }

  .partner-role__reward .partner-role__cash-art {
    width: 44px;
    height: 32px;
    flex-basis: 44px;
  }

  .partner-role__reward .partner-role__reward-label {
    font-size: 26px;
  }

  .partner-join {
    margin-top: 32px;
    padding-top: 32px;
  }

  .developer-cta__actions .button {
    width: 100%;
  }
}

/* GSAP 入场期间暂停卡片自带的 transform 过渡，避免与逐帧位移互相拖拽 */
.is-revealing > * {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .partner-role__cash-canvas {
    display: none;
  }
}
