/* ==========================================================================
   浩瀚体育看台 · /assets/site.css
   框架式分屏系统：顶栏 + 左缘竖栏咬合成页面细线边框
   ========================================================================== */

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

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

body { margin: 0; }

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

button { font: inherit; }

ul, ol { margin: 0; padding: 0; }

/* ---------- 变量 ---------- */
:root {
  --ink-night: #0A1730;
  --deep-teal: #0E2C2A;
  --indigo: #2B2150;
  --wine: #6E1D2B;
  --barley: #D8A63C;
  --butter: #EE7B2E;
  --prayer: #F2EFE6;
  --ink: #141A24;
  --steel: #8FA3C0;
  --proof: #3F8F6B;

  --line: rgba(143, 163, 192, 0.24);
  --line-strong: rgba(143, 163, 192, 0.48);
  --line-dark: rgba(20, 26, 36, 0.16);
  --line-dark-strong: rgba(20, 26, 36, 0.32);

  --font-head: "Oswald", "Bebas Neue", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --rail-w: 0px;
  --bar-h: 58px;
  --gut: 20px;
  --shell-max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gut: 32px; --bar-h: 62px; }
}

@media (min-width: 1024px) {
  :root { --rail-w: 72px; --bar-h: 64px; --gut: 44px; }
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--ink-night);
  color: var(--prayer);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

/* ---------- 跳转链接 ---------- */
.sh-skip {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  z-index: 200;
  padding: 11px 20px;
  background: var(--barley);
  color: var(--ink-night);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-130%);
  transition: transform 0.18s var(--ease);
}

.sh-skip:focus {
  transform: translateY(0);
}

/* ---------- 顶栏 ---------- */
.sh-header__bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: var(--gut);
  background: rgba(10, 23, 48, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--prayer);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sh-brand::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--barley), var(--butter));
  flex: 0 0 auto;
}

.sh-brand__mark { display: inline-block; }

.sh-season {
  display: none;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
  white-space: nowrap;
}

.sh-season__label {
  color: var(--proof);
  margin-right: 10px;
}

.sh-season__range { color: var(--steel); }

@media (min-width: 1100px) {
  .sh-season { display: block; }
}

.sh-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.sh-util {
  display: none;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sh-util:hover {
  color: var(--barley);
  border-bottom-color: var(--barley);
}

@media (min-width: 720px) {
  .sh-util { display: inline-block; }
}

.sh-cta {
  display: none;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink-night);
  background: var(--barley);
  border: 1px solid var(--barley);
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sh-cta:hover {
  background: var(--butter);
  border-color: var(--butter);
}

@media (min-width: 640px) {
  .sh-cta { display: inline-flex; }
}

/* ---------- 汉堡按钮 ---------- */
.sh-burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sh-burger:hover { color: var(--barley); border-color: var(--barley); }

.sh-burger__box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.sh-burger__box span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.sh-burger[aria-expanded="true"] {
  color: var(--barley);
  border-color: var(--barley);
}

.sh-burger[aria-expanded="true"] .sh-burger__box span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.sh-burger[aria-expanded="true"] .sh-burger__box span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .sh-burger { display: none; }
}

/* ---------- 滚动进度 ---------- */
.sh-progress {
  position: fixed;
  top: calc(var(--bar-h) - 1px);
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--barley), var(--butter));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 导航 ---------- */
.sh-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar-h) + 28px) var(--gut) 32px;
  background: var(--indigo);
  background-image: linear-gradient(160deg, rgba(43, 33, 80, 0.96), rgba(10, 23, 48, 0.98));
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: transform 0.32s var(--ease), opacity 0.24s var(--ease),
    visibility 0.24s linear;
}

.sh-nav[data-open] {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.sh-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.sh-nav__item {
  border-bottom: 1px solid rgba(143, 163, 192, 0.16);
}

.sh-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 10px 15px 22px;
  text-decoration: none;
  color: var(--steel);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

.sh-nav__link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--barley);
  transform: translateY(-50%);
  transition: width 0.2s var(--ease);
}

.sh-nav__link:hover { color: var(--prayer); }

.sh-nav__link[aria-current="page"] {
  color: var(--barley);
}

.sh-nav__link[aria-current="page"]::before {
  width: 10px;
}

.sh-nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--line-strong);
  transition: color 0.2s var(--ease);
}

.sh-nav__link[aria-current="page"] .sh-nav__num {
  color: var(--barley);
}

.sh-nav__label { display: inline-block; }

