/* ==========================================
   乐竞体育入口 — 共享样式表 /assets/site.css
   设计任务：技术蓝图式坐标网格 + 高原竞技场
   ========================================== */

/* ---- 设计变量 ---- */
:root {
  --c-deep: #0A1E3F;
  --c-plateau: #12355F;
  --c-white: #F5F8FC;
  --c-lake: #3D8B7A;
  --c-pitch: #2F9E44;
  --c-volt: #E8F04C;
  --c-gray: #4A5B73;
  --c-ink: #0B1729;
  --c-glass: rgba(245, 248, 252, 0.8);
  --c-shade: rgba(10, 30, 63, 0.7);
  --c-dim: rgba(245, 248, 252, 0.62);
  --c-faint: rgba(245, 248, 252, 0.42);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono",
    Menlo, Consolas, "Liberation Mono", monospace;
  --shell-w: 1240px;
  --radius: 8px;
  --ease: 0.25s ease;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-deep);
  background-image:
    linear-gradient(rgba(74, 91, 115, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 91, 115, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  flex: 1 0 auto;
}

#main-content {
  scroll-margin-top: 110px;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-volt);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

/* ---- 跳转链接 ---- */
.skip-link {
  position: fixed;
  top: -120%;
  left: 16px;
  z-index: 3000;
  display: inline-block;
  padding: 10px 18px;
  background: var(--c-volt);
  color: var(--c-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--c-white);
}

/* ---- 滚动进度线 ---- */
.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: transparent;
}

.site-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c-volt);
  box-shadow: 0 0 10px rgba(232, 240, 76, 0.55);
  transform: scaleX(var(--progress-scale, 0));
  transform-origin: 0 50%;
}

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-shade);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 91, 115, 0.6);
}

.header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 24px;
  background: rgba(11, 23, 41, 0.6);
  border-bottom: 1px solid rgba(74, 91, 115, 0.3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-faint);
}

.header-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-strip-fig {
  color: var(--c-lake);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 12px 24px;
}

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

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--c-volt);
  border-radius: 50%;
  background: rgba(232, 240, 76, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--c-volt);
  transform: translateX(-50%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  right: -3px;
  height: 1px;
  background: var(--c-volt);
  transform: translateY(-50%);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--c-white);
  white-space: nowrap;
}

.brand-text strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c-volt);
}

/* 导航 */
.site-nav {
  display: block;
}

.header-nav-wrap {
  display: block;
  margin-left: auto;
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--ease);
}

.nav-link::before {
  content: attr(data-index);
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--c-gray);
  vertical-align: super;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--c-volt);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--ease);
}

.nav-link:hover {
  color: var(--c-volt);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-volt);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--c-gray);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

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

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 2px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  line-height: 1;
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- 页脚 ---- */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--c-ink);
  border-top: 3px solid var(--c-volt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 52px 24px 28px;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--c-white);
}

.footer-slogan {
  display: block;
  max-width: 320px;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--c-lake);
  color: var(--c-dim);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 91, 115, 0.5);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--c-faint);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--volt {
  background: var(--c-volt);
  box-shadow: 0 0 6px rgba(232, 240, 76, 0.7);
}

.legend-dot--pitch {
  background: var(--c-pitch);
}

.legend-dot--lake {
  background: var(--c-lake);
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-volt);
}

.footer-heading::before {
  content: "// ";
  color: var(--c-gray);
}

.footer-pages ul {
  list-style: none;
}

.footer-pages a {
  display: inline-block;
  padding: 4px 0;
  color: var(--c-dim);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--ease), transform 0.2s ease;
}

.footer-pages a:hover {
  color: var(--c-volt);
  transform: translateX(3px);
}

.footer-contact {
  color: var(--c-dim);
}

.footer-contact-item {
  margin: 0 0 8px;
  color: var(--c-dim);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.footer-address {
  margin-top: 12px;
  color: var(--c-faint);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(74, 91, 115, 0.4);
  color: var(--c-faint);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---- 页面容器 ---- */
.page-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 52px 24px 100px;
  color: var(--c-white);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--c-faint);
  font-family: var(--font-mono);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--c-gray);
}

.breadcrumbs a {
  color: var(--c-dim);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumbs a:hover {
  color: var(--c-volt);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-volt);
}

/* 章节标题体系 */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(74, 91, 115, 0.5);
}

.section-index {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-lake);
}

.section-title {
  margin: 0 0 8px;
}

.section-sub {
  max-width: 640px;
  color: var(--c-dim);
  font-size: 0.95rem;
  line-height: 1.8;
}

.coord-label {
  display: inline-block;
  writing-mode: vertical-rl;
  padding-left: 10px;
  border-left: 1px solid var(--c-gray);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 卡片与面板 */
.glass-panel {
  background: linear-gradient(150deg, rgba(245, 248, 252, 0.14), rgba(245, 248, 252, 0.05));
  border: 1px solid rgba(245, 248, 252, 0.16);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.data-panel {
  background: var(--c-plateau);
  border: 1px solid rgba(74, 91, 115, 0.75);
  border-radius: var(--radius);
  padding: 22px;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(74, 91, 115, 0.4);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-label {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--c-dim);
}

.data-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}

.data-value--volt {
  color: var(--c-volt);
}

/* 数据网格 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* 统计数字 */
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--c-white);
}

/* 标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 4px;
  border: 1px solid rgba(47, 158, 68, 0.4);
  background: rgba(47, 158, 68, 0.14);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--c-pitch);
}

.tag--volt {
  background: var(--c-volt);
  border-color: var(--c-volt);
  color: var(--c-deep);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease),
    border-color var(--ease), transform 0.2s ease;
}

.btn-volt {
  background: var(--c-volt);
  border-color: var(--c-volt);
  color: var(--c-deep);
}

.btn-volt:hover {
  background: transparent;
  color: var(--c-volt);
  transform: translateY(-2px);
}

.btn-volt:focus-visible {
  outline-color: var(--c-white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-gray);
  color: var(--c-white);
}

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

/* 图片容器 */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-plateau);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius);
}

.image-frame::before {
  content: "IMG";
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(245, 248, 252, 0.22);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--c-faint);
  z-index: 1;
}

.image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--c-white);
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(74, 91, 115, 0.5);
  text-align: left;
  vertical-align: middle;
}

th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--c-lake);
}

td {
  color: var(--c-dim);
}

/* ---- 响应式 ---- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--c-shade);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-gray);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.56);
  }

  .header-nav-wrap[data-open] {
    display: block;
  }

  .header-main {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .header-strip {
    padding: 5px 16px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(74, 91, 115, 0.35);
  }

  .nav-link::after {
    left: 10px;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 26px;
    transform: scaleY(0) translateY(-50%);
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleY(1) translateY(-50%);
  }

  .page-shell {
    padding: 36px 16px 80px;
  }

  .coord-label {
    display: none;
  }
}

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

  .data-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---- 减少动态偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .footer-pages a:hover,
  .btn-volt:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
