/* ============================================================
   易倍体育 CN 中文站 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { 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; }

[id] { scroll-margin-top: 120px; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --deep: #061A2B;
  --tactic: #0E2E4A;
  --cyan: #3DE0FF;
  --signal: #FF6A2B;
  --violet: #7A6BFF;
  --green: #2BD9A0;
  --amber: #FFB020;
  --paper: #F4F7FA;
  --steel: #24455E;
  --ink: #0A0F14;

  /* 派生 */
  --paper-70: rgba(244, 247, 250, .70);
  --paper-55: rgba(244, 247, 250, .55);
  --hairline: 1px solid var(--steel);
  --line-hard: 2px solid var(--steel);

  /* 字体 */
  --font-display: "Helvetica Neue", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  /* 形状 */
  --pill: 999px;
  --shadow-hard: 6px 6px 0 rgba(61, 224, 255, .14);
  --shadow-signal: 6px 6px 0 rgba(255, 106, 43, .20);
  --measure: 36em;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  min-height: 100vh;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--paper);
}

::selection { background: var(--cyan); color: var(--ink); }

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

/* ---------- 4. 容器 / 栅格 ---------- */
.ybs-container {
  width: min(1400px, 100% - 48px);
  margin-inline: auto;
}

.ybs-section { padding-block: clamp(36px, 6vw, 88px); }

.ybs-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

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

.ybs-col-4 { grid-column: span 4; }
.ybs-col-6 { grid-column: span 6; }
.ybs-col-8 { grid-column: span 8; }
.ybs-col-12 { grid-column: span 12; }

.ybs-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--steel);
}

/* ---------- 5. 文字组件 ---------- */
.ybs-display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--paper);
}

.ybs-h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -.015em;
}

.ybs-h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -.01em;
}

.ybs-lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--paper);
}

.ybs-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ybs-prose p {
  max-width: var(--measure);
  color: var(--paper-70);
}

.ybs-prose p + p { margin-top: 1em; }

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

/* ---------- 6. 跳过链接 ---------- */
.ybs-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .18s ease-out;
}

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

/* ---------- 7. 头部 ---------- */
.ybs-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 24px 0 8px;
  transition: padding .25s ease;
}

.ybs-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 43, .97) 0%, rgba(6, 26, 43, .78) 58%, rgba(6, 26, 43, 0) 100%);
}

.ybs-header[data-shrink] { padding-top: 10px; }

.ybs-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(36, 69, 94, .55);
}

.ybs-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);
  transition: width .12s linear;
}

.ybs-nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 导航胶囊浮岛 */
.ybs-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 9px 7px 12px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  background: rgba(14, 46, 74, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding .25s ease, background .25s ease, border-radius .25s ease;
}

.ybs-header[data-shrink] .ybs-nav {
  padding-block: 4px;
  background: rgba(14, 46, 74, .97);
}

/* 品牌 */
.ybs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: var(--pill);
  text-decoration: none;
  color: var(--paper);
}

.ybs-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--cyan) 0%, var(--violet) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 0 0 2px rgba(61, 224, 255, .22), 4px 4px 0 rgba(61, 224, 255, .18);
}

.ybs-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.ybs-brand__line {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--paper);
}

.ybs-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* 移动按钮 */
.ybs-nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .16s ease, border-color .16s ease;
}

.ybs-nav__toggle:hover { border-color: var(--cyan); background: rgba(61, 224, 255, .10); }

.ybs-nav__toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 5px 0 var(--cyan), 0 -5px 0 var(--cyan);
}

/* 导航列表 */
.ybs-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
}

.ybs-nav__item { display: flex; }

.ybs-nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pill);
  color: rgba(244, 247, 250, .78);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.ybs-nav__link:hover { color: var(--paper); background: rgba(61, 224, 255, .12); }

.ybs-nav__link[aria-current="page"] {
  color: var(--deep);
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(61, 224, 255, .6), 0 0 16px rgba(61, 224, 255, .32);
}

/* 赛程快捷浮岛 */
.ybs-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  background: rgba(6, 26, 43, .9);
}

.ybs-quick__link {
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--signal);
  color: #1B0A02;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(255, 106, 43, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}

.ybs-quick__link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(255, 106, 43, .26);
}

