/* Lightweight self-hosted layout & utility shim replacing external Bootstrap/FontAwesome/Google-Font CDNs. */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.65; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #173a34; background-color: #f6f7f1; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #1a5645; text-decoration: none; }
a:hover { text-decoration: underline; }

.container, .container-md, .container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}
.container, .container-md { max-width: 1140px; }

.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.col, .col-md-4, .col-lg-10, .col-xl-8 { position: relative; width: 100%; padding-right: 12px; padding-left: 12px; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (min-width: 992px) {
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .offset-lg-1 { margin-left: 8.333333%; }
}
@media (min-width: 1200px) {
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .offset-xl-2 { margin-left: 16.666667%; }
}

.text-center { text-align: center !important; }
.text-muted { color: #63766e !important; }
.bg-light { background-color: #eef1e6 !important; }
.rounded { border-radius: 8px !important; }
.shadow { box-shadow: 0 8px 24px rgba(20, 61, 52, 0.08) !important; }
.img-fluid { max-width: 100%; height: auto; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.list-unstyled, .list-inline { padding-left: 0; list-style: none; }
.list-inline-item { display: inline-block; margin-right: 8px; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 36px !important; }
.mt-2 { margin-top: 8px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.p-4 { padding: 24px !important; }
.w-100 { width: 100% !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary, .btn-success { background-color: #1a5645; color: #fff; }
.btn-primary:hover, .btn-success:hover { background-color: #123f32; color: #fff; text-decoration: none; }
.btn-outline-primary { border-color: #1a5645; color: #1a5645; background: transparent; }
.btn-outline-primary:hover { background-color: #e6edda; text-decoration: none; }

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(246, 247, 241, 0.96);
  border-bottom: 1px solid #dce2d6;
}
.fixed-top { position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-weight: 700; font-size: 18px; color: #173a34; }
.navbar-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-link { color: #173a34; font-weight: 500; padding: 6px 4px; display: inline-block; }
.navbar-toggler { display: none; padding: 6px 12px; border: 1px solid #aebfb1; background: transparent; border-radius: 4px; cursor: pointer; }
.navbar-toggler-icon::before { content: "☰"; font-size: 18px; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 180px;
  background: #fafbf6;
  border: 1px solid #dce2d6;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(20, 61, 52, 0.1);
  z-index: 120;
}
.dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 8px 16px; color: #173a34; white-space: nowrap; }
.dropdown-item:hover { background: #e9eee1; text-decoration: none; }

@media (max-width: 991px) {
  .navbar-toggler { display: inline-flex; }
  .navbar-collapse { display: none; width: 100%; padding-top: 12px; }
  .navbar-collapse.show { display: block; }
  .navbar-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; }
}
