/* ==========================================================================
   杏运平台 · 共享样式表  /assets/site.css
   纸张叠层 + 印刷标签 + 数字档案秩序
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { width: 100%; border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色板 */
  --apricot: #E8762C;
  --apricot-deep: #C75F1D;
  --apricot-soft: #F6C08A;
  --paper: #FBF6EE;
  --paper-2: #F3E9DA;
  --paper-3: #EDDFC9;
  --ink: #14372E;
  --ink-2: #2E5548;
  --gold: #D9A93C;
  --vermilion: #C2452D;
  --moss: #7FA08C;
  --graphite: #3A3A34;

  /* 描边与阴影 */
  --line: rgba(20, 55, 46, 0.16);
  --line-strong: rgba(20, 55, 46, 0.34);
  --line-paper: rgba(251, 246, 238, 0.18);
  --shadow-soft: 0 1px 0 rgba(20, 55, 46, 0.05), 0 10px 24px -20px rgba(20, 55, 46, 0.5);
  --shadow-paper: 0 2px 0 rgba(20, 55, 46, 0.05), 0 22px 44px -26px rgba(20, 55, 46, 0.55);

  /* 字体 */
  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "FangSong", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --xy-rail-h: 34px;
  --xy-bar-h: 78px;
  --xy-header-h: calc(var(--xy-rail-h) + var(--xy-bar-h));
  --xy-radius: 14px;
  --xy-max: 1240px;
  --xy-pad: clamp(16px, 4vw, 40px);
  --xy-ease: cubic-bezier(0.22, 0.68, 0.35, 1);
}

/* ---------- 3. 基础排版 ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--xy-header-h) + 16px);
}

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(243, 233, 218, 0.55) 0%, rgba(251, 246, 238, 0) 420px),
    repeating-linear-gradient(90deg, rgba(20, 55, 46, 0.035) 0 1px, transparent 1px 120px);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

::selection { background: var(--apricot-soft); color: var(--ink); }

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

/* 正文主区默认避开固定头部；满幅海报页可在页面 CSS 中覆盖 */
#main-content { padding-top: var(--xy-header-h); }

/* ---------- 4. 布局壳 ---------- */
.xy-shell {
  width: 100%;
  max-width: var(--xy-max);
  margin: 0 auto;
  padding-inline: var(--xy-pad);
}

/* ---------- 5. 头部 ---------- */
.xy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: var(--ink);
  background-image: linear-gradient(180deg,
    rgba(251, 246, 238, 0.94) 0%,
    rgba(251, 246, 238, 0.62) 64%,
    rgba(251, 246, 238, 0) 100%);
  transition: background-color 0.32s var(--xy-ease), box-shadow 0.32s var(--xy-ease);
}

.xy-header[data-scrolled] {
  background-color: var(--paper);
  background-image: none;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(20, 55, 46, 0.75);
}

/* 跳转链接 */
.xy-skip {
  position: absolute;
  left: var(--xy-pad);
  top: -120px;
  z-index: 3;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 0 0 12px 12px;
  transition: top 0.24s var(--xy-ease);
}
.xy-skip:focus { top: 0; }

/* 状态条 */
.xy-header__rail {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.32s var(--xy-ease), border-color 0.32s var(--xy-ease);
}

.xy-header__rail-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--xy-rail-h);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--ink-2);
}

.xy-rail__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.xy-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 0 3px rgba(232, 118, 44, 0.22);
}

.xy-header[data-scrolled] .xy-header__rail {
  background-color: var(--ink);
  border-bottom-color: var(--line-paper);
}
.xy-header[data-scrolled] .xy-header__rail-in { color: rgba(251, 246, 238, 0.82); }
.xy-header[data-scrolled] .xy-rail__dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 169, 60, 0.26);
}

/* 横条 */
.xy-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: var(--xy-bar-h);
}

/* 品牌 */
.xy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.xy-brand__seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px 13px 13px 5px;
  background: var(--apricot);
  color: #FFF6EC;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(251, 246, 238, 0.4), 0 10px 18px -12px rgba(232, 118, 44, 0.95);
  transition: transform 0.3s var(--xy-ease);
}
.xy-brand:hover .xy-brand__seal { transform: rotate(-4deg) translateY(-1px); }

.xy-brand__text { display: flex; flex-direction: column; gap: 1px; }

