:root {
  --ink: #0B0F19;
  --ink-2: #121729;
  --surface: #1A1F2E;
  --accent: #00FF88;
  --accent-2: #00BFFF;
  --text: #F0F4F8;
  --text-dim: #A0A8B8;
  --line: #2A3040;
  --warn: #FFD166;
  --shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
  --shadow-accent: 10px 10px 0 rgba(0, 255, 136, 0.15);
  --shadow-blue: 10px 10px 0 rgba(0, 191, 255, 0.15);
  --header-h: 84px;
  --container-max: 1520px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-lock {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  overflow-wrap: break-word;
}

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

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

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

ul[class], ol[class] {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid var(--ink);
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.97);
  border-bottom: 2px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent-2) 100%);
  opacity: 0.65;
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink-2);
  border: 2px solid var(--accent);
  box-shadow: 5px 5px 0 rgba(0, 255, 136, 0.12);
  transform: rotate(-8deg);
}

.brand__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: brand-pulse 2.2s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.5);
  }
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__en {
  font-family: 'Poppins', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.brand__cn {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--line);
  background: var(--ink-2);
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.main-nav {
  visibility: visible;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__item {
  list-style: none;
}

.main-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav__num {
  font-family: 'Poppins', 'Noto Sans SC', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.main-nav__label {
  white-space: nowrap;
}

.main-nav__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.14) 0%, transparent 65%);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  color: var(--accent);
}

.main-nav__link:hover::before,
.main-nav__link[aria-current="page"]::before {
  transform: scale(2.4);
}

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

.main-nav__link[aria-current="page"] {
  background: rgba(0, 255, 136, 0.06);
}

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

  .main-nav {
    visibility: hidden;
    position: fixed;
    inset: 0;
    z-index: 1001;
    padding: calc(var(--header-h) + 2rem) max(1.5rem, 5vw) 3rem;
    background: var(--ink-2);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 0.5s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.5s;
  }

  .main-nav[data-open] {
    visibility: visible;
    clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    overflow-y: auto;
    gap: 2px;
  }

  .main-nav__link {
    justify-content: space-between;
    padding: 1.2rem 1rem;
    border-bottom: 2px solid var(--line);
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .main-nav__link::before,
  .main-nav__link::after {
    display: none;
  }

  .main-nav__num {
    font-size: 0.9rem;
  }

  .main-nav__link[aria-current="page"] {
    border-bottom-color: var(--accent);
    background: rgba(0, 255, 136, 0.04);
  }
}

.site-footer {
  position: relative;
  margin-top: 6rem;
  padding: 5rem 0 2rem;
  background: var(--ink-2);
  border-top: 2px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 35%, transparent 70%, var(--accent-2));
  opacity: 0.8;
}

.footer-watermark {
  position: absolute;
  right: -0.02em;
  bottom: -0.28em;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(7rem, 22vw, 20rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 136, 0.12);
  pointer-events: none;
  user-select: none;
  transform: rotate(-5deg);
  white-space: nowrap;
  z-index: 0;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem 4rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid var(--line);
}

.brand--footer .brand__mark {
  width: 36px;
  height: 36px;
}

.brand--footer .brand__en {
  font-size: 2rem;
}

.footer-tagline {
  margin-top: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-desc {
  margin-top: 0.6rem;
  color: var(--text-dim);
  max-width: 46ch;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.social-chip {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.social-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 rgba(0, 255, 136, 0.12);
}

.footer-col__title {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col__list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.footer-col__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--accent-2);
  opacity: 0.6;
  transform: rotate(45deg);
  transition: background 0.2s, transform 0.2s;
}

.footer-col__list a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-col__list a:hover::before {
  background: var(--accent);
  transform: rotate(180deg);
}

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

.footer-contact .footer-col__list {
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 600px) {
  .site-footer {
    padding: 4rem 0 2rem;
  }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn:hover::before {
  transform: scale(3);
  opacity: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn--solid {
  background: var(--accent);
  color: var(--ink);
}

.btn--solid:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 6px 6px 0 var(--accent);
}

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

.btn--blue:hover {
  background: var(--accent-2);
  color: var(--ink);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: 6px 6px 0 rgba(0, 255, 136, 0.15);
}

.btn--small {
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--line);
  background: var(--ink-2);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.badge--blue {
  border-color: var(--accent-2);
  color: var(--text);
}

.badge--blue::before {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.badge--warn {
  border-color: var(--warn);
  color: var(--warn);
}

.badge--warn::before {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--ink-2);
  border: 2px solid var(--line);
  font-family: 'Poppins', 'Noto Sans SC', monospace, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.data-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.data-chip--blue {
  border-color: var(--accent-2);
}

.data-chip--blue .data-chip__dot {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.data-chip--warn {
  border-color: var(--warn);
}

.data-chip--warn .data-chip__dot {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.section-title {
  max-width: 20ch;
}

.section-summary {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-dim);
}

.page-head {
  position: relative;
  isolation: isolate;
  padding: clamp(7rem, 14vh, 11rem) 0 clamp(3rem, 7vh, 5.5rem);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(135deg, var(--ink-2), var(--surface));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  border-left: 2px solid var(--line);
  z-index: -1;
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 50%, var(--accent-2));
  opacity: 0.6;
}

.page-head__kicker {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.page-head__title {
  font-size: clamp(2.75rem, 7vw, 6rem);
  max-width: 14ch;
}

.page-head__summary {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.0625rem;
}

.page-head--home {
  min-height: 100vh;
  display: grid;
  align-content: end;
  padding-bottom: 4.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.25rem;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs__item a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.breadcrumbs__item[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

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

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

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

.grid--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

@media (max-width: 960px) {
  .grid--2,
  .grid--3,
  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.panel--accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.panel--blue {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-blue);
}

.panel__title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.panel__desc {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--surface);
  background-image: linear-gradient(135deg, transparent 45%, rgba(0, 255, 136, 0.12) 50%, transparent 55%), linear-gradient(135deg, var(--ink-2), var(--surface));
}

.media > * {
  position: relative;
  z-index: 2;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide {
  aspect-ratio: 16 / 9;
}

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

.media--panorama {
  aspect-ratio: 21 / 9;
}

.media--glow {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: var(--shadow-accent);
}

.index-list {
  display: grid;
  gap: 1rem;
}

.index-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.index-link:hover {
  border-color: var(--accent);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-accent);
}

.index-link__index {
  font-family: 'Poppins', 'Noto Sans SC', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
}

.index-link__title {
  margin-top: 0.25rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.index-link__desc {
  margin-top: 0.5rem;
  max-width: 40ch;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.index-link__arrow {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .index-link {
    flex-direction: column;
    align-items: flex-start;
  }
}

.metric {
  padding: 1.5rem;
  background: var(--ink-2);
  border: 2px solid var(--line);
}

.metric__value {
  font-family: 'Poppins', 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric--blue .metric__value {
  color: var(--accent-2);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: block;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.toc__title {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.toc__list {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-left: 3px solid var(--line);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.toc__link::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.toc__link:hover {
  color: var(--text);
}

.toc__link[aria-current="true"] {
  border-left-color: var(--accent);
  background: rgba(0, 255, 136, 0.06);
  color: var(--accent);
}

@media (max-width: 960px) {
  .toc {
    position: relative;
    top: 0;
  }
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.filter-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.06);
}

.filter-trigger[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 255, 136, 0.18);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@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 !important;
    transform: none !important;
    transition: none !important;
  }
}
