/* ===== 博鱼体育 · 共享样式 /assets/site.css ===== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:root {
  --ink: #061A24;
  --abyss: #0B3B44;
  --cyan: #19C8B8;
  --fin: #FF6A2A;
  --sand: #E7C46A;
  --paper: #F2E9D8;
  --mist: #E8F1F2;
  --graphite: #1B2A30;
  --mute: #9FB9BE;
  --coral: #D9564A;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 999px;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 32px);

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --hair: rgba(25, 200, 184, .18);
}

/* ---------- 基础排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--mist);
}

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

.by-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.by-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--fin);
  color: #0A1F27;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s var(--ease);
}
.by-skip:focus-visible { transform: translate(-50%, 0); }

/* ---------- 容器与节奏 ---------- */
.by-wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.by-section { padding-block: clamp(48px, 7vw, 96px); }

.by-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.by-grid--split { grid-template-columns: minmax(0, 1fr); }
.by-grid--halves { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 960px) {
  .by-grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .by-grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.by-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan);
}
.by-eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--fin));
}

.by-title-xl {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--mist);
}

.by-title-lg {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -.025em;
}

.by-lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(232, 241, 242, .78);
}

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

/* ---------- 按钮与标签 ---------- */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease), transform .24s var(--ease);
}

.by-btn--fin {
  background: var(--fin);
  color: #0A1F27;
  box-shadow: 0 8px 22px rgba(255, 106, 42, .22);
}
.by-btn--fin:hover { background: #FF8351; transform: translateY(-1px); }

.by-btn--quiet {
  background: rgba(25, 200, 184, .1);
  color: var(--mist);
  border-color: rgba(25, 200, 184, .34);
}
.by-btn--quiet:hover { background: rgba(25, 200, 184, .2); border-color: var(--cyan); }

.by-btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: rgba(232, 241, 242, .34);
}
.by-btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.by-btn--cyan {
  background: var(--cyan);
  color: #06222A;
}
.by-btn--cyan:hover { background: #45DBCE; }

.by-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--pill);
  border: 1px solid rgba(25, 200, 184, .34);
  background: rgba(25, 200, 184, .08);
  color: var(--mist);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.by-chip:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(25, 200, 184, .16); }

.by-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(231, 196, 106, .14);
  border: 1px solid rgba(231, 196, 106, .38);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
}

/* ---------- 数据舱卡 ---------- */
.by-card {
  position: relative;
  display: block;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid var(--hair);
  background: linear-gradient(158deg, #0B3B44 0%, #061A24 88%);
  color: var(--mist);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.by-card:hover,
.by-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(25, 200, 184, .55);
  box-shadow: 0 18px 42px rgba(3, 14, 20, .55);
}
.by-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--mute);
}

/* ---------- 面包屑 ---------- */
.by-crumb { font-size: .82rem; color: var(--mute); }
.by-crumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.by-crumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(159, 185, 190, .5);
}
.by-crumb a:hover { color: var(--cyan); }

/* ---------- 暖纸长文区 ---------- */
.by-prose {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 52px);
  max-width: 76ch;
  line-height: 1.85;
  box-shadow: 0 24px 60px rgba(3, 14, 20, .35);
}
.by-prose h2,
.by-prose h3 { color: var(--ink); margin: 1.6em 0 .55em; }
.by-prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.by-prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.by-prose h2:first-child,
.by-prose h3:first-child { margin-top: 0; }
.by-prose p { margin: 0 0 1em; }
.by-prose a { color: var(--abyss); text-decoration: underline; text-underline-offset: 3px; }
.by-prose a:hover { color: var(--coral); }
.by-prose strong { color: #04161D; }
.by-prose ul,
.by-prose ol { margin: 0 0 1em; padding-left: 1.25em; list-style: disc; }
.by-prose ol { list-style: decimal; }
.by-prose li { margin-bottom: .4em; }
.by-prose li::marker { color: var(--fin); }
.by-prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--fin);
  color: #2B444B;
  font-style: normal;
}
.by-prose code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: .1em .4em;
  border-radius: 6px;
  background: rgba(11, 59, 68, .1);
}

/* ---------- 横向条带 ---------- */
.by-rail {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 200, 184, .45) transparent;
  cursor: grab;
}
.by-rail[data-dragging="true"] { cursor: grabbing; scroll-snap-type: none; }
.by-rail::-webkit-scrollbar { height: 6px; }
.by-rail::-webkit-scrollbar-track { background: transparent; }
.by-rail::-webkit-scrollbar-thumb { background: rgba(25, 200, 184, .45); border-radius: var(--pill); }
.by-rail__item { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }

/* ---------- 图片容器基础 ---------- */
.by-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #0B3B44, #061A24);
  box-shadow: inset 0 0 0 1px var(--hair);
  isolation: isolate;
}
.by-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(25, 200, 184, .22), transparent 62%),
    radial-gradient(90% 80% at 6% 100%, rgba(255, 106, 42, .18), transparent 60%);
}
.by-media img,
.by-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.by-media--wide img,
.by-media--wide .by-media__img { aspect-ratio: 21 / 9; }
.by-media--tall img,
.by-media--tall .by-media__img { aspect-ratio: 4 / 5; }

