/*
Theme Name: GeneratePress Child - Wutong Nature
Template: generatepress
Version: 1.1.0
Description: 深圳足跡 — refined Nature/Organic design. Noto Serif SC display headings,
earthy palette (forest/wood/cream), generous whitespace, mobile-first.
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --forest: #2F4A33;
  --forest-deep: #243C28;
  --moss: #6B8F71;
  --wood: #A98467;
  --wood-soft: #C9A98C;
  --cream: #FAF6EF;
  --sand: #F0E8DA;
  --sand-2: #E7DCC9;
  --ink: #26221B;
  --ink-soft: #5E564A;
  --muted: #8B8378;
  --white: #FFFFFF;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(38, 34, 27, .06);
  --shadow-md: 0 4px 16px rgba(38, 34, 27, .08);
  --shadow-lg: 0 14px 40px rgba(38, 34, 27, .12);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
}

/* ============================================================
   2. Base & typography scale
   ============================================================ */
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-deep);
  line-height: 1.35;
  letter-spacing: .01em;
  font-weight: 700;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
a { color: var(--forest); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--wood); }
::selection { background: rgba(107, 143, 113, .28); }

/* ============================================================
   3. Buttons
   ============================================================ */
.btn, .button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-primary, .button, input[type="submit"] {
  background: var(--forest);
  color: #FDFBF6;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .button:hover, input[type="submit"]:hover {
  background: var(--forest-deep);
  color: #FDFBF6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover { background: rgba(47, 74, 51, .06); color: var(--forest-deep); transform: translateY(-1px); }
.btn-wood { background: var(--wood); color: #FFF; }
.btn-wood:hover { background: #8F6B4E; color: #FFF; transform: translateY(-1px); }

/* ============================================================
   4. Header & navigation
   ============================================================ */
.site-header {
  background: rgba(250, 246, 239, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-branding .main-title a, .site-branding .main-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .06em;
  color: var(--forest) !important;
}
.main-navigation a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.main-navigation a:hover { color: var(--forest); }
.main-navigation .current-menu-item > a { color: var(--forest); font-weight: 700; }

/* ============================================================
   5. Hero
   ============================================================ */
.wutong-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 24px 150px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 46, 30, .50) 0%, rgba(28, 46, 30, .22) 48%, var(--cream) 96%);
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 3; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #FDFBF6;
  background: rgba(253, 251, 246, .16);
  border: 1px solid rgba(253, 251, 246, .38);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-kicker::before { content: "🌿"; letter-spacing: 0; }
.wutong-hero h1 {
  font-size: clamp(38px, 6.5vw, 58px);
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 18px;
  color: #FDFBF6;
  text-shadow: 0 2px 26px rgba(18, 32, 20, .5);
}
.hero-sub {
  font-size: 17px;
  color: #F1EBDE;
  text-shadow: 0 1px 12px rgba(18, 32, 20, .45);
  line-height: 2;
  margin: 0 auto 30px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-mountains {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   6. Sections & overline labels
   ============================================================ */
.wutong-section { padding: var(--sp-7) 0 var(--sp-5); }
.section-head { text-align: center; margin-bottom: var(--sp-6); }
.section-overline {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 10px;
}
.section-head h2 { font-size: 28px; margin: 0; }

/* ============================================================
   7. Category cards
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 0 0 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-2);
}
.cat-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 6px;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.07); }
.cat-icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.cat-card h3 { font-size: 20px; margin: 4px 22px 0; }
.cat-card p { font-size: 14px; color: var(--ink-soft); margin: 0 22px; line-height: 1.8; }
.cat-link {
  margin: 6px 22px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-link .arrow { transition: transform .18s ease; }
.cat-card:hover .cat-link .arrow { transform: translateX(4px); }

/* ============================================================
   8. Post cards
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-cat-chip {
  position: absolute;
  left: 12px; bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest-deep);
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 4px 12px;
}
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 17.5px; line-height: 1.5; margin: 0; }
.post-card h3 a { color: var(--forest-deep); }
.post-card h3 a:hover { color: var(--wood); }
.post-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.post-card-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* ============================================================
   9. Listing status badge & property type chip
   ============================================================ */
.listing-badge, .property-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 999px;
}
.listing-badge { margin: 2px 8px 16px 0; }
.listing-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.listing-badge-open     { background: #E7F1E9; color: #2F6B3A; border: 1px solid #C7DECB; }
.listing-badge-open::before { animation: badge-pulse 1.8s ease-out infinite; }
.listing-badge-reserved { background: #FBF0DC; color: #92681C; border: 1px solid #EFDCB4; }
.listing-badge-rented   { background: #ECEAE5; color: #6B645A; border: 1px solid #DAD5CC; }
.listing-badge-neutral  { background: var(--sand); color: var(--ink); }
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 107, 58, .45); }
  70%  { box-shadow: 0 0 0 7px rgba(47, 107, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 58, 0); }
}
.property-type-chip { margin: 2px 8px 16px 0; background: var(--white); color: var(--ink-soft); border: 1px solid var(--sand-2); }
.property-type-home::before       { content: "🏠"; font-size: 12px; }
.property-type-orchard::before    { content: "🌳"; font-size: 12px; }
.property-type-commercial::before { content: "🏢"; font-size: 12px; }
.property-type-club::before       { content: "🏛️"; font-size: 12px; }

/* ============================================================
   10. Entry content (single posts)
   ============================================================ */
.entry-header .entry-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.4; }
.entry-content { font-size: 16.5px; line-height: 2; }
.entry-content h2 {
  font-size: 23px;
  margin: 2em 0 .8em;
  padding-left: 14px;
  border-left: 4px solid var(--moss);
}
.entry-content h3 { font-size: 18.5px; margin: 1.8em 0 .6em; color: var(--forest); }
.entry-content ul { padding-left: 1.5em; }
.entry-content li { margin: .45em 0; }
.entry-content li::marker { color: var(--wood); }
.entry-content img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--wood-soft);
  background: rgba(169, 132, 103, .07);
  padding: 14px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-soft);
  margin: 1.6em 0;
}

