/* =========================================================
   云开赛事通 · 共享站点样式  /assets/site.css
   深空蓝承托电光青与活力橙，粗边框 + 硬投影 + 轻斜切
   ========================================================= */

:root {
  --abyss: #06101F;
  --night: #0B1D33;
  --panel: #12304A;
  --cyan: #3DF5D4;
  --orange: #FF7A1A;
  --magenta: #D63BFF;
  --cream: #F3EFE3;
  --stone: #93A4B5;
  --moss: #7FA37A;
  --clay: #C77B5C;

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: 'Noto Sans SC Condensed', 'HarmonyOS Sans SC', 'Source Han Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Roboto Mono', monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

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

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

img, svg, video { max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

body {
  background: var(--abyss);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.6vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

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

/* ---------- 布局基础 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6vw, 92px); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }

.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

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

/* ---------- 跳转链 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--cyan);
  color: var(--abyss);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 5px 5px 0 rgba(6, 16, 31, .5);
  transition: top .18s var(--ease);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid var(--cyan);
  border-radius: 2px;
  background: var(--cyan);
  color: var(--abyss);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(61, 245, 212, .18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(61, 245, 212, .26);
}

.btn:active { transform: translateY(0); box-shadow: 2px 2px 0 rgba(61, 245, 212, .2); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--panel);
  box-shadow: 3px 3px 0 rgba(18, 48, 74, .7);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(61, 245, 212, .08);
  box-shadow: 5px 5px 0 rgba(61, 245, 212, .18);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #08182B 0%, var(--abyss) 100%);
  border-bottom: 2px solid var(--panel);
  transition: box-shadow .24s var(--ease);
}

.site-header.is-pinned { box-shadow: 0 16px 34px rgba(2, 7, 14, .62); }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: 13px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--cream);
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cream);
  border-radius: 2px;
  background: linear-gradient(140deg, var(--cyan) 0 46%, var(--abyss) 46% 54%, var(--orange) 54% 100%);
  box-shadow: 3px 3px 0 rgba(61, 245, 212, .34);
  transform: rotate(-3deg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-3deg) translateY(-2px);
  box-shadow: 4px 6px 0 rgba(61, 245, 212, .42);
}

.brand__text { display: grid; gap: 1px; line-height: 1.2; }

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

.brand__tagline {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--stone);
}

/* 在线信号 */
.header-signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid rgba(147, 164, 181, .22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: .6;
  animation: pulse-ring 2.4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(.75); opacity: .55; }
  50%      { transform: scale(1.45); opacity: 0; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions .btn { padding: 9px 15px; font-size: 14px; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 2px solid var(--panel);
  border-radius: 2px;
  background: rgba(18, 48, 74, .6);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

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

.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

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

/* 下层栏目导航 */
.header-nav {
  border-top: 1px solid rgba(147, 164, 181, .16);
  background: linear-gradient(180deg, rgba(18, 48, 74, .42), rgba(18, 48, 74, 0));
}

.nav { position: relative; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 10px;
  margin: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(147, 164, 181, .24);
  border-radius: 2px;
  color: var(--stone);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.nav__link:hover {
  background: rgba(61, 245, 212, .12);
  border-color: var(--cyan);
  color: var(--cyan);
}

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

/* 滚动进度轨 */
.scroll-rail {
  height: 3px;
  background: rgba(18, 48, 74, .9);
  overflow: hidden;
}

.scroll-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 58%, var(--magenta) 100%);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: var(--night);
  border-top: 2px solid var(--panel);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 42%, var(--magenta) 72%, transparent 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  padding-block: clamp(34px, 5vw, 62px) clamp(22px, 3vw, 36px);
}

.footer__brand { min-width: 0; }

.footer__brand-name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}

.footer__summary {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(243, 239, 227, .76);
}

.footer__brand .tag { margin-top: 16px; }

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer__col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: inline-block;
  padding-bottom: 1px;
  color: rgba(243, 239, 227, .82);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

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

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 18px 28px;
  margin-bottom: clamp(22px, 3vw, 36px);
  padding: 22px 24px;
  border: 2px solid var(--panel);
  border-left: 4px solid var(--cyan);
  border-radius: 2px;
  background: rgba(18, 48, 74, .32);
}

.footer__field { min-width: 0; }

.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer__value {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer__note {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px dashed rgba(147, 164, 181, .24);
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(147, 164, 181, .18);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--stone);
}

/* ---------- 通用文本组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
}

.eyebrow--plain::before { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid var(--panel);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1.7;
}

.tag--live { border-color: var(--orange); color: var(--orange); }
.tag--ok   { border-color: var(--moss);   color: var(--moss); }
.tag--warn { border-color: var(--clay);   color: var(--clay); }

/* ---------- 资料卡 ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid var(--panel);
  border-radius: var(--radius);
  background: var(--night);
}

.card {
  padding: clamp(18px, 2.2vw, 26px);
  border: 2px solid var(--abyss);
  border-radius: 2px;
  background: var(--cream);
  color: var(--abyss);
  box-shadow: 6px 6px 0 rgba(18, 48, 74, .85);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: 16px 4px; font-size: 13px; color: var(--stone); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--stone);
  opacity: .5;
}

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

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

.breadcrumb [aria-current="page"] { color: var(--cream); }

/* ---------- 正文排版 ---------- */
.prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.6vw, 17.5px);
  line-height: 1.8;
  color: rgba(243, 239, 227, .9);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.9em;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.28;
  color: var(--cream);
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--cream);
}

.prose ul,
.prose ol { padding-left: 1.3em; list-style: disc; }

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .45em; }

.prose strong { color: var(--cream); font-weight: 700; }

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

/* ---------- 图片容器（页面阶段复用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--panel);
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, rgba(61, 245, 212, .07) 0 10px, rgba(11, 29, 51, 1) 10px 20px);
}

.media > img,
.media > picture,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media--cut { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }

.media__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(0deg, rgba(6, 16, 31, .94) 0%, rgba(6, 16, 31, 0) 100%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- 移动端抽屉 ---------- */
@media (max-width: 860px) {
  .header-top__inner { gap: 8px; }
  .brand__tagline { display: none; }
  .header-signal { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 8px 13px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }

  .header-nav { display: none; }

  .site-header[data-open="true"] .header-nav {
    display: block;
    border-top: 1px solid rgba(61, 245, 212, .34);
    background: var(--night);
    box-shadow: 0 22px 44px rgba(2, 7, 14, .7);
  }

  .site-header[data-open="true"] .nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    max-height: min(64vh, 420px);
    overflow-y: auto;
    padding-block: 14px 20px;
  }

  .site-header[data-open="true"] .nav__link {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    background: rgba(18, 48, 74, .55);
    border-color: rgba(147, 164, 181, .22);
  }

  .site-header[data-open="true"] .nav__link[aria-current="page"] {
    background: rgba(61, 245, 212, .16);
    border-color: var(--cyan);
    color: var(--cyan);
  }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__contact { padding: 18px; }
}

/* ---------- 小屏 ---------- */
@media (max-width: 520px) {
  .header-top__inner { gap: 6px; padding-block: 10px; }
  .brand { gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 16px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 10px; font-size: 12.5px; letter-spacing: 0; }
  .nav-toggle { padding: 7px 9px; }
  .nav-toggle__label { display: none; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效降级 ---------- */
@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;
  }

  .btn:hover,
  .brand:hover .brand__mark { transform: none; }

  .pulse-dot::after { display: none; }
}
