/* ==========================================================================
   亿百电竞站 · /assets/site.css
   共享层：重置 / 设计变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, hr { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 设计变量 ---------- */
:root {
  --ink: #07080D;
  --ink-2: #0E1A2B;
  --line: #2A2F3A;
  --paper: #F2EFE6;
  --muted: #8C97A8;
  --violet: #A06BFF;
  --cyan: #3FE0D0;
  --magenta: #FF3D8B;
  --moss: #7C9A6B;
  --clay: #C97B5A;

  --font-display: "Archivo Narrow", "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 74px;

  --r-sm: 10px;
  --r-lg: 22px;
  --r-organic: 34px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 底座与中文排版 ---------- */
html {
  background-color: var(--ink);
  font-size: 16px;
}

body {
  min-height: 100%;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 78% at 84% -12%, rgba(160, 107, 255, .11), transparent 62%),
    radial-gradient(92% 62% at -6% 104%, rgba(63, 224, 208, .075), transparent 60%),
    repeating-linear-gradient(180deg, rgba(242, 239, 230, .026) 0 1px, transparent 1px 5px);
  background-attachment: fixed, fixed, fixed;
}

p { max-width: 68ch; }

::selection { background: rgba(160, 107, 255, .38); color: #fff; }

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

/* ---------- 跳过链接 ---------- */
.yb-skip {
  position: fixed;
  top: 0;
  left: var(--gutter);
  z-index: 200;
  display: inline-block;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: #07080D;
  background: var(--cyan);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transform: translateY(-130%);
  transition: transform .18s var(--ease);
}
.yb-skip:focus-visible,
.yb-skip:focus { transform: translateY(0); }

/* ---------- 页头 ---------- */
.yb-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 8, 13, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.yb-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  width: 100%;
  max-width: 1560px;
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.yb-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 5px 0 5px 13px;
  border-left: 3px solid var(--violet);
}

.yb-brand__mark {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  color: var(--paper);
}

.yb-brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.yb-header__seam {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.yb-ticker {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  padding: 6px 15px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  background: rgba(14, 26, 43, .68);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.yb-ticker__item { display: inline-flex; align-items: center; gap: 6px; }
.yb-ticker b { color: var(--cyan); font-weight: 700; }
.yb-ticker__sep {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

.yb-nav { min-width: 0; }
.yb-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 26px);
}
.yb-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color .18s var(--ease);
}
.yb-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.yb-nav__list a:hover,
.yb-nav__list a:focus-visible { color: #fff; }
.yb-nav__list a:hover::after,
.yb-nav__list a:focus-visible::after { transform: scaleX(1); }
.yb-nav__list a[aria-current="page"] {
  color: #fff;
  font-weight: 500;
}
.yb-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--violet);
  box-shadow: 0 0 12px rgba(160, 107, 255, .85);
}

.yb-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.yb-nav-toggle:hover { border-color: var(--violet); color: #fff; }
.yb-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.yb-nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.yb-nav-toggle[aria-expanded="true"] .yb-nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.yb-nav-toggle[aria-expanded="true"] .yb-nav-toggle__bars i:nth-child(2) { opacity: 0; }
.yb-nav-toggle[aria-expanded="true"] .yb-nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.yb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 10px rgba(63, 224, 208, .45);
}

/* ---------- 页脚 ---------- */
.yb-footer {
  position: relative;
  margin-top: clamp(58px, 9vw, 132px);
  background: linear-gradient(180deg, rgba(14, 26, 43, .92), rgba(7, 8, 13, 1) 72%);
  border-top: 1px solid var(--line);
}
.yb-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(40%, 340px);
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), transparent);
}

.yb-footer__shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 74px) var(--gutter) 22px;
}

.yb-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) .85fr .85fr 1.35fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.yb-footer__mark {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .015em;
}
.yb-footer__sub {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.yb-footer__note {
  margin-top: 16px;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.yb-footer__icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--moss);
}

.yb-footer__title {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--clay);
}

.yb-footer__list li + li { margin-top: 9px; }
.yb-footer__list a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.yb-footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.yb-footer__list a:hover,
.yb-footer__list a:focus-visible { color: var(--paper); }
.yb-footer__list a:hover::after,
.yb-footer__list a:focus-visible::after { transform: scaleX(1); }

