/* ===== 九游体育站 · /assets/site.css =====
   共享外壳、排版基础与通用组件。页面专属布局另存 page.css。 */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

:root {
  /* 色彩 */
  --ink: #0B1E3A;
  --ink-2: #12325C;
  --lake: #1C7C8C;
  --lake-2: #2FA3B3;
  --mist: #EAF6F8;
  --snow: #FFFFFF;
  --snow-2: #F2F5F9;
  --glacier: #C8D3E0;
  --flame: #FF6B35;

  /* 尺寸 */
  --rail-w: 88px;
  --mast-h: 62px;
  --shell-max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --grid-gap: 24px;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-pill: 999px;

  /* 字体 */
  --fs-base: 16px;
  --font-display: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', 'Noto Sans SC', '思源黑体', sans-serif;
  --font-body: '思源黑体', 'Source Han Sans SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-type-step="up"] { --fs-base: 18px; }
html[data-type-step="down"] { --fs-base: 14px; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--snow-2);
  min-height: 100vh;
}

@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--mast-h) + 16px);
}

/* ===== 跳转链接 ===== */
.skip-link {
  position: fixed;
  left: 14px;
  top: -120px;
  z-index: 200;
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--flame);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ===== 头部外壳 ===== */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 90;
  color: var(--snow);
}

/* --- 移动端顶部条（桌面隐藏） --- */
.masthead { display: none; }

/* --- 侧边轨道（桌面） --- */
.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 0 18px;
  background: var(--ink);
  border-right: 1px solid var(--ink-2);
  overflow: hidden;
}
.rail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background:
    linear-gradient(90deg, transparent 0 4%, var(--lake) 4% 10%, transparent 10% 22%,
      var(--lake) 22% 30%, transparent 30% 46%, var(--lake) 46% 54%,
      transparent 54% 70%, var(--lake) 70% 78%, transparent 78% 100%);
  opacity: .55;
  clip-path: polygon(0 100%, 10% 40%, 22% 82%, 34% 20%, 46% 74%, 58% 34%, 72% 80%, 84% 28%, 100% 84%, 100% 100%);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rail__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--lake-2);
}
.rail__mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--flame);
}

.rail__brand-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--snow);
}

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 0;
  color: var(--glacier);
  transition: color .14s var(--ease), background-color .14s var(--ease);
}
.rail__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--lake-2);
  transform: translateY(-50%);
  transition: height .14s var(--ease);
}
.rail__link:hover,
.rail__link:focus-visible { color: var(--snow); background-color: rgba(28, 124, 140, .18); }
.rail__link:hover::before,
.rail__link:focus-visible::before { height: 56%; }

.rail__link[aria-current="page"] {
  color: var(--snow);
  background-color: rgba(28, 124, 140, .26);
}
.rail__link[aria-current="page"]::before { height: 74%; background: var(--lake-2); }
.rail__link[aria-current="page"] .rail__dot { background: var(--flame); opacity: 1; }

.rail__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}

.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1;
  font-weight: 500;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.type-switch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.type-switch__btn {
  width: 30px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  transition: color .14s var(--ease), border-color .14s var(--ease), background-color .14s var(--ease);
}
.type-switch__btn:hover,
.type-switch__btn:focus-visible {
  color: var(--snow);
  border-color: var(--lake-2);
  background-color: rgba(47, 163, 179, .2);
}

.rail__cta {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 13px 0;
  border-radius: var(--r-pill);
  background: var(--flame);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
  transition: transform .16s var(--ease), background-color .16s var(--ease);
}
.rail__cta:hover,
.rail__cta:focus-visible { background: #ff8357; transform: translateY(-2px); }

/* ===== 移动端：顶部条 + 抽屉 ===== */
@media (max-width: 899px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    color: var(--snow);
  }

  .masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--mast-h);
    padding: 0 16px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-2);
  }

  .masthead__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .masthead__mark {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--lake-2);
  }
  .masthead__mark::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--flame);
  }

  .masthead__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .02em;
    line-height: 1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--snow);
    font-size: 13px;
    letter-spacing: .04em;
    transition: border-color .14s var(--ease), background-color .14s var(--ease);
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--lake-2);
    background-color: rgba(47, 163, 179, .16);
  }
  .site-header[data-open="true"] .nav-toggle {
    border-color: var(--lake-2);
    background-color: rgba(47, 163, 179, .24);
  }

  .nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 16px;
  }
  .nav-toggle__bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .16s var(--ease), opacity .16s var(--ease);
  }
  .site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .nav-toggle__text {
    font-weight: 600;
  }

  .rail {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mast-h);
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--mast-h));
    padding: 14px 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ink-2);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s linear;
  }
  .rail::before { display: none; }

  .site-header[data-open="true"] .rail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rail__brand { display: none; }

  .rail__nav {
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, .04);
    color: var(--snow);
  }
  .rail__link::before {
    left: 6px;
    width: 3px;
    height: 0;
  }
  .rail__link:hover::before,
  .rail__link:focus-visible::before { height: 52%; }
  .rail__link[aria-current="page"]::before { height: 62%; }

  .rail__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 15px;
    letter-spacing: .02em;
  }

  .rail__dot { width: 6px; height: 6px; }

  .rail__foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 16px;
  }

  .type-switch { flex-direction: row; }
  .type-switch__btn { width: 40px; height: 30px; font-size: 12px; }

  .rail__cta {
    width: auto;
    padding: 11px 22px;
    font-size: 14px;
    letter-spacing: .04em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}

