/* =========================================================
   恩光团契 Enguang Fellowship —— 主样式
   设计：暖米色底 + 深松绿主色 + 琥珀点缀
   适配：手机 / 平板 / 电脑
   ========================================================= */

:root {
  --eg-cream: #fbf8f2;
  --eg-sand: #f2ead9;
  --eg-sand-deep: #e6d9c2;
  --eg-green: #1e5a4a;
  --eg-green-dark: #143f34;
  --eg-green-soft: #e7f0ec;
  --eg-amber: #c9832b;
  --eg-amber-soft: #fbf0dd;
  --eg-ink: #212a26;
  --eg-muted: #5f6b64;
  --eg-line: #e2d9c8;
  --eg-radius: 16px;
  --eg-radius-sm: 10px;
  --eg-shadow: 0 1px 2px rgba(33, 42, 38, .04), 0 12px 32px -18px rgba(33, 42, 38, .28);
  --eg-shadow-lg: 0 24px 60px -32px rgba(20, 63, 52, .45);
  --eg-max: 1140px;
  --eg-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --eg-font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--eg-cream);
  color: var(--eg-ink);
  font-family: var(--eg-font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--eg-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--eg-amber); }

h1, h2, h3, h4 {
  font-family: var(--eg-font-serif);
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--eg-green-dark);
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }

.eg-wrap { width: 100%; max-width: var(--eg-max); margin: 0 auto; padding: 0 24px; }
.eg-section { padding: clamp(56px, 8vw, 96px) 0; }
.eg-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.eg-center { text-align: center; }
.eg-lead { font-size: 1.1rem; color: var(--eg-muted); max-width: 62ch; }
.eg-center .eg-lead { margin-left: auto; margin-right: auto; }

.eg-eyebrow {
  display: inline-block;
  font-family: var(--eg-font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eg-amber);
  margin-bottom: 14px;
}

/* ---------- 草稿提示条 ---------- */
.eg-draft-bar {
  background: #2b2b2b;
  color: #f6e7c8;
  font-size: .8rem;
  letter-spacing: .02em;
  text-align: center;
  padding: 7px 16px;
}
.eg-draft-bar strong { color: #ffcf7a; }

/* ---------- 顶部 ---------- */
.eg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.eg-header.is-scrolled {
  border-bottom-color: var(--eg-line);
  box-shadow: 0 6px 24px -20px rgba(0, 0, 0, .5);
}
.eg-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.eg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.eg-brand__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--eg-green) 0%, var(--eg-green-dark) 100%);
  color: #fdf8ee;
  display: grid; place-items: center;
  font-family: var(--eg-font-serif);
  font-size: 1.15rem;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.eg-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.eg-brand__name { font-family: var(--eg-font-serif); font-weight: 600; font-size: 1.06rem; color: var(--eg-green-dark); }
.eg-brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--eg-muted); }

.eg-nav { margin-left: auto; }
.eg-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.eg-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--eg-ink);
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s ease, color .15s ease;
}
.eg-nav a:hover { background: var(--eg-sand); color: var(--eg-green-dark); }
.eg-nav .current-menu-item > a,
.eg-nav .current_page_item > a { background: var(--eg-green-soft); color: var(--eg-green-dark); font-weight: 600; }

