/* ==========================================================================
   设计素材导航 · 全站统一样式表
   纯 CSS，无任何框架依赖；支持中英混排、深浅色、全终端自适应
   ========================================================================== */

/* ---------- 1. 变量与主题 ---------- */
:root {
  --brand: #4f46e5;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --brand-soft: rgba(79, 70, 229, .08);

  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-hover: #ffffff;

  --text: #15171f;
  --text-2: #4b5563;
  --muted: #8890a4;
  --border: #e6e8f1;
  --border-strong: #d5d9e6;

  --shadow-xs: 0 1px 2px rgba(18, 24, 40, .05);
  --shadow-sm: 0 2px 6px rgba(18, 24, 40, .06), 0 1px 2px rgba(18, 24, 40, .04);
  --shadow-md: 0 12px 28px -10px rgba(18, 24, 40, .16), 0 2px 8px rgba(18, 24, 40, .05);
  --shadow-lg: 0 28px 56px -20px rgba(23, 26, 60, .24);
  --ring: 0 0 0 4px rgba(79, 70, 229, .16);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1200px;

  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #818cf8;
    --brand-2: #a78bfa;
    --brand-3: #22d3ee;
    --brand-soft: rgba(129, 140, 248, .14);

    --bg: #0c0e15;
    --bg-soft: #12151f;
    --card: #151926;
    --card-hover: #1a1f2e;

    --text: #eef1f8;
    --text-2: #b8c0d1;
    --muted: #838ca3;
    --border: #242a3a;
    --border-strong: #313a4e;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --shadow-md: 0 14px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    --ring: 0 0 0 4px rgba(129, 140, 248, .22);
  }
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .35em 0; }
img, svg { max-width: 100%; height: auto; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .18s var(--ease), opacity .18s var(--ease);
}
a:hover { color: var(--brand-2); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(79, 70, 229, .18); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; z-index: 999;
  transform: translateX(-50%);
  background: var(--brand); color: #fff;
  padding: 10px 20px; border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .8);
  color: #fff;
}
.brand-mark svg { width: 19px; height: 19px; display: block; }
.brand-sub {
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-menu a {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: .9rem;
  color: var(--text-2);
  font-weight: 500;
}
.nav-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-menu a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 11px 12px; font-size: .95rem; }
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 68px);
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(79, 70, 229, .16), transparent 62%),
    radial-gradient(760px 340px at 88% 0%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(700px 320px at 55% 110%, rgba(139, 92, 246, .14), transparent 62%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.hero h1 { margin-bottom: 16px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 50%, var(--brand-3) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  color: var(--text-2);
  max-width: 660px;
  margin-bottom: 26px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}
.hero-stats li { margin: 0; font-size: .92rem; color: var(--muted); }
.hero-stats b {
  display: block;
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: -.02em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .85);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(79, 70, 229, .95);
}
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 15px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- 6. 搜索 ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 6px 6px 6px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  padding: 9px 0;
}
.search-bar input:focus { outline: none; }
.search-bar .btn { border-radius: 999px; }
.search-hint { font-size: .82rem; color: var(--muted); margin: 0; }

.search-empty {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.search-empty.is-visible { display: block; }

/* ---------- 7. 区块与标题 ---------- */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3));
}
.section-head p { color: var(--muted); margin: 0; font-size: .94rem; max-width: 720px; }
.section-head .link-more { font-size: .92rem; font-weight: 600; }

