body {
  margin: 0;
  background-color: #f5f2e8;
  color: #28592e;
  font-family: Arial, sans-serif;
}

header {
  background-color: #28592e;
  color: white;
  padding: 20px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
}
#home {
  min-height: 70vh;
  padding: 80px 60px;
  background-color: #f5f2e8;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.home-image {
  width: 45%;
  max-width: 600px;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

#home h2 {
  max-width: 600px;
  margin: 0 0 20px 0;
  font-size: 48px;
}

#home p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
}
#home input {
  width: 300px;
  padding: 14px;
  border: 1px solid #3e7252;
  font-size: 16px;
}

#home a {
  display: inline-block;
  margin-left: 10px;
  padding: 14px 24px;
  background-color: #28592e;
  color: white;
  text-decoration: none;
}
#map {
  padding: 60px;
  background-color: white;
}

#map h2 {
  margin-top: 0;
  font-size: 36px;
}

#map img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 30px 0;
}
.church-list {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

#map article {
  padding: 24px;
  background-color: #f5f2e8;
  border: 1px solid #b8924a;
}

#map article h3 {
  margin-top: 0;
}

#map article a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background-color: #3e7252;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}
#history {
  padding: 60px;
  background-color: #f4fce9;
}

#history h2 {
  margin-top: 0;
  font-size: 36px;
}

#history article {
  margin-top: 24px;
  padding: 24px;
  background-color: white;
  border-left: 5px solid #b8924a;
  border-radius: 10px;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.history-text {
  flex: 1;
}

