:root {
  color-scheme: light;
  --bg: #0a0f1c;
  --panel: #111a2e;
  --panel-soft: #152038;
  --text: #e9eefc;
  --muted: #a9b5d6;
  --primary: #63b2ff;
  --primary-strong: #4e92ff;
  --border: #2f3f72;
  --maxw: 1120px;
  --glow-primary: rgba(99, 178, 255, 0.6);
  --glow-secondary: rgba(108, 255, 237, 0.5);
  --glow-accent: rgba(255, 107, 157, 0.5);
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 178, 255, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 178, 255, 0.45);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  scrollbar-color: rgba(99, 178, 255, 0.25) transparent;
  scrollbar-width: thin;
  background: radial-gradient(900px 500px at 8% -10%, rgba(72, 114, 255, 0.35) 0%, transparent 62%),
    radial-gradient(700px 460px at 88% 0%, rgba(33, 237, 255, 0.18) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  padding-top: 72px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::selection {
  background: rgba(112, 231, 255, 0.34);
  color: #f4fbff;
}

body::before {
  background-image: linear-gradient(rgba(126, 154, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 154, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 80%);
  opacity: 0.3;
}

body::after {
  background: conic-gradient(from 90deg at 70% 10%, rgba(87, 164, 255, 0.12), transparent 30%, rgba(78, 255, 234, 0.1), transparent 60%);
  filter: blur(54px);
  animation: bg-pan 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(12px);
  background: rgba(6, 10, 22, 0.7);
  border-bottom: 1px solid rgba(130, 157, 255, 0.2);
  box-shadow: 0 12px 28px rgba(3, 8, 20, 0.45);
  z-index: 20;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(105, 190, 255, 0.8) 30%, rgba(108, 255, 237, 0.75) 65%, transparent 100%);
  filter: drop-shadow(0 0 8px rgba(89, 190, 255, 0.6));
  animation: nav-scan 3.2s linear infinite;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(132, 162, 255, 0.44);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(67, 95, 188, 0.14);
}

.lang-btn {
  width: 40px;
  height: 34px;
  border: 0;
  color: #c8d8ff;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.lang-btn.is-active {
  background: linear-gradient(120deg, rgba(88, 161, 255, 0.8), rgba(93, 234, 255, 0.7));
  color: #061024;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 0 18px rgba(118, 203, 255, 0.4);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 14px rgba(90, 202, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, #70d8ff, #7be7ff, #89ffde);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
  box-shadow: 0 0 10px rgba(110, 232, 255, 0.6);
}

.nav-links a:hover {
  color: #d8eeff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-github {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(129, 168, 255, 0.44);
  background: rgba(75, 104, 201, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9ecff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.nav-github svg {
  width: 18px;
  height: 18px;
}

.nav-github:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 233, 255, 0.8);
  background: rgba(73, 186, 255, 0.22);
  box-shadow: 0 8px 18px rgba(14, 92, 168, 0.4), 0 0 14px rgba(109, 235, 255, 0.35);
}

.hero {
  padding: 84px 0 48px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.42;
}

.hero::before {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 35% 35%, rgba(115, 190, 255, 0.8), rgba(115, 190, 255, 0));
  top: 24px;
  right: 15%;
  animation: float-orb 6s ease-in-out infinite;
}

