/* ==========================================
   乐竞体育 · 全站共享样式
   File: /assets/site.css
   ========================================== */

:root {
  --bg-deep: #0B0F14;
  --bg-surface: #151A21;
  --bg-elevated: #1B222C;
  --accent-blue: #4D5DF9;
  --accent-orange: #FF5C00;
  --accent-cyan: #00E5CC;
  --text-light: #F2F5F8;
  --text-muted: #A7B0BF;
  --border-subtle: #2A3240;
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --content-max: 1200px;
  --content-pad: 1.5rem;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition: 0.2s ease;
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2A3240 #0B0F14;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  background:
    radial-gradient(1100px 480px at 12% -8%, rgba(77, 93, 249, 0.14), transparent 60%),
    radial-gradient(900px 420px at 92% 0%, rgba(255, 92, 0, 0.08), transparent 55%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

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

::selection {
  background: rgba(77, 93, 249, 0.45);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #2A3240;
  border: 2px solid var(--bg-deep);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

#main-content {
  scroll-margin-top: 1.5rem;
}

/* ---------- Layout Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -3.5rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.7rem 1.2rem;
  background: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: top var(--transition);
}

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

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: linear-gradient(
    135deg,
    rgba(255, 92, 0, 0.035) 25%,
    transparent 25%,
    transparent 50%,
    rgba(77, 93, 249, 0.04) 50%,
    rgba(77, 93, 249, 0.04) 75%,
    transparent 75%
  );
  background-size: 26px 26px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-blue) 55%, var(--accent-cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  will-change: transform;
}

.header-topbar,
.header-main,
.site-nav,
.header-rule {
  position: relative;
  z-index: 1;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.55rem var(--content-pad);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-note {
  letter-spacing: 0.04em;
}

.topbar-note::before {
  content: "[ ";
  color: var(--accent-cyan);
}

.topbar-note::after {
  content: " ]";
  color: var(--accent-cyan);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.live-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 229, 204, 0.55);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 5px rgba(0, 229, 204, 0);
  }
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.1rem var(--content-pad) 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-light);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* ---------- Navigation Toggle ---------- */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-blue);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav-toggle-label {
  font-size: 0.85rem;
}

/* ---------- Site Nav ---------- */

.site-nav {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-list {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--content-pad);
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-orange);
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}

.nav-label {
  color: var(--text-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--transition), background-color var(--transition);
}

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

.nav-link:hover .nav-index {
  color: var(--accent-orange);
  opacity: 1;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

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

.nav-link[aria-current="page"] .nav-index {
  color: var(--accent-cyan);
  opacity: 1;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent-cyan);
}

.header-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
  opacity: 0.9;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #3c4ce0;
}

.btn-accent {
  background: var(--accent-orange);
  color: #fff;
}

.btn-accent:hover {
  background: #e65400;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-light);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

/* ---------- Section Typography ---------- */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.section-tag::before {
  content: "//";
  color: var(--accent-orange);
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-light);
  margin: 0.8rem 0 1rem;
}

.section-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 62ch;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
}

.page-hero-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 70ch;
}

.page-hero-note::before {
  content: "▶ ";
  color: var(--accent-orange);
}

.divider-glow {
  height: 2px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue), transparent);
}

/* ---------- Data Cards ---------- */

.data-card {
  position: relative;
  padding: 1.3rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-blue);
}

.data-card[data-accent="orange"]::before {
  background: var(--accent-orange);
}

.data-card[data-accent="cyan"]::before {
  background: var(--accent-cyan);
}

.data-card[data-accent="blue"]::before {
  background: var(--accent-blue);
}

.data-card-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.data-card-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
}

.data-card-unit {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-left: 0.15em;
}

.data-card-foot {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Status Pill ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(0, 229, 204, 0.6);
}

.status-pill[data-status="live"] .status-dot {
  animation: pulse-dot 2s infinite;
}

.status-pill[data-status="orange"] {
  border-color: rgba(255, 92, 0, 0.3);
  color: var(--accent-orange);
}

.status-pill[data-status="orange"] .status-dot {
  background: var(--accent-orange);
  box-shadow: 0 0 6px rgba(255, 92, 0, 0.5);
}