.eg-lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.eg-lang a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--eg-muted);
}
.eg-lang a.is-active { background: var(--eg-green); color: #fff; }

.eg-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--eg-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.eg-burger span { display: block; width: 20px; height: 2px; background: var(--eg-green-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.eg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.eg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.eg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.eg-btn--primary { background: var(--eg-green); color: #fff; box-shadow: 0 14px 30px -18px rgba(30, 90, 74, .9); }
.eg-btn--primary:hover { background: var(--eg-green-dark); color: #fff; transform: translateY(-1px); }
.eg-btn--amber { background: var(--eg-amber); color: #fff; }
.eg-btn--amber:hover { background: #b0711f; color: #fff; transform: translateY(-1px); }
.eg-btn--ghost { border-color: var(--eg-line); color: var(--eg-green-dark); background: #fff; }
.eg-btn--ghost:hover { border-color: var(--eg-green); color: var(--eg-green); }
.eg-btn--light { background: #fff; color: var(--eg-green-dark); }
.eg-btn--light:hover { background: var(--eg-sand); color: var(--eg-green-dark); }

/* ---------- 首页 Hero ---------- */
.eg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 12% -10%, #e9f2ec 0%, rgba(233,242,236,0) 60%),
    radial-gradient(760px 420px at 88% 4%, #fbeed6 0%, rgba(251,238,214,0) 62%),
    var(--eg-cream);
}
.eg-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eg-hero h1 { margin-bottom: 18px; }
.eg-hero h1 em { font-style: normal; color: var(--eg-amber); }
.eg-hero__sub { font-size: 1.08rem; color: var(--eg-muted); max-width: 46ch; }
.eg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eg-hero__media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(30,90,74,.92), rgba(20,63,52,.96)),
    var(--eg-green);
  box-shadow: var(--eg-shadow-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.eg-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(201,131,43,.35), transparent 50%);
}
.eg-hero__media-label {
  position: relative;
  z-index: 1;
  color: #f3ecdd;
  text-align: center;
  font-size: .95rem;
  line-height: 1.9;
  letter-spacing: .04em;
  padding: 24px;
}
.eg-hero__media-label strong { display: block; font-family: var(--eg-font-serif); font-size: 1.35rem; margin-bottom: 6px; }

/* ---------- 三栏说明 ---------- */
.eg-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eg-pillar {
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: var(--eg-radius);
  padding: 28px;
}
.eg-pillar__icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--eg-green-soft); color: var(--eg-green);
  display: grid; place-items: center; margin-bottom: 16px;
}
.eg-pillar h3 { margin-bottom: 8px; }
.eg-pillar p { margin: 0; color: var(--eg-muted); font-size: .98rem; }

/* ---------- 事工卡片 ---------- */
.eg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.eg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.eg-card {
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: var(--eg-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eg-card:hover { transform: translateY(-3px); box-shadow: var(--eg-shadow); }
.eg-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--eg-sand) 0%, #fff 100%);
  display: grid; place-items: center;
  color: #a59a86; font-size: .82rem; letter-spacing: .08em;
  border-bottom: 1px solid var(--eg-line);
}
.eg-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.eg-card__body h3 { margin-bottom: 8px; font-size: 1.16rem; }
.eg-card__body p { color: var(--eg-muted); font-size: .96rem; margin-bottom: 16px; }
.eg-card__body .eg-btn { margin-top: auto; align-self: flex-start; padding: 9px 18px; font-size: .88rem; }

/* ---------- 活动 ---------- */
.eg-events { display: grid; gap: 14px; }
.eg-event {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--eg-line);
  border-radius: var(--eg-radius);
  padding: 18px 22px;
}
.eg-event__date {
  text-align: center;
  border-right: 1px solid var(--eg-line);
  padding-right: 14px;
}
.eg-event__d { font-family: var(--eg-font-serif); font-size: 1.9rem; line-height: 1; color: var(--eg-green); }
.eg-event__m { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eg-muted); margin-top: 6px; }
.eg-event h3 { margin: 0 0 4px; font-size: 1.08rem; }
.eg-event p { margin: 0; color: var(--eg-muted); font-size: .9rem; }
.eg-event__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; font-size: .85rem; color: var(--eg-muted); }

/* ---------- 照片墙占位 ---------- */
.eg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eg-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--eg-radius-sm);
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 8px, transparent 8px 16px),
    var(--eg-sand);
  border: 1px solid var(--eg-line);
  display: grid; place-items: center;
  color: #9d927f; font-size: .78rem; letter-spacing: .06em;
}
.eg-tile:nth-child(3n) { background-color: var(--eg-green-soft); }
.eg-tile:nth-child(4n) { background-color: var(--eg-amber-soft); }

/* ---------- CTA 条 ---------- */
.eg-cta {
  background: linear-gradient(135deg, var(--eg-green) 0%, var(--eg-green-dark) 100%);
  color: #f4eee1;
  border-radius: 24px;
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--eg-shadow-lg);
}
.eg-cta h2 { color: #fff; margin-bottom: 8px; }
.eg-cta p { color: #d8e5df; margin: 0; }
.eg-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 内容页 ---------- */
.eg-page-head {
  background: linear-gradient(180deg, #f4efe3 0%, var(--eg-cream) 100%);
  padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--eg-line);
}
.eg-page-head h1 { margin-bottom: 10px; }
.eg-page-head p { color: var(--eg-muted); margin: 0; max-width: 62ch; }

.eg-content { max-width: 780px; }
.eg-content h2 { margin-top: 2em; }
.eg-content h3 { margin-top: 1.6em; }
.eg-content ul, .eg-content ol { padding-left: 1.3em; }
.eg-content li { margin-bottom: .45em; }
.eg-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--eg-amber);
  background: var(--eg-sand);
  border-radius: 0 var(--eg-radius-sm) var(--eg-radius-sm) 0;
  color: var(--eg-ink);
}

