/* ==========================================================================
   欢云赛场 · 全站共享样式 /assets/site.css
   展览画册 × 赛场控制台：切角面板、斜切分区、等宽数据
   ========================================================================== */

/* ---- 01 设计令牌 ---- */
:root {
  --hx-deep: #0A1B3D;
  --hx-deep-2: #08152F;
  --hx-deep-3: #061024;
  --hx-blue: #1E5BFF;
  --hx-cyan: #22E6FF;
  --hx-orange: #FF6A2A;
  --hx-cloud: #F6F9FF;
  --hx-mist: #DDE7F7;
  --hx-ink: #101828;
  --hx-gray: #5B6B82;
  --hx-mint: #38D9A9;
  --hx-amber: #FFC94A;

  --surface: var(--hx-cloud);
  --surface-alt: var(--hx-mist);
  --text: var(--hx-ink);
  --text-soft: var(--hx-gray);
  --line: rgba(16, 24, 40, 0.12);
  --line-soft: rgba(16, 24, 40, 0.07);
  --on-dark: #F6F9FF;
  --on-dark-soft: rgba(246, 249, 255, 0.66);

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

  --cut: 12px;
  --maxw: 1280px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
}

/* ---- 02 重置 ---- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--hx-ink);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.1vw, 24px); }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(30, 91, 255, 0.22); color: var(--hx-ink); }

:focus-visible {
  outline: 2px solid var(--hx-blue);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--hx-cyan); }

/* ---- 03 骨架 ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ---- 04 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  background: var(--hx-blue);
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px),
    calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: background-color 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover { background: #3A72FF; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(100deg, #1E5BFF 0%, #0B37C9 100%);
}
.btn--primary:hover {
  background: linear-gradient(100deg, #3A72FF 0%, #1E5BFF 100%);
}

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

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(246, 249, 255, 0.36);
}
.btn--ghost:hover {
  background: rgba(34, 230, 255, 0.12);
  border-color: var(--hx-cyan);
  transform: none;
}

/* ---- 05 跳转链接 ---- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #04102A;
  background: var(--hx-cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- 06 头部 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--on-dark);
  background:
    radial-gradient(120% 220% at 12% -60%, rgba(30, 91, 255, 0.55), transparent 60%),
    linear-gradient(100deg, #0A1B3D 0%, #091733 62%, #081530 100%);
  border-bottom: 1px solid rgba(34, 230, 255, 0.16);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent,
    rgba(34, 230, 255, 0.55) 24%, rgba(30, 91, 255, 0.22) 52%, transparent);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 8px var(--gutter);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-header__mid {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--on-dark);
}

.brand__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  background: linear-gradient(140deg, #1E5BFF 0%, #22E6FF 100%);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 41%, #0A1B3D 42%,
    #0A1B3D 55%, transparent 56%);
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: rgba(246, 249, 255, 0.52);
  white-space: nowrap;
}

.header-cta { flex: none; }

/* 赛季状态灯 */
.season-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 249, 255, 0.74);
  background: rgba(30, 91, 255, 0.16);
  border: 1px solid rgba(34, 230, 255, 0.22);
  white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.season-status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-mint);
  animation: hx-pulse 2.6s ease-in-out infinite;
}

.season-status__label { font-weight: 600; }

.season-status__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--hx-cyan);
}

@keyframes hx-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 217, 169, 0.5); }
  50% { opacity: 0.62; box-shadow: 0 0 0 6px rgba(56, 217, 169, 0); }
}

