:root {
  color-scheme: light;
  --page: #f7f9f7;
  --ink: #172126;
  --muted: #66737a;
  --line: #dce4df;
  --surface: #ffffff;
  --surface-soft: #edf4ef;
  --accent: #117f83;
  --accent-strong: #0f5f63;
  --accent-warm: #d85c3a;
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 247, 0.94)),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

[hidden] {
  display: none !important;
}

.theme-a {
  --page: #f5fbfb;
  --surface-soft: #eaf7f4;
  --accent: #0f8f98;
  --accent-strong: #09636b;
  --accent-warm: #e4663d;
}

.theme-b {
  --page: #f8f7f2;
  --surface-soft: #f0f2ea;
  --accent: #18756f;
  --accent-strong: #244049;
  --accent-warm: #ce6b38;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(220, 228, 223, 0.82);
  background: rgba(247, 249, 247, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(17, 127, 131, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--surface-soft));
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.button-link,
.category-button {
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--accent-strong);
  background: var(--surface-soft);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 136px);
  padding: 54px max(22px, calc((100vw - 1180px) / 2)) 40px;
}

.home-copy {
  max-width: 540px;
}

.eyebrow,
.tile-label,
.post-kicker,
.section-kicker {
  margin: 0;
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h1,
.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-copy p,
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.site-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.site-tile {
  overflow: hidden;
  display: grid;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-tile img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.site-tile-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.site-tile strong {
  font-size: 28px;
  line-height: 1.15;
}

.site-tile span:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.site-tile:hover {
  transform: translateY(-3px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 62vh;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8, 22, 26, 0.82), rgba(8, 22, 26, 0.46) 52%, rgba(8, 22, 26, 0.16)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.theme-a .hero {
  background-image:
    linear-gradient(90deg, rgba(6, 36, 43, 0.76), rgba(6, 36, 43, 0.35) 54%, rgba(6, 36, 43, 0.1)),
    var(--hero-image);
}

.hero-inner {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0 62px;
}

.hero-copy {
  max-width: 710px;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-copy .eyebrow {
  color: #ffb167;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0e2d31;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.button-link.secondary {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.button-link:hover,
.category-button:hover,
.category-button.is-active {
  transform: translateY(-1px);
}

.button-link:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.content {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
}

.section-title {
  margin: 6px 0 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.search-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-label input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search-label input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(17, 127, 131, 0.12);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.category-button {
  min-height: 38px;
  border-color: var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.category-button.is-active {
  border-color: rgba(17, 127, 131, 0.35);
  background: var(--accent-strong);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-item {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.stat-item strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(23, 33, 38, 0.06);
  color: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 127, 131, 0.36);
  box-shadow: 0 20px 46px rgba(23, 33, 38, 0.1);
}

.post-card:focus-visible,
.article-back:focus-visible {
  outline: 3px solid rgba(17, 127, 131, 0.24);
  outline-offset: 3px;
}

.post-card h3 {
  margin: 10px 0 10px;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0;
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.read-more {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
}

.article-detail {
  width: min(860px, 100%);
}

.article-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(23, 33, 38, 0.08);
}

.article-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.article-title {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-lead {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.82;
}

.article-body {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.article-body p {
  margin: 0 0 18px;
  color: #314047;
  font-size: 17px;
  line-height: 1.9;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 28px max(22px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .home-hero,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 40px;
  }

  .site-switcher {
    grid-template-columns: 1fr;
  }

  .site-tile {
    min-height: auto;
  }

  .site-tile img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-copy h1,
  .hero-copy h1 {
    font-size: 38px;
  }

  .home-copy p,
  .hero-copy p {
    font-size: 16px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 70px 0 44px;
  }

  .section-title {
    font-size: 28px;
  }

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