/*
 * greencamp.cn — Homepage design system (Apple/Tesla minimal).
 * Loaded only when is_front_page(). Scoped via .gh-* (= greencamp homepage).
 * Pairs with front-page.php in blocksy-child theme.
 */

:root {
  --gh-ink:        #1d1d1f;
  --gh-ink-2:      #6e6e73;
  --gh-ink-3:      #86868b;
  --gh-line:       rgba(0, 0, 0, 0.10);
  --gh-line-soft:  rgba(0, 0, 0, 0.06);
  --gh-bg:         #ffffff;
  --gh-bg-soft:    #f5f5f7;
  --gh-bg-dark:    #111315;
  --gh-accent:     #21533d;
  --gh-radius:     22px;
  --gh-radius-sm:  14px;
  --gh-font:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                   "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* ---------- root layout ---------- */
.gc-home { background: var(--gh-bg); color: var(--gh-ink); font-family: var(--gh-font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em; }
.gc-home *, .gc-home *::before, .gc-home *::after { box-sizing: border-box; }
.gc-home a { color: inherit; text-decoration: none; }
.gh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.gh-only-wide { display: inline; }
@media (max-width: 640px) { .gh-only-wide { display: none; } }

/* ---------- reveal animation (removed: caused visible ghosting during scroll) ---------- */
.gh-reveal { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.gh-hero {
  position: relative; overflow: hidden;
  min-height: 78vh; max-height: 760px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; text-align: center;
}
.gh-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.04);
}
.gh-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.08) 35%, rgba(0,0,0,.62) 100%);
}
.gh-hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 880px;
  padding: 0 28px;
  display: flex; flex-direction: column; align-items: center;
}
.gh-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.92; margin-bottom: 22px;
}
.gh-headline {
  margin: 0 0 22px;
  font-size: clamp(38px, 8vw, 76px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.04; color: #fff;
}
.gh-lede {
  margin: 0 0 36px;
  font-size: clamp(15px, 1.7vw, 19px); font-weight: 400; line-height: 1.55;
  max-width: 38rem; opacity: 0.88; letter-spacing: 0.01em;
}
.gh-hero__cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 26px; opacity: 0.65; color: #fff;
  animation: gh-bob 2.2s ease-in-out infinite;
}
.gh-hero__cue svg { width: 100%; height: 100%; }
@keyframes gh-bob { 0%,100%{ transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ---------- buttons ---------- */
.gh-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; min-height: 50px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  white-space: nowrap;
}
.gh-btn:active { transform: scale(.98); }
.gh-btn--pri { background: var(--gh-ink); color: #fff; border-color: var(--gh-ink); }
.gh-btn--pri:hover { background: #000; border-color: #000; }
.gh-btn--ghost { background: transparent; color: var(--gh-ink); border-color: var(--gh-ink); }
.gh-btn--ghost:hover { background: var(--gh-ink); color: #fff; }
.gh-btn--ghost-light { background: rgba(255,255,255,.10); color: #fff;
  border-color: rgba(255,255,255,.55); backdrop-filter: saturate(180%) blur(10px); }
.gh-btn--ghost-light:hover { background: rgba(255,255,255,.20); border-color: #fff; }

/* ---------- KPI BAR ---------- */
.gh-kpi { padding: clamp(48px, 6vw, 80px) 0; }
.gh-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 56px); align-items: end;
}
@media (max-width: 720px) { .gh-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
.gh-kpi-item { text-align: left; }
.gh-kpi-item b {
  display: block; font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1; color: var(--gh-ink); margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.gh-kpi-item i {
  display: block; font-style: normal;
  font-size: 14px; font-weight: 500; color: var(--gh-ink-2); letter-spacing: 0.01em;
}

/* ---------- section heading ---------- */
.gh-sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.gh-sec-eyebrow {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gh-ink-3); margin-bottom: 14px;
}
.gh-sec-eyebrow--light { color: rgba(255,255,255,.65); }
.gh-sec-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; letter-spacing: -0.028em;
  line-height: 1.12; color: var(--gh-ink);
}
.gh-sec-lede { margin: 0; font-size: clamp(15px, 1.5vw, 18px); color: var(--gh-ink-2); line-height: 1.6; }

/* ---------- 三大方向 ---------- */
.gh-focus { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--gh-line-soft); }
.gh-focus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .gh-focus-grid { grid-template-columns: 1fr; } }
.gh-focus-card {
  position: relative; display: block;
  padding: 38px 30px 60px; border-radius: var(--gh-radius);
  background: var(--gh-bg-soft); color: var(--gh-ink);
  transition: background .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.gh-focus-card:hover { background: #ebebef; transform: translateY(-3px); }
.gh-focus-ic {
  display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center;
  border-radius: 16px; background: #fff; color: var(--gh-ink); margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.04);
}
.gh-focus-ic svg { width: 28px; height: 28px; }
.gh-focus-tt { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; }
.gh-focus-ds { margin: 0; font-size: 14.5px; color: var(--gh-ink-2); line-height: 1.55; }
.gh-focus-ar {
  position: absolute; right: 28px; bottom: 24px;
  font-size: 22px; line-height: 1; color: var(--gh-ink-3);
  transition: transform .3s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.gh-focus-card:hover .gh-focus-ar { transform: translateX(4px); color: var(--gh-ink); }

/* ---------- 最新动态 ---------- */
.gh-news { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--gh-line-soft); background: var(--gh-bg); }
.gh-news-row {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  color: var(--gh-ink); transition: background .25s ease;
}
.gh-news-row + .gh-news-row { box-shadow: inset 0 1px 0 var(--gh-line); }
.gh-news-row:hover { background: var(--gh-bg-soft); }
.gh-news-date {
  flex: 0 0 92px; font-size: 13px; font-weight: 600; color: var(--gh-ink-3); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.gh-news-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gh-news-cat {
  display: inline-block; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 600; color: var(--gh-accent);
  padding: 3px 9px; border-radius: 999px; background: rgba(33,83,61,.08);
  letter-spacing: 0.02em;
}
.gh-news-tt {
  font-size: 15.5px; font-weight: 500; color: var(--gh-ink); line-height: 1.4;
  letter-spacing: -0.012em; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.gh-news-ar {
  flex: 0 0 auto; color: #c7c7cc; transition: transform .3s cubic-bezier(.16,1,.3,1), color .3s;
}
.gh-news-ar svg { width: 9px; height: 14px; }
.gh-news-row:hover .gh-news-ar { transform: translateX(4px); color: var(--gh-accent); }
@media (max-width: 640px) {
  .gh-news-row { padding: 16px 16px; gap: 12px; }
  .gh-news-date { flex: 0 0 auto; font-size: 12px; }
  .gh-news-body { gap: 6px; }
}
.gh-empty { padding: 60px 22px; text-align: center; color: var(--gh-ink-3); font-size: 14px; }
.gh-news-foot { text-align: center; margin-top: 30px; }

/* ---------- CTA banner ---------- */
.gh-cta { padding: clamp(48px, 6vw, 80px) 0; background: var(--gh-bg); border-top: 1px solid var(--gh-line-soft); }
.gh-cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1c1f 0%, #0a0c0e 100%);
  color: #fff; border-radius: clamp(20px, 2vw, 28px);
  padding: clamp(60px, 8vw, 110px) 28px; text-align: center;
}
.gh-cta-card::before {
  content: ""; position: absolute; inset: -40% 30% auto auto; width: 70%; height: 140%;
  background: radial-gradient(circle, rgba(33,83,61,.55), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.gh-cta-title {
  position: relative; margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: #fff;
}
.gh-cta-lede {
  position: relative; margin: 0 0 32px;
  font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.78); line-height: 1.6;
}
.gh-cta .gh-cta-row { position: relative; }
.gh-cta .gh-btn--pri { background: #fff; color: #111; border-color: #fff; }
.gh-cta .gh-btn--pri:hover { background: rgba(255,255,255,.92); }


/* full-bleed escape: break out of Blocksy main container (no negative-margin scrollbars on RTL/zoom) */
.gh-hero, .gh-cta { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
/* tighten Blocksy's default <main> padding on home so our sections sit flush */
body.home main { padding: 0 !important; }
body.home main > .ct-container { max-width: none !important; padding: 0 !important; }
