:root {
  --bg-0: #040a14;
  --bg-1: #071224;
  --bg-2: #0b1d39;
  --card: rgba(10, 24, 48, 0.76);
  --card-strong: rgba(12, 31, 61, 0.9);
  --line: rgba(114, 191, 255, 0.14);
  --line-strong: rgba(114, 191, 255, 0.3);
  --text: #edf5ff;
  --muted: #8fa8c7;
  --accent: #6ec8ff;
  --accent-2: #80f0ff;
  --good: #71e2b1;
  --warn: #ffd57f;
  --portal-height: 78px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(65, 145, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 4%, rgba(0, 214, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(28, 78, 158, 0.2), transparent 36%),
    linear-gradient(180deg, #02060e 0%, #061121 22%, #07162a 52%, #030811 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(140, 200, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  opacity: 0.4;
}

a {
  color: inherit;
}

.portal-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--portal-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.94), rgba(4, 12, 24, 0.82)),
    radial-gradient(circle at 18% 0%, rgba(110, 200, 255, 0.12), transparent 28%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.portal-bar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 200, 255, 0), rgba(110, 200, 255, 0.28), rgba(110, 200, 255, 0));
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.portal-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(114, 191, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(18, 48, 96, 0.92), rgba(8, 22, 44, 0.94));
  color: #f2fbff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.portal-brand-copy {
  display: grid;
  gap: 3px;
}

.portal-brand-copy strong,
.hero-title,
.section-title,
.module-card h3,
.panel h3 {
  background: linear-gradient(90deg, #ffffff 0%, #a8e7ff 52%, #8eaefe 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.portal-brand-copy strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.portal-brand-copy span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  background: rgba(9, 23, 45, 0.32);
  transition: 0.24s ease;
}

.portal-link:hover {
  color: var(--text);
  border-color: rgba(114, 191, 255, 0.16);
  background: rgba(12, 31, 61, 0.76);
}

.portal-link.active {
  color: var(--text);
  border-color: rgba(114, 191, 255, 0.28);
  background: linear-gradient(135deg, rgba(19, 53, 105, 0.94), rgba(9, 25, 49, 0.92));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(114, 191, 255, 0.08);
}

.portal-link.active span {
  background: linear-gradient(90deg, #ffffff 0%, #9fe7ff 45%, #8ab8ff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--portal-height) + 48px) 28px 48px;
}

.wrap {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 40px 40px 36px;
  border-radius: 34px;
  border: 1px solid rgba(120, 190, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(110, 200, 255, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(8, 22, 44, 0.9), rgba(4, 11, 22, 0.62));
  box-shadow: var(--shadow);
}

.hero::before,
.module-card::before,
.panel::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(110, 200, 255, 0.9), rgba(128, 240, 255, 0.12));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 920px;
  color: #dce9fb;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.8;
}

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

.button,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(114, 191, 255, 0.22);
  background: rgba(13, 34, 67, 0.76);
  color: #e9f4ff;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(114, 191, 255, 0.28);
  background: linear-gradient(135deg, rgba(20, 57, 112, 0.96), rgba(9, 25, 49, 0.92));
}

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.18;
}

.section-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.module-card,
.panel {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.module-card p,
.panel p,
.list li {
  color: #dbe7f8;
  font-size: 15px;
  line-height: 1.8;
}

.module-meta {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(114, 191, 255, 0.18);
  background: rgba(11, 30, 57, 0.78);
  color: #d9ebff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  border-color: rgba(113, 226, 177, 0.26);
  background: rgba(113, 226, 177, 0.12);
  color: var(--good);
}

.soon {
  border-color: rgba(255, 213, 127, 0.24);
  background: rgba(255, 213, 127, 0.12);
  color: var(--warn);
}

.module-card h3,
.panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(110, 200, 255, 0.5);
}

.footer-note {
  margin-top: 22px;
  color: rgba(234, 244, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 0;
  text-align: center;
  color: rgba(234, 244, 255, 0.65);
  font-size: 13px;
  line-height: 1.8;
}

.site-footer a {
  color: rgba(234, 244, 255, 0.8);
  text-decoration: none;
}

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

.site-footer .divider {
  margin: 0 10px;
  opacity: 0.4;
}

@media (max-width: 980px) {
  .portal-bar {
    height: auto;
    min-height: var(--portal-height);
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-bar::after {
    left: 18px;
    right: 18px;
  }

  .portal-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .page {
    padding-top: calc(var(--portal-height) + 82px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero,
  .module-card,
  .panel {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 680px) {
  .portal-brand-copy span {
    display: none;
  }

  .portal-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 32px;
  }
}
