/* 公共组件 · 户外摄影（与首页共用，内页不另设样式） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.note-cover img, .hero-media img, .continue-card img { width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(var(--container), 92%); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 站点头部 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(24, 32, 40, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { font-size: 12.5px; color: var(--ink-dim); padding: 4px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--ink); border-color: var(--accent); }
.search-toggle {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--ink-dim); transition: border-color .15s, color .15s;
}
.search-toggle:hover, .search-toggle:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.search-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
  padding: 14px 0 16px; box-shadow: var(--shadow-lift);
}
.search-panel[hidden] { display: none; }
.search-row { display: flex; gap: 10px; }
.search-input {
  flex: 1; padding: 9px 14px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink); outline: none;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { border-color: var(--accent); }
.search-results { margin-top: 10px; display: grid; gap: 6px; }
.search-results a { display: block; padding: 7px 12px; border-radius: 8px; background: var(--card); font-size: 13px; color: var(--ink-dim); }
.search-results a:hover { background: var(--card-press); color: var(--ink); }
.search-results strong { color: var(--accent-press); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.search-empty { font-size: 12px; color: var(--ink-faint); padding: 6px 2px; }
.menu-toggle { display: none; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-press); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-press); }

/* ===== 眉标 ===== */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--accent-press); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* ===== 区块标题 ===== */
.section-head { margin-bottom: 14px; }
.section-head h2 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 18px; font-weight: 700; margin-top: 4px; }
.section-head .head-lead { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; max-width: 620px; }
.section-head--line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.section-head--line h2 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 18px; font-weight: 700; margin-top: 4px; }
.section-head--line .head-link { font-size: 12px; color: var(--green); white-space: nowrap; border-bottom: 1px solid transparent; }
.section-head--line .head-link:hover { border-color: var(--green); }

/* ===== 图卡（推荐 / 最新） ===== */
.note-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.note-cover { position: relative; overflow: hidden; }
.note-cover img { width: 100%; height: 100%; object-fit: cover; }
.note-body { padding: 8px 12px 9px; }
.note-body h3 { font-size: 14px; font-weight: 600; line-height: 1.5; }
.note-body p { font-size: 12px; color: var(--ink-dim); line-height: 1.65; margin-top: 4px; }
.note-meta { display: flex; flex-wrap: wrap; gap: 6px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; color: var(--ink-faint); margin-top: 5px; }
.note-meta .note-tag { color: var(--green); }

/* ===== 筛选条 ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 12px; color: var(--ink-dim); transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-press); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ===== 出门检查清单 ===== */
.check-list { display: grid; gap: 2px; }
.check-item { position: relative; display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; }
.check-item input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.check-item input:focus-visible + .check-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check-box {
  flex: none; width: 18px; height: 18px; margin-top: 3px;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  transition: background .15s, border-color .15s; pointer-events: none;
}
.check-item input:checked ~ .check-box { background: var(--accent); border-color: var(--accent); }
.check-item input:checked ~ .check-box::after { content: "✓"; display: grid; place-items: center; color: #fff; font-size: 11px; line-height: 16px; }
.check-item strong { font-size: 12.5px; font-weight: 600; line-height: 1.55; }
.check-desc { font-size: 11px; color: var(--ink-faint); line-height: 1.55; }
.check-desc strong { margin-right: 8px; }
.check-item input:checked ~ span:last-child strong { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.check-note { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; color: var(--ink-faint); margin-top: 6px; }
.check-count { color: var(--accent-press); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 4px 0; font-size: 12.5px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 20px; height: 20px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--accent); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 12px; color: var(--ink-dim); line-height: 1.65; padding: 0 0 8px; }

/* ===== 面包屑 ===== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-faint); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--accent-press); }
.breadcrumb [aria-current="page"] { color: var(--ink-dim); }

/* ===== 页脚 ===== */
.site-footer { background: var(--footer-bg); color: #9aa7b4; font-size: 12px; }
.footer-cta { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 0 12px; border-bottom: 1px solid var(--footer-line); }
.footer-brand { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 16px; color: #e8ebee; font-weight: 700; }
.footer-brand-note { font-size: 11.5px; color: #67757f; margin-top: 3px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; padding: 12px 0; }
.footer-col h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #67757f; margin-bottom: 6px; }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-col a { color: #9aa7b4; border-bottom: 1px solid transparent; }
.footer-col a:hover { color: #fff; border-color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 10px 0 14px; border-top: 1px solid var(--footer-line); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; color: #67757f; }

/* ===== 提示条 ===== */
.notice { background: var(--accent); }
.notice-inner { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; }
.notice-tag {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent); background: #fff; border-radius: 4px; padding: 3px 10px;
}
.notice p { font-size: 12.5px; color: #fff; line-height: 1.7; max-width: 880px; }

/* ===== 分类说明 ===== */
.cat-desc h2 { position: absolute; clip: rect(0 0 0 0); }
.cat-desc p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.9; }
.cat-desc p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.9; }

/* ===== 文章目录 ===== */
.article-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.article-toc h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 10px; }
.toc-list { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc-list a { display: block; padding: 5px 0 5px 14px; font-size: 12px; color: var(--ink-dim); border-left: 2px solid transparent; margin-left: -2px; transition: color .15s, border-color .15s; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { color: var(--accent-press); border-color: var(--accent); font-weight: 600; }
.toc-more { display: inline-block; margin-top: 12px; font-size: 11.5px; color: var(--green); border-bottom: 1px solid var(--line-strong); }
.toc-more:hover { border-color: var(--green); }
.progress-track { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: transparent; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width .1s linear; }

/* 汉堡按钮三线（移动端） */
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink, #173F46); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: inherit; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* ============================================================
   对接数据补充：导航下拉 / 页脚三栏均衡 / 分页 / 上下篇 / 截断
   ============================================================ */

.site-nav { align-items: center; }
.site-nav .nav-item { position: relative; }
.site-nav .nav-item > a { white-space: nowrap; }
.site-nav .nav-item.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  vertical-align: 2px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  z-index: 120;
  min-width: 15rem;
  max-height: 384px;
  overflow-y: auto;
  padding: 8px;
  background: var(--card, #101820);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
}
.site-nav .nav-item:hover > .nav-sub { display: grid; }
.nav-sub a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-dim);
  white-space: normal;
}
.nav-sub a:hover { background: rgba(242, 169, 92, 0.14); color: var(--ink); }

.footer-cols > .footer-col { flex: 1 1 200px; min-width: 180px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-dim);
  background: var(--card);
}
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager .pager-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #101820); font-weight: 600; }
.pager .pager-gap { border: 0; background: transparent; }

.article-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 6px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition: border-color .15s;
}
.article-nav a:hover { border-color: var(--accent); }
.article-nav .nav-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.article-nav h3 { font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.article-nav .nav-next { margin-left: auto; text-align: right; }
.article-nav .nav-next .nav-label { text-align: right; }

.note-card h3, .topic-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.note-card .note-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-body .body-figure { margin: 16px 0; }
.article-body .body-figure img { width: 100%; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav-sub { display: none !important; }
  .site-nav .nav-item.has-sub > a::after { display: none; }
}
@media (max-width: 620px) {
  .article-nav { flex-wrap: wrap; }
  .article-nav a { flex: 1 1 100%; max-width: 100%; }
  .article-nav .nav-next { margin-left: 0; }
}
