:root {
  --ink: #142824;
  --ink-soft: #2f4a43;
  --mist: #eef6f1;
  --paper: #f7fbf8;
  --line: rgba(20, 40, 36, 0.1);
  --accent: #c8e64a;
  --accent-deep: #8fb01f;
  --link: #0f6e5c;
  --muted: #5d736c;
  --max: 960px;
  --font-display: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(200, 230, 74, 0.28), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(15, 110, 92, 0.12), transparent 50%),
    linear-gradient(180deg, #f3faf5 0%, var(--paper) 42%, #e8f2ec 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-mark span {
  color: var(--accent-deep);
  background: linear-gradient(120deg, var(--accent), #9fd63a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(20, 40, 36, 0.07);
  color: var(--ink);
  text-decoration: none;
}

/* —— Hero (home only) —— */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: min(62vw, 520px);
  aspect-ratio: 1;
  border-radius: 42% 58% 60% 40% / 45% 42% 58% 55%;
  background:
    radial-gradient(circle at 35% 35%, rgba(200, 230, 74, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(15, 110, 92, 0.28), transparent 60%);
  filter: blur(2px);
  animation: blob-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  animation: rise-in 0.7s ease both;
}

.hero-brand span { color: var(--accent-deep); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  animation: rise-in 0.7s ease 0.1s both;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30rem;
  margin-bottom: 1.75rem;
  animation: rise-in 0.7s ease 0.18s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise-in 0.7s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover { background: #0d1f1b; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover { background: #fff; }

/* —— Page content —— */
.page {
  padding: 2.4rem 0 4rem;
}

.page-head {
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.page-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section {
  margin-top: 2.2rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.9rem;
}

.section > p,
.prose p {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.prose ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--ink-soft);
}

.prose li { margin-bottom: 0.35rem; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  list-style: none;
}

.link-grid a {
  display: block;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-grid a:hover {
  border-color: rgba(143, 176, 31, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 40, 36, 0.06);
  text-decoration: none;
}

.link-grid strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.link-grid span {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.hot-list {
  list-style: none;
  counter-reset: hot;
  display: grid;
  gap: 0.55rem;
}

.hot-list li {
  counter-increment: hot;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hot-list li::before {
  content: counter(hot);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-deep);
  text-align: center;
}

.hot-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.hot-list a:hover { color: var(--link); text-decoration: underline; }

.hot-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.gate {
  display: block;
  padding: 1.15rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gate:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 176, 31, 0.5);
  text-decoration: none;
}

.gate strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.gate span {
  font-size: 0.86rem;
  color: var(--muted);
}

.contact-box {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.contact-box dt {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: none;
}

.contact-box dd {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a { color: var(--ink-soft); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes blob-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-28px, 18px) rotate(8deg); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.6rem;
  }

  .site-nav.is-open { display: flex; }

  .header-inner { flex-wrap: wrap; }

  .hero { min-height: auto; padding: 2.6rem 0 3rem; }

  .hot-list li {
    grid-template-columns: 1.6rem 1fr;
  }

  .hot-meta {
    grid-column: 2;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
