/* ==========================================================================
   云体育入口 · /assets/site.css
   共享外壳：左轨导览 / 侧边数据轨道 / 夜场战术板视觉语汇
   ========================================================================== */

:root {
  --ink: #061A2E;
  --ink-2: #0B2A47;
  --ink-3: #123F5E;
  --ink-deep: #04101C;
  --cyan: #00E5D4;
  --cyan-soft: #8BF7EE;
  --orange: #FF4B2B;
  --amber: #FFB020;
  --mist: #E8EEF5;
  --grid: #A9BACB;
  --white: #FFFFFF;

  --rail-w: 272px;
  --maxw: 1360px;
  --pad: clamp(20px, 4vw, 44px);

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

  --shadow-panel: 0 18px 46px rgba(2, 10, 18, .55);
  --glow-cyan: 0 0 22px rgba(0, 229, 212, .28);
  --glow-hot: 0 0 22px rgba(255, 75, 43, .42);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-underline-offset: .22em;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.22; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --------------------------------------------------------- 布局 --- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose {
  max-width: 44rem;
  color: var(--grid);
}
.prose h2,
.prose h3 { color: var(--white); }
.prose strong { color: var(--white); }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 212, .4);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.rule {
  height: 1px;
  margin: 56px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(0, 229, 212, .55), rgba(169, 186, 203, .12) 42%, transparent 100%);
}

.crumbs {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--grid);
}
.crumbs ol { display: flex; flex-wrap: wrap; }
.crumbs li + li::before {
  content: "›";
  margin: 0 10px;
  color: rgba(0, 229, 212, .55);
}
.crumbs a {
  color: var(--cyan);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------- 数字 --- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.01em;
}
.num--glow {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 229, 212, .65);
}
.num--hot {
  color: var(--orange);
  text-shadow: 0 0 16px rgba(255, 75, 43, .6);
}

/* --------------------------------------------------------- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
  background: rgba(0, 229, 212, .08);
  border: 1px solid rgba(0, 229, 212, .38);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(0, 229, 212, .16);
}
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan-soft), var(--glow-cyan);
}
.btn--hot {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn--hot:hover {
  background: #ff623f;
  border-color: #ff623f;
  box-shadow: var(--glow-hot);
}
.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.btn--cyan:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  box-shadow: var(--glow-cyan);
}
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 229, 212, .5);
}
.btn--ghost:hover {
  background: rgba(0, 229, 212, .12);
  color: var(--white);
}

/* --------------------------------------------------------- 通用组件 --- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(152deg, var(--ink-3) 0%, var(--ink-2) 58%, var(--ink) 100%);
  border: 1px solid rgba(0, 229, 212, .18);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: border-color .26s ease, filter .26s ease, transform .26s ease;
}
.card:hover {
  border-color: rgba(0, 229, 212, .55);
  filter: drop-shadow(0 0 14px rgba(0, 229, 212, .26));
  transform: translateY(-2px);
}
.card:focus-within {
  border-color: var(--cyan);
  filter: drop-shadow(0 0 14px rgba(0, 229, 212, .3));
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 212, .1);
  border: 1px solid rgba(0, 229, 212, .35);
}
.tag[data-tone="hot"] {
  color: var(--orange);
  background: rgba(255, 75, 43, .12);
  border-color: rgba(255, 75, 43, .45);
}
.tag[data-tone="amber"] {
  color: var(--amber);
  background: rgba(255, 176, 32, .12);
  border-color: rgba(255, 176, 32, .42);
}

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--ink-3), var(--ink-2) 70%, var(--ink));
  border: 1px solid rgba(0, 229, 212, .2);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.figure img,
.figure svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure--wide img,
.figure--wide svg { aspect-ratio: 21 / 9; }
.figure--portrait img,
.figure--portrait svg { aspect-ratio: 3 / 4; }
.figure__cap {
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grid);
  background: rgba(6, 26, 46, .88);
  border-top: 1px solid rgba(0, 229, 212, .16);
}

/* --------------------------------------------------------- 滚动显现 --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s ease-out, transform .32s ease-out;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------- 跳转链接 --- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  transform: translateY(-260%);
  transition: transform .2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* =========================================================
   头部 · 侧边导览轨道
   ========================================================= */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(140% 60% at 0% 0%, rgba(0, 229, 212, .12) 0%, transparent 62%),
    linear-gradient(180deg, #08203A 0%, var(--ink) 52%, var(--ink-deep) 100%);
  border-right: 1px solid rgba(0, 229, 212, .22);
  box-shadow: 2px 0 30px rgba(0, 229, 212, .07);
}

