/* ==========================================================================
   AB体育官网正版 · Site Kit 共享样式
   版本: 4.2.0 / coordinate-stable
   文件: /assets/site.css
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --sk-bg-deep: #0B1B3D;
  --sk-bg-panel: #10244D;
  --sk-line: #1F3B6E;
  --sk-accent: #FF6B35;
  --sk-lime: #39FF14;
  --sk-ice: #F3F7FF;
  --sk-cool: #A8C0E0;
  --sk-dim: #5E7AA8;
  --sk-cream: #F5F0E6;
  --sk-danger: #FF5C5C;

  --sk-font-sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --sk-font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Roboto Mono', monospace;

  --sk-gutter: clamp(16px, 4vw, 48px);
  --sk-container-w: 1440px;
  --sk-header-h: 76px;
  --sk-topbar-h: 32px;
  --sk-z-header: 100;
  --sk-z-progress: 1100;
  --sk-z-nav: 1000;
  --sk-z-skip: 1200;
  --sk-shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- 2. Reset 与基础排版 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sk-font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--sk-ice);
  background-color: var(--sk-bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  display: block;
  flex: 1;
  width: 100%;
}

ul, ol {
  list-style: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--sk-accent);
  color: var(--sk-bg-deep);
}

:focus-visible {
  outline: 2px solid var(--sk-accent);
  outline-offset: 2px;
}

/* ---------- 3. 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sk-mono {
  font-family: var(--sk-font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.sk-container {
  width: 100%;
  max-width: var(--sk-container-w);
  margin: 0 auto;
  padding-left: var(--sk-gutter);
  padding-right: var(--sk-gutter);
}

.sk-main {
  flex: 1;
}

/* ---------- 4. 状态灯 ---------- */
.sk-status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sk-lime);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.sk-status-dot--off {
  background: var(--sk-dim);
  box-shadow: none;
}

/* ---------- 5. 标签 ---------- */
.sk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sk-font-mono);
  color: var(--sk-cool);
  background: var(--sk-bg-panel);
  border: 1px solid var(--sk-line);
}

.sk-tag--hot {
  color: var(--sk-accent);
  border-color: var(--sk-accent);
}

/* ---------- 6. 按钮 ---------- */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sk-font-sans);
  color: var(--sk-ice);
  background: var(--sk-bg-panel);
  border: 1px solid var(--sk-line);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sk-btn:hover {
  border-color: var(--sk-accent);
  color: var(--sk-accent);
}

.sk-btn--primary {
  background: var(--sk-accent);
  border-color: var(--sk-accent);
  color: var(--sk-bg-deep);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.sk-btn--primary:hover {
  color: var(--sk-bg-deep);
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.sk-btn--ghost {
  background: transparent;
}

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

/* ---------- 7. 面包屑 ---------- */
.sk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 16px 0;
  font-size: 13px;
  font-family: var(--sk-font-mono);
  color: var(--sk-dim);
}

.sk-breadcrumb a {
  color: var(--sk-cool);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sk-breadcrumb a:hover {
  color: var(--sk-accent);
}

.sk-breadcrumb__sep {
  color: var(--sk-line);
}

/* ---------- 8. 面板 ---------- */
.sk-panel {
  background: var(--sk-bg-panel);
  border: 1px solid var(--sk-line);
  padding: 24px;
  box-shadow: var(--sk-shadow-panel);
}

.sk-panel--cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* ---------- 9. 图片容器 ---------- */
.sk-img-frame {
  position: relative;
  overflow: hidden;
  background: var(--sk-bg-panel);
  border: 1px solid var(--sk-line);
  aspect-ratio: 16 / 9;
}

.sk-img-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.sk-img-frame--wide {
  aspect-ratio: 21 / 9;
}

.sk-img-frame--tall {
  aspect-ratio: 3 / 4;
}

/* ---------- 10. 坐标网格背景 ---------- */
.sk-grid-bg {
  background-image:
    linear-gradient(rgba(31, 59, 110, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 59, 110, 0.35) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- 11. 区块 ---------- */
.sk-section {
  padding: 64px 0;
}

.sk-section__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--sk-ice);
  margin-bottom: 24px;
  padding-left: 16px;
  position: relative;
}

.sk-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--sk-accent);
}

.sk-section__title::after {
  content: attr(data-index);
  font-family: var(--sk-font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--sk-dim);
}

/* ---------- 12. 滚动进度条 ---------- */
.sk-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sk-bg-panel);
  z-index: var(--sk-z-progress);
  pointer-events: none;
}

