:root {
  font-family: 'Barlow', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #eef3fb;
  --border: rgba(15, 23, 42, 0.08);
  --glow: rgba(11, 108, 227, 0.12);
  --accent: #0b6ce3;
  --accent-2: #0fa4ce;
  --text: #0f172a;
  --muted: #56657d;
  --success: #13815c;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --ticker-bg: rgba(11, 108, 227, 0.08);
  --ticker-text: #0b3a7a;
  --bg-glow-1: rgba(11, 108, 227, 0.15);
  --bg-glow-2: rgba(15, 164, 206, 0.12);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, var(--bg-glow-1), transparent 26%), radial-gradient(circle at 78% 14%, var(--bg-glow-2), transparent 26%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(185, 24, 53, 0.8), rgba(217, 101, 43, 0.8));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
}

.title {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(11, 108, 227, 0.08);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(11, 108, 227, 0.12);
  border: 1px solid rgba(11, 108, 227, 0.2);
}

.pill {
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--text);
  background: rgba(11, 108, 227, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.pill.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(11, 108, 227, 0.28);
  color: #f7fbff;
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.08);
}

.pill.small {
  padding: 7px 12px;
  font-size: 13px;
}

.alert-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: var(--ticker-bg);
  border-bottom: 1px solid rgba(11, 108, 227, 0.25);
  color: var(--ticker-text);
  position: sticky;
  top: 64px;
  z-index: 9;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  display: flex;
  gap: 48px;
}

.ticker-track span {
  flex-shrink: 0;
  animation: ticker 18s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(11, 108, 227, 0.1), rgba(15, 164, 206, 0.08));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease;
}

.page-services .hero {
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, rgba(15, 164, 206, 0.14), rgba(11, 108, 227, 0.08));
}

.page-departments .hero {
  grid-template-columns: 0.95fr 1.05fr;
  background: linear-gradient(120deg, rgba(26, 167, 90, 0.12), rgba(15, 164, 206, 0.08));
}

.page-reports .hero {
  grid-template-columns: 1fr;
}

.page-data .hero {
  grid-template-columns: 0.9fr 1.1fr;
  background: linear-gradient(135deg, rgba(11, 108, 227, 0.12), rgba(26, 167, 90, 0.08));
}

.hero-content h1 {
  margin: 4px 0 12px;
  font-size: 32px;
  line-height: 1.2;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0;
}

.lede {
  color: var(--muted);
  margin: 8px 0 0;
}

.actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
}

.meta-line {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(91, 208, 160, 0.1);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(11, 108, 227, 0.08), var(--panel));
  border: 1px solid rgba(11, 108, 227, 0.2);
  border-radius: 14px;
  padding: 18px;
}

.page-reports .hero-panel {
  margin-top: 6px;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 12px;
}

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

.mini-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.mini-card .label {
  color: var(--muted);
  font-size: 13px;
}

.mini-card .value {
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0;
}

.trend {
  color: var(--muted);
  font-size: 12px;
}

.trend.up {
  color: var(--success);
}

.chart {
  margin-top: 16px;
  background: var(--panel-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
}

.chart-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.bar span {
  color: var(--muted);
}

.bar-fill {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  width: 0;
}

.bar-value {
  font-weight: 700;
}

.section {
  margin-top: 38px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.section-head h2 {
  margin: 4px 0;
}

.search-box input {
  width: 280px;
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}

.service-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: fadeUp 0.7s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 108, 227, 0.26);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.service .icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(11, 108, 227, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 700;
}

.service h3 {
  margin: 0 0 6px;
}

.service p {
  margin: 0 0 10px;
  color: var(--muted);
}

.link-card {
  display: block;
  color: inherit;
}

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

.ghost.hidden {
  display: none;
}

.dept-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.dept ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 10px 0 0;
}

.dept-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.badge.subtle {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.tall {
  min-height: 360px;
}

.list article {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.list h3 {
  margin: 4px 0 6px;
}

.list p {
  margin: 0;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.section-head.compact {
  align-items: center;
}

.extra.hidden {
  display: none;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.data-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.bar-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0;
}

.bar-line span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.legend {
  margin-top: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.press {
  margin-top: 28px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.press-card h3 {
  margin: 6px 0;
}

.press-card p {
  color: var(--muted);
  margin: 0 0 8px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 48px;
  padding: 24px 20px 32px;
  background: rgba(11, 108, 227, 0.06);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.foot-head {
  font-weight: 700;
  margin-bottom: 6px;
}

.foot-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(520px, 90vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-list {
  color: var(--muted);
  padding-left: 18px;
}

.press .meta {
  margin-bottom: 6px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.media-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.media-meta {
  padding: 12px;
}

.media-meta p {
  margin: 4px 0 0;
  color: var(--muted);
}

.download-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.download-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-tip {
  color: var(--muted);
  font-size: 13px;
}

.feedback-tip.success {
  color: var(--success);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.timeline-list .time {
  color: var(--muted);
  font-weight: 700;
}

.timeline-list .event {
  color: var(--text);
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.back-top.hidden {
  display: none;
}

.media-card.flash {
  animation: flash 0.9s ease;
}

@keyframes flash {
  from { box-shadow: 0 0 0 rgba(185, 24, 53, 0.0); }
  50% { box-shadow: 0 0 20px rgba(185, 24, 53, 0.4); }
  to { box-shadow: var(--shadow); }
}

.table {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table .row {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr 0.7fr 0.6fr;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.table .row:last-child {
  border-bottom: none;
}

.table .row.head {
  background: var(--panel-2);
  font-weight: 700;
}

.pill.tiny {
  padding: 6px 10px;
  font-size: 12px;
}

.flow .steps {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.step-title {
  font-weight: 700;
}

.step-text {
  margin-top: 4px;
  color: var(--muted);
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-box input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .alert-ticker {
    top: 112px;
  }

  .status-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