/* ---------- 折叠段落 ---------- */
.by-fold {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(11, 59, 68, .18);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.by-fold + .by-fold { margin-top: 12px; }
.by-fold__head { margin: 0; }
.by-fold__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  transition: background-color .2s var(--ease);
}
.by-fold__toggle:hover { background: rgba(11, 59, 68, .06); }
.by-fold__toggle::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--abyss);
}
.by-fold__toggle[aria-expanded="true"]::after { content: "–"; }
.by-fold__panel { padding: 0 18px 18px; color: #17323A; }
.by-fold__panel[hidden] { display: none; }

/* ============================================================
   头部：悬浮胶囊浮岛
   ============================================================ */
.by-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  transition: padding .3s var(--ease);
}
.by-header[data-scrolled="true"] { padding-top: 6px; }

.by-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px 12px 9px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(25, 200, 184, .2);
  background: linear-gradient(120deg, rgba(11, 59, 68, .94), rgba(6, 26, 36, .92));
  box-shadow: 0 16px 40px rgba(2, 10, 15, .5), inset 0 1px 0 rgba(232, 241, 242, .07);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.by-header[data-scrolled="true"] .by-header__shell {
  padding-block: 6px;
  border-color: rgba(25, 200, 184, .36);
  box-shadow: 0 10px 26px rgba(2, 10, 15, .55);
}
.by-header[data-open="true"] .by-header__shell { border-color: var(--cyan); }

/* 品牌 */
.by-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  border-radius: var(--pill);
  padding: 3px 6px 3px 2px;
}
.by-brand__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  overflow: hidden;
  background: radial-gradient(125% 125% at 18% 12%, #19C8B8 0%, #0B3B44 60%, #061A24 100%);
  box-shadow: inset 0 0 0 1px rgba(25, 200, 184, .5);
  transition: width .3s var(--ease), height .3s var(--ease), border-radius .3s var(--ease);
}
.by-brand__fin {
  position: absolute;
  right: -7px;
  bottom: -9px;
  width: 27px;
  height: 27px;
  background: var(--fin);
  border-radius: 62% 38% 70% 30% / 48% 62% 38% 52%;
  transform: rotate(-18deg);
  opacity: .95;
}
.by-brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.by-brand__name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--mist);
  white-space: nowrap;
}
.by-brand__tagline {
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--mute);
  white-space: nowrap;
  max-height: 18px;
  overflow: hidden;
  transition: max-height .3s var(--ease), opacity .25s var(--ease);
}
.by-header[data-scrolled="true"] .by-brand__tagline { max-height: 0; opacity: 0; }
.by-header[data-scrolled="true"] .by-brand__mark { width: 32px; height: 32px; border-radius: 11px; }
.by-brand:focus-visible { outline-offset: 4px; }

/* 主导航 */
.by-nav { display: flex; align-items: center; margin-left: auto; }

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

.by-nav__link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--pill);
  font-size: .9rem;
  font-weight: 700;
  color: rgba(232, 241, 242, .8);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.by-nav__link:hover { color: var(--mist); background: rgba(25, 200, 184, .14); }
.by-nav__link[aria-current="page"] {
  background: var(--fin);
  color: #0A1F27;
  box-shadow: 0 6px 16px rgba(255, 106, 42, .28);
}
.by-nav__link[aria-current="page"]:hover { background: var(--fin); color: #0A1F27; }
.by-nav__link:focus-visible {
  outline: 2px solid var(--fin);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px rgba(25, 200, 184, .85);
}

/* 导航内快捷口袋（仅移动面板显示） */
.by-nav__pocket { display: none; }
.by-nav__pocket-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--sand);
  margin-bottom: 10px;
}
.by-nav__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.by-nav__cta { width: 100%; margin-top: 14px; }

/* 右侧动作区 */
.by-header__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.by-quick {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 90;
  width: min(272px, calc(100vw - var(--gutter) * 2));
  display: none;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(25, 200, 184, .32);
  background: linear-gradient(165deg, #0B3B44, #061A24);
  box-shadow: 0 24px 56px rgba(2, 10, 15, .65);
}
.by-quick[data-open="true"] { display: block; }
.by-quick__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--sand);
  margin-bottom: 10px;
}
.by-quick__list { display: flex; flex-wrap: wrap; gap: 8px; }

/* 移动端开关 */
.by-navtoggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 15px 9px 13px;
  border-radius: var(--pill);
  border: 1px solid rgba(25, 200, 184, .34);
  background: rgba(25, 200, 184, .1);
  color: var(--mist);
  font-size: .84rem;
  font-weight: 700;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.by-navtoggle:hover { border-color: var(--cyan); background: rgba(25, 200, 184, .18); }
