:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #61706a;
  --line: #d9e0dc;
  --teal-dark: #0b4f4a;
  --blue: #315f9d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI",
    Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.portal {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px);
}

.system-section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.system-card {
  display: grid;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 32, 28, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.system-card:hover,
.system-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 20px 48px rgba(23, 32, 28, 0.14);
  outline: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.system-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.system-icon.recruitment {
  background: var(--teal-dark);
}

.system-icon.kpi {
  background: var(--blue);
}

.system-icon.jobs {
  background: #0f766e;
}

.system-tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4e9d6;
  color: #6f4512;
  font-size: 12px;
  font-weight: 800;
}

.system-card h2 {
  margin: 24px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.system-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.launch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.launch-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.launch-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .portal {
    padding: 24px 14px;
  }

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

  .launch-row {
    flex-direction: column;
    align-items: stretch;
  }

  .launch-icon {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .system-card {
    padding: 16px;
  }
}
