@charset "utf-8";
/* ============================================================================
   新航娱乐 · 基础层（base.css）
   复位 / 排版基元 / 间距工具 / 进场动效基线
   ============================================================================ */

@layer base {

  *, *::before, *::after { box-sizing: border-box; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--xh-top-h) + var(--xh-status-h) + 16px);
  }

  body {
    margin: 0;
    background: var(--xh-bone);
    color: var(--xh-ink);
    font-family: var(--xh-sans);
    font-size: 16px;
    line-height: 1.78;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  img, svg, video { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  input, textarea, select { font: inherit; color: inherit; }

  h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  h1 { font-size: clamp(2.15rem, 1.2rem + 3.5vw, 4.1rem); }
  h2 { font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.55rem); }
  h3 { font-size: clamp(1.08rem, 0.98rem + 0.55vw, 1.36rem); line-height: 1.38; letter-spacing: -0.015em; }
  h4 { font-size: 1.02rem; line-height: 1.5; letter-spacing: 0; }

  p { margin: 0 0 1em; }
  p:last-child { margin-bottom: 0; }

  ul, ol { margin: 0; padding: 0; list-style: none; }

  dl, dd { margin: 0; }

  strong, b { font-weight: 700; }

  ::selection { background: var(--xh-lime); color: var(--xh-void); }

  :focus-visible {
    outline: 2px solid var(--xh-cobalt);
    outline-offset: 3px;
  }

  /* ---------- 容器 ---------- */
  .xh-wrap {
    width: min(100% - var(--xh-gutter) * 2, var(--xh-wrap));
    margin-inline: auto;
  }

  .xh-wrap--wide {
    width: min(100% - var(--xh-gutter) * 2, 1460px);
    margin-inline: auto;
  }

  /* ---------- 区块 ---------- */
  .xh-section { position: relative; padding-block: var(--xh-sec); }
  .xh-section--sm { padding-block: var(--xh-sec-sm); }
  .xh-section--void { background: var(--xh-void); color: var(--xh-bone); }
  .xh-section--paper { background: var(--xh-bone-1); }
  .xh-section--edge { border-top: 1px solid var(--xh-line); }

  .xh-section--void p,
  .xh-section--void li { color: rgba(245, 241, 232, 0.76); }

  /* ---------- 文字基元 ---------- */
  .xh-eyebrow,
  .xh-mono {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--xh-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--xh-ink-3);
  }

  .xh-section--void .xh-eyebrow,
  .xh-section--void .xh-mono { color: var(--xh-lime); }

  .xh-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
  }

  .xh-lead {
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
    line-height: 1.9;
    color: var(--xh-ink-2);
    max-width: 56ch;
  }

  .xh-section--void .xh-lead { color: rgba(245, 241, 232, 0.78); }

  .xh-small {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--xh-ink-3);
  }

  .xh-muted { color: var(--xh-ink-3); }
  .xh-lime-txt { color: var(--xh-lime-2); }

  /* ---------- 标题组 ---------- */
  .xh-shead {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--xh-gap-lg);
    align-items: start;
    padding-top: 20px;
    border-top: 1px solid var(--xh-line-2);
    margin-bottom: clamp(30px, 4vw, 56px);
  }

  .xh-section--void .xh-shead { border-color: var(--xh-void-line-2); }

  .xh-shead__no {
    font-family: var(--xh-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--xh-ink-3);
    padding-top: 8px;
  }

  .xh-section--void .xh-shead__no { color: var(--xh-lime); }

  .xh-shead h2 { margin-top: -6px; }

  .xh-shead__desc {
    font-size: 0.94rem;
    line-height: 1.85;
    color: var(--xh-ink-2);
    padding-top: 6px;
  }

  .xh-section--void .xh-shead__desc { color: rgba(245, 241, 232, 0.72); }

  /* ---------- 栅格 ---------- */
  .xh-grid { display: grid; gap: var(--xh-gap); }
  .xh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xh-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xh-grid--2-1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .xh-grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }

  .xh-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 78px);
    align-items: start;
  }

  /* ---------- 分隔线 ---------- */
  .xh-rule { height: 1px; background: var(--xh-line); border: 0; margin: 0; }
  .xh-section--void .xh-rule { background: var(--xh-void-line); }

  /* ---------- 进场动效（无 JS 时内容始终可见） ---------- */
  .xh-js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--xh-slow) var(--xh-ease), transform var(--xh-slow) var(--xh-ease);
  }

  .xh-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* ---------- 可访问性 ---------- */
  .xh-skip {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--xh-lime);
    color: var(--xh-void);
    font-size: 0.86rem;
    transition: top var(--xh-fast);
  }

  .xh-skip:focus { top: 12px; }

  .xh-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .xh-js [data-reveal] { opacity: 1; transform: none; }
  }

  /* ---------- 响应式栅格 ---------- */
  @media (max-width: 1080px) {
    .xh-shead { grid-template-columns: 170px minmax(0, 1fr); }
    .xh-shead__desc { grid-column: 2; padding-top: 0; }
    .xh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xh-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  @media (max-width: 860px) {
    body { font-size: 15.5px; }
    .xh-shead { grid-template-columns: 1fr; gap: 10px; }
    .xh-shead__no { padding-top: 0; }
    .xh-shead__desc { grid-column: auto; }
    .xh-grid--3, .xh-grid--2, .xh-grid--5,
    .xh-grid--2-1, .xh-grid--1-2, .xh-split { grid-template-columns: 1fr; }
    .xh-section--sm { padding-block: var(--xh-sec-sm); }
  }

  @media (max-width: 560px) {
    .xh-grid--4 { grid-template-columns: 1fr; }
  }
}
