:root {
  --bg: #eef2f7;
  --bg-deep: #dde5f3;
  --surface: #fbfcff;
  --text: #0f2038;
  --muted: #5a6b84;
  --line: #d8e0ec;
  --line-strong: #c3d0e2;
  --brand: #1557bd;
  --brand-soft: #e7efff;
  --danger: #cf4561;
  --shadow-soft: 0 12px 28px rgba(15, 32, 56, 0.07);
  --shadow-hover: 0 18px 34px rgba(15, 32, 56, 0.11);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.1px;
  color: var(--text);
  background:
    radial-gradient(960px 360px at 85% -160px, #e8eefb 0%, transparent 70%),
    radial-gradient(780px 340px at -10% -140px, #edf2ff 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, #f3f6fb 100%);
}

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

.app {
  max-width: 1020px;
  margin: 0 auto;
  padding: 30px 16px 102px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  animation: introRise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.36px;
}

#page-title {
  white-space: pre-line;
}

.muted {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-home .top {
  padding: 14px 4px 8px;
}

.section {
  margin-top: 22px;
  animation: sectionFade 0.45s ease both;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.14px;
}

.category-name {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.12px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.category-card,
.job-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.category-card:hover,
.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.category-card,
.job-card {
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
}

.grid .category-card:nth-child(1),
.grid .job-card:nth-child(1) {
  animation-delay: 0.03s;
}

.grid .category-card:nth-child(2),
.grid .job-card:nth-child(2) {
  animation-delay: 0.07s;
}

.grid .category-card:nth-child(3),
.grid .job-card:nth-child(3) {
  animation-delay: 0.11s;
}

.grid .category-card:nth-child(4),
.grid .job-card:nth-child(4) {
  animation-delay: 0.15s;
}

.grid .category-card:nth-child(5),
.grid .job-card:nth-child(5) {
  animation-delay: 0.19s;
}

.grid .category-card:nth-child(6),
.grid .job-card:nth-child(6) {
  animation-delay: 0.23s;
}

.broadcast-card {
  background:
    radial-gradient(220px 120px at 92% -10%, rgba(37, 104, 205, 0.22) 0%, rgba(37, 104, 205, 0) 72%),
    radial-gradient(180px 120px at -6% 108%, rgba(86, 160, 255, 0.16) 0%, rgba(86, 160, 255, 0) 78%),
    linear-gradient(135deg, #f2f7ff 0%, #e6f0ff 56%, #f3f8ff 100%);
  border-color: #adc4e8;
  box-shadow:
    0 16px 36px rgba(20, 61, 122, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.broadcast-card .row strong {
  color: #173d78;
  letter-spacing: 0.2px;
}

.broadcast-text {
  margin: 10px 0 0;
  color: #204568;
  font-size: 14px;
  line-height: 1.78;
  white-space: pre-line;
}

.job-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -0.2px;
}

.job-meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.urgent {
  background: #ffe7ed;
  color: var(--danger);
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 14px rgba(17, 36, 65, 0.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: linear-gradient(180deg, #1d66d8 0%, #1258c5 100%);
  border-color: #1258c5;
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 8px 16px rgba(20, 77, 167, 0.27);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 14px;
}

.jd {
  margin-top: 10px;
  line-height: 1.9;
  font-size: 14px;
  color: #223752;
}

.qrcode-preview {
  margin-top: 10px;
  display: none;
  justify-content: flex-start;
}

.qrcode-image {
  width: 168px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(16, 38, 70, 0.12);
  background: #fff;
}

.footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(240, 244, 250, 0.84);
  backdrop-filter: blur(11px);
}

.footer-nav .nav-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.nav-item {
  text-align: center;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.nav-item.is-active {
  background: #fff;
  border-color: var(--line);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(19, 47, 85, 0.08);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mono {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
}

.contact-value {
  font-size: 14px;
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .section,
  .category-card,
  .job-card {
    animation: none;
  }

  .category-card,
  .job-card {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 22px 14px 92px;
  }

  .title {
    font-size: 28px;
  }

  .muted {
    font-size: 15px;
    margin-top: 5px;
    line-height: 1.7;
  }

  .section {
    margin-top: 16px;
  }

  .section-title {
    margin-bottom: 9px;
    font-size: 20px;
  }

  .grid {
    gap: 11px;
  }

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

  .card {
    border-radius: 16px;
    padding: 14px;
  }

  .job-title {
    font-size: 19px;
    line-height: 1.42;
  }

  .job-meta {
    font-size: 15px;
    line-height: 1.75;
  }

  .broadcast-text {
    font-size: 15px;
    line-height: 1.85;
  }

  .badge {
    font-size: 13px;
    padding: 6px 12px;
  }

  .btn {
    min-height: 40px;
    font-size: 15px;
  }

  .nav-item {
    font-size: 14px;
  }

  .mono {
    font-size: 13px;
  }

  .contact-value {
    font-size: 15px;
  }

  .jd {
    font-size: 15px;
    line-height: 1.95;
  }

  .footer-nav {
    left: 10px;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(17, 37, 66, 0.14);
    background: rgba(240, 244, 250, 0.94);
  }

  .footer-nav .nav-wrap {
    padding: 8px 10px;
    gap: 8px;
  }

  .nav-item {
    min-height: 48px;
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
}
