/* ============================================================
   亚盈指南 · 共享样式 /assets/site.css
   靛墨长卷 · 悬浮胶囊导航 · 档案卡体系
   ============================================================ */

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

:root {
  --yp-font-cjk: "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --yp-font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --yp-fs-xs: 14px;
  --yp-fs-sm: 16px;
  --yp-fs-md: 20px;
  --yp-fs-lg: 25px;
  --yp-fs-xl: 31px;
  --yp-fs-2xl: 39px;
  --yp-fs-3xl: 49px;

  --yp-ink: #0E1730;
  --yp-indigo: #1C2C5B;
  --yp-night: #080E1C;
  --yp-paper: #F5F3EE;
  --yp-card: #E7E4DC;
  --yp-jade: #2FBF9B;
  --yp-gold: #DFA747;
  --yp-gold-deep: #8A6A16;
  --yp-mist: #6E6AA8;
  --yp-graphite: #2C3242;
  --yp-slate: #A9B0C0;

  --yp-shell: 1240px;
  --yp-ease: cubic-bezier(.22, .61, .36, 1);
  --yp-t: .22s;
}

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

body {
  margin: 0;
  background: var(--yp-paper);
  color: var(--yp-graphite);
  font-family: var(--yp-font-cjk);
  font-size: var(--yp-fs-sm);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--yp-indigo);
}

p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

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

::selection { background: var(--yp-jade); color: var(--yp-night); }

#main-content {
  display: block;
  background: var(--yp-paper);
  scroll-margin-top: 96px;
}

.yp-mono {
  font-family: var(--yp-font-mono);
  font-size: .9em;
  letter-spacing: .04em;
}

/* ---------------- 容器与栅格 ---------------- */
.yp-shell {
  width: 100%;
  max-width: var(--yp-shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.yp-grid { display: grid; gap: 20px; }
.yp-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.yp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yp-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.yp-col-4 { grid-column: span 4; }
.yp-col-5 { grid-column: span 5; }
.yp-col-6 { grid-column: span 6; }
.yp-col-7 { grid-column: span 7; }
.yp-col-8 { grid-column: span 8; }
.yp-col-12 { grid-column: span 12; }
.yp-offset-1 { grid-column-start: 2; }

.yp-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 3.2vw, 44px);
  align-items: start;
}
.yp-split__aside {
  position: sticky;
  top: 104px;
  margin-top: 28px;
}

/* ---------------- 章节 ---------------- */
.yp-section {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
}
.yp-section--paper { background: var(--yp-paper); }
.yp-section--ink { background: var(--yp-ink); color: var(--yp-slate); }
.yp-section--indigo { background: var(--yp-indigo); color: var(--yp-slate); }
.yp-section--mist {
  background: linear-gradient(180deg, rgba(110, 106, 168, .16) 0%, rgba(110, 106, 168, 0) 100%);
}
.yp-section--ink h2, .yp-section--indigo h2 { color: var(--yp-paper); }

.yp-section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3.4vw, 40px); }

.yp-band {
  height: 6px;
  background: linear-gradient(90deg, var(--yp-jade) 0 26%, var(--yp-gold) 26% 40%, var(--yp-mist) 40% 100%);
}

.yp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--yp-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--yp-gold);
}
.yp-eyebrow--deep { color: var(--yp-gold-deep); }

.yp-title {
  font-size: clamp(25px, 3.4vw, 39px);
  font-weight: 900;
  line-height: 1.18;
}
.yp-title--xl { font-size: clamp(31px, 5vw, 49px); }
.yp-title--light { color: var(--yp-paper); }

.yp-lead {
  max-width: 62ch;
  font-size: var(--yp-fs-sm);
  line-height: 1.9;
  color: #4A5266;
}
.yp-lead--light { color: var(--yp-slate); }

/* ---------------- 档案卡 ---------------- */
.yp-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px clamp(18px, 2.2vw, 26px);
  background: var(--yp-paper);
  border: 2px solid var(--yp-night);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(8, 14, 28, .12);
  transition: transform var(--yp-t) var(--yp-ease), box-shadow var(--yp-t) var(--yp-ease);
}
.yp-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(8, 14, 28, .16);
}
.yp-card--flat { box-shadow: none; }
.yp-card--flat:hover { transform: none; box-shadow: none; }
.yp-card--ink {
  background: var(--yp-indigo);
  color: var(--yp-slate);
  border-color: var(--yp-night);
}

.yp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.yp-card__title {
  font-size: var(--yp-fs-md);
  font-weight: 800;
  line-height: 1.35;
  color: var(--yp-indigo);
}
.yp-card--ink .yp-card__title { color: var(--yp-paper); }

.yp-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--yp-font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #6B7284;
}
.yp-card--ink .yp-card__meta { color: var(--yp-slate); }