/* ---------- 占位标记 ---------- */
.ph {
  display: inline;
  background: #f7eeda;
  color: #8a6a2f;
  border-bottom: 1px dashed #c9a96a;
  padding: 0 .25em;
  border-radius: 3px;
  font-size: .95em;
}
.eg-note {
  background: var(--eg-amber-soft);
  border: 1px solid #efdcb6;
  color: #7a5a1f;
  border-radius: var(--eg-radius-sm);
  padding: 14px 18px;
  font-size: .92rem;
  margin: 24px 0;
}

/* ---------- 页脚 ---------- */
.eg-footer {
  background: #12251f;
  color: #c9d6d0;
  padding: 56px 0 28px;
  margin-top: 0;
}
.eg-footer a { color: #e8efe9; text-decoration: none; }
.eg-footer a:hover { color: #f0c07a; }
.eg-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.eg-footer h4 { color: #fff; font-family: var(--eg-font-sans); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.eg-footer ul { list-style: none; margin: 0; padding: 0; }
.eg-footer li { margin-bottom: 9px; font-size: .94rem; }
.eg-footer__brand p { font-size: .93rem; color: #9fb2a9; max-width: 34ch; }
.eg-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: .84rem; color: #8fa39a;
}

/* ---------- 无障碍 ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--eg-green-dark);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--eg-amber); outline-offset: 2px; }

/* ---------- 平板 ---------- */
@media (max-width: 980px) {
  .eg-hero__grid { grid-template-columns: 1fr; }
  .eg-hero__media { order: -1; aspect-ratio: 16 / 9; }
  .eg-pillars, .eg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .eg-grid-4, .eg-tiles { grid-template-columns: repeat(3, 1fr); }
  .eg-cta { grid-template-columns: 1fr; }
  .eg-footer__grid { grid-template-columns: 1fr 1fr; }
  .eg-nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--eg-cream);
    border-bottom: 1px solid var(--eg-line);
    padding: 12px 24px 22px;
    display: none;
    box-shadow: 0 24px 40px -30px rgba(0,0,0,.5);
  }
  .eg-nav.is-open { display: block; }
  .eg-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .eg-nav a { padding: 13px 12px; border-radius: 10px; }
  .eg-burger { display: flex; }
  .eg-lang { margin-left: 8px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eg-wrap { padding: 0 18px; }
  .eg-pillars, .eg-grid-2, .eg-grid-3, .eg-grid-4 { grid-template-columns: 1fr; }
  .eg-tiles { grid-template-columns: repeat(2, 1fr); }
  .eg-event { grid-template-columns: 64px 1fr; row-gap: 12px; }
  .eg-event__cta { grid-column: 1 / -1; }
  .eg-event__date { padding-right: 10px; }
  .eg-event__d { font-size: 1.5rem; }
  .eg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .eg-hero__actions .eg-btn { width: 100%; }
  .eg-cta__actions .eg-btn { width: 100%; }
  .eg-brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ── 照片：首页主图与关于页横幅 ───────────────────────────── */
.eg-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eg-hero__media::after {
  background: linear-gradient(180deg, rgba(20, 63, 52, 0) 45%, rgba(20, 63, 52, .45) 100%);
}
.eg-photo-band {
  margin: 0 0 40px;
}
.eg-photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vw, 400px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--eg-shadow-lg);
}
.eg-photo-band figcaption {
  margin-top: 10px;
  font-size: .78rem;
  color: #6b7a72;
  text-align: right;
}
.eg-credits { font-size: .76rem; opacity: .82; }
.eg-credits a { color: inherit; text-decoration: underline; }

/* 页头与紧随其后的内容区之间收紧（原为页头 40px + 内容 96px，过空） */
.eg-page-head + .eg-section { padding-top: clamp(24px, 3vw, 36px); }
