/* 全局区块：站头 / Hero / 数据条 / 页头 / 尾部 CTA / 站尾 */

/* ---------- 站头 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-block-end: 1px solid var(--line);
}

/* 三栏网格而不是 space-between：两翼宽度不等时导航仍居中于页面 */
.hd__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-6);
  height: 76px;
}

.hd__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  justify-self: start;
}

.hd__logo {
  width: 34px;
  height: 34px;
}

.hd__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hd__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

/* 中文名下面那行小字：英文名，只作识别，不抢视觉 */
.hd__sub {
  font-size: var(--fs-3xs);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hd__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.hd__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hd__link:hover {
  color: var(--brand);
}

.hd__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.hd__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.hd__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}

.hd__toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  /* 导航收进抽屉后只剩两栏，否则右侧按钮会落在中间列 */
  .hd__inner {
    grid-template-columns: 1fr auto;
  }

  .hd__nav {
    display: none;
  }

  .hd__toggle {
    display: grid;
  }

  .hd.is-open .hd__nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--container-x) var(--sp-5);
    background: #fff;
    border-block-end: 1px solid var(--line);
    box-shadow: 0 18px 24px -18px rgba(16, 24, 40, 0.28);
  }

  .hd.is-open .hd__link {
    padding-block: var(--sp-3);
    border-block-end: 1px solid var(--line-soft);
    font-size: var(--fs-body);
  }
}

/* ---------- Hero：截图背景墙 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 720px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero__wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 定宽长条居中：视口再宽，构图也不散 */
.hero__strip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  width: 1580px;
  height: 100%;
  transform: translateX(-50%);
}

.hero__shot {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  filter: blur(7px);
}

.hero__shot img {
  width: 100%;
  height: auto;
  filter: grayscale(0.86) brightness(0.98) contrast(1.02);
}

/* 五张截图：拱形错落，左右各溢出 130px */
.hero__shot--a {
  inset-inline-start: -130px;
  inset-block-start: 130px;
  width: 300px;
  transform: rotate(-10deg);
  opacity: 0.62;
}

.hero__shot--b {
  inset-inline-start: 190px;
  inset-block-start: 70px;
  width: 320px;
  transform: rotate(-5deg);
  opacity: 0.7;
}

.hero__shot--c {
  inset-inline-start: 530px;
  inset-block-start: 20px;
  width: 380px;
  border-radius: 20px;
  opacity: 0.8;
}

.hero__shot--d {
  inset-inline-start: 930px;
  inset-block-start: 70px;
  width: 320px;
  transform: rotate(5deg);
  opacity: 0.7;
}

.hero__shot--e {
  inset-inline-start: 1270px;
  inset-block-start: 130px;
  width: 300px;
  transform: rotate(10deg);
  opacity: 0.62;
}

/* 遮罩：中心干净让文案读得清，两侧露出界面 */
.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    62% 46% at 50% 46%,
    rgba(249, 250, 252, 0.93) 0%,
    rgba(249, 250, 252, 0.86) 44%,
    rgba(249, 250, 252, 0.42) 74%,
    rgba(249, 250, 252, 0.04) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 1040px;
  padding-inline: var(--container-x);
  text-align: center;
}

.hero__badge {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 580px;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: #454d5b;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-1);
}

.hero__trust {
  font-size: var(--fs-2xs);
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 1200px) {
  .hero__shot--a,
  .hero__shot--e {
    display: none;
  }

  .hero__shot--b {
    inset-inline-start: 40px;
  }

  .hero__shot--d {
    inset-inline-start: auto;
    inset-inline-end: 40px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: 620px;
  }

  .hero__shot--b,
  .hero__shot--d {
    display: none;
  }

  .hero__shot--c {
    inset-inline-start: 50%;
    width: 420px;
    transform: translateX(-50%);
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  .hd__name {
    font-size: 16px;
  }

  .hero {
    height: auto;
    padding-block: 48px 40px;
  }

  .hero__shot--c {
    width: 300px;
    opacity: 0.34;
  }

  .hero__inner {
    gap: 16px;
  }

  .hero__cta {
    width: 100%;
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* ---------- 数据条 ---------- */
.data-bar-wrap {
  background: #fff;
  border-block-end: 1px solid var(--line-soft);
}

.data-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding-block: var(--sp-9);
  background: #fff;
}

.data-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.data-bar__item + .data-bar__item {
  border-inline-start: 1px solid var(--line);
}

.data-bar__num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.data-bar__label {
  font-size: var(--fs-2xs);
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .data-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) 0;
    padding-block: var(--sp-7);
  }

  .data-bar__item:nth-child(3) {
    border-inline-start: 0;
  }

  .data-bar__num {
    font-size: 24px;
  }
}

/* ---------- 页头（内页通用） ---------- */
.page-head {
  padding-block: 60px 56px;
  background: var(--bg-soft);
  border-block-end: 1px solid var(--line);
}

.page-head__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.page-head__title {
  font-size: var(--fs-h1);
  letter-spacing: -0.02em;
}

.page-head__text {
  max-width: 700px;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

/* 页头横排（更新日志：左文案 + 右按钮） */
.page-head--row .page-head__inner {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-7);
}

@media (max-width: 900px) {
  .page-head {
    padding-block: 40px;
  }

  .page-head--row .page-head__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 尾部 CTA ---------- */
.cta {
  padding-block: 84px;
  background: var(--dark);
  color: #fff;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
}

.cta__title {
  font-size: 34px;
  color: #fff;
}

.cta__text {
  font-size: var(--fs-sm);
  color: var(--ink-invert-body);
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.cta__card {
  flex: 0 0 auto;
  width: 340px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--dark-card);
  box-shadow: inset 0 0 0 1px var(--dark-line);
}

.cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 13px;
  font-size: var(--fs-2xs);
}

.cta__row dt {
  color: var(--ink-invert-muted);
}

.cta__row dd {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .cta {
    padding-block: 56px;
  }

  .cta__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-7);
  }

  .cta__card {
    width: 100%;
  }

  .cta__title {
    font-size: var(--fs-h4);
  }
}

/* ---------- 站尾 ---------- */
.ft {
  padding-block: 64px 36px;
  background: var(--dark);
  color: var(--ink-invert);
}

.ft__top {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 80px;
  align-items: flex-start;
}

.ft__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 380px;
}

.ft__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: #fff;
}

.ft__logo img {
  width: 28px;
  height: 28px;
}

.ft__desc {
  font-size: var(--fs-2xs);
  color: var(--ink-invert-muted);
}

.ft__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.ft__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft__head {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: #fff;
}

.ft__link {
  font-size: var(--fs-2xs);
  color: var(--ink-invert-muted);
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}

.ft__link:hover {
  color: #fff;
}

.ft__divider {
  height: 1px;
  margin-block: var(--sp-8);
  background: var(--dark-line-2);
}

.ft__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-3xs);
  color: var(--ink-invert-muted);
}

@media (max-width: 900px) {
  .ft__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }

  .ft__cols {
    gap: var(--sp-6);
  }
}

@media (max-width: 560px) {
  .ft__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) 24px;
  }
}
