/*
Theme Name: SoftStation
Theme URI: https://github.com/local/softstation
Author: local
Description: 简洁的软件资源站主题。卡片栅格 + 悬浮导航 + 多版本下载列表，纯 CSS 交互，无 JS 依赖。
Version: 1.1.0
Text Domain: softstation
*/

/* ========== 1. 设计令牌 ========== */
:root {
  /* 主色：靛蓝渐变体系 */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  /* 中性色：更柔和的石板灰 */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;

  --bg-body:    #f6f7f9;
  --bg-card:    #ffffff;
  --bg-soft:    #f8fafc;
  --bg-subtle:  #f1f5f9;
  --line:       #eceef1;
  --line-strong:#e2e5e9;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  --shadow-xl: 0 24px 56px rgba(15,23,42,.14);

  --max-width: 1240px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

/* ========== 2. 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-500); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
::selection { background: var(--brand-100); color: var(--brand-700); }

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

/* ========== 3. 顶部栏 ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.logo {
  display: inline-flex; align-items: center;
  font-size: 21px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink-900); white-space: nowrap; flex: 0 0 auto;
}
.logo:hover { color: var(--ink-900); }
.logo__mark {
  width: 30px; height: 30px; margin-right: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
}
.logo .dot { color: var(--brand-600); }

/* 搜索 */
.search-box { flex: 1; max-width: 400px; position: relative; }
.search-box input {
  width: 100%; height: 40px; padding: 0 42px 0 40px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg-subtle);
  font-family: inherit; font-size: 14px; color: var(--ink-800);
  outline: none; transition: all .22s var(--ease);
}
.search-box input::placeholder { color: var(--ink-400); }
.search-box input:focus {
  border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.search-box .search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); font-size: 15px; pointer-events: none;
}
.search-box button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  height: 30px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--brand-600); color: #fff;
  font-size: 13px; font-family: inherit; cursor: pointer;
  transition: background .2s var(--ease);
}
.search-box button:hover { background: var(--brand-500); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-admin {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-600); color: #fff;
  font-size: 13.5px; font-weight: 500;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn-admin:hover { background: var(--brand-500); color: #fff; transform: translateY(-1px); }
.btn-admin__ic { font-size: 15px; font-weight: 700; line-height: 1; }
.btn-admin--ghost {
  background: transparent; color: var(--ink-600);
  border: 1px solid var(--line-strong);
}
.btn-admin--ghost:hover { background: var(--bg-subtle); color: var(--ink-800); border-color: var(--ink-300); }

/* ========== 4. 主导航 ========== */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-list {
  display: flex; align-items: center; gap: 2px;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px; height: 54px;
  list-style: none; overflow: visible;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  height: 54px; padding: 0 15px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-600); white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-list > li > a:hover { color: var(--brand-600); }
.nav-ic {
  width: 16px; height: 16px; margin-right: 6px;
  opacity: .75;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-list > li > a:hover .nav-ic { opacity: 1; transform: scale(1.08); }
.nav-list > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px;
  height: 2px; border-radius: 2px 2px 0 0;
  background: var(--brand-600);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-list > li:hover > a::after,
.nav-list > li.current-menu-item > a::after { transform: scaleX(1); }
.nav-list > li.current-menu-item > a { color: var(--brand-600); font-weight: 600; }

.nav-list .caret {
  width: 0; height: 0; margin-top: 2px;
  border: 4px solid transparent; border-top-color: currentColor;
  transition: transform .25s var(--ease);
}
.nav-list > li:hover > a .caret { transform: rotate(180deg); }

/* 二级菜单 */
.nav-list .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 170px;
  margin: 0; padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .2s var(--ease), visibility .2s var(--ease), transform .2s var(--ease);
  z-index: 90;
}
.nav-list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-list .sub-menu li { position: relative; }
.nav-list .sub-menu a {
  display: block; padding: 9px 13px;
  border-radius: var(--radius-xs);
  font-size: 14px; color: var(--ink-600);
  white-space: nowrap;
  transition: all .15s var(--ease);
}
.nav-list .sub-menu a:hover {
  background: var(--brand-50); color: var(--brand-700);
  padding-left: 17px;
}
.nav-list .sub-menu .sub-menu {
  top: -8px; left: calc(100% + 4px);
  transform: translateX(-8px) scale(.98);
  transform-origin: left top;
}
.nav-list .sub-menu li:hover > .sub-menu { transform: translateX(0) scale(1); }

.nav-toggle {
  display: none; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; padding: 0;
  color: var(--ink-700); font-size: 19px;
}
.nav-toggle:hover { background: var(--bg-subtle); }

/* ========== 5. 页面主体 ========== */
.site-main { padding: 30px 0 70px; }

/* 顶部横幅（仅首页） */
.hero {
  position: relative;
  margin-bottom: 30px;
  padding: 34px 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #4f46e5 0%, #6366f1 42%, #8b5cf6 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 14px 40px -12px rgba(79,70,229,.5);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 200px at 88% 0%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(400px 180px at 10% 100%, rgba(255,255,255,.12), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }

/* 带背景图的横幅 */
.hero--img {
  background: linear-gradient(120deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
  min-height: 210px;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("assets/hero/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: .9;
  z-index: 0;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(49,46,129,.92) 0%,
    rgba(67,56,202,.78) 38%,
    rgba(79,70,229,.38) 62%,
    rgba(124,58,237,.22) 100%);
}
.hero--img .hero__inner { padding: 6px 0; }
.hero--img h1 { text-shadow: 0 2px 18px rgba(15,23,42,.35); }
.hero h1 {
  font-size: 27px; line-height: 1.35; margin: 0 0 8px;
  letter-spacing: -.02em;
}
.hero p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.82); }
.hero__stats {
  display: flex; gap: 34px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stat b { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hero__stat span { font-size: 12.5px; color: rgba(255,255,255,.72); }

/* 区块标题 */
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 20px;
}
.section-head h2 {
  font-size: 18px; margin: 0;
  display: flex; align-items: center; gap: 9px;
  color: var(--ink-900);
}
.section-head h2::before {
  content: ""; width: 4px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
}
.section-head .count {
  font-size: 13px; color: var(--ink-400); font-weight: 400;
}
.section-head .more {
  margin-left: auto; font-size: 13.5px; color: var(--ink-500);
}
.section-head .more:hover { color: var(--brand-600); }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 27px; margin: 0 0 6px; color: var(--ink-900); letter-spacing: -.02em; }
.page-head .sub { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ========== 6. 卡片栅格 ========== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0; padding: 0; list-style: none;
  align-items: start;
}

.post-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.28);
}

