:root {
  color: #172033;
  background: #eef3f8;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, #2563eb1c, transparent 28%),
    radial-gradient(circle at 94% 92%, #0f766e1b, transparent 30%),
    linear-gradient(145deg, #f8fafc, #edf2f7);
}

a { color: inherit; text-decoration: none; }

.portal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.portal-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 3px solid #b91c1c;
  border-radius: 50%;
  color: #b91c1c;
  background: #fff;
  font-size: 32px;
  font-weight: 850;
  box-shadow: 0 12px 30px #17203312;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hero-copy {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

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

.stage-card {
  --accent: #2563eb;
  --soft: #eff6ff;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #d9e2ec;
  border-top: 5px solid var(--accent);
  border-radius: 18px;
  background: #fffffff2;
  box-shadow: 0 20px 48px #1720330d;
}

.stage-two {
  --accent: #0f766e;
  --soft: #ecfdf5;
}

.stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stage-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
}

.stage-purpose {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.stage-card h2 {
  margin: 14px 0 10px;
  color: #172033;
  font-size: 25px;
  line-height: 1.3;
}

.stage-description {
  min-height: 52px;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry-list a {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.entry-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px #17203312;
  transform: translateY(-2px);
}

.entry-list a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 2px;
}

.entry-list span:first-child {
  display: grid;
  gap: 3px;
}

.entry-list small {
  color: #7b8796;
  font-size: 11px;
}

.entry-list strong {
  color: #1e293b;
  font-size: 15px;
}

.arrow {
  color: var(--accent);
  font-size: 21px;
  font-weight: 800;
}

.portal-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid #e7d7a4;
  border-radius: 12px;
  color: #65521d;
  background: #fffbeb;
  font-size: 13px;
  line-height: 1.7;
}

.portal-note strong { flex: none; }

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 24px, 560px);
    padding: 28px 0 30px;
  }

  .portal-hero {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-width: 2px;
    font-size: 24px;
  }

  .stage-grid { grid-template-columns: 1fr; }
  .stage-card { padding: 22px; }
  .stage-description { min-height: 0; }
  .portal-note { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-list a { transition: none; }
}