.rail__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  padding: 30px 22px 32px;
}

.rail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.rail__mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}
.rail__mark svg {
  width: 100%;
  height: 100%;
}
.rail__brandtext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rail__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
}
.rail__tag {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grid);
}

.rail__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 212, .4);
  background: rgba(0, 229, 212, .07);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.rail__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.rail__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .24s ease, opacity .24s ease;
}

.rail__nav {
  margin-top: 30px;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 8px;
  font-size: 14.5px;
  letter-spacing: .05em;
  color: var(--grid);
  text-decoration: none;
  border-left: 2px solid transparent;
  background: transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.rail__link::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transition: width .22s ease, background .22s ease, opacity .22s ease;
}
.rail__link:hover {
  color: var(--white);
  background: rgba(0, 229, 212, .07);
}
.rail__link:hover::before {
  width: 24px;
  background: var(--cyan);
  opacity: 1;
}
.rail__link[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 229, 212, .16), rgba(0, 229, 212, 0) 82%);
}
.rail__link[aria-current="page"]::before {
  width: 24px;
  background: var(--cyan);
  opacity: 1;
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(169, 186, 203, .2);
}
.rail__kicker {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(169, 186, 203, .75);
}
.rail__phone {
  margin: 0;
  font-size: 17px;
  color: var(--cyan);
}
.rail__meta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.66;
  color: rgba(169, 186, 203, .78);
}

/* 桌面端为固定轨道让位 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* =========================================================
   页脚
   ========================================================= */
.foot {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  color: var(--grid);
  font-size: 14px;
  background: linear-gradient(180deg, var(--ink-deep) 0%, #061A2E 100%);
  border-top: 1px solid rgba(0, 229, 212, .22);
}
.foot::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(0, 229, 212, .18) 42%, rgba(255, 75, 43, .9) 100%);
}

.foot__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
  padding-block: clamp(44px, 6vw, 78px);
}

.foot__ident { min-width: 0; }

.foot__brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.foot__suffix {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}
.foot__blurb {
  max-width: 34em;
  margin: 0 0 20px;
  color: var(--grid);
  line-height: 1.8;
}
.foot__contact {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.foot__contact li {
  padding-left: 14px;
  position: relative;
  color: rgba(169, 186, 203, .9);
}
.foot__contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
  opacity: .8;
}
.foot__tip {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(169, 186, 203, .68);
}

.foot__col { min-width: 0; }

.foot__h {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot__list {
  display: grid;
  gap: 2px;
}
.foot__list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--grid);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.foot__list a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.foot__base {
  background: rgba(2, 10, 18, .62);
  border-top: 1px solid rgba(169, 186, 203, .16);
}
.foot__basein {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  padding-block: 18px;
  font-size: 13px;
  color: rgba(169, 186, 203, .82);
}
.foot__legal,
.foot__copy { margin: 0; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1100px) {
  .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__ident { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .rail {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 229, 212, .28);
    box-shadow: 0 8px 26px rgba(2, 10, 18, .6);
  }
  .rail__inner {
    min-height: 0;
    padding: 13px var(--pad) 14px;
  }
  .rail__top { align-items: center; }
  .rail__mark { width: 36px; height: 36px; }
  .rail__name { font-size: 17px; }
  .rail__tag { font-size: 11.5px; }
  .rail__toggle { display: inline-flex; }

  .rail__nav {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height .36s cubic-bezier(.4, 0, .2, 1);
  }
  .rail[data-open] .rail__nav {
    max-height: 62vh;
    margin-top: 12px;
    overflow-y: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 229, 212, .18);
  }
  .rail__link { padding: 12px 10px; font-size: 15px; }

  .rail__foot { display: none; }
  .rail[data-open] .rail__foot {
    display: flex;
    margin-top: 16px;
    padding-top: 18px;
  }

  .rail[data-open] .rail__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .rail[data-open] .rail__bars i:nth-child(2) { opacity: 0; }
  .rail[data-open] .rail__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 15.5px; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__brand { font-size: 21px; }
  .foot__basein { justify-content: flex-start; }
  .rule { margin: 40px 0; }
  .btn { padding: 11px 17px; font-size: 13px; letter-spacing: .08em; }
}

/* =========================================================
   动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .foot__list a:hover { transform: none; }
}
