/* ============================================================
   环球体育赛事 / 共享层 /assets/site.css
   深空蓝 · 电光青 · 奶油纸白 / 切角 + 斜线 + 刻度
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

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

/* ---------- tokens ---------- */
:root {
  --ink: #0B1B33;
  --ink-deep: #06101F;
  --cyan: #35E0D8;
  --cream: #F4EFE6;
  --sand: #E4DCCC;
  --orange: #F2603C;
  --orange-ink: #C4401F;
  --lime: #B8F14A;
  --graphite: #2A2F38;
  --fog: #8FA3BF;
  --teal-line: #1E6E6B;
  --muted: #6B7280;
  --soft: #C3CFE2;

  --font-display: "Oswald", "Barlow Condensed", "Source Han Sans SC",
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: 20px;
}

/* ---------- 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6.4vw, 92px);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.1vw, 26px); }
h4 { font-size: 18px; }

.prose p { max-width: 38em; margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
  color: var(--graphite);
  max-width: 34em;
}

.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.num,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.note {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
}

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
  color: var(--cyan);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--cream);
}

/* ---- 通知带 ---- */
.topline {
  overflow: hidden;
  max-height: 64px;
  background: var(--ink-deep);
  opacity: 1;
  transition: max-height 0.34s var(--ease), opacity 0.22s var(--ease);
}

.site-header[data-scrolled] .topline {
  max-height: 0;
  opacity: 0;
}

.topline__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.topline__tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--ink-deep);
  background: var(--cyan);
  padding: 6px 10px 5px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 6px));
}

.topline__text {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fog);
}

/* ---- 浮岛胶囊 ---- */
.island-hold {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter) 12px;
}

.island {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  border: 1px solid rgba(53, 224, 216, 0.24);
  border-radius: 999px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 22px 38px -30px rgba(11, 27, 51, 0.9);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.island:hover { border-color: rgba(53, 224, 216, 0.42); }

.island__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.island__brand-mark {
  position: relative;
  width: 22px;
  height: 24px;
  flex: 0 0 auto;
}

.island__brand-mark::before,
.island__brand-mark::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  background: var(--cyan);
  transform: skewX(-14deg);
  transition: background-color 0.2s var(--ease);
}

.island__brand-mark::before {
  left: 0;
  height: 100%;
}

.island__brand-mark::after {
  left: 10px;
  height: 58%;
  background: var(--orange);
}

.island__brand:hover .island__brand-mark::before { background: var(--lime); }

.island__brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.island__brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cream);
}

.island__brand-descriptor {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--cyan);
}

/* ---- 导航 ---- */
.island__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--soft);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 6px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--ink-deep);
  background: var(--cyan);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after { transform: scaleX(0); }

/* ---- 头部动作区 ---- */
.island__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.island__alt {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--fog);
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.18s var(--ease);
}

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

/* ---- 移动按钮 ---- */
.island__toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(53, 224, 216, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.island__toggle:hover {
  border-color: var(--cyan);
  background: rgba(53, 224, 216, 0.1);
}

.island__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.island[data-open] .island__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.island[data-open] .island__toggle-bar:nth-child(2) { opacity: 0; }
.island[data-open] .island__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--cyan);
  color: var(--ink-deep);
}

.btn--solid:hover {
  background: var(--orange);
  color: #FFFFFF;
}

.btn--orange {
  background: var(--orange);
  color: #FFFFFF;
}

.btn--orange:hover {
  background: var(--orange-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(53, 224, 216, 0.48);
}

.btn--ghost:hover {
  background: rgba(53, 224, 216, 0.14);
  border-color: var(--cyan);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 0;
  background: var(--ink-deep);
  color: var(--soft);
  font-size: 14.5px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 24%,
    var(--orange) 24% 31%,
    var(--lime) 31% 37%,
    rgba(53, 224, 216, 0.14) 37% 100%
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 64%, rgba(53, 224, 216, 0.05) 64% 100%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
}

.footer__brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cream);
}