.sk-progress__bar {
  height: 100%;
  width: 0;
  background: var(--sk-accent);
  transition: width 0.1s ease-out;
}

/* ---------- 13. Skip Link ---------- */
.sk-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: var(--sk-z-skip);
  padding: 12px 20px;
  background: var(--sk-accent);
  color: var(--sk-bg-deep);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid var(--sk-ice);
  border-radius: 2px;
  transition: top 0.2s ease;
}

.sk-skip:focus {
  top: 16px;
}

/* ---------- 14. 头部 ---------- */
.sk-header {
  position: relative;
  z-index: var(--sk-z-header);
  flex-shrink: 0;
}

.sk-topbar {
  background: var(--sk-bg-deep);
  border-bottom: 1px solid var(--sk-line);
  font-family: var(--sk-font-mono);
  font-size: 12px;
  color: var(--sk-dim);
  padding: 6px 0;
}

.sk-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sk-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sk-topbar__item--status {
  color: var(--sk-cool);
}

.sk-header__main {
  position: relative;
  background: var(--sk-bg-panel);
  border-bottom: 1px solid var(--sk-line);
}

.sk-header__main::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--sk-accent);
}

.sk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--sk-header-h);
}

/* ---------- 15. 品牌 ---------- */
.sk-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sk-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sk-accent);
  color: var(--sk-bg-deep);
  font-family: var(--sk-font-mono);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1px;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.sk-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sk-brand__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--sk-ice);
}

.sk-brand__tag {
  font-size: 12px;
  color: var(--sk-cool);
}

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

.sk-nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sk-cool);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sk-nav__link:hover {
  color: var(--sk-ice);
  border-color: var(--sk-line);
  background: rgba(31, 59, 110, 0.25);
}

.sk-nav__link[aria-current="page"] {
  color: var(--sk-accent);
  border-color: var(--sk-line);
  border-bottom-color: var(--sk-accent);
  background: rgba(255, 107, 53, 0.05);
  font-weight: 700;
}

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

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

.sk-nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sk-ice);
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sk-nav-toggle.is-active span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.sk-nav-toggle.is-active span:nth-child(3) {
  opacity: 0;
}

.sk-nav-toggle.is-active span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 18. 页脚 ---------- */
.sk-footer {
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  background: var(--sk-bg-panel);
  border-top: 1px solid var(--sk-line);
}

.sk-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 120px;
  height: 3px;
  background: var(--sk-accent);
}

.sk-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 48px 0;
}

.sk-footer__brand .sk-brand {
  margin-bottom: 16px;
}

.sk-footer__trust {
  font-size: 14px;
  color: var(--sk-cool);
  max-width: 420px;
  line-height: 1.7;
}

.sk-footer__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sk-ice);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sk-line);
}

.sk-footer__list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--sk-cool);
  line-height: 1.6;
}

.sk-footer__list a {
  color: var(--sk-cool);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sk-footer__list a:hover {
  color: var(--sk-accent);
  padding-left: 4px;
}

.sk-footer__note {
  font-size: 12px;
  color: var(--sk-dim);
  margin-top: 12px;
  line-height: 1.6;
}

.sk-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--sk-line);
  font-family: var(--sk-font-mono);
  font-size: 12px;
  color: var(--sk-dim);
}

.sk-footer__divider {
  color: var(--sk-line);
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1120px) {
  .sk-nav-toggle {
    display: flex;
  }

  .sk-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--sk-bg-panel);
    border-left: 1px solid var(--sk-line);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: var(--sk-z-nav);
    overflow-y: auto;
  }

  .sk-nav.is-open {
    transform: translateX(0);
  }

  .sk-nav__link {
    font-size: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sk-line);
    border-left: 3px solid transparent;
  }

  .sk-nav__link:hover {
    background: rgba(31, 59, 110, 0.3);
  }

  .sk-nav__link[aria-current="page"] {
    border-left: 3px solid var(--sk-accent);
    border-bottom: 1px solid var(--sk-line);
    color: var(--sk-accent);
    background: rgba(255, 107, 53, 0.08);
  }

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

  .sk-body--nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }
}

@media (max-width: 960px) {
  .sk-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .sk-topbar__item:last-child {
    display: none;
  }

  .sk-footer__grid {
    grid-template-columns: 1fr;
  }

  .sk-section {
    padding: 40px 0;
  }
}

/* ---------- 20. 无障碍与减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
