/* =========================================================
   YT赛事 · 全站共享样式  /assets/site.css
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #071512;
  --forest: #0C2B24;
  --stand: #123D32;
  --cyan: #39F2D0;
  --cyan-soft: rgba(57, 242, 208, .12);
  --mist: #E9FFF9;
  --text: #DCEFE9;
  --orange: #FF8A3D;
  --gold: #F5C84C;
  --fog: #A9BDB7;
  --line: #2A5A4E;
  --line-soft: rgba(42, 90, 78, .55);

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

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--ink);
  background-image:
    radial-gradient(760px 460px at 84% -8%, rgba(57, 242, 208, .09), transparent 64%),
    radial-gradient(620px 380px at 2% 0%, rgba(255, 138, 61, .055), transparent 70%);
  background-repeat: no-repeat;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: inherit; }

::selection { background: rgba(57, 242, 208, .28); color: var(--mist); }

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

body.sx-lock { overflow: hidden; }

/* ---------- 4. 布局容器 ---------- */
.sx-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sx-section { padding-block: clamp(46px, 6.5vw, 96px); }
.sx-section--tight { padding-block: clamp(28px, 4vw, 56px); }

.sx-grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.sx-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.sx-grid--asym { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.sx-grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 5. 文字层级 ---------- */
.sx-h1,
.sx-h2,
.sx-h3 {
  font-family: var(--font-display);
  color: var(--mist);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.06;
}

.sx-h1 { font-size: clamp(32px, 5.4vw, 72px); }
.sx-h2 { font-size: clamp(25px, 3.2vw, 44px); }
.sx-h3 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.24; letter-spacing: -.01em; }

.sx-lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--text);
  max-width: 62ch;
}

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

.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1;
}

.sx-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

/* ---------- 6. 按钮 ---------- */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--mist);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}

.sx-btn:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(57, 242, 208, .07); }

.sx-btn--primary {
  color: #04120F;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.sx-btn--primary:hover {
  color: #04120F;
  background: #65f8df;
  border-color: #65f8df;
}

.sx-btn--block { width: 100%; }

/* ---------- 7. 标签与链接 ---------- */
.sx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sx-tag--cyan { color: var(--cyan); border-color: rgba(57, 242, 208, .45); background: rgba(57, 242, 208, .08); }
.sx-tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .1); }
.sx-tag--gold { color: var(--gold); border-color: rgba(245, 200, 76, .45); background: rgba(245, 200, 76, .1); }

.sx-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 242, 208, .35);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sx-link:hover { color: #7df9e2; border-bottom-color: var(--cyan); }

/* ---------- 8. 面板 ---------- */
.sx-panel {
  position: relative;
  background: var(--forest);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 32px);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.sx-panel:hover { border-color: rgba(57, 242, 208, .5); }
.sx-panel--stand { background: var(--stand); }
.sx-panel--flush { padding: 0; }

.sx-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sx-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1.3;
}

/* ---------- 9. 列表 ---------- */
.sx-list { list-style: none; margin: 0; padding: 0; }

.sx-list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.sx-list__item:last-child { border-bottom: 0; }

/* ---------- 10. 面包屑 ---------- */
.sx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--fog);
}

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

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

.sx-breadcrumb__sep { color: rgba(169, 189, 183, .45); }
.sx-breadcrumb [aria-current="page"] { color: var(--mist); }

/* ---------- 11. 图片容器基础规则 ---------- */
.sx-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background-color: var(--stand);
  background-image:
    linear-gradient(148deg, #0E3B36 0%, #123D32 46%, rgba(57, 242, 208, .22) 100%);
}

.sx-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(233, 255, 249, .05) 0px,
    rgba(233, 255, 249, .05) 1px,
    transparent 1px,
    transparent 14px
  );
  opacity: .8;
}

.sx-media > img,
.sx-media > picture,
.sx-media > svg,
.sx-media > video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sx-media--wide { aspect-ratio: 21 / 9; }
.sx-media--tall { aspect-ratio: 3 / 4; }
.sx-media--square { aspect-ratio: 1 / 1; }

.sx-media__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(7, 21, 18, .92), rgba(7, 21, 18, 0));
}

/* ---------- 12. 跳转链接 ---------- */
.sx-skip {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 240;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #04120F;
  background: var(--cyan);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .2s var(--ease);
}

.sx-skip:focus,
.sx-skip:focus-visible { top: 12px; }

/* ---------- 13. 页头 ---------- */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(7, 21, 18, .55), rgba(7, 21, 18, 0));
  background-repeat: no-repeat;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.sx-header[data-solid="true"] {
  background-color: rgba(12, 43, 36, .94);
  background-image: none;
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(57, 242, 208, .1), 0 22px 46px -34px #000;
}

