:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172e28;
  background: #f7faf7;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #007451; outline-offset: 4px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #dce8df;
}

.header-inner, .content {
  width: min(100% - 2rem, 69rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.15rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img { border-radius: .6rem; }
.header-link, .back-link { color: #105b44; font-weight: 650; text-underline-offset: .25em; }
.content { padding-block: clamp(2rem, 6vw, 5rem); }

.intro {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: #dceee2;
}

h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.16; overflow-wrap: anywhere; }
.intro p { margin-top: .8rem; color: #365c4f; }

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.card {
  display: block;
  overflow: hidden;
  height: 100%;
  background: #fff;
  border: 1px solid #dce8df;
  border-radius: 1.25rem;
  text-decoration: none;
}

.card:hover { border-color: #629681; }
.card:hover h2 { color: #105b44; text-decoration: underline; text-underline-offset: .22em; }
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #e8f1eb;
}
.card h2 { padding: 1.1rem 1.25rem 1.3rem; font-size: 1.15rem; overflow-wrap: anywhere; }

.empty {
  color: #365c4f;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #dce8df;
  border-radius: 1.25rem;
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; align-items: center; margin-top: 2rem; }
.pagination a { padding: .45rem .85rem; border: 1px solid #629681; border-radius: .7rem; }
.article { max-width: 45rem; margin-inline: auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 1.5rem 0; }
.article-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.07rem; line-height: 1.9; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0; list-style: none; }
.tags li { background: #dceee2; color: #105b44; border-radius: 2rem; padding: .3rem .8rem; overflow-wrap: anywhere; max-width: 100%; }
.gallery { display: grid; gap: 1rem; margin-top: 2rem; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 1.25rem; background: #e8f1eb; }