.yb-footer__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  max-width: none;
  padding: 9px 0;
  border-bottom: 1px solid rgba(42, 47, 58, .7);
}
.yb-footer__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.yb-footer__v {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}
.yb-footer__hint {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted);
}

.yb-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.yb-footer__base p { max-width: none; }
.yb-footer__status { display: inline-flex; align-items: center; gap: 9px; }
.yb-footer__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  animation: yb-pulse 2.6s ease-out infinite;
}
@keyframes yb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 154, 107, .55); }
  70% { box-shadow: 0 0 0 9px rgba(124, 154, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 154, 107, 0); }
}

/* ---------- 容器与栅格 ---------- */
.yb-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.yb-main {
  display: block;
  padding-bottom: clamp(40px, 6vw, 90px);
}
.yb-section { padding-block: clamp(34px, 5vw, 74px); }
.yb-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.yb-section__head p { max-width: 48ch; }

.yb-grid { display: grid; gap: clamp(16px, 2.4vw, 34px); }
.yb-grid--5-7 { grid-template-columns: 5fr 7fr; }
.yb-grid--7-5 { grid-template-columns: 7fr 5fr; }
.yb-grid--4-8 { grid-template-columns: 4fr 8fr; }
.yb-grid--3-6-3 { grid-template-columns: 3fr 6fr 3fr; }
.yb-grid--stack { grid-template-columns: 1fr; }

/* ---------- 面包屑与文字层级 ---------- */
.yb-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.yb-crumb a { color: var(--muted); transition: color .18s var(--ease); }
.yb-crumb a:hover,
.yb-crumb a:focus-visible { color: var(--cyan); }
.yb-crumb__sep { color: var(--line); }
.yb-crumb [aria-current="page"] { color: var(--paper); }

.yb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
}
.yb-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay);
}

.yb-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.yb-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.yb-h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.yb-lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.72;
  color: var(--muted);
}
.yb-note {
  max-width: 42ch;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
  border-left: 2px solid var(--clay);
}
.yb-index { display: flex; flex-direction: column; gap: 4px; }
.yb-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- 卡片与状态 ---------- */
.yb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  background: linear-gradient(160deg, rgba(14, 26, 43, .88), rgba(7, 8, 13, .92));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.yb-card:hover,
.yb-card:focus-within {
  border-color: var(--violet);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .48), 0 0 0 1px rgba(160, 107, 255, .18);
}
.yb-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.yb-card__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.yb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.yb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(42, 47, 58, .38);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.yb-tag--violet { color: var(--violet); border-color: rgba(160, 107, 255, .55); background: rgba(160, 107, 255, .1); }
.yb-tag--cyan { color: var(--cyan); border-color: rgba(63, 224, 208, .5); background: rgba(63, 224, 208, .1); }
.yb-tag--magenta { color: var(--magenta); border-color: rgba(255, 61, 139, .5); background: rgba(255, 61, 139, .12); }
.yb-tag--moss { color: var(--moss); border-color: rgba(124, 154, 107, .55); background: rgba(124, 154, 107, .12); }
.yb-tag--clay { color: var(--clay); border-color: rgba(201, 123, 90, .5); background: rgba(201, 123, 90, .12); }

.yb-data {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* ---------- 进度 ---------- */
.yb-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
}
.yb-meter__track {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  overflow: hidden;
  background: rgba(42, 47, 58, .85);
  border-radius: 2px;
}
.yb-meter__bar {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width .2s ease-out;
}

/* ---------- 图片容器（页面阶段放占位） ---------- */
.yb-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: var(--ink-2);
  background-image:
    linear-gradient(135deg, rgba(14, 26, 43, .95), rgba(7, 8, 13, .98)),
    repeating-linear-gradient(45deg, rgba(160, 107, 255, .07) 0 12px, transparent 12px 24px);
}
.yb-media > img,
.yb-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yb-media--wide { aspect-ratio: 21 / 9; }
.yb-media--portrait { aspect-ratio: 3 / 4; }
.yb-media--square { aspect-ratio: 1 / 1; }
.yb-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, .88));
}