.sx-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 70px;
}

/* 品牌 */
.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--mist);
  flex: 0 0 auto;
}

.sx-brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--stand);
  background-image: linear-gradient(145deg, rgba(57, 242, 208, .24), rgba(57, 242, 208, 0) 68%);
  box-shadow: inset 0 0 0 1px rgba(57, 242, 208, .06);
}

.sx-brand__mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.sx-brand:hover .sx-brand__mark::before { transform: rotate(135deg); }

.sx-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.sx-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mist);
}

.sx-brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--cyan);
  opacity: .85;
}

/* 导航 */
.sx-nav { display: flex; justify-content: center; min-width: 0; }

.sx-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-nav__item { display: flex; align-items: center; }

.sx-nav__item--cta { display: none; }

.sx-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--fog);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.sx-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.sx-nav__link:hover { color: var(--mist); }
.sx-nav__link:hover::after { transform: scaleX(1); }

.sx-nav__link[aria-current="page"] { color: var(--cyan); }
.sx-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.sx-header__actions { display: flex; align-items: center; flex: 0 0 auto; }

/* 汉堡按钮 */
.sx-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 61, 50, .5);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sx-nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.sx-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.sx-nav-toggle[aria-expanded="true"] .sx-nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sx-nav-toggle[aria-expanded="true"] .sx-nav-toggle__bar:nth-child(2) { opacity: 0; }
.sx-nav-toggle[aria-expanded="true"] .sx-nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 阅读进度 */
.sx-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  pointer-events: none;
}

/* ---------- 14. 页脚 ---------- */
.sx-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 104px);
  background-color: var(--forest);
  background-image: linear-gradient(180deg, rgba(18, 61, 50, .55), rgba(7, 21, 18, .9));
  color: var(--fog);
  font-size: 14px;
  line-height: 1.7;
}

.sx-footer__strip {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 28%, var(--gold) 62%, transparent 100%);
  opacity: .55;
}

.sx-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5.5vw, 68px) var(--gutter) clamp(22px, 3vw, 32px);
}

.sx-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4.5vw, 68px);
}

.sx-footer__brand { max-width: 42ch; }

.sx-footer__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mist);
  line-height: 1.2;
}

.sx-footer__tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--cyan);
  text-transform: uppercase;
}

.sx-footer__blurb {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

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

.sx-footer__colTitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sx-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sx-footer__link:hover { color: var(--cyan); border-bottom-color: rgba(57, 242, 208, .5); }

.sx-footer__contact {
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
}

.sx-footer__contactLabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1;
  margin-bottom: 14px;
}

.sx-footer__contactList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-footer__contactItem {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.sx-footer__contactKey {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--line);
  text-transform: uppercase;
  color: rgba(169, 189, 183, .7);
}

.sx-footer__contactVal {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  letter-spacing: .01em;
  word-break: break-all;
}

.sx-footer__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(169, 189, 183, .82);
  max-width: 68ch;
}

.sx-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(169, 189, 183, .78);
}

.sx-footer__legal,
.sx-footer__meta { margin: 0; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .sx-header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 62px;
    gap: 12px;
  }

  .sx-nav-toggle { display: inline-flex; }
  .sx-header__actions { display: none; }

  .sx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    justify-content: flex-start;
    padding: 10px var(--gutter) 22px;
    background: rgba(7, 21, 18, .985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 52px -30px #000;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }

  .sx-nav[data-open="true"] { display: block; }

  .sx-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .sx-nav__item {
    border-bottom: 1px solid var(--line-soft);
  }

  .sx-nav__item--cta {
    display: flex;
    margin-top: 18px;
    padding-top: 4px;
    border-bottom: 0;
  }

  .sx-nav__link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
    color: var(--text);
  }

  .sx-nav__link::after { display: none; }

  .sx-nav__link[aria-current="page"] { color: var(--cyan); }

  .sx-grid--asym,
  .sx-grid--split,
  .sx-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .sx-grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .sx-grid--12 { grid-template-columns: minmax(0, 1fr); }
  .sx-section { padding-block: clamp(36px, 9vw, 56px); }
  .sx-brand__mark { width: 28px; height: 28px; }
  .sx-brand__name { font-size: 16px; }
  .sx-brand__tag { letter-spacing: .18em; font-size: 9px; }
  .sx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-footer__contactList { grid-template-columns: minmax(0, 1fr); }
  .sx-footer__contactItem { flex-direction: column; gap: 2px; }
  .sx-footer__bottom { flex-direction: column; align-items: flex-start; }
  .sx-btn { min-height: 40px; padding: 0 15px; font-size: 13px; }
}

@media (max-width: 400px) {
  .sx-footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