.footer__brand-link:hover .footer__wordmark { color: var(--cyan); }

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-line);
  width: max-content;
  max-width: 100%;
}

.footer__line {
  margin-top: 18px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

.footer__meta {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--teal-line);
  color: #6E8AA8;
}

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

.footer__col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__list {
  display: grid;
  gap: 11px;
}

.footer__list a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer__list a::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.footer__list a:hover { color: var(--cyan); }
.footer__list a:hover::before { transform: scaleX(1); }

/* ---- 联系区 ---- */
.footer__contact {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding: clamp(20px, 3vw, 28px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid rgba(53, 224, 216, 0.16);
  border-bottom: 1px solid rgba(53, 224, 216, 0.16);
}

.footer__contact-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
}

.footer__contact-value {
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--cream);
  word-break: break-word;
}

.footer__contact-note {
  grid-column: 1 / -1;
  max-width: 62em;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 13px;
  line-height: 1.72;
  color: var(--fog);
}

/* ---- 底栏 ---- */
.footer__bar {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__legal a {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer__legal a:hover { color: var(--cyan); }

.footer__copy,
.footer__icp { margin: 0; }

.footer__icp {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ============================================================
   通用容器与基础组件
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- 面包屑 ---- */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--teal-line);
}

.breadcrumb a {
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

/* ---- 标签 ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--ink-deep);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 7px 100%, 0 calc(100% - 5px));
}

.tag--cyan { background: var(--cyan); }
.tag--orange { background: var(--orange); color: #FFFFFF; }

/* ---- 切角面板 ---- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--sand);
  border: 1px solid var(--teal-line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.panel:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---- 图片容器 ---- */
.figure {
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--teal-line);
  aspect-ratio: 16 / 10;
}

.figure__frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: var(--cream);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

.figure__img,
.figure__frame > img,
.figure__frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s var(--ease);
}

.figure:hover .figure__img { transform: scale(1.03); }

.figure__caption {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }

/* ---- 回到顶部 ---- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 140;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--ink);
  border: 1px solid var(--teal-line);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    visibility 0.2s linear;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.to-top__arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
  transform: rotate(45deg) translate(2px, 2px);
  transition: border-color 0.18s var(--ease);
}

.to-top:hover .to-top__arrow { border-color: var(--ink-deep); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .island {
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 24px;
    padding: 10px 12px;
  }

  .island__brand { flex: 1 1 auto; }

  .island__toggle { display: flex; }

  .island__nav {
    flex: 0 0 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    transition: max-height 0.32s var(--ease), padding-top 0.24s var(--ease);
  }

  .island[data-open] .island__nav {
    max-height: 480px;
    padding-top: 8px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 13px 12px;
    border-top: 1px solid rgba(53, 224, 216, 0.14);
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .nav-item:first-child .nav-link { border-top: 0; }
  .nav-link::after { display: none; }

  .island__actions {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    transition: max-height 0.32s var(--ease), opacity 0.2s var(--ease),
      padding-top 0.24s var(--ease);
  }

  .island[data-open] .island__actions {
    max-height: 140px;
    opacity: 1;
    padding-top: 6px;
  }

  .island__alt {
    padding: 12px 6px;
    font-size: 13px;
  }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__contact { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --cut: 14px; }

  body { font-size: 16px; }

  .topline__inner {
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topline__text {
    font-size: 12px;
    line-height: 1.6;
    max-height: 3.2em;
    overflow: hidden;
  }

  .island-hold { padding-top: 8px; padding-bottom: 10px; }

  .island { border-radius: 20px; }

  .island__brand-name { font-size: 15.5px; }
  .island__brand-descriptor { font-size: 9.5px; letter-spacing: 0.16em; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .figure--wide .figure__frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .grid--3 { grid-template-columns: 1fr; }
  .tag { font-size: 10px; letter-spacing: 0.1em; }
  .to-top { width: 42px; height: 42px; }
}

/* ---------- 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .figure:hover .figure__img { transform: none; }
  .panel:hover { transform: none; }
  .btn:hover { transform: none; }
}
