/* 全站复用块：站头 / Hero / CTA / 页脚 / 子页页头 */

/* ---------- 站头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(227, 237, 247, 0.9);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: min(1312px, 100% - 32px);
  margin-inline: auto;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand__name { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
a.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--brand-ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

/* 汉堡：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  place-items: center;
  color: var(--text);
}
.nav-toggle:hover { background: var(--brand-surface); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1080px) {
  .nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-6) var(--sp-5);
    background: #fff;
    box-shadow: 0 20px 40px -24px rgba(22, 36, 61, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-toggle { display: grid; }
  .header-cta .btn--sm { padding: 9px 16px; font-size: var(--fs-xs); }
}

@media (max-width: 620px) {
  .site-header__inner { padding-block: 10px; gap: var(--sp-3); }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 18px; }
  .header-cta .btn svg { display: none; }
}

/* ---------- Hero（左右结构） ---------- */
.hero {
  background: linear-gradient(150deg, #eef6ff 0%, #dceeff 55%, #f2faff 100%);
  padding-block: 96px;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  width: min(1248px, 100% - 48px);
  margin-inline: auto;
}
/* 左列吃剩余宽度，必须显式左对齐：flex 默认 stretch 会把填充元素拉成整条 */
.hero__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero__title { font-size: var(--fs-hero); }
.hero__lead { font-size: 18px; color: var(--text-body); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__platforms { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* 右列吃定宽：580 = 截图宽，吉祥物从右上角探出 */
.hero__wall { flex: 0 0 580px; position: relative; }
.hero__shot {
  width: 100%;
  aspect-ratio: 580 / 387;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 48px -8px rgba(46, 89, 153, 0.25);
}
.hero__mascot {
  position: absolute;
  top: -30px;
  right: -36px;
  width: 150px;
  height: 167px;
  object-fit: cover;
  object-position: center 35%;
  filter: drop-shadow(0 8px 16px rgba(46, 89, 153, 0.18));
}

@media (max-width: 1200px) {
  .hero { padding-block: 64px; }
  .hero__inner { flex-direction: column; align-items: center; gap: var(--sp-8); }
  .hero__body { align-items: center; text-align: center; }
  .hero__lead { max-width: 620px; }
  .hero__wall { flex-basis: auto; width: 100%; max-width: 580px; }
  .hero__mascot { width: 120px; height: 134px; top: -20px; right: -12px; }
}

@media (max-width: 620px) {
  .hero { padding-block: var(--sp-8); }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__platforms { justify-content: center; }
  .hero__mascot { width: 90px; height: 100px; top: -14px; right: -4px; }
}

/* ---------- CTA ---------- */
/* 设计稿是 #66A8F0→#3D7FF2，白副标题只有 2.5:1；整体加深一档保证反白字达标 */
.cta {
  position: relative;
  background-color: #2a63d6; /* 渐变之下必须有实色兜底：不支持渐变的场景与对比度计算都靠它 */
  background-image: linear-gradient(120deg, #2a63d6 0%, #163e8c 100%);
  color: #fff;
  padding-block: 56px;
  overflow: hidden;
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}
.cta__title { font-size: var(--fs-h2); color: #fff; }
.cta__lead { font-size: 18px; color: #eaf2ff; }
.cta__mascot {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 200px;
  height: 222px;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 1080px) {
  .cta__mascot { right: 2%; width: 150px; height: 167px; opacity: 0.95; }
}
@media (max-width: 720px) {
  .cta__mascot { display: none; }
  .cta { padding-block: var(--sp-8); }
  .cta__lead { font-size: var(--fs-body); }
}

/* ---------- 子页页头 ---------- */
.page-hero {
  background: linear-gradient(160deg, #f5faff 0%, #e0f0ff 100%);
  padding-block: 56px;
}
.page-hero__inner { display: flex; flex-direction: column; gap: var(--sp-4); }
.page-hero--center .page-hero__inner { align-items: center; text-align: center; }
.page-hero--left .page-hero__inner { align-items: flex-start; gap: 14px; }
.page-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #5f7797;
  text-transform: uppercase;
}
.page-hero__title { font-size: var(--fs-display); }
.page-hero__lead { font-size: 17px; color: var(--text-body); max-width: 820px; }

/* 关于页：左文 + 右 logo */
.page-hero--split .page-hero__inner { flex-direction: row; align-items: center; gap: 60px; }
.page-hero--split .page-hero__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}
.page-hero__logo {
  flex: 0 0 190px;
  width: 190px;
  height: 190px;
  border-radius: 44px;
  box-shadow: 0 20px 40px -18px rgba(46, 89, 153, 0.45);
}

@media (max-width: 900px) {
  .page-hero--split .page-hero__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
  .page-hero__logo { flex-basis: auto; width: 120px; height: 120px; border-radius: 28px; }
  .page-hero__lead { font-size: var(--fs-body); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-invert);
  padding-block: 56px 28px;
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand__row { display: flex; align-items: center; gap: 12px; }
.footer-brand__row img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand__name { font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand__tag { font-size: var(--fs-sm); color: var(--text-invert-mute); }

.footer-cols { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col__title { font-size: var(--fs-body); font-weight: 600; color: #fff; }
.footer-col a { font-size: var(--fs-sm); color: var(--text-invert-mute); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.site-footer__rule { height: 1px; background: var(--footer-line); border: 0; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--text-invert-mute);
}

@media (max-width: 900px) {
  .site-footer { padding-block: var(--sp-8) var(--sp-6); }
  .site-footer__top { flex-direction: column; gap: var(--sp-7); padding-bottom: var(--sp-6); }
  .footer-cols { gap: var(--sp-8); }
}
@media (max-width: 620px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .footer-cols { gap: var(--sp-7); }
}