.ybs-quick__badge {
  padding: 4px 9px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  background: rgba(61, 224, 255, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ---------- 8. 页脚 ---------- */
.ybs-footer {
  margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--steel);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(61, 224, 255, .10), transparent 62%),
    linear-gradient(180deg, rgba(14, 46, 74, .65) 0%, rgba(6, 26, 43, .98) 58%);
  color: var(--paper-70);
  font-size: 15px;
}

.ybs-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--steel);
}

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

.ybs-footer__tagline {
  max-width: 22em;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--paper);
}

.ybs-footer__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--steel);
  background: var(--steel);
  box-shadow: var(--shadow-hard);
}

.ybs-stat {
  padding: 16px 14px;
  background: rgba(6, 26, 43, .92);
}

.ybs-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--paper-55);
}

.ybs-stat__num {
  display: block;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cyan);
}

.ybs-footer__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--steel);
}

.ybs-footer__col { min-width: 0; }

.ybs-footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ybs-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.ybs-footer__link {
  display: inline-block;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  color: var(--paper-70);
  font-size: 14px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}

.ybs-footer__link:hover,
.ybs-footer__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.ybs-footer__contact { display: block; }

.ybs-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(36, 69, 94, .9);
}

.ybs-contact-row__label {
  flex: 0 0 auto;
  min-width: 5.6em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.ybs-contact-row__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.ybs-contact-row__value--text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.ybs-copy {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.ybs-copy:hover { background: rgba(61, 224, 255, .14); }

.ybs-copy[data-copied="true"] {
  background: var(--green);
  border-color: transparent;
  color: var(--ink);
}

.ybs-copy__status {
  min-height: 1.5em;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--green);
}

.ybs-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--steel);
}

.ybs-footer__icp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--paper);
}

.ybs-footer__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-55);
}

.ybs-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 44px;
  font-size: 12.5px;
  color: var(--paper-55);
}

.ybs-footer__copy { font-family: var(--font-mono); letter-spacing: .02em; }

.ybs-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.ybs-footer__meta .ybs-footer__link { font-size: 12.5px; }

/* 返回顶部 */
.ybs-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  background: rgba(14, 46, 74, .95);
  color: var(--cyan);
  font-size: 17px;
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.ybs-totop[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 9. 按钮 ---------- */
.ybs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.ybs-btn:hover { transform: translate(-2px, -2px); }

.ybs-btn--primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(61, 224, 255, .22);
}

.ybs-btn--primary:hover { box-shadow: 8px 8px 0 rgba(61, 224, 255, .30); }

.ybs-btn--signal {
  background: var(--signal);
  color: #1B0A02;
  box-shadow: 5px 5px 0 rgba(255, 106, 43, .22);
}

.ybs-btn--signal:hover { box-shadow: 8px 8px 0 rgba(255, 106, 43, .30); }

.ybs-btn--ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--paper);
}

.ybs-btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.ybs-btn--small { padding: 8px 16px; font-size: 13px; }

/* ---------- 10. 卡片 / 徽章 / 标签 ---------- */
.ybs-card {
  padding: clamp(18px, 2.4vw, 28px);
  border: var(--line-hard);
  border-radius: 18px;
  background: rgba(14, 46, 74, .58);
  box-shadow: var(--shadow-hard);
}

.ybs-card--paper {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(61, 224, 255, .35);
}

.ybs-card--paper h2,
.ybs-card--paper h3 { color: var(--ink); }

.ybs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  white-space: nowrap;
}

.ybs-badge--home { color: var(--cyan); }
.ybs-badge--away { color: var(--signal); }
.ybs-badge--done { color: var(--green); }
.ybs-badge--pending { color: var(--amber); }

.ybs-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--steel);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--paper-70);
}

/* ---------- 11. 面包屑 ---------- */
.ybs-breadcrumb {
  padding-top: 18px;
  font-size: 13px;
  color: var(--paper-55);
}

.ybs-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ybs-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ybs-breadcrumb__item + .ybs-breadcrumb__item::before {
  content: "/";
  color: var(--steel);
}

.ybs-breadcrumb__link {
  color: var(--paper-70);
  text-decoration: none;
  transition: color .16s ease;
}

.ybs-breadcrumb__link:hover { color: var(--cyan); }

