/* ==========================================================================
   blocks.css — 站头 / Hero / 页头 / 数据条 / 截图墙 / 时间线 / 页脚
   注意：页面背景图一律用修饰类内联 url()，不要走 var()——相对路径基准会错
   ========================================================================== */

/* ---------------- 站头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 72px;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 120px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
}

.brand:hover { color: inherit; }

.brand__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--brand);
  overflow: hidden;
}

.brand__icon img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.brand__text {
  color: #fef9e7;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}

.nav__link {
  color: var(--text-invert);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__link:hover { color: var(--text-invert-link); }

.nav__link[aria-current="page"] {
  color: var(--text-invert-link);
  font-weight: 600;
}

.site-header__cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--text-invert);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  padding-block: var(--sp-10);
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 压暗幕：只负责把不同画面收成同一调性 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(46, 31, 14, 0.88) 0%,
    rgba(46, 31, 14, 0.66) 42%,
    rgba(46, 31, 14, 0.96) 100%
  );
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--w-container);
  padding-inline: var(--sp-7);
}

.hero__eyebrow {
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title {
  color: var(--brand-surface);
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(46, 31, 14, 0.55);
}

.hero__lead {
  color: #fffefb;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.7;
  max-width: 820px;
  text-shadow: 0 1px 12px rgba(46, 31, 14, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

/* ---------------- 数据条 ---------------- */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--sp-8);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-inline: var(--sp-8);
}

.stats__num {
  color: var(--text-invert-link);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.stats__label {
  color: var(--text-invert);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.stats__divider {
  width: 1px;
  height: 44px;
  background: rgba(247, 207, 107, 0.4);
}

/* ---------------- 内页页头 ---------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding-block: var(--sp-8);
  background-color: var(--ink);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(46, 31, 14, 0.86) 0%,
    rgba(46, 31, 14, 0.62) 100%
  );
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--sp-7);
}

.page-hero__eyebrow {
  color: var(--text-invert-link);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero__title {
  color: var(--brand-surface);
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(46, 31, 14, 0.5);
}

.page-hero__desc {
  color: var(--text-invert);
  font-size: var(--fs-body);
  line-height: 1.75;
  max-width: 760px;
}

/* ---------------- 截图墙 ---------------- */
.shot {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.shot__img {
  width: 100%;
  aspect-ratio: 745 / 400;
  object-fit: cover;
  background: var(--section);
}

.shot__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 13px 18px;
}

.shot__cap-text {
  color: var(--text-body);
  font-size: var(--fs-meta);
  line-height: 1.5;
}

.shot__cap-day {
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------------- 时间线 ---------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4);
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: var(--sp-4);
  border-top: 2px solid var(--line);
}

.timeline__item--peak { border-top-color: var(--brand); }
.timeline__item--end { border-top-color: var(--accent); }

.timeline__date {
  color: var(--brand-ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.timeline__item--end .timeline__date { color: var(--accent-ink); }

.timeline__event {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  font-weight: 700;
}

.timeline__desc {
  color: var(--text-body);
  font-size: var(--fs-small);
  line-height: 1.75;
}

/* ---------------- 评价 ---------------- */
.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.review__stars {
  color: var(--brand-ink);
  font-size: 16px;
  letter-spacing: 0.12em;
}

.review__text {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.85;
  flex: 1;
}

.review__author {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* ---------------- 底部引导带 ---------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding-block: var(--sp-10);
  overflow: hidden;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(46, 31, 14, 0.62) 0%,
    rgba(46, 31, 14, 0.92) 100%
  );
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--w-container);
  padding-inline: var(--sp-7);
}

.cta-band__title {
  color: var(--brand-surface);
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(46, 31, 14, 0.6);
}

.cta-band__desc {
  color: var(--text-invert);
  font-size: var(--fs-lead);
  line-height: 1.8;
  max-width: 700px;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink-2);
  padding: 64px 0 36px;
}

.site-footer__inner {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--sp-7);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1 1 280px;
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
}

.footer__logo-text {
  color: #fef9e7;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.footer__tagline {
  color: var(--text-invert-mute);
  font-size: var(--fs-meta);
  line-height: 1.8;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 96px;
}

.footer__col-title {
  color: var(--text-invert-link);
  font-size: var(--fs-small);
  font-weight: 700;
}

.footer__link {
  color: var(--text-invert-mute);
  font-size: var(--fs-meta);
  line-height: 1.6;
}

.footer__link:hover { color: var(--text-invert-link); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  box-shadow: inset 0 1px 0 rgba(201, 183, 154, 0.25);
}

.footer__copy {
  color: var(--text-invert-mute);
  font-size: 12px;
  line-height: 1.7;
}

.footer__age {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent-ink);
  color: #fef0f0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------- 组件级断点（必须就地写）---------------- */
@media (max-width: 1280px) {
  .site-header__inner { padding-inline: var(--sp-7); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
    background: var(--ink);
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open .nav__link {
    padding: 12px 4px;
    box-shadow: inset 0 -1px 0 rgba(201, 183, 154, 0.16);
  }
  .nav-toggle { display: flex; }
  .hero { min-height: 560px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
  .footer__top { gap: var(--sp-7); }
}

/* 导航展开时的遮罩：让"停在菜单上"这件事明确，避免下沿把正文切成两半 */
@media (max-width: 1024px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 72px 0 0;
    z-index: 40;
    background: rgba(20, 14, 6, 0.52);
  }
}

@media (max-width: 768px) {
  .site-header__inner { height: 64px; }
  .nav.is-open { top: 64px; }
  body.nav-open::before { inset: 64px 0 0; }
  .hero { min-height: 480px; padding-block: var(--sp-9); }
  .hero__inner { padding-inline: var(--sp-5); }
  .hero__lead { font-size: 16px; }
  .hero__title { letter-spacing: 0.04em; }

  /* 数据条：4 项在窄屏折成 2×2，避免 3+1 的孤儿项与错位分隔线 */
  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) 0;
    margin-top: var(--sp-6);
    width: 100%;
  }
  .stats__item { padding-inline: var(--sp-2); }
  .stats__num { font-size: 24px; }
  .stats__divider { display: none; }
  .page-hero { min-height: 220px; }
  .page-hero__inner { padding-inline: var(--sp-5); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { padding-inline: var(--sp-5); }
  .footer__top { gap: var(--sp-6); }
  .footer__brand { flex-basis: 100%; max-width: none; }
  .review { padding: var(--sp-5); }
  .cta-band { min-height: 340px; padding-block: var(--sp-9); }
  .cta-band__inner { padding-inline: var(--sp-5); }
  .cta-band__title { font-size: 28px; }
}