/* ---------- 路径：时间轴 / 赛区轨道 / 全宽横幅 / 延伸入口 ---------- */
.yb-timeline {
  position: relative;
  padding-left: 26px;
}
.yb-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--violet), var(--clay) 52%, var(--line));
}
.yb-timeline__node {
  position: relative;
  padding-bottom: 26px;
}
.yb-timeline__node::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--violet);
  border-radius: 50%;
  background: var(--ink);
}
.yb-timeline__node[data-state="done"]::before { border-color: var(--moss); background: var(--moss); }
.yb-timeline__node[data-state="now"]::before {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(63, 224, 208, .16);
}
.yb-timeline__node[data-state="todo"]::before { border-color: var(--line); }

.yb-rail {
  display: flex;
  gap: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  cursor: grab;
}
.yb-rail > * { flex: 0 0 auto; scroll-snap-align: start; }
.yb-rail::-webkit-scrollbar { height: 6px; }
.yb-rail::-webkit-scrollbar-track { background: transparent; }
.yb-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.yb-rail.is-dragging { cursor: grabbing; user-select: none; }
.yb-rail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.yb-rail__head .yb-data { font-size: 12px; color: var(--muted); }

.yb-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(160, 107, 255, .18), rgba(63, 224, 208, .09) 46%, rgba(255, 61, 139, .16)),
    var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.yb-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(242, 239, 230, .05) 0 2px, transparent 2px 15px);
}
.yb-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 54px) var(--gutter);
}

.yb-extend { display: flex; flex-direction: column; gap: 14px; }
.yb-extend__list { display: flex; flex-direction: column; gap: 10px; }
.yb-extend__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  font-size: 14.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.yb-extend__list a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--violet);
}
.yb-extend__list a:hover,
.yb-extend__list a:focus-visible {
  color: var(--paper);
  border-color: var(--violet);
  background: rgba(160, 107, 255, .09);
}

/* ---------- 按钮 ---------- */
.yb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--paper);
  background-image: linear-gradient(90deg, rgba(160, 107, 255, .16), rgba(160, 107, 255, 0));
  border: 1px solid var(--violet);
  border-radius: 999px;
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.yb-btn:hover,
.yb-btn:focus-visible {
  color: #fff;
  border-color: var(--cyan);
  background-color: rgba(63, 224, 208, .13);
}
.yb-btn--ghost {
  border-color: var(--line);
  background-image: none;
}
.yb-btn--ghost:hover,
.yb-btn--ghost:focus-visible { border-color: var(--cyan); background-color: rgba(63, 224, 208, .1); }
.yb-btn--accent {
  border-color: var(--magenta);
  background-image: linear-gradient(90deg, rgba(255, 61, 139, .18), rgba(255, 61, 139, 0));
}
.yb-btn--accent:hover,
.yb-btn--accent:focus-visible { border-color: var(--magenta); background-color: rgba(255, 61, 139, .15); }

/* ---------- 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .yb-footer__grid { grid-template-columns: minmax(200px, 1fr) 1fr 1fr; row-gap: 38px; }
  .yb-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }

  .yb-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
    padding: 9px var(--gutter);
  }
  .yb-header__seam { display: none; }
  .yb-nav-toggle { display: inline-flex; }

  .yb-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 85;
    max-height: calc(100dvh - var(--header-h));
    padding: 10px var(--gutter) 28px;
    overflow-y: auto;
    background: rgba(7, 8, 13, .985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 60px rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .yb-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .yb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .yb-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
    border-bottom: 1px solid var(--line);
  }
  .yb-nav__list a::after { display: none; }
  .yb-nav__list a[aria-current="page"] { color: var(--violet); }
  .yb-nav__list a[aria-current="page"]::before {
    content: "";
    order: 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 10px var(--violet);
  }

  .yb-grid--5-7,
  .yb-grid--7-5,
  .yb-grid--4-8,
  .yb-grid--3-6-3 { grid-template-columns: 1fr; }

  .yb-rail { margin-inline: calc(var(--gutter) * -1); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .yb-footer__grid { grid-template-columns: 1fr; row-gap: 34px; }
  .yb-footer__contact { grid-column: auto; }
  .yb-footer__row { grid-template-columns: 1fr; gap: 4px; }
  .yb-footer__base { flex-direction: column; align-items: flex-start; }
  .yb-brand__sub { letter-spacing: .08em; }
}

/* ---------- 可访问性与动效偏好 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .yb-footer__pulse { box-shadow: none !important; }
}