/* ============================================================
   11. CTA box
   ============================================================ */
.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #FDFBF7;
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  margin: 2.4em 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 140, .25), transparent 70%);
  top: -90px; right: -60px;
}
.cta-box::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 143, 113, .3), transparent 70%);
  bottom: -80px; left: -50px;
}
.cta-box h3 { color: #FDFBF7; font-size: 22px; margin: 0 0 10px; position: relative; z-index: 1; }
.cta-box p { color: #E8E2D5; margin: 6px 0; position: relative; z-index: 1; }
.cta-box a.button { position: relative; z-index: 1; background: var(--wood); color: #FFF; margin-top: 10px; }
.cta-box a.button:hover { background: var(--wood-soft); transform: translateY(-1px); }

/* ============================================================
   12. Contact strip (front page)
   ============================================================ */
.wutong-contact {
  margin: var(--sp-7) 0 var(--sp-8);
  background: linear-gradient(150deg, var(--forest-deep), var(--forest));
  color: #FDFBF7;
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.wutong-contact h2 { color: #FDFBF7; font-size: 26px; margin: 0 0 10px; }
.wutong-contact p { color: #DCD5C6; margin: 8px 0; }
.wutong-contact .contact-line { font-size: 16px; color: #F5F0E6; }
.wutong-contact .contact-line strong { color: var(--wood-soft); }

/* ============================================================
   14. Lead form (房源咨询)
   ============================================================ */
.lead-form {
  margin: 2.4em 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.lead-form-title { font-size: 19px; margin: 0 0 6px; }
.lead-form-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.lead-row { margin-bottom: 12px; }
.lead-row.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.lead-form input[type="text"], .lead-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--sand-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(107, 143, 113, .15);
  background: var(--white);
}
.lead-form textarea { resize: vertical; }
.lead-answer {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(107, 143, 113, .08);
  border: 1px solid rgba(107, 143, 113, .25);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}
.lead-answer small { color: var(--muted); }

/* ============================================================
   15. Language toggle button
   ============================================================ */
#wutong-lang-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  width: 48px; height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--forest);
  color: #FDFBF6;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: .05em;
  box-shadow: 0 6px 20px rgba(38, 34, 27, .25);
  border: 2px solid rgba(253, 251, 246, .35);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
#wutong-lang-btn:hover { transform: translateY(-2px); background: var(--forest-deep); }
#wutong-lang-btn:disabled { opacity: .6; cursor: wait; }

/* ============================================================
   16. Footer
   ============================================================ */
.site-footer {
  background: var(--forest-deep);
  color: #CFC8B9;
}
.site-footer .site-info { font-size: 13.5px; padding: 22px 0; }
.site-footer a { color: var(--wood-soft); }

/* ============================================================
   17. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cat-grid, .post-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .wutong-hero { padding: 64px 20px 96px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cat-grid, .post-grid { grid-template-columns: 1fr; }
  .wutong-hero { padding: 52px 18px 84px; }
  .wutong-hero h1 { letter-spacing: .08em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .entry-content { font-size: 16px; }
  .cta-box, .wutong-contact { padding: 28px 20px; }
  #wutong-lang-btn { right: 16px; bottom: 18px; width: 44px; height: 44px; }
}

/* ---- Footer ---- */
.site-info .copyright-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; align-items: center; text-align: center; }
.hero-credit { font-size: 12px; color: var(--ink-soft); opacity: .75; }
@media (max-width: 640px) { .copyright-bar { flex-direction: column; gap: 2px; } }

/* ---- 一键复制页 ---- */
.copy-page { max-width: 720px; margin: 40px auto 60px; }
.copy-back { font-size: 14px; margin-bottom: 18px; }
.copy-back a { color: var(--forest); text-decoration: none; }
.copy-title { font-size: 28px; color: var(--forest-deep); margin: 0 0 6px; }
.copy-sub { font-size: 15px; color: var(--ink-soft); margin: 0 0 28px; }
.copy-block {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.copy-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.copy-label { font-size: 15px; font-weight: 700; color: var(--forest-deep); }
.copy-btn {
  flex: none;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.copy-btn:hover { background: var(--forest-deep); }
.copy-btn.copied { background: var(--moss); }
.copy-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 14px;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
}
.copy-empty { color: var(--ink-soft); font-size: 15px; }
.copy-tip { font-size: 13px; color: var(--ink-soft); margin-top: 22px; }
.copy-entry { margin: 26px 0 8px; }
.copy-entry a {
  display: inline-block;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sand-2);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--white);
}
.copy-entry a:hover { border-color: var(--forest); }
