/* ==========================================================
   安博竞技 Site CSS  /assets/site.css
   侧边数据轨道 + 奶油编辑台 + 编辑索引体系
   ========================================================== */

/* ---------- 1. Custom Properties ---------- */
:root {
  --space-blue: #0B1D3A;
  --space-blue-dark: #071326;
  --cream: #F5F0E6;
  --ink: #1C1812;
  --orange: #FF5A1F;
  --neon-green: #A3FF00;
  --blue-aux: #3A6FB5;
  --grey-line: #D1C9B8;
  --red-alert: #C0392B;
  --white: #FFFFFF;

  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Roboto Mono", "Consolas", monospace;

  --sidebar-w: 220px;
  --container-max: 1280px;
  --radius: 0;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 29, 58, 0.12);
  --shadow-lg: 0 14px 40px rgba(11, 29, 58, 0.18);
  --ease: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--space-blue);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(28, 24, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 24, 18, 0.035) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style-position: inside;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--space-blue);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-aux);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--ease);
}

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

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

/* ---------- 4. Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

#main-content {
  min-height: 70vh;
  scroll-margin-top: 72px;
  outline: none;
}

#main-content:focus {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

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

/* ---------- 5. Layout Containers ---------- */
.section {
  padding: 48px 32px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
  .grid-col-4 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-col-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 32px 20px;
  }
  .container {
    padding: 0 20px;
  }
  .grid-col-2,
  .grid-col-3,
  .grid-col-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 6. Section Heading ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--space-blue);
  border-bottom: 2px solid var(--space-blue);
  padding-bottom: 12px;
  margin: 0 0 24px;
}

.heading-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(28, 24, 18, 0.78);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
}

.btn-primary:hover {
  background: #E64E0A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--space-blue);
  border: 1px solid var(--space-blue);
  border-radius: var(--radius-pill);
}

.btn-outline:hover {
  background: var(--space-blue);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- 8. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  background: rgba(11, 29, 58, 0.06);
  border: 1px solid var(--grey-line);
  color: var(--space-blue);
  text-decoration: none;
  border-radius: var(--radius);
}

.tag-live {
  background: rgba(163, 255, 0, 0.14);
  border-color: rgba(163, 255, 0, 0.5);
  color: #4C7A00;
}

.tag-hot {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.35);
  color: var(--orange);
}

/* ---------- 9. Cards ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-aux);
}

.card-3d {
  background: var(--space-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--cream);
  box-shadow:
    8px 8px 0 var(--orange),
    16px 16px 32px rgba(11, 29, 58, 0.28);
  transition: transform var(--ease), box-shadow var(--ease);
}

.card-3d:hover {
  transform: translateY(-4px) translateX(2px);
  box-shadow:
    6px 6px 0 var(--orange),
    20px 20px 40px rgba(11, 29, 58, 0.3);
}

.card-3d h3,
.card-3d h4 {
  color: var(--cream);
}

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 18, 0.55);
  padding: 24px 0 8px;
}

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

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

.breadcrumb-sep {
  color: var(--grey-line);
}

/* ---------- 11. Image Frame ---------- */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--grey-line);
  border: 1px solid var(--grey-line);
  overflow: hidden;
  border-radius: var(--radius);
}

.image-frame::after {
  content: "IMG";
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(28, 24, 18, 0.4);
}

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

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

/* ---------- 12. Data Table ---------- */
.table-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--cream);
}

.table-data th,
.table-data td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--grey-line);
  text-align: left;
}

.table-data th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--space-blue);
  background: rgba(11, 29, 58, 0.06);
}

.table-data tr:last-child td {
  border-bottom: 0;
}

.table-data .num {
  font-family: var(--font-mono);
  text-align: right;
}

/* ---------- 13. Stat Number ---------- */
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--space-blue);
}

.stat-number.accent {
  color: var(--orange);
}

.stat-number.on-dark {
  color: var(--neon-green);
}

/* ---------- 14. Speed Lines ---------- */
.speed-lines {
  position: relative;
  overflow: hidden;
}

.speed-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -55deg,
    rgba(255, 90, 31, 0.07) 0 2px,
    transparent 2px 12px
  );
  pointer-events: none;
  z-index: 0;
}

.speed-lines-dark::before {
  background: repeating-linear-gradient(
    -55deg,
    rgba(255, 255, 255, 0.04) 0 2px,
    transparent 2px 12px
  );
}

/* ==========================================================
   Site Header
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--space-blue);
  background-size: 24px 24px, 24px 24px, auto;
  z-index: 800;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  color-scheme: dark;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--neon-green));
  z-index: 1;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 0;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.brand-link:hover {
  color: inherit;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--orange);
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.25);
  border-radius: var(--radius-pill);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-box {
  display: block;
  width: 20px;
}

.nav-toggle-box i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

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

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

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

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 24px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  color: rgba(245, 240, 230, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  color: var(--neon-green);
  opacity: 0.75;
  transition: opacity var(--ease), color var(--ease);
}

.nav-label {
  flex: 1;
}

.nav-link[aria-current="page"] {
  color: var(--cream);
  background: rgba(255, 90, 31, 0.16);
  border-color: rgba(255, 90, 31, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(163, 255, 0, 0.8);
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-download {
  width: 100%;
}

.header-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(245, 240, 230, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.header-tag {
  margin: 0;
  color: rgba(245, 240, 230, 0.45);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(163, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(163, 255, 0, 0);
  }
}

/* ==========================================================
   Site Footer
   ========================================================== */
.site-footer {
  background: var(--space-blue);
  color: var(--cream);
  padding: 64px 0 0;
  color-scheme: dark;
  border-top: 4px solid var(--orange);
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1;
}

.footer-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.footer-trust {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.65);
  max-width: 260px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
}

.footer-col a {
  color: rgba(245, 240, 230, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color var(--ease), padding-left var(--ease);
}

.footer-col a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.72);
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--space-blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.5);
}

.back-top {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.6);
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.25);
  padding: 8px 18px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease), color var(--ease), border-color var(--ease);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
}

/* ==========================================================
   Scroll Progress
   ========================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--neon-green));
  transition: width 0.12s linear;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (min-width: 1024px) {
  body {
    margin-left: var(--sidebar-w);
  }

  #main-content {
    scroll-margin-top: 0;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  body {
    padding-top: 64px;
  }

  .site-header {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  }

  .site-header::before {
    height: 3px;
  }

  .header-row {
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-link {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    font-size: 1.3rem;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px 16px;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: var(--radius-pill);
  }

  .header-meta {
    display: none;
    padding: 14px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav[data-open] ~ .header-meta {
    display: flex;
  }

  .header-download {
    width: 100%;
  }

  /* Footer responsive */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 20px;
  }

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

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

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

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ==========================================================
   Reduced Motion
   ========================================================== */
@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;
  }

  .live-dot {
    animation: none;
  }

  .back-top,
  .card-3d,
  .card,
  .nav-link {
    transition: none;
  }
}
