:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e0ea;
  --accent: #1565c0;
  --accent-soft: #e8f1ff;
  --green: #177245;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 101, 192, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(21, 101, 192, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  background: rgba(246, 248, 251, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 7px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.home {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 34px;
  padding: 70px 0 60px;
}

.hero {
  max-width: 780px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.quick-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow: 0 22px 62px rgba(17, 24, 39, 0.12);
}

.portal-card small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-card h2 {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.22;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.portal-card .arrow {
  margin-top: 24px;
  color: var(--accent);
  font-weight: 800;
}

.page {
  padding: 70px 0 90px;
}

.page-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-head h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.list-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
  font-weight: 750;
}

@media (max-width: 780px) {
  .nav {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    padding: 13px 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .home {
    padding-top: 46px;
  }
}
