:root {
  --ink: #172026;
  --muted: #66727d;
  --line: #e4ebe6;
  --paper: #fbfaf6;
  --green: #2f8a5f;
  --mint: #dff4e9;
  --coral: #e76451;
  --gold: #d9a441;
  --blue: #4078b8;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(24, 48, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(228, 235, 230, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 60px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: #41505a;
  font-size: 15px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 64px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 17vh;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper));
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.9) 34%, rgba(251, 250, 246, 0.3) 64%, rgba(251, 250, 246, 0.05) 100%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.62), rgba(251, 250, 246, 0.24));
}

.hero-content {
  width: min(620px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  /* max-width: 12ch; */
  font-size: clamp(48px, 8vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 580px;
  margin: 24px 0 30px;
  color: #3d4a53;
  font-size: clamp(18px, 2.3vw, 22px);
}

.search-panel {
  display: flex;
  width: min(560px, 100%);
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(47, 138, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-panel input,
.subscribe-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-panel input {
  padding: 0 16px;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-panel button,
.subscribe-form button {
  min-width: 104px;
  padding: 0 18px;
}

button:hover {
  background: #23744d;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 138, 95, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #53616b;
}

.hero-stats strong {
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.subscribe h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.intro-grid,
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.feature,
.lead-card,
.feed-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(21, 38, 33, 0.06);
}

.intro-grid article {
  padding: 28px;
}

.mini-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-weight: 900;
}

.mini-icon-coral {
  background: #ffe7e2;
  color: var(--coral);
}

.mini-icon-gold {
  background: #fff1cd;
  color: #a97210;
}

.intro-grid h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.intro-grid p,
.feature p,
.feed-list p,
.lead-card p {
  margin: 0;
  color: var(--muted);
}

.hot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
}

.lead-card {
  overflow: hidden;
}

.card-media {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(47, 138, 95, 0.8), rgba(64, 120, 184, 0.5)),
    url("../images/hero-social-discovery.png");
  background-size: cover;
  background-position: 64% center;
}

.card-body {
  padding: 28px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.lead-card h3,
.feature h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.24;
}

.lead-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.feed-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
}

.feed-list span {
  color: var(--coral);
  font-size: 26px;
  font-weight: 900;
}

.feed-list h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.topics {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: #eef6f1;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid a {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid rgba(47, 138, 95, 0.14);
  border-radius: 8px;
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.topic-grid a:hover,
.topic-grid a.is-active {
  transform: translateY(-3px);
  border-color: rgba(47, 138, 95, 0.38);
  box-shadow: 0 16px 34px rgba(30, 85, 61, 0.1);
}

.topic-grid span {
  font-size: 24px;
  font-weight: 900;
}

.topic-grid strong {
  color: var(--muted);
  font-size: 14px;
}

.feature {
  overflow: hidden;
  padding: 0 0 26px;
}

.feature-image {
  height: 178px;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(135deg, rgba(47, 138, 95, 0.78), rgba(223, 244, 233, 0.78)),
    url("../images/hero-social-discovery.png");
  background-size: cover;
  background-position: center;
}

.feature-blue .feature-image {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.86) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(64, 120, 184, 0.78), rgba(231, 100, 81, 0.46)),
    url("../images/hero-social-discovery.png");
  background-size: cover;
  background-position: right center;
}

.feature-amber .feature-image {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.88) 0 7%, transparent 8%),
    linear-gradient(135deg, rgba(217, 164, 65, 0.82), rgba(47, 138, 95, 0.48)),
    url("../images/hero-social-discovery.png");
  background-size: cover;
  background-position: 60% center;
}

.feature .tag,
.feature h3,
.feature p {
  margin-left: 24px;
  margin-right: 24px;
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 32px;
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 70px;
  padding: 38px;
  border-radius: 8px;
  background: #172026;
  color: var(--white);
}

.subscribe .eyebrow {
  color: #9ee0b9;
}

.subscribe-form {
  display: flex;
  min-height: 56px;
  padding: 6px;
  border-radius: 8px;
  background: var(--white);
}

.subscribe-form input {
  padding: 0 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.76));
  }

  .intro-grid,
  .editor-grid,
  .hot-layout,
  .subscribe {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 86vh;
    padding: 54px 20px 46px;
  }

  .hero-image {
    object-position: 72% center;
  }

  h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .search-panel,
  .subscribe-form {
    flex-direction: column;
    gap: 8px;
    min-height: auto;
  }

  .search-panel input,
  .subscribe-form input {
    min-height: 48px;
  }

  .search-panel button,
  .subscribe-form button {
    min-height: 48px;
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .feed-list article {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .subscribe {
    width: calc(100% - 28px);
    margin-bottom: 48px;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