.hero::after {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 35% 35%, rgba(90, 255, 230, 0.55), rgba(90, 255, 230, 0));
  bottom: 12px;
  right: 6%;
  animation: float-orb 8s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.badge {
  margin: 0 0 16px;
  display: inline-flex;
  border: 1px solid rgba(102, 216, 255, 0.62);
  color: #96e9ff;
  background: rgba(102, 216, 255, 0.12);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: inset 0 0 22px rgba(103, 226, 255, 0.1), 0 0 18px rgba(90, 182, 255, 0.24);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.7px;
  background: linear-gradient(100deg, #f2f7ff 0%, #b7daff 45%, #8ce8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(125, 199, 255, 0.22);
}

.hero-desc {
  margin: 18px 0 24px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, #5d99ff, #53c7ff);
  box-shadow: 0 10px 24px rgba(71, 142, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #4c8cff, #47b8ff);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(79, 162, 255, 0.42);
}

.btn-secondary {
  border-color: rgba(132, 155, 255, 0.45);
  background: rgba(101, 129, 255, 0.09);
  color: #d6e1ff;
}

.btn-secondary:hover {
  background: rgba(119, 171, 255, 0.18);
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  color: #b6c1e0;
  font-size: 14px;
}

.panel {
  border: 1px solid rgba(126, 158, 255, 0.32);
  background: linear-gradient(180deg, rgba(18, 30, 63, 0.88), rgba(12, 24, 52, 0.82));
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px rgba(5, 10, 24, 0.38), inset 0 0 36px rgba(94, 170, 255, 0.08);
}

.hero-brand-mark {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  opacity: 0.2;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 14px,
    rgba(109, 164, 255, 0.06) 15px,
    rgba(109, 164, 255, 0.06) 16px
  );
  opacity: 0.42;
  pointer-events: none;
}


.panel h3 {
  margin: 0 0 12px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(24px, 3.2vw, 36px);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(106, 203, 255, 1), rgba(129, 255, 245, 0.85));
  box-shadow: 0 0 16px rgba(106, 203, 255, 0.6);
}

.muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card {
  border: 1px solid rgba(126, 158, 255, 0.27);
  border-radius: 14px;
  padding: 18px;
  background: rgba(15, 24, 50, 0.76);
  backdrop-filter: blur(6px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 200, 255, 0.5);
  box-shadow: 0 18px 30px rgba(4, 11, 24, 0.44);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 90%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(124, 236, 255, 0.2), transparent);
  transition: left 380ms ease;
}

.card:hover::before {
  left: 130%;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.usage-step {
  border: 1px solid rgba(126, 158, 255, 0.27);
  border-radius: 14px;
  padding: 18px;
  background: rgba(15, 24, 50, 0.76);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.usage-step:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 217, 255, 0.5);
  box-shadow: 0 18px 30px rgba(4, 11, 24, 0.44);
}

.usage-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(103, 225, 255, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.usage-step:hover::before {
  opacity: 1;
}

.step-index {
  display: inline-block;
  color: #8de5ff;
  background: rgba(102, 216, 255, 0.1);
  border: 1px solid rgba(102, 216, 255, 0.42);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.usage-step h3 {
  margin: 0 0 8px;
}

.usage-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-desc {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 18, 34, 0.9);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 34px rgba(5, 10, 22, 0.5);
  border-color: rgba(102, 216, 255, 0.62);
}

.shot-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.shot-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, #1a2a56, #13203f);
  transition: transform 280ms ease;
}

.shot:hover .shot-image {
  transform: scale(1.03);
}

.shot::after {
  content: "⤢";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(9, 18, 36, 0.64);
  border: 1px solid rgba(133, 194, 255, 0.45);
  color: #bde9ff;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.shot:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(132, 215, 255, 0.35);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.62), 0 0 24px rgba(98, 187, 255, 0.22);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 22, 41, 0.85);
  color: #e8efff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
}

th {
  color: #c4d1f8;
  background: rgba(255, 255, 255, 0.03);
}

.architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.arch-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 18px;
}

.arch-item h3 {
  margin: 0 0 8px;
}

.arch-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-box {
  border: 1px solid rgba(128, 161, 255, 0.34);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(17, 30, 62, 0.92), rgba(12, 25, 55, 0.92));
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 32px rgba(6, 12, 28, 0.45);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(113, 191, 255, 0.16), transparent 40%, rgba(108, 255, 238, 0.12));
  pointer-events: none;
}

.cta-box h2 {
  margin: 0 0 8px;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(132, 162, 255, 0.2);
  padding: 24px 0;
  color: #a8b4d6;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(126, 184, 255, 0.58);
  background: linear-gradient(130deg, rgba(92, 150, 255, 0.9), rgba(87, 231, 255, 0.82));
  color: #061024;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(6, 48, 92, 0.42), 0 0 14px rgba(99, 205, 255, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 18px 32px rgba(6, 58, 104, 0.46), 0 0 18px rgba(106, 229, 255, 0.5);
}

@keyframes bg-pan {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.06);
  }
}

