/* ============================================================
   度假露营攻略网 · 公共组件（三页共用）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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: var(--fs-4);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }
.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;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--green-800); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); transition: top .18s ease;
}
.skip-link:focus { top: 10px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; color: var(--green-700); }
.brand-name,
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 21px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  white-space: nowrap; color: var(--green-900);
}
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h);
  font-size: 14px; color: #3c463a; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: transparent;
}
.site-nav a:hover { color: var(--green-900); }
.site-nav a[aria-current="page"] { color: var(--green-900); font-weight: 700; }
.site-nav a[aria-current="page"]::after { background: var(--accent); }
.nav-more { position: relative; display: inline-flex; }
.nav-more-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: var(--header-h);
  font-size: 14px; color: #3c463a; white-space: nowrap; cursor: pointer;
}
.nav-more-toggle:hover { color: var(--green-900); }
.nav-more-toggle .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-more-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 45;
  min-width: 168px; max-height: 360px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 18px 26px rgba(30,36,27,.09);
  padding: 6px 0;
}
.nav-more:hover .nav-more-menu,
.nav-more-toggle:focus + .nav-more-menu { display: block; }
.nav-more-menu a {
  display: block; height: 38px; padding: 0 16px; font-size: 13.5px;
  color: #3c463a; border-bottom: 1px solid #f2f1e8;
}
.nav-more-menu a:last-child { border-bottom: none; }
.nav-more-menu a:hover { background: var(--mint); color: var(--green-800); }
.search-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 13px; color: #3c463a;
}
.search-toggle:hover { border-color: var(--green-600); color: var(--green-800); }
.search-toggle svg { width: 15px; height: 15px; }
.menu-toggle { display: none; }

/* 搜索面板 */
.search-panel { background: #fff; border-bottom: 1px solid var(--line); }
.search-panel[hidden] { display: none; }
.search-row { padding: 14px 0 4px; }
.search-input {
  width: 100%; max-width: 560px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.search-results { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 14px; }
.search-results a { font-size: 13.5px; color: var(--green-700); border-bottom: 1px solid var(--line-strong); }
.search-results a:hover { color: var(--green-900); border-color: var(--green-600); }
.search-empty { font-size: 13px; color: var(--ink-mute); padding-bottom: 14px; }

/* ---------------- 通用排版 ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-2); font-weight: 600; letter-spacing: .12em;
  color: var(--green-600); text-transform: none;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-8); font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  color: var(--green-900);
}
.section-title .num {
  display: inline-block; margin-right: 12px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: var(--fs-3); font-weight: 600;
  color: var(--green-600); vertical-align: 12px;
}
.section-more { font-size: var(--fs-3); color: var(--green-700); border-bottom: 1px solid var(--line-strong); }
.grid-head { padding-top: 24px; }
.grid-title { font-size: 25px; }
.section-more:hover { color: var(--green-900); border-color: var(--green-600); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: var(--fs-4); font-weight: 600; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: #241d05; }
.btn-primary:hover { background: #ffcd5c; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-700); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--mint); color: var(--green-700);
  font-size: var(--fs-1); font-weight: 600; letter-spacing: .04em;
}
.tag-plain { background: #f2f1e8; color: var(--ink-soft); }

/* ---------------- 图片槽位 ---------------- */
.thumb { position: relative; overflow: hidden; background: var(--green-200); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,64,45,0) 55%, rgba(46,64,45,.32) 100%);
}
.thumb-plain::after { display: none; }

/* ---------------- 页脚 ---------------- */
.site-footer { height: var(--h-footer); background: var(--green-900); color: var(--on-dark); overflow: hidden; }
.footer-main {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 24px 28px; padding: 24px 0 12px;
}
.footer-main > * { flex: 1 1 180px; min-width: 170px; }
.footer-main > .footer-brand { flex: 1.4 1 240px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-claim {
  font-family: var(--font-serif); font-size: 21px; font-weight: 700;
  color: #fff; letter-spacing: .03em;
}
.footer-kicker { max-width: 300px; font-size: var(--fs-2); line-height: 1.8; color: var(--on-dark-soft); }
.footer-icp { font-size: var(--fs-1); color: #9db096; }
.footer-col h3 {
  font-size: var(--fs-1); font-weight: 700; letter-spacing: .14em;
  color: #a9bda1; margin-bottom: 8px;
}
.footer-col ul.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { font-size: var(--fs-3); color: #e2e9dc; }
.footer-col a:hover { color: #fff; border-bottom: 1px solid #8aa07f; }
.footer-note-col { font-size: var(--fs-1); line-height: 1.9; color: #9db096; }
.footer-bottom {
  border-top: 1px solid #3d513a; padding: 10px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: var(--fs-1); color: #9db096;
}
.footer-note { max-width: 720px; line-height: 1.7; }

/* ---------------- 响应式断点 ---------------- */
@media (max-width: 1200px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .brand-name { font-size: 19px; }
}
@media (max-width: 960px) {
  :root { --gutter: 22px; --header-h: 60px; }
  .site-footer { height: auto; }
  .brand-name,
  .site-logo-text { font-size: 17px; }
  .search-toggle .search-label { display: none; }
  .search-toggle { padding: 0 12px; }
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; gap: 4px 18px; height: auto; padding: 8px 0; }
  .site-nav {
    order: 3; width: 100%; flex-wrap: wrap; gap: 0 18px; margin-left: 0;
    padding: 2px 0 0; border-top: 1px solid var(--line);
  }
  .site-nav a,
  .nav-more-toggle { height: 38px; font-size: 13px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--green-700); }
  .nav-more { position: static; }
  .nav-more-menu {
    position: static; width: 100%; min-width: 0; max-height: 0;
    overflow: hidden; padding: 0; border: none; box-shadow: none;
  }
  .nav-more:hover .nav-more-menu,
  .nav-more-toggle:focus + .nav-more-menu {
    max-height: 320px; overflow-y: auto; padding: 4px 0;
    border-top: 1px dashed var(--line);
  }
  .footer-main { gap: 24px; padding: 28px 0 20px; }
  .footer-main > .footer-brand { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 640px) {
  .section-title { font-size: 27px; }
  .grid-head { padding-top: 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .grid-title { font-size: 22px; }
  .section-title .num { font-size: 12px; vertical-align: 8px; }
  .footer-main > * { flex: 1 1 100%; }
  .btn { height: 42px; padding: 0 18px; }
}