.yp-card__body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--yp-graphite);
}
.yp-card--ink .yp-card__body { color: var(--yp-slate); }

.yp-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ---------------- 标签 ---------------- */
.yp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1.5px solid var(--yp-night);
  border-radius: 4px;
  background: var(--yp-card);
  color: var(--yp-indigo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.yp-tag--pill { border-radius: 999px; }
.yp-tag--jade { background: var(--yp-jade); color: var(--yp-night); }
.yp-tag--gold { background: var(--yp-gold); color: var(--yp-night); }
.yp-tag--ghost {
  background: transparent;
  border-color: rgba(110, 106, 168, .55);
  color: var(--yp-mist);
}

/* ---------------- 按钮 ---------------- */
.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--yp-night);
  border-radius: 999px;
  background: var(--yp-jade);
  color: var(--yp-night);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background var(--yp-t) var(--yp-ease), color var(--yp-t) var(--yp-ease), transform var(--yp-t) var(--yp-ease);
}
.yp-btn:hover { background: var(--yp-gold); transform: translateY(-2px); }
.yp-btn--gold { background: var(--yp-gold); }
.yp-btn--gold:hover { background: var(--yp-jade); }
.yp-btn--ghost { background: transparent; color: var(--yp-indigo); }
.yp-btn--ghost:hover { background: var(--yp-card); color: var(--yp-indigo); }
.yp-btn--light { background: var(--yp-paper); color: var(--yp-indigo); }
.yp-btn--light:hover { background: var(--yp-jade); color: var(--yp-night); }

/* ---------------- 面包屑 ---------------- */
.yp-breadcrumb { padding: 20px 0 0; }
.yp-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--yp-font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #6B7284;
}
.yp-breadcrumb__item { display: inline-flex; align-items: center; }
.yp-breadcrumb__item::after {
  content: "/";
  margin-left: 10px;
  color: var(--yp-mist);
}
.yp-breadcrumb__item:last-child::after { content: ""; margin: 0; }
.yp-breadcrumb__link { color: var(--yp-gold-deep); }
.yp-breadcrumb__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.yp-breadcrumb__current { color: var(--yp-indigo); font-weight: 700; }

/* ---------------- 长文 ---------------- */
.yp-prose {
  max-width: 72ch;
  font-size: var(--yp-fs-sm);
  line-height: 1.9;
  color: var(--yp-graphite);
}
.yp-prose > * + * { margin-top: 1.1em; }
.yp-prose h2 { font-size: var(--yp-fs-lg); font-weight: 900; line-height: 1.3; }
.yp-prose h3 { font-size: var(--yp-fs-md); font-weight: 800; line-height: 1.35; }
.yp-prose ul { display: grid; gap: .5em; padding-left: 1.2em; }
.yp-prose ul li { position: relative; }
.yp-prose ul li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: .78em;
  width: 8px;
  height: 2px;
  background: var(--yp-gold);
}
.yp-prose a {
  color: var(--yp-gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yp-prose code {
  font-family: var(--yp-font-mono);
  font-size: .9em;
  letter-spacing: .04em;
  padding: 2px 6px;
  background: var(--yp-card);
  border-radius: 4px;
}

/* ---------------- 折叠组 ---------------- */
.yp-fold {
  border: 2px solid var(--yp-night);
  border-radius: 14px;
  background: var(--yp-paper);
  overflow: hidden;
}
.yp-fold + .yp-fold { margin-top: 12px; }
.yp-fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
  color: var(--yp-indigo);
}
.yp-fold__summary::-webkit-details-marker { display: none; }
.yp-fold__summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--yp-font-mono);
  color: var(--yp-gold-deep);
}
.yp-fold[open] .yp-fold__summary::after { content: "－"; }
.yp-fold__body {
  padding: 14px 18px 20px;
  border-top: 1px dashed rgba(110, 106, 168, .45);
  font-size: 15px;
  line-height: 1.85;
  color: var(--yp-graphite);
}

/* ---------------- 图片容器 ---------------- */
.yp-figure {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--yp-night);
  border-radius: 14px;
  background: var(--yp-card);
}
.yp-figure img { width: 100%; height: 100%; object-fit: cover; }
.yp-figure--wide { aspect-ratio: 16 / 9; }
.yp-figure--tall { aspect-ratio: 4 / 5; }
.yp-figure--square { aspect-ratio: 1 / 1; }
.yp-figure--cut { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.yp-figure__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(110, 106, 168, .2) 0 10px, transparent 10px 20px);
  font-family: var(--yp-font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--yp-mist);
}
.yp-figure__caption {
  margin-top: 8px;
  font-family: var(--yp-font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #6B7284;
}

/* ---------------- 滚动显现 ---------------- */
[data-reveal] {
  opacity: .6;
  transform: translateY(10px);
  transition: opacity .26s var(--yp-ease), transform .26s var(--yp-ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-find].is-filtered { display: none !important; }

/* ============================================================
   头部 · 悬浮胶囊导航
   ============================================================ */
.yp-skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--yp-jade);
  color: var(--yp-night);
  font-weight: 800;
  border-radius: 0 0 12px 12px;
  transition: top var(--yp-t) var(--yp-ease);
}
.yp-skip:focus { top: 0; }