@keyframes nav-scan {
  0% {
    transform: translateX(-28%);
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(28%);
    opacity: 0.5;
  }
}

@keyframes float-orb {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Particle animation background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(99, 178, 255, 1);
  border-radius: 50%;
  animation: particle-float linear infinite;
  box-shadow: 0 0 15px rgba(99, 178, 255, 1), 0 0 30px rgba(99, 178, 255, 0.6), 0 0 45px rgba(99, 178, 255, 0.3);
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Glowing text effect */
.glow-text {
  text-shadow: 0 0 10px var(--glow-primary), 0 0 20px var(--glow-primary), 0 0 30px var(--glow-primary);
}

/* Enhanced card animations */
.card {
  animation: card-appear 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated gradient border */
.animated-border {
  position: relative;
  background: linear-gradient(135deg, rgba(99, 178, 255, 0.1), rgba(108, 255, 237, 0.1));
  border-radius: 16px;
}

.animated-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--glow-secondary), var(--primary));
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: gradient-border 3s ease infinite;
}

@keyframes gradient-border {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Typing effect for hero title */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Pulse animation for buttons */
.btn-primary {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(71, 142, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow: 0 10px 24px rgba(71, 142, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 20px var(--glow-primary);
  }
}

/* Enhanced hero section */
.hero {
  position: relative;
}

.hero-grid > div:first-child {
  animation: slide-in-left 0.8s ease-out;
}

.hero-grid > div:last-child {
  animation: slide-in-right 0.8s ease-out;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Floating tech elements */
.tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.8;
  animation: orb-float 8s ease-in-out infinite;
  pointer-events: none;
}

.tech-orb-1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--glow-secondary));
  top: 15%;
  left: 5%;
  animation-delay: 0s;
  box-shadow: 0 0 60px var(--glow-primary);
}

.tech-orb-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--glow-secondary), var(--glow-accent));
  top: 55%;
  right: 10%;
  animation-delay: 2s;
  box-shadow: 0 0 50px var(--glow-secondary);
}

.tech-orb-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--glow-accent), var(--primary));
  bottom: 25%;
  left: 15%;
  animation-delay: 4s;
  box-shadow: 0 0 40px var(--glow-accent);
}

@keyframes orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.9);
  }
  75% {
    transform: translate(30px, 10px) scale(1.05);
  }
}

/* Section reveal animation */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced navigation */
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(99, 178, 255, 0.1);
  color: #d8eeff;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--glow-secondary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 100%;
}

/* Glowing card effect */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99, 178, 255, 0.05), rgba(108, 255, 237, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

/* Enhanced table */
.table-wrap {
  position: relative;
  overflow: hidden;
}

.table-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--glow-secondary), transparent);
}

/* Animated architecture items */
.arch-item {
  transition: all 0.4s ease;
}

.arch-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(113, 200, 255, 0.5);
  box-shadow: 0 20px 40px rgba(4, 11, 24, 0.5);
}

/* Footer enhancement */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--glow-secondary), transparent);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .cards,
  .usage-grid,
  .gallery-grid,
  .architecture {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* Ultra Tech Effects - 超级科技效果 */


/* Holographic projection effect - 全息投影效果 */
.hologram {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(99, 178, 255, 0.15), 
    rgba(108, 255, 237, 0.1), 
    rgba(255, 107, 157, 0.12));
  animation: hologram-flicker 4s ease-in-out infinite;
}

