:root {
  --bg-deep: #0A1119;
  --bg-panel: #14202C;
  --bg-elevated: #182734;
  --border-grid: #203243;
  --green: #00FF87;
  --blue: #00E5FF;
  --text-body: #B8C6D1;
  --text-bright: #F0F6FC;
  --orange: #FFB300;
  --red: #FF3B3B;
  --purple: #7B61FF;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Sans SC", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-w: 280px;
  --header-w-tablet: 220px;
  --header-h-mobile: 64px;
  --transition: 200ms ease-out;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --title-size: clamp(2rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  padding-left: var(--header-w);
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: break-word;
}

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

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

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

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

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

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

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

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--bg-deep);
  font-weight: 700;
  line-height: 1;
  transition: top var(--transition);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  display: flex;
  flex-direction: column;
  z-index: 100;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-grid);
}

.brand {
  display: block;
  padding: 28px 24px 20px;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-grid);
  background: linear-gradient(95deg, rgba(0, 255, 135, 0.08), transparent 65%);
}

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

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand__accent {
  color: var(--green);
}

.site-nav {
  flex: 1 0 auto;
  overflow-y: auto;
  padding: 24px 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-item {
  margin: 2px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 13px 22px;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  background: rgba(0, 255, 135, 0.06);
  color: var(--text-bright);
  border-left-color: var(--green);
}

.nav-link[aria-current="page"] {
  color: var(--green);
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(0, 255, 135, 0.14), transparent);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-grid);
  background: rgba(20, 32, 44, 0.35);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.25);
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-body);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-grid);
  background: var(--bg-panel);
  color: var(--text-bright);
  line-height: 1;
}

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

.nav-toggle__box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-grid);
  padding: 32px 48px 40px;
  color: var(--text-body);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: flex-start;
  max-width: 1200px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-bright);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  color: var(--blue);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--green);
}

.footer-info {
  flex-basis: 100%;
  line-height: 1.8;
  color: var(--text-body);
}

.footer-info p {
  margin: 0.25em 0;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container--narrow {
  max-width: 860px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 2em;
}

.data-text {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--bg-deep);
  background: var(--green);
  border: 0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background: #00d973;
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

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

.btn--blue {
  background: var(--blue);
}

.btn--blue:hover {
  background: #00c9ff;
  color: var(--bg-deep);
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-grid);
  border-left: 3px solid var(--green);
  padding: 24px;
}

.panel {
  background: rgba(20, 32, 44, 0.72);
  border: 1px solid var(--border-grid);
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--border-grid);
}

.breadcrumb__link {
  color: var(--blue);
}

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

.breadcrumb__current {
  color: var(--text-body);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.notice {
  border-left: 3px solid var(--orange);
  background: rgba(255, 179, 0, 0.08);
  padding: 16px 20px;
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.list-tick {
  list-style: none;
}

.list-tick li {
  position: relative;
  padding-left: 24px;
  margin: 0.5em 0;
}

.list-tick li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
}

.link-arrow::after {
  content: "↘";
  display: inline-block;
  font-size: 1.1em;
  transition: transform var(--transition);
}

.link-arrow:hover {
  color: var(--green);
}

.link-arrow:hover::after {
  transform: translate(2px, 2px);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 2;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 135, 0.02) 0,
    rgba(0, 255, 135, 0.02) 1px,
    transparent 1px,
    transparent 14px
  );
  z-index: 1;
}

.media-frame > img,
.media-frame > picture,
.media-frame > * {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 1023px) and (min-width: 768px) {
  body {
    --header-w: var(--header-w-tablet);
  }

  .site-header {
    width: var(--header-w);
  }

  .brand {
    padding: 24px 18px 16px;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .nav-link {
    padding: 11px 18px;
    font-size: 0.9rem;
  }

  .header-status {
    padding: 16px 18px;
  }

  .status-text {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    padding: 28px 32px 36px;
  }
}

@media (max-width: 767px) {
  body {
    padding-left: 0;
    padding-top: var(--header-h-mobile);
  }

  .site-header {
    width: 100%;
    height: var(--header-h-mobile);
    right: 0;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border-grid);
  }

  .brand {
    flex: 1 0 auto;
    padding: 16px 20px;
    border-bottom: 0;
    background: none;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    display: none;
    flex: none;
    width: 100%;
    max-height: calc(100vh - var(--header-h-mobile));
    overflow-y: auto;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-grid);
    padding: 8px 0;
  }

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

  .nav-list {
    width: 100%;
  }

  .nav-link {
    padding: 14px 24px;
    border-left: 0;
    border-bottom: 1px solid rgba(32, 50, 67, 0.5);
    font-size: 1rem;
  }

  .nav-link[aria-current="page"] {
    border-left: 0;
  }

  .header-status {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-right: 16px;
  }

  .header-progress {
    bottom: 0;
  }

  .site-footer {
    padding: 28px 20px 32px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-info {
    flex-basis: auto;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .card {
    padding: 20px;
  }
}
