:root {
  --bg: #050816;
  --bg-soft: #0b1024;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.68);
  --muted-weak: rgba(246, 248, 255, 0.48);
  --cyan: #2ee9ff;
  --blue: #5d6bff;
  --purple: #a855f7;
  --pink: #ff4ecd;
  --green: #32ffb4;
  --warning: #ffd166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(93, 107, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(255, 78, 205, 0.18), transparent 25rem),
    radial-gradient(circle at 50% 85%, rgba(46, 233, 255, 0.14), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

#starfield,
.noise-layer,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: -3;
}

.noise-layer {
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cursor-glow {
  z-index: -1;
  background: radial-gradient(circle 260px at var(--x, 50%) var(--y, 50%), rgba(46, 233, 255, 0.16), transparent 70%);
  transition: opacity 0.25s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 18px 22px;
}

.navbar {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  transition: 0.3s ease;
}

.site-header.scrolled .navbar {
  padding: 10px 14px;
  background: rgba(5, 8, 22, 0.82);
  border-color: rgba(46, 233, 255, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 28px rgba(46, 233, 255, 0.45);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted-weak);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-action {
  min-height: 44px;
  padding: 0 22px;
  color: #031220;
  background: linear-gradient(135deg, var(--cyan), #8df5ff);
  box-shadow: 0 12px 30px rgba(46, 233, 255, 0.24);
}

.nav-action:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: 0.25s ease;
}

.section-shell {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding-top: 150px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid rgba(46, 233, 255, 0.24);
  border-radius: 999px;
  background: rgba(46, 233, 255, 0.09);
  color: #b9f8ff;
}

.status-pill {
  padding: 10px 18px;
  font-size: 14px;
}

.eyebrow {
  padding: 8px 15px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(50, 255, 180, 0.65);
  animation: pulseDot 1.7s infinite;
}

.hero h1,
.section-head h2,
.project-copy h2,
.contact-panel h2 {
  letter-spacing: -0.06em;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  max-width: 820px;
}

.hero h1 span,
.section-head h2 span {
  color: transparent;
  background: linear-gradient(110deg, var(--cyan), #ffffff 38%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 26px rgba(46, 233, 255, 0.25));
}

.hero-desc {
  max-width: 680px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  min-height: 54px;
  padding: 0 28px;
}

.btn.primary {
  color: #031220;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 18px 45px rgba(46, 233, 255, 0.2);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn.ghost:hover {
  border-color: rgba(46, 233, 255, 0.5);
  box-shadow: 0 18px 45px rgba(46, 233, 255, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
  max-width: 620px;
}

.hero-metrics div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  color: var(--cyan);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
  animation: floatOrb 7s ease-in-out infinite;
}

.orb-one {
  top: 20px;
  right: 70px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(46, 233, 255, 0.85), transparent 68%);
}

.orb-two {
  bottom: 40px;
  left: 20px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 78, 205, 0.56), transparent 66%);
  animation-delay: -2s;
}

.holo-card,
.project-panel,
.order-board,
.contact-panel,
.feature-card,
.timeline-item {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.holo-card {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  min-height: 420px;
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-7deg) rotateX(5deg);
}

.holo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(46, 233, 255, 0.3), transparent 35%, rgba(255, 78, 205, 0.28));
  opacity: 0.9;
  z-index: -1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar em {
  margin-left: auto;
  color: var(--muted-weak);
  font-size: 12px;
  font-style: normal;
}

.code-lines {
  display: grid;
  gap: 18px;
  padding: 44px 14px 16px;
}

.code-lines p {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
}

.code-lines b {
  color: var(--cyan);
  font-family: Consolas, Monaco, monospace;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(46, 233, 255, 0.13), transparent);
  animation: scan 4s linear infinite;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(46, 233, 255, 0.22);
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: hoverCard 5s ease-in-out infinite;
}

.floating-card span {
  color: var(--muted-weak);
  font-size: 12px;
}

.floating-card strong {
  color: var(--text);
  white-space: nowrap;
}