.yp-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px clamp(8px, 1.6vw, 18px);
  transition: padding var(--yp-t) var(--yp-ease);
}

.yp-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--yp-shell);
  margin: 0 auto;
  padding: 6px 8px 6px 14px;
  background: var(--yp-indigo);
  border: 2px solid var(--yp-night);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 14, 28, .26);
  transition: padding var(--yp-t) var(--yp-ease), max-width var(--yp-t) var(--yp-ease);
}

.yp-header.is-compact { padding-top: 6px; padding-bottom: 6px; }
.yp-header.is-compact .yp-header__inner { padding: 4px 6px 4px 12px; max-width: 990px; }

/* 进度条 */
.yp-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 1px;
  height: 2px;
  border-radius: 99px;
  background: rgba(169, 176, 192, .18);
  overflow: hidden;
}
.yp-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yp-jade), var(--yp-gold));
  transition: width .12s linear;
}

/* 品牌胶囊 */
.yp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding-right: 14px;
}
.yp-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--yp-jade);
  color: var(--yp-night);
  border: 2px solid var(--yp-night);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.yp-brand__stack { display: flex; flex-direction: column; line-height: 1.15; }
.yp-brand__name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--yp-paper);
}
.yp-brand__meta {
  font-family: var(--yp-font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--yp-slate);
}

/* 栏目胶囊 */
.yp-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.yp-nav__list { display: flex; align-items: center; justify-content: center; gap: 4px; }
.yp-nav__item { display: flex; }
.yp-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #C9D2E8;
  transition: background var(--yp-t) var(--yp-ease), color var(--yp-t) var(--yp-ease);
}
.yp-nav__link:hover { background: rgba(245, 243, 238, .12); color: var(--yp-paper); }
.yp-nav__link[aria-current="page"] {
  background: var(--yp-jade);
  color: var(--yp-night);
  font-weight: 800;
}

/* 工具区 */
.yp-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
.yp-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(169, 176, 192, .35);
  border-radius: 999px;
  color: #C9D2E8;
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--yp-t) var(--yp-ease), color var(--yp-t) var(--yp-ease);
}
.yp-icon-btn:hover { border-color: var(--yp-jade); color: var(--yp-paper); }
.yp-icon-btn__glyph {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.yp-icon-btn__glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.yp-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--yp-night);
  border-radius: 999px;
  background: var(--yp-gold);
  color: var(--yp-night);
  font-size: 14px;
  font-weight: 800;
  transition: background var(--yp-t) var(--yp-ease), color var(--yp-t) var(--yp-ease);
}
.yp-cta:hover { background: var(--yp-jade); }
.yp-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(169, 176, 192, .35);
  border-radius: 999px;
  color: #C9D2E8;
  font-size: 14px;
  font-weight: 700;
}
.yp-nav-toggle:hover { border-color: var(--yp-jade); color: var(--yp-paper); }
.yp-nav-toggle__bar {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* 站内检索面板 */
.yp-search {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  padding: 0 clamp(14px, 3vw, 38px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--yp-t) var(--yp-ease), transform var(--yp-t) var(--yp-ease), visibility var(--yp-t);
}
.yp-search__inner {
  display: grid;
  gap: 10px;
  max-width: var(--yp-shell);
  margin: 0 auto;
  padding: 18px clamp(16px, 2.2vw, 24px);
  background: var(--yp-ink);
  border: 2px solid var(--yp-night);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(8, 14, 28, .34);
}
.yp-search__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--yp-gold);
}
.yp-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--yp-paper);
  border: 2px solid var(--yp-night);
  border-radius: 12px;
  color: var(--yp-graphite);
  font-size: 16px;
}
.yp-search__input::placeholder { color: #7B8399; }
.yp-search__status {
  font-family: var(--yp-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--yp-slate);
}
.yp-search__hint { font-size: 13px; color: #C9D2E8; }
.yp-search__hint a {
  color: var(--yp-jade);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yp-header.is-search-open .yp-search {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ============================================================
   页脚
   ============================================================ */
.yp-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--yp-ink);
  color: #C9D2E8;
  border-top: 2px solid var(--yp-night);
  padding-bottom: 28px;
}
.yp-footer__band {
  height: 8px;
  background: linear-gradient(90deg, var(--yp-jade) 0 22%, var(--yp-gold) 22% 34%, var(--yp-mist) 34% 100%);
}
.yp-footer__inner {
  max-width: var(--yp-shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 3vw, 32px) 0;
}
.yp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.yp-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.yp-footer__logo {
  font-size: var(--yp-fs-lg);
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--yp-paper);
}
.yp-footer__logo:hover { color: var(--yp-jade); }
.yp-footer__tag {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: #C9D2E8;
}
.yp-footer__note {
  font-size: 13px;
  line-height: 1.75;
  color: #8E97AE;
}
.yp-footer__col-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--yp-gold);
}
.yp-footer__list { display: grid; gap: 2px; }
.yp-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: #C9D2E8;
  transition: color var(--yp-t) var(--yp-ease), border-color var(--yp-t) var(--yp-ease);
}
.yp-footer__link:hover { color: var(--yp-jade); border-bottom-color: var(--yp-jade); }

