:root {
  color-scheme: dark;
  --bg: #282525;
  --panel: #171717;
  --panel-soft: #202020;
  --text: #ffffff;
  --muted: #d3c8d6;
  --pink: #ff2e92;
  --pink-soft: #ff6eb8;
  --violet: #8d4dff;
  --line: rgba(255, 58, 142, 0.72);
  --line-soft: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 46, 146, 0.08), transparent 240px),
    var(--bg);
}

a {
  color: inherit;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 16px 28px;
}

.portal-card {
  width: min(480px, 100%);
  display: grid;
  gap: 14px;
}

.portal-header {
  text-align: center;
  padding: 4px 8px 2px;
}

.mini-label {
  margin: 0 0 6px;
  color: var(--pink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  color: var(--pink);
  font-size: clamp(56px, 16vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #ffffff,
    0 8px 18px rgba(255, 46, 146, 0.52),
    0 -2px 14px rgba(141, 77, 255, 0.72);
}

.tagline {
  margin: 12px 0 0;
  color: #f3c4dc;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.route-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.route-card {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px 18px;
  background: var(--panel);
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.route-card-active {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.route-card:hover {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.route-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.route-card strong {
  color: var(--pink);
  font-size: 16px;
  line-height: 1.35;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.solid-button {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 18px;
  color: #ffffff;
  background: #4a4a4a;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.solid-button:hover {
  background: #5a5a5a;
}

.muted-button {
  background: #3f3f3f;
}

.notice-banner {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  padding: 18px 22px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(255, 46, 146, 0.14)),
    #242424;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.notice-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 0.18;
}

.notice-banner p {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px 0 0;
}

.shortcut-row a {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
}

.shortcut-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #444141;
}

.shortcut-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-icon svg path:first-child {
  fill: currentColor;
  fill-opacity: 0.12;
}

.shortcut-row a:hover .shortcut-icon {
  background: var(--pink);
}

.shortcut-row strong {
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.portal-footer {
  margin-top: 34px;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.portal-footer p {
  margin: 0;
}

@media (min-width: 900px) {
  .portal-card {
    width: 450px;
  }

  .portal-shell {
    padding-top: 58px;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .portal-shell {
    padding: 28px 16px 24px;
    place-items: start center;
  }

  .portal-card {
    gap: 13px;
  }

  h1 {
    font-size: 58px;
  }

  .tagline {
    font-size: 19px;
  }

  .route-card {
    min-height: 76px;
  }

  .action-grid {
    margin-top: 4px;
  }

  .solid-button {
    min-height: 68px;
    font-size: 17px;
  }

  .notice-banner p {
    font-size: 17px;
  }

  .shortcut-row {
    gap: 8px;
  }

  .shortcut-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 48px;
  }

  .tagline {
    font-size: 17px;
  }

  .shortcut-row strong {
    font-size: 12px;
  }
}
