*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #f5f5f7;
  background: #111419;
}
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; }
.scene-image,
.scene-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.scene-image {
  background: url("./portal-scene.png") center / cover no-repeat;
  filter: saturate(.72) contrast(1.03);
  transform: scale(1.015);
}
.scene-shade {
  background:
    linear-gradient(90deg, rgba(8, 12, 17, .92) 0%, rgba(8, 12, 17, .78) 48%, rgba(8, 12, 17, .56) 100%),
    linear-gradient(0deg, rgba(8, 12, 17, .92), rgba(8, 12, 17, .18) 62%, rgba(8, 12, 17, .55));
}
.page {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 28px 16px;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(129, 236, 216, .52);
  border-radius: 7px;
  color: #9ff5e1;
  background: rgba(8, 31, 32, .76);
  font: 700 13px/1 Consolas, monospace;
}
.brand-kicker,
.eyebrow,
.role-kicker {
  color: #8fdacc;
  font: 700 9px/1.25 Consolas, monospace;
  letter-spacing: .11em;
}
.brand-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}
.service-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: #b9c5ca;
  background: rgba(17, 20, 25, .76);
  font-size: 10px;
}
.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 8px rgba(255, 209, 102, .6);
}
.service-state[data-service-state="online"] .state-dot {
  background: #67e8a5;
  box-shadow: 0 0 8px rgba(103, 232, 165, .64);
}
.service-state[data-service-state="offline"] .state-dot {
  background: #ff7c74;
  box-shadow: 0 0 8px rgba(255, 124, 116, .64);
}
main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vh, 86px) 0 28px;
}
.intro {
  width: min(720px, 100%);
}
.intro h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}
.intro p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #c1cdd1;
  font-size: 13px;
  line-height: 1.75;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 5vh, 58px);
}
.role-card {
  --accent: #72e4cc;
  --accent-soft: rgba(114, 228, 204, .14);
  display: flex;
  min-height: 250px;
  padding: 17px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 8px;
  color: inherit;
  background: rgba(22, 26, 32, .9);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.role-card.teacher {
  --accent: #ffb45e;
  --accent-soft: rgba(255, 180, 94, .14);
}
.role-card.expert {
  --accent: #86c5ff;
  --accent-soft: rgba(134, 197, 255, .14);
}
.role-card:hover,
.role-card:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: rgba(27, 32, 39, .96);
  transform: translateY(-4px);
}
.alternate-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  color: #8e9aa0;
  font-size: 11px;
}
.alternate-entry a {
  color: #c7d2d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 210, 214, .28);
}
.alternate-entry a:hover,
.alternate-entry a:focus-visible {
  color: #fff;
  border-bottom-color: currentColor;
  outline: none;
}
.role-top,
.role-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.role-index {
  color: var(--accent);
  font: 700 11px/1 Consolas, monospace;
}
.role-status {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
}
.role-copy {
  margin: 24px 0;
}
.role-kicker {
  color: var(--accent);
}
.role-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
}
.role-copy p {
  margin: 12px 0 0;
  color: #b8c3c8;
  font-size: 12px;
  line-height: 1.7;
}
.role-foot {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8e9ba1;
  font-size: 9px;
}
.role-foot strong {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  color: #77858c;
  font: 9px/1.5 Consolas, "Microsoft YaHei", monospace;
}
@media (max-width: 900px) {
  .page { padding: 14px 16px 12px; }
  main { justify-content: flex-start; padding-top: 46px; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 0; }
  .role-copy { margin: 20px 0; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .brand-kicker { display: none; }
  .brand-name { margin-top: 0; font-size: 13px; }
  .service-state { padding: 7px; }
  .service-state span:last-child { display: none; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 12px; }
  .role-foot { align-items: flex-start; flex-direction: column; }
}
