/* =========================================================
   B体育主站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

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

ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0A1F19;
  --night: #0E2036;
  --moss: #1C3A30;
  --deep: #06121D;
  --paper: #F3F0E7;
  --stone: #8B9A93;
  --mist: #D5E3DD;
  --cyan: #46F0BE;
  --amber: #FF8A3D;
  --clay: #B85742;

  --line: rgba(139, 154, 147, 0.3);
  --line-soft: rgba(139, 154, 147, 0.16);
  --glass: rgba(28, 58, 48, 0.55);
  --glass-brd: rgba(213, 227, 221, 0.14);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 44px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-pill: 999px;
  --shell-max: 1280px;
  --nav-break: 900px;
}

/* ---------- 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(70% 45% at 5% -8%, rgba(70, 240, 190, 0.11), transparent 62%),
    radial-gradient(52% 42% at 98% 6%, rgba(184, 87, 66, 0.12), transparent 64%),
    radial-gradient(60% 40% at 88% 78%, rgba(255, 138, 61, 0.07), transparent 66%),
    linear-gradient(180deg, #0A1F19 0%, #0A1F19 58%, #08191A 82%, #06121D 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 72px); }
h2 { font-size: clamp(24px, 3.2vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong, b { font-weight: 700; color: var(--paper); }
small { font-size: 13px; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(70, 240, 190, 0.3);
  color: var(--paper);
}

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

/* ---------- 布局工具 ---------- */
.shell {
  width: min(var(--shell-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.band {
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line-soft);
}
.band--night { background: var(--night); }
.band--moss { background: var(--moss); }
.band--deep { background: var(--deep); }

.paper-band {
  background: var(--paper);
  color: #12291F;
  padding-block: clamp(48px, 7vw, 96px);
}
.paper-band h1,
.paper-band h2,
.paper-band h3,
.paper-band h4 { color: #0A1F19; }
.paper-band a { color: #0E5A45; }
.paper-band a:hover { color: #0A1F19; }
.paper-band .rail,
.paper-band .stat__label { color: #4E625B; }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

.rail {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--stone);
}
.rail__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  pointer-events: auto;
  transform: translate(-50%, -180%);
  transition: transform 0.22s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  text-decoration: none;
}

/* ---------- 页头：悬浮胶囊导航 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: clamp(10px, 1.5vw, 18px) var(--gutter) 0;
  pointer-events: none;
}

.masthead__shell {
  pointer-events: auto;
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  padding: 9px 12px 9px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(28, 58, 48, 0.9), rgba(10, 31, 25, 0.86));
  border: 1px solid var(--glass-brd);
  box-shadow: 0 20px 46px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(213, 227, 221, 0.08);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  transition: padding 0.35s ease, gap 0.35s ease, background 0.35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  background: linear-gradient(140deg, #7DF7D2, var(--cyan) 55%, #23A87F);
  box-shadow: 0 0 0 4px rgba(70, 240, 190, 0.1), 0 0 24px -8px rgba(70, 240, 190, 0.85);
}
.brand__mark--foot {
  width: 34px;
  height: 34px;
  font-size: 16px;
  box-shadow: 0 0 0 3px rgba(70, 240, 190, 0.08);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
}
.nav__link:hover {
  color: var(--paper);
  background: rgba(70, 240, 190, 0.09);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--cyan);
  box-shadow: 0 0 24px -8px rgba(70, 240, 190, 0.9);
}
.nav__link[aria-current="page"]:hover { color: var(--ink); }

.masthead__tail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.masthead__now {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(70, 240, 190, 0.42);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}
.masthead__now:empty { display: none; }
.masthead--condensed .masthead__now { display: inline-flex; }

.masthead--condensed .masthead__shell {
  padding: 6px 10px 6px 12px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(28, 58, 48, 0.94), rgba(6, 18, 29, 0.92));
}
.masthead--condensed .brand__mark { width: 32px; height: 32px; font-size: 15px; }
.masthead--condensed .brand__tag { display: none; }
.masthead--condensed .nav__link { padding: 7px 11px; font-size: 13px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-brd);
  background: rgba(6, 18, 29, 0.6);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-toggle:hover { border-color: rgba(70, 240, 190, 0.5); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--amber); color: #20100A; }
.btn--primary:hover { background: #FFA163; color: #20100A; }

.btn--accent { background: var(--cyan); color: var(--ink); }
.btn--accent:hover { background: #74F5D0; color: var(--ink); }

.btn--ghost {
  background: rgba(213, 227, 221, 0.05);
  border-color: rgba(213, 227, 221, 0.26);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(139, 154, 147, 0.5);
}
.breadcrumbs a { color: var(--mist); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 面板 / 标签 / 数据 ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--moss);
}

.glass {
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-m);
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  white-space: nowrap;
}
.tag--live { color: var(--cyan); }
.tag--soon { color: var(--amber); }
.tag--saved { color: var(--clay); }
.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(70, 240, 190, 0.18);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  color: var(--paper);
}
.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* ---------- 图片容器（页面阶段放置占位） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, #13291F, #0A1F19 58%, #0E2036);
}
.figure > img,
.figure > picture > img,
.figure > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--21x9 { aspect-ratio: 21 / 9; }
.figure--4x5 { aspect-ratio: 4 / 5; }
.figure--1x1 { aspect-ratio: 1 / 1; }

.figure__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 18% 12%, rgba(70, 240, 190, 0.2), transparent 68%),
    radial-gradient(52% 58% at 86% 84%, rgba(255, 138, 61, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(213, 227, 221, 0.05) 0 1px, transparent 1px 64px);
}

.figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(6, 18, 29, 0) 0%, rgba(6, 18, 29, 0.88) 78%);
}

/* ---------- 章节目录 ---------- */
.toc { font-size: 13.5px; }
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--line-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--stone);
  text-decoration: none;
}
.toc-link:hover {
  color: var(--paper);
  background: rgba(70, 240, 190, 0.06);
  text-decoration: none;
}
.toc-link.is-active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(70, 240, 190, 0.09);
}

/* ---------- 进入视口显现 ---------- */
.reveal { opacity: 1; transform: none; }
html[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html[data-reveal="on"] .reveal.is-in {
  opacity: 1;
  transform: none;
}
html[data-reveal="on"] .reveal.is-in .tag--live,
html[data-reveal="on"] .reveal.is-in .tag--soon,
html[data-reveal="on"] .reveal.is-in .tag--saved {
  animation: tag-pulse 0.7s ease-out 1;
}
@keyframes tag-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  100% { box-shadow: 0 0 0 12px rgba(70, 240, 190, 0); }
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.6vw, 30px);
  bottom: clamp(14px, 2.6vw, 30px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-pill);
  background: rgba(6, 18, 29, 0.88);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.to-top__arrow { font-family: var(--font-mono); font-size: 14px; line-height: 1; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: clamp(56px, 8vw, 120px);
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, var(--deep) 0%, #040C12 100%);
  border-top: 1px solid rgba(139, 154, 147, 0.18);
  color: var(--stone);
}

.site-foot__inner {
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 2.6fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid rgba(139, 154, 147, 0.16);
}

.site-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-foot__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.site-foot__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.foot-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-col__list { display: flex; flex-direction: column; gap: 8px; }
.foot-col__list a {
  color: var(--mist);
  font-size: 14.5px;
  text-decoration: none;
}
.foot-col__list a:hover { color: var(--cyan); text-decoration: none; }

.site-foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: clamp(18px, 3vw, 28px);
}
.site-foot__contact,
.site-foot__legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
}
.site-foot__legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .col-2, .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9, .col-10 { grid-column: span 12; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }

  .masthead__shell {
    border-radius: 26px;
    padding: 8px 10px 10px;
    gap: 8px;
  }

  .masthead__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand { margin-right: auto; }

  .nav {
    order: 3;
    flex: 1 0 100%;
    margin: 6px 0 0;
    padding: 0;
    border-top: 1px solid var(--glass-brd);
    display: none;
  }
  .masthead[data-open] .nav,
  .nav[data-open] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 10px;
  }
  .nav__link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .masthead--condensed .nav__link { padding: 12px 14px; font-size: 15px; }

  .site-foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-foot__meta { flex-direction: column; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10 { grid-column: 1 / -1; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .to-top { padding: 10px 14px; }
}

@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;
    scroll-behavior: auto !important;
  }
  html[data-reveal="on"] .reveal {
    opacity: 1;
    transform: none;
  }
}