.sh-nav__meta {
  margin: auto 0 0;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

@media (min-width: 1024px) {
  .sh-nav {
    inset: auto;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    padding: 24px 0;
    background: var(--ink-night);
    background-image: none;
    border-right: 1px solid var(--line);
    border-top: 1px solid transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    transition: none;
  }

  .sh-nav::-webkit-scrollbar { display: none; }

  .sh-nav__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }

  .sh-nav__item { border-bottom: 0; }

  .sh-nav__link {
    writing-mode: vertical-rl;
    text-orientation: upright;
    flex-direction: column;
    padding: 6px 0;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .sh-nav__link::before {
    left: 50%;
    top: -12px;
    width: 1px;
    height: 0;
    transform: translateX(-50%);
  }

  .sh-nav__link[aria-current="page"]::before {
    width: 1px;
    height: 9px;
  }

  .sh-nav__num {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .sh-nav__meta { display: none; }
}

/* ---------- 内容容器与分区 ---------- */
.sh-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sh-band {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.sh-band--tight { padding-block: clamp(40px, 5vw, 64px); }

.sh-band--teal { background: var(--deep-teal); }
.sh-band--indigo { background: var(--indigo); }

.sh-band--prayer {
  background: var(--prayer);
  color: var(--ink);
}

.sh-band--prayer h1,
.sh-band--prayer h2,
.sh-band--prayer h3 { color: var(--ink); }

.sh-band--prayer .sh-sec-head { border-bottom-color: var(--line-dark); }
.sh-band--prayer .sh-sec-note { color: rgba(20, 26, 36, 0.62); }
.sh-band--prayer .sh-sec-num { color: var(--wine); }

.sh-ribbon {
  display: block;
  height: 6px;
  width: 100%;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--deep-teal) 0 20%,
    var(--prayer) 20% 40%,
    var(--wine) 40% 60%,
    var(--proof) 60% 80%,
    var(--barley) 80% 100%
  );
}

.sh-ruled {
  background-image:
    linear-gradient(to right, rgba(143, 163, 192, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 192, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
}

.sh-band--prayer.sh-ruled {
  background-image:
    linear-gradient(to right, rgba(20, 26, 36, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 26, 36, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- 12 栏网格 ---------- */
.sh-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.sh-grid > * { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .sh-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
  }

  .sh-span-3 { grid-column: span 3; }
  .sh-span-4 { grid-column: span 4; }
  .sh-span-5 { grid-column: span 5; }
  .sh-span-6 { grid-column: span 6; }
  .sh-span-7 { grid-column: span 7; }
  .sh-span-8 { grid-column: span 8; }
  .sh-span-9 { grid-column: span 9; }
  .sh-span-12 { grid-column: span 12; }
}

/* ---------- 分屏骨架 ---------- */
.sh-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 1024px) {
  .sh-split {
    grid-template-columns: 5fr 7fr;
  }
}

.sh-split__pane {
  min-width: 0;
  padding-block: clamp(40px, 6vw, 72px);
  padding-inline: var(--gut);
}

/* ---------- 编号章节标题 ---------- */
.sh-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.sh-sec-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--barley);
}

.sh-sec-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--prayer);
}

.sh-sec-note {
  margin: 0;
  flex: 1 1 220px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ---------- 面板 / 标签 / 状态 ---------- */
.sh-panel {
  border: 1px solid var(--line);
  background: rgba(10, 23, 48, 0.55);
  padding: clamp(20px, 3vw, 32px);
}

.sh-panel--teal { background: rgba(14, 44, 42, 0.62); }
.sh-panel--indigo { background: rgba(43, 33, 80, 0.56); }

.sh-panel--plain {
  background: var(--prayer);
  color: var(--ink);
  border-color: var(--line-dark);
}

.sh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--barley);
  border: 1px solid rgba(216, 166, 60, 0.45);
  background: rgba(216, 166, 60, 0.08);
}

.sh-tag--wine {
  color: #F0C9CF;
  border-color: rgba(110, 29, 43, 0.7);
  background: rgba(110, 29, 43, 0.32);
}

.sh-tag--proof {
  color: #9AD6B8;
  border-color: rgba(63, 143, 107, 0.5);
  background: rgba(63, 143, 107, 0.14);
}

.sh-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.sh-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--proof);
}

.sh-status--pending::before { background: var(--butter); }

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

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

/* ---------- 按钮 ---------- */
.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--barley);
  border-radius: 0;
  background: var(--barley);
  color: var(--ink-night);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.sh-btn:hover {
  background: var(--butter);
  border-color: var(--butter);
}

.sh-btn--ghost {
  background: transparent;
  color: var(--prayer);
  border-color: var(--line-strong);
}

