/* ============================================================
   大江体育官方CN 共享样式
   文件：/assets/site.css
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --color-deep: #0B0F1A;
  --color-flame: #FF4D00;
  --color-hot: #E62E00;
  --color-electric: #00E5FF;
  --color-neon: #8A2BE2;
  --color-neon-light: #B066FF;
  --color-cloud: #F5F5F5;
  --color-smoke: #A0A0A0;
  --color-rock: #111827;
  --color-green: #00FF88;
  --color-line: rgba(245, 245, 245, 0.08);
  --color-line-strong: rgba(245, 245, 245, 0.16);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --container: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-deep);
  color: var(--color-cloud);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-cloud);
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--color-flame);
  color: var(--color-deep);
}

/* ---------- 焦点状态 ---------- */
:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 3px;
}

/* ---------- 容器 ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--color-flame);
  color: var(--color-deep);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--solid {
  background: var(--color-flame);
  color: var(--color-deep);
}

.btn--solid:hover {
  background: #FF6B2C;
  box-shadow: 0 0 24px rgba(255, 77, 0, 0.35);
}

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

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

/* ---------- 头部 ---------- */
.site-header {
  position: relative;
  background: var(--color-deep);
}

.site-header__notice {
  background: linear-gradient(90deg, var(--color-flame), var(--color-hot));
  color: var(--color-deep);
}

.site-header__notice-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-header__notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__main {
  position: relative;
  border-bottom: 1px solid var(--color-line);
}

.site-header__main::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 96px;
  height: 2px;
  background: var(--color-flame);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  min-height: 72px;
  padding-block: 0.875rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-flame), var(--color-hot));
  color: #fff;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.site-header__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-header__brand-name {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-cloud);
  white-space: nowrap;
}

.site-header__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-smoke);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-header__nav a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--color-cloud);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header__nav a:hover {
  color: var(--color-flame);
}

.site-header__nav a[aria-current="page"] {
  color: var(--color-flame);
}

.site-header__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.125rem;
  height: 2px;
  background: var(--color-flame);
}

.site-header__cta {
  flex-shrink: 0;
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 44px;
  height: 44px;
  padding: 0.375rem;
  background: transparent;
  border: 1px solid var(--color-line-strong);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

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

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-cloud);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--color-smoke);
  line-height: 1;
}

.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);
}

/* ---------- data 协议基础 ---------- */
[data-nav-toggle] {
  cursor: pointer;
}

[data-nav] {
  /* 导航布局由 .site-header__nav 承载 */
}

[data-year] {
  font-variant-numeric: tabular-nums;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--color-deep);
  border-top: 1px solid var(--color-line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-flame) 0%, var(--color-hot) 25%, transparent 65%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-flame), var(--color-hot));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.site-footer__brand-name {
  font-size: 1.3125rem;
  font-weight: 900;
  color: var(--color-cloud);
  margin-bottom: 0.25rem;
}

.site-footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-flame);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer__statement {
  font-size: 0.875rem;
  color: var(--color-smoke);
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer__col--info {
  gap: 0.625rem;
}

.site-footer__col--contact {
  gap: 0.375rem;
}

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-smoke);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  position: relative;
}

.site-footer__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 3px;
  height: 1em;
  background: var(--color-flame);
}

.site-footer__col a {
  color: var(--color-cloud);
  font-size: 0.875rem;
  padding: 0.125rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--color-flame);
  padding-left: 0.25rem;
}

.site-footer__col--contact p {
  font-size: 0.875rem;
  color: var(--color-smoke);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-line);
  padding-block: 1.25rem;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__copyright,
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-smoke);
  margin: 0;
}

/* ---------- 组件：框景 / 图片框 / 刻度 / 斜切 ---------- */
.frame {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--color-line-strong);
  background: var(--color-rock);
}

.frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--color-flame);
  border-left: 3px solid var(--color-flame);
}

.frame::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  border-bottom: 3px solid var(--color-flame);
  border-right: 3px solid var(--color-flame);
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px),
    var(--color-rock);
  background-size: 24px 24px;
  border: 1px solid var(--color-line-strong);
}

.image-frame::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-flame);
  border-right: 2px solid var(--color-flame);
  pointer-events: none;
}

.ruler {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-line-strong) 0 1px,
    transparent 1px 12px
  );
}

.slash-accent {
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-flame);
  transform: skewX(-30deg);
}

/* ---------- 组件：标题 / 数据标签 / 标签 ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.375rem, 2.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-cloud);
}

.section-heading::before {
  content: "//";
  font-family: var(--font-mono);
  color: var(--color-flame);
  font-weight: 700;
}

.section-heading__annotation {
  align-self: flex-end;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-flame);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-smoke);
  letter-spacing: 0.14em;
  line-height: 1.4;
  white-space: nowrap;
}

.data-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-smoke);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.75rem;
  border: 1px solid var(--color-line-strong);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--color-smoke);
}

.tag--flame {
  border-color: rgba(255, 77, 0, 0.55);
  color: var(--color-flame);
}

.tag--electric {
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--color-electric);
}

.tag--neon {
  border-color: rgba(138, 43, 226, 0.55);
  color: var(--color-neon-light);
}

/* ---------- 组件：实时圆点 ---------- */
.dot-live {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  animation: dot-pulse 2s ease-in-out infinite;
}

.site-header__notice .dot-live {
  background: var(--color-deep);
  animation-name: dot-pulse-dark;
}

@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(0, 255, 136, 0);
  }
}

@keyframes dot-pulse-dark {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(11, 15, 26, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(11, 15, 26, 0);
  }
}

/* ---------- 组件：栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* ---------- 滚动进度条 ---------- */
html.js [data-scroll-progress] {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-flame), var(--color-hot));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 平板响应 ---------- */
@media (max-width: 1100px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-header__nav {
    display: none;
    flex: 1 0 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--color-line);
  }

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

  .site-header__nav a {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-line);
  }

  .site-header__nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ---------- 手机响应 ---------- */
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dot-live,
  .site-header__notice .dot-live {
    animation: none;
  }
}
