:root {
  --ink: #20303a;
  --ink-soft: #4b5d68;
  --paper: #f7f4ee;
  --paper-2: #fffdf9;
  --line: #e4ddcf;
  --accent: #b5563a;
  --accent-2: #2f7d72;
  --shadow: 0 8px 28px rgba(32, 48, 58, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
.nav-link:hover { color: var(--accent); }
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: 54px 20px 30px;
  background: linear-gradient(180deg, #efe9dd 0%, var(--paper) 100%);
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: 2px;
}
.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Grid */
.grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(32,48,58,.16); }
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #ddd6c8;
}
.card-body { padding: 16px 18px 20px; }
.card-title { margin: 0 0 6px; font-size: 20px; }
.card-tagline { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; min-height: 40px; }
.card-more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* Detail */
.back {
  display: inline-block;
  margin: 18px 0 0 22px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
.back:hover { color: var(--accent); }
.detail { max-width: 1000px; margin: 0 auto 70px; padding: 0 20px; }
.detail-hero {
  height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.detail-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
  border-radius: var(--radius);
}
.detail-hero-inner { position: relative; z-index: 2; padding: 26px 30px; color: #fff; }
.detail-hero-inner h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.detail-hero-inner p { margin: 0; font-size: 16px; opacity: .92; }
.credit { color: var(--ink-soft); font-size: 12px; margin: 12px 4px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin-top: 26px;
}
.detail-main h2 {
  font-size: 19px;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 26px 0 10px;
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { margin: 0 0 8px; color: var(--ink); }
.detail-side { display: flex; flex-direction: column; gap: 14px; }
.info-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.info-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 6px;
}
.info-box p { margin: 0; font-size: 14px; color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  background: #efe9dd;
}
.site-footer a { color: var(--accent-2); text-decoration: none; }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-hero { height: 260px; }
}

/* 景点图集 */
.detail-gallery-title {
  font-size: 19px;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 30px 0 12px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd6c8;
  aspect-ratio: 4 / 3;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 28, 34, 0.86);
  padding: 24px;
}
.gallery-lightbox.show { display: flex; }
.glb-inner { max-width: 1000px; width: 100%; text-align: center; position: relative; }
.glb-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.glb-cap { color: #e9e2d4; font-size: 13px; margin: 12px 0 0; }
.glb-close {
  position: absolute; top: -38px; right: 0;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.glb-close:hover { background: rgba(255,255,255,.3); }

/* 最新动态 */
.news {
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 30px 20px 10px;
}
.news h2 {
  font-size: 26px; letter-spacing: 1px;
  margin: 0 0 6px; text-align: center;
}
.news-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.news-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 22px;
}
.news-chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.news-chip:hover { border-color: var(--accent); color: var(--accent); }
.news-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.news-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-date { font-size: 12px; color: #fff; background: var(--accent-2); border-radius: 6px; padding: 2px 8px; }
.news-tag { font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 2px 8px; }
.news-item h3 { margin: 0 0 8px; font-size: 18px; }
.news-item p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.news-src { font-size: 12px; color: var(--ink-soft); margin: 0 !important; }
.news-empty { text-align: center; color: var(--ink-soft); }
.news-source { text-align: center; color: var(--ink-soft); font-size: 12px; margin: 22px 0 0; }

/* 最新动态：翻页控件 */
.news-pager { display: flex; justify-content: center; margin: 26px 0 4px; }
.np-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.np-btn {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
  min-width: 38px;
}
.np-btn:hover:not([disabled]):not(.active) { border-color: var(--accent); color: var(--accent); }
.np-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.np-btn[disabled] { opacity: .45; cursor: not-allowed; }
.np-nums { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* 最新动态：标题列表 + 点击展开 */
.news-list { display: block; }
.news-item { padding: 0; overflow: hidden; }
.news-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
}
.news-head:hover { background: rgba(181, 86, 58, 0.05); }
.news-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.news-head .news-meta { margin-bottom: 0; flex: 0 0 auto; }
.news-item h3 { margin: 0; font-size: 17px; color: var(--ink); flex: 1; line-height: 1.35; }
.news-caret { color: var(--accent); font-size: 14px; transition: transform .15s ease; flex: 0 0 auto; }
.news-head[aria-expanded="true"] .news-caret { transform: rotate(90deg); }
.news-body { padding: 0 20px 18px; }
.news-body p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }

/* 单条动态详情页（#/news/<key>）：官网首页点条目进来的落地页 */
.news-detail {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  max-width: 760px;
}
.news-detail-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-detail h1 { margin: 0 0 14px; font-size: 24px; line-height: 1.35; color: var(--ink); }
.news-detail-body { font-size: 15px; line-height: 1.75; color: var(--ink); }
.news-detail-body strong { color: var(--accent); }
.news-detail .news-src { margin-top: 16px !important; }
.news-detail-back { margin: 22px 0 0; }
.news-detail-back a { color: var(--accent); text-decoration: none; font-size: 14px; }
.news-detail-back a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .news-detail { padding: 18px 16px; }
  .news-detail h1 { font-size: 20px; }
  .news-detail-body { font-size: 14px; }
}
.news-body .news-src { font-size: 12px; color: var(--ink-soft); margin: 0 !important; }

/* ---------- 搜索引擎友好文本兜底（仅在不执行 JS 时显示） ---------- */
.noscript-seo {
  max-width: 920px; margin: 0 auto; padding: 24px 20px 48px; color: #2b2b2b; font-size: 14px; line-height: 1.75;
}
.noscript-seo h1 { font-size: 22px; margin: 0 0 10px; color: #5a2a1c; }
.noscript-seo h2 { font-size: 18px; margin: 18px 0 8px; color: #5a2a1c; }
.noscript-seo ul { padding-left: 20px; }
.noscript-seo li { margin: 8px 0; }
.noscript-seo strong { color: #7a3b22; }

/* ---------- 景点详情页 → 住宿推荐页 内链 CTA（SEO 长尾词） ---------- */
.stay-cta {
  max-width: 920px; margin: 28px auto 8px; padding: 22px 24px;
  background: #fff7ef; border: 1px solid #f0d9c4; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(122,59,34,.06);
}
.stay-cta-title { margin: 0 0 8px; font-size: 20px; color: var(--accent); }
.stay-cta-body { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.stay-cta-link a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}
.stay-cta-link a:hover { opacity: .92; }
