:root {
  --primary: #07543f;
  --primary-2: #0b6b4f;
  --primary-dark: #07382d;
  --accent: #c49a36;
  --accent-soft: #fff5d9;
  --soft: #f5f8f6;
  --line: #dce7e2;
  --text: #172d29;
  --muted: #60746e;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text);
  background: #fff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

#siteFooter {
  margin-top: auto;
}

.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.login-state {
  font-weight: 600;
}

.navbar {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(7, 84, 63, 0.08);
  min-height: 78px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary) !important;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1b8f69);
  box-shadow: 0 8px 18px rgba(7, 84, 63, .22);
}

.nav-link {
  color: #263b36;
  font-weight: 600;
  padding: 10px 12px !important;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eef7f3;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 49, 39, 0.94), rgba(7, 84, 63, 0.72), rgba(7, 84, 63, 0.32)),
    url("/uploads/b533d3789a7c52a589932cf3f6cd61d2.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,.2), var(--primary-2));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.hero .lead {
  max-width: 680px;
  color: rgba(255,255,255,.9);
}

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f7faf8, #eef5f2);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  position: relative;
  font-size: 28px;
  margin: 0;
  font-weight: 800;
  color: var(--primary-dark);
  padding-left: 16px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 8px;
  background: var(--accent);
}

.section-title a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.notice-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(22, 58, 49, .07);
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item:hover {
  color: var(--primary);
  background: #f7fbf9;
  padding-left: 26px;
}

.badge-top {
  background: var(--accent);
}

.portal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 24px rgba(22, 58, 49, .06);
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 84, 63, .25);
  box-shadow: 0 18px 38px rgba(22, 58, 49, .12);
}

.portal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.portal-card .card-body {
  padding: 20px;
}

.portal-card h5 {
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}

.content-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(22, 58, 49, .08);
}

.detail-cover {
  display: block;
  width: min(100%, 920px);
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  margin: 24px auto 28px;
  border-radius: 8px;
  background: var(--soft);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.login-panel {
  max-width: 440px;
  margin: 70px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 58, 49, .12);
}

.login-panel h3 {
  color: var(--primary-dark);
  font-weight: 800;
}

.footer {
  background: #0b241e;
  color: #d8e4df;
  padding: 42px 0 22px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 36px;
  padding-bottom: 24px;
}

.footer h4,
.footer h5 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer p {
  margin-bottom: 8px;
  color: #c7d6d1;
}

.footer a {
  display: block;
  color: #c7d6d1;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer a:hover {
  color: #fff;
}

.footer-muted {
  color: #9fb4ad !important;
}

.footer-record {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: #9fb4ad;
  font-size: 13px;
}

.footer-record a {
  display: inline;
  color: #b9cbc5;
  margin: 0;
}

@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 330px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section {
    padding: 40px 0;
  }

  .content-box {
    padding: 22px;
  }

  .detail-cover {
    width: 100%;
    height: 220px;
  }
}