.ybs-breadcrumb__current { color: var(--paper); }

/* ---------- 12. 图片容器 ---------- */
.ybs-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--line-hard);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(61, 224, 255, .18) 0%, rgba(122, 107, 255, .14) 45%, rgba(255, 106, 43, .12) 100%);
}

.ybs-media img,
.ybs-media picture,
.ybs-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ybs-media--wide { aspect-ratio: 21 / 9; }
.ybs-media--tall { aspect-ratio: 3 / 4; }
.ybs-media--square { aspect-ratio: 1 / 1; }
.ybs-media--cut { clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); }

.ybs-media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(6, 26, 43, .94) 0%, rgba(6, 26, 43, 0) 100%);
}

/* ---------- 13. 筛选 ---------- */
.ybs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ybs-filter__btn {
  padding: 7px 14px;
  border: 1px solid var(--steel);
  border-radius: var(--pill);
  background: rgba(14, 46, 74, .5);
  color: var(--paper-70);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.ybs-filter__btn:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.ybs-filter__btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(61, 224, 255, .25);
}

.ybs-filter__item[hidden] { display: none !important; }

/* ---------- 14. 手风琴 ---------- */
.ybs-acc { border-top: 1px solid var(--steel); }

.ybs-acc__item { border-bottom: 1px solid var(--steel); }

.ybs-acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.ybs-acc__trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
}

.ybs-acc__trigger[aria-expanded="true"]::after { content: "–"; }

.ybs-acc__panel {
  padding: 0 4px 20px;
  color: var(--paper-70);
  font-size: 15px;
  line-height: 1.8;
}

.ybs-acc__panel[hidden] { display: none; }

/* ---------- 15. 脉冲与显现 ---------- */
@keyframes ybs-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.ybs-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: ybs-pulse 2.4s ease-in-out infinite;
}

.ybs-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.ybs-js [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1200px) {
  .ybs-nav__link { padding: 8px 11px; font-size: 14px; }
  .ybs-quick__link { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .ybs-header { padding-top: 14px; }
  .ybs-header[data-shrink] { padding-top: 8px; }

  .ybs-nav {
    flex-wrap: wrap;
    border-radius: 24px;
    gap: 8px;
    padding: 8px 10px;
  }

  .ybs-nav__toggle { display: inline-flex; }

  .ybs-nav__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    width: 100%;
    gap: 2px;
    margin: 0;
    padding: 8px 0 4px;
  }

  .ybs-nav[data-open] .ybs-nav__list { display: flex; }

  .ybs-nav[data-open] .ybs-nav__toggle {
    border-color: var(--cyan);
    background: rgba(61, 224, 255, .14);
  }

  .ybs-nav[data-open] .ybs-nav__toggle-bar {
    background: var(--signal);
    box-shadow: 0 5px 0 var(--signal), 0 -5px 0 var(--signal);
  }

  .ybs-nav__item { width: 100%; }

  .ybs-nav__link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .ybs-nav__link[aria-current="page"] { box-shadow: none; }

  .ybs-footer__top { grid-template-columns: minmax(0, 1fr); }
  .ybs-footer__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .ybs-col-4,
  .ybs-col-6,
  .ybs-col-8 { grid-column: span 12; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .ybs-container { width: min(1400px, 100% - 32px); }
  .ybs-footer__links { grid-template-columns: minmax(0, 1fr); }
  .ybs-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .ybs-brand__sub { display: none; }
  .ybs-brand__line { font-size: 15px; }
  .ybs-brand__mark { width: 30px; height: 30px; font-size: 15px; }
  .ybs-nav__toggle { padding: 7px 10px; font-size: 12px; }
  .ybs-quick { padding: 5px 6px 5px 5px; gap: 6px; }
  .ybs-quick__link { padding: 6px 10px; font-size: 12px; }
  .ybs-quick__badge { font-size: 10px; padding: 3px 7px; }
  .ybs-stat { padding: 12px 10px; }
  .ybs-stat__label { font-size: 10px; letter-spacing: .08em; }
  .ybs-totop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .ybs-pulse { animation: none; opacity: .85; }

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

  .ybs-btn:hover,
  .ybs-quick__link:hover { transform: none; }
}
