/* ============================================================
   YUN体育 · 共享站点样式 /assets/site.css
   夜航靛蓝底色 · 控制室档案卡语言 · 纵向叙事长卷
   ============================================================ */

/* ---------- 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, h6, p, ul, ol, li, figure, blockquote, dl, dt, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1230;
  --ink-2: #131C42;
  --ink-3: #0B1330;
  --line: #26325F;
  --orange: #FF6A2B;
  --orange-deep: #C2410C;
  --cyan: #2BE3C8;
  --amber: #FFD166;
  --teal: #0E7C66;
  --paper: #E8ECF7;
  --mute: #9AA5C4;
  --paper-light: #F4F6FB;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 78px;
  --radius: 14px;
  --radius-sm: 10px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-up: 0 24px 48px -34px rgba(0, 0, 0, .95);
}

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

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .012em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 控制室网格场：固定铺底，不拦截点击 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(880px 520px at 84% -8%, rgba(43, 227, 200, .10), transparent 72%),
    radial-gradient(760px 460px at 4% 6%, rgba(255, 106, 43, .11), transparent 72%),
    repeating-linear-gradient(to right, rgba(38, 50, 95, .34) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(to bottom, rgba(38, 50, 95, .34) 0 1px, transparent 1px 104px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
}

#main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

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

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px);
}

.stack > * + * { margin-top: 18px; }

.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(38px, 7.2vw, 96px);
  line-height: .94;
  letter-spacing: -.035em;
  font-stretch: condensed;
  color: var(--paper);
}

.h2 {
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.h3 {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.lede {
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.8;
  color: var(--mute);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(43, 227, 200, .9);
  flex: none;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--orange);
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mute);
  text-transform: uppercase;
}

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

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--orange), rgba(255, 106, 43, 0) 78%);
  transform: rotate(-1.1deg);
  transform-origin: left center;
}

.panel {
  position: relative;
  background:
    linear-gradient(158deg, rgba(38, 50, 95, .62), rgba(19, 28, 66, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mute);
}

.tag--live {
  border-color: rgba(43, 227, 200, .5);
  color: var(--cyan);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease),
    border-color .22s var(--ease), transform .22s var(--ease);
}

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

.btn-primary:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--orange-deep);
  color: var(--paper);
  transform: translateY(0);
}

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

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

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform .22s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease),
    border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(19, 28, 66, .95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 1);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber) 46%, var(--cyan));
  transition: width .12s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  height: var(--header-h);
  transition: height .3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: 64px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--paper);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 106, 43, .20), rgba(43, 227, 200, .13));
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  font-stretch: condensed;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(43, 227, 200, .95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
}

.brand-tagline {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mute);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
}

.nav-item { flex: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 2px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .015em;
  color: var(--mute);
  white-space: nowrap;
  transition: color .22s var(--ease);
}

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

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 106, 43, .6);
}

/* 常驻快捷标签 */
.nav-quick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.nav-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cyan);
  white-space: nowrap;
  transition: color .22s var(--ease);
}

.nav-quick-link:hover { color: var(--amber); }

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(43, 227, 200, .9);
  flex: none;
}

.nav-cta { flex: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(38, 50, 95, .42);
  color: var(--paper);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .22s var(--ease);
}

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

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 10vw, 128px);
  background: linear-gradient(180deg, rgba(19, 28, 66, .55) 0%, var(--ink-3) 26%, #080F28 100%);
  border-top: 1px solid var(--line);
}

.footer-tape {
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--amber) 34%, var(--cyan) 68%, var(--teal));
  opacity: .92;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mute);
  max-width: 22em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col-title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(43, 227, 200, .9);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mute);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--paper);
  transform: translateX(4px);
}

.footer-contact-list { gap: 9px; }

.contact-line {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.contact-line--num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--amber);
}

.footer-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--mute);
}

.footer-copy--muted {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(154, 165, 196, .72);
}

/* 返回顶部浮标 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 28, 66, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease),
    border-color .2s var(--ease), color .2s var(--ease);
}

.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
}

.to-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

/* ---------- 9. 图片容器基础规则 ---------- */
.media-frame {
  --ratio: 4 / 3;
  position: relative;
  aspect-ratio: var(--ratio);
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 106, 43, .17), rgba(43, 227, 200, .13) 58%, rgba(10, 18, 48, 0) 100%),
    var(--ink-2);
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(232, 236, 247, .05) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(43, 227, 200, .85);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(108%) contrast(104%);
}

.media-frame--wide { --ratio: 16 / 9; }
.media-frame--tall { --ratio: 3 / 4; }
.media-frame--square { --ratio: 1 / 1; }
.media-frame--bleed { border-radius: 0; border-left: 0; border-right: 0; }

.media-frame__cap {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mute);
}

/* ---------- 10. 滚动显现协议 ---------- */
[data-reveal] {
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { font-size: 13px; }
  .nav-quick { gap: 10px; padding-left: 12px; }
  .brand-tagline { display: none; }
}

@media (max-width: 1080px) {
  .nav-quick { display: none; }
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-line { max-width: 34em; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-header.is-scrolled .header-inner { height: var(--header-h); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease),
      visibility .26s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-item + .nav-item { border-top: 1px solid rgba(38, 50, 95, .7); }

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    color: var(--paper);
  }

  .nav-link::after {
    bottom: 8px;
    right: auto;
    width: 20px;
  }

  .nav-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    border-left: 0;
  }

  .nav-quick-link {
    justify-content: center;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    background: rgba(38, 50, 95, .4);
  }

  .nav-cta { margin-top: 12px; }
  .nav-cta .btn { width: 100%; padding: 14px 20px; font-size: 15px; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
  .vertical-note { display: none; }
}

@media (max-width: 420px) {
  .brand-mark { font-size: 20px; padding: 5px 9px 6px; }
  .brand-name { font-size: 14px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .to-top { padding: 9px 14px; font-size: 12px; }
}

/* ---------- 12. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }

  .panel:hover,
  .btn:hover,
  .footer-list a:hover {
    transform: none;
  }
}
