/* 七星·好享里 — 官网 */
:root {
  --primary: #2D5A27;
  --primary-dark: #1A3D16;
  --accent: #E8B84A;
  --text: #1E293B;
  --muted: #4B5563;
  --bg: #F5F5F0;
  --surface: #fff;
  --line: #E2E8F0;
  --leaf-wash: #E8F0E6;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --focus: #2D5A27;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container { width: min(1080px, 92vw); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.brand:hover { color: var(--primary); }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--primary);
  background: var(--leaf-wash);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  filter: brightness(0.97);
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle span + span { margin-top: 5px; }

.mobile-nav[hidden] { display: none !important; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.mobile-nav-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--surface);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-nav-close {
  border: 0;
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

.mobile-nav-sheet > a:not(.btn) {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav-sheet > a:not(.btn):hover {
  background: var(--leaf-wash);
  color: var(--primary);
}

.mobile-nav-cta {
  margin-top: 12px;
  justify-content: center;
}

.hero {
  background:
    linear-gradient(120deg, rgba(26, 61, 22, 0.78), rgba(45, 90, 39, 0.45)),
    url("../assets/hero-pagoda.png") center / cover no-repeat;
  color: #fff;
  padding: 88px 0 72px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hero .lead {
  margin-top: 12px;
  font-size: 1.15rem;
  opacity: 0.95;
}

.hero-promise {
  max-width: 28rem;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  filter: brightness(0.97);
  color: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--primary-dark);
  color: #fff;
}

.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.section .sub {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 40rem;
}

.wechat-section { padding-top: 40px; }

.wechat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}

.wechat-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
}

.wechat-name {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--leaf-wash);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 12px 16px;
}

.wechat-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.wechat-secondary {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-howto {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  color: inherit;
}

a.card:hover {
  border-color: #c5d6c2;
  color: inherit;
}

.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary);
}

.card-all {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links,
.footer-beian {
  margin-top: 8px;
}

.footer-links span {
  margin: 0 6px;
  color: var(--line);
}

@media (max-width: 800px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .grid-3,
  .grid-2,
  .grid-howto { grid-template-columns: 1fr; }
  .card-all { grid-column: auto; }
  .hero { padding: 64px 0 48px; }
  .wechat-name-row { flex-direction: column; align-items: stretch; }
  .btn-copy { width: 100%; }
}
