/* ==========================================
   欧亿体育竞界 / assets/site.css
   竞技场光影系统 共享样式
   ========================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --color-bg: #0A0E17;
  --color-bg-card: #141A26;
  --color-bg-footer: #1A120E;
  --color-text: #F2E8D5;
  --color-text-dim: #9AA3B5;
  --color-blue: #00D8FF;
  --color-green: #00FF88;
  --color-orange: #FF5C38;
  --color-amber: #FFB000;
  --color-border: #2A3142;
  --color-headline: #F2E8D5;

  --font-headline: "Archivo Black", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Sans Pro", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --header-height: 72px;
  --container-w: 1280px;
  --radius-cut: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(255, 92, 56, 0.05), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(0, 216, 255, 0.04), transparent 55%),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--color-green);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--color-headline);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--color-blue);
  color: var(--color-bg);
}

/* ---------- 可访问焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 辅助跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 3000;
  padding: 10px 20px;
  background: var(--color-blue);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.3s var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  color: var(--color-bg);
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s var(--ease),
    border-bottom 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 14, 23, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(42, 49, 66, 0.6);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 216, 255, 0.4), rgba(255, 92, 56, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  z-index: 3;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-orange) 100%);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%);
  transition: filter 0.3s;
}

.brand:hover .brand-mark {
  filter: brightness(1.15);
}

.brand-text {
  font-family: var(--font-headline);
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-text strong {
  font-weight: normal;
}

.brand-accent {
  font-style: normal;
  color: var(--color-orange);
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

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

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

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-blue);
  opacity: 0.55;
  transition: opacity 0.25s;
  letter-spacing: 0.06em;
}

.nav-link:hover .nav-index,
.nav-link[aria-current="page"] .nav-index {
  opacity: 1;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.25s, background 0.25s;
}

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

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.25s;
}

.nav-toggle:hover .toggle-bar {
  background: var(--color-blue);
}

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

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

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

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

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 56, 0.5), rgba(0, 216, 255, 0.5), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
  gap: 40px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.footer-logo-accent {
  color: var(--color-orange);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 260px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: var(--color-blue);
}

.footer-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: var(--color-text-dim);
  transition: color 0.25s, margin-left 0.25s;
}

.footer-list a:hover {
  color: var(--color-green);
  margin-left: 4px;
}

.footer-contact-list li {
  font-size: 13px;
  color: var(--color-text-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.5;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.footer-bottom {
  max-width: var(--container-w);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 49, 66, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-dim);
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 章节 ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section--dark {
  background: var(--color-bg-card);
}

.section--brown {
  background: var(--color-bg-footer);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-blue);
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

.section-desc {
  color: var(--color-text-dim);
  max-width: 640px;
  line-height: 1.75;
}

/* ---------- 内页首屏 ---------- */
.page-hero {
  padding: 160px 0 72px;
  position: relative;
  background:
    linear-gradient(115deg, rgba(20, 26, 38, 0.9) 0%, rgba(10, 14, 23, 0.4) 60%, transparent 100%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: 
    linear-gradient(transparent 95%, rgba(0, 216, 255, 0.06) 100%),
    radial-gradient(ellipse at 75% 30%, rgba(0, 216, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--color-text-dim);
  font-size: 16px;
  max-width: 560px;
  margin-top: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-orange);
  border-color: transparent;
  color: var(--color-bg);
}

.btn--primary:hover {
  background: #f04e2d;
  border-color: transparent;
  color: var(--color-bg);
  box-shadow: 0 6px 28px rgba(255, 92, 56, 0.35);
}

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

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

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

.breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
}

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

.breadcrumb-separator {
  color: var(--color-border);
}

.breadcrumb-current {
  color: var(--color-text);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 图片容器 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1px solid rgba(42, 49, 66, 0.5);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.5s;
}

.figure:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.figure--portrait {
  aspect-ratio: 3 / 4;
}

.figure--square {
  aspect-ratio: 1 / 1;
}

.figure-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text);
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.85));
  pointer-events: none;
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

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

/* ---------- 通用排版工具 ---------- */
.text-center {
  text-align: center;
}

.text-dim {
  color: var(--color-text-dim);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ---------- 响应式：平板 768-1024px ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }
}

/* ---------- 响应式：手机 < 768px ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .brand-text {
    font-size: 15px;
  }

  /* 汉堡按钮 */
  .nav-toggle {
    display: inline-flex;
  }

  /* 移动端导航：全屏抽屉 */
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: rgba(10, 14, 23, 0.98);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
    overflow-y: auto;
  }

  .primary-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .nav-link {
    font-size: 20px;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .nav-link::after {
    left: 20px;
    right: 20px;
  }

  .nav-index {
    font-size: 12px;
  }

  /* 页脚 */
  .site-footer {
    padding: 48px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 120px 0 48px;
  }

  .container,
  .container-narrow {
    padding: 0 16px;
  }

  .btn {
    padding: 11px 22px;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress {
    transition: none;
  }
}
