/* ================================================
   M6体育 Site Kit 共享样式
   视觉母题：数据竞技场 / 展区隐喻
   ================================================ */

/* ---------- 变量与重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0B1526;
  --bg-panel: #13233B;
  --bg-panel-2: #162941;
  --bg-footer: #080F1A;
  --accent-green: #00FF87;
  --accent-orange: #FF9F1C;
  --metal: #C8D0DA;
  --text-white: #F5F9FF;
  --text-muted: #91A3B8;
  --success-tint: #C8FFE1;
  --warning-tint: #FFE1B8;
  --dark-ink: #0A0A0A;
  --border-subtle: rgba(200, 208, 218, 0.2);
  --border-mid: rgba(200, 208, 218, 0.4);
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'Space Grotesk', 'DIN Condensed', 'Bahnschrift Condensed', 'Arial Narrow', sans-serif;
  --header-h: 64px;
  --container-max: 1280px;
  --radius-sm: 2px;
  --radius-md: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-white);
  background:
    radial-gradient(ellipse 90% 46% at 50% -6%, rgba(0, 255, 135, 0.055), transparent 70%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-white);
  letter-spacing: 0.01em;
}

p {
  text-wrap: pretty;
}

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

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: rgba(0, 255, 135, 0.28);
  color: var(--text-white);
}

:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 1400;
  padding: 10px 22px;
  background: var(--accent-green);
  color: var(--dark-ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- 吸顶命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 21, 38, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  max-width: calc(var(--container-max) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text-white);
  white-space: nowrap;
}

.brand-pulse {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.pulse-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent-green);
}

.pulse-bar:nth-child(1) {
  height: 12px;
}

.pulse-bar:nth-child(2) {
  height: 22px;
}

.pulse-bar:nth-child(3) {
  height: 8px;
}

/* ---- 移动导航按钮 ---- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--text-white);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-green);
  background: rgba(0, 255, 135, 0.06);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  justify-content: center;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.nav-toggle-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---- 主导航 ---- */
.site-nav {
  margin-inline: auto;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(200, 208, 218, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--text-white);
  border-bottom-color: var(--accent-green);
}

/* ---- 头部状态区 ---- */
.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: rgba(19, 35, 59, 0.65);
}

.season-text {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.9);
  animation: status-pulse 2.2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.9);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 3px rgba(0, 255, 135, 0.35);
  }
}

.header-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-green);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-ink);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-catalog:hover {
  background: #4dffab;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 255, 135, 0.28);
}

.catalog-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.catalog-icon::before,
.catalog-icon::after {
  content: '';
  position: absolute;
  background: var(--dark-ink);
}

.catalog-icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  box-shadow: 0 -6px 0 var(--dark-ink), 0 6px 0 var(--dark-ink);
}

.catalog-icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
  box-shadow: -6px 0 0 var(--dark-ink), 6px 0 0 var(--dark-ink);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 24px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  background: transparent;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  border-color: var(--accent-green);
  background: rgba(0, 255, 135, 0.08);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--dark-ink);
  font-weight: 700;
}

.btn-primary:hover {
  background: #4dffab;
  border-color: #4dffab;
  box-shadow: 0 4px 22px rgba(0, 255, 135, 0.3);
}

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

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.breadcrumb li + li::before {
  content: '/';
  font-family: var(--font-num);
  color: rgba(200, 208, 218, 0.4);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text-white);
}

/* ---------- 章节面板 ---------- */
.section-panel {
  position: relative;
  padding-block: 72px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.section-index {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 208, 218, 0.38);
  flex-shrink: 0;
  min-width: 0.9em;
}

.panel-kicker {
  display: block;
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-green);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- 展品卡片 ---------- */
.exhibit-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.exhibit-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  width: 48px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 0 0 2px 2px;
}

.exhibit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 255, 135, 0.35);
}

.exhibit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-green);
}

.exhibit-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.exhibit-desc {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 状态标签 ---------- */
.data-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag-green {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.35);
  color: var(--success-tint);
}

.tag-orange {
  background: rgba(255, 159, 28, 0.12);
  border-color: rgba(255, 159, 28, 0.35);
  color: var(--warning-tint);
}

/* ---------- 装饰与图片 ---------- */
.pulse-line {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.22), transparent);
}

.pulse-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  animation: pulse-slide 3.2s ease-in-out infinite;
}

@keyframes pulse-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}

.diagonal-band {
  height: 8px;
  border-block: 1px solid rgba(200, 208, 218, 0.1);
  background: repeating-linear-gradient(
    -45deg,
    rgba(200, 208, 218, 0.14) 0,
    rgba(200, 208, 218, 0.14) 1px,
    transparent 1px,
    transparent 10px
  );
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

.img-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 3px;
  background: var(--accent-green);
  opacity: 0.7;
  z-index: 1;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green) 18%, var(--accent-orange) 58%, transparent 96%);
  opacity: 0.55;
}

.footer-frame {
  padding-block: 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.footer-block {
  min-width: 0;
}

.footer-about {
  max-width: 340px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}

.footer-trust {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

.footer-links-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-link-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.03em;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-contact li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact li + li {
  margin-top: 16px;
}

.contact-label {
  display: inline-block;
  margin-bottom: 2px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--metal);
}

.footer-contact a {
  color: var(--text-white);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--accent-green);
}

.footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
  z-index: 1100;
  pointer-events: none;
}

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

@media (max-width: 960px) {
  .header-frame {
    flex-wrap: wrap;
    gap: 0;
    min-height: var(--header-h);
    padding-block: 10px;
  }

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

  .header-meta {
    display: none;
  }

  .site-nav {
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 21, 38, 0.96);
    transition: max-height 0.3s ease, margin-top 0.3s ease, border-color 0.3s ease;
  }

  .site-nav[data-open="true"] {
    max-height: 480px;
    margin-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--accent-green);
    background: rgba(0, 255, 135, 0.07);
  }

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

  .footer-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .header-frame {
    padding-inline: 16px;
  }

  .section-panel {
    padding-block: 48px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-index {
    font-size: 52px;
  }

  .grid-12 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-frame {
    padding-top: 40px;
  }

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

  .footer-links-block {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .nav-toggle-text {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }
}

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

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

  .status-dot,
  .pulse-line::after {
    animation: none !important;
  }
}
