/* ==========================================================================
   blocks.css — 跨页共用的大块：站头 / 移动导航 / 首屏 / 数据条 / 页头 / 收尾 CTA / 页脚
   组件级的 @media 覆盖一律写在本文件内
   ========================================================================== */

/* ── 品牌标记（站头与页脚共用）──────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__mark { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; }
.brand__name { color: var(--text); font-size: var(--fs-11); font-weight: 700; line-height: 1.3; }

/* ── 站头 ───────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  min-height: 76px;
}

.nav { display: flex; align-items: center; gap: var(--sp-7); }
.nav__link {
  color: var(--text-body);
  font-size: var(--fs-6);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); text-decoration: none; }
.nav__link[aria-current],
.nav__link--section { color: var(--ink); font-weight: 600; }

/* 汉堡按钮：默认隐藏，只在断点下出现 */
.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--band);
    box-shadow: 0 18px 40px rgba(11, 11, 20, .30);
  }
  .nav.is-open { display: flex; }
  /* 竖向面板里，桌面那套「整条变紫」不再清晰，改成左侧色条 */
  .nav__link {
    padding: 13px 16px;
    font-size: var(--fs-8);
    border-bottom: 1px solid var(--line);
  }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link[aria-current],
  .nav__link--section { box-shadow: inset 3px 0 0 var(--mark); }
}
@media (max-width: 560px) {
  .site-header__inner { gap: var(--sp-3); min-height: 68px; }
  .site-header__cta { padding: 0 14px; font-size: var(--fs-4); }
}

/* ── 首屏（首页）────────────────────────────────────────────────────── */
.hero {
  background-color: #08080F;                    /* 兜底：护栏合成背景时用得到 */
  background-image:
    linear-gradient(180deg, rgba(8, 8, 15, .48) 0%, rgba(8, 8, 15, .84) 64%, #08080F 100%),
    url("../img/hero-aurora.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-9);
  padding-block: var(--sp-10) var(--sp-11);
}
.hero__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
}
.hero__title { font-size: var(--fs-22); line-height: 1.31; }
.hero__sub { font-size: var(--fs-9); line-height: 1.8; color: var(--text-body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { color: var(--text-soft); font-size: var(--fs-2); font-weight: 500; }

.hero__shots { flex: 0 0 auto; display: flex; align-items: center; }
.hero__shots .media:first-child {
  flex: 0 0 200px;
  width: 200px;
  transform: translateY(18px);
}
.hero__shots .media:last-child {
  flex: 0 0 260px;
  width: 260px;
  margin-left: -56px;
  box-shadow: 0 34px 64px -22px rgba(0, 0, 0, .78);
}

@media (max-width: 1100px) {
  .hero__inner { flex-direction: column; align-items: center; gap: var(--sp-8); }
  .hero__body { align-items: center; text-align: center; max-width: var(--w-prose); }
  .hero__shots { transform: none; }
}
@media (max-width: 560px) {
  /* 小屏只留一台，避免两台挤成一条 */
  .hero__shots .media:first-child { display: none; }
  .hero__shots .media:last-child { flex: 0 0 200px; width: 200px; margin-left: 0; }
}

/* ── 数据条 ─────────────────────────────────────────────────────────── */
.data-bar { background: var(--band); }
.data-bar__inner { padding-block: 34px; }
.data-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.data-bar__value {
  display: block;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}
.data-bar__value--accent { color: var(--accent); }
.data-bar__label {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  color: var(--text-soft);
  font-size: var(--fs-3);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .data-bar__inner { padding-block: var(--sp-6); }
  .data-bar__value { font-size: 24px; }
  .data-bar__label { font-size: var(--fs-2); }
}
@media (max-width: 520px) {
  .data-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); }
}

/* ── 页头（内页统一）────────────────────────────────────────────────── */
.page-hero { background: var(--band); }
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: var(--sp-11) 44px;
}
.page-hero--tall .page-hero__inner { padding-block: var(--sp-11) 52px; }
.page-hero--center .page-hero__inner { align-items: center; text-align: center; }
.page-hero__title { font-size: var(--fs-21); line-height: 1.3; }
.page-hero__lead { font-size: var(--fs-8); line-height: 1.8; color: var(--text-body); }
.page-hero--center .page-hero__lead { max-width: var(--w-prose); }
.page-hero__meta { color: var(--text-soft); font-size: var(--fs-2); }

/* 面包屑 */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-soft);
  font-size: var(--fs-2);
}
.crumb a { color: var(--text-body); }
.crumb__sep { color: var(--text-soft); }

/* ── 收尾 CTA ───────────────────────────────────────────────────────── */
.cta-bar { padding-block: var(--sp-5) var(--sp-13); }
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-10);
  border-radius: var(--r-4xl);
  background-color: #0C1017;                    /* 兜底不透明底色 */
  background-image: linear-gradient(135deg, #241C4A 0%, #0F2A44 100%);
  text-align: center;
}
.cta-card__title { font-size: var(--fs-17); line-height: 1.34; }
.cta-card__sub { color: var(--text-body); font-size: var(--fs-7); line-height: 1.8; }
.cta-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.simple-cta { padding-block: var(--sp-5) var(--sp-13); text-align: center; }
.simple-cta__title { font-size: var(--fs-13); line-height: 1.45; }
.simple-cta__actions { display: flex; justify-content: center; margin-top: var(--sp-6); }

@media (max-width: 768px) {
  .cta-card { padding: var(--sp-8) var(--sp-6); border-radius: var(--r-3xl); }
}

/* ── 页脚：永远深色，所以在这里把语义色就地重映射 ─────────────────── */
.site-footer {
  --band: #0E0E1A;
  --surface: #16162A;
  --line: #22222E;
  --text: #F4F4F8;
  --text-body: #8E8EA6;
  --text-soft: #8484A0;      /* 原设计 #5F5F72 在 #0E0E1A 上只有 3.07:1，已提到 AA */
  --ink: #9D8CFF;
  background: #0E0E1A;
  color: var(--text-body);
  padding-block: 60px;
  font-size: var(--fs-3);
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-9);
  flex-wrap: wrap;
}
.site-footer__brand {
  flex: 0 1 330px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.site-footer .brand__mark { flex-basis: 28px; width: 28px; height: 28px; }
.site-footer .brand__name { font-size: var(--fs-10); }
.site-footer__desc { font-size: var(--fs-3); line-height: 1.72; }
.site-footer__note { color: var(--text-soft); font-size: var(--fs-1); line-height: 1.7; }

.site-footer__cols { display: flex; flex-wrap: wrap; gap: 68px; }
.site-footer__col { display: flex; flex-direction: column; gap: var(--sp-4); }
.site-footer__col--product { width: 118px; }
.site-footer__col--guide { width: 130px; }
.site-footer__col--about { width: 110px; }
.site-footer__col-title { color: var(--ink); font-size: var(--fs-1); }
.site-footer__link { color: var(--text-body); font-size: var(--fs-4); line-height: 2; }
.site-footer__link:hover { color: var(--text); }

.site-footer__bar {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--text-soft);
  font-size: var(--fs-1);
}

@media (max-width: 900px) {
  .site-footer__cols { gap: var(--sp-8); }
}
@media (max-width: 640px) {
  .site-footer { padding-block: var(--sp-9); }
  .site-footer__top { gap: var(--sp-8); }
  .site-footer__brand { flex: 1 1 100%; }
  .site-footer__col--product,
  .site-footer__col--guide,
  .site-footer__col--about { width: calc(50% - var(--sp-4)); }
}