/* ===== 滚动进度 ===== */
.scroll-meter {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  z-index: 80;
  background: rgba(11, 30, 58, .1);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--lake-2), var(--flame));
  transition: transform .1s linear;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, .76);
}

.ridge {
  height: 56px;
  background: var(--snow-2);
  clip-path: polygon(0 100%, 0 62%, 7% 34%, 15% 68%, 24% 22%, 33% 60%, 43% 16%, 53% 58%, 64% 26%, 74% 66%, 84% 30%, 93% 62%, 100% 38%, 100% 100%);
}

.footer__inner {
  display: grid;
  gap: 34px;
  padding-block: 44px 22px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--snow);
}

.footer__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--lake-2);
  flex: 0 0 auto;
}
.footer__mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--flame);
}

.footer__tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
}

.footer__note {
  font-size: 14px;
  color: var(--glacier);
  max-width: 32ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lake-2);
  margin-bottom: 12px;
}

.footer__list li + li { margin-top: 9px; }

.footer__list a {
  display: inline-block;
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  border-bottom: 1px solid transparent;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--flame);
}

.footer__contact {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid rgba(47, 163, 179, .22);
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.footer__k {
  flex: 0 0 auto;
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--lake-2);
}

.footer__v {
  color: rgba(255, 255, 255, .9);
  word-break: break-word;
}

.footer__hours {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: var(--glacier);
  line-height: 1.6;
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--glacier);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--snow);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s linear, border-color .14s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover,
.to-top:focus-visible { border-color: var(--flame); }

@media (min-width: 820px) {
  .footer__inner {
    grid-template-columns: minmax(240px, 1fr) 2fr;
    align-items: start;
    column-gap: 48px;
  }
  .footer__contact { grid-column: 1 / -1; }
}

/* ===== 内容容器与网格 ===== */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.section--deep { background: var(--ink); color: rgba(255, 255, 255, .84); }
.section--mist { background: var(--mist); }
.section--snow { background: var(--snow-2); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.tile {
  grid-column: span 12;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--snow);
  border: 1px solid rgba(11, 30, 58, .08);
}

.tile--ink {
  background: var(--ink-2);
  border-color: rgba(47, 163, 179, .22);
  color: rgba(255, 255, 255, .86);
}

@media (min-width: 720px) {
  .tile { grid-column: span 6; }
  .tile--focus { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .tile { grid-column: span 3; }
  .tile--wide { grid-column: span 6; }
  .tile--focus { grid-column: span 6; }
  .tile--full { grid-column: span 12; }
}

/* ===== 排版 ===== */
.display,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  color: inherit;
}

.display { font-size: clamp(40px, 7vw, 72px); line-height: .95; }
.h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: .98; }
.h2 { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.02; }
.h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lake);
}
.section--deep .eyebrow { color: var(--lake-2); }

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  max-width: 46ch;
}
.lead--ink { color: rgba(11, 30, 58, .72); }

.data {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 1.6em 0 .6em;
}
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); }
.prose ul,
.prose ol { margin: 0 0 1.2em 0; padding-left: 1.15em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ===== 按钮与胶囊 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn--primary { background: var(--flame); color: var(--ink); }
.btn--primary:hover,
.btn--primary:focus-visible { background: #ff8357; }

.btn--ghost {
  background: transparent;
  color: var(--snow);
  border-color: rgba(255, 255, 255, .38);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--lake-2); background: rgba(47, 163, 179, .18); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--glacier);
}
.btn--outline:hover,
.btn--outline:focus-visible { border-color: var(--lake); color: var(--lake); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(28, 124, 140, .12);
  color: var(--lake);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.6;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lake-2);
  flex: 0 0 auto;
}

.pill--on-ink {
  background: rgba(47, 163, 179, .18);
  color: #9FD9E2;
  border: 1px solid rgba(47, 163, 179, .34);
}
.pill--on-ink .pill__dot { background: var(--flame); }

/* 刷新波纹 */
.ripple {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  vertical-align: middle;
}
.ripple::before,
.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--lake-2);
  animation: ripple-out 1.6s var(--ease) infinite;
}
.ripple::after { animation-delay: .8s; }

@keyframes ripple-out {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ===== 面包屑 ===== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--glacier);
}
.crumb a { transition: color .14s var(--ease); }
.crumb a:hover,
.crumb a:focus-visible { color: var(--lake-2); }
.crumb__sep { color: var(--glacier); opacity: .7; }
.crumb [aria-current="page"] { color: var(--ink); }
.section--deep .crumb [aria-current="page"] { color: var(--snow); }

/* ===== 图片容器基础规则 ===== */
.figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  aspect-ratio: 16 / 9;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--panorama { aspect-ratio: 21 / 9; }

.figure__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 30, 58, .72);
  color: var(--snow);
  font-size: 12.5px;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

.figure--placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    radial-gradient(circle at 50% 118%, rgba(28, 124, 140, .42), transparent 62%),
    linear-gradient(155deg, var(--ink-2), var(--ink));
}
.figure--placeholder::after {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(47, 163, 179, .55);
  box-shadow: 0 0 0 14px rgba(47, 163, 179, .14), 0 0 0 30px rgba(47, 163, 179, .06);
}

/* ===== 显现动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 焦点可见 ===== */
:focus-visible {
  outline: 2px solid var(--lake-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--deep :focus-visible,
.site-footer :focus-visible { outline-color: var(--flame); }

/* ===== 减少动态 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ripple::before,
  .ripple::after { animation: none; opacity: .5; }
  .to-top { transform: none; }
  .btn:hover,
  .btn:focus-visible,
  .rail__cta:hover,
  .rail__cta:focus-visible { transform: none; }
}