.yp-footer__contact {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--yp-indigo);
  border: 2px solid var(--yp-night);
  border-radius: 16px;
}
.yp-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(169, 176, 192, .22);
}
.yp-contact-row:last-child { border-bottom: 0; }
.yp-contact-row__key {
  flex: 0 0 auto;
  min-width: 76px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--yp-gold);
}
.yp-contact-row__val {
  flex: 1 1 260px;
  font-size: 15px;
  color: var(--yp-paper);
  word-break: break-word;
}
.yp-contact-row__val--mono {
  font-family: var(--yp-font-mono);
  font-size: 14px;
  letter-spacing: .04em;
}
.yp-footer__inline {
  color: var(--yp-jade);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yp-copy {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(169, 176, 192, .4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #C9D2E8;
  transition: background var(--yp-t) var(--yp-ease), color var(--yp-t) var(--yp-ease), border-color var(--yp-t) var(--yp-ease);
}
.yp-copy:hover { border-color: var(--yp-jade); color: var(--yp-jade); }
.yp-copy.is-done {
  background: var(--yp-jade);
  border-color: var(--yp-jade);
  color: var(--yp-night);
}

.yp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(169, 176, 192, .2);
  font-family: var(--yp-font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #8E97AE;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .yp-nav__link { padding: 0 10px; font-size: 14px; }
  .yp-icon-btn { padding: 0 12px; }
  .yp-icon-btn__label { display: none; }
}

@media (max-width: 980px) {
  .yp-header.has-current:not(.is-nav-open) .yp-nav__item:not(.is-current) { display: none; }
  .yp-nav-toggle { display: inline-flex; }
  .yp-header.is-nav-open .yp-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 32px));
    padding: 8px;
    background: var(--yp-indigo);
    border: 2px solid var(--yp-night);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(8, 14, 28, .42);
  }
  .yp-header.is-nav-open .yp-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .yp-header.is-nav-open .yp-nav__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  .yp-grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .yp-col-4, .yp-col-5, .yp-col-6, .yp-col-7, .yp-col-8, .yp-col-12 { grid-column: span 6; }
  .yp-offset-1 { grid-column-start: auto; }
  .yp-grid--2, .yp-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .yp-split { grid-template-columns: minmax(0, 1fr); }
  .yp-split__aside { position: static; top: auto; margin-top: 0; }
  .yp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .yp-header { padding: 8px 10px; }
  .yp-header__inner,
  .yp-header.is-compact .yp-header__inner {
    max-width: none;
    padding: 6px 8px 6px 12px;
    border-radius: 20px;
  }
  .yp-brand { padding-right: 4px; }
  .yp-brand__mark { width: 28px; height: 28px; font-size: 16px; }
  .yp-brand__name { font-size: 16px; }
  .yp-cta { padding: 0 14px; font-size: 13px; }

  .yp-nav,
  .yp-header.is-nav-open .yp-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    z-index: 90;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 8px;
    background: var(--yp-indigo);
    border: 2px solid var(--yp-night);
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(8, 14, 28, .42);
  }
  .yp-nav__list,
  .yp-header.is-nav-open .yp-nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }
  .yp-nav__list::-webkit-scrollbar { display: none; }
  .yp-nav__item,
  .yp-header.is-nav-open .yp-nav__item { flex: 0 0 auto; }
  .yp-nav__link,
  .yp-header.is-nav-open .yp-nav__link {
    width: auto;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
  }
  .yp-nav[data-open] .yp-nav__list { flex-wrap: wrap; overflow: visible; }
  .yp-nav[data-open] .yp-nav__item { flex: 1 1 calc(50% - 6px); }
  .yp-nav[data-open] .yp-nav__link { width: 100%; border-radius: 12px; }

  .yp-search { top: calc(100% + 2px); }
  .yp-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .yp-footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .yp-brand__meta { display: none; }
  .yp-cta { padding: 0 12px; }
  .yp-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .yp-search__inner { border-radius: 16px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .yp-card:hover { transform: none; }
  .yp-btn:hover { transform: none; }
}