#history article img {
  width: 380px;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
}
#history article h3 {
  margin-top: 0;
}
footer {
  padding: 40px 60px 20px;
  background-color: #28592e;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand h2 {
  margin: 0 0 10px 0;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

footer .footer-copy {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3e7252;
  text-align: center;
}

footer p {
  margin: 0;
}
#home input {border-radius: 8px;}

#home a {border-radius: 8px;}

#map img {border-radius: 12px;}

#map article {border-radius: 10px;}

#history article {border-radius: 10px;}
.history-label {
  margin: 0 0 8px 0;
  color: #b8924a;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.history-text p {
  line-height: 1.6;
}
.category-section {
  padding: 60px;
  background-color: white;
}

.category-section h2,
.services-section h2,
.about-section h2 {
  margin: 0 0 8px;
  font-size: 36px;
}

.category-section > p {
  margin-top: 0;
}

.category-list {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  flex: 1;
  padding: 22px;
  background-color: #f5f2e8;
  border: 1px solid #e6dfce;
  border-radius: 10px;
}

.category-icon {
  color: #28592e;
  font-size: 22px;
}

.category-card h3 {
  margin: 14px 0 8px;
}

.category-card p {
  margin: 0;
  line-height: 1.5;
}

.services-section {
  padding: 60px;
  background-color: #f5f2e8;
}

.sample-note {
  margin-top: 0;
  color: #b8924a;
  font-size: 12px;
}

.service-list {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.service-card {
  flex: 1;
  padding: 22px;
  background-color: white;
  border: 1px solid #e6dfce;
  border-radius: 10px;
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6c746d;
  font-size: 12px;
}

.service-tag {
  padding: 4px 8px;
  background-color: #e6eee8;
  color: #28592e;
  border-radius: 4px;
}

.catholic-tag {
  background-color: #f5ead1;
  color: #9a6b19;
}

.service-card h3 {
  margin: 18px 0 8px;
}

.service-card p {
  margin: 6px 0;
}

.service-time {
  color: #6c746d;
  font-size: 13px;
}

.about-section {
  padding: 70px 60px;
  background-color: #173f32;
  color: white;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.about-text {
  max-width: 650px;
}

.about-label {
  color: #b8924a;
  font-size: 12px;
  letter-spacing: 2px;
}

.about-text > p {
  line-height: 1.7;
}

.about-list {
  margin: 28px 0;
  padding-left: 20px;
  line-height: 2;
}

.about-button {
  display: inline-block;
  padding: 13px 20px;
  background-color: #f5f2e8;
  color: #28592e;
  text-decoration: none;
  border-radius: 6px;
}

.about-graphic {
  width: 260px;
  height: 260px;
}

.about-ring {
  width: 100%;
  height: 100%;
  border: 1px solid #3e7252;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.about-ring .about-ring {
  width: 75%;
  height: 75%;
}

.about-ring .about-ring .about-ring {
  width: 55%;
  height: 55%;
}

.about-pin {
  color: white;
  font-size: 32px;
}

.site-footer {
  padding: 35px 60px 20px;
  background-color: #173f32;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer-brand h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.footer-brand p {
  margin: 0;
  color: #b8c8c0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #d9e2de;
  text-decoration: none;
}

.footer-copy {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #28592e;
  color: #8fa79c;
  font-size: 12px;
}
.map-tools {
    padding: 18px 60px;
    background-color: white;
    border-bottom: 1px solid #e6dfce;

    display: flex;
    align-items: center;
    gap: 12px;
}

.map-tools input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e6dfce;
    border-radius: 8px;
    font-size: 16px;
}

.map-search-button {
    padding: 14px 24px;
    background-color: #28592e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.location-link {
    color: #28592e;
    text-decoration: none;
}

.map-filters {
    display: flex;
    gap: 10px;
}

.map-filters a {
    padding: 10px 16px;
    border: 1px solid #d9e2de;
    border-radius: 20px;
    color: #28592e;
    text-decoration: none;
}
.explore-button {
    display: inline-block;
    padding: 14px 22px;
    background-color: #f5f2e8;
    color: #28592e;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}
.explore-button:hover {
    background-color: #ffffff;
}
.map-page-layout {
    display: flex;
    background-color: #f5f2e8;
}

.church-results {
    width: 32%;
    padding: 18px;
}

.large-map {
    width: 68%;
}

.large-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
    background-color: white;
    border: 1px solid #d9e2de;
    border-radius: 14px;
}

.result-card img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
}

.result-information {
    flex: 1;
}

.result-information h3 {
    margin: 6px 0;
    color: #1c2314;
    font-size: 17px;
}

.result-information p {
    margin: 5px 0;
    color: #667066;
    font-size: 14px;
}

.church-type {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.result-information .protestant {
    color: #28592e;
}

.result-information .catholic {
    color: #b8924a;
}

.result-information .service-time {
    color: #28592e;
}

.result-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.result-side p {
    margin: 0;
    color: #667066;
    font-size: 14px;
}

.result-side a {
    padding: 8px 12px;
    border: 1px solid #b7c8bd;
    border-radius: 7px;
    color: #28592e;
    text-decoration: none;
    font-size: 14px;
}
.map-header {
    position: static;
    padding: 22px 60px;
    background-color: #f5f2e8;
    border-bottom: 1px solid #e6dfce;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #28592e;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.logo-symbol {
    width: 34px;
    height: 34px;
    background-color: #28592e;
    color: white;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.map-about {
    color: #59665c;
    text-decoration: none;
    font-size: 15px;
}

.map-about:hover {
    color: #28592e;
}
.map-page-body {
    height: 100vh;
    margin: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.map-page-body main {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

.map-page-body .map-tools {
    flex-shrink: 0;
}

.map-page-body .map-page-layout {
    flex: 1;
    min-height: 0;
}

.map-page-body .large-map {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-page-body .large-map img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.map-page-body .church-results {
    padding: 12px;
    box-sizing: border-box;
}

.map-page-body .result-card {
    padding: 12px;
    margin-bottom: 10px;
}

.map-page-body .result-card img {
    width: 72px;
    height: 72px;
}

.map-page-body .result-information h3 {
    margin: 3px 0;
    font-size: 15px;
}

.map-page-body .result-information p {
    margin: 3px 0;
    font-size: 12px;
}
@media (max-width: 768px) {
  header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;}
#home {
  flex-direction: column;
  align-items: flex-start;
}
.history-label {
  font-size: 11px;
  letter-spacing: 1px;
}
.home-image {
  width: 100%;
  max-width: none;
  height: 280px;
}
  #home,
  #map,
  
  #home h2 {
    font-size: 36px;
  }

  #home input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  #home a {
    margin-left: 0;
  }

  .church-list {
    flex-direction: column;
  }
  .map-layout {
  flex-direction: column;
}

.map-layout img {
  width: 100%;
}

.church-list {
  width: 100%;
}
 #history article {
    flex-direction: column;
    align-items: flex-start;
  }

  #history article img {
    width: 100%;
    max-width: none;
    height: auto;
  }
  footer {
  padding: 30px 20px 20px;
}

.footer-content {
  flex-direction: column;
}

.footer-links {
  flex-direction: column;
  gap: 12px;
}
body {
  font-size: 14px;
}

/* 网站首页介绍 */
#home h2 {
  font-size: 28px;
}

