/* ===========================================================
   blocks.css — 页面级区块：站头 / Hero / 页头 / 深色区 / 下载卡 / 页脚
   =========================================================== */

/* ---------------- 站头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.brand__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  display: inline-block;
  padding-block: 4px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__link:hover {
  color: var(--brand-ink);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink);
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle__bar {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) var(--sp-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(30, 24, 48, 0.35);
  }

  .nav[data-open] {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding-block: 14px;
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--line);
  }

  .nav__link[aria-current="page"] {
    color: var(--brand-ink);
  }

  .nav__cta {
    margin-top: var(--sp-4);
    width: 100%;
  }
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 54vw, 780px);
  padding-block: 64px;
  background-color: var(--brand-surface-2);
  background-image: url("../img/hero-anime.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* 左侧柔光遮罩：只为了把插画压成可读的底，不做视觉主体 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.96) 34%,
    rgba(255, 255, 255, 0.82) 52%,
    rgba(255, 255, 255, 0.24) 72%,
    rgba(255, 255, 255, 0) 86%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: var(--w-measure-lg);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

/* H1 内的品牌行：让检索词真实可见，同时不抢主视觉大字 */
.hero__brand {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h5);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--brand-ink);
}

.hero__accent {
  color: var(--brand-ink);
}

.hero__lead {
  max-width: var(--w-measure);
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 2px 4px;
}

.hero__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  /* 竖屏下把插画整体压在底部：文字独占上半屏的纯白，人物完整不被裁 */
  .hero {
    display: block;
    min-height: 0;
    padding-block: 44px calc(56.25vw + 32px);
    background-size: 100% auto;
    background-position: center bottom;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 46%,
      rgba(255, 255, 255, 0.86) 60%,
      rgba(255, 255, 255, 0.28) 84%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero__body {
    gap: var(--sp-4);
  }
}

/* ---------------- 内页页头 ---------------- */
.page-hero {
  padding-block: 80px 56px;
  background: var(--paper);
}

.page-hero__title {
  margin-top: var(--sp-5);
  font-size: var(--fs-h1);
  line-height: 1.26;
  letter-spacing: -0.025em;
}

.page-hero__lead {
  max-width: var(--w-measure-lg);
  margin-top: var(--sp-4);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}

.page-hero__meta {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .page-hero {
    padding-block: 48px 36px;
  }

  .page-hero__lead {
    font-size: var(--fs-body);
  }
}

/* ---------------- 区块标题 ---------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.section-title--sm {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.section-title--invert {
  color: var(--text-invert);
}

.section-lead {
  max-width: var(--w-measure-lg);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}

/* 左标题 + 右侧短段的一排 */
.section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.section-split__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.section-split__aside {
  max-width: var(--w-measure-xs);
  font-size: var(--fs-body);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .section-split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5);
  }
}

/* ---------------- 两栏：图 + 文 ---------------- */
.split__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.split__lead {
  max-width: var(--w-measure);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--text);
}

@media (max-width: 900px) {
  .split__lead {
    margin-inline: auto;
  }

  .split .link-arrow {
    align-self: center;
  }
}

/* ---------------- 播放画面 ---------------- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--sp-7);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #120e1c;
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__tag {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-5);
  padding: 7px 12px;
  border-radius: var(--r-xs);
  background: rgba(18, 14, 28, 0.7);
  color: #d9c9f2;
  font-size: var(--fs-label);
  letter-spacing: 3px;
}

.player__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .player__play {
    width: 60px;
    height: 60px;
  }

  .player__play svg {
    width: 18px;
    height: 21px;
  }

  .player__tag {
    top: var(--sp-4);
    left: var(--sp-4);
    letter-spacing: 2px;
  }
}

/* ---------------- 深色区三栏 ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-7);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 26px;
  border-left: 1px solid var(--line-invert);
}

.pillar__num {
  font-size: var(--fs-label);
  letter-spacing: 3px;
  color: var(--text-invert-mute);
}

.pillar__title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--text-invert);
}

.pillar__text {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-invert-body);
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }
}

/* ---------------- 紫色 CTA 卡 ---------------- */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding: 72px 64px;
  border-radius: var(--r-xl);
  background: var(--brand);
  text-align: center;
}

.cta-card__eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 3px;
  color: #d9c9f2;
}

.cta-card__title {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-invert);
}

.cta-card__text {
  font-size: var(--fs-body);
  color: #d9c9f2;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-2);
}

@media (max-width: 720px) {
  .cta-card {
    padding: var(--sp-7) var(--sp-5);
    gap: var(--sp-4);
  }
}