.sh-btn--ghost:hover {
  background: rgba(216, 166, 60, 0.12);
  border-color: var(--barley);
  color: var(--barley);
}

.sh-band--prayer .sh-btn--ghost {
  color: var(--ink);
  border-color: var(--line-dark-strong);
}

.sh-band--prayer .sh-btn--ghost:hover {
  color: var(--wine);
  border-color: var(--wine);
  background: rgba(110, 29, 43, 0.06);
}

/* ---------- 面包屑 ---------- */
.sh-crumbs {
  padding-block: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.sh-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.sh-crumbs a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sh-crumbs a:hover {
  color: var(--barley);
  border-bottom-color: var(--barley);
}

/* ---------- 正文块 ---------- */
.sh-prose {
  max-width: 68ch;
}

.sh-prose > p { margin: 0 0 1.25em; }

.sh-prose > h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(22px, 2.6vw, 28px);
}

.sh-prose > h3 {
  margin: 1.6em 0 0.5em;
  font-size: 19px;
}

.sh-prose ul,
.sh-prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.25em;
}

.sh-prose li { margin-bottom: 0.5em; }

/* ---------- 章节目录 ---------- */
.sh-toc {
  position: sticky;
  top: calc(var(--bar-h) + 28px);
}

.sh-toc__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--barley);
}

.sh-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.sh-toc__link {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: var(--steel);
  font-size: 14px;
  border-top: 1px solid transparent;
  transition: color 0.2s var(--ease);
}

.sh-toc__link:hover { color: var(--prayer); }

.sh-toc__link[aria-current="true"] {
  color: var(--barley);
  font-weight: 600;
}

/* ---------- 图片容器 ---------- */
.sh-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(43, 33, 80, 0.92) 0%, rgba(14, 44, 42, 0.94) 100%);
}

.sh-media > img,
.sh-media > svg,
.sh-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(143, 163, 192, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 192, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.sh-media--wide { aspect-ratio: 21 / 9; }
.sh-media--tall { aspect-ratio: 4 / 5; }
.sh-media--square { aspect-ratio: 1 / 1; }

@media (min-width: 768px) {
  .sh-media { aspect-ratio: 3 / 2; }
  .sh-media--wide { aspect-ratio: 21 / 9; }
  .sh-media--tall { aspect-ratio: 4 / 5; }
  .sh-media--square { aspect-ratio: 1 / 1; }
}

/* ---------- 页脚 ---------- */
.sh-footer {
  position: relative;
  background: var(--ink-night);
  border-top: 1px solid var(--line);
}

.sh-footer__ribbon {
  display: block;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--deep-teal) 0 20%,
    var(--prayer) 20% 40%,
    var(--wine) 40% 60%,
    var(--proof) 60% 80%,
    var(--barley) 80% 100%
  );
}

.sh-footer__inner {
  display: grid;
  gap: 44px;
  padding-block: clamp(48px, 7vw, 88px);
}

@media (min-width: 860px) {
  .sh-footer__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 80px);
  }
}

.sh-footer__brand {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--prayer);
}

.sh-footer__summary {
  margin: 0 0 22px;
  max-width: 36ch;
  font-size: 15px;
  color: var(--steel);
}

.sh-footer__cutoff {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--barley);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.sh-footer__cols {
  display: grid;
  gap: 32px;
}

@media (min-width: 560px) {
  .sh-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sh-footer__col-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--barley);
}

.sh-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sh-footer__list a {
  font-size: 15px;
  color: var(--prayer);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sh-footer__list a:hover {
  color: var(--butter);
  border-bottom-color: var(--butter);
}

.sh-footer__meta {
  display: grid;
  gap: 10px;
  padding-block: 26px 48px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.sh-footer__meta p { margin: 0; }

.sh-footer__contact { color: var(--steel); }
.sh-footer__note { color: rgba(143, 163, 192, 0.72); }
.sh-footer__legal { color: rgba(143, 163, 192, 0.72); }

/* ---------- 返回顶部 ---------- */
.sh-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 65;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(10, 23, 48, 0.9);
  color: var(--barley);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s linear, border-color 0.2s var(--ease);
}

.sh-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sh-to-top:hover {
  border-color: var(--barley);
  color: var(--butter);
}

.sh-to-top__arrow {
  font-size: 15px;
  line-height: 1;
}

.sh-to-top__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

@media (min-width: 1024px) {
  .sh-to-top { right: 28px; bottom: 28px; }
}

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

.js-reveal [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 减弱动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .sh-nav {
    transition: none;
  }
}