#home p,
.home-features {
  font-size: 14px;
  line-height: 1.5;
}

/* 地图与历史区域标题 */
#map h2,
#history h2 {
  font-size: 28px;
}

/* 教堂卡片标题 */
#map article h3,
#history article h3 {
  font-size: 18px;
}

/* 教堂介绍文字 */
#map article p,
#history article p {
  font-size: 14px;
  line-height: 1.5;
}

/* 搜索框 */
#home input {
  padding: 11px;
  font-size: 14px;
}

/* 首页和教堂卡片按钮 */
#home a,
#map article a {
  padding: 11px 15px;
  font-size: 14px;
}

/* Footer */
.footer-brand h2 {
  font-size: 22px;
}

.footer-brand p,
.footer-links a,
.footer-copy {
  font-size: 13px;
}
.category-section,
.services-section,
.about-section {
  padding: 40px 20px;
}

.category-section h2,
.services-section h2,
.about-section h2 {
  font-size: 24px;
}

.category-list,
.service-list {
  flex-direction: column;
}

.category-card h3,
.service-card h3 {
  font-size: 17px;
}

.category-card p,
.service-card p {
  font-size: 13px;
}

.about-section {
  flex-direction: column;
  align-items: flex-start;
}

.about-graphic {
  width: 170px;
  height: 170px;
  align-self: center;
}

.site-footer {
  padding: 30px 20px 20px;
}

.footer-content {
  flex-direction: column;
  align-items: flex-start;
}

.footer-links {
  flex-direction: column;
  gap: 10px;
}

.map-page-layout {
    flex-direction: column;
}

.church-results,
.large-map {
    width: 100%;
}

.church-results {
    box-sizing: border-box;
}

.result-card img {
    width: 70px;
    height: 70px;
}

.result-information h3 {
    font-size: 15px;
}

.result-information p,
.result-side p,
.result-side a {
    font-size: 12px;
}
.map-header {
    padding: 16px 20px;
}

.map-logo {
    font-size: 17px;
}

.logo-symbol {
    width: 28px;
    height: 28px;
}

.map-about {
    font-size: 13px;
}

.map-tools {
    padding: 14px 20px;
    flex-direction: column;
    align-items: stretch;
}

.map-tools input {
    font-size: 14px;
}

.map-search-button {
    text-align: center;
    font-size: 14px;
}

.location-link {
    font-size: 13px;
}

.map-filters {
    flex-wrap: wrap;
}

.map-filters a {
    padding: 8px 12px;
    font-size: 12px;
}
.map-page-body {
    height: auto;
    overflow: auto;
}

.map-page-body .large-map {
    height: auto;
}

.map-page-body .large-map img {
    height: auto;
}





}
.map-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.map-layout img {
  width: 60%;
  max-width: none;
}

.map-layout .church-list {
  flex: 1;
  flex-direction: column;
}
.denomination-section {
  padding: 40px 20px;
}

.denomination-list {
  flex-direction: column;
}

#history {
    padding: 40px 20px;
  }
 
  #map article p {
  line-height: 1.6;
}

#map article hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #b8924a;
}
.home-features {
  margin: 24px 0;
  padding-left: 20px;
  line-height: 1.8;
}

.home-features li {
  margin-bottom: 6px;
}
 
