/* =========================================================
   global.css · 全局基础样式与区块标题
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--brand-blue); text-decoration: none; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* 区块标题 */
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head .eyebrow {
  display: inline-block;
  font-size: var(--fs-note);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .75rem;
}
.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-bottom: .9rem;
  text-wrap: balance;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.section-head .lead {
  margin-top: .9rem;
  color: var(--text-secondary);
}

/* 带右上角入口的标题行 */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section-head-row .section-head { margin-bottom: 0; }
.link-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  color: var(--brand-primary);
  white-space: nowrap;
}
.link-more .arr { transition: transform var(--ease); }
.link-more:hover .arr { transform: translateX(3px); }

/* 无障碍 */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  /* title-rise 带 fill-mode: both；只缩短时长在后台标签页 / 无帧推进环境里
     会停在首帧 opacity:0。减少动效时直接取消动画，让标题回到默认可见态。 */
  .page-banner h1, .hero-content h1 { animation: none !important; }
}

/* 标题渐次浮现 */
.page-banner h1, .hero-content h1 {
  animation: title-rise .8s cubic-bezier(.2, .6, .2, 1) both;
}
@keyframes title-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
