:root {
  color-scheme: dark;
  --bg: #02040d;
  --bg-2: #051326;
  --panel: rgba(4, 18, 36, 0.78);
  --panel-strong: rgba(5, 22, 43, 0.94);
  --line: rgba(21, 242, 255, 0.28);
  --text: #f2fbff;
  --muted: #9bb6ca;
  --cyan: #15f2ff;
  --blue: #2d8cff;
  --green: #38ffb7;
  --amber: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 140, 255, 0.2), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(21, 242, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #031022 0%, #06182d 48%, #020713 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(111, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 190, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  transform-origin: center;
  animation: gridPulse 10s ease-in-out infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), transparent 92%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0%, rgba(45, 140, 255, 0.08) 48%, transparent 58%);
  transform: translateX(-42%);
  animation: neonSweep 9s ease-in-out infinite;
}

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

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
}

.scanline {
  display: none;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(45, 140, 255, 0.22);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(21, 242, 255, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 242, 255, 0.9), rgba(45, 140, 255, 0.78)),
    var(--bg-2);
  box-shadow: 0 0 22px rgba(45, 140, 255, 0.32), inset 0 0 14px rgba(255, 255, 255, 0.18);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  height: 2px;
  left: 9px;
  background: rgba(1, 8, 20, 0.82);
}

.brand-mark::before {
  width: 15px;
  top: 11px;
}

.brand-mark::after {
  width: 10px;
  top: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-width: 62px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(21, 242, 255, 0.42);
  background: rgba(21, 242, 255, 0.08);
  box-shadow: 0 0 20px rgba(21, 242, 255, 0.18);
}

.hero {
  min-height: 374px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 38px;
  padding: 22px 0 26px;
}

.hero-copy,
.terminal-panel,
.info-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(21, 242, 255, 0.45);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1::before,
h1::after {
  display: none;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 0;
  color: #c4d9ec;
  font-size: 1.02rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #00101c;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(21, 242, 255, 0.38);
}

.button.ghost {
  border: 1px solid rgba(21, 242, 255, 0.4);
  color: #dffbff;
  background: rgba(3, 13, 29, 0.62);
  box-shadow: inset 0 0 16px rgba(21, 242, 255, 0.08);
}

.terminal-panel {
  border: 1px solid rgba(21, 242, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 35, 65, 0.9), rgba(4, 16, 33, 0.94)),
    var(--panel-strong);
  box-shadow: var(--shadow), 0 0 26px rgba(45, 140, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: panelFloat 7s ease-in-out infinite;
}

.terminal-top {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(21, 242, 255, 0.24);
  background: rgba(255, 255, 255, 0.035);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px currentColor;
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.terminal-top strong {
  margin-left: auto;
  color: #83f7ff;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.terminal-body {
  min-height: 240px;
  padding: 20px 26px;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.96rem;
  line-height: 1.58;
}

.terminal-body p {
  margin-bottom: 8px;
}

.prompt {
  color: var(--green);
  text-shadow: 0 0 12px rgba(56, 255, 183, 0.55);
}

.output {
  color: #c4e4ff;
  padding-left: 18px;
}

.live-line {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  animation: cursor 900ms step-end infinite;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 22px;
}

.info-card {
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid rgba(21, 242, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 140, 255, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(9, 35, 65, 0.8), rgba(4, 16, 33, 0.76));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18), inset 0 0 18px rgba(21, 242, 255, 0.035);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 242, 255, 0.62);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), 0 0 24px rgba(21, 242, 255, 0.18);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--green);
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card h2 {
  margin-bottom: 7px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.info-card p {
  margin-bottom: 0;
  color: #bed3e5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

.site-footer {
  min-height: 72px;
  margin-top: auto;
  padding: 10px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(21, 242, 255, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: #bfeaff;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(21, 242, 255, 0.58);
}

.mps-beian {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mps-beian img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes neonSweep {
  0%,
  38% {
    transform: translateX(-46%);
    opacity: 0.16;
  }

  58% {
    transform: translateX(34%);
    opacity: 0.36;
  }

  100% {
    transform: translateX(48%);
    opacity: 0.14;
  }
}

@keyframes scanMove {
  from {
    transform: translateY(-100px);
  }

  to {
    transform: translateY(calc(100vh + 100px));
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes titleGlitch {
  0%,
  92%,
  100% {
    transform: translate(0, 0);
  }

  94% {
    transform: translate(3px, -1px);
  }

  96% {
    transform: translate(-2px, 1px);
  }
}

@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .site-header {
    min-height: 58px;
  }

  .hero {
    min-height: 344px;
    padding: 14px 0 20px;
  }

  h1 {
    font-size: 3.65rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .terminal-body {
    min-height: 226px;
    padding: 18px 24px;
  }

  .info-card {
    min-height: 110px;
    padding: 14px 16px;
  }

  .content-grid {
    padding-bottom: 14px;
  }

  .site-footer {
    min-height: 64px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 82px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 2.95rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .terminal-body {
    min-height: 250px;
    padding: 20px 18px;
    font-size: 0.86rem;
  }

  .terminal-top strong {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    padding-bottom: 34px;
  }

  .site-footer {
    min-height: 88px;
    font-size: 0.86rem;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 10px;
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 28px;
    overflow: hidden;
  }

  h1 {
    font-size: 2.05rem;
  }

  .hero-lead {
    max-width: 22em;
    word-break: break-all;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-width: 132px;
  }

  .live-line {
    white-space: normal;
  }
}

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