:root {
  --bg: #0A0A0E;
  --bg-deep: #07070A;
  --bg-elevated: #12101F;
  --brand: #7B30E0;
  --accent: #19C8FF;
  --text: #F2F0F7;
  --muted: #A9A3BC;
  --line: #3D3660;
  --card-bg: #1E1B33;
  --glow: rgba(123, 48, 224, 0.35);
  --glow-blue: rgba(25, 200, 255, 0.25);
  --header-h: 72px;
  --max-width: 1440px;
  --space: clamp(1.25rem, 3vw, 3rem);
  --font-display: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --display-size: clamp(4rem, 10vw, 8rem);
  --h1: 3.5rem;
  --h2: 2.5rem;
  --h3: 1.75rem;
  --body: 1rem;
  --caption: 0.875rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -5%, rgba(25, 200, 255, 0.07), transparent 60%),
    radial-gradient(900px 480px at 8% 18%, rgba(123, 48, 224, 0.11), transparent 55%),
    radial-gradient(600px 600px at 60% 90%, rgba(123, 48, 224, 0.04), transparent 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  max-width: 70ch;
}

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

ul, ol, menu {
  list-style: none;
}

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

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

::selection {
  background: rgba(123, 48, 224, 0.45);
  color: var(--text);
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 1000;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  transition: top 0.2s ease, box-shadow 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  box-shadow: 0 0 24px var(--glow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
}

.header-inner {
  position: relative;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 3;
}

.brand-cn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.brand-en {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
  transition: color 0.2s ease;
}

.brand:hover .brand-cn {
  color: var(--brand);
  text-shadow: 0 0 20px var(--glow);
}

.brand:hover .brand-en {
  color: var(--accent);
}

.site-nav {
  justify-self: end;
  position: relative;
  z-index: 2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.2;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-index {
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: color 0.18s ease;
}

.nav-label {
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(123, 48, 224, 0.08);
  border-color: var(--line);
}

.nav-link:hover .nav-index {
  color: var(--brand);
}

.nav-link:hover .nav-label {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(123, 48, 224, 0.14);
  border-color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--accent), 0 0 18px var(--glow);
}

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

.nav-link[aria-current="page"] .nav-label {
  color: var(--text);
}

.nav-toggle {
  display: none;
  justify-self: end;
  position: relative;
  z-index: 3;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--brand);
  color: var(--text);
  box-shadow: 0 0 20px var(--glow);
}

.nav-toggle-box {
  width: 18px;
  height: 12px;
  display: block;
  position: relative;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
}

.nav-toggle-box span:nth-child(2) {
  top: 5px;
}

.nav-toggle-box span:nth-child(3) {
  top: 10px;
}

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

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

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

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 14px var(--glow);
  transition: width 0.1s linear;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

.page-head {
  padding-block: clamp(3rem, 10vw, 7rem) clamp(2rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brand);
}

.page-title {
  font-size: var(--display-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.page-summary {
  max-width: 58ch;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb li:not(:only-child) + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

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

.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));
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 27, 51, 0.85), rgba(12, 10, 21, 0.95));
  padding: var(--space);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(123, 48, 224, 0.75);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2), 0 0 32px var(--glow);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.panel {
  background: var(--card-bg);
  border: 1px solid rgba(123, 48, 224, 0.35);
  border-left: 3px solid var(--brand);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 24px rgba(123, 48, 224, 0.08);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(30, 27, 51, 0.7);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow-blue);
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text);
}

.button-primary:hover {
  background: #8a3df5;
  border-color: #8a3df5;
  box-shadow: 0 0 24px var(--glow);
}

.button-outline {
  border-color: var(--brand);
  color: var(--brand);
}

.button-outline:hover {
  background: rgba(123, 48, 224, 0.12);
  color: var(--text);
  box-shadow: 0 0 20px var(--glow);
}

.index-note {
  font-size: var(--caption);
  line-height: 1.8;
  color: var(--muted);
  border-left: 2px solid var(--brand);
  padding-left: 1rem;
  margin-block: 1rem 2rem;
}

.muted {
  color: var(--muted);
  font-size: var(--caption);
}

.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(123, 48, 224, 0.08), rgba(25, 200, 255, 0.05)), var(--card-bg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.image-frame .placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #0A0A0E;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 5rem) 0 1.5rem;
}

.site-footer::before {
  content: "MIRAGE";
  position: absolute;
  right: -4%;
  bottom: -8%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11rem;
  line-height: 1;
  color: rgba(123, 48, 224, 0.045);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(25, 200, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-en {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.footer-note {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 38ch;
  border-left: 2px solid var(--brand);
  padding-left: 1rem;
}

.footer-links ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--glow-blue);
}

.footer-heading {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.footer-contact address {
  font-style: normal;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-contact p {
  max-width: none;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0.75rem clamp(1rem, 3vw, 2rem) 1.25rem;
    background: rgba(10, 10, 14, 0.97);
    border-bottom: 1px solid var(--brand);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(61, 54, 96, 0.6);
  }

  .nav-link {
    padding: 0.85rem 0.5rem;
    border-radius: 0;
    border-color: transparent;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 2px 0 0 var(--accent);
  }

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

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-meta {
    grid-column: auto;
    flex-direction: column;
  }

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

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

  .header-inner {
    padding: 0 1rem;
  }

  .grid-2,
  .grid-3 {
    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;
  }
}