.post-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }

/* 无封面：渐变 + 首字母 */
.post-card__thumb--empty {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.6), transparent 55%),
    linear-gradient(135deg, #eef2ff 0%, #e0e7ff 45%, #ede9fe 100%);
}
.post-card__thumb--empty .letter {
  font-size: 40px; font-weight: 800;
  color: #c7d2fe;
  letter-spacing: -.03em;
  text-shadow: 0 1px 0 #fff;
}

.post-card__badge {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}

.post-card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }

.post-card__cat {
  align-self: flex-start;
  margin-bottom: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .01em;
  transition: background .2s var(--ease);
}
.post-card__cat:hover { background: var(--brand-100); color: var(--brand-700); }

.post-card__title {
  font-size: 15.5px; font-weight: 600; line-height: 1.55;
  margin: 0 0 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -.005em;
}
.post-card__title a { color: var(--ink-900); }
.post-card__title a:hover { color: var(--brand-600); }

.post-card__excerpt {
  font-size: 13px; line-height: 1.7;
  color: var(--ink-500);
  margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex; align-items: center; gap: 13px;
  margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--bg-subtle);
  font-size: 12px; color: var(--ink-400);
}
.post-card__meta .sep { color: var(--ink-300); }

/* ========== 7. 分页 ========== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  margin-top: 44px; flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-600); font-size: 14px; font-weight: 500;
  transition: all .2s var(--ease);
}
.pagination .page-numbers:hover {
  border-color: var(--brand-500); color: var(--brand-600);
  background: var(--brand-50);
}
.pagination .page-numbers.current {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.pagination .dots { border: 0; background: none; color: var(--ink-400); }

/* ========== 8. 文章页 ========== */
.single-wrap { max-width: 880px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-400);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { margin: 0 7px; color: var(--ink-300); }

