body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f8f9fa;
}

h1, h2 {
  color: #217a3c;
  font-weight: bold;
}

h1 {
  text-align: center;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

footer {
  font-size: 0.95rem;
}

.img-fluid.rounded-circle {
  border: 2px solid #e0e0e0;
}

.navbar-nav {
  gap: 3.5rem;
  margin-left: 0;
  margin-right: 0;
}

.navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
  color: #333;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: #217a3c;
  color: #fff !important;
}

.navbar .container {
  max-width: 1140px;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    gap: 1rem;
  }
  .navbar .container {
    max-width: 100%;
  }
  .container.py-4.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
    padding-bottom: 0.5rem !important;
  }
  .container.py-4.d-flex .text-start {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .container.py-4.d-flex .text-end {
    display: none !important;
  }
  .container.py-4.d-flex img[alt="长城华人怀思堂"] {
    margin-bottom: 0;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
  .container.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .fixed-bottom.bg-white.border-top.py-2 {
    width: 100vw;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .fixed-bottom .btn {
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
  }
  footer {
    margin-bottom: 64px;
  }
  /* 只显示前8条新闻 */
  .funeral-news-list .list-group-item:nth-child(n+9) {
    display: none !important;
  }
}

.container.py-4.d-flex {
  padding-top: 2rem !important;
  padding-bottom: 1rem !important;
}

.text-center img[alt="长城华人怀思堂"] {
  margin-bottom: 0.5rem;
}

.navbar-nav .nav-item.position-relative span {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 991.98px) {
  .container.py-4.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
    padding-bottom: 0.5rem !important;
  }
  .container.py-4.d-flex .text-start {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .container.py-4.d-flex .text-end {
    display: none !important;
  }
  .container.py-4.d-flex img[alt="长城华人怀思堂"] {
    margin-bottom: 0;
    display: block;
  }
}

/* 导航整体左移，使首页正好在logo正下方 */
@media (min-width: 992px) {
  .navbar .container {
    position: relative;
  }
  .navbar-nav {
    transform: translateX(-130px);
    flex-wrap: nowrap !important;
  }
}

.funeral-news-list .list-group-item a {
  text-decoration: none !important;
  color: #222 !important;
}

.more-news-link {
  display: inline-block;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  color: #217a3c;
  font-weight: 500;
  font-size: 1.05rem;
}

.article-meta span {
  margin: 0 1.2em;
  display: inline-block;
}

.content-wrapper {
  display: flex;
  flex-direction: column;

}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 1rem auto;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .content-wrapper img {
    max-width: 100%;
    height: auto;
  }
} 