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

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-hover: #1a1a24;
  --text: #f2f2f2;
  --text-secondary: #a0a0b3;
  --neon: #00ff9d;
  --orange: #ff6b35;
  --border: #2a2a3a;
  --divider: #1f1f2a;
  --shadow: rgba(0, 0, 0, 0.8);
  --max: 1280px;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  scroll-behavior: smooth;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(60rem 40rem at 85% -10%, rgba(0, 255, 157, 0.045), transparent 60%),
    radial-gradient(50rem 40rem at 0% 110%, rgba(255, 107, 53, 0.04), transparent 60%);
  background-size: 28px 28px, auto, auto;
  background-attachment: fixed;
  color: var(--text);
}

:focus-visible {
  outline: 2px dashed var(--neon);
  outline-offset: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 4.5rem;
}

.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-header__title {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0.5rem 0 0;
  color: var(--text);
}

.page-header__index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--neon);
  letter-spacing: 0.12em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--divider);
}

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

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

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

.divider {
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: 2rem 0;
}

.display-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 1rem;
}

.index-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px double var(--border);
  margin-bottom: 2.5rem;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px);
}

.section-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--neon);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.section-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text);
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

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

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

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

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

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

.tilt-block {
  transform: rotate(-0.6deg);
}

.tilt-block--reverse {
  transform: rotate(0.5deg);
}

@media (max-width: 640px) {
  .tilt-block,
  .tilt-block--reverse {
    transform: none;
  }
}

.card {
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 8px 8px 0 var(--shadow);
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  opacity: 0.7;
}

.card:hover {
  border-color: var(--neon);
  background: var(--surface-hover);
  box-shadow: 12px 12px 0 rgba(0, 255, 157, 0.08);
  transform: translateY(-2px);
}

.console-panel {
  background:
    linear-gradient(rgba(0, 255, 157, 0.04), rgba(0, 255, 157, 0.04)),
    var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
  position: relative;
}

.console-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 5px);
}

.console-panel:hover {
  border-color: var(--neon);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--neon);
  color: var(--bg);
}

.btn--filled {
  background: var(--neon);
  color: var(--bg);
  border-color: var(--neon);
}

.btn--filled:hover {
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

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

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface-hover);
  color: var(--text);
}

.btn--danger {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--danger:hover {
  background: var(--orange);
  color: var(--bg);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1.4;
}

.tag--hot {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 53, 0.08);
}

.tag--new {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 255, 157, 0.08);
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 6px);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

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

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

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

.image-frame--placeholder::after {
  content: "IMG / SCAN";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neon);
  background: rgba(10, 10, 15, 0.75);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
}

.image-frame__label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
}

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

.stat__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.step-track {
  counter-reset: step;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-track__item {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-track__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--neon);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px var(--shadow);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--neon);
  opacity: 0.85;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.9rem 1.4rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--neon);
  box-shadow: 8px 8px 0 var(--shadow);
  font-family: var(--mono);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--neon));
  z-index: 5;
  pointer-events: none;
}

.header-bar {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--neon);
  border: 2px solid var(--neon);
  background: rgba(0, 255, 157, 0.03);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 2px -2px 0 var(--bg);
}

.brand:hover .brand-mark {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--neon);
}

.brand-id {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-index {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border);
}

.nav-link[aria-current="page"] {
  color: var(--neon);
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.35);
}

.nav-link[aria-current="page"]::before {
  content: "●";
  font-size: 0.5rem;
  color: var(--orange);
  vertical-align: middle;
  margin-right: 0.4em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon);
  color: var(--neon);
}

.nav-toggle__bars {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s ease, top 0.15s ease, box-shadow 0.15s ease;
}

.nav-toggle__bars::before {
  top: 2px;
  box-shadow: 0 5px 0 currentColor;
}

.nav-toggle__bars::after {
  top: 10px;
}

.nav-toggle.is-active .nav-toggle__bars::before {
  top: 7px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bars::after {
  top: 7px;
  transform: rotate(-45deg);
}

.site-footer {
  margin-top: 6rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--orange), var(--orange) 12px, var(--bg) 12px, var(--bg) 16px);
  opacity: 0.6;
}

.footer-console {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2.5rem 3rem;
  padding: 3.5rem 0 2rem;
}

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

.footer-mark {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--neon);
  border: 1px solid var(--neon);
  padding: 0.3rem 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.footer-name {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  margin: 0.5rem 0;
}

.footer-name:hover {
  color: var(--neon);
}

.footer-slogan {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-index {
  display: block;
  margin-top: 1rem;
}

.footer-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 0.6rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.footer-nav .footer-title::after {
  content: " / CHANNELS";
  color: var(--text-secondary);
  font-weight: 400;
}

.footer-contact .footer-title::after {
  content: " / CONTACT";
  color: var(--text-secondary);
  font-weight: 400;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-link--block {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-phone,
.footer-mail,
.footer-address,
.footer-note {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-note {
  margin-top: 0.8rem;
  color: var(--text);
  border-left: 2px solid var(--orange);
  padding-left: 0.75rem;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-copy,
.footer-icp {
  white-space: nowrap;
}

.footer-legal-links {
  margin-left: auto;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-statement {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 2px solid var(--orange);
  padding: 0.5rem 0 0.5rem 1rem;
  background: rgba(255, 107, 53, 0.03);
}

@media (max-width: 900px) {
  .header-bar {
    width: 100%;
    min-height: 72px;
    padding-inline: 1.25rem;
  }

  .site-nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 32px var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 30;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease, border-color 0.25s ease;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    border-bottom-color: var(--neon);
  }

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

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .nav-link {
    display: block;
    padding: 1rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--divider);
    border-left: 2px solid transparent;
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-link:hover {
    border-left-color: var(--neon);
    background: var(--surface-hover);
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--neon);
    background: transparent;
  }

  .brand-index {
    display: none;
  }

  .footer-console {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .footer-legal {
    grid-column: 1;
  }

  .footer-legal-links {
    margin-left: 0;
  }

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

@media (max-width: 560px) {
  .brand-tagline {
    font-size: 0.62rem;
  }

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

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

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