:root {
  /* ECO DNA, modern surface */
  --eco-green: #C1E390;
  --eco-cream: #FDFBEC;
  --eco-orange: #FF6633;

  --bg0: #f4f6f1;
  --panel: #ffffff;
  --panel-soft: rgba(253, 251, 236, 0.72);
  --line: rgba(60, 90, 50, 0.1);
  --text: #1f2a24;
  --muted: #6b7a70;
  --green: var(--eco-green);
  --green-ink: #3f5a2c;
  --green-deep: #6f9448;
  --accent: var(--eco-orange);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(40, 60, 40, 0.07);
  --shadow-hover: 0 14px 36px rgba(40, 60, 40, 0.12);
  --font: "HYQiHei", "汉仪旗黑", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(193, 227, 144, 0.38), transparent 58%),
    radial-gradient(760px 440px at 96% 6%, rgba(253, 251, 236, 0.95), transparent 55%),
    linear-gradient(180deg, #f8faf5 0%, #f2f5ee 48%, #eef2e8 100%);
}

.wrap {
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.brand-mark {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--green-ink);
  background: var(--green);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.header-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: 0.15s ease;
}
.header-nav a.is-active,
.header-nav a:hover {
  color: var(--green-ink);
  background: var(--green);
}

/* Hero — single random image, no overlay / no carousel */
.hero-banner {
  position: relative;
  min-height: clamp(180px, 26vw, 300px);
  margin-bottom: 0;
  background-color: #e8f0d8;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero-intro {
  padding: 1.6rem 0 0.35rem;
}
.hero-intro .eyebrow {
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.hero-intro h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.hero-intro .lede {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

/* Toolbar: filters + search */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.filter-bar button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 800;
  font-size: 0.86rem;
  transition: 0.15s ease;
}
.filter-bar button:hover {
  color: var(--text);
  background: var(--panel-soft);
  border-color: rgba(193, 227, 144, 0.7);
}
.filter-bar button.is-active {
  color: var(--green-ink);
  background: var(--green);
  border-color: transparent;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 260px;
  min-width: 180px;
  max-width: 320px;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within {
  border-color: rgba(193, 227, 144, 0.95);
  box-shadow: 0 0 0 3px rgba(193, 227, 144, 0.28);
}
.search-box .search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  flex: 0 0 auto;
  opacity: 0.95;
}
.search-box .search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.search-box input::placeholder {
  color: #9aa69c;
  font-weight: 500;
}

@media (max-width: 640px) {
  .search-box {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* 轮播池全展示（与启动器同源） */
.carousel-board {
  padding-bottom: 0.5rem;
}
.carousel-board-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.carousel-board-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.carousel-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg0);
  aspect-ratio: 739 / 124;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40, 60, 40, 0.18);
}
.carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
}
.carousel-card .carousel-card-title,
.carousel-card .carousel-card-period {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 96%;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-weight: 700;
}
.carousel-card .carousel-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1rem;
  color: var(--ink);
  font-size: 0.95rem;
  background: linear-gradient(135deg, #eef4e8, #dfeacc);
}
.carousel-card .carousel-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #243a18;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(255, 255, 255, 0.65);
}

/* Board */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.35rem;
  align-items: start;
  padding-bottom: 3rem;
}
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .board-side {
    position: static;
  }
}

.board-side {
  position: sticky;
  top: 76px;
  align-self: start;
  z-index: 5;
}

.featured {
  display: flex;
  gap: 1.15rem;
  align-items: stretch;
  background: linear-gradient(160deg, #fff 0%, var(--eco-cream) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.featured-media {
  flex: 0 0 220px;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eee2;
}
.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  object-position: center top;
}
.featured:not(.has-thumb) .featured-media { display: none; }
.featured-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.featured-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(193, 227, 144, 0.45);
  color: var(--green-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.new-tag {
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  padding: 0.12rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 900;
}
.featured h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 900;
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.featured-excerpt {
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}
.btn-read {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 900;
  color: var(--green-ink);
  background: var(--green);
  transition: transform 0.12s ease, filter 0.12s ease;
  align-self: flex-start;
}
.btn-read:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .featured {
    flex-direction: column;
  }
  .featured-media {
    flex-basis: auto;
    width: 100%;
    height: 160px;
  }
  .featured-media img {
    min-height: 160px;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.section-head h2 {
  font-size: 1.15rem;
  font-weight: 900;
}
.section-head p {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.article-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(30, 40, 50, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  text-align: left;
  color: inherit;
  width: 100%;
  box-shadow: 0 2px 10px rgba(40, 60, 40, 0.04);
}
.article-card:hover {
  border-color: rgba(193, 227, 144, 0.85);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.article-thumb {
  flex: 0 0 118px;
  width: 118px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2ea;
}
.article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.article-body {
  flex: 1 1 auto;
  min-width: 0;
}
.article-card .featured-meta {
  margin-bottom: 0.35rem;
}
.article-card .pill {
  background: #fff3df;
  color: #b8860b;
}
.article-card h3 {
  font-size: 1.02rem;
  font-weight: 900;
  margin: 0 0 0.28rem;
  color: #1a2b42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-card .excerpt {
  color: #8b949e;
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.article-card .arrow {
  flex: 0 0 auto;
  color: #3b82f6;
  font-weight: 900;
  font-size: 1.15rem;
  opacity: 0.85;
  transition: transform 0.15s, opacity 0.15s;
  padding-left: 0.25rem;
}
.article-card:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .article-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 64px;
  }
  .article-card {
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
  }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.pager button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-weight: 700;
  transition: 0.15s ease;
}
.pager button:hover:not(:disabled) {
  background: var(--green);
  color: var(--green-ink);
  border-color: transparent;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager span { color: var(--muted); font-size: 0.85rem; }

.empty {
  color: var(--muted);
  padding: 2.4rem 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.side-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.side-card h3 {
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}
.cat-counts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cat-counts li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  transition: background 0.12s;
}
.cat-counts li:hover,
.cat-counts li.is-active {
  background: rgba(193, 227, 144, 0.28);
}
.cat-counts button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  padding: 0;
}
.cat-counts li.is-active button,
.cat-counts button:hover {
  color: var(--green-ink);
}
.cat-counts .n {
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

/* Detail */
.back-link {
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 800;
  margin: 1.3rem 0 1rem;
  padding: 0;
  transition: color 0.12s;
}
.back-link:hover { color: var(--green-deep); }

.detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.detail h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.detail-body {
  font-size: 0.98rem;
  line-height: 1.78;
  color: #3a4740;
}
.detail-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 0.7rem 0;
}
.detail-body a { color: var(--green-deep); font-weight: 700; }
.detail-body a:hover { color: var(--accent); }
.detail-body h2, .detail-body h3 {
  margin: 1.15rem 0 0.45rem;
  color: var(--text);
}
.detail-body p { margin: 0.55rem 0; }
.detail-body ul, .detail-body ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.detail-ext {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.detail-ext a {
  color: var(--green-deep);
  font-weight: 800;
}
.detail-ext a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.45);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner a:hover { color: var(--green-deep); }