/* 导航 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-list__link {
  position: relative;
  display: block;
  padding: 10px 11px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(246, 249, 255, 0.74);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nav-list__link:hover { color: #fff; }

.nav-list__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 3px;
  background: rgba(34, 230, 255, 0.35);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s ease;
}
.nav-list__link:hover::after { transform: scaleX(1); }

.nav-list__link[aria-current="page"] { color: #fff; }
.nav-list__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--hx-cyan), var(--hx-blue));
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--on-dark);
  background: rgba(30, 91, 255, 0.2);
  border: 1px solid rgba(34, 230, 255, 0.35);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--hx-cyan);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-cta { display: none; }

/* 滚动光轨 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(34, 230, 255, 0.1);
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--hx-blue), var(--hx-cyan) 62%,
    var(--hx-orange));
  transition: transform 0.12s linear;
}

/* ---- 07 页脚 ---- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: calc(3vw + 46px);
  padding-bottom: 30px;
  color: var(--on-dark-soft);
  background:
    radial-gradient(110% 130% at 86% -10%, rgba(30, 91, 255, 0.5), transparent 56%),
    radial-gradient(80% 100% at 0% 100%, rgba(34, 230, 255, 0.14), transparent 60%),
    linear-gradient(160deg, #0A1B3D 0%, #08152F 58%, #061024 100%);
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.55fr);
  gap: clamp(30px, 5vw, 76px);
  padding-bottom: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid rgba(246, 249, 255, 0.13);
}

.footer-brand .brand__name { font-size: 19px; }

.footer-brand__note {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(246, 249, 255, 0.62);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.footer-contact__label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(246, 249, 255, 0.42);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(246, 249, 255, 0.88);
  overflow-wrap: anywhere;
}

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

.footer-col__title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(246, 249, 255, 0.5);
  border-bottom: 1px solid rgba(246, 249, 255, 0.12);
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 26px;
  height: 1px;
  background: var(--hx-cyan);
}

.footer-col__list {
  display: grid;
  gap: 11px;
}

.footer-col__link {
  display: inline-block;
  font-size: 15px;
  color: rgba(246, 249, 255, 0.76);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-col__link:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(246, 249, 255, 0.5);
}

.footer-legal__copy { font-variant-numeric: tabular-nums; }
.footer-legal__meta { color: rgba(246, 249, 255, 0.36); }

/* ---- 08 面包屑 ---- */
.breadcrumbs {
  padding-block: 22px 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumbs__link {
  color: var(--text-soft);
  transition: color 0.16s ease;
}
.breadcrumbs__link:hover { color: var(--hx-blue); }

.breadcrumbs__sep {
  color: rgba(16, 24, 40, 0.3);
  font-family: var(--font-mono);
}

.breadcrumbs__current {
  font-weight: 600;
  color: var(--hx-ink);
}

/* ---- 09 图片容器基座 ---- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(150deg, var(--hx-mist) 0%, #FFFFFF 52%,
      rgba(34, 230, 255, 0.18) 100%);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(30, 91, 255, 0.22) 0%, transparent 46%,
      rgba(34, 230, 255, 0.24) 100%);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; min-height: 200px; }
.media-frame--4x3 { aspect-ratio: 4 / 3; min-height: 220px; }
.media-frame--1x1 { aspect-ratio: 1 / 1; min-height: 180px; }

/* ---- 10 动效协议 ---- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- 11 响应式 ---- */
@media (max-width: 1240px) {
  .season-status__num { display: none; }
}

@media (max-width: 1180px) {
  .header-cta { display: none; }
}

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

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 6px;
  }

  .site-header__mid { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-header__right { gap: 0; }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px var(--gutter) 26px;
    background: linear-gradient(180deg, #0A1B3D 0%, #081530 100%);
    border-bottom: 1px solid rgba(34, 230, 255, 0.22);
    box-shadow: 0 24px 48px rgba(4, 12, 30, 0.45);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }

  .site-header[data-open] .header-nav { display: flex; }

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

  .nav-list__link {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(246, 249, 255, 0.07);
  }

  .nav-list__link::after { display: none; }

  .nav-list__link[aria-current="page"] {
    color: #fff;
    background: rgba(30, 91, 255, 0.2);
    border-left: 3px solid var(--hx-cyan);
    padding-left: 9px;
  }

  .mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 4px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

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

  .footer-contact__row { grid-template-columns: 68px minmax(0, 1fr); }

  .breadcrumbs { padding-block: 16px 0; }
}

@media (max-width: 520px) {
  .brand__tag { display: none; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 16px; }
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .footer-legal { flex-direction: column; gap: 6px; }
}

/* ---- 12 减弱动效 ---- */
@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;
  }

  .season-status__dot { animation: none; }
  .scroll-meter__fill { transition: none; }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .footer-col__link:hover { transform: none; }
}