/* ---------------- 横向 CTA 带 ---------------- */
.cta-band {
  padding-block: var(--sp-8);
  /* 色带的底边不直接贴页脚，留一档白色呼吸 */
  margin-bottom: var(--section-y);
  background: var(--brand-surface-2);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.cta-band__title {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.cta-band__text {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text);
}

@media (max-width: 720px) {
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5);
  }
}

/* ---------------- 居中 CTA ---------------- */
.cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.cta-center__title {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.cta-center__text {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------------- 双机展示带 ----------------
   两个画幅比例差得远（竖屏 vs 16:9），只有顶边对齐才读得出「同一层」；
   高度差留在下方，比上下居中、底边对齐都稳 */
.shot-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* 16:9 画面控制在 540，再放大就是把这帧模糊画面当主视觉 */
.shot__frame {
  display: block;
  width: 540px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: 0 24px 44px -8px rgba(74, 59, 107, 0.24);
}

.shot__frame img {
  width: 100%;
  height: auto;
}

.shot__caption {
  font-size: var(--fs-xs);
  color: var(--text);
}

.shot__note {
  max-width: var(--w-measure);
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-muted);
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 1040px) {
  .shot-band {
    flex-direction: column;
    gap: var(--sp-7);
  }

  .shot__frame {
    width: 100%;
  }
}

/* ---------------- 下载卡 ---------------- */
.dl-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
}

.dl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 34px 40px;
}

.dl-card__ident {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dl-card__icon {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  overflow: hidden;
  flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.dl-card__name {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.dl-card__sub {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.dl-card__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  padding: 26px 40px;
  border-top: 1px solid var(--line);
}

.dl-card__specs dt {
  font-size: var(--fs-label);
  letter-spacing: 2px;
  color: var(--text-muted);
}

.dl-card__specs dd {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.dl-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  background: var(--brand-surface-2);
}

.dl-card__action-title {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
}

.dl-card__action-note {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.dl-card__action-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Android 主按钮与其备用下载成组；iOS 入口在右侧独立成列 */
.dl-card__btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.dl-card__btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 只作用于下载页的 Android 备用链接，不影响 iOS 页同名的次要链接 */
.dl-card__btn-col .dl-card__alt {
  text-align: center;
}

.dl-card__alt {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.dl-card__alt:hover {
  color: var(--brand-ink);
  text-decoration-color: currentColor;
}

@media (max-width: 900px) {
  .dl-card__head,
  .dl-card__action {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-5);
  }

  .dl-card__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--sp-5);
    gap: var(--sp-5) var(--sp-4);
  }

  .dl-card__action .btn {
    width: 100%;
  }

  .dl-card__action-btns {
    width: 100%;
    align-items: stretch;
  }

  .dl-card__btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-card__btn-col {
    width: 100%;
    align-items: stretch;
  }

  .dl-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .dl-card__name {
    font-size: 22px;
  }
}

/* ---------------- 反馈卡 ---------------- */
.feedback-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  border-radius: var(--r-xl);
  background: var(--brand);
}

.feedback-card__title {
  font-size: var(--fs-h4);
  line-height: 1.35;
  color: var(--text-invert);
}

.feedback-card__text {
  margin-top: 12px;
  max-width: var(--w-measure-sm);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #d9c9f2;
}

@media (max-width: 900px) {
  .feedback-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-5);
  }

  .feedback-card .btn {
    width: 100%;
  }
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  padding-block: 80px 44px;
  background: var(--ink-deep);
  color: var(--text-invert-body);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
}

.site-footer__brand {
  max-width: var(--w-measure-xs);
}

.site-footer__mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--paper);
}

.site-footer__name {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-invert);
}

.site-footer__tagline {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer__links {
  display: flex;
  gap: 96px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__col-title {
  font-size: var(--fs-label);
  letter-spacing: 2px;
  color: var(--text-invert-mute);
}

.site-footer__col a {
  font-size: var(--fs-sm);
  color: #d8cfea;
  transition: color 0.2s var(--ease);
}

.site-footer__col a:hover {
  color: var(--text-invert);
}

.site-footer__rule {
  height: 1px;
  margin-block: 52px;
  background: var(--line-invert);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-invert-mute);
}

@media (max-width: 900px) {
  .site-footer {
    padding-block: 56px 36px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: var(--sp-7);
  }

  .site-footer__links {
    gap: var(--sp-8);
  }

  .site-footer__rule {
    margin-block: 36px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--sp-2);
  }
}
