/* ===================================================================
   链接体育 · 共享外壳样式 /assets/site.css
   =================================================================== */

:root {
  --ink: #071426;
  --ink-2: #0B1D33;
  --panel: #102A45;
  --paper: #F4E9D8;
  --paper-2: #FFF8EC;
  --cyan: #2EF2E0;
  --orange: #FF7A1A;
  --grey: #B9C7D6;
  --white: #FFFFFF;

  --lg-city: #35D0A0;
  --lg-campus: #8B7CFF;
  --lg-multi: #F5B84B;
  --lg-esports: #FF5C8A;

  --lgc: var(--cyan);
  --league: var(--cyan);

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

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

html[data-league="city"] { --league: var(--lg-city); }
html[data-league="campus"] { --league: var(--lg-campus); }
html[data-league="multi"] { --league: var(--lg-multi); }
html[data-league="esports"] { --league: var(--lg-esports); }

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

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

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

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--white);
  text-wrap: balance;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; display: block; }
main { display: block; }

::selection { background: var(--cyan); color: #04121f; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.panel--paper :focus-visible,
.contact-card :focus-visible {
  outline-color: var(--ink);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--sans);
  font-size: clamp(15px, .93rem + .18vw, 16.5px);
  line-height: 1.72;
  color: var(--grey);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 540px at 84% -10%, rgba(46, 242, 224, .10), transparent 62%),
    radial-gradient(900px 460px at 2% 6%, rgba(255, 122, 26, .07), transparent 60%),
    linear-gradient(rgba(46, 242, 224, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 224, .045) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 72px 72px, 72px 72px;
  -webkit-font-smoothing: antialiased;
}

#main-content { scroll-margin-top: 128px; }

.mono,
.mono-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.mono-num { font-size: 1.25em; font-weight: 700; color: var(--white); }

/* ---------- 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(42px, 6vw, 88px); }
.section--tight { padding-block: clamp(22px, 3vw, 40px); }

.stack > * + * { margin-top: var(--stack-gap, 18px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--split { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* ---------- 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.lede {
  font-size: clamp(1rem, .95rem + .4vw, 1.16rem);
  line-height: 1.78;
  color: #cdd9e5;
  max-width: 62ch;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease);
}
.btn--primary { background: var(--cyan); color: #04121f; }
.btn--primary:hover { background: var(--white); }
.btn--ghost { border-color: rgba(46, 242, 224, .45); color: var(--cyan); }
.btn--ghost:hover { background: rgba(46, 242, 224, .14); color: var(--white); }
.btn--paper { background: var(--paper); color: #17202b; }
.btn--paper:hover { background: var(--paper-2); }
.btn--alert { background: var(--orange); color: #1c0d02; }
.btn--alert:hover { background: #ff9550; }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--grey);
  border: 1px solid rgba(185, 199, 214, .28);
  background: rgba(16, 42, 69, .55);
}
.chip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--lgc);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.chip--cyan { color: var(--cyan); border-color: rgba(46, 242, 224, .42); }
.chip--orange { color: var(--orange); border-color: rgba(255, 122, 26, .42); }

.tint-city { --lgc: var(--lg-city); }
.tint-campus { --lgc: var(--lg-campus); }
.tint-multi { --lgc: var(--lg-multi); }
.tint-esports { --lgc: var(--lg-esports); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(160deg, rgba(16, 42, 69, .80), rgba(11, 29, 51, .72));
  border: 1px solid rgba(46, 242, 224, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.panel--paper {
  background: var(--paper);
  color: #17202b;
  border-color: rgba(23, 32, 43, .16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.panel--paper h2,
.panel--paper h3 { color: #101a26; }
.panel--line {
  background: transparent;
  border-style: dashed;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- 图像容器（页面阶段填充） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(46, 242, 224, .18);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(46, 242, 224, .16), transparent 62%),
    linear-gradient(150deg, #102a45, #071426);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 94% 100%, 0 100%);
}
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(46, 242, 224, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 224, .10) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px 16px 12px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: #dbe7f2;
  background: linear-gradient(transparent, rgba(7, 20, 38, .94));
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: clamp(14px, 2vw, 22px) 0; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(185, 199, 214, .62);
}
.breadcrumb__list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__list li + li::before {
  content: "/";
  color: rgba(46, 242, 224, .45);
}
.breadcrumb a { color: rgba(185, 199, 214, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 可展开组 ---------- */
.acc { border-top: 1px solid rgba(46, 242, 224, .16); }
.acc__item { border-bottom: 1px solid rgba(46, 242, 224, .16); }
.acc__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .98rem;
  color: var(--white);
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--cyan);
  transition: transform .2s var(--ease);
}
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__body {
  padding: 0 4px 18px;
  font-size: .92rem;
  color: var(--grey);
}