.single-header {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 30px 36px 22px;
  border-bottom: 0;
}
.single-title {
  font-size: 27px; line-height: 1.45;
  margin: 0 0 14px;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.single-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 15px;
  font-size: 13px; color: var(--ink-400);
}
.single-meta a { color: var(--ink-500); }
.single-meta a:hover { color: var(--brand-600); }
.single-meta .chip {
  padding: 2px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px;
}

.single-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 8px 36px 36px;
  font-size: 15.5px; line-height: 1.9;
  color: var(--ink-700);
}
.single-body > *:first-child { margin-top: 8px; }

.single-body h2 {
  font-size: 20px; margin: 2em 0 .8em;
  padding-left: 13px;
  border-left: 4px solid var(--brand-600);
  color: var(--ink-900);
  scroll-margin-top: 80px;
}
.single-body h3 {
  font-size: 17px; margin: 1.9em 0 .75em;
  padding-left: 12px;
  border-left: 3px solid var(--brand-600);
  color: var(--ink-900);
  scroll-margin-top: 80px;
}
.single-body h4 { font-size: 15.5px; margin: 1.5em 0 .6em; color: var(--ink-800); }
.single-body p { margin: 0 0 1.1em; }
.single-body a { color: var(--brand-600); text-decoration: underline; text-decoration-color: rgba(79,70,229,.3); text-underline-offset: 2px; }
.single-body a:hover { text-decoration-color: var(--brand-600); }
.single-body img {
  border-radius: var(--radius-md);
  margin: 1.4em auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.single-body ul, .single-body ol { padding-left: 1.5em; }
.single-body li { margin-bottom: .45em; }
.single-body blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--brand-100);
  background: var(--bg-soft);
  color: var(--ink-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-body pre {
  background: #0f172a; color: #e2e8f0;
  padding: 18px; border-radius: var(--radius-md);
  overflow-x: auto; font-size: 13px; line-height: 1.65;
}
.single-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.single-body :not(pre) > code {
  background: var(--brand-50); color: #be185d;
  padding: 2px 6px; border-radius: 4px; font-size: .88em;
}
.single-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.single-body th, .single-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.single-body th { background: var(--bg-soft); font-weight: 600; color: var(--ink-800); }
.single-body tr:nth-child(even) td { background: #fcfcfd; }

.post-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
  padding: 5px 13px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--ink-500);
  font-size: 12.5px;
  transition: all .2s var(--ease);
}
.post-tags a:hover { background: var(--brand-600); color: #fff; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 22px;
}
.post-nav a {
  display: block; padding: 17px 19px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-700); font-size: 14px;
  transition: all .25s var(--ease);
}
.post-nav a:hover {
  border-color: var(--brand-500); color: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-nav .label {
  display: block; font-size: 11.5px; color: var(--ink-400);
  margin-bottom: 5px; font-weight: 500;
}
.post-nav .next { text-align: right; }

/* ========== 9. 下载行 ========== */
.dl-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; margin: 11px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: all .25s var(--ease);
}
.dl-row:hover {
  border-color: rgba(99,102,241,.4);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.dl-row__icon {
  flex: 0 0 auto; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-600);
  font-size: 17px; font-weight: 700;
}
.dl-row__info { flex: 1; min-width: 0; }
.dl-row__name { font-size: 14.5px; font-weight: 600; line-height: 1.5; word-break: break-word; }
.dl-row__name a { color: var(--ink-900); }
.dl-row__name a:hover { color: var(--brand-600); }
.dl-row__source { font-size: 12px; color: var(--ink-400); margin-top: 3px; }
.dl-row__btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff !important;
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(79,70,229,.28);
  transition: all .2s var(--ease);
}
.dl-row__btn:hover {
  background: var(--brand-500);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(79,70,229,.4);
}

