:root {
  --bg: #08111c;
  --bg-alt: #0e1b2c;
  --panel: rgba(14, 29, 46, 0.9);
  --line: rgba(132, 163, 197, 0.35);
  --text: #eaf1fb;
  --muted: #aebed2;
  --brand: #68d8ff;
  --accent: #ffc97a;
  --max: 1120px;
  --radius-lg: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #060e17 0%, #08111c 100%),
    radial-gradient(100% 60% at 10% -10%, rgba(90, 153, 214, 0.18), transparent 70%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(210, 227, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 227, 247, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.page {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
}

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fade-in 420ms ease-out both;
}

.hero-head,
.hero-visual,
.system-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 28, 44, 0.92), rgba(12, 23, 36, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.3);
}

.hero-head {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  display: grid;
  gap: 0.7rem;
  text-align: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem;
  border: 1px solid rgba(128, 160, 193, 0.32);
  border-radius: 999px;
  background: rgba(9, 18, 29, 0.7);
}

.lang-btn {
  border: 0;
  min-width: 2.2rem;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
  background: transparent;
  color: #b3c6da;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-btn:hover {
  color: #e3eefc;
  background: rgba(108, 141, 177, 0.24);
}

.lang-btn.is-active {
  color: #052131;
  background: linear-gradient(135deg, #96e8ff, #61d2f0);
}

.lang-btn:focus-visible {
  outline: 2px solid #9addf7;
  outline-offset: 1px;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ddfff;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
}

h1 span {
  color: var(--brand);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.64;
  max-width: 62ch;
  margin-inline: auto;
}

.hero-visual {
  margin: 0;
  padding: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.72rem;
}

.image-shell {
  width: min(100%, 760px);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(150, 184, 220, 0.44);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
}

.image-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(8%) contrast(1.06);
}

.image-slogan {
  margin: 0;
  font-weight: 600;
  color: #e8f0fb;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.system-panel {
  padding: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.panel-block {
  padding: 0.9rem;
  border: 1px solid rgba(140, 176, 214, 0.33);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(16, 33, 52, 0.9), rgba(12, 23, 36, 0.94));
}

.panel-index {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: #88d2f2;
  font-weight: 700;
}

.panel-block h2 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.panel-block p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #b8c7d8;
}

.actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.disclaimer {
  margin: 0.2rem 0 0;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(130, 160, 192, 0.24);
  border-radius: var(--radius-sm);
  text-align: center;
  color: #98abc0;
  font-size: 0.83rem;
  line-height: 1.5;
  background: rgba(10, 20, 33, 0.56);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #082231;
  background: linear-gradient(135deg, #8de7ff, #58ceef);
  box-shadow: 0 8px 20px rgba(36, 162, 201, 0.3);
}

.btn-secondary {
  color: #eaf2fe;
  border: 1px solid #5f81a5;
  background: rgba(14, 30, 48, 0.92);
}

.btn-secondary:hover {
  background: rgba(20, 40, 62, 0.96);
}

.btn:focus-visible {
  outline: 2px solid #9addf7;
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .system-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero-visual,
  .system-panel,
  .hero-head {
    padding: 0.82rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.6rem;
  }

  .image-shell {
    aspect-ratio: 5 / 4;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .disclaimer {
    font-size: 0.8rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
