/* 徒步装备指南 — 公共组件（三页共用，内页不得另写一套） */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 站点头部 / 导航 ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--accent-dark);
  white-space: nowrap;
}

.brand svg { width: 26px; height: 24px; flex: 0 0 auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 26px 0;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); }

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: 20px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 11px 18px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease;
}

.btn::after { content: "→"; font-weight: 400; }

.btn:hover { background: var(--accent-dark); }

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-arrow::after { content: " →"; }

.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 区块标题 ---------- */
.section-head { margin-bottom: 16px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.28;
  letter-spacing: .5px;
  color: var(--ink);
}

.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--accent);
  display: block;
  flex: 0 0 auto;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 站点页脚 ---------- */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255, 255, 255, .88);
  padding: 30px 0 20px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.98fr 1.86fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

.footer-brand svg { width: 26px; height: 24px; }

.footer-tagline {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
}

.footer-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13.5px;
  line-height: 1.9;
}

.footer-links a {
  color: rgba(255, 255, 255, .82);
  padding: 0 8px 0 0;
  position: relative;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 2px;
  color: rgba(255, 255, 255, .35);
}

.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-about p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .74);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}


/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-2);
  color: var(--muted);
}

.crumb li { display: flex; align-items: center; }
.crumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumb [aria-current="page"] { color: var(--ink-soft); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface);
  font-size: var(--fs-1);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 列表页工具条 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-3);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: var(--fs-2);
  color: var(--muted);
}

.toolbar select {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-3);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 6px 10px;
}

/* ---------- 条目卡（分类页网格） ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}

.post-card:hover { border-color: var(--line-strong); }

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe3dc;
}

.post-body { padding: 14px 16px 16px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-2);
  color: var(--muted);
}

.post-card h3 {
  margin: 8px 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.post-card h3 a:hover { color: var(--accent); }

.post-card p {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 正文排版 ---------- */
.article {
  font-size: 17px;
  line-height: 1.9;
  color: #232a24;
}

.article h2 {
  margin: 40px 0 14px;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: .5px;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.article h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -1px;
  background: var(--accent);
}

.article p { margin: 0 0 16px; }
.article strong { font-weight: 700; color: var(--ink); }

.article ul,
.article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 6px 0; }

/* ---------- 结论卡 ---------- */
.keypoints {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  padding: 16px 20px;
  margin: 24px 0 8px;
}

.keypoints h2 {
  margin: 0 0 8px !important;
  font-size: 15px !important;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  letter-spacing: .5px;
}

.keypoints h2::before { display: none; }

.keypoints ul { margin: 0; padding-left: 18px; }
.keypoints li { font-size: var(--fs-4); line-height: 1.8; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 0;
  font-size: var(--fs-3);
}

.pager a,
.pager span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--ink-soft);
}

.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.toolbar label { cursor: pointer; }