.hologram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(99, 178, 255, 0.08) 2px,
    rgba(99, 178, 255, 0.08) 4px
  );
  animation: scan-lines 0.1s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes hologram-flicker {
  0%, 100% {
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  25% {
    opacity: 0.95;
    filter: hue-rotate(5deg);
  }
  50% {
    opacity: 1;
    filter: hue-rotate(-5deg);
  }
  75% {
    opacity: 0.98;
    filter: hue-rotate(3deg);
  }
}

@keyframes scan-lines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Data flow animation - 数据流动动画 */
.data-flow {
  position: relative;
  overflow: hidden;
}

.data-flow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99, 178, 255, 0.2), 
    rgba(108, 255, 237, 0.25), 
    rgba(99, 178, 255, 0.2), 
    transparent);
  animation: data-stream 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes data-stream {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Neon glow text - 霓虹灯文字 */
.neon-text {
  color: var(--text);
  text-shadow: 
    0 0 5px var(--primary),
    0 0 10px var(--primary),
    0 0 20px var(--primary),
    0 0 40px var(--glow-primary),
    0 0 80px var(--glow-primary);
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from {
    text-shadow: 
      0 0 5px var(--primary),
      0 0 10px var(--primary),
      0 0 20px var(--primary),
      0 0 40px var(--glow-primary),
      0 0 80px var(--glow-primary);
  }
  to {
    text-shadow: 
      0 0 2px var(--primary),
      0 0 5px var(--primary),
      0 0 10px var(--primary),
      0 0 20px var(--glow-primary),
      0 0 40px var(--glow-primary);
  }
}

/* Glitch effect - 故障艺术效果 */
.glitch {
  position: relative;
  animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--glow-accent);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px);
}

.glitch::after {
  animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: var(--glow-secondary);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px);
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }
  20% {
    transform: skew(0.5deg);
  }
  40% {
    transform: skew(-0.5deg);
  }
  60% {
    transform: skew(0.3deg);
  }
  80% {
    transform: skew(-0.3deg);
  }
  100% {
    transform: skew(0deg);
  }
}

/* Matrix rain effect - 矩阵雨效果 */
.matrix-rain {
  position: relative;
  overflow: hidden;
}

.matrix-rain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, 
      transparent 0%, 
      rgba(99, 178, 255, 0.15) 25%,
      rgba(108, 255, 237, 0.1) 50%, 
      rgba(99, 178, 255, 0.15) 75%,
      transparent 100%);
  animation: matrix-fall 1.5s linear infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Cyberpunk grid - 赛博朋克网格 */
.cyber-grid {
  position: relative;
  background-image: 
    linear-gradient(rgba(99, 178, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 178, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: grid-pulse 4s ease-in-out infinite;
}

.cyber-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg) 70%);
  pointer-events: none;
}

@keyframes grid-pulse {
  0%, 100% {
    opacity: 0.3;
    background-size: 20px 20px;
  }
  50% {
    opacity: 0.6;
    background-size: 25px 25px;
  }
}

/* Energy waves - 能量波纹 */
.energy-wave {
  position: relative;
}

.energy-wave::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(99, 178, 255, 0.1) 0%, 
    transparent 30%);
  transform: translate(-50%, -50%);
  animation: energy-ripple 3s ease-out infinite;
  pointer-events: none;
}

@keyframes energy-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Circuit lines - 电路线条 */
.circuit-lines {
  position: relative;
}

.circuit-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 48%, rgba(99, 178, 255, 0.1) 49%, rgba(99, 178, 255, 0.1) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(99, 178, 255, 0.1) 49%, rgba(99, 178, 255, 0.1) 51%, transparent 52%);
  background-size: 40px 40px;
  animation: circuit-flow 2s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes circuit-flow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

/* 3D card effect */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

/* Rainbow border - 彩虹边框 */
.rainbow-border {
  position: relative;
  background: var(--panel);
  border-radius: 16px;
}

.rainbow-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    var(--primary), 
    var(--glow-secondary), 
    var(--glow-accent), 
    var(--primary));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: rainbow-shift 3s ease infinite;
}

@keyframes rainbow-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Pulse rings - 脉冲光环 */
.pulse-rings {
  position: relative;
}

.pulse-rings::before,
.pulse-rings::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
}

.pulse-rings::after {
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Floating hexagons - 浮动六边形 */
.hex-pattern {
  position: relative;
}

.hex-pattern::after {
  content: "⬡";
  position: absolute;
  font-size: 30px;
  color: rgba(99, 178, 255, 0.1);
  top: 10%;
  right: 10%;
  animation: hex-float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hex-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.6;
  }
}

/* Enhanced hero with ultra effects */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, 
      rgba(99, 178, 255, 0.25) 60deg, 
      transparent 120deg, 
      rgba(108, 255, 237, 0.25) 180deg, 
      transparent 240deg, 
      rgba(255, 107, 157, 0.25) 300deg, 
      transparent 360deg);
  animation: ultra-rotate 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ultra-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