.by-navtoggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.by-navtoggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.by-navtoggle[aria-expanded="true"] .by-navtoggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.by-navtoggle[aria-expanded="true"] .by-navtoggle__bars span:nth-child(2) { opacity: 0; }
.by-navtoggle[aria-expanded="true"] .by-navtoggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.by-navtoggle__label { letter-spacing: .06em; }

/* 头部细线与滚动进度 */
.by-header__line {
  width: 100%;
  max-width: var(--shell);
  margin: 6px auto 0;
  height: 2px;
  border-radius: var(--pill);
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(25, 200, 184, .22), rgba(255, 106, 42, .18), transparent);
}
.by-progress { display: block; width: 100%; height: 100%; }
.by-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--sand) 62%, var(--fin));
}

/* ============================================================
   页脚：矩阵底板
   ============================================================ */
.by-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #04141C 0%, #0B3B44 46%, #04141C 100%);
  border-top: 1px solid rgba(25, 200, 184, .26);
  color: var(--mist);
  isolation: isolate;
}
.by-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(25, 200, 184, .18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .2) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .2) 72%, transparent 100%);
  pointer-events: none;
}
.by-footer__glow {
  position: absolute;
  top: -230px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 42, .22) 0%, rgba(255, 106, 42, 0) 66%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.by-footer__inner {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
}
@media (min-width: 900px) {
  .by-footer__inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
}

.by-brand--footer { padding: 0; margin-bottom: 16px; }
.by-brand--footer .by-brand__name { font-size: 1.12rem; }
.by-brand--footer .by-brand__mark { width: 42px; height: 42px; border-radius: 14px; }

.by-footer__tagline {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--mist);
  margin-bottom: 10px;
}
.by-footer__summary {
  max-width: 40ch;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--mute);
}
.by-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.by-footer__cols {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}
@media (min-width: 560px) {
  .by-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .by-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.by-footer__heading {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: var(--cyan);
}
.by-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--fin));
}

.by-footer__links { display: flex; flex-direction: column; gap: 10px; }
.by-footer__links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: .9rem;
  color: rgba(232, 241, 242, .78);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.by-footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(25, 200, 184, .5);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.by-footer__links a:hover { color: var(--cyan); transform: translateX(2px); }
.by-footer__links a:hover::before { background: var(--fin); }

.by-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.by-contact-item { display: flex; flex-direction: column; gap: 2px; }
.by-contact-item__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--mute);
}
.by-contact-item__value {
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(232, 241, 242, .88);
  word-break: break-word;
}
.by-contact-item:first-child .by-contact-item__value,
.by-contact-item:nth-child(2) .by-contact-item__value {
  font-family: var(--font-mono);
  letter-spacing: .01em;
  color: var(--sand);
}

.by-footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 32px;
  border-top: 1px dashed rgba(159, 185, 190, .28);
  font-size: .8rem;
  color: var(--mute);
}
.by-footer__copyright { font-family: var(--font-mono); letter-spacing: .02em; }
.by-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.by-footer__legal a {
  color: rgba(232, 241, 242, .76);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.by-footer__legal a:hover { color: var(--cyan); border-bottom-color: rgba(25, 200, 184, .6); }
.by-footer__icp { font-family: var(--font-mono); letter-spacing: .04em; }

/* 返回顶部 */
.by-totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(25, 200, 184, .4);
  background: var(--graphite);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.by-totop[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.by-totop:hover { border-color: var(--fin); color: var(--fin); }

/* ============================================================
   响应式：胶囊 → 浮层面板
   ============================================================ */
@media (max-width: 1060px) {
  .by-header__shell { flex-wrap: nowrap; padding-right: 9px; }

  .by-navtoggle { display: inline-flex; }
  .by-header__actions { display: none; }

  .by-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 85;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 14px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border-radius: 26px;
    border: 1px solid rgba(25, 200, 184, .26);
    background: linear-gradient(170deg, #0B3B44 0%, #061A24 100%);
    box-shadow: 0 28px 64px rgba(2, 10, 15, .7);
  }
  .by-nav[data-open="true"] { display: flex; }

  .by-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .by-nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--mist);
    background: rgba(232, 241, 242, .04);
  }
  .by-nav__link:hover { background: rgba(25, 200, 184, .14); }
  .by-nav__link[aria-current="page"] {
    background: rgba(255, 106, 42, .16);
    color: var(--mist);
    box-shadow: inset 3px 0 0 var(--fin);
  }
  .by-nav__link[aria-current="page"]:hover { background: rgba(255, 106, 42, .22); }

  .by-nav__pocket {
    display: block;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(159, 185, 190, .3);
  }
}

@media (max-width: 560px) {
  .by-brand__tagline { display: none; }
  .by-brand__name { font-size: .96rem; }
  .by-header__shell { border-radius: 22px; padding-left: 12px; }
  .by-navtoggle__label { display: none; }
  .by-navtoggle { padding: 10px 12px; }
  .by-nav { border-radius: 22px; }
  .by-totop { width: 42px; height: 42px; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .by-card:hover,
  .by-card:focus-visible,
  .by-btn--fin:hover,
  .by-footer__links a:hover,
  .by-totop { transform: none; }
}
