/*
Theme Name: Posopo Green
Theme URI: https://www.posopo.com
Author: Posopo
Description: 绿色公益寻人启事 WordPress 主题
Version: 1.0
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #f3f8f4;
  color: #26332b;
  line-height: 1.75;
}

a {
  color: #18875c;
  text-decoration: none;
}

a:hover {
  color: #0f6845;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #0f8a5f, #38b884);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: .9;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #fff4c2;
}

/* Banner */
.hero {
  background: #e8f6ee;
  padding: 28px 0 34px;
}

.hero-box {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
}

.hero-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(24, 135, 92, .22);
}

.hero-img img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.hero-text {
  margin-top: 22px;
  background: #fff;
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  border-left: 6px solid #2fbf83;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #126b49;
}

.hero-text p {
  margin: 0;
  color: #52645a;
  font-size: 16px;
}

/* Main */
.main-area {
  max-width: 1180px;
  margin: 34px auto;
  padding: 0 18px;
}

.section-title {
  margin: 0 0 22px;
  font-size: 24px;
  color: #173d2e;
  border-left: 5px solid #2fbf83;
  padding-left: 12px;
}

/* Post List */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.055);
  border: 1px solid #e2f0e7;
  transition: .25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(24, 135, 92, .15);
}

.post-thumb {
  height: 210px;
  background: linear-gradient(135deg, #dff4e9, #fff7d8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #17895d;
  font-size: 18px;
  font-weight: 700;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info {
  padding: 18px 18px 20px;
}

.post-info h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.45;
}

.post-info h2 a {
  color: #1d3329;
}

.post-info h2 a:hover {
  color: #18875c;
}

.post-meta {
  font-size: 13px;
  color: #819188;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 14px;
  color: #5c6b62;
  margin: 0;
}

/* Single */
.single-box,
.page-box {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 10px 32px rgba(0,0,0,.055);
  border: 1px solid #e1efe6;
}

.single-title {
  font-size: 32px;
  line-height: 1.35;
  color: #183d2e;
  margin: 0 0 12px;
}

.single-meta {
  color: #819188;
  font-size: 14px;
  margin-bottom: 24px;
}

.entry-content {
  font-size: 17px;
  color: #2c3b32;
}

.entry-content p {
  margin: 0 0 1.15em;
}

.entry-content img {
  margin: 18px auto;
  border-radius: 14px;
}

/* Related */
.related-posts {
  margin-top: 36px;
}

.related-posts h3 {
  font-size: 22px;
  color: #173d2e;
  margin-bottom: 18px;
  border-left: 5px solid #2fbf83;
  padding-left: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-item {
  background: #f7fbf8;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #e2f0e7;
}

.related-item a {
  color: #23372d;
  font-weight: 600;
}

.related-item a:hover {
  color: #18875c;
}

/* Pagination */
.pagination {
  margin: 34px 0 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pagination a,
.pagination span {
  padding: 9px 16px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #dbece2;
  color: #18875c;
}

.pagination .current {
  background: #18875c;
  color: #fff;
}

/* Search */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-form input[type="search"] {
  flex: 1;
  border: 1px solid #cfe7d9;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
}

.search-form button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: #18875c;
  color: #fff;
  cursor: pointer;
}

.search-form button:hover {
  background: #0f6845;
}

/* Footer */
.site-footer {
  background: #123d2c;
  color: #d8eee3;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  text-align: center;
  font-size: 14px;
}

.footer-inner a {
  color: #fff4c2;
}

/* Mobile */
@media (max-width: 900px) {
  .post-list,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    display: block;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .post-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .single-box,
  .page-box {
    padding: 22px;
    border-radius: 18px;
  }

  .single-title {
    font-size: 25px;
  }

  .entry-content {
    font-size: 16px;
  }

  .post-thumb {
    height: 190px;
  }
}

.hero-search {
  margin-top: 20px;
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  border: 1px solid #dceee4;
}

.hero-search form {
  display: flex;
  gap: 12px;
}

.hero-search input {
  flex: 1;
  border: 1px solid #cfe7d9;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 16px;
  outline: none;
}

.hero-search input:focus {
  border-color: #2fbf83;
}

.hero-search button {
  border: none;
  border-radius: 999px;
  padding: 0 28px;
  background: #18875c;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover {
  background: #0f6845;
}

@media (max-width: 600px) {
  .hero-search form {
    flex-direction: column;
  }

  .hero-search button {
    padding: 13px 20px;
  }
}