/* 标题专用字体：只含标题实际用字，326 字，75KB */
@font-face {
  font-family: "Yalong Display";
  src: url("../fonts/yalong-display.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

/* ============================================================
   基础层：重置、排版、版心、按钮、入场
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--w-reg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(45, 212, 191, 0.28);
}

/* ---- 版心 ---- */
.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- 标题与正文 ---- */
.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--w-bold);
  line-height: 1.14;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--w-bold);
  line-height: 1.16;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--w-semi);
  line-height: 1.34;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--text-2);
  text-wrap: pretty;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--w-semi);
  letter-spacing: 0.1em;
  color: var(--mint);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: var(--w-med);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur),
    border-color var(--dur), box-shadow var(--dur);
}

.btn--mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.btn--mint:hover {
  background: color-mix(in srgb, var(--mint) 88%, #ffffff);
  transform: translateY(-2px);
  box-shadow: var(--sh-mint);
}

.btn--ghost {
  background: var(--card-soft);
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn--ghost:hover {
  background: var(--card);
  transform: translateY(-2px);
}

.btn--sm {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- 标签 / 徽标 ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 6px 15px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: var(--fs-xs);
  color: var(--mint-soft);
  line-height: 1.5;
}

.badge i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--card-soft);
  border: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--text-2);
}

/* ---- 区块 ---- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding-top: clamp(40px, 4vw, 64px);
}

.section__head {
  max-width: 820px;
  margin-bottom: clamp(40px, 4vw, 56px);
}

.section__head .h2 {
  margin: 16px 0 18px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-h: 50px;
  }

  .btn {
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
  }
}

/* 窄屏：徽标改为说明条，避免胶囊被折成两行 */
@media (max-width: 640px) {
  .badge {
    display: flex;
    align-items: flex-start;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 11.5px;
    line-height: 1.6;
  }

  .badge i {
    margin-top: 6px;
  }
}

/* 窄屏：徽标改为说明条，避免胶囊被折成两行 */
@media (max-width: 640px) {
  .badge {
    display: flex;
    align-items: flex-start;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 11.5px;
    line-height: 1.6;
  }

  .badge i {
    margin-top: 6px;
  }
}

/* 不折行的短片段（电话号码、拉丁词） */
.nw {
  white-space: nowrap;
}
