:root {
  --bg: #f5f6f4;
  --card: #ffffff;
  --text: #16181a;
  --muted: #6b726c;
  --line: #e5e8e4;
  --brand: #129a4b;
  --brand-dark: #0b6b33;
  --brand-soft: #e9f6ee;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.logo span { font-size: 15px; font-weight: 600; letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 9px;
}
.nav a:hover { color: var(--text); background: #eef0ed; }
.nav a.is-cta { color: #fff; background: var(--brand); }
.nav a.is-cta:hover { background: var(--brand-dark); color: #fff; }

.hero {
  padding: 64px 0 44px;
  text-align: center;
  background:
    radial-gradient(circle at 20% -10%, #e8f5ec 0%, transparent 55%),
    radial-gradient(circle at 85% 0%, #eef4ff 0%, transparent 45%);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 600;
}

.hero p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20, 30, 20, .04);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

.searchbox button {
  flex: none;
  border: 0;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.searchbox button:hover { background: var(--brand-dark); }

.hero__hint { margin-top: 14px; font-size: 13px; color: #97a09a; }

.section { padding: 8px 0 40px; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
}

.section__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.section__head span { color: var(--muted); font-size: 13px; }
.section__head a { margin-left: auto; font-size: 14px; color: var(--brand-dark); text-decoration: none; }
.section__head a:hover { text-decoration: underline; }

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

.catcard {
  display: block;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.catcard:hover {
  transform: translateY(-2px);
  border-color: #cfe6d8;
  box-shadow: 0 6px 20px rgba(18, 154, 75, .08);
}

.catcard__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  margin-bottom: 12px;
}
.catcard__icon svg { width: 20px; height: 20px; stroke: var(--brand-dark); fill: none; stroke-width: 1.6; }

.catcard__name { font-weight: 600; font-size: 15px; }
.catcard__count { color: var(--muted); font-size: 13px; margin-top: 2px; }

.latest {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.latest__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.latest__row:first-child { border-top: 0; }
.latest__row:hover { background: #fafbf9; }

.chip {
  flex: none;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.latest__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest__date { flex: none; color: #9aa29c; font-size: 13px; font-variant-numeric: tabular-nums; }

.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.dlcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.dlcard:hover { border-color: #cfe6d8; }
.dlcard__t { font-weight: 600; }
.dlcard__s { color: var(--muted); font-size: 13px; }
.dlcard__go { margin-left: auto; color: var(--brand-dark); font-size: 14px; }

.foot {
  margin-top: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- 目录页 ---------- */
.cathead { padding: 34px 0 20px; }
.cathead h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.cathead p { margin: 0; color: var(--muted); font-size: 14px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 22px; }

.filter {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 240px;
}
.filter input { flex: 1; border: 0; outline: 0; font-size: 14px; font-family: inherit; background: transparent; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.pill:hover { color: var(--text); }
.pill.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 30px; }

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pcard:hover { transform: translateY(-2px); border-color: #cfe6d8; box-shadow: 0 8px 24px rgba(18, 154, 75, .08); }

.pcard__thumb {
  aspect-ratio: 4 / 3;
  background: #f0f2ef;
  overflow: hidden;
}
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.pcard__body { padding: 11px 13px 13px; }
.pcard__model { font-size: 12px; color: var(--brand-dark); font-weight: 600; letter-spacing: .02em; }
.pcard__name {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.pcard__meta { margin-top: 6px; font-size: 12px; color: #9aa29c; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dl { grid-template-columns: 1fr; }
  .nav a:not(.is-cta) { display: none; }
  .latest__date { display: none; }
}