.xy-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.xy-brand__sub {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink-2);
}

/* 导航 */
.xy-nav { margin: 0 auto; }

.xy-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.2vw, 14px);
}

.xy-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  border-radius: 9px;
  transition: color 0.22s var(--xy-ease);
}

.xy-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--apricot);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--xy-ease);
}

.xy-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.22s var(--xy-ease);
}

.xy-nav__link:hover { color: var(--apricot-deep); }
.xy-nav__link:hover::after { transform: scaleX(1); }

.xy-nav__link[aria-current="page"] { font-weight: 700; color: var(--ink); }
.xy-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }

/* 头部右侧 */
.xy-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 汉堡按钮 */
.xy-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(251, 246, 238, 0.72);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.22s var(--xy-ease), color 0.22s var(--xy-ease);
}
.xy-navtoggle:hover { border-color: var(--apricot); color: var(--apricot-deep); }

.xy-navtoggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--xy-ease);
}
.xy-navtoggle__bars::before,
.xy-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--xy-ease), top 0.26s var(--xy-ease);
}
.xy-navtoggle__bars::before { top: -6px; }
.xy-navtoggle__bars::after { top: 6px; }

.xy-header[data-nav-open] .xy-navtoggle__bars { background: transparent; }
.xy-header[data-nav-open] .xy-navtoggle__bars::before { top: 0; transform: rotate(45deg); }
.xy-header[data-nav-open] .xy-navtoggle__bars::after { top: 0; transform: rotate(-45deg); }

.xy-navtoggle__label { display: inline; }

/* 滚动进度线 */
.xy-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: transparent;
}
.xy-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--apricot) 0%, var(--gold) 100%);
  transition: width 0.12s linear;
}

/* ---------- 6. 页脚 ---------- */
.xy-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background-color: var(--ink);
  color: var(--paper-2);
}

/* 活页打孔边 */
.xy-footer__punch {
  height: 20px;
  background-color: var(--paper-2);
  background-image: radial-gradient(circle at 24px 10px,
    var(--paper) 0 6px,
    rgba(20, 55, 46, 0.12) 6px 7px,
    transparent 7px);
  background-size: 48px 20px;
  background-repeat: repeat-x;
  border-top: 1px solid var(--line);
}

.xy-footer__inner { padding-block: clamp(40px, 6vw, 72px); }

.xy-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 64px);
}

.xy-footer__brand { display: grid; gap: 10px; align-content: start; }

.xy-footer__stamp {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 4px rgba(217, 169, 60, 0.14);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
}

.xy-footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.xy-footer__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--apricot-soft);
}

.xy-footer__meta {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--moss);
}

.xy-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.xy-footer__col { display: grid; align-content: start; gap: 12px; }

.xy-footer__coltitle {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.xy-footer__links { display: grid; gap: 9px; }

.xy-footer__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(251, 246, 238, 0.9);
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--xy-ease), border-color 0.22s var(--xy-ease);
}
.xy-footer__link:hover {
  color: var(--apricot-soft);
  border-bottom-color: var(--apricot-soft);
}

.xy-footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 28px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line-paper);
}

.xy-contact__row { display: flex; flex-direction: column; gap: 4px; }

.xy-contact__label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--moss);
}

.xy-contact__value {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
}

.xy-contact__note {
  grid-column: 1 / -1;
  max-width: 74ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(251, 246, 238, 0.72);
}

.xy-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: 18px;
  border-top: 1px solid var(--line-paper);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(251, 246, 238, 0.66);
}

.xy-legal { white-space: nowrap; }
.xy-copyright { margin-left: auto; }
.xy-copyright .xy-num { color: var(--apricot-soft); }

/* ---------- 7. 按钮 ---------- */
.xy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background-color 0.22s var(--xy-ease), color 0.22s var(--xy-ease),
    border-color 0.22s var(--xy-ease), transform 0.22s var(--xy-ease),
    box-shadow 0.22s var(--xy-ease);
}

.xy-btn--primary {
  background: var(--apricot);
  color: #FFF7EE;
  box-shadow: 0 12px 22px -14px rgba(232, 118, 44, 0.95);
}
.xy-btn--primary:hover {
  background: var(--apricot-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -14px rgba(199, 95, 29, 0.95);
}

.xy-btn--ghost {
  background: rgba(251, 246, 238, 0.65);
  border-color: var(--line-strong);
  color: var(--ink);
}
.xy-btn--ghost:hover { border-color: var(--apricot); color: var(--apricot-deep); background: var(--paper); }

.xy-btn--ink { background: var(--ink); color: var(--paper-2); }
.xy-btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }

