:root {
  --portal-bg: #ffffff;
  --portal-card: #ffffff;
  --portal-text: #102033;
  --portal-muted: #667385;
  --portal-line: #e3eaf2;
  --portal-primary: #f97316;
  --portal-accent: #10a8c4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.portal-page {
  margin: 0;
  min-height: 100vh;
  color: var(--portal-text);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #f7fafc 100%),
    var(--portal-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

.portal-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.portal-brand img {
  display: block;
  width: 159px;
  height: auto;
}

.portal-brand span {
  height: 24px;
  padding-left: 18px;
  border-left: 1px solid #d6e0ea;
  color: #496174;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.portal-hero {
  padding: 104px 0 42px;
  text-align: center;
}

.portal-hero h1 {
  margin: 0;
  color: var(--portal-text);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
}

.portal-hero p {
  margin: 14px 0 0;
  color: var(--portal-muted);
  font-size: 16px;
}

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

.portal-card {
  min-height: 126px;
  padding: 26px 28px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-card);
  color: var(--portal-text);
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(24, 45, 71, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-direction: row;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 72px rgba(24, 45, 71, 0.14);
  border-color: rgba(16, 168, 196, 0.44);
}

.portal-card-primary {
  border-color: rgba(249, 115, 22, 0.42);
}

.portal-card-copy {
  min-width: 0;
  display: block;
}

.portal-card strong {
  display: block;
  color: var(--portal-text);
  font-size: 24px;
  line-height: 1.24;
}

.portal-card em {
  display: block;
  margin-top: 10px;
  color: var(--portal-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  font-weight: 500;
}

.portal-card span:last-child {
  flex-shrink: 0;
  display: block;
  margin-top: 0;
  color: #08798d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.portal-card-primary span:last-child {
  color: var(--portal-primary);
}

@media (max-width: 900px) {
  .portal-shell {
    width: min(100% - 36px, 680px);
  }

  .portal-hero {
    padding: 70px 0 34px;
    text-align: left;
  }

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

  .portal-card {
    min-height: 104px;
  }
}

@media (max-width: 520px) {
  .portal-shell {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .portal-brand {
    gap: 12px;
  }

  .portal-brand img {
    width: 142px;
  }

  .portal-brand span {
    padding-left: 12px;
  }

  .portal-hero h1 {
    font-size: 32px;
  }

  .portal-card {
    padding: 24px;
  }
}