/* ---------- Grids & Split ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .split-side {
    position: sticky;
    top: 1.5rem;
  }
}

.split-side {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.split-main {
  min-width: 0;
}

/* ---------- Image Frames ---------- */

.image-frame {
  position: relative;
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.image-frame::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.image-frame[data-ratio="16/9"]::before {
  padding-bottom: 56.25%;
}

.image-frame[data-ratio="4/3"]::before {
  padding-bottom: 75%;
}

.image-frame[data-ratio="1/1"]::before {
  padding-bottom: 100%;
}

.image-frame[data-ratio="21/9"]::before {
  padding-bottom: 42.86%;
}

.image-frame > img,
.image-frame > svg,
.image-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 50, 64, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 50, 64, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 50%, var(--bg-elevated) 100%);
}

.image-placeholder::before {
  content: "◤";
  color: var(--accent-orange);
  font-size: 1.2rem;
}

/* ---------- Content Prose ---------- */

.content-prose {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.content-prose p {
  margin-bottom: 1.1rem;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
  color: var(--text-light);
  margin: 2rem 0 0.8rem;
}

.content-prose h2 {
  font-size: 1.5rem;
}

.content-prose h3 {
  font-size: 1.18rem;
}

.content-prose a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-prose ul,
.content-prose ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}

.content-prose ul {
  list-style: none;
}

.content-prose ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.content-prose ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

.content-prose ol {
  list-style: decimal;
}

.content-prose ol li {
  margin-bottom: 0.5rem;
}

.content-prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.3rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.content-prose blockquote p {
  margin-bottom: 0.4rem;
}

.content-prose blockquote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.content-prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.content-prose pre {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.content-prose pre code {
  background: none;
  border: 0;
  padding: 0;
}

.content-prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-subtle);
}

.breadcrumbs a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

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

/* ---------- Accordion ---------- */

.accordion {
  display: grid;
  gap: 0.5rem;
}

.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-surface);
  border: 0;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.accordion-trigger:hover {
  color: var(--accent-cyan);
}

.accordion-icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--accent-orange);
}

.accordion-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}

.accordion-item[data-open] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.accordion-item[data-open] .accordion-content {
  display: block;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.tab-button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab-button:hover {
  color: var(--accent-cyan);
}

.tab-button[aria-selected="true"] {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-panel {
  display: none;
}

.tab-panel[data-open] {
  display: block;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}

thead th {
  background: var(--bg-surface);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody td {
  color: var(--text-muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(77, 93, 249, 0.06);
}

th.num,
td.num {
  font-family: var(--font-mono);
  text-align: right;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  margin-top: clamp(4rem, 10vw, 7rem);
}

.footer-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue) 50%, var(--accent-cyan) 100%);
  opacity: 0.9;
}

.footer-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--content-pad) 2.5rem;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.footer-brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.footer-brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.footer-trust {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-orange);
  padding-left: 1rem;
  margin: 0.4rem 0 0.6rem;
}

.footer-heading {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-heading::before {
  content: "//";
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.footer-contact,
.footer-links {
  min-width: 0;
}

.footer-contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.5rem;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--accent-cyan);
}

.footer-value {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-links-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links-list a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--accent-orange);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.footer-links-list a:hover::before {
  border-left-color: var(--accent-cyan);
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.2rem var(--content-pad);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-copyright {
  margin: 0;
}

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

/* ---------- Responsive ---------- */

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }

  .header-main {
    justify-content: center;
  }

  .site-nav {
    display: block;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-open 0.18s ease-out;
  }

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

  .nav-item {
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem var(--content-pad);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(77, 93, 249, 0.16), rgba(77, 93, 249, 0));
  }

  .nav-index {
    font-size: 0.75rem;
  }
}

@keyframes nav-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .topbar-note {
    font-size: 0.68rem;
  }

  .live-label {
    display: none;
  }

  .brand-name {
    font-size: 1.4rem;
  }

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

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

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

@media (min-width: 640px) and (max-width: 959px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-main {
    grid-template-columns: 1.2fr 1fr 0.9fr;
  }
}

/* ---------- Reduced Motion ---------- */

@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;
  }
}
