:root {
  --primary: #0d6efd;
  --primary-dark: #0f2c4c;
  --primary-mid: #204d7a;
  --success: #198754;
  --danger: #dc3545;
  --warning: #f59e0b;
  --ink: #222;
  --muted: #6c757d;
  --line: #e8eef5;
  --soft: #f6f9fc;
  --white: #fff;
  --shadow: 0 12px 32px rgba(15, 44, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 16px rgba(15, 44, 76, 0.08);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
}

.navbar-brand img {
  width: 100px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 6px;
  color: #333;
  font-weight: 700;
  font-size: 15px;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
  background: #f0f8ff;
  outline: none;
}

.login-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.28);
}

.navbar-toggler {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 0;
  color: #fff;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary-mid));
}

.hero-container {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.hero-image,
.hero-content {
  flex: 1 1 0;
}

.hero-image img {
  width: min(440px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.hero-content {
  max-width: 570px;
  padding: 20px 0 68px;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero-btn:hover,
.pill-btn:hover,
.login-btn:hover {
  transform: translateY(-2px);
}

.hero-btn.primary {
  background: #fff;
  color: var(--primary-dark);
}

.hero-btn.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section {
  padding: 62px 0;
}

.section-title {
  margin-bottom: 34px;
}

.section-title.center {
  text-align: center;
}

.section-title p {
  margin: 0 auto 8px;
  max-width: 760px;
  color: var(--muted);
}

.section-title > p:first-child {
  color: var(--primary);
  font-weight: 800;
}

.section-title h2 {
  margin: 0;
  color: #1d2733;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: 0;
}

.section-title.light h2,
.section-title.light p {
  color: #fff;
}

.section-title.light p {
  opacity: 0.78;
}

.scroll-cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-card {
  flex: 0 0 240px;
  min-height: 245px;
  padding: 26px 22px;
  border-radius: 14px;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.scroll-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.scroll-card h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.scroll-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.gradient-1 {
  background: linear-gradient(135deg, #00b4db, #0083b0);
}

.gradient-2 {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.gradient-3 {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.gradient-4 {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.gradient-5 {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.stats-section {
  padding: 62px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 44, 76, 0.94), rgba(32, 77, 122, 0.9)),
    url("../picture/welcome-bg.webp") center / cover fixed;
}

.stats-grid,
.honor-grid,
.mission-grid,
.score-grid,
.related-grid {
  display: grid;
  gap: 24px;
}

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

.stats-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stats-card strong {
  font-size: 30px;
  line-height: 1.2;
}

.stats-card span {
  opacity: 0.9;
}

.stats-card.green {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stats-card.blue {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.stats-card.purple {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}

.stats-card.orange {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.honor-section {
  background: #f8f9fa;
}

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

.honor-card,
.mission-grid article,
.news-item,
.category-item,
.side-card,
.article-card,
.related-grid article,
.score-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 44, 76, 0.06);
}

.honor-card {
  padding: 18px;
}

.honor-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 12px;
}

.honor-card h3,
.mission-grid h3,
.news-item h3,
.category-item h2,
.side-card h2,
.article-card h1,
.related-grid h3 {
  margin: 14px 0 8px;
  line-height: 1.35;
  letter-spacing: 0;
}

.honor-card p,
.mission-grid p,
.news-item p,
.category-item p,
.related-grid p,
.article-body,
.article-desc {
  color: var(--muted);
}

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

.mission-grid article {
  position: relative;
  min-height: 172px;
  padding: 24px;
  text-align: center;
}

.mission-grid article::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px #d7e8ff;
}

.mission-grid span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 900;
}

.news-section {
  background: #fff;
}

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

.news-item,
.category-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.news-thumb img,
.category-thumb img {
  width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.read-more {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--success);
  border-radius: 6px;
  color: var(--success);
  font-weight: 700;
}

.welcome-section {
  background: url("../picture/welcome-bg.webp") center / cover fixed;
}

.welcome-overlay {
  padding: 72px 0;
  background: rgba(15, 44, 76, 0.46);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.welcome-image img {
  width: min(480px, 100%);
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.welcome-card {
  padding: 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.welcome-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.welcome-card ul {
  padding-left: 20px;
  margin: 14px 0 24px;
}

.pill-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
}

.site-footer {
  padding: 48px 0 22px;
  background: #212529;
  color: #f8f9fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  margin: 0 auto 14px;
}

.footer-brand p,
.footer-contact,
.footer-links a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-hero,
.score-hero,
.guide-hero {
  margin: 32px 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
}

.page-hero {
  padding: 70px 42px;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary-mid));
}

.page-hero p,
.score-hero p,
.guide-hero p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.page-hero h1,
.score-hero h1,
.guide-hero h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.22;
  letter-spacing: 0;
}

.page-hero span,
.score-hero span,
.guide-hero span {
  display: block;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.85);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

.main-column,
.sidebar,
.category-list {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  font-size: 20px;
  margin-top: 0;
}

.side-card a {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.side-card span,
.category-item time,
.article-meta,
.breadcrumb,
.related-grid time {
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-hero {
  padding: 70px 0;
  background:
    linear-gradient(160deg, rgba(15, 44, 76, 0.94), rgba(32, 77, 122, 0.86)),
    url("../picture/departments.webp") center / cover;
}

.score-board {
  padding: 28px 0 50px;
}

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

.score-card {
  min-height: 138px;
  padding: 20px;
}

.score-card b {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
}

.score-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.score-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.score-card .live-dot {
  background: #ffe8e8;
  color: var(--danger);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.42);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(220, 53, 69, 0);
  }
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 44px;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary-mid));
}

.guide-hero img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  border-radius: 16px;
}

.article-layout,
.page-main {
  margin-top: 32px;
}

.article-card {
  padding: 32px;
}

.article-card h1 {
  font-size: 34px;
  line-height: 1.3;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--primary);
}

.article-desc {
  display: block;
  margin: 16px 0 0;
  color: #38424c;
  font-size: 18px;
}

.lead-media {
  margin: 28px 0;
}

.lead-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.article-body {
  font-size: 17px;
  color: #333;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body h2,
.article-body h3 {
  margin: 30px 0 12px;
}

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

.body-media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.related-block {
  margin-top: 44px;
}

.related-block h2 {
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

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

.related-grid article {
  padding: 18px;
}

.article-neighbors {
  display: grid;
  gap: 12px;
}

.article-neighbors a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--primary-dark);
  font-weight: 800;
}

.article-neighbors a:hover,
.article-neighbors a:focus-visible {
  color: var(--primary);
  outline: none;
}

.not-found {
  min-height: 360px;
}

@media (max-width: 1023px) {
  .hero-container,
  .layout,
  .guide-hero,
  .welcome-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    max-width: 760px;
    padding-bottom: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-grid,
  .honor-grid,
  .mission-grid,
  .score-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .navbar {
    min-height: 72px;
  }

  .navbar-toggler {
    display: block;
  }

  .login-btn {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 48px;
  }

  .hero-section {
    padding: 44px 14px 0;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-image img {
    width: min(340px, 100%);
  }

  .hero-btn {
    width: min(260px, 100%);
  }

  .section {
    padding: 44px 0;
  }

  .section-title h2,
  .welcome-card h2 {
    font-size: 24px;
  }

  .stats-grid,
  .honor-grid,
  .mission-grid,
  .score-grid,
  .related-grid,
  .sidebar,
  .body-media-grid {
    grid-template-columns: 1fr;
  }

  .news-item,
  .category-item {
    grid-template-columns: 1fr;
  }

  .news-thumb img,
  .category-thumb img {
    width: 100%;
  }

  .page-hero,
  .guide-hero {
    padding: 42px 22px;
  }

  .page-hero h1,
  .score-hero h1,
  .guide-hero h1 {
    font-size: 30px;
  }

  .score-hero {
    padding: 52px 0;
  }

  .article-card {
    padding: 22px;
  }

  .article-card h1 {
    font-size: 28px;
  }

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