/* 页面级布局 · 户外摄影（按 UI 稿分区预算落位，总目标 2160px） */

/* ===== 首页 hero（预算 48–596 / 548px） ===== */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px; align-items: center; padding: 46px 0 40px;
}
.hero h1 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-hero); line-height: 1.3; font-weight: 800; margin-top: 14px; letter-spacing: 0.01em; }
.hero-lead { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-dim); max-width: 470px; }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 38px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.hero-stat dt { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.hero-stat dd { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 18px; color: var(--accent-press); margin-top: 3px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; letter-spacing: 0.06em;
  color: #fff; background: rgba(19, 26, 33, 0.78); padding: 4px 12px; border-radius: 4px;
}

/* ===== 编辑推荐（预算 596–888 / 292px） ===== */
.editor { padding: 16px 0 14px; }
.editor-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.editor-intro .eyebrow { margin-bottom: 10px; }
.editor-intro h2 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 20px; line-height: 1.45; font-weight: 700; }
.editor-intro p { font-size: 12px; color: var(--ink-faint); margin-top: 10px; line-height: 1.7; }
.editor-more { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--blue); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.editor-more:hover { border-color: var(--blue); }
.editor-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.editor-cards .note-card .note-cover img { aspect-ratio: 16 / 10; }
.editor-cards .note-body h3 { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 最新图卡（预算 888–1136 / 248px，紧凑小卡） ===== */
.latest { padding: 10px 0 12px; background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.latest .note-card { position: relative; border: none; border-radius: var(--radius); overflow: hidden; }
.latest .note-cover img { aspect-ratio: 2.6 / 1; }
.latest .note-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 7px; background: linear-gradient(180deg, transparent, rgba(19,26,33,0.92)); }
.latest .note-summary { display: none; }
.latest .section-head { margin-bottom: 6px; }
.latest .head-lead { margin-top: 2px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.latest .note-cover img { aspect-ratio: 2.8 / 1; }
.latest .note-body { padding: 5px 8px 6px; }
.latest .note-body h3 {
  font-size: 12px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.latest .note-meta { margin-top: 2px; font-size: 9.5px; }

/* ===== 场景索引（预算 1136–1395 / 259px） ===== */
.topics { padding: 20px 0 22px; }
.topics-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.topic-card {
  display: block; padding: 12px 12px 11px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.topic-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.topic-num { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10px; color: var(--accent-press); }
.topic-card h3 { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.topic-card p { font-size: 10.5px; line-height: 1.55; color: var(--ink-faint); margin-top: 4px; }
.topic-tag { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 9.5px; color: var(--blue); margin-top: 6px; }

/* ===== 参数速查（预算 1395–1608 / 213px） ===== */
.cheatsheet { padding: 8px 0 10px; }
.cheatsheet .section-head { margin-bottom: 6px; }
.params-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.params-table { min-width: 560px; }
.params-table { width: 100%; border-collapse: collapse; font-size: 11.5px; line-height: 1.45; }
.params-table thead th {
  background: var(--table-head); color: #e9e6d8; font-weight: 600;
  text-align: left; padding: 4px 12px; font-size: 11px; letter-spacing: 0.04em;
}
.params-table tbody td { padding: 1.5px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.params-table tbody tr:nth-child(even) { background: var(--card-press); }
.params-table td:first-child { font-weight: 600; white-space: nowrap; }
.params-table td:nth-child(2), .params-table td:nth-child(3), .params-table td:nth-child(4) { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px; white-space: nowrap; }
.params-table td:last-child { color: var(--ink-dim); }

/* ===== 清单 + FAQ（预算 1608–1845 / 237px） ===== */
.care { padding: 8px 0 10px; }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.care-col h2 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 16px; font-weight: 700; }
.care-col .col-lead { font-size: 11.5px; color: var(--ink-faint); margin: 2px 0 6px; }

/* ===== 分类页 ===== */
.page-hero { background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.page-hero .eyebrow { margin: 14px 0 8px; }
.page-hero h1 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.page-hero .hero-lead { max-width: 640px; }
.filter-bar { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-select {
  padding: 7px 10px; font-size: 12px; font-family: inherit; color: var(--ink-dim);
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); cursor: pointer;
}
.sort-label { font-size: var(--fs-xs); color: var(--ink-faint); cursor: pointer; }
.result-count { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; color: var(--ink-faint); }
.listing { padding: 20px 0 8px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing .note-cover img { aspect-ratio: 16 / 9; }
.guide { padding: 26px 0; border-top: 1px solid var(--line); }
.guide-title { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 21px; font-weight: 700; margin: 6px 0 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.guide-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.guide-step .step-num { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; color: var(--accent-press); }
.guide-step h3 { font-size: 14px; font-weight: 600; margin-top: 4px; }
.guide-step p { font-size: 12px; color: var(--ink-dim); margin-top: 4px; line-height: 1.7; }
.cat-desc { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.continue { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 22px 0; }
.continue h2 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 18px; font-weight: 700; }
.continue .head-lead { font-size: 12px; color: var(--ink-faint); margin: 4px 0 14px; }
.continue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.continue-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .15s, transform .15s;
}
.continue-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.continue-card h3 { font-size: 14px; font-weight: 600; }
.continue-card p { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.continue-card .more { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--blue); }

/* ===== 详情页 ===== */
.article-head { background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.article-head h1 { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-top: 12px; max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 11px; color: var(--ink-faint); }
.article-lead { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--ink-dim); max-width: 720px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 44px; padding: 28px 0 36px; align-items: start; }
.article-body { grid-column: 1; min-width: 0; }
.article-toc { grid-column: 2; }
.article-body p + p { margin-top: 10px; }
.article-body 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: 26px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 13px; line-height: 1.95; color: var(--ink-dim); }
.related { border-top: 1px solid var(--line); padding: 22px 0 28px; }
.related-title { font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 21px; font-weight: 700; margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.related .note-body h3 { font-size: 13.5px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding: 28px 0; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .editor-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .care-grid { grid-template-columns: 1fr; gap: 24px; }
  .listing-grid, .guide-grid, .continue-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-body, .article-toc { grid-column: auto; }
  .article-toc { order: -1; margin-bottom: 6px; }
  .article-toc { position: static; }
}
@media (max-width: 720px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; background: var(--bg-deep);
    border-bottom: 1px solid var(--line-strong);
    padding: 8px 0 14px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .2s, opacity .2s, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 11px 6%; border-bottom: none; font-size: 14px; }
  .menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; margin-left: auto; }
  .search-toggle { margin-left: 0; }
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .latest-grid, .listing-grid, .guide-grid, .continue-grid, .related-grid, .editor-cards { grid-template-columns: 1fr; }
  .topics-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { gap: 10px 22px; }
  .footer-cols { gap: 18px; }
}

/* 防移动端溢出：文本可断行，媒体不超宽 */
.section-head--line, .section-head--line > div { min-width: 0; max-width: 100%; }
.head-lead, .eyebrow { overflow-wrap: anywhere; }
img, table { max-width: 100%; }

/* ============================================================
   对接数据补充：子分类卡 / 分类说明 / 空状态 / 1200px 断点
   ============================================================ */

.subcategory { padding: 8px 0 26px; }
.subcat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subcat-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, transform .15s;
}
.subcat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.subcat-num { font-size: 12px; color: var(--accent); }
.subcat-card h3 { font-size: 14px; line-height: 1.45; color: var(--ink); }
.subcat-card p { margin-top: 4px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; }
.subcat-count { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }

.list-description { padding: 8px 0 30px; border-top: 1px solid var(--line); }
.desc-cols { max-width: 72ch; }
.desc-cols p { margin-top: 12px; font-size: 13.5px; line-height: 2; color: var(--ink-dim); }

.empty-state { display: none; padding: 30px 0; font-size: 13px; color: var(--ink-faint); }
.empty-state.is-visible { display: block; }

.toc-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

/* 一级分类较多，提前切抽屉 */
@media (max-width: 1180px) {
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg, #0b1118);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 14px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .2s, opacity .2s, visibility .2s;
    z-index: 90;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 11px 6%; border-bottom: none; font-size: 14px; }
  .site-nav .nav-sub { display: none !important; }
  .site-nav .nav-item.has-sub > a::after { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: transparent; margin-left: auto; }
}

@media (max-width: 720px) {
  .subcat-grid { grid-template-columns: 1fr; }
}