.card-a {
  top: 78px;
  left: -10px;
}

.card-b {
  right: -4px;
  bottom: 52px;
  animation-delay: -1.6s;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2,
.project-copy h2,
.contact-panel h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.section-head p,
.project-copy p,
.contact-panel p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 340px;
  padding: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-9px);
  border-color: rgba(46, 233, 255, 0.34);
  background: linear-gradient(145deg, rgba(46, 233, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.card-index {
  color: rgba(46, 233, 255, 0.55);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.feature-card h3 {
  margin-top: 34px;
  font-size: 24px;
}

.feature-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-card ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted-weak);
  font-size: 14px;
}

.feature-card li::before {
  content: ">";
  margin-right: 9px;
  color: var(--green);
}

.project-panel {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 46px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 180deg, transparent, rgba(46, 233, 255, 0.12), transparent, rgba(255, 78, 205, 0.11), transparent);
  animation: rotateBg 14s linear infinite;
}

.project-panel > * {
  position: relative;
  z-index: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-row span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dceeff;
  background: rgba(255, 255, 255, 0.065);
  font-size: 13px;
}

.project-dashboard {
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(46, 233, 255, 0.12), transparent),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(46, 233, 255, 0.2);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-header span {
  color: var(--muted);
}

.dash-header strong {
  font-size: 44px;
  color: var(--cyan);
}

.progress-list {
  display: grid;
  gap: 22px;
}

.progress-list div {
  display: grid;
  gap: 10px;
}

.progress-list span {
  color: var(--muted);
  font-size: 14px;
}

.progress-list i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--cyan), var(--pink)) left / var(--value) 100% no-repeat,
    rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 24px rgba(46, 233, 255, 0.18);
}

.order-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.order-board article {
  min-height: 250px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(5, 8, 22, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.order-state {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--warning);
  background: rgba(255, 209, 102, 0.12);
  font-size: 12px;
}

.order-state.active {
  color: var(--green);
  background: rgba(50, 255, 180, 0.12);
}

.order-board h3 {
  margin-top: 28px;
  font-size: 24px;
}

.order-board p {
  margin-top: 14px;
  min-height: 78px;
  color: var(--muted);
  line-height: 1.75;
}

.order-board strong {
  display: block;
  margin-top: 24px;
  color: var(--cyan);
  font-size: 20px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  padding: 28px;
  border-radius: var(--radius-md);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #031220;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.timeline-item h3 {
  margin-top: 26px;
  font-size: 22px;
}

.timeline-item p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(46, 233, 255, 0.15), transparent 34rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  text-align: left;
  background: rgba(5, 8, 22, 0.54);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 233, 255, 0.4);
  background: rgba(46, 233, 255, 0.08);
}

.contact-card span,
.contact-card small {
  color: var(--muted-weak);
}

.contact-card strong {
  align-self: center;
  word-break: break-all;
  color: var(--text);
  font-size: 18px;
}

.site-footer {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 38px 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-weak);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--cyan);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 50;
  padding: 13px 18px;
  border: 1px solid rgba(46, 233, 255, 0.26);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 8, 22, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 255, 180, 0.65);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(50, 255, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 255, 180, 0);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -22px, 0) scale(1.06);
  }
}

@keyframes hoverCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes scan {
  to {
    top: 110%;
  }
}

@keyframes rotateBg {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero,
  .project-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px;
  }

  .navbar {
    width: calc(100vw - 24px);
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 8, 22, 0.94);
    backdrop-filter: blur(24px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-action {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
    padding: 78px 0;
  }

  .hero {
    padding-top: 126px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-metrics,
  .order-board,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .holo-card {
    min-height: 380px;
    transform: none;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand-text small {
    display: none;
  }

  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-metrics div,
  .feature-card,
  .timeline-item,
  .order-board article,
  .contact-card {
    padding: 22px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .code-lines {
    gap: 12px;
    padding-top: 28px;
  }

  .code-lines p {
    align-items: flex-start;
    padding: 14px;
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
