/* ============================================================
   blocks.css — 站头 / Hero / 数据条 / 图墙 / 行动区 / 页头 / 下载卡 / 页脚
   ============================================================ */

/* ------------------------------------------------------------
   站头
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand__ver {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline: auto;
}

.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.16s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--brand-ink);
  font-weight: 700;
}

.nav__cta {
  margin-left: 40px;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: var(--r-chip);
  color: var(--text);
  place-items: center;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

/* 菜单 / 关闭图标按 aria-expanded 切换 */
.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;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  background-color: var(--dark-4);
  background-image: linear-gradient(178deg, #17171c 0%, #101014 46%, #0a0a0d 100%);
  padding-top: 64px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-block: 24px 56px;
}

.hero__text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--text-invert);
}

.hero__title em {
  font-style: normal;
  color: var(--brand-mark);
}

.hero__lead {
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-invert-mute);
  text-wrap: pretty;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-invert-soft);
}

.hero__meta span + span::before {
  content: "·";
  margin-inline: 10px;
  color: rgba(255, 255, 255, 0.28);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero__date {
  font-size: 12px;
  color: var(--text-invert-soft);
}

/* --- 手机展示 --- */
.phone-stage {
  position: relative;
  flex: 0 0 auto;
  width: 400px;
  height: 628px;
}

/* 光晕限制在 stage 内，用 inset 而不是固定宽高，避免撑出横向滚动 */
.phone-stage__glow {
  position: absolute;
  inset: 26px 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, 0.38), rgba(255, 107, 44, 0) 78%);
  filter: blur(46px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 300px;
  height: 602px;
  padding: 9px;
  border-radius: 46px;
  background: #1b1b22;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--dark-4);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__phone {
  position: absolute;
  left: 50px;
  top: 12px;
}

/* --- 手机上的浮层卡 --- */
.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 26px -4px rgba(0, 0, 0, 0.28);
}

.float-card--light {
  left: 0;
  top: 120px;
  width: 180px;
  background: #fff;
  color: var(--text);
  gap: 8px;
}

.float-card--dark {
  right: 52px;
  bottom: 82px;
  width: 168px;
  background: var(--text);
  color: #fff;
}

.float-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.float-card__head svg {
  width: 17px;
  height: 17px;
  color: var(--brand-mark);
  flex: 0 0 auto;
}

.float-card__value {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.float-card__label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-invert-soft);
}

.float-card__state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.float-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46d17e;
}

/* --- 白面板上沿：从 hero 底部盖上来 --- */
.hero__cap {
  height: 56px;
  border-radius: 36px 36px 0 0;
  background: var(--surface);
}

/* ------------------------------------------------------------
   数据条
   ------------------------------------------------------------ */
.data-bar {
  display: flex;
  align-items: stretch;
  padding-block: 36px 16px;
}

.data-bar__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.data-bar__num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}

.data-bar__num--mark {
  color: var(--brand);
}

.data-bar__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  max-width: 100%;
}

.data-bar__sep {
  flex: 0 0 1px;
  align-self: center;
  height: 38px;
  background: var(--line-soft);
}

/* ------------------------------------------------------------
   功能卡区
   ------------------------------------------------------------ */
.feature-card {
  position: relative;
  overflow: hidden;
}

/* 卡片右上角露出一小片淡橙圆弧：圆心在卡片外，只留一道弧 */
.feature-card__glow {
  position: absolute;
  right: -62px;
  top: -62px;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: var(--brand-surface);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.feature-card > *:not(.feature-card__glow) {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   截图墙
   ------------------------------------------------------------ */
.shot-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.shot-wall > * {
  flex: 1 1 200px;
  min-width: 0;
}

.shot-item {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.shot-item__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.shot-item__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

.link-arrow:hover {
  color: var(--brand-hover);
}

/* ============================================================
   组件级断点：必须靠近各自的定义，写在同一个文件里
   否则会被后加载的 pages.css 用同优先级规则盖掉
   ============================================================ */

@media (max-width: 1100px) {
  .hero__inner {
    gap: 32px;
  }
  .phone-stage {
    width: 320px;
    height: 560px;
    transform-origin: top right;
  }
  .phone {
    width: 264px;
    height: 530px;
    border-radius: 40px;
  }
  .phone__screen {
    border-radius: 32px;
  }
  .hero__phone {
    left: 26px;
  }
  .hero__cap {
    height: 40px;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 66px;
    gap: 0;
  }
  .brand__ver {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: grid;
  }
  /* 移动导航：默认收起，用 [data-open] 展开 —— 入口永远由 toggle 提供，
     不依赖导航里那个 CTA 按钮是否存在 */
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px -18px rgba(6, 6, 8, 0.18);
    display: none;
  }
  .nav__links[data-open="true"] {
    display: flex;
  }
  .nav__link {
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link:last-child {
    border-bottom: 0;
  }
  .hero {
    padding-top: 34px;
  }
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 8px 40px;
    gap: 40px;
  }
  .phone-stage {
    align-self: center;
    width: 300px;
    height: 620px;
  }
  .phone {
    width: 300px;
    height: 602px;
    border-radius: 46px;
  }
  .phone__screen {
    border-radius: 37px;
  }
  .hero__phone {
    left: 0;
    top: 0;
  }
  .float-card--light {
    left: -30px;
  }
  .float-card--dark {
    left: auto;
    right: -26px;
  }
  .data-bar {
    flex-wrap: wrap;
    row-gap: 26px;
    padding-block: 30px 8px;
  }
  .data-bar__item {
    flex: 1 1 32%;
  }
  .data-bar__sep {
    display: none;
  }
  .shot-wall > * {
    flex: 1 1 156px;
  }
}

@media (max-width: 560px) {
  .phone-stage {
    width: 260px;
    height: 540px;
  }
  .phone {
    width: 260px;
    height: 522px;
    border-radius: 40px;
    padding: 7px;
  }
  .phone__screen {
    border-radius: 33px;
  }
  .float-card--light {
    width: 140px;
    left: -20px;
    padding: 10px 12px;
  }
  .float-card--dark {
    width: 140px;
    right: -14px;
    padding: 10px 12px;
  }
  .float-card__value {
    font-size: 16px;
  }
  .data-bar {
    flex-wrap: nowrap;
    padding-block: 26px 2px;
  }
  .data-bar__item {
    flex: 1 1 0;
    gap: 5px;
  }
  .data-bar__num {
    font-size: 21px;
  }
  .data-bar__label {
    font-size: 10.5px;
    line-height: 1.45;
  }
  .hero__lead {
    font-size: 15.5px;
    line-height: 1.85;
  }
  /* 四项压进一行，避免分隔点被挤到行首 */
  .hero__meta {
    font-size: 11.5px;
  }
  .hero__meta span + span::before {
    margin-inline: 8px;
  }
}

