/* ============================================================
   裕宸安全 · 基础层
   字体加载、重置、排版骨架、焦点与降级动效
   ============================================================ */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-n);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- 排版骨架 ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: var(--fw-h);
}

.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  font-weight: var(--fw-h);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.18;
  letter-spacing: var(--tr-heading);
  font-weight: var(--fw-h);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: var(--fw-b);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: var(--fw-n);
}

.body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}

.small {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* 标签：字距拉开的小写标签，全站统一 */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  font-weight: var(--fw-b);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--brand);
}

.label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.label--inv {
  color: var(--brand-bright);
}

.label--muted {
  color: var(--ink-3);
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--s9) 0;
  position: relative;
}

.section--tight {
  padding: var(--s8) 0;
}

.section-head {
  max-width: 680px;
}

.section-head .h2 {
  margin-top: 18px;
}

.section-head .lead {
  margin-top: 16px;
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 内容默认完全可见。入场动画由 JS 用 Web Animations API 叠加，
   动画未执行或不被支持时，页面依然完整可读——这是本项目的硬约束。 */

@media (max-width: 1023px) {
  .wrap {
    padding: 0 28px;
  }
}

@media (max-width: 767px) {
  .wrap {
    padding: 0 20px;
  }

  .section {
    padding: var(--s8) 0;
  }
}