.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- 8. 分类卡片 ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-sites { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.cat-card {
  position: relative;
  display: block;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  color: var(--text);
}
.cat-card:hover::before { opacity: 1; }
.cat-card h3 { margin: 14px 0 8px; }
.cat-card p { color: var(--text-2); font-size: .92rem; margin-bottom: 14px; }

.cat-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 18px -10px rgba(79, 70, 229, .9);
}
.cat-badge.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cat-badge.c2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.cat-badge.c3 { background: linear-gradient(135deg, #f97316, #fbbf24); }
.cat-badge.c4 { background: linear-gradient(135deg, #10b981, #34d399); }
.cat-badge.c5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.cat-badge.c6 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.cat-badge.c7 { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.cat-badge.c8 { background: linear-gradient(135deg, #ef4444, #f97316); }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
}
.cat-meta .arrow { color: var(--brand); font-weight: 600; }

/* ---------- 9. 站点卡片 ---------- */
.site-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.site-card.is-hidden { display: none; }

.site-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.site-logo {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 16px -10px rgba(79, 70, 229, .95);
  text-transform: uppercase;
}
.site-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.4;
}
.site-card h3 a { color: var(--text); }
.site-card h3 a:hover { color: var(--brand); }
.site-sub { font-size: .8rem; color: var(--muted); }
.site-card > p {
  color: var(--text-2);
  font-size: .9rem;
  margin-bottom: 14px;
  flex: 1;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.7;
}
.chip-plain { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--text-2); }

.site-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.site-card-foot .btn-ghost { flex: none; }
.site-card-foot .detail-link {
  font-size: .86rem;
  font-weight: 600;
  margin-right: auto;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- 11. 详情页 ---------- */
.detail-hero {
  padding: clamp(24px, 4vw, 40px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(680px 280px at 8% -30%, rgba(79, 70, 229, .16), transparent 60%),
    radial-gradient(560px 240px at 92% 0%, rgba(6, 182, 212, .14), transparent 60%),
    var(--bg);
}
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-logo {
  width: 74px; height: 74px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 20px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--brand-3) 100%);
  box-shadow: 0 18px 30px -16px rgba(79, 70, 229, 1);
  text-transform: uppercase;
}
.detail-head .detail-title { flex: 1 1 320px; min-width: 0; }
.detail-head h1 { margin-bottom: 8px; }
.detail-tagline { color: var(--text-2); font-size: 1.02rem; margin-bottom: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 32px;
  align-items: start;
  padding-bottom: 56px;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.panel:last-child { margin-bottom: 0; }
.panel h2 {
  font-size: 1.28rem;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.panel h2 .num {
  display: inline-block;
  margin-right: 10px;
  font-size: .82rem;
  color: var(--brand);
  font-family: var(--mono);
}
.panel p { color: var(--text-2); }
.panel > p:last-child { margin-bottom: 0; }

.prose { font-size: 1rem; line-height: 1.85; color: var(--text-2); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px dashed var(--border);
  color: var(--text-2);
  font-size: .94rem;
}
.feature-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: 21px;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.feature-list strong { display: block; color: var(--text); font-size: .98rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.info-table th, .info-table td {
  padding: 11px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th { width: 96px; color: var(--muted); font-weight: 500; }
.info-table td { color: var(--text); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(6, 182, 212, .1));
  border: 1px solid var(--border);
}
.cta h2 { border: 0; padding: 0; margin-bottom: 4px; font-size: 1.2rem; }
.cta p { margin: 0; color: var(--text-2); font-size: .92rem; }
.cta .cta-text { flex: 1 1 260px; }

/* 侧栏 */
.sidebar { position: sticky; top: 88px; }
.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.side-card:last-child { margin-bottom: 0; }
.side-card h2, .side-card h3 {
  font-size: .95rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0;
}
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin: 0; border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--text-2);
  font-size: .9rem;
}
.side-list a:hover { color: var(--brand); }
.side-list a.is-current { color: var(--brand); font-weight: 600; }
.side-list .idx {
  width: 22px; height: 22px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .72rem;
  font-family: var(--mono);
  font-weight: 700;
}
@media (max-width: 960px) {
  .sidebar { position: static; }
}

/* ---------- 12. 页面头（分类页/通用） ---------- */
.page-head {
  padding: clamp(30px, 4vw, 52px) 0 clamp(24px, 3vw, 34px);
  background:
    radial-gradient(760px 300px at 10% -20%, rgba(79, 70, 229, .15), transparent 62%),
    radial-gradient(620px 260px at 90% -10%, rgba(6, 182, 212, .13), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { color: var(--text-2); max-width: 760px; margin-bottom: 0; font-size: 1.02rem; }
.page-head .meta-row { margin-top: 18px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 30px;
}
.pager a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.pager a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: 8px;
  padding: 48px 0 28px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px 24px;
}
.footer-brand p { color: var(--muted); font-size: .88rem; margin: 14px 0 0; max-width: 380px; }
.footer-col h3 {
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .34em 0; }
.footer-col a { color: var(--muted); font-size: .88rem; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}

/* ---------- 14. 其它组件 ---------- */
.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
  font-size: .9rem;
}
.notice p:last-child { margin-bottom: 0; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: .82rem;
}
.tag-cloud a:hover { color: var(--brand); border-color: var(--brand); }

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.subcat-grid a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.subcat-grid a span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.subcat-grid a:hover { border-color: var(--brand); color: var(--brand); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.to-top.is-visible { display: grid; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 15. 响应式微调 ---------- */
@media (max-width: 780px) {
  body { font-size: 15.5px; }
  .section-head { align-items: flex-start; }
  .site-card-foot { flex-wrap: wrap; }
  .detail-logo { width: 62px; height: 62px; font-size: 1.45rem; border-radius: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .hero-stats { gap: 12px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; padding: 10px; border-radius: var(--radius); }
  .search-bar input { width: 100%; flex: 1 1 100%; padding: 4px 6px; }
  .search-bar .btn { width: 100%; }
  .detail-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .to-top, .search-bar, .cta { display: none; }
  body { background: #fff; }
}
