:root {
  /* 柔和低饱和护眼配色 */
  --bg: #f5f3ee;
  --bg-soft: #efece4;
  --surface: #fbfaf7;
  --surface-2: #f2efe8;
  --ink: #3a3a3c;
  --ink-soft: #6b6a66;
  --ink-faint: #9a988f;
  --line: #e4e0d6;
  --brand: #7c9a8e;        /* 柔和鼠尾草绿 */
  --brand-soft: #e6ede9;
  --brand-ink: #4f6b60;
  --accent: #c8a98a;       /* 暖陶土 */
  --accent-soft: #f1e7dd;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(60, 58, 50, 0.07);
  --shadow-hover: 0 10px 32px rgba(60, 58, 50, 0.12);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
}
.brand .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, var(--brand) 19% 60%, var(--brand-ink) 61%);
  box-shadow: inset 0 0 0 2px var(--surface);
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--brand-ink); }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 4px 0 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--brand-ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- 卡片栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat {
  align-self: flex-start;
  font-size: 12px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}

/* ---------- 标签筛选 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.sortbar { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.sortbar select {
  font: inherit;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 36px 0;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--brand-ink); }

/* ---------- 统计数 ---------- */
.stat {
  font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
  font-weight: 600;
}

/* ---------- 响应式 ---------- */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ---------- 首页 hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: 0.5px; }
.hero .slogan { font-size: 18px; color: var(--ink-soft); margin: 0 0 8px; }
.hero .sub { font-size: 14px; color: var(--ink-faint); margin: 0 0 28px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 680px) {
  .hero { padding: 48px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero .slogan { font-size: 16px; }
}

/* ---------- 详情页 ---------- */
.detail-hero { padding: 40px 0 8px; }
.detail-title { font-size: 30px; margin: 0 0 6px; }
.detail-sub { color: var(--ink-soft); margin: 0 0 20px; }
.media-block { margin: 22px 0; }
.media-block img, .media-block video {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
}
.media-cap { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.sidebar .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar .row:last-of-type { border-bottom: none; }
.sidebar .row span:first-child { color: var(--ink-faint); }
.detail-body p { color: var(--ink-soft); }
.download-box { margin-top: 18px; }
.download-box .btn { width: 100%; justify-content: center; }
.empty { text-align: center; color: var(--ink-faint); padding: 60px 0; }
