:root {
  --primary: #0b5d44;
  --primary-dark: #073f30;
  --accent: #b88a2d;
  --soft: #f4f7f5;
  --line: #dde5df;
  --text: #1f2d2a;
}

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: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.navbar {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
  color: var(--primary) !important;
  font-weight: 700;
}

.nav-link {
  color: #263b36;
  font-weight: 500;
}

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

.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 63, 48, 0.92), rgba(7, 63, 48, 0.56)),
    url("https://www.ymuchentao.cloud/uploads/b533d3789a7c52a589932cf3f6cd61d2.jpg") center/cover no-repeat;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
}

.section {
  padding: 48px 0;
}

.section-soft {
  background: var(--soft);
}

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

.section-title h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
}

.notice-list {
  background: #fff;
  border: 1px solid var(--line);
}

.notice-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}

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

.notice-item:hover {
  color: var(--primary);
  background: #fbfcfb;
}

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

.portal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

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

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

.content-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
}

.footer {
  background: #10251f;
  color: #cbd8d4;
  padding: 28px 0;
  margin-top: 0;
}

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

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

.login-panel {
  max-width: 420px;
  margin: 60px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: #fff;
}

@media (max-width: 768px) {
  .hero {
    min-height: 300px;
  }

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