/* ===================================================================
   头部
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121f;
  font-weight: 800;
  font-size: .85rem;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; }

.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scrollbar__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  will-change: transform;
}

.cmdbar {
  background: rgba(7, 20, 38, .90);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(46, 242, 224, .18);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, .95);
}

.cmdbar__row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  min-height: 58px;
}

.cmdbar__row--nav {
  min-height: 52px;
  border-top: 1px dashed rgba(46, 242, 224, .14);
  flex-wrap: wrap;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #04121f;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .28em;
  color: var(--cyan);
  opacity: .9;
}
.brand--footer .brand__mark { width: 32px; height: 32px; font-size: .8rem; }
.brand--footer .brand__name { font-size: 1.1rem; }

.cmdbar__hint {
  display: none;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  color: rgba(185, 199, 214, .55);
  white-space: nowrap;
}
@media (min-width: 1120px) { .cmdbar__hint { display: block; } }

/* 联赛切换器 */
.league {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.league__label {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(185, 199, 214, .6);
  white-space: nowrap;
}
.league__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(185, 199, 214, .22);
  color: var(--grey);
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease),
    background-color .18s var(--ease);
}
.league__btn:hover { border-color: rgba(185, 199, 214, .5); color: var(--white); }
.league__btn[aria-pressed="true"] {
  border-color: var(--lgc);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 -2px 0 0 var(--lgc);
}
.league__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--lgc);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(46, 242, 224, .35);
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(46, 242, 224, .12); color: var(--white); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 主导航 */
.nav { flex: 1 1 auto; min-width: 0; }
.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px 10px;
  color: var(--grey);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease),
    border-color .18s var(--ease);
}
.nav__link:hover {
  color: var(--white);
  background: rgba(46, 242, 224, .09);
  border-color: rgba(46, 242, 224, .22);
}
.nav__link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121f;
  box-shadow: inset 0 -3px 0 0 #04121f;
}
.nav__idx {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .06em;
  color: rgba(46, 242, 224, .62);
}
.nav__link[aria-current="page"] .nav__idx { color: rgba(4, 18, 31, .6); }

/* 赛程入口 */
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 17px;
  background: var(--cyan);
  color: #04121f;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: background-color .18s var(--ease);
}
.entry-link:hover { background: var(--white); }
.entry-link__arrow { font-family: var(--mono); }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* 平板及以下：导航折叠 */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .league__label { display: none; }
  .league { margin-left: auto; }

  .nav {
    display: none;
    order: 3;
    flex: 1 0 100%;
  }
  .nav[data-open] {
    display: block;
    animation: navIn .22s var(--ease) both;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 4px 0 14px;
  }
  .nav__link { width: 100%; padding: 12px 12px; }
  .entry-link {
    order: 0;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    padding: 11px 16px;
  }
}

@media (max-width: 760px) {
  .cmdbar__row { min-height: 54px; gap: 10px; }
  .league__btn { width: 26px; height: 26px; padding: 0; justify-content: center; }
  .league__txt { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .brand__name { font-size: .96rem; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .nav__link { padding: 9px 9px 10px; font-size: .82rem; }
  .nav__idx { display: none; }
  .league__btn { padding: 5px 8px; font-size: .7rem; }
}

/* ===================================================================
   页脚
   =================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-2);
  border-top: 1px solid rgba(46, 242, 224, .18);
  color: var(--grey);
}

.footer__inner { padding-block: clamp(36px, 5vw, 64px) clamp(18px, 2.4vw, 28px); }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
@media (min-width: 860px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 56px;
  }
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__pitch {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.footer__meta {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: rgba(185, 199, 214, .55);
}

/* 纸色联系块 */
.contact-card {
  background: var(--paper);
  color: #17202b;
  padding: clamp(20px, 2.6vw, 30px);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 90% 100%, 0 100%);
}
.contact-card__label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a6a52;
  margin-bottom: 14px;
}
.contact-card__list { display: grid; gap: 10px; }
.contact-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: .86rem;
}
.contact-card__k {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: #8a7a60;
  flex: 0 0 42px;
}
.contact-card__v {
  font-weight: 700;
  color: #17202b;
  word-break: break-all;
}
.contact-card__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(23, 32, 43, .22);
  font-size: .78rem;
  line-height: 1.68;
  color: #4d4335;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  border: 1px solid rgba(23, 32, 43, .35);
  background: transparent;
  color: #4a3f2e;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease),
    border-color .16s var(--ease);
}
.copy-btn:hover { background: rgba(23, 32, 43, .1); }
.copy-btn[data-copied] { border-color: #0f7a6a; color: #0f7a6a; }

/* 四栏 */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px dashed rgba(46, 242, 224, .16);
}
@media (min-width: 760px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer__title {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer__list { display: grid; gap: 8px; }
.footer__list a {
  font-size: .87rem;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__list a:hover { color: var(--white); border-bottom-color: var(--cyan); }

/* 底栏 */
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(46, 242, 224, .14);
}
.footer__copy {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(185, 199, 214, .58);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a {
  font-size: .76rem;
  color: rgba(185, 199, 214, .78);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__legal a:hover { color: var(--cyan); }

/* 浅色块内文字的兜底 */
.panel--paper a,
.contact-card a { color: #101a26; }

/* ---------- 无障碍与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