.xy-btn--sm { padding: 11px 16px; font-size: 14px; border-radius: 9px; }
.xy-btn--block { width: 100%; }

/* ---------- 8. 区块与文字组件 ---------- */
.xy-section { padding-block: clamp(48px, 7vw, 88px); }
.xy-section--paper { background: var(--paper-2); }
.xy-section--ink { background: var(--ink); color: var(--paper-2); }
.xy-section--ink .xy-title,
.xy-section--ink .xy-title--2 { color: var(--paper); }
.xy-section--ink .xy-lede { color: rgba(251, 246, 238, 0.78); }

.xy-section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3.4vw, 40px); max-width: 74ch; }

.xy-eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--apricot);
}

.xy-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.xy-title--2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.xy-lede {
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.85;
  color: var(--ink-2);
}

.xy-prose {
  max-width: 70ch;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--graphite);
}
.xy-prose > * + * { margin-top: 1.1em; }
.xy-prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
}
.xy-prose h3 {
  margin-top: 1.5em;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.xy-prose ul { display: grid; gap: 0.5em; padding-left: 1.1em; list-style: disc; }
.xy-prose ol { display: grid; gap: 0.5em; padding-left: 1.3em; list-style: decimal; }
.xy-prose li::marker { color: var(--apricot); }
.xy-prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--ink-2);
}
.xy-prose a {
  color: var(--apricot-deep);
  border-bottom: 1px solid rgba(199, 95, 29, 0.4);
}
.xy-prose a:hover { border-bottom-color: var(--apricot-deep); }

.xy-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.xy-hl {
  padding: 0 0.12em;
  background-image: linear-gradient(transparent 60%, rgba(217, 169, 60, 0.55) 60%);
  font-weight: 700;
  color: var(--ink);
}

.xy-rule { height: 1px; border: 0; background: var(--line); }

.xy-note {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(243, 233, 218, 0.72);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.xy-kpi { display: grid; gap: 6px; }
.xy-kpi__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--apricot);
}
.xy-kpi__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

/* ---------- 9. 网格 / 卡片 / 标签 ---------- */
.xy-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.xy-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.xy-grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.xy-grid--main { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }

.xy-card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--xy-radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s var(--xy-ease), box-shadow 0.28s var(--xy-ease),
    border-color 0.28s var(--xy-ease);
}
.xy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 118, 44, 0.42);
  box-shadow: var(--shadow-paper);
}

.xy-card--stack::before {
  content: "";
  position: absolute;
  inset: 10px -8px -8px 10px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--xy-radius);
  background: var(--paper-2);
}

.xy-card__label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--moss);
}

.xy-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
}

.xy-card__text {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.xy-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(20, 55, 46, 0.14);
  border-radius: 999px;
  background: var(--apricot-soft);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.xy-tag--gold { background: rgba(217, 169, 60, 0.24); border-color: rgba(217, 169, 60, 0.55); }
.xy-tag--moss { background: rgba(127, 160, 140, 0.26); border-color: rgba(127, 160, 140, 0.55); }
.xy-tag--ink { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

/* ---------- 10. 图片容器基础规则 ---------- */
.xy-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--xy-radius);
  background: var(--paper-2);
}

.xy-media > img,
.xy-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xy-media--wide { aspect-ratio: 16 / 9; }
.xy-media--square { aspect-ratio: 1 / 1; }
.xy-media--tall { aspect-ratio: 3 / 4; }

.xy-media--paper {
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.xy-media--paper > img { border-radius: 8px; }

.xy-media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(20, 55, 46, 0.84);
  color: var(--paper-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.xy-media__slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(20, 55, 46, 0.5);
  background-image: repeating-linear-gradient(135deg,
    rgba(20, 55, 46, 0.06) 0 10px,
    transparent 10px 20px);
}

/* ---------- 11. 面包屑 ---------- */
.xy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.xy-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.xy-breadcrumb__sep { color: var(--moss); }

.xy-breadcrumb__link {
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--xy-ease), border-color 0.2s var(--xy-ease);
}
.xy-breadcrumb__link:hover { color: var(--apricot-deep); border-bottom-color: var(--apricot); }