.spec-list {
  margin: 16px 0; padding: 16px 20px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  font-size: 14px; line-height: 2.1;
}
.spec-list li { position: relative; padding-left: 18px; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); opacity: .55;
}

.tip {
  margin: 18px 0; padding: 14px 19px;
  border-radius: var(--radius-md);
  border-left: 3px solid;
  font-size: 14px; line-height: 1.75;
}
.tip--info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.tip--warn { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.tip--ok   { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.tip--gray { background: var(--bg-subtle); border-color: var(--ink-400); color: var(--ink-600); }

/* ========== 10. 空状态 ========== */
.empty { padding: 80px 20px; text-align: center; color: var(--ink-400); }
.empty .icon { font-size: 46px; opacity: .3; margin-bottom: 14px; }
.empty h2 { font-size: 19px; color: var(--ink-600); margin-bottom: 8px; }

/* ========== 11. 页脚 ========== */
.site-footer {
  margin-top: 60px;
  padding: 36px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-400);
  text-align: center;
}
.site-footer a { color: var(--ink-500); }
.site-footer a:hover { color: var(--brand-600); }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-copy { line-height: 1.9; }

/* ========== 12. 响应式 ========== */
@media (max-width: 1180px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }
  .nav-list { padding: 0 20px; }
}

@media (max-width: 900px) {
  .header-inner { height: 60px; gap: 12px; }
  .search-box { max-width: none; }
  .hero { padding: 26px 24px; border-radius: var(--radius-lg); }
  .hero h1 { font-size: 22px; }
  .hero__stats { gap: 24px; margin-top: 18px; padding-top: 14px; }
  .hero__stat b { font-size: 17px; }
  .site-main { padding: 22px 0 50px; }
  .single-header { padding: 24px 22px 18px; }
  .single-body { padding: 6px 22px 26px; }
  .single-title { font-size: 22px; }
  .single-body h2 { font-size: 18px; }
  .single-body h3 { font-size: 16px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: fixed; inset: 60px 0 0;
    background: #fff; z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .site-nav.open { display: block; }
  .nav-list {
    flex-direction: column; align-items: stretch;
    height: auto; padding: 8px 16px 40px; gap: 0;
    max-width: none;
  }
  .nav-list > li { border-bottom: 1px solid var(--bg-subtle); }
  .nav-list > li > a { height: 51px; padding: 0 4px; font-size: 15px; justify-content: space-between; }
  .nav-list > li > a::after { display: none; }
  .nav-list .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    border-left: 2px solid var(--brand-100);
    margin: 0 0 10px 6px; padding: 0;
    background: transparent; min-width: 0;
  }
  .nav-list .sub-menu a { padding: 8px 14px; font-size: 14px; }
  .nav-list .sub-menu a:hover { padding-left: 14px; background: transparent; color: var(--brand-600); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .post-card__body { padding: 12px 13px 13px; }
  .post-card__title { font-size: 14px; }
  .post-card__excerpt { display: none; }
  .post-card__meta { font-size: 11px; gap: 9px; padding-top: 9px; }
  .post-card__thumb--empty .letter { font-size: 30px; }
  .post-nav { grid-template-columns: 1fr; }
  .dl-row { flex-wrap: wrap; }
  .dl-row__btn { width: 100%; text-align: center; }
  .hero__stats { flex-wrap: wrap; gap: 18px 26px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .single-header, .single-body { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
