:root {
  --paper: #F4E9D8;
  --paper-light: #FFF8EF;
  --paper-warm: #E5D9C5;
  --ink: #1F1F1F;
  --ink-soft: #2E3B2C;
  --gray-line: #3A3A3A;
  --neon: #B4FF3A;
  --cyber: #00E5FF;
  --alert: #FF5E5B;
  --gold: #C9A227;
  --font-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --sidebar-width: 300px;
  --header-h: 72px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(31,31,31,.08);
  --ease: cubic-bezier(.22,.9,.28,1);
  --page-gutter: 24px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: .01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
  margin: 0;
}

ul, ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

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

:focus-visible {
  outline: 3px solid var(--cyber);
  outline-offset: 3px;
  border-radius: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--cyber) 100%);
  border-radius: 0 999px 999px 0;
  transition: width .1s linear;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(135deg, rgba(180,255,58,.04) 0%, transparent 45%),
    var(--ink);
  color: var(--paper);
}

.brand-layer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-h);
  padding: 0 var(--page-gutter);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(0,229,255,.28);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

.brand-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(244,233,216,.35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-note {
  display: none;
  margin-top: 14px;
  color: rgba(244,233,216,.7);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .04em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  padding: 12px;
  border: 1px solid rgba(244,233,216,.25);
  border-radius: 14px;
  background: transparent;
  transition: border-color .25s ease, background .25s ease;
}

.nav-toggle:hover {
  border-color: var(--neon);
  background: rgba(180,255,58,.08);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s ease;
}

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

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

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

.site-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-height: 0;
  padding: 0 var(--page-gutter);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .5s var(--ease), opacity .3s ease, transform .3s ease, padding .3s ease;
}

.site-nav[data-open] {
  max-height: 620px;
  padding: 22px var(--page-gutter) 28px;
  border-top: 1px solid rgba(244,233,216,.12);
  opacity: 1;
  transform: translateY(0);
}

.nav-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,233,216,.45);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), padding-left .25s var(--ease);
}

.nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyber);
  opacity: 0;
  transition: opacity .2s ease;
}

.nav-link:hover {
  padding-left: 20px;
  background: rgba(180,255,58,.08);
  color: var(--neon);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  padding-left: 16px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  background: var(--ink);
  opacity: 1;
}

.nav-cta {
  width: 100%;
  justify-content: center;
}

.header-meta {
  display: none;
}

@media (min-width: 980px) {
  body {
    padding-left: var(--sidebar-width);
  }

  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    overflow: hidden;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 16%;
    right: -96px;
    width: 220px;
    height: 220px;
    border: 1.5px solid rgba(0,229,255,.2);
    border-radius: 34px;
    transform: rotate(20deg);
    pointer-events: none;
  }

  .site-header::after {
    content: "";
    position: absolute;
    bottom: 118px;
    left: -34px;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(180,255,58,.07);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .brand-layer {
    display: block;
    height: auto;
    padding: 34px 28px 22px;
  }

  .brand-note {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    max-height: none;
    padding: 12px 28px 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-cta {
    margin-top: 22px;
  }

  .header-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 18px 28px 22px;
    border-top: 1px dashed rgba(244,233,216,.2);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(244,233,216,.5);
  }
}

.site-footer {
  position: relative;
  margin-top: 88px;
  background:
    linear-gradient(200deg, rgba(0,229,255,.05) 0%, transparent 36%),
    var(--ink);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon) 48%, var(--cyber) 48%, var(--cyber) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px var(--page-gutter) 40px;
}

.footer-brand {
  display: grid;
  justify-items: start;
  gap: 16px;
  align-content: start;
}

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

.footer-brand-link .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
  box-shadow: 4px 4px 0 rgba(0,229,255,.25);
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
}

.footer-trust {
  max-width: 340px;
  padding-left: 14px;
  border-left: 2px solid var(--cyber);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244,233,216,.6);
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-caption {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,233,216,.45);
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  color: rgba(244,233,216,.75);
  transition: color .2s ease, padding-left .2s ease;
}

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

.footer-contact {
  display: grid;
  gap: 6px;
  align-content: start;
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(244,233,216,.8);
}

.footer-address {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244,233,216,.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--page-gutter);
  border-top: 1px solid rgba(244,233,216,.12);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244,233,216,.55);
}

.footer-copyright,
.footer-icp,
.footer-note {
  margin: 0;
}

.footer-note {
  margin-left: auto;
}

@media (min-width: 620px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 980px) {
  .footer-top {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .15s ease;
}

.btn:active {
  transform: scale(.97);
}

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

.btn-accent:hover {
  background: var(--cyber);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,229,255,.28);
}

.btn-ghost {
  border-color: rgba(31,31,31,.28);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-line);
}

.breadcrumbs a {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.breadcrumbs a:hover {
  color: var(--cyber);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: 64px;
}

.section-tight {
  padding-block: 36px;
}

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

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

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

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

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

.card {
  padding: 28px;
  background: var(--paper-light);
  border: 1px solid rgba(58,58,58,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-accent {
  border: 1px solid transparent;
  background: var(--neon);
  color: var(--ink);
}

.card-cyber {
  border: 1px solid transparent;
  background: var(--cyber);
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(31,31,31,.07);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.tag-neon {
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.tag-cyber {
  background: var(--cyber);
  color: var(--ink);
  font-weight: 700;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31,31,31,.06) 0%, transparent 60%),
    var(--paper-warm);
  aspect-ratio: 4 / 3;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(31,31,31,.08);
  border-radius: inherit;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

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

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

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

.note {
  font-family: var(--font-head);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.note-vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .lead {
    font-size: 20px;
  }
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(31,31,31,.2), rgba(31,31,31,.02));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

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

@media (max-width: 380px) {
  .brand-tag {
    display: none;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

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