.xy-breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 12. 分段切换 ---------- */
.xy-tabs { display: block; }

.xy-tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}

.xy-tabs__tab {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background-color 0.24s var(--xy-ease), color 0.24s var(--xy-ease);
}
.xy-tabs__tab:hover { color: var(--ink); background: rgba(251, 246, 238, 0.9); }
.xy-tabs__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 10px 20px -16px rgba(20, 55, 46, 0.9);
}

.xy-tabs__panel { padding-top: clamp(18px, 2.4vw, 28px); }

/* ---------- 13. 章节锚点侧栏 ---------- */
.xy-anchorlist {
  position: sticky;
  top: calc(var(--xy-header-h) + 24px);
  display: grid;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
}

.xy-anchorlist__link {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  line-height: 1.6;
  transition: color 0.2s var(--xy-ease), border-color 0.2s var(--xy-ease),
    background-color 0.2s var(--xy-ease);
}
.xy-anchorlist__link:hover { border-left-color: var(--apricot); color: var(--ink); }
.xy-anchorlist__link[aria-current="true"] {
  border-left-color: var(--gold);
  background: rgba(217, 169, 60, 0.13);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 14. 显现 ---------- */
.xy-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--xy-ease), transform 0.5s var(--xy-ease);
}
.xy-reveal[data-visible] { opacity: 1; transform: none; }

/* ---------- 15. 返回顶部纸签 ---------- */
.xy-backtop {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px 12px 12px 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--xy-ease), transform 0.3s var(--xy-ease),
    visibility 0.3s var(--xy-ease), background-color 0.22s var(--xy-ease),
    color 0.22s var(--xy-ease), border-color 0.22s var(--xy-ease);
}
.xy-backtop[data-show] { opacity: 1; visibility: visible; transform: none; }
.xy-backtop:hover {
  background: var(--apricot);
  border-color: var(--apricot);
  color: #FFF7EE;
}

.xy-backtop__hole {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  box-shadow: inset 0 1px 2px rgba(20, 55, 46, 0.35);
  transition: background-color 0.22s var(--xy-ease);
}
.xy-backtop:hover .xy-backtop__hole { background: rgba(255, 247, 238, 0.9); }

.xy-backtop__text { display: inline; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  :root {
    --xy-rail-h: 30px;
    --xy-bar-h: 64px;
  }

  .xy-navtoggle { display: inline-flex; }

  .xy-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 44px -32px rgba(20, 55, 46, 0.85);
    transition: max-height 0.34s var(--xy-ease), opacity 0.24s var(--xy-ease),
      visibility 0.24s var(--xy-ease);
  }
  .xy-nav[data-open] {
    max-height: min(76vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .xy-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--xy-pad) 22px;
  }

  .xy-nav__link {
    display: block;
    padding: 15px 6px 15px 22px;
    border-radius: 0;
    border-bottom: 1px dashed var(--line);
    font-size: 17px;
  }
  .xy-nav__link::after { display: none; }
  .xy-nav__link::before { left: 4px; }
  .xy-nav__link[aria-current="page"] { color: var(--apricot-deep); }
  .xy-nav__link[aria-current="page"]::before { opacity: 1; }

  .xy-grid--main { grid-template-columns: minmax(0, 1fr); }
  .xy-anchorlist { position: static; }
}

@media (max-width: 900px) {
  .xy-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .xy-brand__sub { display: none; }
  .xy-rail__item:last-child { display: none; }
  .xy-header__rail-in { justify-content: flex-start; }
  .xy-footer__bottom { flex-direction: column; align-items: flex-start; }
  .xy-copyright { margin-left: 0; }
  .xy-kpi__value { font-size: 2rem; }
}

@media (max-width: 420px) {
  .xy-navtoggle__label { display: none; }
  .xy-header__actions .xy-btn--sm { padding: 10px 12px; font-size: 13px; }
  .xy-backtop__text { display: none; }
  .xy-backtop { padding: 12px; }
}

/* ---------- 17. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .xy-reveal { opacity: 1; transform: none; }
  .xy-card:hover { transform: none; }
  .xy-btn--primary:hover,
  .xy-btn--ink:hover { transform: none; }
}
