/*
Theme Name: 支教中国 2.0
Theme URI: https://www.ngopvo.org/
Author: 支教中国 2.0
Description: 支教中国 2.0 公益网站的轻量无插件主题。
Version: 1.0.1
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: zjzg-green
*/

:root {
  --green-900: #173f2a;
  --green-700: #2f6c48;
  --green-500: #5b9d6d;
  --green-100: #e8f2eb;
  --cream: #f7f4eb;
  --ink: #203128;
  --muted: #657269;
  --line: #d8e1da;
  --white: #fff;
  --shadow: 0 16px 44px rgba(23, 63, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a { color: var(--green-700); }
a:hover { color: var(--green-900); }
img, video { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(23, 63, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner,
.content-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 54px; max-height: 54px; object-fit: contain; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--white);
  background: var(--green-700);
}

.site-main { min-height: 70vh; }

.page-hero {
  padding: 64px 0 56px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, var(--green-900), var(--green-500));
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-hero p { max-width: 720px; margin: 18px 0 0; opacity: .9; }

.content-shell { padding-block: 50px 80px; }

.content-card {
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-card > :first-child { margin-top: 0; }
.content-card > :last-child { margin-bottom: 0; }
.content-card p { margin: 0 0 1.25em; }
.content-card h2, .content-card h3 { color: var(--green-900); line-height: 1.25; }
.content-card img { border-radius: 16px; }

.home .page-hero { padding-bottom: 72px; }
.home .content-shell { margin-top: -36px; position: relative; z-index: 2; }
.zjzg-home-video { margin: -24px -24px 40px; }
.zjzg-home-video video { width: 100%; display: block; background: #000; border-radius: 18px; }

.report-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.report-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--green-100);
}

.report-group h2 { margin-top: 0; }
.report-list { margin: 0; padding: 0; list-style: none; }
.report-list li + li { margin-top: 10px; }
.report-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--white);
  color: var(--green-900);
  font-weight: 650;
  text-decoration: none;
}
.report-list a:hover { box-shadow: 0 8px 22px rgba(23,63,42,.10); }

.pdf-actions { display: flex; gap: 12px; margin-bottom: 18px; }
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-700);
  font-weight: 700;
  text-decoration: none;
}
.pdf-frame { width: 100%; height: 78vh; min-height: 600px; border: 1px solid var(--line); border-radius: 12px; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.post-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.post-card h2 { margin-top: 0; }

.site-footer { color: #dbe9df; background: var(--green-900); }
.footer-inner { padding-block: 36px; text-align: center; }
.footer-inner p { margin: 4px 0; }
.footer-inner a { color: inherit; }

@media (max-width: 760px) {
  .header-inner { min-height: 68px; align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 10px; }
  .brand img { width: 44px; max-height: 44px; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { width: max-content; padding-bottom: 8px; }
  .page-hero { padding: 44px 0 48px; }
  .content-shell { width: min(100% - 24px, 1120px); padding-block: 34px 56px; }
  .content-card { padding: 24px 18px; border-radius: 18px; }
  .report-groups, .post-grid { grid-template-columns: 1fr; }
  .pdf-frame { min-height: 480px; }
}
